diff --git a/sdk/search/azure-mgmt-search/CHANGELOG.md b/sdk/search/azure-mgmt-search/CHANGELOG.md index 287d157e38ff..c23492aba02b 100644 --- a/sdk/search/azure-mgmt-search/CHANGELOG.md +++ b/sdk/search/azure-mgmt-search/CHANGELOG.md @@ -1,6 +1,10 @@ # Release History -## 8.0.0b1 (2019-05-24) +## 8.0.0 (2020-12-22) + +- GA release + +## 8.0.0b1 (2020-10-28) This is beta preview version. 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 0d5779dc14de..142a0420b39b 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.0b1" +VERSION = "8.0.0" 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 e286518693dc..08868ef943b8 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 @@ -13,7 +13,7 @@ from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core.exceptions import ARMErrorFormat -from ... import models +from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -32,7 +32,7 @@ class AdminKeysOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -44,9 +44,9 @@ async def get( self, resource_group_name: str, search_service_name: str, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> "models.AdminKeyResult": + ) -> "_models.AdminKeyResult": """Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service. :param resource_group_name: The name of the resource group within the current subscription. You @@ -62,7 +62,7 @@ async def get( :rtype: ~azure.mgmt.search.models.AdminKeyResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AdminKeyResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AdminKeyResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -113,10 +113,10 @@ async def regenerate( self, resource_group_name: str, search_service_name: str, - key_kind: Union[str, "models.AdminKeyKind"], - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + key_kind: Union[str, "_models.AdminKeyKind"], + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> "models.AdminKeyResult": + ) -> "_models.AdminKeyResult": """Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. @@ -136,7 +136,7 @@ async def regenerate( :rtype: ~azure.mgmt.search.models.AdminKeyResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AdminKeyResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AdminKeyResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } 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 a210c53cd9e2..11a63e080f33 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 @@ -14,7 +14,7 @@ from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core.exceptions import ARMErrorFormat -from ... import models +from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -33,7 +33,7 @@ class Operations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, **kwargs - ) -> AsyncIterable["models.OperationListResult"]: + ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available REST API operations of the Microsoft.Search provider. :keyword callable cls: A custom type or function that will be passed the direct response @@ -52,7 +52,7 @@ def list( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.search.models.OperationListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } 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 f285072d762b..0a8dc622049a 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 @@ -14,7 +14,7 @@ from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core.exceptions import ARMErrorFormat -from ... import models +from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -33,7 +33,7 @@ class PrivateEndpointConnectionsOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -46,10 +46,10 @@ async def update( resource_group_name: str, search_service_name: str, private_endpoint_connection_name: str, - private_endpoint_connection: "models.PrivateEndpointConnection", - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + private_endpoint_connection: "_models.PrivateEndpointConnection", + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> "models.PrivateEndpointConnection": + ) -> "_models.PrivateEndpointConnection": """Updates a Private Endpoint connection to the search service in the given resource group. :param resource_group_name: The name of the resource group within the current subscription. You @@ -71,7 +71,7 @@ async def update( :rtype: ~azure.mgmt.search.models.PrivateEndpointConnection :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -129,9 +129,9 @@ async def get( resource_group_name: str, search_service_name: str, private_endpoint_connection_name: str, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> "models.PrivateEndpointConnection": + ) -> "_models.PrivateEndpointConnection": """Gets the details of the private endpoint connection to the search service in the given resource group. @@ -151,7 +151,7 @@ async def get( :rtype: ~azure.mgmt.search.models.PrivateEndpointConnection :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -204,9 +204,9 @@ async def delete( resource_group_name: str, search_service_name: str, private_endpoint_connection_name: str, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> Optional["models.PrivateEndpointConnection"]: + ) -> Optional["_models.PrivateEndpointConnection"]: """Disconnects the private endpoint connection and deletes it from the search service. :param resource_group_name: The name of the resource group within the current subscription. You @@ -225,7 +225,7 @@ async def delete( :rtype: ~azure.mgmt.search.models.PrivateEndpointConnection or None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[Optional["models.PrivateEndpointConnection"]] + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.PrivateEndpointConnection"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -279,9 +279,9 @@ def list_by_service( self, resource_group_name: str, search_service_name: str, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> AsyncIterable["models.PrivateEndpointConnectionListResult"]: + ) -> AsyncIterable["_models.PrivateEndpointConnectionListResult"]: """Gets a list of all private endpoint connections in the given service. :param resource_group_name: The name of the resource group within the current subscription. You @@ -297,7 +297,7 @@ def list_by_service( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.search.models.PrivateEndpointConnectionListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnectionListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } 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 fc64d60034de..973c136aa168 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 @@ -14,7 +14,7 @@ from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core.exceptions import ARMErrorFormat -from ... import models +from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -33,7 +33,7 @@ class PrivateLinkResourcesOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -45,9 +45,9 @@ def list_supported( self, resource_group_name: str, search_service_name: str, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> AsyncIterable["models.PrivateLinkResourcesResult"]: + ) -> AsyncIterable["_models.PrivateLinkResourcesResult"]: """Gets a list of all supported private link resource types for the given service. :param resource_group_name: The name of the resource group within the current subscription. You @@ -63,7 +63,7 @@ def list_supported( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.search.models.PrivateLinkResourcesResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourcesResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateLinkResourcesResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } 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 4cef2006984f..4256fd7a2882 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 @@ -14,7 +14,7 @@ from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core.exceptions import ARMErrorFormat -from ... import models +from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -33,7 +33,7 @@ class QueryKeysOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -46,9 +46,9 @@ async def create( resource_group_name: str, search_service_name: str, name: str, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> "models.QueryKey": + ) -> "_models.QueryKey": """Generates a new query key for the specified search service. You can create up to 50 query keys per service. @@ -67,7 +67,7 @@ async def create( :rtype: ~azure.mgmt.search.models.QueryKey :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.QueryKey"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.QueryKey"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -119,9 +119,9 @@ def list_by_search_service( self, resource_group_name: str, search_service_name: str, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> AsyncIterable["models.ListQueryKeysResult"]: + ) -> AsyncIterable["_models.ListQueryKeysResult"]: """Returns the list of query API keys for the given Azure Cognitive Search service. :param resource_group_name: The name of the resource group within the current subscription. You @@ -137,7 +137,7 @@ def list_by_search_service( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.search.models.ListQueryKeysResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ListQueryKeysResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ListQueryKeysResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -205,7 +205,7 @@ async def delete( resource_group_name: str, search_service_name: str, key: str, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs ) -> None: """Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process 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 235c212a49f7..01772b4cb987 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 @@ -16,7 +16,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling -from ... import models +from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -35,7 +35,7 @@ class ServicesOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -47,11 +47,11 @@ async def _create_or_update_initial( self, resource_group_name: str, search_service_name: str, - service: "models.SearchService", - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + service: "_models.SearchService", + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> "models.SearchService": - cls = kwargs.pop('cls', None) # type: ClsType["models.SearchService"] + ) -> "_models.SearchService": + cls = kwargs.pop('cls', None) # type: ClsType["_models.SearchService"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -111,10 +111,10 @@ async def begin_create_or_update( self, resource_group_name: str, search_service_name: str, - service: "models.SearchService", - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + service: "_models.SearchService", + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> AsyncLROPoller["models.SearchService"]: + ) -> 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. @@ -143,7 +143,7 @@ async def begin_create_or_update( :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.SearchService"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SearchService"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -169,7 +169,13 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'searchServiceName': self._serialize.url("search_service_name", search_service_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -187,10 +193,10 @@ async def update( self, resource_group_name: str, search_service_name: str, - service: "models.SearchServiceUpdate", - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + service: "_models.SearchServiceUpdate", + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> "models.SearchService": + ) -> "_models.SearchService": """Updates an existing search service in the given resource group. :param resource_group_name: The name of the resource group within the current subscription. You @@ -207,7 +213,7 @@ async def update( :rtype: ~azure.mgmt.search.models.SearchService :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SearchService"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SearchService"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -263,9 +269,9 @@ async def get( self, resource_group_name: str, search_service_name: str, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> "models.SearchService": + ) -> "_models.SearchService": """Gets the search service with the given name in the given resource group. :param resource_group_name: The name of the resource group within the current subscription. You @@ -281,7 +287,7 @@ async def get( :rtype: ~azure.mgmt.search.models.SearchService :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SearchService"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SearchService"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -332,7 +338,7 @@ async def delete( self, resource_group_name: str, search_service_name: str, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs ) -> None: """Deletes a search service in the given resource group, along with its associated resources. @@ -397,9 +403,9 @@ async def delete( def list_by_resource_group( self, resource_group_name: str, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> AsyncIterable["models.SearchServiceListResult"]: + ) -> AsyncIterable["_models.SearchServiceListResult"]: """Gets a list of all search services in the given resource group. :param resource_group_name: The name of the resource group within the current subscription. You @@ -412,7 +418,7 @@ def list_by_resource_group( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.search.models.SearchServiceListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SearchServiceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SearchServiceListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -476,9 +482,9 @@ async def get_next(next_link=None): def list_by_subscription( self, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> AsyncIterable["models.SearchServiceListResult"]: + ) -> AsyncIterable["_models.SearchServiceListResult"]: """Gets a list of all search services in the given subscription. :param search_management_request_options: Parameter group. @@ -488,7 +494,7 @@ def list_by_subscription( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.search.models.SearchServiceListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SearchServiceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SearchServiceListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -552,9 +558,9 @@ async def get_next(next_link=None): async def check_name_availability( self, name: str, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> "models.CheckNameAvailabilityOutput": + ) -> "_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 (https://:code:``.search.windows.net). @@ -570,7 +576,7 @@ async def check_name_availability( :rtype: ~azure.mgmt.search.models.CheckNameAvailabilityOutput :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CheckNameAvailabilityOutput"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CheckNameAvailabilityOutput"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -580,7 +586,7 @@ async def check_name_availability( if search_management_request_options is not None: _client_request_id = search_management_request_options.client_request_id - _check_name_availability_input = models.CheckNameAvailabilityInput(name=name) + _check_name_availability_input = _models.CheckNameAvailabilityInput(name=name) api_version = "2020-08-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" 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 20892e560b73..464150b31714 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 @@ -16,7 +16,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling -from ... import models +from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -35,7 +35,7 @@ class SharedPrivateLinkResourcesOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -48,11 +48,11 @@ async def _create_or_update_initial( resource_group_name: str, search_service_name: str, shared_private_link_resource_name: str, - shared_private_link_resource: "models.SharedPrivateLinkResource", - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + shared_private_link_resource: "_models.SharedPrivateLinkResource", + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> Optional["models.SharedPrivateLinkResource"]: - cls = kwargs.pop('cls', None) # type: ClsType[Optional["models.SharedPrivateLinkResource"]] + ) -> Optional["_models.SharedPrivateLinkResource"]: + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.SharedPrivateLinkResource"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -112,10 +112,10 @@ async def begin_create_or_update( resource_group_name: str, search_service_name: str, shared_private_link_resource_name: str, - shared_private_link_resource: "models.SharedPrivateLinkResource", - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + shared_private_link_resource: "_models.SharedPrivateLinkResource", + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> AsyncLROPoller["models.SharedPrivateLinkResource"]: + ) -> AsyncLROPoller["_models.SharedPrivateLinkResource"]: """Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. @@ -144,7 +144,7 @@ async def begin_create_or_update( :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.SharedPrivateLinkResource"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SharedPrivateLinkResource"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -171,7 +171,14 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'searchServiceName': self._serialize.url("search_service_name", search_service_name, 'str'), + 'sharedPrivateLinkResourceName': self._serialize.url("shared_private_link_resource_name", shared_private_link_resource_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -190,9 +197,9 @@ async def get( resource_group_name: str, search_service_name: str, shared_private_link_resource_name: str, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> "models.SharedPrivateLinkResource": + ) -> "_models.SharedPrivateLinkResource": """Gets the details of the shared private link resource managed by the search service in the given resource group. @@ -212,7 +219,7 @@ async def get( :rtype: ~azure.mgmt.search.models.SharedPrivateLinkResource :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SharedPrivateLinkResource"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SharedPrivateLinkResource"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -265,7 +272,7 @@ async def _delete_initial( resource_group_name: str, search_service_name: str, shared_private_link_resource_name: str, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] @@ -318,7 +325,7 @@ async def begin_delete( resource_group_name: str, search_service_name: str, shared_private_link_resource_name: str, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs ) -> AsyncLROPoller[None]: """Initiates the deletion of the shared private link resource from the search service. @@ -368,7 +375,14 @@ def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) - if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'searchServiceName': self._serialize.url("search_service_name", search_service_name, 'str'), + 'sharedPrivateLinkResourceName': self._serialize.url("shared_private_link_resource_name", shared_private_link_resource_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -386,9 +400,9 @@ def list_by_service( self, resource_group_name: str, search_service_name: str, - search_management_request_options: Optional["models.SearchManagementRequestOptions"] = None, + search_management_request_options: Optional["_models.SearchManagementRequestOptions"] = None, **kwargs - ) -> AsyncIterable["models.SharedPrivateLinkResourceListResult"]: + ) -> AsyncIterable["_models.SharedPrivateLinkResourceListResult"]: """Gets a list of all shared private link resources managed by the given service. :param resource_group_name: The name of the resource group within the current subscription. You @@ -404,7 +418,7 @@ def list_by_service( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.search.models.SharedPrivateLinkResourceListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SharedPrivateLinkResourceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SharedPrivateLinkResourceListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } 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 4c9ec1b5928b..53a01ae8574b 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 @@ -383,17 +383,17 @@ def __init__( class Resource(msrest.serialization.Model): - """The resource model definition for a ARM tracked top level resource. + """Common fields that are returned in the response for all Azure Resource Manager resources. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str """ @@ -424,13 +424,13 @@ class PrivateEndpointConnection(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str :param properties: Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service. @@ -569,13 +569,13 @@ class PrivateLinkResource(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar properties: Describes the properties of a supported private link resource for the Azure Cognitive Search service. @@ -722,19 +722,19 @@ def __init__( class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. + """The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] @@ -773,13 +773,13 @@ class SearchService(TrackedResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] @@ -934,13 +934,13 @@ class SearchServiceUpdate(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str :param sku: The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service. @@ -1137,13 +1137,13 @@ class SharedPrivateLinkResource(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str :param properties: Describes the properties of a Shared Private Link Resource managed by the Azure Cognitive Search service. 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 d752b1bb9ae7..b36db8ef1086 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 @@ -402,17 +402,17 @@ def __init__( class Resource(msrest.serialization.Model): - """The resource model definition for a ARM tracked top level resource. + """Common fields that are returned in the response for all Azure Resource Manager resources. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str """ @@ -443,13 +443,13 @@ class PrivateEndpointConnection(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str :param properties: Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service. @@ -599,13 +599,13 @@ class PrivateLinkResource(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar properties: Describes the properties of a supported private link resource for the Azure Cognitive Search service. @@ -754,19 +754,19 @@ def __init__( class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. + """The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] @@ -808,13 +808,13 @@ class SearchService(TrackedResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] @@ -979,13 +979,13 @@ class SearchServiceUpdate(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str :param sku: The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service. @@ -1192,13 +1192,13 @@ class SharedPrivateLinkResource(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str :param properties: Describes the properties of a Shared Private Link Resource managed by the Azure Cognitive Search service. diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_admin_keys_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_admin_keys_operations.py index 42dd5456922d..40e81e6bc65f 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_admin_keys_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_admin_keys_operations.py @@ -13,7 +13,7 @@ from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.mgmt.core.exceptions import ARMErrorFormat -from .. import models +from .. import models as _models if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -36,7 +36,7 @@ class AdminKeysOperations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -48,10 +48,10 @@ def get( self, resource_group_name, # type: str search_service_name, # type: str - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> "models.AdminKeyResult" + # type: (...) -> "_models.AdminKeyResult" """Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service. :param resource_group_name: The name of the resource group within the current subscription. You @@ -67,7 +67,7 @@ def get( :rtype: ~azure.mgmt.search.models.AdminKeyResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AdminKeyResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AdminKeyResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -118,11 +118,11 @@ def regenerate( self, resource_group_name, # type: str search_service_name, # type: str - key_kind, # type: Union[str, "models.AdminKeyKind"] - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + key_kind, # type: Union[str, "_models.AdminKeyKind"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> "models.AdminKeyResult" + # type: (...) -> "_models.AdminKeyResult" """Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. @@ -142,7 +142,7 @@ def regenerate( :rtype: ~azure.mgmt.search.models.AdminKeyResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AdminKeyResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AdminKeyResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_operations.py index d375b55422df..a7de7c963eb7 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_operations.py @@ -14,7 +14,7 @@ from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.mgmt.core.exceptions import ARMErrorFormat -from .. import models +from .. import models as _models if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -37,7 +37,7 @@ class Operations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -49,7 +49,7 @@ def list( self, **kwargs # type: Any ): - # type: (...) -> Iterable["models.OperationListResult"] + # type: (...) -> Iterable["_models.OperationListResult"] """Lists all of the available REST API operations of the Microsoft.Search provider. :keyword callable cls: A custom type or function that will be passed the direct response @@ -57,7 +57,7 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.search.models.OperationListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_private_endpoint_connections_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_private_endpoint_connections_operations.py index 9c23e3a88176..b8c4752d5fe3 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_private_endpoint_connections_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_private_endpoint_connections_operations.py @@ -14,7 +14,7 @@ from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.mgmt.core.exceptions import ARMErrorFormat -from .. import models +from .. import models as _models if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -37,7 +37,7 @@ class PrivateEndpointConnectionsOperations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -50,11 +50,11 @@ def update( resource_group_name, # type: str search_service_name, # type: str private_endpoint_connection_name, # type: str - private_endpoint_connection, # type: "models.PrivateEndpointConnection" - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + private_endpoint_connection, # type: "_models.PrivateEndpointConnection" + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> "models.PrivateEndpointConnection" + # type: (...) -> "_models.PrivateEndpointConnection" """Updates a Private Endpoint connection to the search service in the given resource group. :param resource_group_name: The name of the resource group within the current subscription. You @@ -76,7 +76,7 @@ def update( :rtype: ~azure.mgmt.search.models.PrivateEndpointConnection :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -134,10 +134,10 @@ def get( resource_group_name, # type: str search_service_name, # type: str private_endpoint_connection_name, # type: str - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> "models.PrivateEndpointConnection" + # type: (...) -> "_models.PrivateEndpointConnection" """Gets the details of the private endpoint connection to the search service in the given resource group. @@ -157,7 +157,7 @@ def get( :rtype: ~azure.mgmt.search.models.PrivateEndpointConnection :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -210,10 +210,10 @@ def delete( resource_group_name, # type: str search_service_name, # type: str private_endpoint_connection_name, # type: str - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> Optional["models.PrivateEndpointConnection"] + # type: (...) -> Optional["_models.PrivateEndpointConnection"] """Disconnects the private endpoint connection and deletes it from the search service. :param resource_group_name: The name of the resource group within the current subscription. You @@ -232,7 +232,7 @@ def delete( :rtype: ~azure.mgmt.search.models.PrivateEndpointConnection or None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[Optional["models.PrivateEndpointConnection"]] + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.PrivateEndpointConnection"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -286,10 +286,10 @@ def list_by_service( self, resource_group_name, # type: str search_service_name, # type: str - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> Iterable["models.PrivateEndpointConnectionListResult"] + # type: (...) -> Iterable["_models.PrivateEndpointConnectionListResult"] """Gets a list of all private endpoint connections in the given service. :param resource_group_name: The name of the resource group within the current subscription. You @@ -305,7 +305,7 @@ def list_by_service( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.search.models.PrivateEndpointConnectionListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnectionListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_private_link_resources_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_private_link_resources_operations.py index a87da3ad0a38..af599a679589 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_private_link_resources_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_private_link_resources_operations.py @@ -14,7 +14,7 @@ from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.mgmt.core.exceptions import ARMErrorFormat -from .. import models +from .. import models as _models if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -37,7 +37,7 @@ class PrivateLinkResourcesOperations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -49,10 +49,10 @@ def list_supported( self, resource_group_name, # type: str search_service_name, # type: str - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> Iterable["models.PrivateLinkResourcesResult"] + # type: (...) -> Iterable["_models.PrivateLinkResourcesResult"] """Gets a list of all supported private link resource types for the given service. :param resource_group_name: The name of the resource group within the current subscription. You @@ -68,7 +68,7 @@ def list_supported( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.search.models.PrivateLinkResourcesResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourcesResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateLinkResourcesResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_query_keys_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_query_keys_operations.py index 40ff42696592..264a009d70b5 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_query_keys_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_query_keys_operations.py @@ -14,7 +14,7 @@ from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.mgmt.core.exceptions import ARMErrorFormat -from .. import models +from .. import models as _models if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -37,7 +37,7 @@ class QueryKeysOperations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -50,10 +50,10 @@ def create( resource_group_name, # type: str search_service_name, # type: str name, # type: str - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> "models.QueryKey" + # type: (...) -> "_models.QueryKey" """Generates a new query key for the specified search service. You can create up to 50 query keys per service. @@ -72,7 +72,7 @@ def create( :rtype: ~azure.mgmt.search.models.QueryKey :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.QueryKey"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.QueryKey"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -124,10 +124,10 @@ def list_by_search_service( self, resource_group_name, # type: str search_service_name, # type: str - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> Iterable["models.ListQueryKeysResult"] + # type: (...) -> Iterable["_models.ListQueryKeysResult"] """Returns the list of query API keys for the given Azure Cognitive Search service. :param resource_group_name: The name of the resource group within the current subscription. You @@ -143,7 +143,7 @@ def list_by_search_service( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.search.models.ListQueryKeysResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ListQueryKeysResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ListQueryKeysResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -211,7 +211,7 @@ def delete( resource_group_name, # type: str search_service_name, # type: str key, # type: str - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): # type: (...) -> None 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 acdcb460fc30..3cfd440d0228 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 @@ -16,7 +16,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models +from .. import models as _models if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -39,7 +39,7 @@ class ServicesOperations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -51,12 +51,12 @@ def _create_or_update_initial( self, resource_group_name, # type: str search_service_name, # type: str - service, # type: "models.SearchService" - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + service, # type: "_models.SearchService" + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> "models.SearchService" - cls = kwargs.pop('cls', None) # type: ClsType["models.SearchService"] + # type: (...) -> "_models.SearchService" + cls = kwargs.pop('cls', None) # type: ClsType["_models.SearchService"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -116,11 +116,11 @@ def begin_create_or_update( self, resource_group_name, # type: str search_service_name, # type: str - service, # type: "models.SearchService" - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + service, # type: "_models.SearchService" + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> LROPoller["models.SearchService"] + # type: (...) -> LROPoller["_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. @@ -149,7 +149,7 @@ def begin_create_or_update( :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.SearchService"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SearchService"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -175,7 +175,13 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'searchServiceName': self._serialize.url("search_service_name", search_service_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -193,11 +199,11 @@ def update( self, resource_group_name, # type: str search_service_name, # type: str - service, # type: "models.SearchServiceUpdate" - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + service, # type: "_models.SearchServiceUpdate" + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> "models.SearchService" + # type: (...) -> "_models.SearchService" """Updates an existing search service in the given resource group. :param resource_group_name: The name of the resource group within the current subscription. You @@ -214,7 +220,7 @@ def update( :rtype: ~azure.mgmt.search.models.SearchService :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SearchService"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SearchService"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -270,10 +276,10 @@ def get( self, resource_group_name, # type: str search_service_name, # type: str - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> "models.SearchService" + # type: (...) -> "_models.SearchService" """Gets the search service with the given name in the given resource group. :param resource_group_name: The name of the resource group within the current subscription. You @@ -289,7 +295,7 @@ def get( :rtype: ~azure.mgmt.search.models.SearchService :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SearchService"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SearchService"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -340,7 +346,7 @@ def delete( self, resource_group_name, # type: str search_service_name, # type: str - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): # type: (...) -> None @@ -406,10 +412,10 @@ def delete( def list_by_resource_group( self, resource_group_name, # type: str - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> Iterable["models.SearchServiceListResult"] + # type: (...) -> Iterable["_models.SearchServiceListResult"] """Gets a list of all search services in the given resource group. :param resource_group_name: The name of the resource group within the current subscription. You @@ -422,7 +428,7 @@ def list_by_resource_group( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.search.models.SearchServiceListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SearchServiceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SearchServiceListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -486,10 +492,10 @@ def get_next(next_link=None): def list_by_subscription( self, - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> Iterable["models.SearchServiceListResult"] + # type: (...) -> Iterable["_models.SearchServiceListResult"] """Gets a list of all search services in the given subscription. :param search_management_request_options: Parameter group. @@ -499,7 +505,7 @@ def list_by_subscription( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.search.models.SearchServiceListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SearchServiceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SearchServiceListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -563,10 +569,10 @@ def get_next(next_link=None): def check_name_availability( self, name, # type: str - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> "models.CheckNameAvailabilityOutput" + # type: (...) -> "_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 (https://:code:``.search.windows.net). @@ -582,7 +588,7 @@ def check_name_availability( :rtype: ~azure.mgmt.search.models.CheckNameAvailabilityOutput :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CheckNameAvailabilityOutput"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CheckNameAvailabilityOutput"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -592,7 +598,7 @@ def check_name_availability( if search_management_request_options is not None: _client_request_id = search_management_request_options.client_request_id - _check_name_availability_input = models.CheckNameAvailabilityInput(name=name) + _check_name_availability_input = _models.CheckNameAvailabilityInput(name=name) api_version = "2020-08-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" 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 da50099f4c80..4c874ff112ff 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 @@ -16,7 +16,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models +from .. import models as _models if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -39,7 +39,7 @@ class SharedPrivateLinkResourcesOperations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -52,12 +52,12 @@ def _create_or_update_initial( resource_group_name, # type: str search_service_name, # type: str shared_private_link_resource_name, # type: str - shared_private_link_resource, # type: "models.SharedPrivateLinkResource" - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + shared_private_link_resource, # type: "_models.SharedPrivateLinkResource" + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> Optional["models.SharedPrivateLinkResource"] - cls = kwargs.pop('cls', None) # type: ClsType[Optional["models.SharedPrivateLinkResource"]] + # type: (...) -> Optional["_models.SharedPrivateLinkResource"] + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.SharedPrivateLinkResource"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -117,11 +117,11 @@ def begin_create_or_update( resource_group_name, # type: str search_service_name, # type: str shared_private_link_resource_name, # type: str - shared_private_link_resource, # type: "models.SharedPrivateLinkResource" - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + shared_private_link_resource, # type: "_models.SharedPrivateLinkResource" + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> LROPoller["models.SharedPrivateLinkResource"] + # type: (...) -> LROPoller["_models.SharedPrivateLinkResource"] """Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. @@ -150,7 +150,7 @@ def begin_create_or_update( :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.SharedPrivateLinkResource"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SharedPrivateLinkResource"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -177,7 +177,14 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'searchServiceName': self._serialize.url("search_service_name", search_service_name, 'str'), + 'sharedPrivateLinkResourceName': self._serialize.url("shared_private_link_resource_name", shared_private_link_resource_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -196,10 +203,10 @@ def get( resource_group_name, # type: str search_service_name, # type: str shared_private_link_resource_name, # type: str - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> "models.SharedPrivateLinkResource" + # type: (...) -> "_models.SharedPrivateLinkResource" """Gets the details of the shared private link resource managed by the search service in the given resource group. @@ -219,7 +226,7 @@ def get( :rtype: ~azure.mgmt.search.models.SharedPrivateLinkResource :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SharedPrivateLinkResource"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SharedPrivateLinkResource"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -272,7 +279,7 @@ def _delete_initial( resource_group_name, # type: str search_service_name, # type: str shared_private_link_resource_name, # type: str - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): # type: (...) -> None @@ -326,7 +333,7 @@ def begin_delete( resource_group_name, # type: str search_service_name, # type: str shared_private_link_resource_name, # type: str - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): # type: (...) -> LROPoller[None] @@ -377,7 +384,14 @@ def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) - if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'searchServiceName': self._serialize.url("search_service_name", search_service_name, 'str'), + 'sharedPrivateLinkResourceName': self._serialize.url("shared_private_link_resource_name", shared_private_link_resource_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -395,10 +409,10 @@ def list_by_service( self, resource_group_name, # type: str search_service_name, # type: str - search_management_request_options=None, # type: Optional["models.SearchManagementRequestOptions"] + search_management_request_options=None, # type: Optional["_models.SearchManagementRequestOptions"] **kwargs # type: Any ): - # type: (...) -> Iterable["models.SharedPrivateLinkResourceListResult"] + # type: (...) -> Iterable["_models.SharedPrivateLinkResourceListResult"] """Gets a list of all shared private link resources managed by the given service. :param resource_group_name: The name of the resource group within the current subscription. You @@ -414,7 +428,7 @@ def list_by_service( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.search.models.SharedPrivateLinkResourceListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SharedPrivateLinkResourceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SharedPrivateLinkResourceListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } diff --git a/sdk/search/azure-mgmt-search/tests/recordings/test_mgmt_search.test_search_admin_keys.yaml b/sdk/search/azure-mgmt-search/tests/recordings/test_mgmt_search.test_search_admin_keys.yaml index 8ab4804016ad..f421c01fe17b 100644 --- a/sdk/search/azure-mgmt-search/tests/recordings/test_mgmt_search.test_search_admin_keys.yaml +++ b/sdk/search/azure-mgmt-search/tests/recordings/test_mgmt_search.test_search_admin_keys.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-search/8.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-search/8.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_search_test_search_admin_keys3f6f0ff0/providers/Microsoft.Search/searchServices/ptvstestquerykeys?api-version=2020-08-01 response: @@ -29,30 +29,26 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 09:28:39 GMT + - Tue, 22 Dec 2020 06:23:43 GMT elapsed-time: - - '317' + - '2013' etag: - - W/"datetime'2020-10-27T09%3A28%3A40.3310359Z'" + - W/"datetime'2020-12-22T06%3A23%3A42.2163037Z'" expires: - '-1' pragma: - no-cache request-id: - - cacf6092-1836-11eb-8280-0242ac110007 + - 37671a7a-441e-11eb-b05a-0242ac110003 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' status: - code: 200 - message: OK + code: 201 + message: Created - request: body: null headers: @@ -65,12 +61,12 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-search/8.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-search/8.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_search_test_search_admin_keys3f6f0ff0/providers/Microsoft.Search/searchServices/ptvstestquerykeys/listAdminKeys?api-version=2020-08-01 response: body: - string: '{"primaryKey":"808D983DDDEAE322A7110E4D1001DFA5","secondaryKey":"8F5BCD895E6569DA478350DC388ED991"}' + string: '{"primaryKey":"29896271E08AA0754C43A769846D4E6E","secondaryKey":"39EED4887B218276B8BD75216C6D3895"}' headers: cache-control: - no-cache @@ -79,15 +75,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 09:28:40 GMT + - Tue, 22 Dec 2020 06:23:43 GMT elapsed-time: - - '131' + - '116' expires: - '-1' pragma: - no-cache request-id: - - cc6fd7a6-1836-11eb-8280-0242ac110007 + - 3d68498a-441e-11eb-b05a-0242ac110003 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -113,12 +109,12 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-search/8.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-search/8.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_search_test_search_admin_keys3f6f0ff0/providers/Microsoft.Search/searchServices/ptvstestquerykeys/regenerateAdminKey/primary?api-version=2020-08-01 response: body: - string: '{"primaryKey":"2E013FD2099C8076974CD75D2F02BA25","secondaryKey":"8F5BCD895E6569DA478350DC388ED991"}' + string: '{"primaryKey":"546F191857FA3678BE5892C6D7B37060","secondaryKey":"39EED4887B218276B8BD75216C6D3895"}' headers: cache-control: - no-cache @@ -127,15 +123,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 09:28:41 GMT + - Tue, 22 Dec 2020 06:23:44 GMT elapsed-time: - - '405' + - '252' expires: - '-1' pragma: - no-cache request-id: - - ccb19c72-1836-11eb-8280-0242ac110007 + - 3daa9434-441e-11eb-b05a-0242ac110003 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: diff --git a/sdk/search/azure-mgmt-search/tests/recordings/test_mgmt_search.test_search_query_keys.yaml b/sdk/search/azure-mgmt-search/tests/recordings/test_mgmt_search.test_search_query_keys.yaml index 184ea9a3c13f..3f336fbe2115 100644 --- a/sdk/search/azure-mgmt-search/tests/recordings/test_mgmt_search.test_search_query_keys.yaml +++ b/sdk/search/azure-mgmt-search/tests/recordings/test_mgmt_search.test_search_query_keys.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-search/8.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-search/8.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_search_test_search_query_keys40e9101d/providers/Microsoft.Search/searchServices/ptvstestquerykeysxxy?api-version=2020-08-01 response: @@ -29,17 +29,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 09:40:56 GMT + - Tue, 22 Dec 2020 06:24:00 GMT elapsed-time: - - '2998' + - '3446' etag: - - W/"datetime'2020-10-27T09%3A40%3A55.0590301Z'" + - W/"datetime'2020-12-22T06%3A24%3A00.1606928Z'" expires: - '-1' pragma: - no-cache request-id: - - 7c76eaf8-1838-11eb-9153-0242ac110007 + - 41df17aa-441e-11eb-b05a-0242ac110003 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -61,12 +61,12 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-search/8.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-search/8.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_search_test_search_query_keys40e9101d/providers/Microsoft.Search/searchServices/ptvstestquerykeysxxy/createQueryKey/testkey?api-version=2020-08-01 response: body: - string: '{"name":"testkey","key":"2E46BA4FC84B8DCC2039F4BA329B4B73"}' + string: '{"name":"testkey","key":"4EE634BA36F8649289B5F1AB1C86DF60"}' headers: cache-control: - no-cache @@ -75,15 +75,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 09:40:57 GMT + - Tue, 22 Dec 2020 06:24:01 GMT elapsed-time: - - '173' + - '178' expires: - '-1' pragma: - no-cache request-id: - - 8341630e-1838-11eb-9153-0242ac110007 + - 48070264-441e-11eb-b05a-0242ac110003 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -109,12 +109,12 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-search/8.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-search/8.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_search_test_search_query_keys40e9101d/providers/Microsoft.Search/searchServices/ptvstestquerykeysxxy/listQueryKeys?api-version=2020-08-01 response: body: - string: '{"value":[{"name":null,"key":"69684B14BE2E6358027B2B0FC97B2158"},{"name":"testkey","key":"2E46BA4FC84B8DCC2039F4BA329B4B73"}],"nextLink":null}' + string: '{"value":[{"name":null,"key":"B0D50B6A9FDA68E9E6B7DC3B39DE101F"},{"name":"testkey","key":"4EE634BA36F8649289B5F1AB1C86DF60"}],"nextLink":null}' headers: cache-control: - no-cache @@ -123,15 +123,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 09:40:57 GMT + - Tue, 22 Dec 2020 06:24:01 GMT elapsed-time: - - '185' + - '133' expires: - '-1' pragma: - no-cache request-id: - - 838a7bf2-1838-11eb-9153-0242ac110007 + - 4852846e-441e-11eb-b05a-0242ac110003 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -157,13 +157,13 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-search/8.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-search/8.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_search_test_search_query_keys40e9101d/providers/Microsoft.Search/searchServices/ptvstestquerykeysxxy/deleteQueryKey/testkey?api-version=2020-08-01 response: body: string: '{"error":{"code":"Unknown","message":"This API key does not exist for - service ''ptvstestquerykeysxxy''. RequestId: 83d510ae-1838-11eb-9153-0242ac110007","target":null,"details":null}}' + service ''ptvstestquerykeysxxy''. RequestId: 4899863e-441e-11eb-b05a-0242ac110003","target":null,"details":null}}' headers: cache-control: - no-cache @@ -174,15 +174,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 09:40:58 GMT + - Tue, 22 Dec 2020 06:24:02 GMT elapsed-time: - - '177' + - '135' expires: - '-1' pragma: - no-cache request-id: - - 83d510ae-1838-11eb-9153-0242ac110007 + - 4899863e-441e-11eb-b05a-0242ac110003 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: diff --git a/sdk/search/azure-mgmt-search/tests/recordings/test_mgmt_search.test_search_services.yaml b/sdk/search/azure-mgmt-search/tests/recordings/test_mgmt_search.test_search_services.yaml index 799169e356e8..481bb24a7c03 100644 --- a/sdk/search/azure-mgmt-search/tests/recordings/test_mgmt_search.test_search_services.yaml +++ b/sdk/search/azure-mgmt-search/tests/recordings/test_mgmt_search.test_search_services.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-search/8.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-search/8.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Search/checkNameAvailability?api-version=2020-08-01 response: @@ -27,15 +27,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 09:41:16 GMT + - Tue, 22 Dec 2020 06:24:09 GMT elapsed-time: - - '130' + - '156' expires: - '-1' pragma: - no-cache request-id: - - 8e3a7fca-1838-11eb-8044-0242ac110007 + - 4bbccc22-441e-11eb-b05a-0242ac110003 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -64,7 +64,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-search/8.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-search/8.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_search_test_search_services20f20f30/providers/Microsoft.Search/searchServices/ptvstestsearch?api-version=2020-08-01 response: @@ -79,17 +79,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 09:41:24 GMT + - Tue, 22 Dec 2020 06:24:19 GMT elapsed-time: - - '2065' + - '2304' etag: - - W/"datetime'2020-10-27T09%3A41%3A23.5184327Z'" + - W/"datetime'2020-12-22T06%3A24%3A18.0440358Z'" expires: - '-1' pragma: - no-cache request-id: - - 8f733e2c-1838-11eb-8044-0242ac110007 + - 4d52cee2-441e-11eb-b05a-0242ac110003 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -113,7 +113,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-search/8.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-search/8.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Search/checkNameAvailability?api-version=2020-08-01 response: @@ -127,15 +127,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 09:41:24 GMT + - Tue, 22 Dec 2020 06:24:19 GMT elapsed-time: - - '63' + - '177' expires: - '-1' pragma: - no-cache request-id: - - 943574e8-1838-11eb-8044-0242ac110007 + - 52d1154a-441e-11eb-b05a-0242ac110003 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -145,7 +145,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 200 message: OK @@ -159,7 +159,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-search/8.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-search/8.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_search_test_search_services20f20f30/providers/Microsoft.Search/searchServices/ptvstestsearch?api-version=2020-08-01 response: @@ -174,17 +174,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 09:41:25 GMT + - Tue, 22 Dec 2020 06:24:20 GMT elapsed-time: - - '165' + - '161' etag: - - W/"datetime'2020-10-27T09%3A41%3A23.5184327Z'" + - W/"datetime'2020-12-22T06%3A24%3A18.0440358Z'" expires: - '-1' pragma: - no-cache request-id: - - 946c49b4-1838-11eb-8044-0242ac110007 + - 5319f580-441e-11eb-b05a-0242ac110003 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -206,13 +206,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-search/8.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-search/8.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_search_test_search_services20f20f30/providers/Microsoft.Search/searchServices?api-version=2020-08-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_search_test_search_services20f20f30/providers/Microsoft.Search/searchServices/ptvstestsearch","name":"ptvstestsearch","type":"Microsoft.Search/searchServices","location":"West - US","properties":{"replicaCount":1,"partitionCount":1,"status":"running","statusDetails":"","provisioningState":"succeeded","hostingMode":"Default","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[],"eTag":"W/\"datetime''2020-10-27T09%3A41%3A23.5184327Z''\""},"sku":{"name":"standard"}}],"nextLink":null}' + US","properties":{"replicaCount":1,"partitionCount":1,"status":"running","statusDetails":"","provisioningState":"succeeded","hostingMode":"Default","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[],"eTag":"W/\"datetime''2020-12-22T06%3A24%3A18.0440358Z''\""},"sku":{"name":"standard"}}],"nextLink":null}' headers: cache-control: - no-cache @@ -221,15 +221,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 09:41:25 GMT + - Tue, 22 Dec 2020 06:24:20 GMT elapsed-time: - - '169' + - '174' expires: - '-1' pragma: - no-cache request-id: - - 94ae98a0-1838-11eb-8044-0242ac110007 + - 535dba40-441e-11eb-b05a-0242ac110003 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -253,7 +253,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-search/8.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-search/8.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_search_test_search_services20f20f30/providers/Microsoft.Search/searchServices/ptvstestsearch?api-version=2020-08-01 response: @@ -265,21 +265,21 @@ interactions: content-length: - '0' date: - - Tue, 27 Oct 2020 09:41:31 GMT + - Tue, 22 Dec 2020 06:24:26 GMT elapsed-time: - - '1021' + - '1336' expires: - '-1' pragma: - no-cache request-id: - - 94f82920-1838-11eb-8044-0242ac110007 + - 53a62eb0-441e-11eb-b05a-0242ac110003 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 200 message: OK