diff --git a/eng/code-quality-reports/src/main/resources/revapi/revapi.json b/eng/code-quality-reports/src/main/resources/revapi/revapi.json index 4a0da2d615871..1bf4a8d545d55 100644 --- a/eng/code-quality-reports/src/main/resources/revapi/revapi.json +++ b/eng/code-quality-reports/src/main/resources/revapi/revapi.json @@ -420,6 +420,16 @@ "new": "method com.azure.core.util.polling.PollerFlux com.azure.core.util.polling.PollerFlux::setPollInterval(java.time.Duration)", "justification": "New method" }, + { + "code": "java.method.added", + "new": "method com.azure.core.credential.TokenRequestContext com.azure.core.credential.TokenRequestContext::setClaims(java.lang.String)", + "justification": "New method" + }, + { + "code": "java.method.added", + "new": "method java.lang.String com.azure.core.credential.TokenRequestContext::getClaims()", + "justification": "New method" + }, { "code": "java.method.defaultMethodAddedToInterface", "new": "method com.azure.core.util.polling.SyncPoller com.azure.core.util.polling.SyncPoller::setPollInterval(java.time.Duration)", diff --git a/eng/jacoco-test-coverage/pom.xml b/eng/jacoco-test-coverage/pom.xml index 7dc6bec3b7882..4f956969d8460 100644 --- a/eng/jacoco-test-coverage/pom.xml +++ b/eng/jacoco-test-coverage/pom.xml @@ -44,7 +44,7 @@ com.azure azure-ai-formrecognizer - 3.0.4 + 3.0.5 com.azure diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md b/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md index f1992e819bbbc..f1b47249894b3 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md +++ b/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 3.0.5 (2021-02-09) +### Dependency updates +- Update dependency version, `azure-core` to `1.13.0`, `azure-core-http-netty` to `1.8.0` and `azure-identity` to `1.2.3`. +- ## 3.0.4 (2021-01-14) ### Dependency updates - Update dependency version, `azure-core` to `1.12.0`, `azure-core-http-netty` to `1.7.1` and `azure-identity` to `1.2.2`. diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/README.md b/sdk/formrecognizer/azure-ai-formrecognizer/README.md index 0c2b972af1287..80e89337c6352 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/README.md +++ b/sdk/formrecognizer/azure-ai-formrecognizer/README.md @@ -23,7 +23,7 @@ from form documents. It includes the following main functionalities: com.azure azure-ai-formrecognizer - 3.0.4 + 3.0.5 ``` [//]: # ({x-version-update-end}) @@ -121,7 +121,7 @@ Authentication with AAD requires some initial setup: com.azure azure-identity - 1.2.2 + 1.2.3 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/pom.xml b/sdk/formrecognizer/azure-ai-formrecognizer/pom.xml index 6b9b249ec0347..7e9ee49899e54 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/pom.xml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/pom.xml @@ -13,7 +13,7 @@ com.azure azure-ai-formrecognizer - 3.0.4 + 3.0.5 Microsoft Azure client library for Form Recognizer This package contains the Microsoft Azure Cognitive Services Form Recognizer SDK. @@ -36,25 +36,25 @@ com.azure azure-core - 1.12.0 + 1.13.0 com.azure azure-core-http-netty - 1.7.1 + 1.8.0 com.azure azure-core-test - 1.5.2 + 1.5.3 test com.azure azure-core-http-okhttp - 1.4.1 + 1.5.0 test @@ -78,7 +78,7 @@ com.azure azure-identity - 1.2.2 + 1.2.3 test diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/FormRecognizerAsyncClient.java b/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/FormRecognizerAsyncClient.java index 27ea310f702ee..561ada2c630cc 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/FormRecognizerAsyncClient.java +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/FormRecognizerAsyncClient.java @@ -92,7 +92,7 @@ public final class FormRecognizerAsyncClient { * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code formUrl}, {@code modelId} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux> beginRecognizeCustomFormsFromUrl(String modelId, String formUrl) { return beginRecognizeCustomFormsFromUrl(modelId, formUrl, null); @@ -118,7 +118,7 @@ public final class FormRecognizerAsyncClient { * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code formUrl}, {@code modelId} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux> beginRecognizeCustomFormsFromUrl(String modelId, String formUrl, RecognizeCustomFormsOptions recognizeCustomFormsOptions) { @@ -177,7 +177,7 @@ isFieldElementsIncluded, new SourcePath().setSource(formUrl), context).map(respo * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code form}, {@code modelId} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux> beginRecognizeCustomForms(String modelId, Flux form, long length) { return beginRecognizeCustomForms(modelId, form, length, null); @@ -207,7 +207,7 @@ isFieldElementsIncluded, new SourcePath().setSource(formUrl), context).map(respo * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code form}, {@code modelId} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux> beginRecognizeCustomForms(String modelId, Flux form, long length, RecognizeCustomFormsOptions recognizeCustomFormsOptions) { @@ -262,7 +262,7 @@ isFieldElementsIncluded, new SourcePath().setSource(formUrl), context).map(respo * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code formUrl} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux> beginRecognizeContentFromUrl(String formUrl) { return beginRecognizeContentFromUrl(formUrl, null); } @@ -286,7 +286,7 @@ public PollerFlux> beginRecognizeC * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code formUrl} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux> beginRecognizeContentFromUrl(String formUrl, RecognizeContentOptions recognizeContentOptions) { return beginRecognizeContentFromUrl(formUrl, recognizeContentOptions, Context.NONE); @@ -337,7 +337,7 @@ public PollerFlux> beginRecognizeC * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code form} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux> beginRecognizeContent( Flux form, long length) { return beginRecognizeContent(form, length, null); @@ -365,7 +365,7 @@ public PollerFlux> beginRecognizeC * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code form} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux> beginRecognizeContent(Flux form, long length, RecognizeContentOptions recognizeContentOptions) { return beginRecognizeContent(form, length, recognizeContentOptions, Context.NONE); @@ -413,7 +413,7 @@ PollerFlux> beginRecognizeContent( * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code receiptUrl} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux> beginRecognizeReceiptsFromUrl(String receiptUrl) { return beginRecognizeReceiptsFromUrl(receiptUrl, null); @@ -438,7 +438,7 @@ PollerFlux> beginRecognizeContent( * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code receiptUrl} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux> beginRecognizeReceiptsFromUrl(String receiptUrl, RecognizeReceiptsOptions recognizeReceiptsOptions) { return beginRecognizeReceiptsFromUrl(receiptUrl, recognizeReceiptsOptions, Context.NONE); @@ -493,7 +493,7 @@ PollerFlux> beginRecognizeContent( * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code receipt} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux> beginRecognizeReceipts( Flux receipt, long length) { return beginRecognizeReceipts(receipt, length, null); @@ -523,7 +523,7 @@ public PollerFlux> beginReco * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code receipt} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux> beginRecognizeReceipts(Flux receipt, long length, RecognizeReceiptsOptions recognizeReceiptsOptions) { diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/FormRecognizerClient.java b/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/FormRecognizerClient.java index b96494d8f1758..d7ef1fa162c59 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/FormRecognizerClient.java +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/FormRecognizerClient.java @@ -66,7 +66,7 @@ public final class FormRecognizerClient { * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code formUrl}, {@code modelId} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller> beginRecognizeCustomFormsFromUrl(String modelId, String formUrl) { return beginRecognizeCustomFormsFromUrl(modelId, formUrl, null, Context.NONE); @@ -93,7 +93,7 @@ public final class FormRecognizerClient { * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code formUrl}, {@code modelId} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller> beginRecognizeCustomFormsFromUrl(String modelId, String formUrl, RecognizeCustomFormsOptions recognizeCustomFormsOptions, Context context) { @@ -121,7 +121,7 @@ public final class FormRecognizerClient { * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code form}, {@code modelId} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller> beginRecognizeCustomForms(String modelId, InputStream form, long length) { return beginRecognizeCustomForms(modelId, form, length, null, Context.NONE); @@ -149,7 +149,7 @@ public final class FormRecognizerClient { * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code form}, {@code modelId} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller> beginRecognizeCustomForms(String modelId, InputStream form, long length, RecognizeCustomFormsOptions recognizeCustomFormsOptions, Context context) { @@ -174,7 +174,7 @@ public final class FormRecognizerClient { * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code formUrl} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller> beginRecognizeContentFromUrl(String formUrl) { return beginRecognizeContentFromUrl(formUrl, null, Context.NONE); } @@ -198,7 +198,7 @@ public SyncPoller> beginRecognizeC * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code formUrl} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller> beginRecognizeContentFromUrl(String formUrl, RecognizeContentOptions recognizeContentOptions, Context context) { @@ -222,7 +222,7 @@ public SyncPoller> beginRecognizeC * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code form} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller> beginRecognizeContent(InputStream form, long length) { return beginRecognizeContent(form, length, null, Context.NONE); @@ -248,7 +248,7 @@ public SyncPoller> beginRecognizeC * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code form} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller> beginRecognizeContent(InputStream form, long length, RecognizeContentOptions recognizeContentOptions, Context context) { Flux buffer = Utility.toFluxByteBuffer(form); @@ -273,7 +273,7 @@ public SyncPoller> beginRecognizeC * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code receiptUrl} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller> beginRecognizeReceiptsFromUrl(String receiptUrl) { return beginRecognizeReceiptsFromUrl(receiptUrl, null, Context.NONE); @@ -299,7 +299,7 @@ public SyncPoller> beginRecognizeC * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code receiptUrl} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller> beginRecognizeReceiptsFromUrl(String receiptUrl, RecognizeReceiptsOptions recognizeReceiptsOptions, Context context) { @@ -325,7 +325,7 @@ public SyncPoller> beginRecognizeC * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code receipt} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller> beginRecognizeReceipts(InputStream receipt, long length) { return beginRecognizeReceipts(receipt, length, null, Context.NONE); @@ -353,7 +353,7 @@ public SyncPoller> beginRecognizeC * an {@link OperationStatus#FAILED}. * @throws NullPointerException If {@code receipt} is null. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller> beginRecognizeReceipts(InputStream receipt, long length, RecognizeReceiptsOptions recognizeReceiptsOptions, Context context) { diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/implementation/FormRecognizerClientImpl.java b/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/implementation/FormRecognizerClientImpl.java index 83f192ef4af9b..66428501cef83 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/implementation/FormRecognizerClientImpl.java +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/implementation/FormRecognizerClientImpl.java @@ -2050,7 +2050,7 @@ public Mono> listCustomModelsSinglePageAsync(Context co * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information about all custom models. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PagedFlux listCustomModelsAsync() { return new PagedFlux<>( () -> listCustomModelsSinglePageAsync(), nextLink -> listCustomModelsNextSinglePageAsync(nextLink)); @@ -2065,7 +2065,7 @@ public PagedFlux listCustomModelsAsync() { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information about all custom models. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PagedFlux listCustomModelsAsync(Context context) { return new PagedFlux<>( () -> listCustomModelsSinglePageAsync(context), @@ -2079,7 +2079,7 @@ public PagedFlux listCustomModelsAsync(Context context) { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information about all custom models. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PagedIterable listCustomModels() { return new PagedIterable<>(listCustomModelsAsync()); } @@ -2093,7 +2093,7 @@ public PagedIterable listCustomModels() { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information about all custom models. */ - @ServiceMethod(returns = ReturnType.COLLECTION) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PagedIterable listCustomModels(Context context) { return new PagedIterable<>(listCustomModelsAsync(context)); } diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/training/FormTrainingAsyncClient.java b/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/training/FormTrainingAsyncClient.java index 6409b730e1622..4729b2eadd2f0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/training/FormTrainingAsyncClient.java +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/training/FormTrainingAsyncClient.java @@ -139,7 +139,7 @@ String getEndpoint() { * @throws FormRecognizerException If training fails and a model with {@link ModelStatus#INVALID} is created. * @throws NullPointerException If {@code trainingFilesUrl} is null. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux beginTraining(String trainingFilesUrl, boolean useTrainingLabels) { return beginTraining(trainingFilesUrl, useTrainingLabels, null); @@ -169,7 +169,7 @@ public PollerFlux beginTraining( * @throws FormRecognizerException If training fails and model with {@link ModelStatus#INVALID} is created. * @throws NullPointerException If {@code trainingFilesUrl} is null. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux beginTraining(String trainingFilesUrl, boolean useTrainingLabels, TrainingOptions trainingOptions) { return beginTraining(trainingFilesUrl, useTrainingLabels, trainingOptions, @@ -377,7 +377,7 @@ PagedFlux listCustomModels(Context context) { * @throws FormRecognizerException If copy operation fails and model with {@link OperationStatus#FAILED} is created. * @throws NullPointerException If {@code modelId}, {@code target} is null. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux beginCopyModel(String modelId, CopyAuthorization target) { return beginCopyModel(modelId, target, null); @@ -409,7 +409,7 @@ public PollerFlux beginCopyM * is created. * @throws NullPointerException If {@code modelId}, {@code target} is null. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux beginCopyModel(String modelId, CopyAuthorization target, Duration pollInterval) { return beginCopyModel(modelId, target, pollInterval, Context.NONE); diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/training/FormTrainingClient.java b/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/training/FormTrainingClient.java index 95711cde28abd..1b606a34ef3d6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/training/FormTrainingClient.java +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/training/FormTrainingClient.java @@ -84,7 +84,7 @@ public FormRecognizerClient getFormRecognizerClient() { * @throws FormRecognizerException If training fails and model with {@link ModelStatus#INVALID} is created. * @throws NullPointerException If {@code trainingFilesUrl} is null. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller beginTraining(String trainingFilesUrl, boolean useTrainingLabels) { return beginTraining(trainingFilesUrl, useTrainingLabels, null, Context.NONE); @@ -115,7 +115,7 @@ public SyncPoller beginTraining( * @throws FormRecognizerException If training fails and model with {@link ModelStatus#INVALID} is created. * @throws NullPointerException If {@code trainingFilesUrl} is null. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller beginTraining(String trainingFilesUrl, boolean useTrainingLabels, TrainingOptions trainingOptions, Context context) { @@ -266,7 +266,7 @@ public PagedIterable listCustomModels(Context context) { * @return A {@link SyncPoller} that polls the copy model operation until it has completed, has failed, * or has been cancelled. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller beginCopyModel(String modelId, CopyAuthorization target) { return beginCopyModel(modelId, target, null, Context.NONE); @@ -296,7 +296,7 @@ public SyncPoller beginCopyM * @return A {@link SyncPoller} that polls the copy model operation until it has completed, has failed, * or has been cancelled. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller beginCopyModel(String modelId, CopyAuthorization target, Duration pollInterval, Context context) { return client.beginCopyModel(modelId, target, pollInterval, context).getSyncPoller(); diff --git a/sdk/formrecognizer/pom.xml b/sdk/formrecognizer/pom.xml index 72bb57d17d181..a9720ca366cbc 100644 --- a/sdk/formrecognizer/pom.xml +++ b/sdk/formrecognizer/pom.xml @@ -10,4 +10,52 @@ azure-ai-formrecognizer - + + + + coverage + + azure-ai-formrecognizer + + + + + com.azure + azure-ai-formrecognizer + 3.1.0-beta.2 + + + + + + + org.jacoco + jacoco-maven-plugin + 0.8.5 + + + report-aggregate + verify + + report-aggregate + + + ${project.reporting.outputDirectory}/test-coverage + + + + + + + + + default + + true + + + azure-ai-formrecognizer + + + + \ No newline at end of file