Share via


DocumentModelAdministrationClient.GetCopyAuthorizationAsync Method

Definition

Generate authorization for copying a custom model into the target Form Recognizer resource.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentModelCopyAuthorization>> GetCopyAuthorizationAsync (string modelId = default, string description = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCopyAuthorizationAsync : string * string * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentModelCopyAuthorization>>
override this.GetCopyAuthorizationAsync : string * string * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentModelCopyAuthorization>>
Public Overridable Function GetCopyAuthorizationAsync (Optional modelId As String = Nothing, Optional description As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DocumentModelCopyAuthorization))

Parameters

modelId
String

A unique ID for your copied model. If not specified, a model ID will be created for you.

description
String

An optional description to add to the model.

tags
IDictionary<String,String>

A list of user-defined key-value tag attributes associated with the model.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A Response<T> representing the result of the operation. It can be cast to DocumentModelCopyAuthorization containing the authorization information necessary to copy a custom model into a target Form Recognizer resource.

Applies to