| | 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.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Image model to be sent as JSON. |
| | 20 | | /// </summary> |
| | 21 | | public partial class Image |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the Image class. |
| | 25 | | /// </summary> |
| 284 | 26 | | public Image() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 284 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the Image class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="id">Id of the image.</param> |
| | 35 | | /// <param name="created">Date the image was created.</param> |
| | 36 | | /// <param name="width">Width of the image.</param> |
| | 37 | | /// <param name="height">Height of the image.</param> |
| | 38 | | /// <param name="resizedImageUri">The URI to the (resized) image used |
| | 39 | | /// for training. If VNET feature is enabled this will be a relative |
| | 40 | | /// path to be used with GetArtifact, otherwise this will be an |
| | 41 | | /// absolute URI to the resource.</param> |
| | 42 | | /// <param name="thumbnailUri">The URI to the thumbnail of the original |
| | 43 | | /// image. If VNET feature is enabled this will be a relative path to |
| | 44 | | /// be used with GetArtifact, otherwise this will be an absolute URI to |
| | 45 | | /// the resource.</param> |
| | 46 | | /// <param name="originalImageUri">The URI to the original uploaded |
| | 47 | | /// image. If VNET feature is enabled this will be a relative path to |
| | 48 | | /// be used with GetArtifact, otherwise this will be an absolute URI to |
| | 49 | | /// the resource.</param> |
| | 50 | | /// <param name="tags">Tags associated with this image.</param> |
| | 51 | | /// <param name="regions">Regions associated with this image.</param> |
| | 52 | | /// <param name="metadata">Metadata associated with this image.</param> |
| 0 | 53 | | public Image(System.Guid id = default(System.Guid), System.DateTime created = default(System.DateTime), int widt |
| | 54 | | { |
| 0 | 55 | | Id = id; |
| 0 | 56 | | Created = created; |
| 0 | 57 | | Width = width; |
| 0 | 58 | | Height = height; |
| 0 | 59 | | ResizedImageUri = resizedImageUri; |
| 0 | 60 | | ThumbnailUri = thumbnailUri; |
| 0 | 61 | | OriginalImageUri = originalImageUri; |
| 0 | 62 | | Tags = tags; |
| 0 | 63 | | Regions = regions; |
| 0 | 64 | | Metadata = metadata; |
| | 65 | | CustomInit(); |
| 0 | 66 | | } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// An initialization method that performs custom operations like setting defaults |
| | 70 | | /// </summary> |
| | 71 | | partial void CustomInit(); |
| | 72 | |
|
| | 73 | | /// <summary> |
| | 74 | | /// Gets id of the image. |
| | 75 | | /// </summary> |
| | 76 | | [JsonProperty(PropertyName = "id")] |
| 344 | 77 | | public System.Guid Id { get; private set; } |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Gets date the image was created. |
| | 81 | | /// </summary> |
| | 82 | | [JsonProperty(PropertyName = "created")] |
| 0 | 83 | | public System.DateTime Created { get; private set; } |
| | 84 | |
|
| | 85 | | /// <summary> |
| | 86 | | /// Gets width of the image. |
| | 87 | | /// </summary> |
| | 88 | | [JsonProperty(PropertyName = "width")] |
| 320 | 89 | | public int Width { get; private set; } |
| | 90 | |
|
| | 91 | | /// <summary> |
| | 92 | | /// Gets height of the image. |
| | 93 | | /// </summary> |
| | 94 | | [JsonProperty(PropertyName = "height")] |
| 320 | 95 | | public int Height { get; private set; } |
| | 96 | |
|
| | 97 | | /// <summary> |
| | 98 | | /// Gets the URI to the (resized) image used for training. If VNET |
| | 99 | | /// feature is enabled this will be a relative path to be used with |
| | 100 | | /// GetArtifact, otherwise this will be an absolute URI to the |
| | 101 | | /// resource. |
| | 102 | | /// </summary> |
| | 103 | | [JsonProperty(PropertyName = "resizedImageUri")] |
| 320 | 104 | | public string ResizedImageUri { get; private set; } |
| | 105 | |
|
| | 106 | | /// <summary> |
| | 107 | | /// Gets the URI to the thumbnail of the original image. If VNET |
| | 108 | | /// feature is enabled this will be a relative path to be used with |
| | 109 | | /// GetArtifact, otherwise this will be an absolute URI to the |
| | 110 | | /// resource. |
| | 111 | | /// </summary> |
| | 112 | | [JsonProperty(PropertyName = "thumbnailUri")] |
| 320 | 113 | | public string ThumbnailUri { get; private set; } |
| | 114 | |
|
| | 115 | | /// <summary> |
| | 116 | | /// Gets the URI to the original uploaded image. If VNET feature is |
| | 117 | | /// enabled this will be a relative path to be used with GetArtifact, |
| | 118 | | /// otherwise this will be an absolute URI to the resource. |
| | 119 | | /// </summary> |
| | 120 | | [JsonProperty(PropertyName = "originalImageUri")] |
| 322 | 121 | | public string OriginalImageUri { get; private set; } |
| | 122 | |
|
| | 123 | | /// <summary> |
| | 124 | | /// Gets tags associated with this image. |
| | 125 | | /// </summary> |
| | 126 | | [JsonProperty(PropertyName = "tags")] |
| 608 | 127 | | public IList<ImageTag> Tags { get; private set; } |
| | 128 | |
|
| | 129 | | /// <summary> |
| | 130 | | /// Gets regions associated with this image. |
| | 131 | | /// </summary> |
| | 132 | | [JsonProperty(PropertyName = "regions")] |
| 812 | 133 | | public IList<ImageRegion> Regions { get; private set; } |
| | 134 | |
|
| | 135 | | /// <summary> |
| | 136 | | /// Gets metadata associated with this image. |
| | 137 | | /// </summary> |
| | 138 | | [JsonProperty(PropertyName = "metadata")] |
| 0 | 139 | | public IDictionary<string, string> Metadata { get; private set; } |
| | 140 | |
|
| | 141 | | } |
| | 142 | | } |