Skip to content

Commit 3d693f6

Browse files
authored
[Formrecognizer] Support for OperationDetails subclasses (Azure#30680)
1 parent fa9dacc commit 3d693f6

28 files changed

+797
-2084
lines changed

sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ This version of the SDK defaults to the latest supported API version, which curr
99
### Breaking Changes
1010
- Removed property `kind` from model `DocumentPage`
1111
- Removed model `DocumentPageKind`, `DocumentEntity`, `DocumentFootnote`, and `DocumentCaption`.
12-
- Renamed models `ModelOperationDetails`, `ModelOperationSummary`, `ModelOperationKind` and `ModelOperationStatus`
13-
to `DocumentModelOperationDetails`, `DocumentModelOperationSummary`, `DocumentOperationKind` and `DocumentModelOperationStatus`
14-
respectively.
12+
- Renamed models:
13+
- `ModelOperationDetails` to `OperationDetails`
14+
- `ModelOperationSummary` to `OperationSummary`
15+
- `ModelOperationKind` to `OperationKind`
16+
- `ModelOperationStatus` to `OperationStatus`
1517
- Renamed properties `documentModelCount` and `documentModelLimit` to `customDocumentModelCount`
1618
and `customDocumentModelLimit` on model `ResourceDetails`.
1719

sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/documentanalysis/DocumentAnalysisAsyncClient.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
package com.azure.ai.formrecognizer.documentanalysis;
55

6-
import com.azure.ai.formrecognizer.documentanalysis.administration.models.DocumentOperationStatus;
6+
import com.azure.ai.formrecognizer.documentanalysis.administration.models.OperationStatus;
77
import com.azure.ai.formrecognizer.documentanalysis.implementation.FormRecognizerClientImpl;
88
import com.azure.ai.formrecognizer.documentanalysis.implementation.models.AnalyzeDocumentRequest;
99
import com.azure.ai.formrecognizer.documentanalysis.implementation.models.AnalyzeResultOperation;
@@ -106,7 +106,7 @@ public final class DocumentAnalysisAsyncClient {
106106
* @return A {@link PollerFlux} that polls the progress of the analyze document operation until it has completed, has failed,
107107
* or has been cancelled. The completed operation returns an {@link AnalyzeResult}.
108108
* @throws HttpResponseException If analyze operation fails and the {@link AnalyzeResultOperation} returns
109-
* with an {@link DocumentOperationStatus#FAILED}..
109+
* with an {@link OperationStatus#FAILED}..
110110
* @throws IllegalArgumentException If {@code documentUrl} or {@code modelId} is null.
111111
*/
112112
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
@@ -157,7 +157,7 @@ public final class DocumentAnalysisAsyncClient {
157157
* @return A {@link PollerFlux} that polls progress of the analyze document operation until it has completed,
158158
* has failed, or has been cancelled. The completed operation returns an {@link AnalyzeResult}.
159159
* @throws HttpResponseException If analyze operation fails and the {@link AnalyzeResultOperation} returns
160-
* with an {@link DocumentOperationStatus#FAILED}.
160+
* with an {@link OperationStatus#FAILED}.
161161
* @throws IllegalArgumentException If {@code documentUrl} or {@code modelId} is null.
162162
*/
163163
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
@@ -257,7 +257,7 @@ public final class DocumentAnalysisAsyncClient {
257257
* @return A {@link PollerFlux} that polls the progress of the analyze document operation until it has completed,
258258
* has failed, or has been cancelled. The completed operation returns an {@link AnalyzeResult}.
259259
* @throws HttpResponseException If analyze operation fails and the {@link AnalyzeResultOperation} returns
260-
* with an {@link DocumentOperationStatus#FAILED}.
260+
* with an {@link OperationStatus#FAILED}.
261261
* @throws IllegalArgumentException If {@code document} or {@code modelId} is null.
262262
*/
263263
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
@@ -314,7 +314,7 @@ public final class DocumentAnalysisAsyncClient {
314314
* @return A {@link PollerFlux} that polls the progress of the analyze document operation until it has completed,
315315
* has failed, or has been cancelled. The completed operation returns an {@link AnalyzeResult}.
316316
* @throws HttpResponseException If analyze operation fails and the {@link AnalyzeResultOperation} returns
317-
* with an {@link DocumentOperationStatus#FAILED}.
317+
* with an {@link OperationStatus#FAILED}.
318318
* @throws IllegalArgumentException If {@code document} or {@code modelId} is null.
319319
*/
320320
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)

sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/documentanalysis/DocumentAnalysisClient.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
package com.azure.ai.formrecognizer.documentanalysis;
55

6-
import com.azure.ai.formrecognizer.documentanalysis.administration.models.DocumentOperationStatus;
6+
import com.azure.ai.formrecognizer.documentanalysis.administration.models.OperationStatus;
77
import com.azure.ai.formrecognizer.documentanalysis.implementation.models.AnalyzeResultOperation;
88
import com.azure.ai.formrecognizer.documentanalysis.models.AnalyzeDocumentOptions;
99
import com.azure.ai.formrecognizer.documentanalysis.models.AnalyzeResult;
@@ -80,7 +80,7 @@ public final class DocumentAnalysisClient {
8080
* @return A {@link SyncPoller} to poll the progress of the analyze document operation until it has completed,
8181
* has failed, or has been cancelled. The completed operation returns an {@link AnalyzeResult}.
8282
* @throws HttpResponseException If analyze operation fails and the {@link AnalyzeResultOperation} returns
83-
* with an {@link DocumentOperationStatus#FAILED}..
83+
* with an {@link OperationStatus#FAILED}..
8484
* @throws IllegalArgumentException If {@code documentUrl} or {@code modelId} is null.
8585
*/
8686
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
@@ -124,7 +124,7 @@ public final class DocumentAnalysisClient {
124124
* @return A {@link SyncPoller} to poll the progress of the analyze document operation until it has completed,
125125
* has failed, or has been cancelled. The completed operation returns an {@link AnalyzeResult}.
126126
* @throws HttpResponseException If analyze operation fails and the {@link AnalyzeResultOperation} returns
127-
* with an {@link DocumentOperationStatus#FAILED}.
127+
* with an {@link OperationStatus#FAILED}.
128128
* @throws IllegalArgumentException If {@code documentUrl} or {@code modelId} is null.
129129
*/
130130
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
@@ -169,7 +169,7 @@ public final class DocumentAnalysisClient {
169169
* @return A {@link SyncPoller} that polls the of progress of analyze document operation until it has completed,
170170
* has failed, or has been cancelled. The completed operation returns an {@link AnalyzeResult}.
171171
* @throws HttpResponseException If analyze operation fails and the {@link AnalyzeResultOperation}returns
172-
* with an {@link DocumentOperationStatus#FAILED}.
172+
* with an {@link OperationStatus#FAILED}.
173173
* @throws IllegalArgumentException If {@code document} or {@code modelId} is null.
174174
*/
175175
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
@@ -216,7 +216,7 @@ public final class DocumentAnalysisClient {
216216
* @return A {@link SyncPoller} that polls the of progress of analyze document operation until it has completed,
217217
* has failed, or has been cancelled. The completed operation returns an {@link AnalyzeResult}.
218218
* @throws HttpResponseException If analyze operation fails and the {@link AnalyzeResultOperation} returns
219-
* with an {@link DocumentOperationStatus#FAILED}.
219+
* with an {@link OperationStatus#FAILED}.
220220
* @throws IllegalArgumentException If {@code document} or {@code modelId} is null.
221221
*/
222222
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)

0 commit comments

Comments
 (0)