Class DocumentIntelligenceAdministrationAsyncClient
java.lang.Object
com.azure.ai.documentintelligence.DocumentIntelligenceAdministrationAsyncClient
Initializes a new instance of the asynchronous DocumentIntelligenceAdministrationClient type.
-
Method Summary
Modifier and TypeMethodDescriptionauthorizeClassifierCopy
(AuthorizeClassifierCopyRequest authorizeCopyRequest) Generates authorization to copy a document classifier to this location with specified classifierId and optional description.Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
authorizeClassifierCopyWithResponse
(com.azure.core.util.BinaryData authorizeCopyRequest, com.azure.core.http.rest.RequestOptions requestOptions) Generates authorization to copy a document classifier to this location with specified classifierId and optional description.authorizeModelCopy
(AuthorizeCopyRequest authorizeCopyRequest) Generates authorization to copy a document model to this location with specified modelId and optional description.Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
authorizeModelCopyWithResponse
(com.azure.core.util.BinaryData authorizeCopyRequest, com.azure.core.http.rest.RequestOptions requestOptions) Generates authorization to copy a document model to this location with specified modelId and optional description.com.azure.core.util.polling.PollerFlux<DocumentClassifierBuildOperationDetails,
DocumentClassifierDetails> beginBuildClassifier
(BuildDocumentClassifierRequest buildRequest) Builds a custom document classifier.com.azure.core.util.polling.PollerFlux<com.azure.core.util.BinaryData,
com.azure.core.util.BinaryData> beginBuildClassifier
(com.azure.core.util.BinaryData buildRequest, com.azure.core.http.rest.RequestOptions requestOptions) Builds a custom document classifier.com.azure.core.util.polling.PollerFlux<DocumentModelBuildOperationDetails,
DocumentModelDetails> beginBuildDocumentModel
(BuildDocumentModelRequest buildRequest) Builds a custom document analysis model.com.azure.core.util.polling.PollerFlux<com.azure.core.util.BinaryData,
com.azure.core.util.BinaryData> beginBuildDocumentModel
(com.azure.core.util.BinaryData buildRequest, com.azure.core.http.rest.RequestOptions requestOptions) Builds a custom document analysis model.com.azure.core.util.polling.PollerFlux<DocumentModelComposeOperationDetails,
DocumentModelDetails> beginComposeModel
(ComposeDocumentModelRequest composeRequest) Creates a new document model from document types of existing document models.com.azure.core.util.polling.PollerFlux<com.azure.core.util.BinaryData,
com.azure.core.util.BinaryData> beginComposeModel
(com.azure.core.util.BinaryData composeRequest, com.azure.core.http.rest.RequestOptions requestOptions) Creates a new document model from document types of existing document models.com.azure.core.util.polling.PollerFlux<DocumentClassifierCopyToOperationDetails,
DocumentClassifierDetails> beginCopyClassifierTo
(String classifierId, ClassifierCopyAuthorization copyToRequest) Copies document classifier to the target resource, region, and classifierId.com.azure.core.util.polling.PollerFlux<com.azure.core.util.BinaryData,
com.azure.core.util.BinaryData> beginCopyClassifierTo
(String classifierId, com.azure.core.util.BinaryData copyToRequest, com.azure.core.http.rest.RequestOptions requestOptions) Copies document classifier to the target resource, region, and classifierId.com.azure.core.util.polling.PollerFlux<DocumentModelCopyToOperationDetails,
DocumentModelDetails> beginCopyModelTo
(String modelId, CopyAuthorization copyToRequest) Copies document model to the target resource, region, and modelId.com.azure.core.util.polling.PollerFlux<com.azure.core.util.BinaryData,
com.azure.core.util.BinaryData> beginCopyModelTo
(String modelId, com.azure.core.util.BinaryData copyToRequest, com.azure.core.http.rest.RequestOptions requestOptions) Copies document model to the target resource, region, and modelId.deleteClassifier
(String classifierId) Deletes document classifier.deleteClassifierWithResponse
(String classifierId, com.azure.core.http.rest.RequestOptions requestOptions) Deletes document classifier.deleteModel
(String modelId) Deletes document model.deleteModelWithResponse
(String modelId, com.azure.core.http.rest.RequestOptions requestOptions) Deletes document model.getClassifier
(String classifierId) Gets detailed document classifier information.Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
getClassifierWithResponse
(String classifierId, com.azure.core.http.rest.RequestOptions requestOptions) Gets detailed document classifier information.Gets detailed document model information.Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
getModelWithResponse
(String modelId, com.azure.core.http.rest.RequestOptions requestOptions) Gets detailed document model information.getOperation
(String operationId) Gets operation info.Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
getOperationWithResponse
(String operationId, com.azure.core.http.rest.RequestOptions requestOptions) Gets operation info.Return information about the current resource.Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
getResourceInfoWithResponse
(com.azure.core.http.rest.RequestOptions requestOptions) Return information about the current resource.com.azure.core.http.rest.PagedFlux<DocumentClassifierDetails>
List all document classifiers.com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData>
listClassifiers
(com.azure.core.http.rest.RequestOptions requestOptions) List all document classifiers.com.azure.core.http.rest.PagedFlux<DocumentModelDetails>
List all document models.com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData>
listModels
(com.azure.core.http.rest.RequestOptions requestOptions) List all document models.com.azure.core.http.rest.PagedFlux<OperationDetails>
Lists all operations.com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData>
listOperations
(com.azure.core.http.rest.RequestOptions requestOptions) Lists all operations.
-
Method Details
-
beginBuildDocumentModel
public com.azure.core.util.polling.PollerFlux<com.azure.core.util.BinaryData,com.azure.core.util.BinaryData> beginBuildDocumentModel(com.azure.core.util.BinaryData buildRequest, com.azure.core.http.rest.RequestOptions requestOptions) Builds a custom document analysis model.Request Body Schema
{ modelId: String (Required) description: String (Optional) buildMode: String(template/neural/generative) (Required) azureBlobSource (Optional): { containerUrl: String (Required) prefix: String (Optional) } azureBlobFileListSource (Optional): { containerUrl: String (Required) fileList: String (Required) } tags (Optional): { String: String (Required) } maxTrainingHours: Double (Optional) allowOverwrite: Boolean (Optional) }
- Parameters:
buildRequest
- Build request parameters.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the
PollerFlux
for polling of long-running operation. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
beginComposeModel
public com.azure.core.util.polling.PollerFlux<com.azure.core.util.BinaryData,com.azure.core.util.BinaryData> beginComposeModel(com.azure.core.util.BinaryData composeRequest, com.azure.core.http.rest.RequestOptions requestOptions) Creates a new document model from document types of existing document models.Request Body Schema
{ modelId: String (Required) description: String (Optional) classifierId: String (Required) split: String(auto/none/perPage) (Optional) docTypes (Required): { String (Required): { description: String (Optional) buildMode: String(template/neural/generative) (Optional) fieldSchema (Optional): { String (Required): { type: String(string/date/time/phoneNumber/number/integer/selectionMark/countryRegion/signature/array/object/currency/address/boolean/selectionGroup) (Required) description: String (Optional) example: String (Optional) items (Optional): (recursive schema, see items above) properties (Optional): { String (Required): (recursive schema, see String above) } } } fieldConfidence (Optional): { String: double (Required) } modelId: String (Optional) confidenceThreshold: Double (Optional) features (Optional): [ String(ocrHighResolution/languages/barcodes/formulas/keyValuePairs/styleFont/queryFields) (Optional) ] queryFields (Optional): [ String (Optional) ] maxDocumentsToAnalyze: Integer (Optional) } } tags (Optional): { String: String (Required) } }
- Parameters:
composeRequest
- Compose request parameters.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the
PollerFlux
for polling of long-running operation. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
authorizeModelCopyWithResponse
public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> authorizeModelCopyWithResponse(com.azure.core.util.BinaryData authorizeCopyRequest, com.azure.core.http.rest.RequestOptions requestOptions) Generates authorization to copy a document model to this location with specified modelId and optional description.Request Body Schema
{ modelId: String (Required) description: String (Optional) tags (Optional): { String: String (Required) } }
Response Body Schema
{ targetResourceId: String (Required) targetResourceRegion: String (Required) targetModelId: String (Required) targetModelLocation: String (Required) accessToken: String (Required) expirationDateTime: OffsetDateTime (Required) }
- Parameters:
authorizeCopyRequest
- Authorize copy request parameters.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- authorization to copy a document model to the specified target resource and
modelId along with
Response
on successful completion ofMono
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
beginCopyModelTo
public com.azure.core.util.polling.PollerFlux<com.azure.core.util.BinaryData,com.azure.core.util.BinaryData> beginCopyModelTo(String modelId, com.azure.core.util.BinaryData copyToRequest, com.azure.core.http.rest.RequestOptions requestOptions) Copies document model to the target resource, region, and modelId.Request Body Schema
{ targetResourceId: String (Required) targetResourceRegion: String (Required) targetModelId: String (Required) targetModelLocation: String (Required) accessToken: String (Required) expirationDateTime: OffsetDateTime (Required) }
- Parameters:
modelId
- Unique document model name.copyToRequest
- Copy to request parameters.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the
PollerFlux
for polling of long-running operation. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getModelWithResponse
public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> getModelWithResponse(String modelId, com.azure.core.http.rest.RequestOptions requestOptions) Gets detailed document model information.Response Body Schema
{ modelId: String (Required) description: String (Optional) createdDateTime: OffsetDateTime (Required) expirationDateTime: OffsetDateTime (Optional) apiVersion: String (Optional) tags (Optional): { String: String (Required) } buildMode: String(template/neural/generative) (Optional) azureBlobSource (Optional): { containerUrl: String (Required) prefix: String (Optional) } azureBlobFileListSource (Optional): { containerUrl: String (Required) fileList: String (Required) } classifierId: String (Optional) split: String(auto/none/perPage) (Optional) docTypes (Optional): { String (Required): { description: String (Optional) buildMode: String(template/neural/generative) (Optional) fieldSchema (Optional): { String (Required): { type: String(string/date/time/phoneNumber/number/integer/selectionMark/countryRegion/signature/array/object/currency/address/boolean/selectionGroup) (Required) description: String (Optional) example: String (Optional) items (Optional): (recursive schema, see items above) properties (Optional): { String (Required): (recursive schema, see String above) } } } fieldConfidence (Optional): { String: double (Required) } modelId: String (Optional) confidenceThreshold: Double (Optional) features (Optional): [ String(ocrHighResolution/languages/barcodes/formulas/keyValuePairs/styleFont/queryFields) (Optional) ] queryFields (Optional): [ String (Optional) ] maxDocumentsToAnalyze: Integer (Optional) } } warnings (Optional): [ (Optional){ code: String (Required) message: String (Required) target: String (Optional) } ] trainingHours: Double (Optional) }
- Parameters:
modelId
- Unique document model name.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- detailed document model information along with
Response
on successful completion ofMono
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
listModels
public com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData> listModels(com.azure.core.http.rest.RequestOptions requestOptions) List all document models.Response Body Schema
{ modelId: String (Required) description: String (Optional) createdDateTime: OffsetDateTime (Required) expirationDateTime: OffsetDateTime (Optional) apiVersion: String (Optional) tags (Optional): { String: String (Required) } buildMode: String(template/neural/generative) (Optional) azureBlobSource (Optional): { containerUrl: String (Required) prefix: String (Optional) } azureBlobFileListSource (Optional): { containerUrl: String (Required) fileList: String (Required) } classifierId: String (Optional) split: String(auto/none/perPage) (Optional) docTypes (Optional): { String (Required): { description: String (Optional) buildMode: String(template/neural/generative) (Optional) fieldSchema (Optional): { String (Required): { type: String(string/date/time/phoneNumber/number/integer/selectionMark/countryRegion/signature/array/object/currency/address/boolean/selectionGroup) (Required) description: String (Optional) example: String (Optional) items (Optional): (recursive schema, see items above) properties (Optional): { String (Required): (recursive schema, see String above) } } } fieldConfidence (Optional): { String: double (Required) } modelId: String (Optional) confidenceThreshold: Double (Optional) features (Optional): [ String(ocrHighResolution/languages/barcodes/formulas/keyValuePairs/styleFont/queryFields) (Optional) ] queryFields (Optional): [ String (Optional) ] maxDocumentsToAnalyze: Integer (Optional) } } warnings (Optional): [ (Optional){ code: String (Required) message: String (Required) target: String (Optional) } ] trainingHours: Double (Optional) }
- Parameters:
requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- paged collection of DocumentModelDetails items as paginated response with
PagedFlux
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
deleteModelWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> deleteModelWithResponse(String modelId, com.azure.core.http.rest.RequestOptions requestOptions) Deletes document model.- Parameters:
modelId
- Unique document model name.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the
Response
on successful completion ofMono
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getResourceInfoWithResponse
public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> getResourceInfoWithResponse(com.azure.core.http.rest.RequestOptions requestOptions) Return information about the current resource.Response Body Schema
{ customDocumentModels (Required): { count: int (Required) limit: int (Required) } }
- Parameters:
requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- general information regarding the current resource along with
Response
on successful completion ofMono
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getOperationWithResponse
public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> getOperationWithResponse(String operationId, com.azure.core.http.rest.RequestOptions requestOptions) Gets operation info.Response Body Schema
{ kind: String(documentModelBuild/documentModelCompose/documentModelCopyTo/documentClassifierCopyTo/documentClassifierBuild) (Required) operationId: String (Required) status: String(notStarted/running/failed/succeeded/completed/canceled) (Required) percentCompleted: Integer (Optional) createdDateTime: OffsetDateTime (Required) lastUpdatedDateTime: OffsetDateTime (Required) resourceLocation: String (Required) apiVersion: String (Optional) tags (Optional): { String: String (Required) } error (Optional): { code: String (Required) message: String (Required) target: String (Optional) details (Optional): [ (recursive schema, see above) ] innererror (Optional): { code: String (Optional) message: String (Optional) innererror (Optional): (recursive schema, see innererror above) } } }
- Parameters:
operationId
- Operation ID.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- operation info along with
Response
on successful completion ofMono
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
listOperations
public com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData> listOperations(com.azure.core.http.rest.RequestOptions requestOptions) Lists all operations.Response Body Schema
{ kind: String(documentModelBuild/documentModelCompose/documentModelCopyTo/documentClassifierCopyTo/documentClassifierBuild) (Required) operationId: String (Required) status: String(notStarted/running/failed/succeeded/completed/canceled) (Required) percentCompleted: Integer (Optional) createdDateTime: OffsetDateTime (Required) lastUpdatedDateTime: OffsetDateTime (Required) resourceLocation: String (Required) apiVersion: String (Optional) tags (Optional): { String: String (Required) } error (Optional): { code: String (Required) message: String (Required) target: String (Optional) details (Optional): [ (recursive schema, see above) ] innererror (Optional): { code: String (Optional) message: String (Optional) innererror (Optional): (recursive schema, see innererror above) } } }
- Parameters:
requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- paged collection of OperationDetails items as paginated response with
PagedFlux
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
beginBuildClassifier
public com.azure.core.util.polling.PollerFlux<com.azure.core.util.BinaryData,com.azure.core.util.BinaryData> beginBuildClassifier(com.azure.core.util.BinaryData buildRequest, com.azure.core.http.rest.RequestOptions requestOptions) Builds a custom document classifier.Request Body Schema
{ classifierId: String (Required) description: String (Optional) baseClassifierId: String (Optional) docTypes (Required): { String (Required): { sourceKind: String(url/base64/azureBlob/azureBlobFileList) (Optional) azureBlobSource (Optional): { containerUrl: String (Required) prefix: String (Optional) } azureBlobFileListSource (Optional): { containerUrl: String (Required) fileList: String (Required) } } } allowOverwrite: Boolean (Optional) }
- Parameters:
buildRequest
- Build request parameters.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the
PollerFlux
for polling of long-running operation. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
authorizeClassifierCopyWithResponse
public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> authorizeClassifierCopyWithResponse(com.azure.core.util.BinaryData authorizeCopyRequest, com.azure.core.http.rest.RequestOptions requestOptions) Generates authorization to copy a document classifier to this location with specified classifierId and optional description.Request Body Schema
{ classifierId: String (Required) description: String (Optional) tags (Optional): { String: String (Required) } }
Response Body Schema
{ targetResourceId: String (Required) targetResourceRegion: String (Required) targetClassifierId: String (Required) targetClassifierLocation: String (Required) accessToken: String (Required) expirationDateTime: OffsetDateTime (Required) }
- Parameters:
authorizeCopyRequest
- Authorize copy request parameters.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- authorization to copy a document classifier to the specified target resource and
classifierId along with
Response
on successful completion ofMono
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
beginCopyClassifierTo
public com.azure.core.util.polling.PollerFlux<com.azure.core.util.BinaryData,com.azure.core.util.BinaryData> beginCopyClassifierTo(String classifierId, com.azure.core.util.BinaryData copyToRequest, com.azure.core.http.rest.RequestOptions requestOptions) Copies document classifier to the target resource, region, and classifierId.Request Body Schema
{ targetResourceId: String (Required) targetResourceRegion: String (Required) targetClassifierId: String (Required) targetClassifierLocation: String (Required) accessToken: String (Required) expirationDateTime: OffsetDateTime (Required) }
- Parameters:
classifierId
- Unique document classifier name.copyToRequest
- Copy to request parameters.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the
PollerFlux
for polling of long-running operation. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getClassifierWithResponse
public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> getClassifierWithResponse(String classifierId, com.azure.core.http.rest.RequestOptions requestOptions) Gets detailed document classifier information.Response Body Schema
{ classifierId: String (Required) description: String (Optional) createdDateTime: OffsetDateTime (Required) expirationDateTime: OffsetDateTime (Optional) apiVersion: String (Required) baseClassifierId: String (Optional) docTypes (Required): { String (Required): { sourceKind: String(url/base64/azureBlob/azureBlobFileList) (Optional) azureBlobSource (Optional): { containerUrl: String (Required) prefix: String (Optional) } azureBlobFileListSource (Optional): { containerUrl: String (Required) fileList: String (Required) } } } warnings (Optional): [ (Optional){ code: String (Required) message: String (Required) target: String (Optional) } ] }
- Parameters:
classifierId
- Unique document classifier name.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- detailed document classifier information along with
Response
on successful completion ofMono
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
listClassifiers
public com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData> listClassifiers(com.azure.core.http.rest.RequestOptions requestOptions) List all document classifiers.Response Body Schema
{ classifierId: String (Required) description: String (Optional) createdDateTime: OffsetDateTime (Required) expirationDateTime: OffsetDateTime (Optional) apiVersion: String (Required) baseClassifierId: String (Optional) docTypes (Required): { String (Required): { sourceKind: String(url/base64/azureBlob/azureBlobFileList) (Optional) azureBlobSource (Optional): { containerUrl: String (Required) prefix: String (Optional) } azureBlobFileListSource (Optional): { containerUrl: String (Required) fileList: String (Required) } } } warnings (Optional): [ (Optional){ code: String (Required) message: String (Required) target: String (Optional) } ] }
- Parameters:
requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- paged collection of DocumentClassifierDetails items as paginated response with
PagedFlux
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
deleteClassifierWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> deleteClassifierWithResponse(String classifierId, com.azure.core.http.rest.RequestOptions requestOptions) Deletes document classifier.- Parameters:
classifierId
- Unique document classifier name.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the
Response
on successful completion ofMono
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
beginBuildDocumentModel
public com.azure.core.util.polling.PollerFlux<DocumentModelBuildOperationDetails,DocumentModelDetails> beginBuildDocumentModel(BuildDocumentModelRequest buildRequest) Builds a custom document analysis model.- Parameters:
buildRequest
- Build request parameters.- Returns:
- the
PollerFlux
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginComposeModel
public com.azure.core.util.polling.PollerFlux<DocumentModelComposeOperationDetails,DocumentModelDetails> beginComposeModel(ComposeDocumentModelRequest composeRequest) Creates a new document model from document types of existing document models.- Parameters:
composeRequest
- Compose request parameters.- Returns:
- the
PollerFlux
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
authorizeModelCopy
Generates authorization to copy a document model to this location with specified modelId and optional description.- Parameters:
authorizeCopyRequest
- Authorize copy request parameters.- Returns:
- authorization to copy a document model to the specified target resource and
modelId on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCopyModelTo
public com.azure.core.util.polling.PollerFlux<DocumentModelCopyToOperationDetails,DocumentModelDetails> beginCopyModelTo(String modelId, CopyAuthorization copyToRequest) Copies document model to the target resource, region, and modelId.- Parameters:
modelId
- Unique document model name.copyToRequest
- Copy to request parameters.- Returns:
- the
PollerFlux
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getModel
Gets detailed document model information.- Parameters:
modelId
- Unique document model name.- Returns:
- detailed document model information on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listModels
List all document models.- Returns:
- paged collection of DocumentModelDetails items as paginated response with
PagedFlux
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteModel
Deletes document model.- Parameters:
modelId
- Unique document model name.- Returns:
- A
Mono
that completes when a successful response is received. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getResourceInfo
Return information about the current resource.- Returns:
- general information regarding the current resource on successful completion of
Mono
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getOperation
Gets operation info.- Parameters:
operationId
- Operation ID.- Returns:
- operation info on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listOperations
Lists all operations.- Returns:
- paged collection of OperationDetails items as paginated response with
PagedFlux
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginBuildClassifier
public com.azure.core.util.polling.PollerFlux<DocumentClassifierBuildOperationDetails,DocumentClassifierDetails> beginBuildClassifier(BuildDocumentClassifierRequest buildRequest) Builds a custom document classifier.- Parameters:
buildRequest
- Build request parameters.- Returns:
- the
PollerFlux
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
authorizeClassifierCopy
public Mono<ClassifierCopyAuthorization> authorizeClassifierCopy(AuthorizeClassifierCopyRequest authorizeCopyRequest) Generates authorization to copy a document classifier to this location with specified classifierId and optional description.- Parameters:
authorizeCopyRequest
- Authorize copy request parameters.- Returns:
- authorization to copy a document classifier to the specified target resource and
classifierId on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCopyClassifierTo
public com.azure.core.util.polling.PollerFlux<DocumentClassifierCopyToOperationDetails,DocumentClassifierDetails> beginCopyClassifierTo(String classifierId, ClassifierCopyAuthorization copyToRequest) Copies document classifier to the target resource, region, and classifierId.- Parameters:
classifierId
- Unique document classifier name.copyToRequest
- Copy to request parameters.- Returns:
- the
PollerFlux
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getClassifier
Gets detailed document classifier information.- Parameters:
classifierId
- Unique document classifier name.- Returns:
- detailed document classifier information on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listClassifiers
List all document classifiers.- Returns:
- paged collection of DocumentClassifierDetails items as paginated response with
PagedFlux
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteClassifier
Deletes document classifier.- Parameters:
classifierId
- Unique document classifier name.- Returns:
- A
Mono
that completes when a successful response is received. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-