Skip to content

Commit 7721eed

Browse files
authored
Search aug preview (#42438)
* search index updates * search service updates * search agent updates * fix tests * update * update * update * expose searchindex.description * updates * update changelog * update tests * update * updates * update * updates * updates * update * update * update
1 parent f1358f2 commit 7721eed

File tree

90 files changed

+3295
-765
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+3295
-765
lines changed

sdk/search/azure-search-documents/CHANGELOG.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,44 @@
11
# Release History
22

3-
## 11.6.0b13 (Unreleased)
3+
## 11.7.0b1 (2025-09-05)
44

55
### Features Added
66

77
- Added `azure.search.documents.models.DebugInfo`.
8-
9-
### Breaking Changes
10-
11-
### Bugs Fixed
8+
- Added `azure.search.documents.indexes.models.AzureBlobKnowledgeSource`.
9+
- Added `azure.search.documents.indexes.models.AzureBlobKnowledgeSourceParameters`.
10+
- Added `azure.search.documents.indexes.models.IndexerResyncBody`.
11+
- Added `azure.search.documents.indexes.models.KnowledgeAgentOutputConfiguration`.
12+
- Added `azure.search.documents.indexes.models.KnowledgeAgentOutputConfigurationModality`.
13+
- Added `azure.search.documents.indexes.models.KnowledgeSource`.
14+
- Added `azure.search.documents.indexes.models.KnowledgeSourceKind`.
15+
- Added `azure.search.documents.indexes.models.KnowledgeSourceReference`.
16+
- Added `azure.search.documents.indexes.models.SearchIndexKnowledgeSource`.
17+
- Added `azure.search.documents.indexes.models.SearchIndexKnowledgeSourceParameters`.
18+
- Removed `azure.search.documents.indexes.models.KnowledgeAgentTargetIndex`.
19+
- Added `azure.search.documents.indexes.models.SearchIndex.description`.
20+
- Added `azure.search.documents.agent.models.KnowledgeAgentAzureBlobActivityArguments`.
21+
- Added `azure.search.documents.agent.models.KnowledgeAgentAzureBlobActivityRecord`.
22+
- Added `azure.search.documents.agent.models.KnowledgeAgentAzureBlobReference`.
23+
- Added `azure.search.documents.agent.models.KnowledgeAgentModelAnswerSynthesisActivityRecord`.
24+
- Added `azure.search.documents.agent.models.KnowledgeAgentRetrievalActivityRecord`.
25+
- Added `azure.search.documents.agent.models.KnowledgeAgentSearchIndexActivityArguments`.
26+
- Added `azure.search.documents.agent.models.KnowledgeAgentSearchIndexActivityRecord`.
27+
- Added `azure.search.documents.agent.models.KnowledgeAgentSearchIndexReference`.
28+
- Added `azure.search.documents.agent.models.KnowledgeAgentSemanticRerankerActivityRecord`.
29+
- Added `azure.search.documents.agent.models.KnowledgeSourceParams`.
30+
- Added `azure.search.documents.agent.models.SearchIndexKnowledgeSourceParams`.
31+
- Removed `azure.search.documents.agent.models.KnowledgeAgentAzureSearchDocReference`.
32+
- Removed `azure.search.documents.agent.models.KnowledgeAgentIndexParams`.
33+
- Removed `azure.search.documents.agent.models.KnowledgeAgentSearchActivityRecord`.
34+
- Removed `azure.search.documents.agent.models.KnowledgeAgentSearchActivityRecordQuery`.
35+
- Removed `azure.search.documents.agent.models.KnowledgeAgentSemanticRankerActivityRecord`.
36+
- Added KnowledgeSource operations in `SearchIndexClient`.
1237

1338
### Other Changes
1439

40+
- Updated default API version to `2025-08-01-preview`.
41+
1542
## 11.6.0b12 (2025-05-14)
1643

1744
### Features Added

sdk/search/azure-search-documents/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/search/azure-search-documents",
5-
"Tag": "python/search/azure-search-documents_3faffc0f61"
5+
"Tag": "python/search/azure-search-documents_5fa507ca6f"
66
}

