-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[text analytics] Autogenerated code for v3.1-preview.4 #16811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
edc5149
ceb58f0
0f436bb
dfa0789
4856d74
6493689
f9ccbb5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,6 +75,8 @@ def __init__( | |
| base_url = '{Endpoint}/text/analytics/v3.0' | ||
| elif api_version == 'v3.1-preview.3': | ||
| base_url = '{Endpoint}/text/analytics/v3.1-preview.3' | ||
| elif api_version == 'v3.1-preview.4': | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we going to bump the version here like we did before for v3.1-preview.4 (i.e. removing support for other API versions)?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For now I've added this back in to prevent existing tests from failing. It will be easier to remove this later once updates to Healthcare and Analyze have been merged, because the tests will be updated to reflect the changes.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah @abhahn you made the right call. We need to keep v3.1-preview.3 and 4 for now, but once 4 is released we should get rid of 3 |
||
| base_url = '{Endpoint}/text/analytics/v3.1-preview.4' | ||
| else: | ||
| raise ValueError("API version {} is not available".format(api_version)) | ||
| self._config = TextAnalyticsClientConfiguration(credential, endpoint, **kwargs) | ||
|
|
@@ -94,13 +96,17 @@ def models(cls, api_version=DEFAULT_API_VERSION): | |
|
|
||
| * v3.0: :mod:`v3_0.models<azure.ai.textanalytics.v3_0.models>` | ||
| * v3.1-preview.3: :mod:`v3_1_preview_3.models<azure.ai.textanalytics.v3_1_preview_3.models>` | ||
| * v3.1-preview.4: :mod:`v3_1_preview_4.models<azure.ai.textanalytics.v3_1_preview_4.models>` | ||
| """ | ||
| if api_version == 'v3.0': | ||
| from .v3_0 import models | ||
| return models | ||
| elif api_version == 'v3.1-preview.3': | ||
| from .v3_1_preview_3 import models | ||
| return models | ||
| elif api_version == 'v3.1-preview.4': | ||
| from .v3_1_preview_4 import models | ||
| return models | ||
| raise ValueError("API version {} is not available".format(api_version)) | ||
|
|
||
| def close(self): | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.