5
5
# license information.
6
6
# --------------------------------------------------------------------------
7
7
8
- from typing import Any , List , Optional , MutableMapping , Dict , Callable
8
+ from typing import Any , List , Optional , MutableMapping , Dict , Callable , Union
9
9
from enum import Enum
10
10
from typing_extensions import Self
11
11
from azure .core import CaseInsensitiveEnumMeta
38
38
IndexingParameters ,
39
39
FieldMapping ,
40
40
SearchIndexerCache ,
41
+ IndexerPermissionOption ,
41
42
)
42
43
43
44
DELIMITER = "|"
@@ -1060,7 +1061,7 @@ def from_dict( # type: ignore
1060
1061
)
1061
1062
1062
1063
1063
- class SearchIndexerDataSourceConnection (_serialization .Model ):
1064
+ class SearchIndexerDataSourceConnection (_serialization .Model ): # pylint: disable=too-many-instance-attributes
1064
1065
"""Represents a datasource connection definition, which can be used to configure an indexer.
1065
1066
1066
1067
All required parameters must be populated in order to send to Azure.
@@ -1081,6 +1082,9 @@ class SearchIndexerDataSourceConnection(_serialization.Model):
1081
1082
not specified, the value remains unchanged. If "none" is specified, the value of this property
1082
1083
is cleared.
1083
1084
:vartype identity: ~azure.search.documents.indexes.models.SearchIndexerDataIdentity
1085
+ :ivar indexer_permission_options: Ingestion options with various types of permission data.
1086
+ :vartype indexer_permission_options: list[str or
1087
+ ~azure.search.documents.indexes.models.IndexerPermissionOption]
1084
1088
:ivar data_change_detection_policy: The data change detection policy for the datasource connection.
1085
1089
:vartype data_change_detection_policy: ~azure.search.documents.models.DataChangeDetectionPolicy
1086
1090
:ivar data_deletion_detection_policy: The data deletion detection policy for the datasource connection.
@@ -1109,6 +1113,7 @@ def __init__(
1109
1113
connection_string : str ,
1110
1114
container : SearchIndexerDataContainer ,
1111
1115
identity : Optional [SearchIndexerDataIdentity ] = None ,
1116
+ indexer_permission_options : Optional [List [Union [str , IndexerPermissionOption ]]] = None ,
1112
1117
data_change_detection_policy : Optional [DataChangeDetectionPolicy ] = None ,
1113
1118
data_deletion_detection_policy : Optional [DataDeletionDetectionPolicy ] = None ,
1114
1119
e_tag : Optional [str ] = None ,
@@ -1122,6 +1127,7 @@ def __init__(
1122
1127
self .connection_string = connection_string
1123
1128
self .container = container
1124
1129
self .identity = identity
1130
+ self .indexer_permission_options = indexer_permission_options
1125
1131
self .data_change_detection_policy = data_change_detection_policy
1126
1132
self .data_deletion_detection_policy = data_deletion_detection_policy
1127
1133
self .e_tag = e_tag
@@ -1146,6 +1152,7 @@ def _to_generated(self):
1146
1152
self .encryption_key ._to_generated () if self .encryption_key else None # pylint: disable=protected-access
1147
1153
),
1148
1154
identity = self .identity ,
1155
+ indexer_permission_options = self .indexer_permission_options ,
1149
1156
)
1150
1157
1151
1158
@classmethod
@@ -1172,6 +1179,7 @@ def _from_generated(cls, search_indexer_data_source) -> Optional[Self]:
1172
1179
else None
1173
1180
),
1174
1181
identity = search_indexer_data_source .identity ,
1182
+ indexer_permission_options = search_indexer_data_source .indexer_permission_options ,
1175
1183
)
1176
1184
1177
1185
def serialize (self , keep_readonly : bool = False , ** kwargs : Any ) -> MutableMapping [str , Any ]:
0 commit comments