sdk/search/azure-search-documents/azure/search/documents/_api_versions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
1111
V2020_06_30 = "2020-06-30"
1212
V2023_11_01 = "2023-11-01"
1313
V2024_07_01 = "2024-07-01"
14-
V2025_05_01_PREVIEW = "2025-05-01-preview"
14+
V2025_08_01_PREVIEW = "2025-08-01-preview"
1515

1616

17-
DEFAULT_VERSION = ApiVersion.V2025_05_01_PREVIEW
17+
DEFAULT_VERSION = ApiVersion.V2025_08_01_PREVIEW

sdk/search/azure-search-documents/azure/search/documents/_generated/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.34.1)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.39.0)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66
# pylint: disable=wrong-import-position

sdk/search/azure-search-documents/azure/search/documents/_generated/_configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.34.1)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.39.0)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66

@@ -21,13 +21,13 @@ class SearchIndexClientConfiguration: # pylint: disable=too-many-instance-attri
2121
:type endpoint: str
2222
:param index_name: The name of the index. Required.
2323
:type index_name: str
24-
:keyword api_version: Api Version. Default value is "2025-05-01-preview". Note that overriding
24+
:keyword api_version: Api Version. Default value is "2025-08-01-preview". Note that overriding
2525
this default value may result in unsupported behavior.
2626
:paramtype api_version: str
2727
"""
2828

2929
def __init__(self, endpoint: str, index_name: str, **kwargs: Any) -> None:
30-
api_version: str = kwargs.pop("api_version", "2025-05-01-preview")
30+
api_version: str = kwargs.pop("api_version", "2025-08-01-preview")
3131

3232
if endpoint is None:
3333
raise ValueError("Parameter 'endpoint' must not be None.")

sdk/search/azure-search-documents/azure/search/documents/_generated/_patch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
88
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
99
"""
10-
from typing import List
1110

12-
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
11+
12+
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level
1313

1414

1515
def patch_sdk():

sdk/search/azure-search-documents/azure/search/documents/_generated/_search_index_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.34.1)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.39.0)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66

@@ -27,7 +27,7 @@ class SearchIndexClient:
2727
:type endpoint: str
2828
:param index_name: The name of the index. Required.
2929
:type index_name: str
30-
:keyword api_version: Api Version. Default value is "2025-05-01-preview". Note that overriding
30+
:keyword api_version: Api Version. Default value is "2025-08-01-preview". Note that overriding
3131
this default value may result in unsupported behavior.
3232
:paramtype api_version: str
3333
"""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# --------------------------------------------------------------------------
2-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.34.1)
2+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.39.0)
33
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
44
# --------------------------------------------------------------------------

sdk/search/azure-search-documents/azure/search/documents/_generated/_utils/serialization.py

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# pylint: disable=line-too-long,useless-suppression,too-many-lines
22
# coding=utf-8
33
# --------------------------------------------------------------------------
4-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.34.1)
4+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.39.0)
55
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
66
# --------------------------------------------------------------------------
77

@@ -19,7 +19,6 @@
1919
import sys
2020
import codecs
2121
from typing import (
22-
Dict,
2322
Any,
2423
cast,
2524
Optional,
@@ -29,7 +28,6 @@
2928
Mapping,
3029
Callable,
3130
MutableMapping,
32-
List,
3331
)
3432

3533
try:
@@ -227,12 +225,12 @@ class Model:
227225
serialization and deserialization.
228226
"""
229227

230-
_subtype_map: Dict[str, Dict[str, Any]] = {}
231-
_attribute_map: Dict[str, Dict[str, Any]] = {}
232-
_validation: Dict[str, Dict[str, Any]] = {}
228+
_subtype_map: dict[str, dict[str, Any]] = {}
229+
_attribute_map: dict[str, dict[str, Any]] = {}
230+
_validation: dict[str, dict[str, Any]] = {}
233231

