| | | 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 | | /// Contains information about the container which a task is executing. |
| | | 22 | | /// </summary> |
| | | 23 | | public partial class TaskContainerExecutionInformation : IPropertyMetadata |
| | | 24 | | { |
| | | 25 | | #region Constructors |
| | | 26 | | |
| | 1500 | 27 | | internal TaskContainerExecutionInformation(Models.TaskContainerExecutionInformation protocolObject) |
| | | 28 | | { |
| | 1500 | 29 | | this.ContainerId = protocolObject.ContainerId; |
| | 1500 | 30 | | this.Error = protocolObject.Error; |
| | 1500 | 31 | | this.State = protocolObject.State; |
| | 1500 | 32 | | } |
| | | 33 | | |
| | | 34 | | #endregion Constructors |
| | | 35 | | |
| | | 36 | | #region TaskContainerExecutionInformation |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Gets the ID of the container. |
| | | 40 | | /// </summary> |
| | 1495 | 41 | | public string ContainerId { get; } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// Gets detailed error information about the container. |
| | | 45 | | /// </summary> |
| | | 46 | | /// <remarks> |
| | | 47 | | /// This is the detailed error string from the Docker service, if available. It is equivilant to the error field |
| | | 48 | | /// returned by "docker inspect". |
| | | 49 | | /// </remarks> |
| | 1495 | 50 | | public string Error { get; } |
| | | 51 | | |
| | | 52 | | /// <summary> |
| | | 53 | | /// Gets the state of the container. |
| | | 54 | | /// </summary> |
| | | 55 | | /// <remarks> |
| | | 56 | | /// This is the state of the container according to the Docker service. It is equivilant to the status field ret |
| | | 57 | | /// by "docker inspect". |
| | | 58 | | /// </remarks> |
| | 1495 | 59 | | public string State { get; } |
| | | 60 | | |
| | | 61 | | #endregion // TaskContainerExecutionInformation |
| | | 62 | | |
| | | 63 | | #region IPropertyMetadata |
| | | 64 | | |
| | | 65 | | bool IModifiable.HasBeenModified |
| | | 66 | | { |
| | | 67 | | //This class is compile time readonly so it cannot have been modified |
| | 0 | 68 | | get { return false; } |
| | | 69 | | } |
| | | 70 | | |
| | | 71 | | bool IReadOnly.IsReadOnly |
| | | 72 | | { |
| | 0 | 73 | | get { return true; } |
| | | 74 | | set |
| | | 75 | | { |
| | | 76 | | // This class is compile time readonly already |
| | 1500 | 77 | | } |
| | | 78 | | } |
| | | 79 | | |
| | | 80 | | #endregion // IPropertyMetadata |
| | | 81 | | } |
| | | 82 | | } |