Skip to content

Commit 469c3b1

Browse files
[textanalytics] regenerate and record on 2022-05-01 (Azure#24768)
* regen 2022-05-01 with python autorest 5.16.0 * rerecord with GA api version, skip analyze endpoint for now * add missing async patch * bump min azure-core version * pylint/mypy fixes * add typingextensions dep * fixes for samples
1 parent 8ace9c9 commit 469c3b1

File tree

583 files changed

+6926
-7226
lines changed

Some content is hidden

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

583 files changed

+6926
-7226
lines changed

scripts/devops_tasks/test_run_samples.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@
147147
"sample_multi_category_classify_async.py",
148148
"sample_recognize_custom_entities_async.py",
149149
"sample_single_category_classify_async.py",
150+
"sample_extract_summary.py",
151+
"sample_extract_summary_async.py",
150152
]
151153
}
152154

sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_base_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class TextAnalyticsApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
2020
"""Cognitive Service for Language or Text Analytics API versions supported by this package"""
2121

2222
#: this is the default version
23-
V2022_04_01_PREVIEW = "2022-04-01-preview"
23+
V2022_05_01 = "2022-05-01"
2424
V3_1 = "v3.1"
2525
V3_0 = "v3.0"
2626

sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_operations_mixin.py

Lines changed: 105 additions & 68 deletions
Large diffs are not rendered by default.

sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_text_analytics_client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ class TextAnalyticsClient(TextAnalyticsClientOperationsMixin, MultiApiClientMixi
6060
LATEST_PROFILE = ProfileDefinition({
6161
_PROFILE_TAG: {
6262
None: DEFAULT_API_VERSION,
63-
'analyze_text': '2022-04-01-preview',
64-
'analyze_text_job_status': '2022-04-01-preview',
65-
'begin_analyze_text_cancel_job': '2022-04-01-preview',
66-
'begin_analyze_text_submit_job': '2022-04-01-preview',
63+
'analyze_text': '2022-05-01',
64+
'analyze_text_job_status': '2022-05-01',
65+
'begin_analyze_text_cancel_job': '2022-05-01',
66+
'begin_analyze_text_submit_job': '2022-05-01',
6767
}},
6868
_PROFILE_TAG + " latest"
6969
)
@@ -76,7 +76,7 @@ def __init__(
7676
profile=KnownProfiles.default, # type: KnownProfiles
7777
**kwargs # type: Any
7878
):
79-
if api_version == '2022-04-01-preview':
79+
if api_version == '2022-05-01':
8080
base_url = '{Endpoint}/language'
8181
elif api_version == 'v3.0':
8282
base_url = '{Endpoint}/text/analytics/v3.0'
@@ -99,12 +99,12 @@ def _models_dict(cls, api_version):
9999
def models(cls, api_version=DEFAULT_API_VERSION):
100100
"""Module depends on the API version:
101101
102-
* 2022-04-01-preview: :mod:`v2022_04_01_preview.models<azure.ai.textanalytics.v2022_04_01_preview.models>`
102+
* 2022-05-01: :mod:`v2022_05_01.models<azure.ai.textanalytics.v2022_05_01.models>`
103103
* v3.0: :mod:`v3_0.models<azure.ai.textanalytics.v3_0.models>`
104104
* v3.1: :mod:`v3_1.models<azure.ai.textanalytics.v3_1.models>`
105105
"""
106-
if api_version == '2022-04-01-preview':
107-
from .v2022_04_01_preview import models
106+
if api_version == '2022-05-01':
107+
from .v2022_05_01 import models
108108
return models
109109
elif api_version == 'v3.0':
110110
from .v3_0 import models

sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_operations_mixin.py

Lines changed: 134 additions & 81 deletions
Large diffs are not rendered by default.

sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ class TextAnalyticsClient(TextAnalyticsClientOperationsMixin, MultiApiClientMixi
5959
LATEST_PROFILE = ProfileDefinition({
6060
_PROFILE_TAG: {
6161
None: DEFAULT_API_VERSION,
62-
'analyze_text': '2022-04-01-preview',
63-
'analyze_text_job_status': '2022-04-01-preview',
64-
'begin_analyze_text_cancel_job': '2022-04-01-preview',
65-
'begin_analyze_text_submit_job': '2022-04-01-preview',
62+
'analyze_text': '2022-05-01',
63+
'analyze_text_job_status': '2022-05-01',
64+
'begin_analyze_text_cancel_job': '2022-05-01',
65+
'begin_analyze_text_submit_job': '2022-05-01',
6666
}},
6767
_PROFILE_TAG + " latest"
6868
)
@@ -75,7 +75,7 @@ def __init__(
7575
profile: KnownProfiles = KnownProfiles.default,
7676
**kwargs # type: Any
7777
) -> None:
78-
if api_version == '2022-04-01-preview':
78+
if api_version == '2022-05-01':
7979
base_url = '{Endpoint}/language'
8080
elif api_version == 'v3.0':
8181
base_url = '{Endpoint}/text/analytics/v3.0'
@@ -98,12 +98,12 @@ def _models_dict(cls, api_version):
9898
def models(cls, api_version=DEFAULT_API_VERSION):
9999
"""Module depends on the API version:
100100
101-
* 2022-04-01-preview: :mod:`v2022_04_01_preview.models<azure.ai.textanalytics.v2022_04_01_preview.models>`
101+
* 2022-05-01: :mod:`v2022_05_01.models<azure.ai.textanalytics.v2022_05_01.models>`
102102
* v3.0: :mod:`v3_0.models<azure.ai.textanalytics.v3_0.models>`
103103
* v3.1: :mod:`v3_1.models<azure.ai.textanalytics.v3_1.models>`
104104
"""
105-
if api_version == '2022-04-01-preview':
106-
from ..v2022_04_01_preview import models
105+
if api_version == '2022-05-01':
106+
from ..v2022_05_01 import models
107107
return models
108108
elif api_version == 'v3.0':
109109
from ..v3_0 import models

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# Licensed under the MIT License. See License.txt in the project root for
55
# license information.
66
# --------------------------------------------------------------------------
7-
from .v2022_04_01_preview.models import *
7+
from .v2022_05_01.models import *
88
from .v3_1.models import *

0 commit comments

Comments
 (0)