234232
def __init__(self, **kwargs: Any) -> None:
235-
self.additional_properties: Optional[Dict[str, Any]] = {}
233+
self.additional_properties: Optional[dict[str, Any]] = {}
236234
for k in kwargs: # pylint: disable=consider-using-dict-items
237235
if k not in self._attribute_map:
238236
_LOGGER.warning("%s is not a known attribute of class %s and will be ignored", k, self.__class__)
@@ -309,7 +307,7 @@ def serialize(self, keep_readonly: bool = False, **kwargs: Any) -> JSON:
309307
def as_dict(
310308
self,
311309
keep_readonly: bool = True,
312-
key_transformer: Callable[[str, Dict[str, Any], Any], Any] = attribute_transformer,
310+
key_transformer: Callable[[str, dict[str, Any], Any], Any] = attribute_transformer,
313311
**kwargs: Any
314312
) -> JSON:
315313
"""Return a dict that can be serialized using json.dump.
@@ -378,7 +376,7 @@ def deserialize(cls, data: Any, content_type: Optional[str] = None) -> Self:
378376
def from_dict(
379377
cls,
380378
data: Any,
381-
key_extractors: Optional[Callable[[str, Dict[str, Any], Any], Any]] = None,
379+
key_extractors: Optional[Callable[[str, dict[str, Any], Any], Any]] = None,
382380
content_type: Optional[str] = None,
383381
) -> Self:
384382
"""Parse a dict using given key extractor return a model.
@@ -412,7 +410,7 @@ def _flatten_subtype(cls, key, objects):
412410
return {}
413411
result = dict(cls._subtype_map[key])
414412
for valuetype in cls._subtype_map[key].values():
415-
result.update(objects[valuetype]._flatten_subtype(key, objects)) # pylint: disable=protected-access
413+
result |= objects[valuetype]._flatten_subtype(key, objects) # pylint: disable=protected-access
416414
return result
417415

418416
@classmethod
@@ -526,7 +524,7 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None:
526524
"[]": self.serialize_iter,
527525
"{}": self.serialize_dict,
528526
}
529-
self.dependencies: Dict[str, type] = dict(classes) if classes else {}
527+
self.dependencies: dict[str, type] = dict(classes) if classes else {}
530528
self.key_transformer = full_restapi_key_transformer
531529
self.client_side_validation = True
532530

@@ -577,7 +575,7 @@ def _serialize( # pylint: disable=too-many-nested-blocks, too-many-branches, to
577575

578576
if attr_name == "additional_properties" and attr_desc["key"] == "":
579577
if target_obj.additional_properties is not None:
580-
serialized.update(target_obj.additional_properties)
578+
serialized |= target_obj.additional_properties
581579
continue
582580
try:
583581

@@ -1182,7 +1180,7 @@ def rest_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argumen
11821180

11831181
while "." in key:
11841182
# Need the cast, as for some reasons "split" is typed as list[str | Any]
1185-
dict_keys = cast(List[str], _FLATTEN.split(key))
1183+
dict_keys = cast(list[str], _FLATTEN.split(key))
11861184
if len(dict_keys) == 1:
11871185
key = _decode_attribute_map_key(dict_keys[0])
11881186
break
@@ -1384,7 +1382,7 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None:
13841382
"duration": (isodate.Duration, datetime.timedelta),
13851383
"iso-8601": (datetime.datetime),
13861384
}
1387-
self.dependencies: Dict[str, type] = dict(classes) if classes else {}
1385+
self.dependencies: dict[str, type] = dict(classes) if classes else {}
13881386
self.key_extractors = [rest_key_extractor, xml_key_extractor]
13891387
# Additional properties only works if the "rest_key_extractor" is used to
13901388
# extract the keys. Making it to work whatever the key extractor is too much

sdk/search/azure-search-documents/azure/search/documents/_generated/aio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.34.1)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.5, generator: @autorest/python@6.39.0)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66
# pylint: disable=wrong-import-position

0 commit comments

Comments
 (0)