| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. See License.txt in the project root for license information. |
| | | 3 | | // |
| | | 4 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | | 5 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | | 6 | | // regenerated. |
| | | 7 | | |
| | | 8 | | // |
| | | 9 | | // This file was autogenerated by a tool. |
| | | 10 | | // Do not modify it. |
| | | 11 | | // |
| | | 12 | | |
| | | 13 | | namespace Microsoft.Azure.Batch |
| | | 14 | | { |
| | | 15 | | using Models = Microsoft.Azure.Batch.Protocol.Models; |
| | | 16 | | using System; |
| | | 17 | | using System.Collections.Generic; |
| | | 18 | | using System.Linq; |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// Information about a task failure. |
| | | 22 | | /// </summary> |
| | | 23 | | public partial class TaskFailureInformation : IPropertyMetadata |
| | | 24 | | { |
| | | 25 | | #region Constructors |
| | | 26 | | |
| | 1491 | 27 | | internal TaskFailureInformation(Models.TaskFailureInformation protocolObject) |
| | | 28 | | { |
| | 1491 | 29 | | this.Category = UtilitiesInternal.MapEnum<Models.ErrorCategory, Common.ErrorCategory>(protocolObject.Categor |
| | 1491 | 30 | | this.Code = protocolObject.Code; |
| | 1491 | 31 | | this.Details = NameValuePair.ConvertFromProtocolCollectionReadOnly(protocolObject.Details); |
| | 1491 | 32 | | this.Message = protocolObject.Message; |
| | 1491 | 33 | | } |
| | | 34 | | |
| | | 35 | | #endregion Constructors |
| | | 36 | | |
| | | 37 | | #region TaskFailureInformation |
| | | 38 | | |
| | | 39 | | /// <summary> |
| | | 40 | | /// Gets the category of the task error. |
| | | 41 | | /// </summary> |
| | 1487 | 42 | | public Common.ErrorCategory Category { get; } |
| | | 43 | | |
| | | 44 | | /// <summary> |
| | | 45 | | /// Gets a code for the task scheduling error. See <see cref="Common.TaskFailureInformationCodes"/> for possible |
| | | 46 | | /// values. |
| | | 47 | | /// </summary> |
| | 1487 | 48 | | public string Code { get; } |
| | | 49 | | |
| | | 50 | | /// <summary> |
| | | 51 | | /// Gets a list of additional error details related to the error. |
| | | 52 | | /// </summary> |
| | 1487 | 53 | | public IReadOnlyList<NameValuePair> Details { get; } |
| | | 54 | | |
| | | 55 | | /// <summary> |
| | | 56 | | /// Gets a message describing the task error, intended to be suitable for display in a user interface. |
| | | 57 | | /// </summary> |
| | 1487 | 58 | | public string Message { get; } |
| | | 59 | | |
| | | 60 | | #endregion // TaskFailureInformation |
| | | 61 | | |
| | | 62 | | #region IPropertyMetadata |
| | | 63 | | |
| | | 64 | | bool IModifiable.HasBeenModified |
| | | 65 | | { |
| | | 66 | | //This class is compile time readonly so it cannot have been modified |
| | 0 | 67 | | get { return false; } |
| | | 68 | | } |
| | | 69 | | |
| | | 70 | | bool IReadOnly.IsReadOnly |
| | | 71 | | { |
| | 0 | 72 | | get { return true; } |
| | | 73 | | set |
| | | 74 | | { |
| | | 75 | | // This class is compile time readonly already |
| | 1491 | 76 | | } |
| | | 77 | | } |
| | | 78 | | |
| | | 79 | | #endregion // IPropertyMetadata |
| | | 80 | | } |
| | | 81 | | } |