Skip to content

Commit 8808128

Browse files
regen on official swagger / remove local swagger (Azure#24382)
1 parent 604e78a commit 8808128

File tree

6 files changed

+17
-3174
lines changed

6 files changed

+17
-3174
lines changed

sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
DocumentSentimentValue,
143143
ErrorCode,
144144
ExtractiveSummarizationSortingCriteria,
145+
FhirVersion,
145146
HealthcareEntityCategory,
146147
InnerErrorCode,
147148
PiiCategory,
@@ -289,6 +290,7 @@
289290
'DocumentSentimentValue',
290291
'ErrorCode',
291292
'ExtractiveSummarizationSortingCriteria',
293+
'FhirVersion',
292294
'HealthcareEntityCategory',
293295
'InnerErrorCode',
294296
'PiiCategory',

sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview/models/_models_py3.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4150,9 +4150,9 @@ class HealthcareTaskParameters(PreBuiltTaskParameters):
41504150
:ivar model_version:
41514151
:vartype model_version: str
41524152
:ivar fhir_version: The FHIR Spec version that the result will use to format the fhirBundle.
4153-
For additional information see https://www.hl7.org/fhir/overview.html. The only acceptable
4154-
values to pass in are None and "4.0.1". The default value is None.
4155-
:vartype fhir_version: str
4153+
For additional information see https://www.hl7.org/fhir/overview.html. Possible values include:
4154+
"4.0.1".
4155+
:vartype fhir_version: str or ~azure.ai.textanalytics.v2022_04_01_preview.models.FhirVersion
41564156
:ivar string_index_type: Specifies the method used to interpret string offsets. Defaults to
41574157
Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see
41584158
https://aka.ms/text-analytics-offsets. Possible values include: "TextElements_v8",
@@ -4173,7 +4173,7 @@ def __init__(
41734173
*,
41744174
logging_opt_out: Optional[bool] = False,
41754175
model_version: Optional[str] = "latest",
4176-
fhir_version: Optional[str] = None,
4176+
fhir_version: Optional[Union[str, "FhirVersion"]] = None,
41774177
string_index_type: Optional[Union[str, "StringIndexType"]] = "TextElements_v8",
41784178
**kwargs
41794179
):
@@ -4183,9 +4183,9 @@ def __init__(
41834183
:keyword model_version:
41844184
:paramtype model_version: str
41854185
:keyword fhir_version: The FHIR Spec version that the result will use to format the fhirBundle.
4186-
For additional information see https://www.hl7.org/fhir/overview.html. The only acceptable
4187-
values to pass in are None and "4.0.1". The default value is None.
4188-
:paramtype fhir_version: str
4186+
For additional information see https://www.hl7.org/fhir/overview.html. Possible values include:
4187+
"4.0.1".
4188+
:paramtype fhir_version: str or ~azure.ai.textanalytics.v2022_04_01_preview.models.FhirVersion
41894189
:keyword string_index_type: Specifies the method used to interpret string offsets. Defaults to
41904190
Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see
41914191
https://aka.ms/text-analytics-offsets. Possible values include: "TextElements_v8",

sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview/models/_text_analytics_client_enums.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,13 @@ class ExtractiveSummarizationSortingCriteria(with_metaclass(CaseInsensitiveEnumM
125125
#: the model.
126126
RANK = "Rank"
127127

128+
class FhirVersion(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
129+
"""The FHIR Spec version that the result will use to format the fhirBundle. For additional
130+
information see https://www.hl7.org/fhir/overview.html.
131+
"""
132+
133+
FOUR0_1 = "4.0.1"
134+
128135
class HealthcareEntityCategory(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
129136
"""Healthcare Entity Category.
130137
"""

sdk/textanalytics/azure-ai-textanalytics/swagger/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ output-folder: $(python-sdks-folder)/textanalytics/azure-ai-textanalytics/azure/
6767
These settings apply only when `--tag=release_2022_04_01_preview` is specified on the command line.
6868

6969
```yaml $(tag) == 'release_2022_04_01_preview'
70-
input-file: $(python-sdks-folder)/textanalytics/azure-ai-textanalytics/swagger/textanalytics.json
70+
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/cognitiveservices-Language-2022-04-01-preview/specification/cognitiveservices/data-plane/Language/preview/2022-04-01-preview/textanalytics.json
7171
namespace: azure.ai.textanalytics.v2022_04_01_preview
7272
output-folder: $(python-sdks-folder)/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview
7373
```

sdk/textanalytics/azure-ai-textanalytics/swagger/common.json

Lines changed: 0 additions & 248 deletions
This file was deleted.

0 commit comments

Comments
 (0)