From db5db55793708da7b0e314c934a4b3e4a0b1d05c Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 25 Jun 2021 23:20:38 +0000 Subject: [PATCH] CodeGen from PR 14990 in Azure/azure-rest-api-specs [Python] track2 config (#14990) * authorization * automation * recoveryservices * logic * notificationhubs * search --- sdk/search/azure-mgmt-search/MANIFEST.in | 1 + sdk/search/azure-mgmt-search/_meta.json | 11 ++ .../azure/mgmt/search/_metadata.json | 109 ++++++++++++++++++ .../mgmt/search/_search_management_client.py | 19 +++ .../azure/mgmt/search/_version.py | 2 +- .../search/aio/_search_management_client.py | 18 +++ .../aio/operations/_admin_keys_operations.py | 4 +- .../mgmt/search/aio/operations/_operations.py | 2 +- ...private_endpoint_connections_operations.py | 8 +- .../_private_link_resources_operations.py | 2 +- .../aio/operations/_query_keys_operations.py | 6 +- .../aio/operations/_services_operations.py | 20 ++-- ...hared_private_link_resources_operations.py | 20 ++-- .../azure/mgmt/search/models/_models.py | 4 +- .../azure/mgmt/search/models/_models_py3.py | 4 +- .../search/operations/_services_operations.py | 4 +- ...hared_private_link_resources_operations.py | 8 +- 17 files changed, 200 insertions(+), 42 deletions(-) create mode 100644 sdk/search/azure-mgmt-search/_meta.json create mode 100644 sdk/search/azure-mgmt-search/azure/mgmt/search/_metadata.json diff --git a/sdk/search/azure-mgmt-search/MANIFEST.in b/sdk/search/azure-mgmt-search/MANIFEST.in index a3cb07df8765..3a9b6517412b 100644 --- a/sdk/search/azure-mgmt-search/MANIFEST.in +++ b/sdk/search/azure-mgmt-search/MANIFEST.in @@ -1,3 +1,4 @@ +include _meta.json recursive-include tests *.py *.yaml include *.md include azure/__init__.py diff --git a/sdk/search/azure-mgmt-search/_meta.json b/sdk/search/azure-mgmt-search/_meta.json new file mode 100644 index 000000000000..afe21c28fe06 --- /dev/null +++ b/sdk/search/azure-mgmt-search/_meta.json @@ -0,0 +1,11 @@ +{ + "autorest": "3.4.2", + "use": [ + "@autorest/python@5.8.1", + "@autorest/modelerfour@4.19.2" + ], + "commit": "7f530e3727f746e26f5b5ece8a5874daf10cc56f", + "repository_url": "https://github.com/Azure/azure-rest-api-specs", + "autorest_command": "autorest specification/search/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.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2", + "readme": "specification/search/resource-manager/readme.md" +} \ No newline at end of file diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/_metadata.json b/sdk/search/azure-mgmt-search/azure/mgmt/search/_metadata.json new file mode 100644 index 000000000000..e99e21f2188e --- /dev/null +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/_metadata.json @@ -0,0 +1,109 @@ +{ + "chosen_version": "2020-08-01", + "total_api_version_list": ["2020-08-01"], + "client": { + "name": "SearchManagementClient", + "filename": "_search_management_client", + "description": "Client that can be used to manage Azure Cognitive Search services and API keys.", + "base_url": "\u0027https://management.azure.com\u0027", + "custom_base_url": null, + "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\": [\"SearchManagementClientConfiguration\"]}}, \"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\": [\"SearchManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" + }, + "global_parameters": { + "sync": { + "credential": { + "signature": "credential, # type: \"TokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials.TokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id, # type: str", + "description": "The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal.", + "docstring_type": "str", + "required": true + } + }, + "async": { + "credential": { + "signature": "credential: \"AsyncTokenCredential\",", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials_async.AsyncTokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id: str,", + "description": "The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API or the portal.", + "docstring_type": "str", + "required": true + } + }, + "constant": { + }, + "call": "credential, subscription_id", + "service_client_specific": { + "sync": { + "api_version": { + "signature": "api_version=None, # type: Optional[str]", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url=None, # type: Optional[str]", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile=KnownProfiles.default, # type: KnownProfiles", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + }, + "async": { + "api_version": { + "signature": "api_version: Optional[str] = None,", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url: Optional[str] = None,", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile: KnownProfiles = KnownProfiles.default,", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + } + } + }, + "config": { + "credential": true, + "credential_scopes": ["https://management.azure.com/.default"], + "credential_default_policy_type": "BearerTokenCredentialPolicy", + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null, + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}", + "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" + }, + "operation_groups": { + "operations": "Operations", + "admin_keys": "AdminKeysOperations", + "query_keys": "QueryKeysOperations", + "services": "ServicesOperations", + "private_link_resources": "PrivateLinkResourcesOperations", + "private_endpoint_connections": "PrivateEndpointConnectionsOperations", + "shared_private_link_resources": "SharedPrivateLinkResourcesOperations" + } +} \ No newline at end of file diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/_search_management_client.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/_search_management_client.py index 99b4e7bf9ed9..1b01f2cdc7b1 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/_search_management_client.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/_search_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 SearchManagementClientConfiguration from .operations import Operations @@ -86,6 +87,24 @@ def __init__( self.shared_private_link_resources = SharedPrivateLinkResourcesOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/_version.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/_version.py index 142a0420b39b..e5754a47ce68 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/_version.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "8.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/_search_management_client.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/_search_management_client.py index 661e7fc7197a..dae2e05f3106 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/_search_management_client.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/_search_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 @@ -83,6 +84,23 @@ def __init__( self.shared_private_link_resources = SharedPrivateLinkResourcesOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_admin_keys_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_admin_keys_operations.py index 08868ef943b8..8b6abc9a4651 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_admin_keys_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_admin_keys_operations.py @@ -45,7 +45,7 @@ async def get( resource_group_name: str, search_service_name: str, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.AdminKeyResult": """Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service. @@ -115,7 +115,7 @@ async def regenerate( search_service_name: str, key_kind: Union[str, "_models.AdminKeyKind"], search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.AdminKeyResult": """Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_operations.py index 11a63e080f33..3ab70df49d08 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available REST API operations of the Microsoft.Search provider. diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_private_endpoint_connections_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_private_endpoint_connections_operations.py index 0a8dc622049a..7724b9a04099 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_private_endpoint_connections_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_private_endpoint_connections_operations.py @@ -48,7 +48,7 @@ async def update( private_endpoint_connection_name: str, private_endpoint_connection: "_models.PrivateEndpointConnection", search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.PrivateEndpointConnection": """Updates a Private Endpoint connection to the search service in the given resource group. @@ -130,7 +130,7 @@ async def get( search_service_name: str, private_endpoint_connection_name: str, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.PrivateEndpointConnection": """Gets the details of the private endpoint connection to the search service in the given resource group. @@ -205,7 +205,7 @@ async def delete( search_service_name: str, private_endpoint_connection_name: str, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.PrivateEndpointConnection"]: """Disconnects the private endpoint connection and deletes it from the search service. @@ -280,7 +280,7 @@ def list_by_service( resource_group_name: str, search_service_name: str, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PrivateEndpointConnectionListResult"]: """Gets a list of all private endpoint connections in the given service. diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_private_link_resources_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_private_link_resources_operations.py index 973c136aa168..0cd3a1e2db7f 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_private_link_resources_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_private_link_resources_operations.py @@ -46,7 +46,7 @@ def list_supported( resource_group_name: str, search_service_name: str, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PrivateLinkResourcesResult"]: """Gets a list of all supported private link resource types for the given service. diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_query_keys_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_query_keys_operations.py index 4256fd7a2882..a292497e9d74 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_query_keys_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_query_keys_operations.py @@ -47,7 +47,7 @@ async def create( search_service_name: str, name: str, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.QueryKey": """Generates a new query key for the specified search service. You can create up to 50 query keys per service. @@ -120,7 +120,7 @@ def list_by_search_service( resource_group_name: str, search_service_name: str, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListQueryKeysResult"]: """Returns the list of query API keys for the given Azure Cognitive Search service. @@ -206,7 +206,7 @@ async def delete( search_service_name: str, key: str, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> None: """Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_services_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_services_operations.py index 01772b4cb987..58d0e0030273 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_services_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_services_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( search_service_name: str, service: "_models.SearchService", search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchService": cls = kwargs.pop('cls', None) # type: ClsType["_models.SearchService"] error_map = { @@ -113,7 +113,7 @@ async def begin_create_or_update( search_service_name: str, service: "_models.SearchService", search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.SearchService"]: """Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. @@ -134,8 +134,8 @@ async def begin_create_or_update( :type search_management_request_options: ~azure.mgmt.search.models.SearchManagementRequestOptions :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either SearchService or the result of cls(response) @@ -195,7 +195,7 @@ async def update( search_service_name: str, service: "_models.SearchServiceUpdate", search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchService": """Updates an existing search service in the given resource group. @@ -270,7 +270,7 @@ async def get( resource_group_name: str, search_service_name: str, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchService": """Gets the search service with the given name in the given resource group. @@ -339,7 +339,7 @@ async def delete( resource_group_name: str, search_service_name: str, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> None: """Deletes a search service in the given resource group, along with its associated resources. @@ -404,7 +404,7 @@ def list_by_resource_group( self, resource_group_name: str, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SearchServiceListResult"]: """Gets a list of all search services in the given resource group. @@ -483,7 +483,7 @@ async def get_next(next_link=None): def list_by_subscription( self, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SearchServiceListResult"]: """Gets a list of all search services in the given subscription. @@ -559,7 +559,7 @@ async def check_name_availability( self, name: str, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.CheckNameAvailabilityOutput": """Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_shared_private_link_resources_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_shared_private_link_resources_operations.py index 464150b31714..71a7da7a95f9 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_shared_private_link_resources_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_shared_private_link_resources_operations.py @@ -50,7 +50,7 @@ async def _create_or_update_initial( shared_private_link_resource_name: str, shared_private_link_resource: "_models.SharedPrivateLinkResource", search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.SharedPrivateLinkResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.SharedPrivateLinkResource"]] error_map = { @@ -114,7 +114,7 @@ async def begin_create_or_update( shared_private_link_resource_name: str, shared_private_link_resource: "_models.SharedPrivateLinkResource", search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.SharedPrivateLinkResource"]: """Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. @@ -135,8 +135,8 @@ async def begin_create_or_update( :type search_management_request_options: ~azure.mgmt.search.models.SearchManagementRequestOptions :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either SharedPrivateLinkResource or the result of cls(response) @@ -198,7 +198,7 @@ async def get( search_service_name: str, shared_private_link_resource_name: str, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SharedPrivateLinkResource": """Gets the details of the shared private link resource managed by the search service in the given resource group. @@ -273,7 +273,7 @@ async def _delete_initial( search_service_name: str, shared_private_link_resource_name: str, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -326,7 +326,7 @@ async def begin_delete( search_service_name: str, shared_private_link_resource_name: str, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Initiates the deletion of the shared private link resource from the search service. @@ -343,8 +343,8 @@ async def begin_delete( :type search_management_request_options: ~azure.mgmt.search.models.SearchManagementRequestOptions :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -401,7 +401,7 @@ def list_by_service( resource_group_name: str, search_service_name: str, search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SharedPrivateLinkResourceListResult"]: """Gets a list of all shared private link resources managed by the given service. diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/models/_models.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/models/_models.py index 53a01ae8574b..ba5cdf4efe5a 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/models/_models.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/models/_models.py @@ -71,8 +71,8 @@ class CheckNameAvailabilityInput(msrest.serialization.Model): characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length. :type name: str - :ivar type: Required. The type of the resource whose name is to be validated. This value must - always be 'searchServices'. Default value: "searchServices". + :ivar type: The type of the resource whose name is to be validated. This value must always be + 'searchServices'. Has constant value: "searchServices". :vartype type: str """ diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/models/_models_py3.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/models/_models_py3.py index b36db8ef1086..7771d30ebe36 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/models/_models_py3.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/models/_models_py3.py @@ -77,8 +77,8 @@ class CheckNameAvailabilityInput(msrest.serialization.Model): characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length. :type name: str - :ivar type: Required. The type of the resource whose name is to be validated. This value must - always be 'searchServices'. Default value: "searchServices". + :ivar type: The type of the resource whose name is to be validated. This value must always be + 'searchServices'. Has constant value: "searchServices". :vartype type: str """ diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_services_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_services_operations.py index 3cfd440d0228..767890ca3ee8 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_services_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_services_operations.py @@ -140,8 +140,8 @@ def begin_create_or_update( :type search_management_request_options: ~azure.mgmt.search.models.SearchManagementRequestOptions :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either SearchService or the result of cls(response) diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_shared_private_link_resources_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_shared_private_link_resources_operations.py index 4c874ff112ff..f4d683d0d9b4 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_shared_private_link_resources_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_shared_private_link_resources_operations.py @@ -141,8 +141,8 @@ def begin_create_or_update( :type search_management_request_options: ~azure.mgmt.search.models.SearchManagementRequestOptions :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either SharedPrivateLinkResource or the result of cls(response) @@ -352,8 +352,8 @@ def begin_delete( :type search_management_request_options: ~azure.mgmt.search.models.SearchManagementRequestOptions :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response)