| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | public partial class Export |
| | 17 | | { |
| | 18 | | /// <summary> |
| | 19 | | /// Initializes a new instance of the Export class. |
| | 20 | | /// </summary> |
| 14 | 21 | | public Export() |
| | 22 | | { |
| | 23 | | CustomInit(); |
| 14 | 24 | | } |
| | 25 | |
|
| | 26 | | /// <summary> |
| | 27 | | /// Initializes a new instance of the Export class. |
| | 28 | | /// </summary> |
| | 29 | | /// <param name="platform">Platform of the export. Possible values |
| | 30 | | /// include: 'CoreML', 'TensorFlow', 'DockerFile', 'ONNX', |
| | 31 | | /// 'VAIDK'</param> |
| | 32 | | /// <param name="status">Status of the export. Possible values include: |
| | 33 | | /// 'Exporting', 'Failed', 'Done'</param> |
| | 34 | | /// <param name="downloadUri">URI used to download the model. If VNET |
| | 35 | | /// feature is enabled this will be a relative path to be used with |
| | 36 | | /// GetArtifact, otherwise this will be an absolute URI to the |
| | 37 | | /// resource.</param> |
| | 38 | | /// <param name="flavor">Flavor of the export. These are |
| | 39 | | /// specializations of the export platform. |
| | 40 | | /// Docker platform has valid flavors: Linux, Windows, ARM. |
| | 41 | | /// Tensorflow platform has valid flavors: TensorFlowNormal, |
| | 42 | | /// TensorFlowLite. |
| | 43 | | /// ONNX platform has valid flavors: ONNX10, ONNX12. Possible values |
| | 44 | | /// include: 'Linux', 'Windows', 'ONNX10', 'ONNX12', 'ARM', |
| | 45 | | /// 'TensorFlowNormal', 'TensorFlowLite'</param> |
| | 46 | | /// <param name="newerVersionAvailable">Indicates an updated version of |
| | 47 | | /// the export package is available and should be re-exported for the |
| | 48 | | /// latest changes.</param> |
| 0 | 49 | | public Export(string platform = default(string), string status = default(string), string downloadUri = default(s |
| | 50 | | { |
| 0 | 51 | | Platform = platform; |
| 0 | 52 | | Status = status; |
| 0 | 53 | | DownloadUri = downloadUri; |
| 0 | 54 | | Flavor = flavor; |
| 0 | 55 | | NewerVersionAvailable = newerVersionAvailable; |
| | 56 | | CustomInit(); |
| 0 | 57 | | } |
| | 58 | |
|
| | 59 | | /// <summary> |
| | 60 | | /// An initialization method that performs custom operations like setting defaults |
| | 61 | | /// </summary> |
| | 62 | | partial void CustomInit(); |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Gets platform of the export. Possible values include: 'CoreML', |
| | 66 | | /// 'TensorFlow', 'DockerFile', 'ONNX', 'VAIDK' |
| | 67 | | /// </summary> |
| | 68 | | [JsonProperty(PropertyName = "platform")] |
| 28 | 69 | | public string Platform { get; private set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets status of the export. Possible values include: 'Exporting', |
| | 73 | | /// 'Failed', 'Done' |
| | 74 | | /// </summary> |
| | 75 | | [JsonProperty(PropertyName = "status")] |
| 30 | 76 | | public string Status { get; private set; } |
| | 77 | |
|
| | 78 | | /// <summary> |
| | 79 | | /// Gets URI used to download the model. If VNET feature is enabled |
| | 80 | | /// this will be a relative path to be used with GetArtifact, otherwise |
| | 81 | | /// this will be an absolute URI to the resource. |
| | 82 | | /// </summary> |
| | 83 | | [JsonProperty(PropertyName = "downloadUri")] |
| 6 | 84 | | public string DownloadUri { get; private set; } |
| | 85 | |
|
| | 86 | | /// <summary> |
| | 87 | | /// Gets flavor of the export. These are specializations of the export |
| | 88 | | /// platform. |
| | 89 | | /// Docker platform has valid flavors: Linux, Windows, ARM. |
| | 90 | | /// Tensorflow platform has valid flavors: TensorFlowNormal, |
| | 91 | | /// TensorFlowLite. |
| | 92 | | /// ONNX platform has valid flavors: ONNX10, ONNX12. Possible values |
| | 93 | | /// include: 'Linux', 'Windows', 'ONNX10', 'ONNX12', 'ARM', |
| | 94 | | /// 'TensorFlowNormal', 'TensorFlowLite' |
| | 95 | | /// </summary> |
| | 96 | | [JsonProperty(PropertyName = "flavor")] |
| 0 | 97 | | public string Flavor { get; private set; } |
| | 98 | |
|
| | 99 | | /// <summary> |
| | 100 | | /// Gets indicates an updated version of the export package is |
| | 101 | | /// available and should be re-exported for the latest changes. |
| | 102 | | /// </summary> |
| | 103 | | [JsonProperty(PropertyName = "newerVersionAvailable")] |
| 16 | 104 | | public bool NewerVersionAvailable { get; private set; } |
| | 105 | |
|
| | 106 | | } |
| | 107 | | } |