| | 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 | | /// <summary> |
| | 17 | | /// Entry associating a region to an image. |
| | 18 | | /// </summary> |
| | 19 | | public partial class ImageRegionCreateEntry |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the ImageRegionCreateEntry class. |
| | 23 | | /// </summary> |
| 0 | 24 | | public ImageRegionCreateEntry() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 0 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the ImageRegionCreateEntry class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="imageId">Id of the image.</param> |
| | 33 | | /// <param name="tagId">Id of the tag associated with this |
| | 34 | | /// region.</param> |
| | 35 | | /// <param name="left">Coordinate of the left boundary.</param> |
| | 36 | | /// <param name="top">Coordinate of the top boundary.</param> |
| | 37 | | /// <param name="width">Width.</param> |
| | 38 | | /// <param name="height">Height.</param> |
| 2 | 39 | | public ImageRegionCreateEntry(System.Guid imageId, System.Guid tagId, double left, double top, double width, dou |
| | 40 | | { |
| 2 | 41 | | ImageId = imageId; |
| 2 | 42 | | TagId = tagId; |
| 2 | 43 | | Left = left; |
| 2 | 44 | | Top = top; |
| 2 | 45 | | Width = width; |
| 2 | 46 | | Height = height; |
| | 47 | | CustomInit(); |
| 2 | 48 | | } |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// An initialization method that performs custom operations like setting defaults |
| | 52 | | /// </summary> |
| | 53 | | partial void CustomInit(); |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets or sets id of the image. |
| | 57 | | /// </summary> |
| | 58 | | [JsonProperty(PropertyName = "imageId")] |
| 4 | 59 | | public System.Guid ImageId { get; set; } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// Gets or sets id of the tag associated with this region. |
| | 63 | | /// </summary> |
| | 64 | | [JsonProperty(PropertyName = "tagId")] |
| 4 | 65 | | public System.Guid TagId { get; set; } |
| | 66 | |
|
| | 67 | | /// <summary> |
| | 68 | | /// Gets or sets coordinate of the left boundary. |
| | 69 | | /// </summary> |
| | 70 | | [JsonProperty(PropertyName = "left")] |
| 4 | 71 | | public double Left { get; set; } |
| | 72 | |
|
| | 73 | | /// <summary> |
| | 74 | | /// Gets or sets coordinate of the top boundary. |
| | 75 | | /// </summary> |
| | 76 | | [JsonProperty(PropertyName = "top")] |
| 4 | 77 | | public double Top { get; set; } |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Gets or sets width. |
| | 81 | | /// </summary> |
| | 82 | | [JsonProperty(PropertyName = "width")] |
| 4 | 83 | | public double Width { get; set; } |
| | 84 | |
|
| | 85 | | /// <summary> |
| | 86 | | /// Gets or sets height. |
| | 87 | | /// </summary> |
| | 88 | | [JsonProperty(PropertyName = "height")] |
| 4 | 89 | | public double Height { get; set; } |
| | 90 | |
|
| | 91 | | /// <summary> |
| | 92 | | /// Validate the object. |
| | 93 | | /// </summary> |
| | 94 | | /// <exception cref="Rest.ValidationException"> |
| | 95 | | /// Thrown if validation fails |
| | 96 | | /// </exception> |
| | 97 | | public virtual void Validate() |
| | 98 | | { |
| | 99 | | //Nothing to validate |
| 0 | 100 | | } |
| | 101 | | } |
| | 102 | | } |