| | 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.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// The configuration for container-enabled Pools. |
| | 20 | | /// </summary> |
| | 21 | | public partial class ContainerConfiguration |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the ContainerConfiguration class. |
| | 25 | | /// </summary> |
| 517 | 26 | | public ContainerConfiguration() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 517 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the ContainerConfiguration class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="containerImageNames">The collection of container Image |
| | 35 | | /// names.</param> |
| | 36 | | /// <param name="containerRegistries">Additional private registries |
| | 37 | | /// from which containers can be pulled.</param> |
| 0 | 38 | | public ContainerConfiguration(IList<string> containerImageNames = default(IList<string>), IList<ContainerRegistr |
| | 39 | | { |
| 0 | 40 | | ContainerImageNames = containerImageNames; |
| 0 | 41 | | ContainerRegistries = containerRegistries; |
| | 42 | | CustomInit(); |
| 0 | 43 | | } |
| | 44 | | /// <summary> |
| | 45 | | /// Static constructor for ContainerConfiguration class. |
| | 46 | | /// </summary> |
| | 47 | | static ContainerConfiguration() |
| | 48 | | { |
| 1 | 49 | | Type = "dockerCompatible"; |
| 1 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// An initialization method that performs custom operations like setting defaults |
| | 54 | | /// </summary> |
| | 55 | | partial void CustomInit(); |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Gets or sets the collection of container Image names. |
| | 59 | | /// </summary> |
| | 60 | | /// <remarks> |
| | 61 | | /// This is the full Image reference, as would be specified to "docker |
| | 62 | | /// pull". An Image will be sourced from the default Docker registry |
| | 63 | | /// unless the Image is fully qualified with an alternative registry. |
| | 64 | | /// </remarks> |
| | 65 | | [JsonProperty(PropertyName = "containerImageNames")] |
| 1178 | 66 | | public IList<string> ContainerImageNames { get; set; } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets or sets additional private registries from which containers |
| | 70 | | /// can be pulled. |
| | 71 | | /// </summary> |
| | 72 | | /// <remarks> |
| | 73 | | /// If any Images must be downloaded from a private registry which |
| | 74 | | /// requires credentials, then those credentials must be provided here. |
| | 75 | | /// </remarks> |
| | 76 | | [JsonProperty(PropertyName = "containerRegistries")] |
| 1169 | 77 | | public IList<ContainerRegistry> ContainerRegistries { get; set; } |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// </summary> |
| | 81 | | [JsonProperty(PropertyName = "type")] |
| 0 | 82 | | public static string Type { get; private set; } |
| | 83 | |
|
| | 84 | | } |
| | 85 | | } |