| | 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 ImageCreateResult |
| | 17 | | { |
| | 18 | | /// <summary> |
| | 19 | | /// Initializes a new instance of the ImageCreateResult class. |
| | 20 | | /// </summary> |
| 16 | 21 | | public ImageCreateResult() |
| | 22 | | { |
| | 23 | | CustomInit(); |
| 16 | 24 | | } |
| | 25 | |
|
| | 26 | | /// <summary> |
| | 27 | | /// Initializes a new instance of the ImageCreateResult class. |
| | 28 | | /// </summary> |
| | 29 | | /// <param name="sourceUrl">Source URL of the image.</param> |
| | 30 | | /// <param name="status">Status of the image creation. Possible values |
| | 31 | | /// include: 'OK', 'OKDuplicate', 'ErrorSource', 'ErrorImageFormat', |
| | 32 | | /// 'ErrorImageSize', 'ErrorStorage', 'ErrorLimitExceed', |
| | 33 | | /// 'ErrorTagLimitExceed', 'ErrorRegionLimitExceed', 'ErrorUnknown', |
| | 34 | | /// 'ErrorNegativeAndRegularTagOnSameImage'</param> |
| | 35 | | /// <param name="image">The image.</param> |
| 0 | 36 | | public ImageCreateResult(string sourceUrl = default(string), string status = default(string), Image image = defa |
| | 37 | | { |
| 0 | 38 | | SourceUrl = sourceUrl; |
| 0 | 39 | | Status = status; |
| 0 | 40 | | Image = image; |
| | 41 | | CustomInit(); |
| 0 | 42 | | } |
| | 43 | |
|
| | 44 | | /// <summary> |
| | 45 | | /// An initialization method that performs custom operations like setting defaults |
| | 46 | | /// </summary> |
| | 47 | | partial void CustomInit(); |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Gets source URL of the image. |
| | 51 | | /// </summary> |
| | 52 | | [JsonProperty(PropertyName = "sourceUrl")] |
| 24 | 53 | | public string SourceUrl { get; private set; } |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets status of the image creation. Possible values include: 'OK', |
| | 57 | | /// 'OKDuplicate', 'ErrorSource', 'ErrorImageFormat', 'ErrorImageSize', |
| | 58 | | /// 'ErrorStorage', 'ErrorLimitExceed', 'ErrorTagLimitExceed', |
| | 59 | | /// 'ErrorRegionLimitExceed', 'ErrorUnknown', |
| | 60 | | /// 'ErrorNegativeAndRegularTagOnSameImage' |
| | 61 | | /// </summary> |
| | 62 | | [JsonProperty(PropertyName = "status")] |
| 22 | 63 | | public string Status { get; private set; } |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// Gets the image. |
| | 67 | | /// </summary> |
| | 68 | | [JsonProperty(PropertyName = "image")] |
| 76 | 69 | | public Image Image { get; private set; } |
| | 70 | |
|
| | 71 | | } |
| | 72 | | } |