Skip to content

Commit

Permalink
Prepare Form Recognizer Feb 2021 Patch release 3.0.5 (#19103)
Browse files Browse the repository at this point in the history
  • Loading branch information
samvaity authored Feb 10, 2021
1 parent 1b3cb05 commit 2b6ecd1
Show file tree
Hide file tree
Showing 11 changed files with 108 additions and 46 deletions.
10 changes: 10 additions & 0 deletions eng/code-quality-reports/src/main/resources/revapi/revapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,16 @@
"new": "method com.azure.core.util.polling.PollerFlux<T, U> com.azure.core.util.polling.PollerFlux<T, U>::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<T, U> com.azure.core.util.polling.SyncPoller<T, U>::setPollInterval(java.time.Duration)",
Expand Down
2 changes: 1 addition & 1 deletion eng/jacoco-test-coverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-ai-formrecognizer</artifactId>
<version>3.0.4</version> <!-- {x-version-update;com.azure:azure-ai-formrecognizer;current} -->
<version>3.0.5</version> <!-- {x-version-update;com.azure:azure-ai-formrecognizer;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
Expand Down
4 changes: 4 additions & 0 deletions sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions sdk/formrecognizer/azure-ai-formrecognizer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ from form documents. It includes the following main functionalities:
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-ai-formrecognizer</artifactId>
<version>3.0.4</version>
<version>3.0.5</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -121,7 +121,7 @@ Authentication with AAD requires some initial setup:
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>1.2.2</version>
<version>1.2.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
12 changes: 6 additions & 6 deletions sdk/formrecognizer/azure-ai-formrecognizer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>com.azure</groupId>
<artifactId>azure-ai-formrecognizer</artifactId>
<version>3.0.4</version> <!-- {x-version-update;com.azure:azure-ai-formrecognizer;current} -->
<version>3.0.5</version> <!-- {x-version-update;com.azure:azure-ai-formrecognizer;current} -->

<name>Microsoft Azure client library for Form Recognizer</name>
<description>This package contains the Microsoft Azure Cognitive Services Form Recognizer SDK.</description>
Expand All @@ -36,25 +36,25 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core</artifactId>
<version>1.12.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
<version>1.13.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-http-netty</artifactId>
<version>1.7.1</version> <!-- {x-version-update;com.azure:azure-core-http-netty;dependency} -->
<version>1.8.0</version> <!-- {x-version-update;com.azure:azure-core-http-netty;dependency} -->
</dependency>

<!-- Test Dependencies -->
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-test</artifactId>
<version>1.5.2</version> <!-- {x-version-update;com.azure:azure-core-test;dependency} -->
<version>1.5.3</version> <!-- {x-version-update;com.azure:azure-core-test;dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-http-okhttp</artifactId>
<version>1.4.1</version> <!-- {x-version-update;com.azure:azure-core-http-okhttp;dependency} -->
<version>1.5.0</version> <!-- {x-version-update;com.azure:azure-core-http-okhttp;dependency} -->
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -78,7 +78,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>1.2.2</version> <!-- {x-version-update;com.azure:azure-identity;dependency} -->
<version>1.2.3</version> <!-- {x-version-update;com.azure:azure-identity;dependency} -->
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeCustomFormsFromUrl(String modelId, String formUrl) {
return beginRecognizeCustomFormsFromUrl(modelId, formUrl, null);
Expand All @@ -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<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeCustomFormsFromUrl(String modelId, String formUrl,
RecognizeCustomFormsOptions recognizeCustomFormsOptions) {
Expand Down Expand Up @@ -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<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeCustomForms(String modelId, Flux<ByteBuffer> form, long length) {
return beginRecognizeCustomForms(modelId, form, length, null);
Expand Down Expand Up @@ -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<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeCustomForms(String modelId, Flux<ByteBuffer> form, long length,
RecognizeCustomFormsOptions recognizeCustomFormsOptions) {
Expand Down Expand Up @@ -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<FormRecognizerOperationResult, List<FormPage>> beginRecognizeContentFromUrl(String formUrl) {
return beginRecognizeContentFromUrl(formUrl, null);
}
Expand All @@ -286,7 +286,7 @@ public PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code formUrl} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<FormPage>>
beginRecognizeContentFromUrl(String formUrl, RecognizeContentOptions recognizeContentOptions) {
return beginRecognizeContentFromUrl(formUrl, recognizeContentOptions, Context.NONE);
Expand Down Expand Up @@ -337,7 +337,7 @@ public PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code form} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeContent(
Flux<ByteBuffer> form, long length) {
return beginRecognizeContent(form, length, null);
Expand Down Expand Up @@ -365,7 +365,7 @@ public PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code form} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeContent(Flux<ByteBuffer> form,
long length, RecognizeContentOptions recognizeContentOptions) {
return beginRecognizeContent(form, length, recognizeContentOptions, Context.NONE);
Expand Down Expand Up @@ -413,7 +413,7 @@ PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeContent(
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code receiptUrl} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeReceiptsFromUrl(String receiptUrl) {
return beginRecognizeReceiptsFromUrl(receiptUrl, null);
Expand All @@ -438,7 +438,7 @@ PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeContent(
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code receiptUrl} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeReceiptsFromUrl(String receiptUrl, RecognizeReceiptsOptions recognizeReceiptsOptions) {
return beginRecognizeReceiptsFromUrl(receiptUrl, recognizeReceiptsOptions, Context.NONE);
Expand Down Expand Up @@ -493,7 +493,7 @@ PollerFlux<FormRecognizerOperationResult, List<FormPage>> beginRecognizeContent(
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code receipt} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<RecognizedForm>> beginRecognizeReceipts(
Flux<ByteBuffer> receipt, long length) {
return beginRecognizeReceipts(receipt, length, null);
Expand Down Expand Up @@ -523,7 +523,7 @@ public PollerFlux<FormRecognizerOperationResult, List<RecognizedForm>> beginReco
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code receipt} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public PollerFlux<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeReceipts(Flux<ByteBuffer> receipt, long length,
RecognizeReceiptsOptions recognizeReceiptsOptions) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeCustomFormsFromUrl(String modelId, String formUrl) {
return beginRecognizeCustomFormsFromUrl(modelId, formUrl, null, Context.NONE);
Expand All @@ -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<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeCustomFormsFromUrl(String modelId, String formUrl,
RecognizeCustomFormsOptions recognizeCustomFormsOptions, Context context) {
Expand Down Expand Up @@ -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<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeCustomForms(String modelId, InputStream form, long length) {
return beginRecognizeCustomForms(modelId, form, length, null, Context.NONE);
Expand Down Expand Up @@ -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<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeCustomForms(String modelId, InputStream form, long length,
RecognizeCustomFormsOptions recognizeCustomFormsOptions, Context context) {
Expand All @@ -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<FormRecognizerOperationResult, List<FormPage>> beginRecognizeContentFromUrl(String formUrl) {
return beginRecognizeContentFromUrl(formUrl, null, Context.NONE);
}
Expand All @@ -198,7 +198,7 @@ public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code formUrl} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<FormPage>>
beginRecognizeContentFromUrl(String formUrl,
RecognizeContentOptions recognizeContentOptions, Context context) {
Expand All @@ -222,7 +222,7 @@ public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code form} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<FormPage>>
beginRecognizeContent(InputStream form, long length) {
return beginRecognizeContent(form, length, null, Context.NONE);
Expand All @@ -248,7 +248,7 @@ public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code form} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeContent(InputStream form,
long length, RecognizeContentOptions recognizeContentOptions, Context context) {
Flux<ByteBuffer> buffer = Utility.toFluxByteBuffer(form);
Expand All @@ -273,7 +273,7 @@ public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code receiptUrl} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeReceiptsFromUrl(String receiptUrl) {
return beginRecognizeReceiptsFromUrl(receiptUrl, null, Context.NONE);
Expand All @@ -299,7 +299,7 @@ public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code receiptUrl} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeReceiptsFromUrl(String receiptUrl,
RecognizeReceiptsOptions recognizeReceiptsOptions, Context context) {
Expand All @@ -325,7 +325,7 @@ public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code receipt} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeReceipts(InputStream receipt, long length) {
return beginRecognizeReceipts(receipt, length, null, Context.NONE);
Expand Down Expand Up @@ -353,7 +353,7 @@ public SyncPoller<FormRecognizerOperationResult, List<FormPage>> beginRecognizeC
* an {@link OperationStatus#FAILED}.
* @throws NullPointerException If {@code receipt} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<FormRecognizerOperationResult, List<RecognizedForm>>
beginRecognizeReceipts(InputStream receipt, long length,
RecognizeReceiptsOptions recognizeReceiptsOptions, Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2050,7 +2050,7 @@ public Mono<PagedResponse<ModelInfo>> 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<ModelInfo> listCustomModelsAsync() {
return new PagedFlux<>(
() -> listCustomModelsSinglePageAsync(), nextLink -> listCustomModelsNextSinglePageAsync(nextLink));
Expand All @@ -2065,7 +2065,7 @@ public PagedFlux<ModelInfo> 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<ModelInfo> listCustomModelsAsync(Context context) {
return new PagedFlux<>(
() -> listCustomModelsSinglePageAsync(context),
Expand All @@ -2079,7 +2079,7 @@ public PagedFlux<ModelInfo> 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<ModelInfo> listCustomModels() {
return new PagedIterable<>(listCustomModelsAsync());
}
Expand All @@ -2093,7 +2093,7 @@ public PagedIterable<ModelInfo> 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<ModelInfo> listCustomModels(Context context) {
return new PagedIterable<>(listCustomModelsAsync(context));
}
Expand Down
Loading

0 comments on commit 2b6ecd1

Please sign in to comment.