Skip to content

Commit

Permalink
To use "9ce6855af34e9bda71314006d7e8a1bf872cd1ce" (#19607)
Browse files Browse the repository at this point in the history
* To use "9ce6855af34e9bda71314006d7e8a1bf872cd1ce"

* update

* update

* update

* update
  • Loading branch information
xiangyan99 authored Jul 1, 2021
1 parent 60f643a commit a8c9c6c
Show file tree
Hide file tree
Showing 172 changed files with 4,734 additions and 4,747 deletions.
4 changes: 2 additions & 2 deletions sdk/core/azure-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

## 1.16.0 (2021-07-01)

### New Features
### Features Added

- Add new ***provisional*** methods `send_request` onto the `azure.core.PipelineClient` and `azure.core.AsyncPipelineClient`. This method takes in
requests and sends them through our pipelines.
- Add new ***provisional*** module `azure.core.rest`. `azure.core.rest` is our new public simple HTTP library in `azure.core` that users will use to create requests, and consume responses.
- Add new ***provisional*** errors `StreamConsumedError`, `StreamClosedError`, and `ResponseNotReadError` to `azure.core.exceptions`. These errors
are thrown if you mishandle streamed responses from the provisional `azure.core.rest` module

### Bug Fixes
### Fixed

- Improved error message in the `from_dict` method of `CloudEvent` when a wrong schema is sent.

Expand Down
6 changes: 3 additions & 3 deletions sdk/metricsadvisor/azure-ai-metricsadvisor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Release History

## 1.0.0 (Unreleased)
## 1.0.0 (2021-07-06)

**Breaking Changes**
### Breaking Changes

- Renamed
- Changed
- `DetectionConditionsOperator` -> `DetectionConditionOperator`
- `cross_conditions_operator` -> `condition_operator`
- `AnomalyAlert.created_on` -> `AnomalyAlert.created_time`
Expand Down
4 changes: 4 additions & 0 deletions sdk/search/azure-search-documents/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 11.3.0b1 (Unreleased)

### Features Added

- Added support for semantic search
- Added normalizer support

## 11.2.0 (2021-06-08)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
class ApiVersion(str, Enum):
#: this is the default version
V2020_06_30 = "2020-06-30"
V2020_06_30_preview = "2020-06-30-Preview"
V2021_04_30_preview = "2021-04-30-Preview"

DEFAULT_VERSION = ApiVersion.V2020_06_30_preview
DEFAULT_VERSION = ApiVersion.V2021_04_30_preview
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(

self.endpoint = endpoint
self.index_name = index_name
self.api_version = "2020-06-30-Preview"
self.api_version = "2021-04-30-Preview"
kwargs.setdefault('sdk_moniker', 'search-documents/{}'.format(VERSION))
self._configure(**kwargs)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(

self.endpoint = endpoint
self.index_name = index_name
self.api_version = "2020-06-30-Preview"
self.api_version = "2021-04-30-Preview"
kwargs.setdefault('sdk_moniker', 'search-documents/{}'.format(VERSION))
self._configure(**kwargs)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
async def count(
self,
request_options: Optional["_models.RequestOptions"] = None,
**kwargs
**kwargs: Any
) -> int:
"""Queries the number of documents in the index.
Expand All @@ -62,7 +62,7 @@ async def count(
_x_ms_client_request_id = None
if request_options is not None:
_x_ms_client_request_id = request_options.x_ms_client_request_id
api_version = "2020-06-30-Preview"
api_version = "2021-04-30-Preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -105,7 +105,7 @@ async def search_get(
search_text: Optional[str] = None,
search_options: Optional["_models.SearchOptions"] = None,
request_options: Optional["_models.RequestOptions"] = None,
**kwargs
**kwargs: Any
) -> "_models.SearchDocumentsResult":
"""Searches for documents in the index.
Expand Down Expand Up @@ -148,6 +148,8 @@ async def search_get(
_select = None
_skip = None
_top = None
_captions = None
_semantic_fields = None
_x_ms_client_request_id = None
if request_options is not None:
_x_ms_client_request_id = request_options.x_ms_client_request_id
Expand All @@ -173,7 +175,9 @@ async def search_get(
_select = search_options.select
_skip = search_options.skip
_top = search_options.top
api_version = "2020-06-30-Preview"
_captions = search_options.captions
_semantic_fields = search_options.semantic_fields
api_version = "2021-04-30-Preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -230,6 +234,10 @@ async def search_get(
query_parameters['$skip'] = self._serialize.query("skip", _skip, 'int')
if _top is not None:
query_parameters['$top'] = self._serialize.query("top", _top, 'int')
if _captions is not None:
query_parameters['captions'] = self._serialize.query("captions", _captions, 'str')
if _semantic_fields is not None:
query_parameters['semanticFields'] = self._serialize.query("semantic_fields", _semantic_fields, '[str]', div=',')
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')

# Construct headers
Expand Down Expand Up @@ -259,7 +267,7 @@ async def search_post(
self,
search_request: "_models.SearchRequest",
request_options: Optional["_models.RequestOptions"] = None,
**kwargs
**kwargs: Any
) -> "_models.SearchDocumentsResult":
"""Searches for documents in the index.
Expand All @@ -281,7 +289,7 @@ async def search_post(
_x_ms_client_request_id = None
if request_options is not None:
_x_ms_client_request_id = request_options.x_ms_client_request_id
api_version = "2020-06-30-Preview"
api_version = "2021-04-30-Preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -329,8 +337,8 @@ async def get(
key: str,
selected_fields: Optional[List[str]] = None,
request_options: Optional["_models.RequestOptions"] = None,
**kwargs
) -> object:
**kwargs: Any
) -> Any:
"""Retrieves a document from the index.
:param key: The key of the document to retrieve.
Expand All @@ -341,11 +349,11 @@ async def get(
:param request_options: Parameter group.
:type request_options: ~azure.search.documents.models.RequestOptions
:keyword callable cls: A custom type or function that will be passed the direct response
:return: object, or the result of cls(response)
:rtype: object
:return: any, or the result of cls(response)
:rtype: any
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType[object]
cls = kwargs.pop('cls', None) # type: ClsType[Any]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand All @@ -354,7 +362,7 @@ async def get(
_x_ms_client_request_id = None
if request_options is not None:
_x_ms_client_request_id = request_options.x_ms_client_request_id
api_version = "2020-06-30-Preview"
api_version = "2021-04-30-Preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -401,7 +409,7 @@ async def suggest_get(
suggester_name: str,
suggest_options: Optional["_models.SuggestOptions"] = None,
request_options: Optional["_models.RequestOptions"] = None,
**kwargs
**kwargs: Any
) -> "_models.SuggestDocumentsResult":
"""Suggests documents in the index that match the given partial query text.
Expand Down Expand Up @@ -448,7 +456,7 @@ async def suggest_get(
_search_fields = suggest_options.search_fields
_select = suggest_options.select
_top = suggest_options.top
api_version = "2020-06-30-Preview"
api_version = "2021-04-30-Preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -510,7 +518,7 @@ async def suggest_post(
self,
suggest_request: "_models.SuggestRequest",
request_options: Optional["_models.RequestOptions"] = None,
**kwargs
**kwargs: Any
) -> "_models.SuggestDocumentsResult":
"""Suggests documents in the index that match the given partial query text.
Expand All @@ -532,7 +540,7 @@ async def suggest_post(
_x_ms_client_request_id = None
if request_options is not None:
_x_ms_client_request_id = request_options.x_ms_client_request_id
api_version = "2020-06-30-Preview"
api_version = "2021-04-30-Preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -579,7 +587,7 @@ async def index(
self,
actions: List["_models.IndexAction"],
request_options: Optional["_models.RequestOptions"] = None,
**kwargs
**kwargs: Any
) -> "_models.IndexDocumentsResult":
"""Sends a batch of document write actions to the index.
Expand All @@ -603,7 +611,7 @@ async def index(
_x_ms_client_request_id = request_options.x_ms_client_request_id

_batch = _models.IndexBatch(actions=actions)
api_version = "2020-06-30-Preview"
api_version = "2021-04-30-Preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -656,7 +664,7 @@ async def autocomplete_get(
suggester_name: str,
request_options: Optional["_models.RequestOptions"] = None,
autocomplete_options: Optional["_models.AutocompleteOptions"] = None,
**kwargs
**kwargs: Any
) -> "_models.AutocompleteResult":
"""Autocompletes incomplete query terms based on input text and matching terms in the index.
Expand Down Expand Up @@ -700,7 +708,7 @@ async def autocomplete_get(
_top = autocomplete_options.top
if request_options is not None:
_x_ms_client_request_id = request_options.x_ms_client_request_id
api_version = "2020-06-30-Preview"
api_version = "2021-04-30-Preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -760,7 +768,7 @@ async def autocomplete_post(
self,
autocomplete_request: "_models.AutocompleteRequest",
request_options: Optional["_models.RequestOptions"] = None,
**kwargs
**kwargs: Any
) -> "_models.AutocompleteResult":
"""Autocompletes incomplete query terms based on input text and matching terms in the index.
Expand All @@ -782,7 +790,7 @@ async def autocomplete_post(
_x_ms_client_request_id = None
if request_options is not None:
_x_ms_client_request_id = request_options.x_ms_client_request_id
api_version = "2020-06-30-Preview"
api_version = "2021-04-30-Preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
from ._search_client_enums import (
Answers,
AutocompleteMode,
Captions,
IndexActionType,
QueryLanguage,
QueryType,
Expand Down Expand Up @@ -86,6 +87,7 @@
'SuggestResult',
'Answers',
'AutocompleteMode',
'Captions',
'IndexActionType',
'QueryLanguage',
'QueryType',
Expand Down
Loading

0 comments on commit a8c9c6c

Please sign in to comment.