Skip to content

Commit 455b3a0

Browse files
authored
1 parent e497463 commit 455b3a0

File tree

9 files changed

+141
-22
lines changed

9 files changed

+141
-22
lines changed

sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_data_sources_operations.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ async def create_or_update(
4545
data_source: "_models.SearchIndexerDataSource",
4646
if_match: Optional[str] = None,
4747
if_none_match: Optional[str] = None,
48+
ignore_reset_requirements: Optional[bool] = None,
4849
request_options: Optional["_models.RequestOptions"] = None,
4950
**kwargs: Any
5051
) -> "_models.SearchIndexerDataSource":
@@ -60,6 +61,8 @@ async def create_or_update(
6061
:param if_none_match: Defines the If-None-Match condition. The operation will be performed only
6162
if the ETag on the server does not match this value.
6263
:type if_none_match: str
64+
:param ignore_reset_requirements: Ignores cache reset requirements.
65+
:type ignore_reset_requirements: bool
6366
:param request_options: Parameter group.
6467
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
6568
:keyword callable cls: A custom type or function that will be passed the direct response
@@ -92,6 +95,8 @@ async def create_or_update(
9295
# Construct parameters
9396
query_parameters = {} # type: Dict[str, Any]
9497
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
98+
if ignore_reset_requirements is not None:
99+
query_parameters['ignoreResetRequirements'] = self._serialize.query("ignore_reset_requirements", ignore_reset_requirements, 'bool')
95100

96101
# Construct headers
97102
header_parameters = {} # type: Dict[str, Any]

sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_indexers_operations.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ async def create_or_update(
167167
indexer: "_models.SearchIndexer",
168168
if_match: Optional[str] = None,
169169
if_none_match: Optional[str] = None,
170+
disable_cache_reprocessing_change_detection: Optional[bool] = None,
171+
ignore_reset_requirements: Optional[bool] = None,
170172
request_options: Optional["_models.RequestOptions"] = None,
171173
**kwargs: Any
172174
) -> "_models.SearchIndexer":
@@ -182,6 +184,11 @@ async def create_or_update(
182184
:param if_none_match: Defines the If-None-Match condition. The operation will be performed only
183185
if the ETag on the server does not match this value.
184186
:type if_none_match: str
187+
:param disable_cache_reprocessing_change_detection: Disables cache reprocessing change
188+
detection.
189+
:type disable_cache_reprocessing_change_detection: bool
190+
:param ignore_reset_requirements: Ignores cache reset requirements.
191+
:type ignore_reset_requirements: bool
185192
:param request_options: Parameter group.
186193
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
187194
:keyword callable cls: A custom type or function that will be passed the direct response
@@ -214,6 +221,10 @@ async def create_or_update(
214221
# Construct parameters
215222
query_parameters = {} # type: Dict[str, Any]
216223
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
224+
if disable_cache_reprocessing_change_detection is not None:
225+
query_parameters['disableCacheReprocessingChangeDetection'] = self._serialize.query("disable_cache_reprocessing_change_detection", disable_cache_reprocessing_change_detection, 'bool')
226+
if ignore_reset_requirements is not None:
227+
query_parameters['ignoreResetRequirements'] = self._serialize.query("ignore_reset_requirements", ignore_reset_requirements, 'bool')
217228

218229
# Construct headers
219230
header_parameters = {} # type: Dict[str, Any]

sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_skillsets_operations.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ async def create_or_update(
4545
skillset: "_models.SearchIndexerSkillset",
4646
if_match: Optional[str] = None,
4747
if_none_match: Optional[str] = None,
48+
disable_cache_reprocessing_change_detection: Optional[bool] = None,
49+
ignore_reset_requirements: Optional[bool] = None,
4850
request_options: Optional["_models.RequestOptions"] = None,
4951
**kwargs: Any
5052
) -> "_models.SearchIndexerSkillset":
@@ -61,6 +63,11 @@ async def create_or_update(
6163
:param if_none_match: Defines the If-None-Match condition. The operation will be performed only
6264
if the ETag on the server does not match this value.
6365
:type if_none_match: str
66+
:param disable_cache_reprocessing_change_detection: Disables cache reprocessing change
67+
detection.
68+
:type disable_cache_reprocessing_change_detection: bool
69+
:param ignore_reset_requirements: Ignores cache reset requirements.
70+
:type ignore_reset_requirements: bool
6471
:param request_options: Parameter group.
6572
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
6673
:keyword callable cls: A custom type or function that will be passed the direct response
@@ -93,6 +100,10 @@ async def create_or_update(
93100
# Construct parameters
94101
query_parameters = {} # type: Dict[str, Any]
95102
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
103+
if disable_cache_reprocessing_change_detection is not None:
104+
query_parameters['disableCacheReprocessingChangeDetection'] = self._serialize.query("disable_cache_reprocessing_change_detection", disable_cache_reprocessing_change_detection, 'bool')
105+
if ignore_reset_requirements is not None:
106+
query_parameters['ignoreResetRequirements'] = self._serialize.query("ignore_reset_requirements", ignore_reset_requirements, 'bool')
96107

97108
# Construct headers
98109
header_parameters = {} # type: Dict[str, Any]

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
from ._models_py3 import SearchField
101101
from ._models_py3 import SearchIndex
102102
from ._models_py3 import SearchIndexer
103+
from ._models_py3 import SearchIndexerCache
103104
from ._models_py3 import SearchIndexerDataContainer
104105
from ._models_py3 import SearchIndexerDataIdentity
105106
from ._models_py3 import SearchIndexerDataNoneIdentity
@@ -242,6 +243,7 @@
242243
from ._models import SearchField # type: ignore
243244
from ._models import SearchIndex # type: ignore
244245
from ._models import SearchIndexer # type: ignore
246+
from ._models import SearchIndexerCache # type: ignore
245247
from ._models import SearchIndexerDataContainer # type: ignore
246248
from ._models import SearchIndexerDataIdentity # type: ignore
247249
from ._models import SearchIndexerDataNoneIdentity # type: ignore
@@ -428,6 +430,7 @@
428430
'SearchField',
429431
'SearchIndex',
430432
'SearchIndexer',
433+
'SearchIndexerCache',
431434
'SearchIndexerDataContainer',
432435
'SearchIndexerDataIdentity',
433436
'SearchIndexerDataNoneIdentity',

sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/_models.py

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ class DataChangeDetectionPolicy(msrest.serialization.Model):
11511151
"""Base type for data change detection policies.
11521152
11531153
You probably want to use the sub-classes and not this class directly. Known
1154-
sub-classes are: HighWaterMarkChangeDetectionPolicy, SearchIndexerDataNoneIdentity, SearchIndexerDataUserAssignedIdentity, SqlIntegratedChangeTrackingPolicy.
1154+
sub-classes are: HighWaterMarkChangeDetectionPolicy, SqlIntegratedChangeTrackingPolicy.
11551155
11561156
All required parameters must be populated in order to send to Azure.
11571157
@@ -1169,7 +1169,7 @@ class DataChangeDetectionPolicy(msrest.serialization.Model):
11691169
}
11701170

11711171
_subtype_map = {
1172-
'odata_type': {'#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy': 'HighWaterMarkChangeDetectionPolicy', '#Microsoft.Azure.Search.SearchIndexerDataNoneIdentity': 'SearchIndexerDataNoneIdentity', '#Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity': 'SearchIndexerDataUserAssignedIdentity', '#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy': 'SqlIntegratedChangeTrackingPolicy'}
1172+
'odata_type': {'#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy': 'HighWaterMarkChangeDetectionPolicy', '#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy': 'SqlIntegratedChangeTrackingPolicy'}
11731173
}
11741174

11751175
def __init__(
@@ -4435,6 +4435,9 @@ class SearchIndexer(msrest.serialization.Model):
44354435
unaffected. Encryption with customer-managed keys is not available for free search services,
44364436
and is only available for paid services created on or after January 1, 2019.
44374437
:type encryption_key: ~azure.search.documents.indexes.models.SearchResourceEncryptionKey
4438+
:param cache: Adds caching to an enrichment pipeline to allow for incremental modification
4439+
steps without having to rebuild the index every time.
4440+
:type cache: ~azure.search.documents.indexes.models.SearchIndexerCache
44384441
"""
44394442

44404443
_validation = {
@@ -4456,6 +4459,7 @@ class SearchIndexer(msrest.serialization.Model):
44564459
'is_disabled': {'key': 'disabled', 'type': 'bool'},
44574460
'e_tag': {'key': '@odata\\.etag', 'type': 'str'},
44584461
'encryption_key': {'key': 'encryptionKey', 'type': 'SearchResourceEncryptionKey'},
4462+
'cache': {'key': 'cache', 'type': 'SearchIndexerCache'},
44594463
}
44604464

44614465
def __init__(
@@ -4475,6 +4479,31 @@ def __init__(
44754479
self.is_disabled = kwargs.get('is_disabled', False)
44764480
self.e_tag = kwargs.get('e_tag', None)
44774481
self.encryption_key = kwargs.get('encryption_key', None)
4482+
self.cache = kwargs.get('cache', None)
4483+
4484+
4485+
class SearchIndexerCache(msrest.serialization.Model):
4486+
"""SearchIndexerCache.
4487+
4488+
:param storage_connection_string: The connection string to the storage account where the cache
4489+
data will be persisted.
4490+
:type storage_connection_string: str
4491+
:param enable_reprocessing: Specifies whether incremental reprocessing is enabled.
4492+
:type enable_reprocessing: bool
4493+
"""
4494+
4495+
_attribute_map = {
4496+
'storage_connection_string': {'key': 'storageConnectionString', 'type': 'str'},
4497+
'enable_reprocessing': {'key': 'enableReprocessing', 'type': 'bool'},
4498+
}
4499+
4500+
def __init__(
4501+
self,
4502+
**kwargs
4503+
):
4504+
super(SearchIndexerCache, self).__init__(**kwargs)
4505+
self.storage_connection_string = kwargs.get('storage_connection_string', None)
4506+
self.enable_reprocessing = kwargs.get('enable_reprocessing', None)
44784507

44794508

44804509
class SearchIndexerDataContainer(msrest.serialization.Model):
@@ -4509,10 +4538,10 @@ def __init__(
45094538

45104539

45114540
class SearchIndexerDataIdentity(msrest.serialization.Model):
4512-
"""Base type for data identities.
4541+
"""Abstract base type for data identities.
45134542
45144543
You probably want to use the sub-classes and not this class directly. Known
4515-
sub-classes are: .
4544+
sub-classes are: SearchIndexerDataNoneIdentity, SearchIndexerDataUserAssignedIdentity.
45164545
45174546
All required parameters must be populated in order to send to Azure.
45184547
@@ -4530,7 +4559,7 @@ class SearchIndexerDataIdentity(msrest.serialization.Model):
45304559
}
45314560

45324561
_subtype_map = {
4533-
'odata_type': {}
4562+
'odata_type': {'#Microsoft.Azure.Search.SearchIndexerDataNoneIdentity': 'SearchIndexerDataNoneIdentity', '#Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity': 'SearchIndexerDataUserAssignedIdentity'}
45344563
}
45354564

45364565
def __init__(
@@ -4541,13 +4570,13 @@ def __init__(
45414570
self.odata_type = None # type: Optional[str]
45424571

45434572

4544-
class SearchIndexerDataNoneIdentity(DataChangeDetectionPolicy):
4573+
class SearchIndexerDataNoneIdentity(SearchIndexerDataIdentity):
45454574
"""Clears the identity property of a datasource.
45464575
45474576
All required parameters must be populated in order to send to Azure.
45484577
4549-
:param odata_type: Required. Identifies the concrete type of the data change detection
4550-
policy.Constant filled by server.
4578+
:param odata_type: Required. Identifies the concrete type of the identity.Constant filled by
4579+
server.
45514580
:type odata_type: str
45524581
"""
45534582

@@ -4645,13 +4674,13 @@ def __init__(
46454674
self.encryption_key = kwargs.get('encryption_key', None)
46464675

46474676

4648-
class SearchIndexerDataUserAssignedIdentity(DataChangeDetectionPolicy):
4677+
class SearchIndexerDataUserAssignedIdentity(SearchIndexerDataIdentity):
46494678
"""Specifies the identity for a datasource to use.
46504679
46514680
All required parameters must be populated in order to send to Azure.
46524681
4653-
:param odata_type: Required. Identifies the concrete type of the data change detection
4654-
policy.Constant filled by server.
4682+
:param odata_type: Required. Identifies the concrete type of the identity.Constant filled by
4683+
server.
46554684
:type odata_type: str
46564685
:param user_assigned_identity: Required. The fully qualified Azure resource Id of a user
46574686
assigned managed identity typically in the form

sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/_models_py3.py

Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ class DataChangeDetectionPolicy(msrest.serialization.Model):
12561256
"""Base type for data change detection policies.
12571257
12581258
You probably want to use the sub-classes and not this class directly. Known
1259-
sub-classes are: HighWaterMarkChangeDetectionPolicy, SearchIndexerDataNoneIdentity, SearchIndexerDataUserAssignedIdentity, SqlIntegratedChangeTrackingPolicy.
1259+
sub-classes are: HighWaterMarkChangeDetectionPolicy, SqlIntegratedChangeTrackingPolicy.
12601260
12611261
All required parameters must be populated in order to send to Azure.
12621262
@@ -1274,7 +1274,7 @@ class DataChangeDetectionPolicy(msrest.serialization.Model):
12741274
}
12751275

12761276
_subtype_map = {
1277-
'odata_type': {'#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy': 'HighWaterMarkChangeDetectionPolicy', '#Microsoft.Azure.Search.SearchIndexerDataNoneIdentity': 'SearchIndexerDataNoneIdentity', '#Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity': 'SearchIndexerDataUserAssignedIdentity', '#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy': 'SqlIntegratedChangeTrackingPolicy'}
1277+
'odata_type': {'#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy': 'HighWaterMarkChangeDetectionPolicy', '#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy': 'SqlIntegratedChangeTrackingPolicy'}
12781278
}
12791279

12801280
def __init__(
@@ -4866,6 +4866,9 @@ class SearchIndexer(msrest.serialization.Model):
48664866
unaffected. Encryption with customer-managed keys is not available for free search services,
48674867
and is only available for paid services created on or after January 1, 2019.
48684868
:type encryption_key: ~azure.search.documents.indexes.models.SearchResourceEncryptionKey
4869+
:param cache: Adds caching to an enrichment pipeline to allow for incremental modification
4870+
steps without having to rebuild the index every time.
4871+
:type cache: ~azure.search.documents.indexes.models.SearchIndexerCache
48694872
"""
48704873

48714874
_validation = {
@@ -4887,6 +4890,7 @@ class SearchIndexer(msrest.serialization.Model):
48874890
'is_disabled': {'key': 'disabled', 'type': 'bool'},
48884891
'e_tag': {'key': '@odata\\.etag', 'type': 'str'},
48894892
'encryption_key': {'key': 'encryptionKey', 'type': 'SearchResourceEncryptionKey'},
4893+
'cache': {'key': 'cache', 'type': 'SearchIndexerCache'},
48904894
}
48914895

48924896
def __init__(
@@ -4904,6 +4908,7 @@ def __init__(
49044908
is_disabled: Optional[bool] = False,
49054909
e_tag: Optional[str] = None,
49064910
encryption_key: Optional["SearchResourceEncryptionKey"] = None,
4911+
cache: Optional["SearchIndexerCache"] = None,
49074912
**kwargs
49084913
):
49094914
super(SearchIndexer, self).__init__(**kwargs)
@@ -4919,6 +4924,34 @@ def __init__(
49194924
self.is_disabled = is_disabled
49204925
self.e_tag = e_tag
49214926
self.encryption_key = encryption_key
4927+
self.cache = cache
4928+
4929+
4930+
class SearchIndexerCache(msrest.serialization.Model):
4931+
"""SearchIndexerCache.
4932+
4933+
:param storage_connection_string: The connection string to the storage account where the cache
4934+
data will be persisted.
4935+
:type storage_connection_string: str
4936+
:param enable_reprocessing: Specifies whether incremental reprocessing is enabled.
4937+
:type enable_reprocessing: bool
4938+
"""
4939+
4940+
_attribute_map = {
4941+
'storage_connection_string': {'key': 'storageConnectionString', 'type': 'str'},
4942+
'enable_reprocessing': {'key': 'enableReprocessing', 'type': 'bool'},
4943+
}
4944+
4945+
def __init__(
4946+
self,
4947+
*,
4948+
storage_connection_string: Optional[str] = None,
4949+
enable_reprocessing: Optional[bool] = None,
4950+
**kwargs
4951+
):
4952+
super(SearchIndexerCache, self).__init__(**kwargs)
4953+
self.storage_connection_string = storage_connection_string
4954+
self.enable_reprocessing = enable_reprocessing
49224955

49234956

49244957
class SearchIndexerDataContainer(msrest.serialization.Model):
@@ -4956,10 +4989,10 @@ def __init__(
49564989

49574990

49584991
class SearchIndexerDataIdentity(msrest.serialization.Model):
4959-
"""Base type for data identities.
4992+
"""Abstract base type for data identities.
49604993
49614994
You probably want to use the sub-classes and not this class directly. Known
4962-
sub-classes are: .
4995+
sub-classes are: SearchIndexerDataNoneIdentity, SearchIndexerDataUserAssignedIdentity.
49634996
49644997
All required parameters must be populated in order to send to Azure.
49654998
@@ -4977,7 +5010,7 @@ class SearchIndexerDataIdentity(msrest.serialization.Model):
49775010
}
49785011

49795012
_subtype_map = {
4980-
'odata_type': {}
5013+
'odata_type': {'#Microsoft.Azure.Search.SearchIndexerDataNoneIdentity': 'SearchIndexerDataNoneIdentity', '#Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity': 'SearchIndexerDataUserAssignedIdentity'}
49815014
}
49825015

49835016
def __init__(
@@ -4988,13 +5021,13 @@ def __init__(
49885021
self.odata_type = None # type: Optional[str]
49895022

49905023

4991-
class SearchIndexerDataNoneIdentity(DataChangeDetectionPolicy):
5024+
class SearchIndexerDataNoneIdentity(SearchIndexerDataIdentity):
49925025
"""Clears the identity property of a datasource.
49935026
49945027
All required parameters must be populated in order to send to Azure.
49955028
4996-
:param odata_type: Required. Identifies the concrete type of the data change detection
4997-
policy.Constant filled by server.
5029+
:param odata_type: Required. Identifies the concrete type of the identity.Constant filled by
5030+
server.
49985031
:type odata_type: str
49995032
"""
50005033

@@ -5103,13 +5136,13 @@ def __init__(
51035136
self.encryption_key = encryption_key
51045137

51055138

5106-
class SearchIndexerDataUserAssignedIdentity(DataChangeDetectionPolicy):
5139+
class SearchIndexerDataUserAssignedIdentity(SearchIndexerDataIdentity):
51075140
"""Specifies the identity for a datasource to use.
51085141
51095142
All required parameters must be populated in order to send to Azure.
51105143
5111-
:param odata_type: Required. Identifies the concrete type of the data change detection
5112-
policy.Constant filled by server.
5144+
:param odata_type: Required. Identifies the concrete type of the identity.Constant filled by
5145+
server.
51135146
:type odata_type: str
51145147
:param user_assigned_identity: Required. The fully qualified Azure resource Id of a user
51155148
assigned managed identity typically in the form

sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_data_sources_operations.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def create_or_update(
4949
data_source, # type: "_models.SearchIndexerDataSource"
5050
if_match=None, # type: Optional[str]
5151
if_none_match=None, # type: Optional[str]
52+
ignore_reset_requirements=None, # type: Optional[bool]
5253
request_options=None, # type: Optional["_models.RequestOptions"]
5354
**kwargs # type: Any
5455
):
@@ -65,6 +66,8 @@ def create_or_update(
6566
:param if_none_match: Defines the If-None-Match condition. The operation will be performed only
6667
if the ETag on the server does not match this value.
6768
:type if_none_match: str
69+
:param ignore_reset_requirements: Ignores cache reset requirements.
70+
:type ignore_reset_requirements: bool
6871
:param request_options: Parameter group.
6972
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
7073
:keyword callable cls: A custom type or function that will be passed the direct response
@@ -97,6 +100,8 @@ def create_or_update(
97100
# Construct parameters
98101
query_parameters = {} # type: Dict[str, Any]
99102
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
103+
if ignore_reset_requirements is not None:
104+
query_parameters['ignoreResetRequirements'] = self._serialize.query("ignore_reset_requirements", ignore_reset_requirements, 'bool')
100105

101106
# Construct headers
102107
header_parameters = {} # type: Dict[str, Any]

0 commit comments

Comments
 (0)