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