-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add autogenerated code for form recognizer v2.1 features (#15237)
- Loading branch information
Showing
105 changed files
with
4,536 additions
and
2,536 deletions.
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
706 changes: 643 additions & 63 deletions
706
...er/src/main/java/com/azure/ai/formrecognizer/implementation/FormRecognizerClientImpl.java
Large diffs are not rendered by default.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
...va/com/azure/ai/formrecognizer/implementation/models/AnalyzeBusinessCardAsyncHeaders.java
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.ai.formrecognizer.implementation.models; | ||
|
||
import com.azure.core.annotation.Fluent; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** The AnalyzeBusinessCardAsyncHeaders model. */ | ||
@Fluent | ||
public final class AnalyzeBusinessCardAsyncHeaders { | ||
/* | ||
* The Operation-Location property. | ||
*/ | ||
@JsonProperty(value = "Operation-Location") | ||
private String operationLocation; | ||
|
||
/** | ||
* Get the operationLocation property: The Operation-Location property. | ||
* | ||
* @return the operationLocation value. | ||
*/ | ||
public String getOperationLocation() { | ||
return this.operationLocation; | ||
} | ||
|
||
/** | ||
* Set the operationLocation property: The Operation-Location property. | ||
* | ||
* @param operationLocation the operationLocation value to set. | ||
* @return the AnalyzeBusinessCardAsyncHeaders object itself. | ||
*/ | ||
public AnalyzeBusinessCardAsyncHeaders setOperationLocation(String operationLocation) { | ||
this.operationLocation = operationLocation; | ||
return this; | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...a/com/azure/ai/formrecognizer/implementation/models/AnalyzeBusinessCardAsyncResponse.java
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.ai.formrecognizer.implementation.models; | ||
|
||
import com.azure.core.http.HttpHeaders; | ||
import com.azure.core.http.HttpRequest; | ||
import com.azure.core.http.rest.ResponseBase; | ||
|
||
/** Contains all response data for the analyzeBusinessCardAsync operation. */ | ||
public final class AnalyzeBusinessCardAsyncResponse extends ResponseBase<AnalyzeBusinessCardAsyncHeaders, Void> { | ||
/** | ||
* Creates an instance of AnalyzeBusinessCardAsyncResponse. | ||
* | ||
* @param request the request which resulted in this AnalyzeBusinessCardAsyncResponse. | ||
* @param statusCode the status code of the HTTP response. | ||
* @param rawHeaders the raw headers of the HTTP response. | ||
* @param value the deserialized value of the HTTP response. | ||
* @param headers the deserialized headers of the HTTP response. | ||
*/ | ||
public AnalyzeBusinessCardAsyncResponse( | ||
HttpRequest request, | ||
int statusCode, | ||
HttpHeaders rawHeaders, | ||
Void value, | ||
AnalyzeBusinessCardAsyncHeaders headers) { | ||
super(request, statusCode, rawHeaders, value, headers); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...ecognizer/src/main/java/com/azure/ai/formrecognizer/implementation/models/Attributes.java
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.ai.formrecognizer.implementation.models; | ||
|
||
import com.azure.core.annotation.Fluent; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** The Attributes model. */ | ||
@Fluent | ||
public final class Attributes { | ||
/* | ||
* Is this model composed? (default: false). | ||
*/ | ||
@JsonProperty(value = "isComposed") | ||
private Boolean isComposed; | ||
|
||
/** | ||
* Get the isComposed property: Is this model composed? (default: false). | ||
* | ||
* @return the isComposed value. | ||
*/ | ||
public Boolean isComposed() { | ||
return this.isComposed; | ||
} | ||
|
||
/** | ||
* Set the isComposed property: Is this model composed? (default: false). | ||
* | ||
* @param isComposed the isComposed value to set. | ||
* @return the Attributes object itself. | ||
*/ | ||
public Attributes setIsComposed(Boolean isComposed) { | ||
this.isComposed = isComposed; | ||
return this; | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...va/com/azure/ai/formrecognizer/implementation/models/ComposeCustomModelsAsyncHeaders.java
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.ai.formrecognizer.implementation.models; | ||
|
||
import com.azure.core.annotation.Fluent; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** The ComposeCustomModelsAsyncHeaders model. */ | ||
@Fluent | ||
public final class ComposeCustomModelsAsyncHeaders { | ||
/* | ||
* The Location property. | ||
*/ | ||
@JsonProperty(value = "Location") | ||
private String location; | ||
|
||
/** | ||
* Get the location property: The Location property. | ||
* | ||
* @return the location value. | ||
*/ | ||
public String getLocation() { | ||
return this.location; | ||
} | ||
|
||
/** | ||
* Set the location property: The Location property. | ||
* | ||
* @param location the location value to set. | ||
* @return the ComposeCustomModelsAsyncHeaders object itself. | ||
*/ | ||
public ComposeCustomModelsAsyncHeaders setLocation(String location) { | ||
this.location = location; | ||
return this; | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...a/com/azure/ai/formrecognizer/implementation/models/ComposeCustomModelsAsyncResponse.java
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.ai.formrecognizer.implementation.models; | ||
|
||
import com.azure.core.http.HttpHeaders; | ||
import com.azure.core.http.HttpRequest; | ||
import com.azure.core.http.rest.ResponseBase; | ||
|
||
/** Contains all response data for the composeCustomModelsAsync operation. */ | ||
public final class ComposeCustomModelsAsyncResponse extends ResponseBase<ComposeCustomModelsAsyncHeaders, Void> { | ||
/** | ||
* Creates an instance of ComposeCustomModelsAsyncResponse. | ||
* | ||
* @param request the request which resulted in this ComposeCustomModelsAsyncResponse. | ||
* @param statusCode the status code of the HTTP response. | ||
* @param rawHeaders the raw headers of the HTTP response. | ||
* @param value the deserialized value of the HTTP response. | ||
* @param headers the deserialized headers of the HTTP response. | ||
*/ | ||
public ComposeCustomModelsAsyncResponse( | ||
HttpRequest request, | ||
int statusCode, | ||
HttpHeaders rawHeaders, | ||
Void value, | ||
ComposeCustomModelsAsyncHeaders headers) { | ||
super(request, statusCode, rawHeaders, value, headers); | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
...nizer/src/main/java/com/azure/ai/formrecognizer/implementation/models/ComposeRequest.java
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.ai.formrecognizer.implementation.models; | ||
|
||
import com.azure.core.annotation.Fluent; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.util.List; | ||
import java.util.UUID; | ||
|
||
/** The ComposeRequest model. */ | ||
@Fluent | ||
public final class ComposeRequest { | ||
/* | ||
* List of model ids to compose. | ||
*/ | ||
@JsonProperty(value = "modelIds", required = true) | ||
private List<UUID> modelIds; | ||
|
||
/* | ||
* Optional user defined model name (max length: 1024). | ||
*/ | ||
@JsonProperty(value = "modelName") | ||
private String modelName; | ||
|
||
/** | ||
* Get the modelIds property: List of model ids to compose. | ||
* | ||
* @return the modelIds value. | ||
*/ | ||
public List<UUID> getModelIds() { | ||
return this.modelIds; | ||
} | ||
|
||
/** | ||
* Set the modelIds property: List of model ids to compose. | ||
* | ||
* @param modelIds the modelIds value to set. | ||
* @return the ComposeRequest object itself. | ||
*/ | ||
public ComposeRequest setModelIds(List<UUID> modelIds) { | ||
this.modelIds = modelIds; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the modelName property: Optional user defined model name (max length: 1024). | ||
* | ||
* @return the modelName value. | ||
*/ | ||
public String getModelName() { | ||
return this.modelName; | ||
} | ||
|
||
/** | ||
* Set the modelName property: Optional user defined model name (max length: 1024). | ||
* | ||
* @param modelName the modelName value to set. | ||
* @return the ComposeRequest object itself. | ||
*/ | ||
public ComposeRequest setModelName(String modelName) { | ||
this.modelName = modelName; | ||
return this; | ||
} | ||
} |
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.