-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f19a285
commit fcb885e
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...ew02292024/AzureDocumentIntelligenceAPI/Models/AuthorizeModelCopy/AuthorizeCopyRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...eview02292024/AzureDocumentIntelligenceAPI/Models/AuthorizeModelCopy/CopyAuthorization.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |