From f3671ddc4679cf29be5fc4dfbfacee91d118e2ea Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 17 Jun 2021 13:43:58 +0000 Subject: [PATCH] CodeGen from PR 14873 in Azure/azure-rest-api-specs Revert "Adding stable swaggers (#14804)" (#14873) This reverts commit c8d85bc3e4f72149aa90ed8083c6e8eb052953da. --- .../azure-mgmt-hybridnetwork/_meta.json | 11 +-- .../_hybrid_network_management_client.py | 19 +++++ .../azure/mgmt/hybridnetwork/_metadata.json | 10 +-- .../aio/_hybrid_network_management_client.py | 18 +++++ .../aio/operations/_devices_operations.py | 42 +++++------ ...network_function_vendor_skus_operations.py | 4 +- .../_network_function_vendors_operations.py | 2 +- .../_network_functions_operations.py | 38 +++++----- .../aio/operations/_operations.py | 2 +- .../operations/_role_instances_operations.py | 28 ++++---- .../_vendor_network_functions_operations.py | 12 ++-- .../_vendor_sku_preview_operations.py | 20 +++--- .../aio/operations/_vendor_skus_operations.py | 20 +++--- .../aio/operations/_vendors_operations.py | 20 +++--- .../mgmt/hybridnetwork/models/_models.py | 54 +++++++------- .../mgmt/hybridnetwork/models/_models_py3.py | 72 +++++++++---------- .../operations/_devices_operations.py | 24 +++---- .../_network_functions_operations.py | 22 +++--- .../operations/_role_instances_operations.py | 12 ++-- .../_vendor_network_functions_operations.py | 4 +- .../_vendor_sku_preview_operations.py | 8 +-- .../operations/_vendor_skus_operations.py | 8 +-- .../operations/_vendors_operations.py | 8 +-- 23 files changed, 242 insertions(+), 216 deletions(-) diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/_meta.json b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/_meta.json index 5bf2ebd2e31f..1ae2f963915a 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/_meta.json +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/_meta.json @@ -1,8 +1,11 @@ { - "autorest": "3.0.6369", - "use": "@autorest/python@5.6.2", - "commit": "5d89c9807d3e84a5890b381a68a308198f9ef141", + "autorest": "3.4.2", + "use": [ + "@autorest/python@5.8.0", + "@autorest/modelerfour@4.19.2" + ], + "commit": "752ca4a79d1e587d95567a62d98b63f55bd6fced", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/hybridnetwork/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/hybridnetwork/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.2 --version=3.4.2", "readme": "specification/hybridnetwork/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/_hybrid_network_management_client.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/_hybrid_network_management_client.py index 5cfbeffa4052..13b9fa8037e4 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/_hybrid_network_management_client.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/_hybrid_network_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 HybridNetworkManagementClientConfiguration from .operations import NetworkFunctionsOperations @@ -101,6 +102,24 @@ def __init__( self.role_instances = RoleInstancesOperations( 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', min_length=1), + } + 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/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/_metadata.json b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/_metadata.json index 4eb475b1ef1c..1a8183e8242a 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/_metadata.json +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/_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\": [\"HybridNetworkManagementClientConfiguration\"]}}, \"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\": [\"HybridNetworkManagementClientConfiguration\"]}}, \"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\": [\"HybridNetworkManagementClientConfiguration\"]}}, \"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\": [\"HybridNetworkManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -108,11 +108,5 @@ "network_function_vendor_skus": "NetworkFunctionVendorSkusOperations", "vendor_network_functions": "VendorNetworkFunctionsOperations", "role_instances": "RoleInstancesOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/_hybrid_network_management_client.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/_hybrid_network_management_client.py index be1bc4d57771..46119263a569 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/_hybrid_network_management_client.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/_hybrid_network_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 @@ -98,6 +99,23 @@ def __init__( self.role_instances = RoleInstancesOperations( 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', min_length=1), + } + 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/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_devices_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_devices_operations.py index 408cec5bd9ea..7c0c1574a589 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_devices_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_devices_operations.py @@ -47,7 +47,7 @@ async def _delete_initial( self, resource_group_name: str, device_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -60,7 +60,7 @@ async def _delete_initial( # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'deviceName': self._serialize.url("device_name", device_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -92,7 +92,7 @@ async def begin_delete( self, resource_group_name: str, device_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the specified device. @@ -102,8 +102,8 @@ async def begin_delete( :type device_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -133,7 +133,7 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, None, {}) path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'deviceName': self._serialize.url("device_name", device_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -156,7 +156,7 @@ async def get( self, resource_group_name: str, device_name: str, - **kwargs + **kwargs: Any ) -> "_models.Device": """Gets information about the specified device. @@ -180,7 +180,7 @@ async def get( # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'deviceName': self._serialize.url("device_name", device_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -216,7 +216,7 @@ async def _create_or_update_initial( resource_group_name: str, device_name: str, parameters: "_models.Device", - **kwargs + **kwargs: Any ) -> "_models.Device": cls = kwargs.pop('cls', None) # type: ClsType["_models.Device"] error_map = { @@ -230,7 +230,7 @@ async def _create_or_update_initial( # Construct URL url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'deviceName': self._serialize.url("device_name", device_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -274,7 +274,7 @@ async def begin_create_or_update( resource_group_name: str, device_name: str, parameters: "_models.Device", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Device"]: """Creates or updates a device. @@ -286,8 +286,8 @@ async def begin_create_or_update( :type parameters: ~hybrid_network_management_client.models.Device :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Device or the result of cls(response) @@ -321,7 +321,7 @@ def get_long_running_output(pipeline_response): return deserialized path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'deviceName': self._serialize.url("device_name", device_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -345,7 +345,7 @@ async def update_tags( resource_group_name: str, device_name: str, parameters: "_models.TagsObject", - **kwargs + **kwargs: Any ) -> "_models.Device": """Updates device tags. @@ -372,7 +372,7 @@ async def update_tags( # Construct URL url = self.update_tags.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'deviceName': self._serialize.url("device_name", device_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -409,7 +409,7 @@ async def update_tags( def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeviceListResult"]: """Lists all the devices in a subscription. @@ -477,7 +477,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DeviceListResult"]: """Lists all the device resource in a resource group. @@ -505,7 +505,7 @@ def prepare_request(next_link=None): # Construct URL url = self.list_by_resource_group.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } url = self._client.format_url(url, **path_format_arguments) @@ -549,7 +549,7 @@ async def list_registration_key( self, resource_group_name: str, device_name: str, - **kwargs + **kwargs: Any ) -> "_models.DeviceRegistrationKey": """List the registration key for the device. @@ -573,7 +573,7 @@ async def list_registration_key( # Construct URL url = self.list_registration_key.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'deviceName': self._serialize.url("device_name", device_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_network_function_vendor_skus_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_network_function_vendor_skus_operations.py index 7f2c19e2fcef..59732d95c306 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_network_function_vendor_skus_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_network_function_vendor_skus_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_vendor( self, vendor_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.NetworkFunctionSkuListResult"]: """Lists all network function vendor sku details in a vendor. @@ -116,7 +116,7 @@ def list_by_sku( self, vendor_name: str, vendor_sku_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.NetworkFunctionSkuDetails"]: """Lists information about network function vendor sku details. diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_network_function_vendors_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_network_function_vendors_operations.py index 6a45d3b5e389..522289589c51 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_network_function_vendors_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_network_function_vendors_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.NetworkFunctionVendorListResult"]: """Lists all the available vendor and sku information. diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_network_functions_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_network_functions_operations.py index a5a13f8894e6..f1c7ff449d73 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_network_functions_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_network_functions_operations.py @@ -47,7 +47,7 @@ async def _delete_initial( self, resource_group_name: str, network_function_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -60,7 +60,7 @@ async def _delete_initial( # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'networkFunctionName': self._serialize.url("network_function_name", network_function_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -92,7 +92,7 @@ async def begin_delete( self, resource_group_name: str, network_function_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the specified network function resource. @@ -102,8 +102,8 @@ async def begin_delete( :type network_function_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -133,7 +133,7 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, None, {}) path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'networkFunctionName': self._serialize.url("network_function_name", network_function_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -156,7 +156,7 @@ async def get( self, resource_group_name: str, network_function_name: str, - **kwargs + **kwargs: Any ) -> "_models.NetworkFunction": """Gets information about the specified network function resource. @@ -180,7 +180,7 @@ async def get( # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'networkFunctionName': self._serialize.url("network_function_name", network_function_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -216,7 +216,7 @@ async def _create_or_update_initial( resource_group_name: str, network_function_name: str, parameters: "_models.NetworkFunction", - **kwargs + **kwargs: Any ) -> "_models.NetworkFunction": cls = kwargs.pop('cls', None) # type: ClsType["_models.NetworkFunction"] error_map = { @@ -230,7 +230,7 @@ async def _create_or_update_initial( # Construct URL url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'networkFunctionName': self._serialize.url("network_function_name", network_function_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -274,7 +274,7 @@ async def begin_create_or_update( resource_group_name: str, network_function_name: str, parameters: "_models.NetworkFunction", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.NetworkFunction"]: """Creates or updates a network function resource. @@ -287,8 +287,8 @@ async def begin_create_or_update( :type parameters: ~hybrid_network_management_client.models.NetworkFunction :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either NetworkFunction or the result of cls(response) @@ -322,7 +322,7 @@ def get_long_running_output(pipeline_response): return deserialized path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'networkFunctionName': self._serialize.url("network_function_name", network_function_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -346,7 +346,7 @@ async def update_tags( resource_group_name: str, network_function_name: str, parameters: "_models.TagsObject", - **kwargs + **kwargs: Any ) -> "_models.NetworkFunction": """Updates the tags for the network function resource. @@ -373,7 +373,7 @@ async def update_tags( # Construct URL url = self.update_tags.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'networkFunctionName': self._serialize.url("network_function_name", network_function_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -410,7 +410,7 @@ async def update_tags( def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.NetworkFunctionListResult"]: """Lists all the network functions in a subscription. @@ -478,7 +478,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.NetworkFunctionListResult"]: """Lists all the network function resources in a resource group. @@ -506,7 +506,7 @@ def prepare_request(next_link=None): # Construct URL url = self.list_by_resource_group.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } url = self._client.format_url(url, **path_format_arguments) diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_operations.py index 98991f13a89f..606cd338439c 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationList"]: """Gets a list of the operations. diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_role_instances_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_role_instances_operations.py index ddd1bb4df5b3..52a5baaee970 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_role_instances_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_role_instances_operations.py @@ -49,7 +49,7 @@ async def _start_initial( vendor_name: str, service_key: str, role_instance_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -98,7 +98,7 @@ async def begin_start( vendor_name: str, service_key: str, role_instance_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a role instance of a vendor network function. @@ -113,8 +113,8 @@ async def begin_start( :type role_instance_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -173,7 +173,7 @@ async def _stop_initial( vendor_name: str, service_key: str, role_instance_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -222,7 +222,7 @@ async def begin_stop( vendor_name: str, service_key: str, role_instance_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Powers off (stop) a role instance of a vendor network function. @@ -237,8 +237,8 @@ async def begin_stop( :type role_instance_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -297,7 +297,7 @@ async def _restart_initial( vendor_name: str, service_key: str, role_instance_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -346,7 +346,7 @@ async def begin_restart( vendor_name: str, service_key: str, role_instance_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts a role instance of a vendor network function. @@ -361,8 +361,8 @@ async def begin_restart( :type role_instance_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -421,7 +421,7 @@ async def get( vendor_name: str, service_key: str, role_instance_name: str, - **kwargs + **kwargs: Any ) -> "_models.RoleInstance": """Gets the information of role instance of vendor network function. @@ -488,7 +488,7 @@ def list( location_name: str, vendor_name: str, service_key: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.NetworkFunctionRoleInstanceListResult"]: """Lists the information of role instances of vendor network function. diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_vendor_network_functions_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_vendor_network_functions_operations.py index 65055468b9ba..27929786dc4b 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_vendor_network_functions_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_vendor_network_functions_operations.py @@ -48,7 +48,7 @@ async def get( location_name: str, vendor_name: str, service_key: str, - **kwargs + **kwargs: Any ) -> "_models.VendorNetworkFunction": """Gets information about the specified vendor network function. @@ -113,7 +113,7 @@ async def _create_or_update_initial( vendor_name: str, service_key: str, parameters: "_models.VendorNetworkFunction", - **kwargs + **kwargs: Any ) -> "_models.VendorNetworkFunction": cls = kwargs.pop('cls', None) # type: ClsType["_models.VendorNetworkFunction"] error_map = { @@ -173,7 +173,7 @@ async def begin_create_or_update( vendor_name: str, service_key: str, parameters: "_models.VendorNetworkFunction", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VendorNetworkFunction"]: """Creates or updates a vendor network function. @@ -189,8 +189,8 @@ async def begin_create_or_update( :type parameters: ~hybrid_network_management_client.models.VendorNetworkFunction :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VendorNetworkFunction or the result of cls(response) @@ -250,7 +250,7 @@ def list( location_name: str, vendor_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VendorNetworkFunctionListResult"]: """Lists all the vendor network function sub resources in an Azure region, filtered by skuType, skuName, vendorProvisioningState. diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_vendor_sku_preview_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_vendor_sku_preview_operations.py index 218bf2a64cd2..743f27acdf99 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_vendor_sku_preview_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_vendor_sku_preview_operations.py @@ -47,7 +47,7 @@ def list( self, vendor_name: str, sku_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PreviewSubscriptionsList"]: """Lists all the preview information of a vendor sku. @@ -124,7 +124,7 @@ async def _create_or_update_initial( sku_name: str, preview_subscription: str, parameters: "_models.PreviewSubscription", - **kwargs + **kwargs: Any ) -> "_models.PreviewSubscription": cls = kwargs.pop('cls', None) # type: ClsType["_models.PreviewSubscription"] error_map = { @@ -184,7 +184,7 @@ async def begin_create_or_update( sku_name: str, preview_subscription: str, parameters: "_models.PreviewSubscription", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.PreviewSubscription"]: """Creates or updates preview information of a vendor sku. @@ -199,8 +199,8 @@ async def begin_create_or_update( :type parameters: ~hybrid_network_management_client.models.PreviewSubscription :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either PreviewSubscription or the result of cls(response) @@ -260,7 +260,7 @@ async def get( vendor_name: str, sku_name: str, preview_subscription: str, - **kwargs + **kwargs: Any ) -> "_models.PreviewSubscription": """Gets the preview information of a vendor sku. @@ -323,7 +323,7 @@ async def _delete_initial( vendor_name: str, sku_name: str, preview_subscription: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -370,7 +370,7 @@ async def begin_delete( vendor_name: str, sku_name: str, preview_subscription: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the preview information of a vendor sku. @@ -382,8 +382,8 @@ async def begin_delete( :type preview_subscription: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_vendor_skus_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_vendor_skus_operations.py index ffa137bfe076..f9e115d68c7d 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_vendor_skus_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_vendor_skus_operations.py @@ -47,7 +47,7 @@ async def _delete_initial( self, vendor_name: str, sku_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -92,7 +92,7 @@ async def begin_delete( self, vendor_name: str, sku_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the specified sku. @@ -102,8 +102,8 @@ async def begin_delete( :type sku_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -156,7 +156,7 @@ async def get( self, vendor_name: str, sku_name: str, - **kwargs + **kwargs: Any ) -> "_models.VendorSku": """Gets information about the specified sku. @@ -216,7 +216,7 @@ async def _create_or_update_initial( vendor_name: str, sku_name: str, parameters: "_models.VendorSku", - **kwargs + **kwargs: Any ) -> "_models.VendorSku": cls = kwargs.pop('cls', None) # type: ClsType["_models.VendorSku"] error_map = { @@ -274,7 +274,7 @@ async def begin_create_or_update( vendor_name: str, sku_name: str, parameters: "_models.VendorSku", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VendorSku"]: """Creates or updates a sku. @@ -286,8 +286,8 @@ async def begin_create_or_update( :type parameters: ~hybrid_network_management_client.models.VendorSku :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VendorSku or the result of cls(response) @@ -343,7 +343,7 @@ def get_long_running_output(pipeline_response): def list( self, vendor_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VendorSkuListResult"]: """Lists all the skus of a vendor. diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_vendors_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_vendors_operations.py index 2570591a005e..43161beb7c56 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_vendors_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/operations/_vendors_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def _delete_initial( self, vendor_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -89,7 +89,7 @@ async def _delete_initial( async def begin_delete( self, vendor_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the specified vendor. @@ -97,8 +97,8 @@ async def begin_delete( :type vendor_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -148,7 +148,7 @@ def get_long_running_output(pipeline_response): async def get( self, vendor_name: str, - **kwargs + **kwargs: Any ) -> "_models.Vendor": """Gets information about the specified vendor. @@ -204,7 +204,7 @@ async def _create_or_update_initial( self, vendor_name: str, parameters: Optional["_models.Vendor"] = None, - **kwargs + **kwargs: Any ) -> "_models.Vendor": cls = kwargs.pop('cls', None) # type: ClsType["_models.Vendor"] error_map = { @@ -263,7 +263,7 @@ async def begin_create_or_update( self, vendor_name: str, parameters: Optional["_models.Vendor"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Vendor"]: """Creates or updates a vendor. @@ -273,8 +273,8 @@ async def begin_create_or_update( :type parameters: ~hybrid_network_management_client.models.Vendor :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Vendor or the result of cls(response) @@ -327,7 +327,7 @@ def get_long_running_output(pipeline_response): def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VendorListResult"]: """Lists all the vendors in a subscription. diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/models/_models.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/models/_models.py index 335150b78364..17b381b8fc57 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/models/_models.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/models/_models.py @@ -327,7 +327,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: object + :vartype info: any """ _validation = { @@ -516,7 +516,7 @@ class NetworkFunction(TrackedResource): :ivar managed_application: The resource URI of the managed application. :vartype managed_application: ~hybrid_network_management_client.models.SubResource :param managed_application_parameters: The parameters for the managed application. - :type managed_application_parameters: object + :type managed_application_parameters: any :param network_function_user_configurations: The network function configurations from the user. :type network_function_user_configurations: list[~hybrid_network_management_client.models.NetworkFunctionUserConfiguration] @@ -622,10 +622,10 @@ class NetworkFunctionRoleConfiguration(msrest.serialization.Model): :type os_profile: ~hybrid_network_management_client.models.OsProfile :param user_data_template: The user data template for customers. This is a json schema template describing the format and data type of user data parameters. - :type user_data_template: object + :type user_data_template: any :param user_data_parameters: The user parameters for customers. The format of user data parameters has to be matched with the provided user data template. - :type user_data_parameters: object + :type user_data_parameters: any :param network_interfaces: The network interface configurations. :type network_interfaces: list[~hybrid_network_management_client.models.NetworkInterface] :param storage_profile: Specifies the storage settings for the virtual machine disks. @@ -761,9 +761,9 @@ class NetworkFunctionSkuRoleDetails(msrest.serialization.Model): :param role_name: The name of the network function role. :type role_name: str :param user_data_template: The user data template for customers. - :type user_data_template: object + :type user_data_template: any :param user_data_parameters: The user parameters for customers. - :type user_data_parameters: object + :type user_data_parameters: any :param network_interfaces: The network interface configuration. :type network_interfaces: list[~hybrid_network_management_client.models.NetworkInterface] """ @@ -812,7 +812,7 @@ class NetworkFunctionUserConfiguration(msrest.serialization.Model): :param role_name: The name of the network function role. :type role_name: str :param user_data_parameters: The user data parameters from the customer. - :type user_data_parameters: object + :type user_data_parameters: any :param network_interfaces: The network interface configuration. :type network_interfaces: list[~hybrid_network_management_client.models.NetworkInterface] :param os_profile: Specifies the operating system settings for the role instance. @@ -849,9 +849,8 @@ class NetworkFunctionUserConfigurationOsProfile(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 """ @@ -900,7 +899,7 @@ class NetworkFunctionVendorConfiguration(msrest.serialization.Model): :param os_profile: Specifies the operating system settings for the role instance. :type os_profile: ~hybrid_network_management_client.models.OsProfile :ivar user_data_parameters: The user parameters from the customer. - :vartype user_data_parameters: object + :vartype user_data_parameters: any :param network_interfaces: The network interface configurations. :type network_interfaces: list[~hybrid_network_management_client.models.NetworkInterface] """ @@ -1166,20 +1165,19 @@ 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 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: ~hybrid_network_management_client.models.LinuxConfiguration :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 @@ -1189,9 +1187,8 @@ 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 custom_data_required: Indicates if custom data is required to deploy this role. :type custom_data_required: bool @@ -1398,8 +1395,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 """ @@ -1679,9 +1675,9 @@ class VendorSku(ProxyResource): :type preview: bool :param managed_application_parameters: The parameters for the managed application to be supplied by the vendor. - :type managed_application_parameters: object + :type managed_application_parameters: any :param managed_application_template: The template for the managed application deployment. - :type managed_application_template: object + :type managed_application_template: any :param network_function_template: The template definition of the network function. :type network_function_template: ~hybrid_network_management_client.models.NetworkFunctionTemplate diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/models/_models_py3.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/models/_models_py3.py index fe5245b03e82..911066969295 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/models/_models_py3.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization @@ -348,7 +348,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: object + :vartype info: any """ _validation = { @@ -547,7 +547,7 @@ class NetworkFunction(TrackedResource): :ivar managed_application: The resource URI of the managed application. :vartype managed_application: ~hybrid_network_management_client.models.SubResource :param managed_application_parameters: The parameters for the managed application. - :type managed_application_parameters: object + :type managed_application_parameters: any :param network_function_user_configurations: The network function configurations from the user. :type network_function_user_configurations: list[~hybrid_network_management_client.models.NetworkFunctionUserConfiguration] @@ -593,7 +593,7 @@ def __init__( device: Optional["SubResource"] = None, sku_name: Optional[str] = None, vendor_name: Optional[str] = None, - managed_application_parameters: Optional[object] = None, + managed_application_parameters: Optional[Any] = None, network_function_user_configurations: Optional[List["NetworkFunctionUserConfiguration"]] = None, **kwargs ): @@ -664,10 +664,10 @@ class NetworkFunctionRoleConfiguration(msrest.serialization.Model): :type os_profile: ~hybrid_network_management_client.models.OsProfile :param user_data_template: The user data template for customers. This is a json schema template describing the format and data type of user data parameters. - :type user_data_template: object + :type user_data_template: any :param user_data_parameters: The user parameters for customers. The format of user data parameters has to be matched with the provided user data template. - :type user_data_parameters: object + :type user_data_parameters: any :param network_interfaces: The network interface configurations. :type network_interfaces: list[~hybrid_network_management_client.models.NetworkInterface] :param storage_profile: Specifies the storage settings for the virtual machine disks. @@ -695,8 +695,8 @@ def __init__( role_type: Optional[Union[str, "NetworkFunctionRoleConfigurationType"]] = None, virtual_machine_size: Optional[Union[str, "VirtualMachineSizeTypes"]] = None, os_profile: Optional["OsProfile"] = None, - user_data_template: Optional[object] = None, - user_data_parameters: Optional[object] = None, + user_data_template: Optional[Any] = None, + user_data_parameters: Optional[Any] = None, network_interfaces: Optional[List["NetworkInterface"]] = None, storage_profile: Optional["StorageProfile"] = None, custom_profile: Optional["CustomProfile"] = None, @@ -818,9 +818,9 @@ class NetworkFunctionSkuRoleDetails(msrest.serialization.Model): :param role_name: The name of the network function role. :type role_name: str :param user_data_template: The user data template for customers. - :type user_data_template: object + :type user_data_template: any :param user_data_parameters: The user parameters for customers. - :type user_data_parameters: object + :type user_data_parameters: any :param network_interfaces: The network interface configuration. :type network_interfaces: list[~hybrid_network_management_client.models.NetworkInterface] """ @@ -836,8 +836,8 @@ def __init__( self, *, role_name: Optional[str] = None, - user_data_template: Optional[object] = None, - user_data_parameters: Optional[object] = None, + user_data_template: Optional[Any] = None, + user_data_parameters: Optional[Any] = None, network_interfaces: Optional[List["NetworkInterface"]] = None, **kwargs ): @@ -876,7 +876,7 @@ class NetworkFunctionUserConfiguration(msrest.serialization.Model): :param role_name: The name of the network function role. :type role_name: str :param user_data_parameters: The user data parameters from the customer. - :type user_data_parameters: object + :type user_data_parameters: any :param network_interfaces: The network interface configuration. :type network_interfaces: list[~hybrid_network_management_client.models.NetworkInterface] :param os_profile: Specifies the operating system settings for the role instance. @@ -895,7 +895,7 @@ def __init__( self, *, role_name: Optional[str] = None, - user_data_parameters: Optional[object] = None, + user_data_parameters: Optional[Any] = None, network_interfaces: Optional[List["NetworkInterface"]] = None, os_profile: Optional["NetworkFunctionUserConfigurationOsProfile"] = None, **kwargs @@ -918,9 +918,8 @@ class NetworkFunctionUserConfigurationOsProfile(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 """ @@ -974,7 +973,7 @@ class NetworkFunctionVendorConfiguration(msrest.serialization.Model): :param os_profile: Specifies the operating system settings for the role instance. :type os_profile: ~hybrid_network_management_client.models.OsProfile :ivar user_data_parameters: The user parameters from the customer. - :vartype user_data_parameters: object + :vartype user_data_parameters: any :param network_interfaces: The network interface configurations. :type network_interfaces: list[~hybrid_network_management_client.models.NetworkInterface] """ @@ -1268,20 +1267,19 @@ 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 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: ~hybrid_network_management_client.models.LinuxConfiguration :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 @@ -1291,9 +1289,8 @@ 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 custom_data_required: Indicates if custom data is required to deploy this role. :type custom_data_required: bool @@ -1517,8 +1514,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 """ @@ -1816,9 +1812,9 @@ class VendorSku(ProxyResource): :type preview: bool :param managed_application_parameters: The parameters for the managed application to be supplied by the vendor. - :type managed_application_parameters: object + :type managed_application_parameters: any :param managed_application_template: The template for the managed application deployment. - :type managed_application_template: object + :type managed_application_template: any :param network_function_template: The template definition of the network function. :type network_function_template: ~hybrid_network_management_client.models.NetworkFunctionTemplate @@ -1850,8 +1846,8 @@ def __init__( sku_type: Optional[Union[str, "SkuType"]] = None, deployment_mode: Optional[Union[str, "SkuDeploymentMode"]] = None, preview: Optional[bool] = None, - managed_application_parameters: Optional[object] = None, - managed_application_template: Optional[object] = None, + managed_application_parameters: Optional[Any] = None, + managed_application_template: Optional[Any] = None, network_function_template: Optional["NetworkFunctionTemplate"] = None, **kwargs ): diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_devices_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_devices_operations.py index 41a94b9bc6e9..b7e769d3c287 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_devices_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_devices_operations.py @@ -65,7 +65,7 @@ def _delete_initial( # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'deviceName': self._serialize.url("device_name", device_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -108,8 +108,8 @@ def begin_delete( :type device_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -139,7 +139,7 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, None, {}) path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'deviceName': self._serialize.url("device_name", device_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -187,7 +187,7 @@ def get( # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'deviceName': self._serialize.url("device_name", device_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -238,7 +238,7 @@ def _create_or_update_initial( # Construct URL url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'deviceName': self._serialize.url("device_name", device_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -295,8 +295,8 @@ def begin_create_or_update( :type parameters: ~hybrid_network_management_client.models.Device :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Device or the result of cls(response) @@ -330,7 +330,7 @@ def get_long_running_output(pipeline_response): return deserialized path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'deviceName': self._serialize.url("device_name", device_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -382,7 +382,7 @@ def update_tags( # Construct URL url = self.update_tags.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'deviceName': self._serialize.url("device_name", device_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -517,7 +517,7 @@ def prepare_request(next_link=None): # Construct URL url = self.list_by_resource_group.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } url = self._client.format_url(url, **path_format_arguments) @@ -586,7 +586,7 @@ def list_registration_key( # Construct URL url = self.list_registration_key.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'deviceName': self._serialize.url("device_name", device_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_network_functions_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_network_functions_operations.py index 311cc88e3464..730cdc49961e 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_network_functions_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_network_functions_operations.py @@ -65,7 +65,7 @@ def _delete_initial( # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'networkFunctionName': self._serialize.url("network_function_name", network_function_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -108,8 +108,8 @@ def begin_delete( :type network_function_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -139,7 +139,7 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, None, {}) path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'networkFunctionName': self._serialize.url("network_function_name", network_function_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -187,7 +187,7 @@ def get( # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'networkFunctionName': self._serialize.url("network_function_name", network_function_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -238,7 +238,7 @@ def _create_or_update_initial( # Construct URL url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'networkFunctionName': self._serialize.url("network_function_name", network_function_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -296,8 +296,8 @@ def begin_create_or_update( :type parameters: ~hybrid_network_management_client.models.NetworkFunction :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either NetworkFunction or the result of cls(response) @@ -331,7 +331,7 @@ def get_long_running_output(pipeline_response): return deserialized path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'networkFunctionName': self._serialize.url("network_function_name", network_function_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -383,7 +383,7 @@ def update_tags( # Construct URL url = self.update_tags.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'networkFunctionName': self._serialize.url("network_function_name", network_function_name, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } @@ -518,7 +518,7 @@ def prepare_request(next_link=None): # Construct URL url = self.list_by_resource_group.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } url = self._client.format_url(url, **path_format_arguments) diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_role_instances_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_role_instances_operations.py index 6b0d5db7a410..d9defd77a0cd 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_role_instances_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_role_instances_operations.py @@ -119,8 +119,8 @@ def begin_start( :type role_instance_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -245,8 +245,8 @@ def begin_stop( :type role_instance_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -371,8 +371,8 @@ def begin_restart( :type role_instance_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_vendor_network_functions_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_vendor_network_functions_operations.py index d62bc8bbf8cf..a19cb4f5cb4a 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_vendor_network_functions_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_vendor_network_functions_operations.py @@ -196,8 +196,8 @@ def begin_create_or_update( :type parameters: ~hybrid_network_management_client.models.VendorNetworkFunction :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VendorNetworkFunction or the result of cls(response) diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_vendor_sku_preview_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_vendor_sku_preview_operations.py index 0d39f64e0ed0..bb45d5c08fca 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_vendor_sku_preview_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_vendor_sku_preview_operations.py @@ -206,8 +206,8 @@ def begin_create_or_update( :type parameters: ~hybrid_network_management_client.models.PreviewSubscription :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either PreviewSubscription or the result of cls(response) @@ -392,8 +392,8 @@ def begin_delete( :type preview_subscription: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_vendor_skus_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_vendor_skus_operations.py index bc5b00718d0c..80b3257575e1 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_vendor_skus_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_vendor_skus_operations.py @@ -108,8 +108,8 @@ def begin_delete( :type sku_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -295,8 +295,8 @@ def begin_create_or_update( :type parameters: ~hybrid_network_management_client.models.VendorSku :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VendorSku or the result of cls(response) diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_vendors_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_vendors_operations.py index 2d5ce20b8ac3..8835cbfd8397 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_vendors_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_vendors_operations.py @@ -103,8 +103,8 @@ def begin_delete( :type vendor_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -282,8 +282,8 @@ def begin_create_or_update( :type parameters: ~hybrid_network_management_client.models.Vendor :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Vendor or the result of cls(response)