Partager via


ModelCopyAuthorization Constructor

Definition

Initializes a new instance of ModelCopyAuthorization.

public ModelCopyAuthorization (string targetResourceId, string targetResourceRegion, string targetModelId, Uri targetModelLocation, string accessToken, DateTimeOffset expiresOn);
new Azure.AI.DocumentIntelligence.ModelCopyAuthorization : string * string * string * Uri * string * DateTimeOffset -> Azure.AI.DocumentIntelligence.ModelCopyAuthorization
Public Sub New (targetResourceId As String, targetResourceRegion As String, targetModelId As String, targetModelLocation As Uri, accessToken As String, expiresOn As DateTimeOffset)

Parameters

targetResourceId
String

ID of the target Azure resource where the document model should be copied to.

targetResourceRegion
String

Location of the target Azure resource where the document model should be copied to.

targetModelId
String

Identifier of the target document model.

targetModelLocation
Uri

URL of the copied document model in the target account.

accessToken
String

Token used to authorize the request.

expiresOn
DateTimeOffset

Date/time when the access token expires.

Exceptions

targetResourceId, targetResourceRegion, targetModelId, targetModelLocation or accessToken is null.

Applies to