DocumentModelAdministrationClient.GetCopyAuthorization Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generate authorization for copying a custom model into the target Form Recognizer resource.
public virtual Azure.Response<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentModelCopyAuthorization> GetCopyAuthorization (string modelId = default, string description = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCopyAuthorization : string * string * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> Azure.Response<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentModelCopyAuthorization>
override this.GetCopyAuthorization : string * string * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> Azure.Response<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentModelCopyAuthorization>
Public Overridable Function GetCopyAuthorization (Optional modelId As String = Nothing, Optional description As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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
Azure SDK for .NET