| | | 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.Batch.Protocol.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Linq; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// The container settings for a Task. |
| | | 18 | | /// </summary> |
| | | 19 | | public partial class TaskContainerSettings |
| | | 20 | | { |
| | | 21 | | /// <summary> |
| | | 22 | | /// Initializes a new instance of the TaskContainerSettings class. |
| | | 23 | | /// </summary> |
| | 2721 | 24 | | public TaskContainerSettings() |
| | | 25 | | { |
| | | 26 | | CustomInit(); |
| | 2721 | 27 | | } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Initializes a new instance of the TaskContainerSettings class. |
| | | 31 | | /// </summary> |
| | | 32 | | /// <param name="imageName">The Image to use to create the container in |
| | | 33 | | /// which the Task will run.</param> |
| | | 34 | | /// <param name="containerRunOptions">Additional options to the |
| | | 35 | | /// container create command.</param> |
| | | 36 | | /// <param name="registry">The private registry which contains the |
| | | 37 | | /// container Image.</param> |
| | | 38 | | /// <param name="workingDirectory">The location of the container Task |
| | | 39 | | /// working directory.</param> |
| | 0 | 40 | | public TaskContainerSettings(string imageName, string containerRunOptions = default(string), ContainerRegistry r |
| | | 41 | | { |
| | 0 | 42 | | ContainerRunOptions = containerRunOptions; |
| | 0 | 43 | | ImageName = imageName; |
| | 0 | 44 | | Registry = registry; |
| | 0 | 45 | | WorkingDirectory = workingDirectory; |
| | | 46 | | CustomInit(); |
| | 0 | 47 | | } |
| | | 48 | | |
| | | 49 | | /// <summary> |
| | | 50 | | /// An initialization method that performs custom operations like setting defaults |
| | | 51 | | /// </summary> |
| | | 52 | | partial void CustomInit(); |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// Gets or sets additional options to the container create command. |
| | | 56 | | /// </summary> |
| | | 57 | | /// <remarks> |
| | | 58 | | /// These additional options are supplied as arguments to the "docker |
| | | 59 | | /// create" command, in addition to those controlled by the Batch |
| | | 60 | | /// Service. |
| | | 61 | | /// </remarks> |
| | | 62 | | [JsonProperty(PropertyName = "containerRunOptions")] |
| | 6474 | 63 | | public string ContainerRunOptions { get; set; } |
| | | 64 | | |
| | | 65 | | /// <summary> |
| | | 66 | | /// Gets or sets the Image to use to create the container in which the |
| | | 67 | | /// Task will run. |
| | | 68 | | /// </summary> |
| | | 69 | | /// <remarks> |
| | | 70 | | /// This is the full Image reference, as would be specified to "docker |
| | | 71 | | /// pull". If no tag is provided as part of the Image name, the tag |
| | | 72 | | /// ":latest" is used as a default. |
| | | 73 | | /// </remarks> |
| | | 74 | | [JsonProperty(PropertyName = "imageName")] |
| | 6501 | 75 | | public string ImageName { get; set; } |
| | | 76 | | |
| | | 77 | | /// <summary> |
| | | 78 | | /// Gets or sets the private registry which contains the container |
| | | 79 | | /// Image. |
| | | 80 | | /// </summary> |
| | | 81 | | /// <remarks> |
| | | 82 | | /// This setting can be omitted if was already provided at Pool |
| | | 83 | | /// creation. |
| | | 84 | | /// </remarks> |
| | | 85 | | [JsonProperty(PropertyName = "registry")] |
| | 6508 | 86 | | public ContainerRegistry Registry { get; set; } |
| | | 87 | | |
| | | 88 | | /// <summary> |
| | | 89 | | /// Gets or sets the location of the container Task working directory. |
| | | 90 | | /// </summary> |
| | | 91 | | /// <remarks> |
| | | 92 | | /// The default is 'taskWorkingDirectory'. Possible values include: |
| | | 93 | | /// 'taskWorkingDirectory', 'containerImageDefault' |
| | | 94 | | /// </remarks> |
| | | 95 | | [JsonProperty(PropertyName = "workingDirectory")] |
| | 6501 | 96 | | public ContainerWorkingDirectory? WorkingDirectory { get; set; } |
| | | 97 | | |
| | | 98 | | } |
| | | 99 | | } |