Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[T2] GA search #15904

Merged
merged 1 commit into from
Jan 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion sdk/search/azure-mgmt-search/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion sdk/search/azure-mgmt-search/azure/mgmt/search/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
}
Expand Down Expand Up @@ -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.

Expand All @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand All @@ -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
Expand All @@ -44,15 +44,15 @@ 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
:return: An iterator like instance of either OperationListResult or the result of cls(response)
: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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
}
Expand Down Expand Up @@ -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.

Expand All @@ -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
}
Expand Down Expand Up @@ -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
Expand All @@ -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
}
Expand Down Expand Up @@ -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
Expand All @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand All @@ -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
Expand All @@ -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.

Expand All @@ -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
}
Expand Down Expand Up @@ -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
Expand All @@ -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
}
Expand Down Expand Up @@ -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
Expand Down
Loading