| | 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.EventGrid.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Details of JobOutput errors. |
| | 20 | | /// </summary> |
| | 21 | | public partial class MediaJobError |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the MediaJobError class. |
| | 25 | | /// </summary> |
| 2 | 26 | | public MediaJobError() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 2 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the MediaJobError class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="code">Error code describing the error. Possible values |
| | 35 | | /// include: 'ServiceError', 'ServiceTransientError', |
| | 36 | | /// 'DownloadNotAccessible', 'DownloadTransientError', |
| | 37 | | /// 'UploadNotAccessible', 'UploadTransientError', |
| | 38 | | /// 'ConfigurationUnsupported', 'ContentMalformed', |
| | 39 | | /// 'ContentUnsupported'</param> |
| | 40 | | /// <param name="message">A human-readable language-dependent |
| | 41 | | /// representation of the error.</param> |
| | 42 | | /// <param name="category">Helps with categorization of errors. |
| | 43 | | /// Possible values include: 'Service', 'Download', 'Upload', |
| | 44 | | /// 'Configuration', 'Content'</param> |
| | 45 | | /// <param name="retry">Indicates that it may be possible to retry the |
| | 46 | | /// Job. If retry is unsuccessful, please contact Azure support via |
| | 47 | | /// Azure Portal. Possible values include: 'DoNotRetry', |
| | 48 | | /// 'MayRetry'</param> |
| | 49 | | /// <param name="details">An array of details about specific errors |
| | 50 | | /// that led to this reported error.</param> |
| 0 | 51 | | public MediaJobError(MediaJobErrorCode code = default(MediaJobErrorCode), string message = default(string), Medi |
| | 52 | | { |
| 0 | 53 | | Code = code; |
| 0 | 54 | | Message = message; |
| 0 | 55 | | Category = category; |
| 0 | 56 | | Retry = retry; |
| 0 | 57 | | Details = details; |
| | 58 | | CustomInit(); |
| 0 | 59 | | } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// An initialization method that performs custom operations like setting defaults |
| | 63 | | /// </summary> |
| | 64 | | partial void CustomInit(); |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets error code describing the error. Possible values include: |
| | 68 | | /// 'ServiceError', 'ServiceTransientError', 'DownloadNotAccessible', |
| | 69 | | /// 'DownloadTransientError', 'UploadNotAccessible', |
| | 70 | | /// 'UploadTransientError', 'ConfigurationUnsupported', |
| | 71 | | /// 'ContentMalformed', 'ContentUnsupported' |
| | 72 | | /// </summary> |
| | 73 | | [JsonProperty(PropertyName = "code")] |
| 6 | 74 | | public MediaJobErrorCode Code { get; private set; } |
| | 75 | |
|
| | 76 | | /// <summary> |
| | 77 | | /// Gets a human-readable language-dependent representation of the |
| | 78 | | /// error. |
| | 79 | | /// </summary> |
| | 80 | | [JsonProperty(PropertyName = "message")] |
| 0 | 81 | | public string Message { get; private set; } |
| | 82 | |
|
| | 83 | | /// <summary> |
| | 84 | | /// Gets helps with categorization of errors. Possible values include: |
| | 85 | | /// 'Service', 'Download', 'Upload', 'Configuration', 'Content' |
| | 86 | | /// </summary> |
| | 87 | | [JsonProperty(PropertyName = "category")] |
| 6 | 88 | | public MediaJobErrorCategory Category { get; private set; } |
| | 89 | |
|
| | 90 | | /// <summary> |
| | 91 | | /// Gets indicates that it may be possible to retry the Job. If retry |
| | 92 | | /// is unsuccessful, please contact Azure support via Azure Portal. |
| | 93 | | /// Possible values include: 'DoNotRetry', 'MayRetry' |
| | 94 | | /// </summary> |
| | 95 | | [JsonProperty(PropertyName = "retry")] |
| 4 | 96 | | public MediaJobRetry Retry { get; private set; } |
| | 97 | |
|
| | 98 | | /// <summary> |
| | 99 | | /// Gets an array of details about specific errors that led to this |
| | 100 | | /// reported error. |
| | 101 | | /// </summary> |
| | 102 | | [JsonProperty(PropertyName = "details")] |
| 4 | 103 | | public IList<MediaJobErrorDetail> Details { get; private set; } |
| | 104 | |
|
| | 105 | | } |
| | 106 | | } |