From 47e315b6154a0c071a3075772dfeee99a3447cdc Mon Sep 17 00:00:00 2001 From: Shawn Fang <45607042+mssfang@users.noreply.github.com> Date: Fri, 12 Aug 2022 09:18:48 -0700 Subject: [PATCH] [TA] Remove partial succeeded status code (#30421) --- .../com/azure/ai/textanalytics/AnalyzeActionsAsyncClient.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/AnalyzeActionsAsyncClient.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/AnalyzeActionsAsyncClient.java index c7165e447c467..3717d10565caa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/AnalyzeActionsAsyncClient.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/AnalyzeActionsAsyncClient.java @@ -149,7 +149,6 @@ import static com.azure.ai.textanalytics.implementation.Utility.toRecognizePiiEntitiesResultCollection; import static com.azure.ai.textanalytics.implementation.models.State.CANCELLED; import static com.azure.ai.textanalytics.implementation.models.State.NOT_STARTED; -import static com.azure.ai.textanalytics.implementation.models.State.PARTIALLY_COMPLETED; import static com.azure.ai.textanalytics.implementation.models.State.RUNNING; import static com.azure.ai.textanalytics.implementation.models.State.SUCCEEDED; import static com.azure.core.util.FluxUtil.monoError; @@ -1236,8 +1235,6 @@ private Mono> processAnalyzedModelRe status = LongRunningOperationStatus.SUCCESSFULLY_COMPLETED; } else if (CANCELLED.equals(state)) { status = LongRunningOperationStatus.USER_CANCELLED; - } else if (PARTIALLY_COMPLETED.equals(state)) { - status = LongRunningOperationStatus.fromString("partiallySucceeded", true); } else { status = LongRunningOperationStatus.fromString( analyzeJobStateResponse.getValue().getStatus().toString(), true);