From 8242aa0ff88936f05de761cfbfeb6047485fc423 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 16 Jul 2021 07:43:13 +0000 Subject: [PATCH] CodeGen from PR 15211 in Azure/azure-rest-api-specs add stable version for hybrid network (#15211) * add stable - 1st commit * add stable - 2nd commit * add stable - 3rd commit * add stable - 4th commit --- .../azure-mgmt-hybridnetwork/_meta.json | 11 +- .../mgmt/hybridnetwork/_configuration.py | 2 +- .../_hybrid_network_management_client.py | 19 ++ .../azure/mgmt/hybridnetwork/_metadata.json | 14 +- .../mgmt/hybridnetwork/aio/_configuration.py | 2 +- .../aio/_hybrid_network_management_client.py | 18 ++ .../aio/operations/_devices_operations.py | 56 ++--- ...network_function_vendor_skus_operations.py | 8 +- .../_network_function_vendors_operations.py | 4 +- .../_network_functions_operations.py | 56 ++--- .../aio/operations/_operations.py | 4 +- .../operations/_role_instances_operations.py | 38 ++-- .../_vendor_network_functions_operations.py | 21 +- .../_vendor_sku_preview_operations.py | 28 +-- .../aio/operations/_vendor_skus_operations.py | 34 +-- .../aio/operations/_vendors_operations.py | 28 +-- .../mgmt/hybridnetwork/models/__init__.py | 7 + ..._hybrid_network_management_client_enums.py | 17 ++ .../mgmt/hybridnetwork/models/_models.py | 173 ++++++++++++--- .../mgmt/hybridnetwork/models/_models_py3.py | 201 ++++++++++++++---- .../operations/_devices_operations.py | 38 ++-- ...network_function_vendor_skus_operations.py | 4 +- .../_network_function_vendors_operations.py | 2 +- .../_network_functions_operations.py | 40 ++-- .../hybridnetwork/operations/_operations.py | 2 +- .../operations/_role_instances_operations.py | 22 +- .../_vendor_network_functions_operations.py | 13 +- .../_vendor_sku_preview_operations.py | 16 +- .../operations/_vendor_skus_operations.py | 22 +- .../operations/_vendors_operations.py | 16 +- 30 files changed, 600 insertions(+), 316 deletions(-) diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/_meta.json b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/_meta.json index 5bf2ebd2e31f..34b436418a74 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.5", + "use": [ + "@autorest/python@5.8.4", + "@autorest/modelerfour@4.19.2" + ], + "commit": "a2d4dc4b1296624eefd4b5c235d56af46f7c39d2", "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.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5", "readme": "specification/hybridnetwork/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/_configuration.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/_configuration.py index 500ef6ded950..97abf904c8dd 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/_configuration.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/_configuration.py @@ -48,7 +48,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-01-01-preview" + self.api_version = "2021-05-01" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-hybridnetwork/{}'.format(VERSION)) self._configure(**kwargs) 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..cc752867493e 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/_metadata.json +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/_metadata.json @@ -1,6 +1,6 @@ { - "chosen_version": "2020-01-01-preview", - "total_api_version_list": ["2020-01-01-preview"], + "chosen_version": "2021-05-01", + "total_api_version_list": ["2021-05-01"], "client": { "name": "HybridNetworkManagementClient", "filename": "_hybrid_network_management_client", @@ -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/_configuration.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/_configuration.py index f048c4f0c8c0..d6d635cd522a 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/_configuration.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/aio/_configuration.py @@ -45,7 +45,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-01-01-preview" + self.api_version = "2021-05-01" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-hybridnetwork/{}'.format(VERSION)) self._configure(**kwargs) 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..df2be78e7a6b 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,20 +47,20 @@ 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 = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', 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. @@ -174,13 +174,13 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', 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,21 +216,21 @@ 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 = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', 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. @@ -365,14 +365,14 @@ async def update_tags( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # 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. @@ -423,7 +423,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): @@ -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. @@ -493,7 +493,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): @@ -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. @@ -567,13 +567,13 @@ async def list_registration_key( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # 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..395a0651b598 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. @@ -60,7 +60,7 @@ def list_by_vendor( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): @@ -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. @@ -134,7 +134,7 @@ def list_by_sku( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): 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..5a49d7190195 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. @@ -57,7 +57,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): 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..f0949d3801c7 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,20 +47,20 @@ 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 = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', 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,9 +92,10 @@ async def begin_delete( self, resource_group_name: str, network_function_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified network function resource. + """Deletes the specified network function resource. This operation can take up to 1 hour to + complete. This is expected service behavior. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -102,8 +103,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 +134,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 +157,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. @@ -174,13 +175,13 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', 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,21 +217,21 @@ 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 = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', 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,9 +275,10 @@ 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. + """Creates or updates a network function resource. This operation can take up to 6 hours to + complete. This is expected service behavior. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -287,8 +289,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 +324,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 +348,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. @@ -366,14 +368,14 @@ async def update_tags( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # 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 +412,7 @@ async def update_tags( def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.NetworkFunctionListResult"]: """Lists all the network functions in a subscription. @@ -424,7 +426,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): @@ -478,7 +480,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. @@ -494,7 +496,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): @@ -506,7 +508,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..58f34e8dcf31 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. @@ -57,7 +57,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): 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..2126509c8d91 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,14 +49,14 @@ 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 = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -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,14 +173,14 @@ 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 = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -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,14 +297,14 @@ 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 = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -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. @@ -444,7 +444,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -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. @@ -509,7 +509,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): 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..672b2800e48e 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. @@ -69,7 +69,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -113,14 +113,14 @@ 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 = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -173,9 +173,10 @@ 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. + """Creates or updates a vendor network function. This operation can take up to 6 hours to + complete. This is expected service behavior. :param location_name: The Azure region where the network function resource was created by the customer. @@ -189,8 +190,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 +251,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. @@ -273,7 +274,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): 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..f3d633dffaf0 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. @@ -65,7 +65,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): @@ -124,14 +124,14 @@ 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 = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -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. @@ -280,7 +280,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -323,14 +323,14 @@ 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 = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -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..a0a641b4968c 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,14 +47,14 @@ 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 = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -92,9 +92,10 @@ async def begin_delete( self, vendor_name: str, sku_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified sku. + """Deletes the specified sku. This operation can take up to 2 hours to complete. This is expected + service behavior. :param vendor_name: The name of the vendor. :type vendor_name: str @@ -102,8 +103,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 +157,7 @@ async def get( self, vendor_name: str, sku_name: str, - **kwargs + **kwargs: Any ) -> "_models.VendorSku": """Gets information about the specified sku. @@ -174,7 +175,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -216,14 +217,14 @@ 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 = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -274,9 +275,10 @@ 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. + """Creates or updates a sku. This operation can take up to 2 hours to complete. This is expected + service behavior. :param vendor_name: The name of the vendor. :type vendor_name: str @@ -286,8 +288,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 +345,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. @@ -359,7 +361,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): 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..bc0b76d524dd 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,14 +46,14 @@ 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 = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -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. @@ -164,7 +164,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -204,14 +204,14 @@ 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 = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -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. @@ -341,7 +341,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/models/__init__.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/models/__init__.py index 70f91c6d09a1..0f30a76e4400 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/models/__init__.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/models/__init__.py @@ -48,6 +48,7 @@ from ._models_py3 import SshPublicKey from ._models_py3 import StorageProfile from ._models_py3 import SubResource + from ._models_py3 import SystemData from ._models_py3 import TagsObject from ._models_py3 import TrackedResource from ._models_py3 import Vendor @@ -99,6 +100,7 @@ from ._models import SshPublicKey # type: ignore from ._models import StorageProfile # type: ignore from ._models import SubResource # type: ignore + from ._models import SystemData # type: ignore from ._models import TagsObject # type: ignore from ._models import TrackedResource # type: ignore from ._models import Vendor # type: ignore @@ -110,11 +112,13 @@ from ._models import VirtualHardDisk # type: ignore from ._hybrid_network_management_client_enums import ( + CreatedByType, DeviceType, DiskCreateOptionTypes, IPAllocationMethod, IPVersion, NetworkFunctionRoleConfigurationType, + NetworkFunctionType, OperatingSystemTypes, OperationalState, ProvisioningState, @@ -168,6 +172,7 @@ 'SshPublicKey', 'StorageProfile', 'SubResource', + 'SystemData', 'TagsObject', 'TrackedResource', 'Vendor', @@ -177,11 +182,13 @@ 'VendorSku', 'VendorSkuListResult', 'VirtualHardDisk', + 'CreatedByType', 'DeviceType', 'DiskCreateOptionTypes', 'IPAllocationMethod', 'IPVersion', 'NetworkFunctionRoleConfigurationType', + 'NetworkFunctionType', 'OperatingSystemTypes', 'OperationalState', 'ProvisioningState', diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/models/_hybrid_network_management_client_enums.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/models/_hybrid_network_management_client_enums.py index 1c10acdb6028..baad5c996ba4 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/models/_hybrid_network_management_client_enums.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/models/_hybrid_network_management_client_enums.py @@ -26,6 +26,15 @@ def __getattr__(cls, name): raise AttributeError(name) +class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of identity that created the resource. + """ + + USER = "User" + APPLICATION = "Application" + MANAGED_IDENTITY = "ManagedIdentity" + KEY = "Key" + class DeviceType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The type of the device. """ @@ -62,6 +71,14 @@ class NetworkFunctionRoleConfigurationType(with_metaclass(_CaseInsensitiveEnumMe UNKNOWN = "Unknown" VIRTUAL_MACHINE = "VirtualMachine" +class NetworkFunctionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The network function type. + """ + + UNKNOWN = "Unknown" + VIRTUAL_NETWORK_FUNCTION = "VirtualNetworkFunction" + CONTAINERIZED_NETWORK_FUNCTION = "ContainerizedNetworkFunction" + class OperatingSystemTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The OS type. """ 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..272ebc85d9ab 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 @@ -159,6 +159,8 @@ class Device(TrackedResource): :type tags: dict[str, str] :param location: Required. The geo-location where the resource lives. :type location: str + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~hybrid_network_management_client.models.SystemData :ivar status: The current device status. Possible values include: "Unknown", "NotRegistered", "Registered", "Deleted". :vartype status: str or ~hybrid_network_management_client.models.Status @@ -168,7 +170,8 @@ class Device(TrackedResource): :param device_type: The type of the device.Constant filled by server. Possible values include: "Unknown", "AzureStackEdge". :type device_type: str or ~hybrid_network_management_client.models.DeviceType - :param azure_stack_edge: The reference to the Azure stack edge device. + :param azure_stack_edge: The reference to the Azure stack edge device. Once set, it cannot be + updated. :type azure_stack_edge: ~hybrid_network_management_client.models.SubResource :ivar network_functions: The list of network functions deployed on the device. :vartype network_functions: list[~hybrid_network_management_client.models.SubResource] @@ -179,6 +182,7 @@ class Device(TrackedResource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'status': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'network_functions': {'readonly': True}, @@ -190,6 +194,7 @@ class Device(TrackedResource): 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'location': {'key': 'location', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'status': {'key': 'properties.status', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'device_type': {'key': 'properties.deviceType', 'type': 'str'}, @@ -202,6 +207,7 @@ def __init__( **kwargs ): super(Device, self).__init__(**kwargs) + self.system_data = None self.status = None self.provisioning_state = None self.device_type = None # type: Optional[str] @@ -257,7 +263,8 @@ class DevicePropertiesFormat(msrest.serialization.Model): :param device_type: Required. The type of the device.Constant filled by server. Possible values include: "Unknown", "AzureStackEdge". :type device_type: str or ~hybrid_network_management_client.models.DeviceType - :param azure_stack_edge: The reference to the Azure stack edge device. + :param azure_stack_edge: The reference to the Azure stack edge device. Once set, it cannot be + updated. :type azure_stack_edge: ~hybrid_network_management_client.models.SubResource :ivar network_functions: The list of network functions deployed on the device. :vartype network_functions: list[~hybrid_network_management_client.models.SubResource] @@ -327,7 +334,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 = { @@ -493,18 +500,20 @@ class NetworkFunction(TrackedResource): :type location: str :param etag: A unique read-only string that changes whenever the resource is updated. :type etag: str + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~hybrid_network_management_client.models.SystemData :ivar provisioning_state: The provisioning state of the network function resource. Possible values include: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", "Deleted". :vartype provisioning_state: str or ~hybrid_network_management_client.models.ProvisioningState - :param device: The reference to the device resource. + :param device: The reference to the device resource. Once set, it cannot be updated. :type device: ~hybrid_network_management_client.models.SubResource - :param sku_name: The sku name for the network function. + :param sku_name: The sku name for the network function. Once set, it cannot be updated. :type sku_name: str :ivar sku_type: The sku type for the network function. Possible values include: "Unknown", "EvolvedPacketCore", "SDWAN", "Firewall". :vartype sku_type: str or ~hybrid_network_management_client.models.SkuType - :param vendor_name: The vendor name for the network function. + :param vendor_name: The vendor name for the network function. Once set, it cannot be updated. :type vendor_name: str :ivar service_key: The service key for the network function resource. :vartype service_key: str @@ -516,7 +525,10 @@ 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_container_configurations: The network function container configurations + from the user. + :type network_function_container_configurations: 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] @@ -527,6 +539,7 @@ class NetworkFunction(TrackedResource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'sku_type': {'readonly': True}, 'service_key': {'readonly': True}, @@ -541,6 +554,7 @@ class NetworkFunction(TrackedResource): 'tags': {'key': 'tags', 'type': '{str}'}, 'location': {'key': 'location', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'device': {'key': 'properties.device', 'type': 'SubResource'}, 'sku_name': {'key': 'properties.skuName', 'type': 'str'}, @@ -550,6 +564,7 @@ class NetworkFunction(TrackedResource): 'vendor_provisioning_state': {'key': 'properties.vendorProvisioningState', 'type': 'str'}, 'managed_application': {'key': 'properties.managedApplication', 'type': 'SubResource'}, 'managed_application_parameters': {'key': 'properties.managedApplicationParameters', 'type': 'object'}, + 'network_function_container_configurations': {'key': 'properties.networkFunctionContainerConfigurations', 'type': 'object'}, 'network_function_user_configurations': {'key': 'properties.networkFunctionUserConfigurations', 'type': '[NetworkFunctionUserConfiguration]'}, } @@ -559,6 +574,7 @@ def __init__( ): super(NetworkFunction, self).__init__(**kwargs) self.etag = kwargs.get('etag', None) + self.system_data = None self.provisioning_state = None self.device = kwargs.get('device', None) self.sku_name = kwargs.get('sku_name', None) @@ -568,6 +584,7 @@ def __init__( self.vendor_provisioning_state = None self.managed_application = None self.managed_application_parameters = kwargs.get('managed_application_parameters', None) + self.network_function_container_configurations = kwargs.get('network_function_container_configurations', None) self.network_function_user_configurations = kwargs.get('network_function_user_configurations', None) @@ -622,10 +639,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 +778,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 +829,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 +866,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 +916,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 +1182,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 +1204,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 @@ -1226,18 +1240,28 @@ class PreviewSubscription(msrest.serialization.Model): :vartype id: str :ivar type: The type of the resource. :vartype type: str + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~hybrid_network_management_client.models.SystemData + :ivar provisioning_state: The provisioning state of the PreviewSubscription resource. Possible + values include: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", + "Deleted". + :vartype provisioning_state: str or ~hybrid_network_management_client.models.ProvisioningState """ _validation = { 'name': {'readonly': True}, 'id': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, + 'provisioning_state': {'readonly': True}, } _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } def __init__( @@ -1248,6 +1272,8 @@ def __init__( self.name = None self.id = None self.type = None + self.system_data = None + self.provisioning_state = None class PreviewSubscriptionsList(msrest.serialization.Model): @@ -1316,21 +1342,35 @@ def __init__( class RoleInstance(msrest.serialization.Model): """The role instance sub resource. + Variables are only populated by the server, and will be ignored when sending a request. + :param name: The role instance name. :type name: str :param id: The ARM ID of the resource. :type id: str :param type: The type of the resource. :type type: str + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~hybrid_network_management_client.models.SystemData + :ivar provisioning_state: The provisioning state of the RoleInstance resource. Possible values + include: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", "Deleted". + :vartype provisioning_state: str or ~hybrid_network_management_client.models.ProvisioningState :param operational_state: The operational state of the role instance. Possible values include: "Unknown", "Stopped", "Running", "Stopping", "Starting". :type operational_state: str or ~hybrid_network_management_client.models.OperationalState """ + _validation = { + 'system_data': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'operational_state': {'key': 'properties.operationalState', 'type': 'str'}, } @@ -1342,6 +1382,8 @@ def __init__( self.name = kwargs.get('name', None) self.id = kwargs.get('id', None) self.type = kwargs.get('type', None) + self.system_data = None + self.provisioning_state = None self.operational_state = kwargs.get('operational_state', None) @@ -1398,8 +1440,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 """ @@ -1465,6 +1506,47 @@ def __init__( self.id = kwargs.get('id', None) +class SystemData(msrest.serialization.Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :type created_by_type: str or ~hybrid_network_management_client.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: ~datetime.datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :type last_modified_by_type: str or ~hybrid_network_management_client.models.CreatedByType + :param last_modified_at: The timestamp of resource last modification (UTC). + :type last_modified_at: ~datetime.datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(SystemData, self).__init__(**kwargs) + self.created_by = kwargs.get('created_by', None) + self.created_by_type = kwargs.get('created_by_type', None) + self.created_at = kwargs.get('created_at', None) + self.last_modified_by = kwargs.get('last_modified_by', None) + self.last_modified_by_type = kwargs.get('last_modified_by_type', None) + self.last_modified_at = kwargs.get('last_modified_at', None) + + class TagsObject(msrest.serialization.Model): """Tags object for patch operations. @@ -1497,6 +1579,8 @@ class Vendor(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~hybrid_network_management_client.models.SystemData :ivar provisioning_state: The provisioning state of the vendor resource. Possible values include: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", "Deleted". :vartype provisioning_state: str or ~hybrid_network_management_client.models.ProvisioningState @@ -1508,6 +1592,7 @@ class Vendor(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'skus': {'readonly': True}, } @@ -1516,6 +1601,7 @@ class Vendor(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'skus': {'key': 'properties.skus', 'type': '[SubResource]'}, } @@ -1525,6 +1611,7 @@ def __init__( **kwargs ): super(Vendor, self).__init__(**kwargs) + self.system_data = None self.provisioning_state = None self.skus = None @@ -1571,6 +1658,8 @@ class VendorNetworkFunction(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~hybrid_network_management_client.models.SystemData :ivar provisioning_state: The provisioning state of the vendor network function sub resource. Possible values include: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", "Deleted". @@ -1580,7 +1669,7 @@ class VendorNetworkFunction(ProxyResource): "Provisioned", "Deprovisioned", "UserDataValidationFailed". :type vendor_provisioning_state: str or ~hybrid_network_management_client.models.VendorProvisioningState - :ivar sku_name: The name of the sku. + :ivar sku_name: The name of the sku. Once set, it cannot be updated. :vartype sku_name: str :ivar sku_type: The sku type. Possible values include: "Unknown", "EvolvedPacketCore", "SDWAN", "Firewall". @@ -1595,6 +1684,7 @@ class VendorNetworkFunction(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'sku_name': {'readonly': True}, 'sku_type': {'readonly': True}, @@ -1604,6 +1694,7 @@ class VendorNetworkFunction(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'vendor_provisioning_state': {'key': 'properties.vendorProvisioningState', 'type': 'str'}, 'sku_name': {'key': 'properties.skuName', 'type': 'str'}, @@ -1616,6 +1707,7 @@ def __init__( **kwargs ): super(VendorNetworkFunction, self).__init__(**kwargs) + self.system_data = None self.provisioning_state = None self.vendor_provisioning_state = kwargs.get('vendor_provisioning_state', None) self.sku_name = None @@ -1665,6 +1757,8 @@ class VendorSku(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~hybrid_network_management_client.models.SystemData :ivar provisioning_state: The provisioning state of the vendor sku sub resource. Possible values include: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", "Deleted". @@ -1675,13 +1769,17 @@ class VendorSku(ProxyResource): :param deployment_mode: The sku deployment mode. Possible values include: "Unknown", "Azure", "PrivateEdgeZone". :type deployment_mode: str or ~hybrid_network_management_client.models.SkuDeploymentMode + :param network_function_type: The network function type. Possible values include: "Unknown", + "VirtualNetworkFunction", "ContainerizedNetworkFunction". + :type network_function_type: str or + ~hybrid_network_management_client.models.NetworkFunctionType :param preview: Indicates if the vendor sku is in preview mode. :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 @@ -1691,6 +1789,7 @@ class VendorSku(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -1698,9 +1797,11 @@ class VendorSku(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'sku_type': {'key': 'properties.skuType', 'type': 'str'}, 'deployment_mode': {'key': 'properties.deploymentMode', 'type': 'str'}, + 'network_function_type': {'key': 'properties.networkFunctionType', 'type': 'str'}, 'preview': {'key': 'properties.preview', 'type': 'bool'}, 'managed_application_parameters': {'key': 'properties.managedApplicationParameters', 'type': 'object'}, 'managed_application_template': {'key': 'properties.managedApplicationTemplate', 'type': 'object'}, @@ -1712,9 +1813,11 @@ def __init__( **kwargs ): super(VendorSku, self).__init__(**kwargs) + self.system_data = None self.provisioning_state = None self.sku_type = kwargs.get('sku_type', None) self.deployment_mode = kwargs.get('deployment_mode', None) + self.network_function_type = kwargs.get('network_function_type', None) self.preview = kwargs.get('preview', None) self.managed_application_parameters = kwargs.get('managed_application_parameters', None) self.managed_application_template = kwargs.get('managed_application_template', None) 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..41919b0d527e 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,8 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +import datetime +from typing import Any, Dict, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization @@ -172,6 +173,8 @@ class Device(TrackedResource): :type tags: dict[str, str] :param location: Required. The geo-location where the resource lives. :type location: str + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~hybrid_network_management_client.models.SystemData :ivar status: The current device status. Possible values include: "Unknown", "NotRegistered", "Registered", "Deleted". :vartype status: str or ~hybrid_network_management_client.models.Status @@ -181,7 +184,8 @@ class Device(TrackedResource): :param device_type: The type of the device.Constant filled by server. Possible values include: "Unknown", "AzureStackEdge". :type device_type: str or ~hybrid_network_management_client.models.DeviceType - :param azure_stack_edge: The reference to the Azure stack edge device. + :param azure_stack_edge: The reference to the Azure stack edge device. Once set, it cannot be + updated. :type azure_stack_edge: ~hybrid_network_management_client.models.SubResource :ivar network_functions: The list of network functions deployed on the device. :vartype network_functions: list[~hybrid_network_management_client.models.SubResource] @@ -192,6 +196,7 @@ class Device(TrackedResource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'status': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'network_functions': {'readonly': True}, @@ -203,6 +208,7 @@ class Device(TrackedResource): 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'location': {'key': 'location', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'status': {'key': 'properties.status', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'device_type': {'key': 'properties.deviceType', 'type': 'str'}, @@ -219,6 +225,7 @@ def __init__( **kwargs ): super(Device, self).__init__(tags=tags, location=location, **kwargs) + self.system_data = None self.status = None self.provisioning_state = None self.device_type = None # type: Optional[str] @@ -276,7 +283,8 @@ class DevicePropertiesFormat(msrest.serialization.Model): :param device_type: Required. The type of the device.Constant filled by server. Possible values include: "Unknown", "AzureStackEdge". :type device_type: str or ~hybrid_network_management_client.models.DeviceType - :param azure_stack_edge: The reference to the Azure stack edge device. + :param azure_stack_edge: The reference to the Azure stack edge device. Once set, it cannot be + updated. :type azure_stack_edge: ~hybrid_network_management_client.models.SubResource :ivar network_functions: The list of network functions deployed on the device. :vartype network_functions: list[~hybrid_network_management_client.models.SubResource] @@ -348,7 +356,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 = { @@ -524,18 +532,20 @@ class NetworkFunction(TrackedResource): :type location: str :param etag: A unique read-only string that changes whenever the resource is updated. :type etag: str + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~hybrid_network_management_client.models.SystemData :ivar provisioning_state: The provisioning state of the network function resource. Possible values include: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", "Deleted". :vartype provisioning_state: str or ~hybrid_network_management_client.models.ProvisioningState - :param device: The reference to the device resource. + :param device: The reference to the device resource. Once set, it cannot be updated. :type device: ~hybrid_network_management_client.models.SubResource - :param sku_name: The sku name for the network function. + :param sku_name: The sku name for the network function. Once set, it cannot be updated. :type sku_name: str :ivar sku_type: The sku type for the network function. Possible values include: "Unknown", "EvolvedPacketCore", "SDWAN", "Firewall". :vartype sku_type: str or ~hybrid_network_management_client.models.SkuType - :param vendor_name: The vendor name for the network function. + :param vendor_name: The vendor name for the network function. Once set, it cannot be updated. :type vendor_name: str :ivar service_key: The service key for the network function resource. :vartype service_key: str @@ -547,7 +557,10 @@ 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_container_configurations: The network function container configurations + from the user. + :type network_function_container_configurations: 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] @@ -558,6 +571,7 @@ class NetworkFunction(TrackedResource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'sku_type': {'readonly': True}, 'service_key': {'readonly': True}, @@ -572,6 +586,7 @@ class NetworkFunction(TrackedResource): 'tags': {'key': 'tags', 'type': '{str}'}, 'location': {'key': 'location', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'device': {'key': 'properties.device', 'type': 'SubResource'}, 'sku_name': {'key': 'properties.skuName', 'type': 'str'}, @@ -581,6 +596,7 @@ class NetworkFunction(TrackedResource): 'vendor_provisioning_state': {'key': 'properties.vendorProvisioningState', 'type': 'str'}, 'managed_application': {'key': 'properties.managedApplication', 'type': 'SubResource'}, 'managed_application_parameters': {'key': 'properties.managedApplicationParameters', 'type': 'object'}, + 'network_function_container_configurations': {'key': 'properties.networkFunctionContainerConfigurations', 'type': 'object'}, 'network_function_user_configurations': {'key': 'properties.networkFunctionUserConfigurations', 'type': '[NetworkFunctionUserConfiguration]'}, } @@ -593,12 +609,14 @@ 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_container_configurations: Optional[Any] = None, network_function_user_configurations: Optional[List["NetworkFunctionUserConfiguration"]] = None, **kwargs ): super(NetworkFunction, self).__init__(tags=tags, location=location, **kwargs) self.etag = etag + self.system_data = None self.provisioning_state = None self.device = device self.sku_name = sku_name @@ -608,6 +626,7 @@ def __init__( self.vendor_provisioning_state = None self.managed_application = None self.managed_application_parameters = managed_application_parameters + self.network_function_container_configurations = network_function_container_configurations self.network_function_user_configurations = network_function_user_configurations @@ -664,10 +683,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 +714,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 +837,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 +855,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 +895,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 +914,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 +937,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 +992,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 +1286,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 +1308,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 @@ -1333,18 +1349,28 @@ class PreviewSubscription(msrest.serialization.Model): :vartype id: str :ivar type: The type of the resource. :vartype type: str + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~hybrid_network_management_client.models.SystemData + :ivar provisioning_state: The provisioning state of the PreviewSubscription resource. Possible + values include: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", + "Deleted". + :vartype provisioning_state: str or ~hybrid_network_management_client.models.ProvisioningState """ _validation = { 'name': {'readonly': True}, 'id': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, + 'provisioning_state': {'readonly': True}, } _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } def __init__( @@ -1355,6 +1381,8 @@ def __init__( self.name = None self.id = None self.type = None + self.system_data = None + self.provisioning_state = None class PreviewSubscriptionsList(msrest.serialization.Model): @@ -1425,21 +1453,35 @@ def __init__( class RoleInstance(msrest.serialization.Model): """The role instance sub resource. + Variables are only populated by the server, and will be ignored when sending a request. + :param name: The role instance name. :type name: str :param id: The ARM ID of the resource. :type id: str :param type: The type of the resource. :type type: str + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~hybrid_network_management_client.models.SystemData + :ivar provisioning_state: The provisioning state of the RoleInstance resource. Possible values + include: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", "Deleted". + :vartype provisioning_state: str or ~hybrid_network_management_client.models.ProvisioningState :param operational_state: The operational state of the role instance. Possible values include: "Unknown", "Stopped", "Running", "Stopping", "Starting". :type operational_state: str or ~hybrid_network_management_client.models.OperationalState """ + _validation = { + 'system_data': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'operational_state': {'key': 'properties.operationalState', 'type': 'str'}, } @@ -1456,6 +1498,8 @@ def __init__( self.name = name self.id = id self.type = type + self.system_data = None + self.provisioning_state = None self.operational_state = operational_state @@ -1517,8 +1561,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 """ @@ -1593,6 +1636,54 @@ def __init__( self.id = id +class SystemData(msrest.serialization.Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :type created_by_type: str or ~hybrid_network_management_client.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: ~datetime.datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :type last_modified_by_type: str or ~hybrid_network_management_client.models.CreatedByType + :param last_modified_at: The timestamp of resource last modification (UTC). + :type last_modified_at: ~datetime.datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + created_by: Optional[str] = None, + created_by_type: Optional[Union[str, "CreatedByType"]] = None, + created_at: Optional[datetime.datetime] = None, + last_modified_by: Optional[str] = None, + last_modified_by_type: Optional[Union[str, "CreatedByType"]] = None, + last_modified_at: Optional[datetime.datetime] = None, + **kwargs + ): + super(SystemData, self).__init__(**kwargs) + self.created_by = created_by + self.created_by_type = created_by_type + self.created_at = created_at + self.last_modified_by = last_modified_by + self.last_modified_by_type = last_modified_by_type + self.last_modified_at = last_modified_at + + class TagsObject(msrest.serialization.Model): """Tags object for patch operations. @@ -1627,6 +1718,8 @@ class Vendor(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~hybrid_network_management_client.models.SystemData :ivar provisioning_state: The provisioning state of the vendor resource. Possible values include: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", "Deleted". :vartype provisioning_state: str or ~hybrid_network_management_client.models.ProvisioningState @@ -1638,6 +1731,7 @@ class Vendor(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'skus': {'readonly': True}, } @@ -1646,6 +1740,7 @@ class Vendor(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'skus': {'key': 'properties.skus', 'type': '[SubResource]'}, } @@ -1655,6 +1750,7 @@ def __init__( **kwargs ): super(Vendor, self).__init__(**kwargs) + self.system_data = None self.provisioning_state = None self.skus = None @@ -1703,6 +1799,8 @@ class VendorNetworkFunction(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~hybrid_network_management_client.models.SystemData :ivar provisioning_state: The provisioning state of the vendor network function sub resource. Possible values include: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", "Deleted". @@ -1712,7 +1810,7 @@ class VendorNetworkFunction(ProxyResource): "Provisioned", "Deprovisioned", "UserDataValidationFailed". :type vendor_provisioning_state: str or ~hybrid_network_management_client.models.VendorProvisioningState - :ivar sku_name: The name of the sku. + :ivar sku_name: The name of the sku. Once set, it cannot be updated. :vartype sku_name: str :ivar sku_type: The sku type. Possible values include: "Unknown", "EvolvedPacketCore", "SDWAN", "Firewall". @@ -1727,6 +1825,7 @@ class VendorNetworkFunction(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'sku_name': {'readonly': True}, 'sku_type': {'readonly': True}, @@ -1736,6 +1835,7 @@ class VendorNetworkFunction(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'vendor_provisioning_state': {'key': 'properties.vendorProvisioningState', 'type': 'str'}, 'sku_name': {'key': 'properties.skuName', 'type': 'str'}, @@ -1751,6 +1851,7 @@ def __init__( **kwargs ): super(VendorNetworkFunction, self).__init__(**kwargs) + self.system_data = None self.provisioning_state = None self.vendor_provisioning_state = vendor_provisioning_state self.sku_name = None @@ -1802,6 +1903,8 @@ class VendorSku(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~hybrid_network_management_client.models.SystemData :ivar provisioning_state: The provisioning state of the vendor sku sub resource. Possible values include: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", "Deleted". @@ -1812,13 +1915,17 @@ class VendorSku(ProxyResource): :param deployment_mode: The sku deployment mode. Possible values include: "Unknown", "Azure", "PrivateEdgeZone". :type deployment_mode: str or ~hybrid_network_management_client.models.SkuDeploymentMode + :param network_function_type: The network function type. Possible values include: "Unknown", + "VirtualNetworkFunction", "ContainerizedNetworkFunction". + :type network_function_type: str or + ~hybrid_network_management_client.models.NetworkFunctionType :param preview: Indicates if the vendor sku is in preview mode. :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 @@ -1828,6 +1935,7 @@ class VendorSku(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -1835,9 +1943,11 @@ class VendorSku(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'sku_type': {'key': 'properties.skuType', 'type': 'str'}, 'deployment_mode': {'key': 'properties.deploymentMode', 'type': 'str'}, + 'network_function_type': {'key': 'properties.networkFunctionType', 'type': 'str'}, 'preview': {'key': 'properties.preview', 'type': 'bool'}, 'managed_application_parameters': {'key': 'properties.managedApplicationParameters', 'type': 'object'}, 'managed_application_template': {'key': 'properties.managedApplicationTemplate', 'type': 'object'}, @@ -1849,16 +1959,19 @@ def __init__( *, sku_type: Optional[Union[str, "SkuType"]] = None, deployment_mode: Optional[Union[str, "SkuDeploymentMode"]] = None, + network_function_type: Optional[Union[str, "NetworkFunctionType"]] = 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 ): super(VendorSku, self).__init__(**kwargs) + self.system_data = None self.provisioning_state = None self.sku_type = sku_type self.deployment_mode = deployment_mode + self.network_function_type = network_function_type self.preview = preview self.managed_application_parameters = managed_application_parameters self.managed_application_template = managed_application_template 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..4f698470ca1d 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 @@ -59,13 +59,13 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', 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), } @@ -181,13 +181,13 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', 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), } @@ -231,14 +231,14 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', 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), } @@ -375,14 +375,14 @@ def update_tags( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # 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), } @@ -434,7 +434,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): @@ -505,7 +505,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): @@ -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) @@ -580,13 +580,13 @@ def list_registration_key( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # 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_function_vendor_skus_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_network_function_vendor_skus_operations.py index 2213462fb8b2..cae7d17245ba 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_network_function_vendor_skus_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_network_function_vendor_skus_operations.py @@ -65,7 +65,7 @@ def list_by_vendor( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): @@ -140,7 +140,7 @@ def list_by_sku( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_network_function_vendors_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_network_function_vendors_operations.py index afab3644f280..e23c0bcc8f71 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_network_function_vendors_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_network_function_vendors_operations.py @@ -62,7 +62,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): 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..589ec4e9f65c 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 @@ -59,13 +59,13 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', 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), } @@ -100,7 +100,8 @@ def begin_delete( **kwargs # type: Any ): # type: (...) -> LROPoller[None] - """Deletes the specified network function resource. + """Deletes the specified network function resource. This operation can take up to 1 hour to + complete. This is expected service behavior. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -108,8 +109,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 +140,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), } @@ -181,13 +182,13 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', 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), } @@ -231,14 +232,14 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', 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), } @@ -285,7 +286,8 @@ def begin_create_or_update( **kwargs # type: Any ): # type: (...) -> LROPoller["_models.NetworkFunction"] - """Creates or updates a network function resource. + """Creates or updates a network function resource. This operation can take up to 6 hours to + complete. This is expected service behavior. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -296,8 +298,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 +333,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), } @@ -376,14 +378,14 @@ def update_tags( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # 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), } @@ -435,7 +437,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): @@ -506,7 +508,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): @@ -518,7 +520,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/_operations.py b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_operations.py index 4ffb943303d8..47e44f3eb292 100644 --- a/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_operations.py +++ b/sdk/hybridnetwork/azure-mgmt-hybridnetwork/azure/mgmt/hybridnetwork/operations/_operations.py @@ -62,7 +62,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): 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..1d921a2f9a54 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 @@ -61,7 +61,7 @@ def _start_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -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) @@ -187,7 +187,7 @@ def _stop_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -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) @@ -313,7 +313,7 @@ def _restart_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -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) @@ -455,7 +455,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -521,7 +521,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): 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..710ce8885c7e 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 @@ -74,7 +74,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -126,7 +126,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -182,7 +182,8 @@ def begin_create_or_update( **kwargs # type: Any ): # type: (...) -> LROPoller["_models.VendorNetworkFunction"] - """Creates or updates a vendor network function. + """Creates or updates a vendor network function. This operation can take up to 6 hours to + complete. This is expected service behavior. :param location_name: The Azure region where the network function resource was created by the customer. @@ -196,8 +197,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) @@ -281,7 +282,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): 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..546904e23491 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 @@ -70,7 +70,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): @@ -137,7 +137,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -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) @@ -288,7 +288,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -339,7 +339,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -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..d10c5b7442b7 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 @@ -59,7 +59,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -100,7 +100,8 @@ def begin_delete( **kwargs # type: Any ): # type: (...) -> LROPoller[None] - """Deletes the specified sku. + """Deletes the specified sku. This operation can take up to 2 hours to complete. This is expected + service behavior. :param vendor_name: The name of the vendor. :type vendor_name: str @@ -108,8 +109,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) @@ -181,7 +182,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -231,7 +232,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -285,7 +286,8 @@ def begin_create_or_update( **kwargs # type: Any ): # type: (...) -> LROPoller["_models.VendorSku"] - """Creates or updates a sku. + """Creates or updates a sku. This operation can take up to 2 hours to complete. This is expected + service behavior. :param vendor_name: The name of the vendor. :type vendor_name: str @@ -295,8 +297,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) @@ -369,7 +371,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None): 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..5239ca3453f1 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 @@ -58,7 +58,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -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) @@ -171,7 +171,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" # Construct URL @@ -219,7 +219,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -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) @@ -351,7 +351,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-01-01-preview" + api_version = "2021-05-01" accept = "application/json" def prepare_request(next_link=None):