| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System.Collections.Generic; |
| | 9 | | using Azure.Core; |
| | 10 | |
|
| | 11 | | namespace Azure.Messaging.EventGrid.SystemEvents |
| | 12 | | { |
| | 13 | | /// <summary> Details of JobOutput errors. </summary> |
| | 14 | | public partial class MediaJobError |
| | 15 | | { |
| | 16 | | /// <summary> Initializes a new instance of MediaJobError. </summary> |
| 0 | 17 | | internal MediaJobError() |
| | 18 | | { |
| 0 | 19 | | Details = new ChangeTrackingList<MediaJobErrorDetail>(); |
| 0 | 20 | | } |
| | 21 | |
|
| | 22 | | /// <summary> Initializes a new instance of MediaJobError. </summary> |
| | 23 | | /// <param name="code"> Error code describing the error. </param> |
| | 24 | | /// <param name="message"> A human-readable language-dependent representation of the error. </param> |
| | 25 | | /// <param name="category"> Helps with categorization of errors. </param> |
| | 26 | | /// <param name="retry"> Indicates that it may be possible to retry the Job. If retry is unsuccessful, please co |
| | 27 | | /// <param name="details"> An array of details about specific errors that led to this reported error. </param> |
| 16 | 28 | | internal MediaJobError(MediaJobErrorCode? code, string message, MediaJobErrorCategory? category, MediaJobRetry? |
| | 29 | | { |
| 16 | 30 | | Code = code; |
| 16 | 31 | | Message = message; |
| 16 | 32 | | Category = category; |
| 16 | 33 | | Retry = retry; |
| 16 | 34 | | Details = details; |
| 16 | 35 | | } |
| | 36 | |
|
| | 37 | | /// <summary> Error code describing the error. </summary> |
| 4 | 38 | | public MediaJobErrorCode? Code { get; } |
| | 39 | | /// <summary> A human-readable language-dependent representation of the error. </summary> |
| 0 | 40 | | public string Message { get; } |
| | 41 | | /// <summary> Helps with categorization of errors. </summary> |
| 4 | 42 | | public MediaJobErrorCategory? Category { get; } |
| | 43 | | /// <summary> Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure |
| 0 | 44 | | public MediaJobRetry? Retry { get; } |
| | 45 | | /// <summary> An array of details about specific errors that led to this reported error. </summary> |
| 0 | 46 | | public IReadOnlyList<MediaJobErrorDetail> Details { get; } |
| | 47 | | } |
| | 48 | | } |