Skip to content

Commit

Permalink
Authorize Model Copy created
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael-Pascoal committed May 28, 2024
1 parent f19a285 commit fcb885e
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using Newtonsoft.Json;

namespace AzureDocumentIntelligenceAPI.Models.AuthorizeModelCopy
{
/// <summary>
/// Request body to authorize document model copy.
/// </summary>
public class AuthorizeCopyRequest
{
/// <summary>
/// Document model description.
/// </summary>
[JsonProperty("description")]
public string? Description { get; set; }

/// <summary>
/// Unique document model name.
/// </summary>
[JsonProperty("modelId")]
public string? ModelId { get; set; }

/// <summary>
/// List of key-value tag attributes associated with the document model.
/// </summary>
[JsonProperty("tags")]
public object? Tags { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
using Newtonsoft.Json;

namespace AzureDocumentIntelligenceAPI.Models.AuthorizeModelCopy
{
/// <summary>
/// Authorization to copy a document model to the specified target resource and modelId.
/// </summary>
public class CopyAuthorization
{
/// <summary>
/// Token used to authorize the request.
/// </summary>
[JsonProperty("accessToken")]
public string? AccessToken { get; set; }

/// <summary>
/// Date/time when the access token expires.
/// </summary>
[JsonProperty("expirationDateTime")]
public string? ExpirationDateTime { get; set; }

/// <summary>
/// Identifier of the target document model.
/// </summary>
[JsonProperty("targetModelId")]
public string? TargetModelId { get; set; }

/// <summary>
/// URL of the copied document model in the target account.
/// </summary>
[JsonProperty("targetModelLocation")]
public string? TargetModelLocation { get; set; }

/// <summary>
/// ID of the target Azure resource where the document model should be copied to.
/// </summary>
[JsonProperty("targetResourceId")]
public string? TargetResourceId { get; set; }

/// <summary>
/// Location of the target Azure resource where the document model should be copied to.
/// </summary>
[JsonProperty("targetResourceRegion")]
public string? TargetResourceRegion { get; set; }
}
}

0 comments on commit fcb885e

Please sign in to comment.