| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.AI.FormRecognizer.Models |
| | 11 | | { |
| | 12 | | /// <summary> Request parameter to copy an existing custom model from the source resource to a target resource refer |
| | 13 | | internal partial class CopyRequest |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of CopyRequest. </summary> |
| | 16 | | /// <param name="targetResourceId"> Azure Resource Id of the target Form Recognizer resource where the model is |
| | 17 | | /// <param name="targetResourceRegion"> Location of the target Azure resource. A valid Azure region name support |
| | 18 | | /// <param name="copyAuthorization"> Entity that encodes claims to authorize the copy request. </param> |
| | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="targetResourceId"/>, <paramref name="targetResource |
| 12 | 20 | | public CopyRequest(string targetResourceId, string targetResourceRegion, CopyAuthorizationResult copyAuthorizati |
| | 21 | | { |
| 12 | 22 | | if (targetResourceId == null) |
| | 23 | | { |
| 0 | 24 | | throw new ArgumentNullException(nameof(targetResourceId)); |
| | 25 | | } |
| 12 | 26 | | if (targetResourceRegion == null) |
| | 27 | | { |
| 0 | 28 | | throw new ArgumentNullException(nameof(targetResourceRegion)); |
| | 29 | | } |
| 12 | 30 | | if (copyAuthorization == null) |
| | 31 | | { |
| 0 | 32 | | throw new ArgumentNullException(nameof(copyAuthorization)); |
| | 33 | | } |
| | 34 | |
|
| 12 | 35 | | TargetResourceId = targetResourceId; |
| 12 | 36 | | TargetResourceRegion = targetResourceRegion; |
| 12 | 37 | | CopyAuthorization = copyAuthorization; |
| 12 | 38 | | } |
| | 39 | |
|
| | 40 | | /// <summary> Azure Resource Id of the target Form Recognizer resource where the model is copied to. </summary> |
| 12 | 41 | | public string TargetResourceId { get; } |
| | 42 | | /// <summary> Location of the target Azure resource. A valid Azure region name supported by Cognitive Services. |
| 12 | 43 | | public string TargetResourceRegion { get; } |
| | 44 | | /// <summary> Entity that encodes claims to authorize the copy request. </summary> |
| 12 | 45 | | public CopyAuthorizationResult CopyAuthorization { get; } |
| | 46 | | } |
| | 47 | | } |