-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[text analytics] analyze changes #16418
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
9252158
begin_analyze -> begin_analyze_batch_actions
iscai-msft 2d49745
rename task classes (i.e. EntitiesRecognitionTask) to action
iscai-msft a834254
return results directly on the AnalyzeBatchActionsResult
iscai-msft 092d47b
rename parameters
iscai-msft b087a57
switch mentions to task to action
iscai-msft 3064965
change input of actions to list, return actions same order as input
iscai-msft 3274fd8
add initial code and test for poller metadata
iscai-msft 510c97b
fix multi page case
iscai-msft 50f1a28
regen with custom pollers and polling methods
iscai-msft 09d9135
fix pollers and callbacks
iscai-msft a8a68f8
clean up sync tests
iscai-msft 806a8e5
fix async tests
iscai-msft ff538ab
fix async tests and generated code
iscai-msft 7e4cc1e
Merge branch 'analyze_redesign' of https://github.com/iscai-msft/azur…
iscai-msft 4fd6637
fix healthcare tests
iscai-msft 3885590
pylint and mypy
iscai-msft 527dc58
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-pytho…
iscai-msft 5707d8e
update samples
iscai-msft a21646b
revert eng tools change
iscai-msft 18602d3
remove erroneous async test in sync tests
iscai-msft 8ed20e1
fix domain filter naming and remove await in test
iscai-msft f4a4253
rename sample_analyze -> sample_analyze_batch_actions
iscai-msft 8866ba4
task docstring -> action
iscai-msft ed075f4
address krista's comments
c1f7bdc
remove playback test only headers
iscai-msft 20eee41
add support for heterogeneous list of good and bad responses
iscai-msft 6ed4e1e
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-pytho…
iscai-msft 04fff3a
fix phi
iscai-msft e97eb9e
fix sync sample, fix typo in name
iscai-msft 54cc95b
fix repr
iscai-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ | |
from typing import TYPE_CHECKING | ||
import warnings | ||
|
||
# FIXME: have to manually reconfigure import path for multiapi operation mixin | ||
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. can ignore all of the generated files |
||
from .._lro import AnalyzeBatchActionsLROPoller, AnalyzeBatchActionsLROPollingMethod | ||
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error | ||
from azure.core.pipeline import PipelineResponse | ||
from azure.core.pipeline.transport import HttpRequest, HttpResponse | ||
|
@@ -82,12 +84,12 @@ def begin_analyze( | |
:type body: ~azure.ai.textanalytics.v3_1_preview_3.models.AnalyzeBatchInput | ||
:keyword callable cls: A custom type or function that will be passed the direct response | ||
:keyword str continuation_token: A continuation token to restart a poller from a saved state. | ||
:keyword polling: Pass in True if you'd like the LROBasePolling polling method, | ||
:keyword polling: Pass in True if you'd like the AnalyzeBatchActionsLROPollingMethod polling method, | ||
False for no polling, or your own initialized polling object for a personal polling strategy. | ||
:paramtype polling: bool or ~azure.core.polling.PollingMethod | ||
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. | ||
:return: An instance of LROPoller that returns either None or the result of cls(response) | ||
:rtype: ~azure.core.polling.LROPoller[None] | ||
:return: An instance of AnalyzeBatchActionsLROPoller that returns either AnalyzeJobState or the result of cls(response) | ||
:rtype: ~...._lro.AnalyzeBatchActionsLROPoller[~azure.ai.textanalytics.v3_1_preview_3.models.AnalyzeJobState] | ||
:raises ~azure.core.exceptions.HttpResponseError: | ||
""" | ||
api_version = self._get_api_version('begin_analyze') | ||
|
@@ -160,12 +162,12 @@ def begin_health( | |
:type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_3.models.StringIndexType | ||
:keyword callable cls: A custom type or function that will be passed the direct response | ||
:keyword str continuation_token: A continuation token to restart a poller from a saved state. | ||
:keyword polling: Pass in True if you'd like the LROBasePolling polling method, | ||
:keyword polling: Pass in True if you'd like the AnalyzeBatchActionsLROPollingMethod polling method, | ||
False for no polling, or your own initialized polling object for a personal polling strategy. | ||
:paramtype polling: bool or ~azure.core.polling.PollingMethod | ||
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. | ||
:return: An instance of LROPoller that returns either None or the result of cls(response) | ||
:rtype: ~azure.core.polling.LROPoller[None] | ||
:return: An instance of AnalyzeBatchActionsLROPoller that returns either HealthcareJobState or the result of cls(response) | ||
:rtype: ~...._lro.AnalyzeBatchActionsLROPoller[~azure.ai.textanalytics.v3_1_preview_3.models.HealthcareJobState] | ||
:raises ~azure.core.exceptions.HttpResponseError: | ||
""" | ||
api_version = self._get_api_version('begin_health') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding metadata to the poller