| | 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 | | /// An error encountered by the Batch service when scheduling a job. |
| | 22 | | /// </summary> |
| | 23 | | public partial class JobSchedulingError : IPropertyMetadata |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | |
|
| 281 | 27 | | internal JobSchedulingError(Models.JobSchedulingError protocolObject) |
| | 28 | | { |
| 281 | 29 | | this.Category = UtilitiesInternal.MapEnum<Models.ErrorCategory, Common.ErrorCategory>(protocolObject.Categor |
| 281 | 30 | | this.Code = protocolObject.Code; |
| 281 | 31 | | this.Details = NameValuePair.ConvertFromProtocolCollectionReadOnly(protocolObject.Details); |
| 281 | 32 | | this.Message = protocolObject.Message; |
| 281 | 33 | | } |
| | 34 | |
|
| | 35 | | #endregion Constructors |
| | 36 | |
|
| | 37 | | #region JobSchedulingError |
| | 38 | |
|
| | 39 | | /// <summary> |
| | 40 | | /// Gets the category of the job scheduling error. |
| | 41 | | /// </summary> |
| 280 | 42 | | public Common.ErrorCategory Category { get; } |
| | 43 | |
|
| | 44 | | /// <summary> |
| | 45 | | /// Gets a code for the job scheduling error. See <see cref="Common.JobSchedulingErrorCodes"/> for possible valu |
| | 46 | | /// </summary> |
| 280 | 47 | | public string Code { get; } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Gets a list of additional error details related to the scheduling error. |
| | 51 | | /// </summary> |
| 280 | 52 | | public IReadOnlyList<NameValuePair> Details { get; } |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// Gets a message describing the job scheduling error, intended to be suitable for display in a user interface. |
| | 56 | | /// </summary> |
| 280 | 57 | | public string Message { get; } |
| | 58 | |
|
| | 59 | | #endregion // JobSchedulingError |
| | 60 | |
|
| | 61 | | #region IPropertyMetadata |
| | 62 | |
|
| | 63 | | bool IModifiable.HasBeenModified |
| | 64 | | { |
| | 65 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 66 | | get { return false; } |
| | 67 | | } |
| | 68 | |
|
| | 69 | | bool IReadOnly.IsReadOnly |
| | 70 | | { |
| 0 | 71 | | get { return true; } |
| | 72 | | set |
| | 73 | | { |
| | 74 | | // This class is compile time readonly already |
| 281 | 75 | | } |
| | 76 | | } |
| | 77 | |
|
| | 78 | | #endregion // IPropertyMetadata |
| | 79 | | } |
| | 80 | | } |