@@ -64,6 +64,7 @@ def analyze_status(
6464 mixin_instance ._client = self ._client
6565 mixin_instance ._config = self ._config
6666 mixin_instance ._serialize = Serializer (self ._models_dict (api_version ))
67+ mixin_instance ._serialize .client_side_validation = False
6768 mixin_instance ._deserialize = Deserializer (self ._models_dict (api_version ))
6869 return mixin_instance .analyze_status (job_id , show_stats , top , skip , ** kwargs )
6970
@@ -81,8 +82,8 @@ def begin_analyze(
8182 :type body: ~azure.ai.textanalytics.v3_1_preview_3.models.AnalyzeBatchInput
8283 :keyword callable cls: A custom type or function that will be passed the direct response
8384 :keyword str continuation_token: A continuation token to restart a poller from a saved state.
84- :keyword polling: True for ARMPolling, False for no polling, or a
85- polling object for personal polling strategy
85+ :keyword polling: Pass in True if you'd like the LROBasePolling polling method,
86+ False for no polling, or your own initialized polling object for a personal polling strategy.
8687 :paramtype polling: bool or ~azure.core.polling.PollingMethod
8788 :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
8889 :return: An instance of LROPoller that returns either None or the result of cls(response)
@@ -98,6 +99,7 @@ def begin_analyze(
9899 mixin_instance ._client = self ._client
99100 mixin_instance ._config = self ._config
100101 mixin_instance ._serialize = Serializer (self ._models_dict (api_version ))
102+ mixin_instance ._serialize .client_side_validation = False
101103 mixin_instance ._deserialize = Deserializer (self ._models_dict (api_version ))
102104 return mixin_instance .begin_analyze (body , ** kwargs )
103105
@@ -114,8 +116,8 @@ def begin_cancel_health_job(
114116 :type job_id: str
115117 :keyword callable cls: A custom type or function that will be passed the direct response
116118 :keyword str continuation_token: A continuation token to restart a poller from a saved state.
117- :keyword polling: True for ARMPolling, False for no polling, or a
118- polling object for personal polling strategy
119+ :keyword polling: Pass in True if you'd like the LROBasePolling polling method,
120+ False for no polling, or your own initialized polling object for a personal polling strategy.
119121 :paramtype polling: bool or ~azure.core.polling.PollingMethod
120122 :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
121123 :return: An instance of LROPoller that returns either None or the result of cls(response)
@@ -131,6 +133,7 @@ def begin_cancel_health_job(
131133 mixin_instance ._client = self ._client
132134 mixin_instance ._config = self ._config
133135 mixin_instance ._serialize = Serializer (self ._models_dict (api_version ))
136+ mixin_instance ._serialize .client_side_validation = False
134137 mixin_instance ._deserialize = Deserializer (self ._models_dict (api_version ))
135138 return mixin_instance .begin_cancel_health_job (job_id , ** kwargs )
136139
@@ -157,8 +160,8 @@ def begin_health(
157160 :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_3.models.StringIndexType
158161 :keyword callable cls: A custom type or function that will be passed the direct response
159162 :keyword str continuation_token: A continuation token to restart a poller from a saved state.
160- :keyword polling: True for ARMPolling, False for no polling, or a
161- polling object for personal polling strategy
163+ :keyword polling: Pass in True if you'd like the LROBasePolling polling method,
164+ False for no polling, or your own initialized polling object for a personal polling strategy.
162165 :paramtype polling: bool or ~azure.core.polling.PollingMethod
163166 :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
164167 :return: An instance of LROPoller that returns either None or the result of cls(response)
@@ -174,6 +177,7 @@ def begin_health(
174177 mixin_instance ._client = self ._client
175178 mixin_instance ._config = self ._config
176179 mixin_instance ._serialize = Serializer (self ._models_dict (api_version ))
180+ mixin_instance ._serialize .client_side_validation = False
177181 mixin_instance ._deserialize = Deserializer (self ._models_dict (api_version ))
178182 return mixin_instance .begin_health (documents , model_version , string_index_type , ** kwargs )
179183
@@ -206,8 +210,6 @@ def entities_linking(
206210 api_version = self ._get_api_version ('entities_linking' )
207211 if api_version == 'v3.0' :
208212 from .v3_0 .operations import TextAnalyticsClientOperationsMixin as OperationClass
209- elif api_version == 'v3.1-preview.2' :
210- from .v3_1_preview_2 .operations import TextAnalyticsClientOperationsMixin as OperationClass
211213 elif api_version == 'v3.1-preview.3' :
212214 from .v3_1_preview_3 .operations import TextAnalyticsClientOperationsMixin as OperationClass
213215 else :
@@ -216,6 +218,7 @@ def entities_linking(
216218 mixin_instance ._client = self ._client
217219 mixin_instance ._config = self ._config
218220 mixin_instance ._serialize = Serializer (self ._models_dict (api_version ))
221+ mixin_instance ._serialize .client_side_validation = False
219222 mixin_instance ._deserialize = Deserializer (self ._models_dict (api_version ))
220223 return mixin_instance .entities_linking (documents , model_version , show_stats , ** kwargs )
221224
@@ -249,8 +252,6 @@ def entities_recognition_general(
249252 api_version = self ._get_api_version ('entities_recognition_general' )
250253 if api_version == 'v3.0' :
251254 from .v3_0 .operations import TextAnalyticsClientOperationsMixin as OperationClass
252- elif api_version == 'v3.1-preview.2' :
253- from .v3_1_preview_2 .operations import TextAnalyticsClientOperationsMixin as OperationClass
254255 elif api_version == 'v3.1-preview.3' :
255256 from .v3_1_preview_3 .operations import TextAnalyticsClientOperationsMixin as OperationClass
256257 else :
@@ -259,6 +260,7 @@ def entities_recognition_general(
259260 mixin_instance ._client = self ._client
260261 mixin_instance ._config = self ._config
261262 mixin_instance ._serialize = Serializer (self ._models_dict (api_version ))
263+ mixin_instance ._serialize .client_side_validation = False
262264 mixin_instance ._deserialize = Deserializer (self ._models_dict (api_version ))
263265 return mixin_instance .entities_recognition_general (documents , model_version , show_stats , ** kwargs )
264266
@@ -280,35 +282,35 @@ def entities_recognition_pii(
280282 list of enabled languages.
281283
282284 :param documents: The set of documents to process as part of this batch.
283- :type documents: list[~azure.ai.textanalytics.v3_1_preview_2 .models.MultiLanguageInput]
285+ :type documents: list[~azure.ai.textanalytics.v3_1_preview_3 .models.MultiLanguageInput]
284286 :param model_version: (Optional) This value indicates which model will be used for scoring. If
285287 a model-version is not specified, the API should default to the latest, non-preview version.
286288 :type model_version: str
287289 :param show_stats: (Optional) if set to true, response will contain request and document level
288290 statistics.
289291 :type show_stats: bool
290- :param domain: (Optional) if set to 'PHI', response will contain only PHI entities.
292+ :param domain: (Optional) if specified, will set the PII domain to include only a subset of the
293+ entity categories. Possible values include: 'PHI', 'none'.
291294 :type domain: str
292295 :param string_index_type: (Optional) Specifies the method used to interpret string offsets.
293296 Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information
294297 see https://aka.ms/text-analytics-offsets.
295- :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_2 .models.StringIndexType
298+ :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_3 .models.StringIndexType
296299 :keyword callable cls: A custom type or function that will be passed the direct response
297- :return: PiiEntitiesResult , or the result of cls(response)
298- :rtype: ~azure.ai.textanalytics.v3_1_preview_2 .models.PiiEntitiesResult
300+ :return: PiiResult , or the result of cls(response)
301+ :rtype: ~azure.ai.textanalytics.v3_1_preview_3 .models.PiiResult
299302 :raises: ~azure.core.exceptions.HttpResponseError
300303 """
301304 api_version = self ._get_api_version ('entities_recognition_pii' )
302- if api_version == 'v3.1-preview.2' :
303- from .v3_1_preview_2 .operations import TextAnalyticsClientOperationsMixin as OperationClass
304- elif api_version == 'v3.1-preview.3' :
305+ if api_version == 'v3.1-preview.3' :
305306 from .v3_1_preview_3 .operations import TextAnalyticsClientOperationsMixin as OperationClass
306307 else :
307308 raise ValueError ("API version {} does not have operation 'entities_recognition_pii'" .format (api_version ))
308309 mixin_instance = OperationClass ()
309310 mixin_instance ._client = self ._client
310311 mixin_instance ._config = self ._config
311312 mixin_instance ._serialize = Serializer (self ._models_dict (api_version ))
313+ mixin_instance ._serialize .client_side_validation = False
312314 mixin_instance ._deserialize = Deserializer (self ._models_dict (api_version ))
313315 return mixin_instance .entities_recognition_pii (documents , model_version , show_stats , domain , string_index_type , ** kwargs )
314316
@@ -349,6 +351,7 @@ def health_status(
349351 mixin_instance ._client = self ._client
350352 mixin_instance ._config = self ._config
351353 mixin_instance ._serialize = Serializer (self ._models_dict (api_version ))
354+ mixin_instance ._serialize .client_side_validation = False
352355 mixin_instance ._deserialize = Deserializer (self ._models_dict (api_version ))
353356 return mixin_instance .health_status (job_id , top , skip , show_stats , ** kwargs )
354357
@@ -381,8 +384,6 @@ def key_phrases(
381384 api_version = self ._get_api_version ('key_phrases' )
382385 if api_version == 'v3.0' :
383386 from .v3_0 .operations import TextAnalyticsClientOperationsMixin as OperationClass
384- elif api_version == 'v3.1-preview.2' :
385- from .v3_1_preview_2 .operations import TextAnalyticsClientOperationsMixin as OperationClass
386387 elif api_version == 'v3.1-preview.3' :
387388 from .v3_1_preview_3 .operations import TextAnalyticsClientOperationsMixin as OperationClass
388389 else :
@@ -391,6 +392,7 @@ def key_phrases(
391392 mixin_instance ._client = self ._client
392393 mixin_instance ._config = self ._config
393394 mixin_instance ._serialize = Serializer (self ._models_dict (api_version ))
395+ mixin_instance ._serialize .client_side_validation = False
394396 mixin_instance ._deserialize = Deserializer (self ._models_dict (api_version ))
395397 return mixin_instance .key_phrases (documents , model_version , show_stats , ** kwargs )
396398
@@ -424,8 +426,6 @@ def languages(
424426 api_version = self ._get_api_version ('languages' )
425427 if api_version == 'v3.0' :
426428 from .v3_0 .operations import TextAnalyticsClientOperationsMixin as OperationClass
427- elif api_version == 'v3.1-preview.2' :
428- from .v3_1_preview_2 .operations import TextAnalyticsClientOperationsMixin as OperationClass
429429 elif api_version == 'v3.1-preview.3' :
430430 from .v3_1_preview_3 .operations import TextAnalyticsClientOperationsMixin as OperationClass
431431 else :
@@ -434,6 +434,7 @@ def languages(
434434 mixin_instance ._client = self ._client
435435 mixin_instance ._config = self ._config
436436 mixin_instance ._serialize = Serializer (self ._models_dict (api_version ))
437+ mixin_instance ._serialize .client_side_validation = False
437438 mixin_instance ._deserialize = Deserializer (self ._models_dict (api_version ))
438439 return mixin_instance .languages (documents , model_version , show_stats , ** kwargs )
439440
@@ -467,8 +468,6 @@ def sentiment(
467468 api_version = self ._get_api_version ('sentiment' )
468469 if api_version == 'v3.0' :
469470 from .v3_0 .operations import TextAnalyticsClientOperationsMixin as OperationClass
470- elif api_version == 'v3.1-preview.2' :
471- from .v3_1_preview_2 .operations import TextAnalyticsClientOperationsMixin as OperationClass
472471 elif api_version == 'v3.1-preview.3' :
473472 from .v3_1_preview_3 .operations import TextAnalyticsClientOperationsMixin as OperationClass
474473 else :
@@ -477,5 +476,6 @@ def sentiment(
477476 mixin_instance ._client = self ._client
478477 mixin_instance ._config = self ._config
479478 mixin_instance ._serialize = Serializer (self ._models_dict (api_version ))
479+ mixin_instance ._serialize .client_side_validation = False
480480 mixin_instance ._deserialize = Deserializer (self ._models_dict (api_version ))
481481 return mixin_instance .sentiment (documents , model_version , show_stats , ** kwargs )
0 commit comments