From b7c7f0bd95247405c9af1dd586ba26a49a8e503e Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 29 Apr 2021 17:08:27 +0000 Subject: [PATCH] CodeGen from PR 14194 in Azure/azure-rest-api-specs Merge 03ab04c227d615611ae1479d73efb9370c14d5cf into 741037c0809936531a00170da2bc9add30629aea --- sdk/compute/azure-mgmt-compute/_meta.json | 8 +- .../compute/_compute_management_client.py | 1 + .../compute/aio/_compute_management_client.py | 1 + .../v2015_06_15/_compute_management_client.py | 19 + .../mgmt/compute/v2015_06_15/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../_compute_management_client_enums.py | 4 +- .../compute/v2015_06_15/models/_models.py | 166 ++++----- .../compute/v2015_06_15/models/_models_py3.py | 182 +++++---- .../v2016_03_30/_compute_management_client.py | 19 + .../mgmt/compute/v2016_03_30/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../_compute_management_client_enums.py | 4 +- .../compute/v2016_03_30/models/_models.py | 166 ++++----- .../compute/v2016_03_30/models/_models_py3.py | 182 +++++---- .../_compute_management_client.py | 29 +- .../v2016_04_30_preview/_metadata.json | 12 +- .../aio/_compute_management_client.py | 28 +- .../aio/operations/__init__.py | 4 +- .../_virtual_machine_extensions_operations.py | 63 ++++ .../_virtual_machines_operations.py | 67 +--- .../v2016_04_30_preview/models/__init__.py | 5 + .../_compute_management_client_enums.py | 120 +++++- .../v2016_04_30_preview/models/_models.py | 320 +++++++++------- .../v2016_04_30_preview/models/_models_py3.py | 344 ++++++++++-------- .../operations/__init__.py | 4 +- .../_virtual_machine_extensions_operations.py | 64 ++++ .../_virtual_machines_operations.py | 68 +--- .../v2017_03_30/_compute_management_client.py | 19 + .../mgmt/compute/v2017_03_30/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../_virtual_machines_operations.py | 4 +- .../_compute_management_client_enums.py | 4 +- .../compute/v2017_03_30/models/_models.py | 210 +++++------ .../compute/v2017_03_30/models/_models_py3.py | 228 ++++++------ .../_virtual_machines_operations.py | 4 +- .../v2017_09_01/_compute_management_client.py | 19 + .../mgmt/compute/v2017_09_01/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../v2017_12_01/_compute_management_client.py | 19 + .../mgmt/compute/v2017_12_01/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machines_operations.py | 4 +- .../_compute_management_client_enums.py | 4 +- .../compute/v2017_12_01/models/_models.py | 228 ++++++------ .../compute/v2017_12_01/models/_models_py3.py | 246 ++++++------- .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machines_operations.py | 4 +- .../v2018_04_01/_compute_management_client.py | 19 + .../mgmt/compute/v2018_04_01/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machines_operations.py | 4 +- .../_compute_management_client_enums.py | 4 +- .../compute/v2018_04_01/models/_models.py | 232 ++++++------ .../compute/v2018_04_01/models/_models_py3.py | 244 ++++++------- .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machines_operations.py | 4 +- .../v2018_06_01/_compute_management_client.py | 19 + .../mgmt/compute/v2018_06_01/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machine_sizes_operations.py | 4 +- .../_virtual_machines_operations.py | 4 +- .../_compute_management_client_enums.py | 4 +- .../compute/v2018_06_01/models/_models.py | 238 ++++++------ .../compute/v2018_06_01/models/_models_py3.py | 250 ++++++------- .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machine_sizes_operations.py | 4 +- .../_virtual_machines_operations.py | 4 +- .../v2018_09_30/_compute_management_client.py | 19 + .../mgmt/compute/v2018_09_30/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../v2018_10_01/_compute_management_client.py | 19 + .../mgmt/compute/v2018_10_01/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machine_sizes_operations.py | 4 +- .../_virtual_machines_operations.py | 4 +- .../_compute_management_client_enums.py | 4 +- .../compute/v2018_10_01/models/_models.py | 236 ++++++------ .../compute/v2018_10_01/models/_models_py3.py | 248 ++++++------- .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machine_sizes_operations.py | 4 +- .../_virtual_machines_operations.py | 4 +- .../v2019_03_01/_compute_management_client.py | 19 + .../mgmt/compute/v2019_03_01/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machine_sizes_operations.py | 4 +- .../_virtual_machines_operations.py | 4 +- .../_compute_management_client_enums.py | 12 +- .../compute/v2019_03_01/models/_models.py | 236 ++++++------ .../compute/v2019_03_01/models/_models_py3.py | 248 ++++++------- .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machine_sizes_operations.py | 4 +- .../_virtual_machines_operations.py | 4 +- .../v2019_04_01/_compute_management_client.py | 19 + .../mgmt/compute/v2019_04_01/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../v2019_07_01/_compute_management_client.py | 19 + .../mgmt/compute/v2019_07_01/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machine_sizes_operations.py | 4 +- .../_virtual_machines_operations.py | 21 +- .../_compute_management_client_enums.py | 10 +- .../compute/v2019_07_01/models/_models.py | 245 ++++++------- .../compute/v2019_07_01/models/_models_py3.py | 261 +++++++------ .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machine_sizes_operations.py | 4 +- .../_virtual_machines_operations.py | 21 +- .../v2019_11_01/_compute_management_client.py | 19 + .../mgmt/compute/v2019_11_01/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../v2019_12_01/_compute_management_client.py | 19 + .../mgmt/compute/v2019_12_01/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machine_sizes_operations.py | 4 +- .../_virtual_machines_operations.py | 21 +- .../_compute_management_client_enums.py | 16 +- .../compute/v2019_12_01/models/_models.py | 254 ++++++------- .../compute/v2019_12_01/models/_models_py3.py | 270 +++++++------- .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machine_sizes_operations.py | 4 +- .../_virtual_machines_operations.py | 21 +- .../v2020_05_01/_compute_management_client.py | 19 + .../mgmt/compute/v2020_05_01/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../v2020_06_01/_compute_management_client.py | 19 + .../mgmt/compute/v2020_06_01/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machine_sizes_operations.py | 4 +- .../_virtual_machines_operations.py | 12 +- .../_compute_management_client_enums.py | 22 +- .../compute/v2020_06_01/models/_models.py | 249 ++++++------- .../compute/v2020_06_01/models/_models_py3.py | 273 +++++++------- .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machine_sizes_operations.py | 4 +- .../_virtual_machines_operations.py | 12 +- .../v2020_06_30/_compute_management_client.py | 19 + .../mgmt/compute/v2020_06_30/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../v2020_09_30/_compute_management_client.py | 19 + .../mgmt/compute/v2020_09_30/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../_compute_management_client.py | 19 + .../v2020_10_01_preview/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../v2020_12_01/_compute_management_client.py | 19 + .../mgmt/compute/v2020_12_01/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machine_sizes_operations.py | 4 +- .../_virtual_machines_operations.py | 12 +- .../_compute_management_client_enums.py | 12 +- .../compute/v2020_12_01/models/_models.py | 240 ++++++------ .../compute/v2020_12_01/models/_models_py3.py | 264 +++++++------- .../_virtual_machine_scale_sets_operations.py | 4 +- .../_virtual_machine_sizes_operations.py | 4 +- .../_virtual_machines_operations.py | 12 +- .../v2021_03_01/_compute_management_client.py | 19 + .../mgmt/compute/v2021_03_01/_metadata.json | 10 +- .../aio/_compute_management_client.py | 18 + 167 files changed, 4315 insertions(+), 3814 deletions(-) diff --git a/sdk/compute/azure-mgmt-compute/_meta.json b/sdk/compute/azure-mgmt-compute/_meta.json index 85b6a0aa2025..b8bc35dec343 100644 --- a/sdk/compute/azure-mgmt-compute/_meta.json +++ b/sdk/compute/azure-mgmt-compute/_meta.json @@ -1,8 +1,8 @@ { - "autorest": "3.0.6369", - "use": "@autorest/python@5.6.2", - "commit": "b79c669038a6932848bf402578a4bceb2e9f329c", + "autorest": "3.3.0", + "use": "@autorest/python@5.6.6", + "commit": "01b37182eebb2806707ab0e2b6a1a246257b9e54", "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.6.6 --version=3.3.0", "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..cef108f7ed2a 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): 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..36dff2e987d9 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 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/_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/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/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..387a11adbf7b 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,11 +328,11 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { - 'output': {'key': 'output', 'type': 'object'}, + 'output': {'key': 'output', 'type': 'str'}, } def __init__( @@ -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,12 +1597,12 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'output': {'key': 'properties.output', 'type': 'object'}, + 'output': {'key': 'properties.output', 'type': 'str'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -1682,8 +1674,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -1862,8 +1854,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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: str :param protected_settings: Json formatted protected settings for the extension. - :type protected_settings: object + :type protected_settings: str :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -2143,8 +2135,8 @@ class VirtualMachineScaleSetExtension(SubResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': '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..c929e512070e 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 @@ -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,17 +363,17 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { - 'output': {'key': 'output', 'type': 'object'}, + 'output': {'key': 'output', 'type': 'str'}, } def __init__( self, *, - output: Optional[object] = None, + output: Optional[str] = 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,19 +1765,19 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'output': {'key': 'properties.output', 'type': 'object'}, + 'output': {'key': 'properties.output', 'type': 'str'}, } def __init__( self, *, id: Optional[str] = None, - output: Optional[object] = None, + output: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -1853,8 +1845,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -2062,8 +2054,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: Json formatted protected settings for the extension. - :type protected_settings: object + :type protected_settings: str :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -2385,8 +2377,8 @@ class VirtualMachineScaleSetExtension(SubResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': '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[str] = None, + protected_settings: Optional[str] = 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/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/_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/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/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..576339a34b69 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,11 +328,11 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { - 'output': {'key': 'output', 'type': 'object'}, + 'output': {'key': 'output', 'type': 'str'}, } def __init__( @@ -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,12 +1609,12 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'output': {'key': 'properties.output', 'type': 'object'}, + 'output': {'key': 'properties.output', 'type': 'str'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -1694,8 +1686,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -1893,8 +1885,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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: str :param protected_settings: Json formatted protected settings for the extension. - :type protected_settings: object + :type protected_settings: str :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -2223,8 +2215,8 @@ class VirtualMachineScaleSetExtension(SubResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': '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..3dede44e468f 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 @@ -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,17 +363,17 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { - 'output': {'key': 'output', 'type': 'object'}, + 'output': {'key': 'output', 'type': 'str'}, } def __init__( self, *, - output: Optional[object] = None, + output: Optional[str] = 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,19 +1778,19 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'output': {'key': 'properties.output', 'type': 'object'}, + 'output': {'key': 'properties.output', 'type': 'str'}, } def __init__( self, *, id: Optional[str] = None, - output: Optional[object] = None, + output: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -1866,8 +1858,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -2096,8 +2088,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: Json formatted protected settings for the extension. - :type protected_settings: object + :type protected_settings: str :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -2468,8 +2460,8 @@ class VirtualMachineScaleSetExtension(SubResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': '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[str] = None, + protected_settings: Optional[str] = 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_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..4c0b12b99987 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,16 +16,17 @@ 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 from .operations import VirtualMachineExtensionImagesOperations from .operations import VirtualMachineExtensionsOperations -from .operations import VirtualMachinesOperations from .operations import VirtualMachineImagesOperations from .operations import UsageOperations from .operations import VirtualMachineSizesOperations from .operations import ImagesOperations +from .operations import VirtualMachinesOperations from .operations import VirtualMachineScaleSetsOperations from .operations import VirtualMachineScaleSetVMsOperations from .operations import DisksOperations @@ -42,8 +43,6 @@ class ComputeManagementClient(object): :vartype virtual_machine_extension_images: azure.mgmt.compute.v2016_04_30_preview.operations.VirtualMachineExtensionImagesOperations :ivar virtual_machine_extensions: VirtualMachineExtensionsOperations operations :vartype virtual_machine_extensions: azure.mgmt.compute.v2016_04_30_preview.operations.VirtualMachineExtensionsOperations - :ivar virtual_machines: VirtualMachinesOperations operations - :vartype virtual_machines: azure.mgmt.compute.v2016_04_30_preview.operations.VirtualMachinesOperations :ivar virtual_machine_images: VirtualMachineImagesOperations operations :vartype virtual_machine_images: azure.mgmt.compute.v2016_04_30_preview.operations.VirtualMachineImagesOperations :ivar usage: UsageOperations operations @@ -52,6 +51,8 @@ class ComputeManagementClient(object): :vartype virtual_machine_sizes: azure.mgmt.compute.v2016_04_30_preview.operations.VirtualMachineSizesOperations :ivar images: ImagesOperations operations :vartype images: azure.mgmt.compute.v2016_04_30_preview.operations.ImagesOperations + :ivar virtual_machines: VirtualMachinesOperations operations + :vartype virtual_machines: azure.mgmt.compute.v2016_04_30_preview.operations.VirtualMachinesOperations :ivar virtual_machine_scale_sets: VirtualMachineScaleSetsOperations operations :vartype virtual_machine_scale_sets: azure.mgmt.compute.v2016_04_30_preview.operations.VirtualMachineScaleSetsOperations :ivar virtual_machine_scale_set_vms: VirtualMachineScaleSetVMsOperations operations @@ -92,8 +93,6 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.virtual_machine_extensions = VirtualMachineExtensionsOperations( self._client, self._config, self._serialize, self._deserialize) - self.virtual_machines = VirtualMachinesOperations( - self._client, self._config, self._serialize, self._deserialize) self.virtual_machine_images = VirtualMachineImagesOperations( self._client, self._config, self._serialize, self._deserialize) self.usage = UsageOperations( @@ -102,6 +101,8 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.images = ImagesOperations( 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_scale_set_vms = VirtualMachineScaleSetVMsOperations( @@ -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/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_metadata.json index 5a65bd4b88f5..282adac23d26 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": { @@ -101,20 +101,14 @@ "availability_sets": "AvailabilitySetsOperations", "virtual_machine_extension_images": "VirtualMachineExtensionImagesOperations", "virtual_machine_extensions": "VirtualMachineExtensionsOperations", - "virtual_machines": "VirtualMachinesOperations", "virtual_machine_images": "VirtualMachineImagesOperations", "usage": "UsageOperations", "virtual_machine_sizes": "VirtualMachineSizesOperations", "images": "ImagesOperations", + "virtual_machines": "VirtualMachinesOperations", "virtual_machine_scale_sets": "VirtualMachineScaleSetsOperations", "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/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..cdfdb2baa104 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 @@ -19,11 +20,11 @@ from .operations import AvailabilitySetsOperations from .operations import VirtualMachineExtensionImagesOperations from .operations import VirtualMachineExtensionsOperations -from .operations import VirtualMachinesOperations from .operations import VirtualMachineImagesOperations from .operations import UsageOperations from .operations import VirtualMachineSizesOperations from .operations import ImagesOperations +from .operations import VirtualMachinesOperations from .operations import VirtualMachineScaleSetsOperations from .operations import VirtualMachineScaleSetVMsOperations from .operations import DisksOperations @@ -40,8 +41,6 @@ class ComputeManagementClient(object): :vartype virtual_machine_extension_images: azure.mgmt.compute.v2016_04_30_preview.aio.operations.VirtualMachineExtensionImagesOperations :ivar virtual_machine_extensions: VirtualMachineExtensionsOperations operations :vartype virtual_machine_extensions: azure.mgmt.compute.v2016_04_30_preview.aio.operations.VirtualMachineExtensionsOperations - :ivar virtual_machines: VirtualMachinesOperations operations - :vartype virtual_machines: azure.mgmt.compute.v2016_04_30_preview.aio.operations.VirtualMachinesOperations :ivar virtual_machine_images: VirtualMachineImagesOperations operations :vartype virtual_machine_images: azure.mgmt.compute.v2016_04_30_preview.aio.operations.VirtualMachineImagesOperations :ivar usage: UsageOperations operations @@ -50,6 +49,8 @@ class ComputeManagementClient(object): :vartype virtual_machine_sizes: azure.mgmt.compute.v2016_04_30_preview.aio.operations.VirtualMachineSizesOperations :ivar images: ImagesOperations operations :vartype images: azure.mgmt.compute.v2016_04_30_preview.aio.operations.ImagesOperations + :ivar virtual_machines: VirtualMachinesOperations operations + :vartype virtual_machines: azure.mgmt.compute.v2016_04_30_preview.aio.operations.VirtualMachinesOperations :ivar virtual_machine_scale_sets: VirtualMachineScaleSetsOperations operations :vartype virtual_machine_scale_sets: azure.mgmt.compute.v2016_04_30_preview.aio.operations.VirtualMachineScaleSetsOperations :ivar virtual_machine_scale_set_vms: VirtualMachineScaleSetVMsOperations operations @@ -89,8 +90,6 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.virtual_machine_extensions = VirtualMachineExtensionsOperations( self._client, self._config, self._serialize, self._deserialize) - self.virtual_machines = VirtualMachinesOperations( - self._client, self._config, self._serialize, self._deserialize) self.virtual_machine_images = VirtualMachineImagesOperations( self._client, self._config, self._serialize, self._deserialize) self.usage = UsageOperations( @@ -99,6 +98,8 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.images = ImagesOperations( 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_scale_set_vms = VirtualMachineScaleSetVMsOperations( @@ -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/operations/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/__init__.py index 1887a28bbe4c..9a6cd61e8d3f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/__init__.py @@ -9,11 +9,11 @@ from ._availability_sets_operations import AvailabilitySetsOperations from ._virtual_machine_extension_images_operations import VirtualMachineExtensionImagesOperations from ._virtual_machine_extensions_operations import VirtualMachineExtensionsOperations -from ._virtual_machines_operations import VirtualMachinesOperations from ._virtual_machine_images_operations import VirtualMachineImagesOperations from ._usage_operations import UsageOperations from ._virtual_machine_sizes_operations import VirtualMachineSizesOperations from ._images_operations import ImagesOperations +from ._virtual_machines_operations import VirtualMachinesOperations from ._virtual_machine_scale_sets_operations import VirtualMachineScaleSetsOperations from ._virtual_machine_scale_set_vms_operations import VirtualMachineScaleSetVMsOperations from ._disks_operations import DisksOperations @@ -23,11 +23,11 @@ 'AvailabilitySetsOperations', 'VirtualMachineExtensionImagesOperations', 'VirtualMachineExtensionsOperations', - 'VirtualMachinesOperations', 'VirtualMachineImagesOperations', 'UsageOperations', 'VirtualMachineSizesOperations', 'ImagesOperations', + 'VirtualMachinesOperations', 'VirtualMachineScaleSetsOperations', 'VirtualMachineScaleSetVMsOperations', 'DisksOperations', 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..35b0f75c6031 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 @@ -500,3 +500,66 @@ async def get( 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 + ) -> "_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.v2016_04_30_preview.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 = "2016-04-30-preview" + 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/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..bc4c2a6880e0 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 @@ -43,69 +43,6 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._deserialize = deserializer self._config = config - async def get_extensions( - self, - resource_group_name: str, - vm_name: str, - expand: Optional[str] = None, - **kwargs - ) -> "_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.v2016_04_30_preview.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 = "2016-04-30-preview" - accept = "application/json" - - # Construct URL - url = self.get_extensions.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 - get_extensions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions'} # type: ignore - async def _capture_initial( self, resource_group_name: str, @@ -595,8 +532,8 @@ async def begin_convert_to_managed_disks( vm_name: str, **kwargs ) -> 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 diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/__init__.py index 80ec93e50e38..ac2f374ad872 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/__init__.py @@ -76,6 +76,7 @@ from ._models_py3 import VirtualMachineAgentInstanceView from ._models_py3 import VirtualMachineCaptureParameters from ._models_py3 import VirtualMachineCaptureResult + from ._models_py3 import VirtualMachineCaptureResultProperties from ._models_py3 import VirtualMachineExtension from ._models_py3 import VirtualMachineExtensionHandlerInstanceView from ._models_py3 import VirtualMachineExtensionImage @@ -189,6 +190,7 @@ from ._models import VirtualMachineAgentInstanceView # type: ignore from ._models import VirtualMachineCaptureParameters # type: ignore from ._models import VirtualMachineCaptureResult # type: ignore + from ._models import VirtualMachineCaptureResultProperties # type: ignore from ._models import VirtualMachineExtension # type: ignore from ._models import VirtualMachineExtensionHandlerInstanceView # type: ignore from ._models import VirtualMachineExtensionImage # type: ignore @@ -241,6 +243,7 @@ OperatingSystemStateTypes, OperatingSystemTypes, ProtocolTypes, + ResourceIdentityType, SettingNames, StatusLevelTypes, StorageAccountTypes, @@ -319,6 +322,7 @@ 'VirtualMachineAgentInstanceView', 'VirtualMachineCaptureParameters', 'VirtualMachineCaptureResult', + 'VirtualMachineCaptureResultProperties', 'VirtualMachineExtension', 'VirtualMachineExtensionHandlerInstanceView', 'VirtualMachineExtensionImage', @@ -369,6 +373,7 @@ 'OperatingSystemStateTypes', 'OperatingSystemTypes', 'ProtocolTypes', + 'ResourceIdentityType', 'SettingNames', 'StatusLevelTypes', 'StorageAccountTypes', 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..2654f30f8086 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 @@ -88,6 +88,16 @@ class ProtocolTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): HTTP = "Http" HTTPS = "Https" +class ResourceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of identity used for the virtual machine. Currently, the only supported type is + 'SystemAssigned', which implicitly creates an identity. + """ + + SYSTEM_ASSIGNED = "SystemAssigned" + USER_ASSIGNED = "UserAssigned" + SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned, UserAssigned" + NONE = "None" + class SettingNames(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. @@ -111,6 +121,8 @@ class StorageAccountTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): STANDARD_LRS = "Standard_LRS" PREMIUM_LRS = "Premium_LRS" + STANDARD_SSD_LRS = "StandardSSD_LRS" + ULTRA_SSD_LRS = "UltraSSD_LRS" class UpgradeMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
    `:code:`
    `_. + 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 `_ @@ -159,6 +172,19 @@ class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum 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" @@ -172,6 +198,18 @@ class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum 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" @@ -195,6 +233,43 @@ class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum 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" @@ -205,3 +280,44 @@ class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum 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" 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..cb573ee8833f 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", @@ -234,8 +234,6 @@ class AvailabilitySet(Resource): :type virtual_machines: list[~azure.mgmt.compute.v2016_04_30_preview.models.SubResource] :ivar statuses: The resource status information. :vartype statuses: list[~azure.mgmt.compute.v2016_04_30_preview.models.InstanceViewStatus] - :param managed: If the availability set supports managed disks. - :type managed: bool """ _validation = { @@ -257,7 +255,6 @@ class AvailabilitySet(Resource): 'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'}, 'virtual_machines': {'key': 'properties.virtualMachines', 'type': '[SubResource]'}, 'statuses': {'key': 'properties.statuses', 'type': '[InstanceViewStatus]'}, - 'managed': {'key': 'properties.managed', 'type': 'bool'}, } def __init__( @@ -270,7 +267,6 @@ def __init__( self.platform_fault_domain_count = kwargs.get('platform_fault_domain_count', None) self.virtual_machines = kwargs.get('virtual_machines', None) self.statuses = None - self.managed = kwargs.get('managed', None) class AvailabilitySetListResult(msrest.serialization.Model): @@ -361,11 +357,11 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { - 'output': {'key': 'output', 'type': 'object'}, + 'output': {'key': 'output', 'type': 'str'}, } def __init__( @@ -560,7 +556,7 @@ class Disk(Resource): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :param account_type: the storage account type of the disk. Possible values include: - "Standard_LRS", "Premium_LRS". + "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS". :type account_type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.StorageAccountTypes :ivar time_created: The time when the disk was created. :vartype time_created: ~datetime.datetime @@ -730,7 +726,7 @@ class DiskUpdate(ResourceUpdate): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :param account_type: the storage account type of the disk. Possible values include: - "Standard_LRS", "Premium_LRS". + "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS". :type account_type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.StorageAccountTypes :param os_type: the Operating System type. Possible values include: "Windows", "Linux". :type os_type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.OperatingSystemTypes @@ -833,27 +829,49 @@ 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", - "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". + 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_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.v2016_04_30_preview.models.VirtualMachineSizeTypes """ @@ -1161,13 +1179,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] """ @@ -1428,7 +1446,7 @@ class ManagedDiskParameters(SubResource): :type id: str :param storage_account_type: Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: "Standard_LRS", - "Premium_LRS". + "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS". :type storage_account_type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.StorageAccountTypes """ @@ -1647,9 +1665,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 +1676,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 +1692,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 +1710,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. @@ -1847,7 +1860,7 @@ class Snapshot(Resource): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :param account_type: the storage account type of the disk. Possible values include: - "Standard_LRS", "Premium_LRS". + "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS". :type account_type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.StorageAccountTypes :ivar time_created: The time when the disk was created. :vartype time_created: ~datetime.datetime @@ -1946,7 +1959,7 @@ class SnapshotUpdate(ResourceUpdate): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :param account_type: the storage account type of the disk. Possible values include: - "Standard_LRS", "Premium_LRS". + "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS". :type account_type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.StorageAccountTypes :param os_type: the Operating System type. Possible values include: "Windows", "Linux". :type os_type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.OperatingSystemTypes @@ -2031,8 +2044,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 +2072,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] """ @@ -2138,7 +2150,7 @@ class UpgradePolicy(msrest.serialization.Model): 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". + "Manual", "Rolling". :type mode: str or ~azure.mgmt.compute.v2016_04_30_preview.models.UpgradeMode """ @@ -2227,9 +2239,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 +2353,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 +2365,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. @@ -2488,15 +2498,33 @@ def __init__( class VirtualMachineCaptureResult(SubResource): """Resource Id. + Variables are only populated by the server, and will be ignored when sending a request. + :param id: Resource Id. :type id: str - :param output: Operation output data (raw JSON). - :type output: object + :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: str + :ivar resources: a list of resource items of the captured virtual machine. + :vartype resources: list[str] """ + _validation = { + 'schema': {'readonly': True}, + 'content_version': {'readonly': True}, + 'parameters': {'readonly': True}, + 'resources': {'readonly': True}, + } + _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'output': {'key': 'properties.output', 'type': 'object'}, + 'schema': {'key': '$schema', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -2504,6 +2532,28 @@ def __init__( **kwargs ): super(VirtualMachineCaptureResult, self).__init__(**kwargs) + self.schema = None + self.content_version = None + self.parameters = None + self.resources = None + + +class VirtualMachineCaptureResultProperties(msrest.serialization.Model): + """Compute-specific operation properties, including output. + + :param output: Operation output data (raw JSON). + :type output: str + """ + + _attribute_map = { + 'output': {'key': 'output', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineCaptureResultProperties, self).__init__(**kwargs) self.output = kwargs.get('output', None) @@ -2539,10 +2589,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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -2569,8 +2619,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -2755,10 +2805,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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -2768,8 +2818,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -2795,16 +2845,15 @@ class VirtualMachineIdentity(msrest.serialization.Model): :vartype principal_id: str :ivar tenant_id: The tenant id associated with the virtual machine. :vartype tenant_id: str - :ivar type: The type of identity used for the virtual machine. Currently, the only supported - type is 'SystemAssigned', which implicitly creates an identity. Default value: - "SystemAssigned". - :vartype type: str + :param type: The type of identity used for the virtual machine. Currently, the only supported + type is 'SystemAssigned', which implicitly creates an identity. Possible values include: + "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", "None". + :type type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.ResourceIdentityType """ _validation = { 'principal_id': {'readonly': True}, 'tenant_id': {'readonly': True}, - 'type': {'constant': True}, } _attribute_map = { @@ -2813,8 +2862,6 @@ class VirtualMachineIdentity(msrest.serialization.Model): 'type': {'key': 'type', 'type': 'str'}, } - type = "SystemAssigned" - def __init__( self, **kwargs @@ -2822,6 +2869,7 @@ def __init__( super(VirtualMachineIdentity, self).__init__(**kwargs) self.principal_id = None self.tenant_id = None + self.type = kwargs.get('type', None) class VirtualMachineImageResource(SubResource): @@ -3028,9 +3076,9 @@ class VirtualMachineScaleSet(Resource): ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSetVMProfile :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param over_provision: Specifies whether the Virtual Machine Scale Set should be + :param overprovision: Specifies whether the Virtual Machine Scale Set should be overprovisioned. - :type over_provision: bool + :type overprovision: bool :param single_placement_group: When true this limits the scale set to a single placement group, of max size 100 virtual machines. :type single_placement_group: bool @@ -3056,7 +3104,7 @@ class VirtualMachineScaleSet(Resource): 'upgrade_policy': {'key': 'properties.upgradePolicy', 'type': 'UpgradePolicy'}, 'virtual_machine_profile': {'key': 'properties.virtualMachineProfile', 'type': 'VirtualMachineScaleSetVMProfile'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'over_provision': {'key': 'properties.overProvision', 'type': 'bool'}, + 'overprovision': {'key': 'properties.overprovision', 'type': 'bool'}, 'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'}, } @@ -3071,7 +3119,7 @@ def __init__( self.upgrade_policy = kwargs.get('upgrade_policy', None) self.virtual_machine_profile = kwargs.get('virtual_machine_profile', None) self.provisioning_state = None - self.over_provision = kwargs.get('over_provision', None) + self.overprovision = kwargs.get('overprovision', None) self.single_placement_group = kwargs.get('single_placement_group', None) @@ -3152,10 +3200,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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -3172,8 +3220,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -3221,16 +3269,15 @@ class VirtualMachineScaleSetIdentity(msrest.serialization.Model): :vartype principal_id: str :ivar tenant_id: The tenant id associated with the virtual machine scale set. :vartype tenant_id: str - :ivar type: The type of identity used for the virtual machine scale set. Currently, the only - supported type is 'SystemAssigned', which implicitly creates an identity. Default value: - "SystemAssigned". - :vartype type: str + :param type: The type of identity used for the virtual machine scale set. Currently, the only + supported type is 'SystemAssigned', which implicitly creates an identity. Possible values + include: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", "None". + :type type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.ResourceIdentityType """ _validation = { 'principal_id': {'readonly': True}, 'tenant_id': {'readonly': True}, - 'type': {'constant': True}, } _attribute_map = { @@ -3239,8 +3286,6 @@ class VirtualMachineScaleSetIdentity(msrest.serialization.Model): 'type': {'key': 'type', 'type': 'str'}, } - type = "SystemAssigned" - def __init__( self, **kwargs @@ -3248,6 +3293,7 @@ def __init__( super(VirtualMachineScaleSetIdentity, self).__init__(**kwargs) self.principal_id = None self.tenant_id = None + self.type = kwargs.get('type', None) class VirtualMachineScaleSetInstanceView(msrest.serialization.Model): @@ -3455,7 +3501,7 @@ class VirtualMachineScaleSetManagedDiskParameters(msrest.serialization.Model): :param storage_account_type: Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: "Standard_LRS", - "Premium_LRS". + "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS". :type storage_account_type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.StorageAccountTypes """ @@ -3609,12 +3655,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 +3671,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 +3871,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 +4311,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..94aee99a7fbb 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 @@ -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", @@ -257,8 +257,6 @@ class AvailabilitySet(Resource): :type virtual_machines: list[~azure.mgmt.compute.v2016_04_30_preview.models.SubResource] :ivar statuses: The resource status information. :vartype statuses: list[~azure.mgmt.compute.v2016_04_30_preview.models.InstanceViewStatus] - :param managed: If the availability set supports managed disks. - :type managed: bool """ _validation = { @@ -280,7 +278,6 @@ class AvailabilitySet(Resource): 'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'}, 'virtual_machines': {'key': 'properties.virtualMachines', 'type': '[SubResource]'}, 'statuses': {'key': 'properties.statuses', 'type': '[InstanceViewStatus]'}, - 'managed': {'key': 'properties.managed', 'type': 'bool'}, } def __init__( @@ -292,7 +289,6 @@ def __init__( platform_update_domain_count: Optional[int] = None, platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List["SubResource"]] = None, - managed: Optional[bool] = None, **kwargs ): super(AvailabilitySet, self).__init__(location=location, tags=tags, **kwargs) @@ -301,7 +297,6 @@ def __init__( self.platform_fault_domain_count = platform_fault_domain_count self.virtual_machines = virtual_machines self.statuses = None - self.managed = managed class AvailabilitySetListResult(msrest.serialization.Model): @@ -398,17 +393,17 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { - 'output': {'key': 'output', 'type': 'object'}, + 'output': {'key': 'output', 'type': 'str'}, } def __init__( self, *, - output: Optional[object] = None, + output: Optional[str] = None, **kwargs ): super(ComputeLongRunningOperationProperties, self).__init__(**kwargs) @@ -616,7 +611,7 @@ class Disk(Resource): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :param account_type: the storage account type of the disk. Possible values include: - "Standard_LRS", "Premium_LRS". + "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS". :type account_type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.StorageAccountTypes :ivar time_created: The time when the disk was created. :vartype time_created: ~datetime.datetime @@ -806,7 +801,7 @@ class DiskUpdate(ResourceUpdate): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :param account_type: the storage account type of the disk. Possible values include: - "Standard_LRS", "Premium_LRS". + "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS". :type account_type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.StorageAccountTypes :param os_type: the Operating System type. Possible values include: "Windows", "Linux". :type os_type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.OperatingSystemTypes @@ -923,27 +918,49 @@ 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", - "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". + 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_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.v2016_04_30_preview.models.VirtualMachineSizeTypes """ @@ -1287,13 +1304,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] """ @@ -1584,7 +1601,7 @@ class ManagedDiskParameters(SubResource): :type id: str :param storage_account_type: Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: "Standard_LRS", - "Premium_LRS". + "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS". :type storage_account_type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.StorageAccountTypes """ @@ -1823,9 +1840,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 +1851,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 +1867,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 +1885,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. @@ -2044,7 +2056,7 @@ class Snapshot(Resource): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :param account_type: the storage account type of the disk. Possible values include: - "Standard_LRS", "Premium_LRS". + "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS". :type account_type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.StorageAccountTypes :ivar time_created: The time when the disk was created. :vartype time_created: ~datetime.datetime @@ -2154,7 +2166,7 @@ class SnapshotUpdate(ResourceUpdate): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :param account_type: the storage account type of the disk. Possible values include: - "Standard_LRS", "Premium_LRS". + "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS". :type account_type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.StorageAccountTypes :param os_type: the Operating System type. Possible values include: "Windows", "Linux". :type os_type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.OperatingSystemTypes @@ -2250,8 +2262,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 +2293,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] """ @@ -2366,7 +2377,7 @@ class UpgradePolicy(msrest.serialization.Model): 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". + "Manual", "Rolling". :type mode: str or ~azure.mgmt.compute.v2016_04_30_preview.models.UpgradeMode """ @@ -2464,9 +2475,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 +2597,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 +2609,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. @@ -2753,25 +2762,66 @@ def __init__( class VirtualMachineCaptureResult(SubResource): """Resource Id. + Variables are only populated by the server, and will be ignored when sending a request. + :param id: Resource Id. :type id: str - :param output: Operation output data (raw JSON). - :type output: object + :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: str + :ivar resources: a list of resource items of the captured virtual machine. + :vartype resources: list[str] """ + _validation = { + 'schema': {'readonly': True}, + 'content_version': {'readonly': True}, + 'parameters': {'readonly': True}, + 'resources': {'readonly': True}, + } + _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'output': {'key': 'properties.output', 'type': 'object'}, + 'schema': {'key': '$schema', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( self, *, id: Optional[str] = None, - output: Optional[object] = None, **kwargs ): super(VirtualMachineCaptureResult, self).__init__(id=id, **kwargs) + self.schema = None + self.content_version = None + self.parameters = None + self.resources = None + + +class VirtualMachineCaptureResultProperties(msrest.serialization.Model): + """Compute-specific operation properties, including output. + + :param output: Operation output data (raw JSON). + :type output: str + """ + + _attribute_map = { + 'output': {'key': 'output', 'type': 'str'}, + } + + def __init__( + self, + *, + output: Optional[str] = None, + **kwargs + ): + super(VirtualMachineCaptureResultProperties, self).__init__(**kwargs) self.output = output @@ -2807,10 +2857,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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -2837,8 +2887,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -2853,8 +2903,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[str] = None, + protected_settings: Optional[str] = None, instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): @@ -3054,10 +3104,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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -3067,8 +3117,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -3080,8 +3130,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[str] = None, + protected_settings: Optional[str] = None, **kwargs ): super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) @@ -3103,16 +3153,15 @@ class VirtualMachineIdentity(msrest.serialization.Model): :vartype principal_id: str :ivar tenant_id: The tenant id associated with the virtual machine. :vartype tenant_id: str - :ivar type: The type of identity used for the virtual machine. Currently, the only supported - type is 'SystemAssigned', which implicitly creates an identity. Default value: - "SystemAssigned". - :vartype type: str + :param type: The type of identity used for the virtual machine. Currently, the only supported + type is 'SystemAssigned', which implicitly creates an identity. Possible values include: + "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", "None". + :type type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.ResourceIdentityType """ _validation = { 'principal_id': {'readonly': True}, 'tenant_id': {'readonly': True}, - 'type': {'constant': True}, } _attribute_map = { @@ -3121,15 +3170,16 @@ class VirtualMachineIdentity(msrest.serialization.Model): 'type': {'key': 'type', 'type': 'str'}, } - type = "SystemAssigned" - def __init__( self, + *, + type: Optional[Union[str, "ResourceIdentityType"]] = None, **kwargs ): super(VirtualMachineIdentity, self).__init__(**kwargs) self.principal_id = None self.tenant_id = None + self.type = type class VirtualMachineImageResource(SubResource): @@ -3361,9 +3411,9 @@ class VirtualMachineScaleSet(Resource): ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSetVMProfile :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param over_provision: Specifies whether the Virtual Machine Scale Set should be + :param overprovision: Specifies whether the Virtual Machine Scale Set should be overprovisioned. - :type over_provision: bool + :type overprovision: bool :param single_placement_group: When true this limits the scale set to a single placement group, of max size 100 virtual machines. :type single_placement_group: bool @@ -3389,7 +3439,7 @@ class VirtualMachineScaleSet(Resource): 'upgrade_policy': {'key': 'properties.upgradePolicy', 'type': 'UpgradePolicy'}, 'virtual_machine_profile': {'key': 'properties.virtualMachineProfile', 'type': 'VirtualMachineScaleSetVMProfile'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'over_provision': {'key': 'properties.overProvision', 'type': 'bool'}, + 'overprovision': {'key': 'properties.overprovision', 'type': 'bool'}, 'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'}, } @@ -3403,7 +3453,7 @@ def __init__( identity: Optional["VirtualMachineScaleSetIdentity"] = None, upgrade_policy: Optional["UpgradePolicy"] = None, virtual_machine_profile: Optional["VirtualMachineScaleSetVMProfile"] = None, - over_provision: Optional[bool] = None, + overprovision: Optional[bool] = None, single_placement_group: Optional[bool] = None, **kwargs ): @@ -3414,7 +3464,7 @@ def __init__( self.upgrade_policy = upgrade_policy self.virtual_machine_profile = virtual_machine_profile self.provisioning_state = None - self.over_provision = over_provision + self.overprovision = overprovision self.single_placement_group = single_placement_group @@ -3502,10 +3552,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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -3522,8 +3572,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -3535,8 +3585,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[str] = None, + protected_settings: Optional[str] = None, **kwargs ): super(VirtualMachineScaleSetExtension, self).__init__(**kwargs) @@ -3581,16 +3631,15 @@ class VirtualMachineScaleSetIdentity(msrest.serialization.Model): :vartype principal_id: str :ivar tenant_id: The tenant id associated with the virtual machine scale set. :vartype tenant_id: str - :ivar type: The type of identity used for the virtual machine scale set. Currently, the only - supported type is 'SystemAssigned', which implicitly creates an identity. Default value: - "SystemAssigned". - :vartype type: str + :param type: The type of identity used for the virtual machine scale set. Currently, the only + supported type is 'SystemAssigned', which implicitly creates an identity. Possible values + include: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", "None". + :type type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.ResourceIdentityType """ _validation = { 'principal_id': {'readonly': True}, 'tenant_id': {'readonly': True}, - 'type': {'constant': True}, } _attribute_map = { @@ -3599,15 +3648,16 @@ class VirtualMachineScaleSetIdentity(msrest.serialization.Model): 'type': {'key': 'type', 'type': 'str'}, } - type = "SystemAssigned" - def __init__( self, + *, + type: Optional[Union[str, "ResourceIdentityType"]] = None, **kwargs ): super(VirtualMachineScaleSetIdentity, self).__init__(**kwargs) self.principal_id = None self.tenant_id = None + self.type = type class VirtualMachineScaleSetInstanceView(msrest.serialization.Model): @@ -3833,7 +3883,7 @@ class VirtualMachineScaleSetManagedDiskParameters(msrest.serialization.Model): :param storage_account_type: Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Possible values include: "Standard_LRS", - "Premium_LRS". + "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS". :type storage_account_type: str or ~azure.mgmt.compute.v2016_04_30_preview.models.StorageAccountTypes """ @@ -4004,12 +4054,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 +4070,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 +4282,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 +4772,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/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/__init__.py index 1887a28bbe4c..9a6cd61e8d3f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/__init__.py @@ -9,11 +9,11 @@ from ._availability_sets_operations import AvailabilitySetsOperations from ._virtual_machine_extension_images_operations import VirtualMachineExtensionImagesOperations from ._virtual_machine_extensions_operations import VirtualMachineExtensionsOperations -from ._virtual_machines_operations import VirtualMachinesOperations from ._virtual_machine_images_operations import VirtualMachineImagesOperations from ._usage_operations import UsageOperations from ._virtual_machine_sizes_operations import VirtualMachineSizesOperations from ._images_operations import ImagesOperations +from ._virtual_machines_operations import VirtualMachinesOperations from ._virtual_machine_scale_sets_operations import VirtualMachineScaleSetsOperations from ._virtual_machine_scale_set_vms_operations import VirtualMachineScaleSetVMsOperations from ._disks_operations import DisksOperations @@ -23,11 +23,11 @@ 'AvailabilitySetsOperations', 'VirtualMachineExtensionImagesOperations', 'VirtualMachineExtensionsOperations', - 'VirtualMachinesOperations', 'VirtualMachineImagesOperations', 'UsageOperations', 'VirtualMachineSizesOperations', 'ImagesOperations', + 'VirtualMachinesOperations', 'VirtualMachineScaleSetsOperations', 'VirtualMachineScaleSetVMsOperations', 'DisksOperations', 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..fbc6b0134a1a 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 @@ -511,3 +511,67 @@ def get( 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.v2016_04_30_preview.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 = "2016-04-30-preview" + 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/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..43674aca32f3 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 @@ -47,70 +47,6 @@ def __init__(self, client, config, serializer, deserializer): self._deserialize = deserializer self._config = config - def get_extensions( - 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.v2016_04_30_preview.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 = "2016-04-30-preview" - accept = "application/json" - - # Construct URL - url = self.get_extensions.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 - get_extensions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions'} # type: ignore - def _capture_initial( self, resource_group_name, # type: str @@ -609,8 +545,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 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/_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/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/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..a2f8ac978f17 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 @@ -723,8 +723,8 @@ async def begin_convert_to_managed_disks( vm_name: str, **kwargs ) -> 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 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..0617408a429b 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,11 +357,11 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { - 'output': {'key': 'output', 'type': 'object'}, + 'output': {'key': 'output', 'type': 'str'}, } def __init__( @@ -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: str """ _validation = { @@ -2600,7 +2595,7 @@ class RunCommandResult(OperationStatusResponse): 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, 'error': {'key': 'error', 'type': 'ApiError'}, - 'output': {'key': 'properties.output', 'type': 'object'}, + 'output': {'key': 'properties.output', 'type': 'str'}, } def __init__( @@ -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,12 +3300,12 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'output': {'key': 'properties.output', 'type': 'object'}, + 'output': {'key': 'properties.output', 'type': 'str'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -3385,8 +3377,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -3584,8 +3576,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -4030,8 +4022,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': '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..9743c37d58e0 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 @@ -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,17 +393,17 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { - 'output': {'key': 'output', 'type': 'object'}, + 'output': {'key': 'output', 'type': 'str'}, } def __init__( self, *, - output: Optional[object] = None, + output: Optional[str] = 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: str """ _validation = { @@ -2846,13 +2841,13 @@ class RunCommandResult(OperationStatusResponse): 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, 'error': {'key': 'error', 'type': 'ApiError'}, - 'output': {'key': 'properties.output', 'type': 'object'}, + 'output': {'key': 'properties.output', 'type': 'str'}, } def __init__( self, *, - output: Optional[object] = None, + output: Optional[str] = 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,19 +3622,19 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'output': {'key': 'properties.output', 'type': 'object'}, + 'output': {'key': 'properties.output', 'type': 'str'}, } def __init__( self, *, id: Optional[str] = None, - output: Optional[object] = None, + output: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -3710,8 +3702,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -3940,8 +3932,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -4439,8 +4431,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': '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[str] = None, + protected_settings: Optional[str] = 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/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machines_operations.py index 78603fc758d4..cb2e3626ec52 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 @@ -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 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/_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/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_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/_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/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/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..9a47c6dba70b 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 @@ -1657,8 +1657,8 @@ async def begin_perform_maintenance( ) -> 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 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..ed8acbf7702c 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 @@ -851,8 +851,8 @@ async def begin_convert_to_managed_disks( vm_name: str, **kwargs ) -> 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 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..91074c713ea0 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,11 +415,11 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { - 'output': {'key': 'output', 'type': 'object'}, + 'output': {'key': 'output', 'type': 'str'}, } def __init__( @@ -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: str """ _validation = { @@ -2369,7 +2364,7 @@ class RunCommandResult(OperationStatusResponse): 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, 'error': {'key': 'error', 'type': 'ApiError'}, - 'output': {'key': 'properties.output', 'type': 'object'}, + 'output': {'key': 'properties.output', 'type': 'str'}, } def __init__( @@ -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,12 +3053,12 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'output': {'key': 'properties.output', 'type': 'object'}, + 'output': {'key': 'properties.output', 'type': 'str'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -3138,8 +3130,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -3337,8 +3329,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -3816,8 +3808,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': '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..be75c84b02b8 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 @@ -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,17 +461,17 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { - 'output': {'key': 'output', 'type': 'object'}, + 'output': {'key': 'output', 'type': 'str'}, } def __init__( self, *, - output: Optional[object] = None, + output: Optional[str] = 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: str """ _validation = { @@ -2599,13 +2594,13 @@ class RunCommandResult(OperationStatusResponse): 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, 'error': {'key': 'error', 'type': 'ApiError'}, - 'output': {'key': 'properties.output', 'type': 'object'}, + 'output': {'key': 'properties.output', 'type': 'str'}, } def __init__( self, *, - output: Optional[object] = None, + output: Optional[str] = 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,19 +3346,19 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: str """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'output': {'key': 'properties.output', 'type': 'object'}, + 'output': {'key': 'properties.output', 'type': 'str'}, } def __init__( self, *, id: Optional[str] = None, - output: Optional[object] = None, + output: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -3434,8 +3426,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -3664,8 +3656,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -4205,8 +4197,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': '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[str] = None, + protected_settings: Optional[str] = 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/_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..7bf954689f36 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 @@ -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 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..905d6f783879 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 @@ -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 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/_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/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/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..4b7e6c24079a 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 @@ -1580,8 +1580,8 @@ async def begin_perform_maintenance( ) -> 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 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..f51865ba8ffd 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 @@ -771,8 +771,8 @@ async def begin_convert_to_managed_disks( vm_name: str, **kwargs ) -> 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 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..656542c755b8 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: str :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[str] """ _validation = { @@ -3713,8 +3705,8 @@ class VirtualMachineCaptureResult(SubResource): '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]'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -3789,8 +3781,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -3988,8 +3980,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -4473,8 +4465,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': '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..79d713af4e75 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 @@ -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: str :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[str] """ _validation = { @@ -4079,8 +4071,8 @@ class VirtualMachineCaptureResult(SubResource): '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]'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -4157,8 +4149,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -4387,8 +4379,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -4935,8 +4927,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': '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[str] = None, + protected_settings: Optional[str] = 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/_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..c4676f6ad244 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 @@ -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 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..7e0f36e373ad 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 @@ -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 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/_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/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/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..35de197c2849 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 @@ -1580,8 +1580,8 @@ async def begin_perform_maintenance( ) -> 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 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..c65c22450dd0 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 @@ -46,8 +46,8 @@ def list( location: str, **kwargs ) -> 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..40b9f0f07bac 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 @@ -771,8 +771,8 @@ async def begin_convert_to_managed_disks( vm_name: str, **kwargs ) -> 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 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..7deddcfdaf89 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: str :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[str] """ _validation = { @@ -4665,8 +4655,8 @@ class VirtualMachineCaptureResult(SubResource): '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]'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -4741,8 +4731,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -4940,8 +4930,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -5449,8 +5439,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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..1a7b542dab95 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 @@ -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: str :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[str] """ _validation = { @@ -5107,8 +5097,8 @@ class VirtualMachineCaptureResult(SubResource): '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]'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -5185,8 +5175,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -5415,8 +5405,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -5989,8 +5979,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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/_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..5a904a6f3ca1 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 @@ -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 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..0885a678536d 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 @@ -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 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/_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/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_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/_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/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/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..8a1c63b5d22b 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 @@ -1580,8 +1580,8 @@ async def begin_perform_maintenance( ) -> 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 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..3c89dfd5df30 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 @@ -46,8 +46,8 @@ def list( location: str, **kwargs ) -> 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..7e340c3d0f26 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 @@ -771,8 +771,8 @@ async def begin_convert_to_managed_disks( vm_name: str, **kwargs ) -> 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 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..d1b6f95d8273 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: str :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[str] """ _validation = { @@ -3269,8 +3261,8 @@ class VirtualMachineCaptureResult(SubResource): '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]'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -3345,8 +3337,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -3544,8 +3536,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -4068,8 +4060,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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..fb3564a9e9d4 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 @@ -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: str :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[str] """ _validation = { @@ -3585,8 +3577,8 @@ class VirtualMachineCaptureResult(SubResource): '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]'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -3663,8 +3655,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -3893,8 +3885,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -4485,8 +4477,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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/_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..76679ae0bb5b 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 @@ -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 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..cf927e26ee3f 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 @@ -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 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/_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/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/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..c3be06fb7c87 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 @@ -1589,8 +1589,8 @@ async def begin_perform_maintenance( ) -> 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 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..47992b6c7dfe 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 @@ -46,8 +46,8 @@ def list( location: str, **kwargs ) -> 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..542efd44f343 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 @@ -771,8 +771,8 @@ async def begin_convert_to_managed_disks( vm_name: str, **kwargs ) -> 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 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..8d028b139e88 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: str :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[str] """ _validation = { @@ -5716,8 +5708,8 @@ class VirtualMachineCaptureResult(SubResource): '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]'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -5792,8 +5784,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -5991,8 +5983,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -6537,8 +6529,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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..3ca6eacc9feb 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 @@ -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: str :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[str] """ _validation = { @@ -6263,8 +6255,8 @@ class VirtualMachineCaptureResult(SubResource): '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]'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -6341,8 +6333,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -6571,8 +6563,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -7189,8 +7181,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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/_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..fdf8ab41a8f9 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 @@ -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 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..dc5c09a242a1 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 @@ -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 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/_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/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_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/_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/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/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..8aa5049a6320 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 @@ -1589,8 +1589,8 @@ async def begin_perform_maintenance( ) -> 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 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..6f00647e307b 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 @@ -46,8 +46,8 @@ def list( location: str, **kwargs ) -> 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..98e34e4566d2 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 @@ -772,13 +772,12 @@ async def begin_convert_to_managed_disks( vm_name: str, **kwargs ) -> 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 @@ -951,10 +950,10 @@ async def generalize( ) -> 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 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..f7fc07c223b3 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: str :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[str] """ _validation = { @@ -6341,8 +6334,8 @@ class VirtualMachineCaptureResult(SubResource): '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]'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -6417,8 +6410,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -6616,8 +6609,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -7179,8 +7172,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -7305,8 +7298,8 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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..f897fb58977f 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 @@ -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: str :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[str] """ _validation = { @@ -6975,8 +6968,8 @@ class VirtualMachineCaptureResult(SubResource): '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]'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -7053,8 +7046,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -7283,8 +7276,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -7920,8 +7913,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -8061,8 +8054,8 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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/_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..8caec78822eb 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 @@ -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 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..87a17b12e725 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 @@ -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 @@ -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 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/_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/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_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/_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/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/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..b387adfa523c 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 @@ -1589,8 +1589,8 @@ async def begin_perform_maintenance( ) -> 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 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..7e347df76c55 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 @@ -46,8 +46,8 @@ def list( location: str, **kwargs ) -> 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..ca6310ae4461 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 @@ -772,13 +772,12 @@ async def begin_convert_to_managed_disks( vm_name: str, **kwargs ) -> 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 @@ -951,10 +950,10 @@ async def generalize( ) -> 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 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..94419cbce560 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: str :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[str] """ _validation = { @@ -5839,8 +5831,8 @@ class VirtualMachineCaptureResult(SubResource): '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]'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -5915,8 +5907,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -6114,8 +6106,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -6678,8 +6670,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -6804,8 +6796,8 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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..3d8d29576bd4 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 @@ -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: str :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[str] """ _validation = { @@ -6410,8 +6402,8 @@ class VirtualMachineCaptureResult(SubResource): '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]'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -6488,8 +6480,8 @@ class VirtualMachineExtension(Resource): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -6718,8 +6710,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -7356,8 +7348,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -7497,8 +7489,8 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): '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'}, - 'settings': {'key': 'properties.settings', 'type': 'object'}, - 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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/_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..4d7069b14c96 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 @@ -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 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..16fb8461b8d0 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 @@ -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 @@ -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 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/_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/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_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/_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/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/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..8d07c39c0300 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 @@ -1589,8 +1589,8 @@ async def begin_perform_maintenance( ) -> 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 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..8194a97ec911 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 @@ -46,8 +46,8 @@ def list( location: str, **kwargs ) -> 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..a8b4300dc8ff 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 @@ -780,8 +780,8 @@ async def begin_convert_to_managed_disks( vm_name: str, **kwargs ) -> 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 @@ -954,10 +954,10 @@ async def generalize( ) -> 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 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..786f0c93c54a 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: str :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[str] """ _validation = { @@ -4652,8 +4646,8 @@ class VirtualMachineCaptureResult(SubResource): '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]'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -4732,8 +4726,8 @@ class VirtualMachineExtension(Resource): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -4936,8 +4930,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -5835,8 +5829,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -5973,8 +5967,8 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -7519,8 +7507,8 @@ class VirtualMachineScaleSetVMExtension(SubResourceReadOnly): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _validation = { @@ -7645,8 +7633,8 @@ class VirtualMachineScaleSetVMExtensionUpdate(SubResourceReadOnly): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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..25ea85160f9b 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 @@ -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: str :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[str] """ _validation = { @@ -5078,8 +5072,8 @@ class VirtualMachineCaptureResult(SubResource): '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]'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -5160,8 +5154,8 @@ class VirtualMachineExtension(Resource): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -5396,8 +5390,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -6415,8 +6409,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -6570,8 +6564,8 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -8295,8 +8283,8 @@ class VirtualMachineScaleSetVMExtension(SubResourceReadOnly): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _validation = { @@ -8433,8 +8421,8 @@ class VirtualMachineScaleSetVMExtensionUpdate(SubResourceReadOnly): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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[str] = None, + protected_settings: Optional[str] = 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/_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..b35829b97f0c 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 @@ -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 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..2a832996df2d 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 @@ -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 @@ -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 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/_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/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_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/_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/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_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/_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/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_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/_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/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/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..db15c765dbe8 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 @@ -1674,8 +1674,8 @@ async def begin_perform_maintenance( ) -> 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 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..a58188e81f69 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 @@ -46,8 +46,8 @@ def list( location: str, **kwargs ) -> 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..04230b38b1d3 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 @@ -776,8 +776,8 @@ async def begin_convert_to_managed_disks( vm_name: str, **kwargs ) -> 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 @@ -950,10 +950,10 @@ async def generalize( ) -> 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 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..1adc947dda90 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: str :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[str] """ _validation = { @@ -6635,8 +6628,8 @@ class VirtualMachineCaptureResult(SubResource): '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]'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -6715,8 +6708,8 @@ class VirtualMachineExtension(Resource): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -6919,8 +6912,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -8006,8 +7999,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -8144,8 +8137,8 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -9691,8 +9678,8 @@ class VirtualMachineScaleSetVMExtension(SubResourceReadOnly): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _validation = { @@ -9817,8 +9804,8 @@ class VirtualMachineScaleSetVMExtensionUpdate(SubResourceReadOnly): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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..37f8a5e314b6 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 @@ -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: str :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[str] """ _validation = { @@ -7255,8 +7248,8 @@ class VirtualMachineCaptureResult(SubResource): '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]'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'resources': {'key': 'resources', 'type': '[str]'}, } def __init__( @@ -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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -7337,8 +7330,8 @@ class VirtualMachineExtension(Resource): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _attribute_map = { @@ -7573,8 +7566,8 @@ class VirtualMachineExtensionUpdate(UpdateResource): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -8793,8 +8786,8 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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 @@ -8948,8 +8941,8 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str :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. @@ -10674,8 +10661,8 @@ class VirtualMachineScaleSetVMExtension(SubResourceReadOnly): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } @@ -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[str] = None, + protected_settings: Optional[str] = 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: str :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: str """ _validation = { @@ -10812,8 +10799,8 @@ class VirtualMachineScaleSetVMExtensionUpdate(SubResourceReadOnly): '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'}, + 'settings': {'key': 'properties.settings', 'type': 'str'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'str'}, } def __init__( @@ -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[str] = None, + protected_settings: Optional[str] = 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/_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..8f224d2f0acd 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 @@ -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 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..0a4dca208297 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 @@ -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 @@ -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 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..4951b0673ade 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 @@ -76,6 +77,24 @@ def __init__( self.cloud_service_operating_systems = CloudServiceOperatingSystemsOperations( 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/v2021_03_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_metadata.json index 41965868dd36..1680e9ed4956 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": { @@ -103,11 +103,5 @@ "cloud_services": "CloudServicesOperations", "cloud_services_update_domain": "CloudServicesUpdateDomainOperations", "cloud_service_operating_systems": "CloudServiceOperatingSystemsOperations" - }, - "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/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..e07e0d200436 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 @@ -73,6 +74,23 @@ def __init__( self.cloud_service_operating_systems = CloudServiceOperatingSystemsOperations( 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()