| | 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 | | /// A reference to an Azure Virtual Machines Marketplace Image or a custom |
| | 18 | | /// Azure Virtual Machine Image. To get the list of all Azure Marketplace |
| | 19 | | /// Image references verified by Azure Batch, see the 'List supported |
| | 20 | | /// Images' operation. |
| | 21 | | /// </summary> |
| | 22 | | public partial class ImageReference |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Initializes a new instance of the ImageReference class. |
| | 26 | | /// </summary> |
| 1625 | 27 | | public ImageReference() |
| | 28 | | { |
| | 29 | | CustomInit(); |
| 1625 | 30 | | } |
| | 31 | |
|
| | 32 | | /// <summary> |
| | 33 | | /// Initializes a new instance of the ImageReference class. |
| | 34 | | /// </summary> |
| | 35 | | /// <param name="publisher">The publisher of the Azure Virtual Machines |
| | 36 | | /// Marketplace Image.</param> |
| | 37 | | /// <param name="offer">The offer type of the Azure Virtual Machines |
| | 38 | | /// Marketplace Image.</param> |
| | 39 | | /// <param name="sku">The SKU of the Azure Virtual Machines Marketplace |
| | 40 | | /// Image.</param> |
| | 41 | | /// <param name="version">The version of the Azure Virtual Machines |
| | 42 | | /// Marketplace Image.</param> |
| | 43 | | /// <param name="virtualMachineImageId">The ARM resource identifier of |
| | 44 | | /// the Shared Image Gallery Image. Compute Nodes in the Pool will be |
| | 45 | | /// created using this Image Id. This is of the |
| | 46 | | /// form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{ga |
| 0 | 47 | | public ImageReference(string publisher = default(string), string offer = default(string), string sku = default(s |
| | 48 | | { |
| 0 | 49 | | Publisher = publisher; |
| 0 | 50 | | Offer = offer; |
| 0 | 51 | | Sku = sku; |
| 0 | 52 | | Version = version; |
| 0 | 53 | | VirtualMachineImageId = virtualMachineImageId; |
| | 54 | | CustomInit(); |
| 0 | 55 | | } |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// An initialization method that performs custom operations like setting defaults |
| | 59 | | /// </summary> |
| | 60 | | partial void CustomInit(); |
| | 61 | |
|
| | 62 | | /// <summary> |
| | 63 | | /// Gets or sets the publisher of the Azure Virtual Machines |
| | 64 | | /// Marketplace Image. |
| | 65 | | /// </summary> |
| | 66 | | /// <remarks> |
| | 67 | | /// For example, Canonical or MicrosoftWindowsServer. |
| | 68 | | /// </remarks> |
| | 69 | | [JsonProperty(PropertyName = "publisher")] |
| 3390 | 70 | | public string Publisher { get; set; } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Gets or sets the offer type of the Azure Virtual Machines |
| | 74 | | /// Marketplace Image. |
| | 75 | | /// </summary> |
| | 76 | | /// <remarks> |
| | 77 | | /// For example, UbuntuServer or WindowsServer. |
| | 78 | | /// </remarks> |
| | 79 | | [JsonProperty(PropertyName = "offer")] |
| 3402 | 80 | | public string Offer { get; set; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets or sets the SKU of the Azure Virtual Machines Marketplace |
| | 84 | | /// Image. |
| | 85 | | /// </summary> |
| | 86 | | /// <remarks> |
| | 87 | | /// For example, 18.04-LTS or 2019-Datacenter. |
| | 88 | | /// </remarks> |
| | 89 | | [JsonProperty(PropertyName = "sku")] |
| 3428 | 90 | | public string Sku { get; set; } |
| | 91 | |
|
| | 92 | | /// <summary> |
| | 93 | | /// Gets or sets the version of the Azure Virtual Machines Marketplace |
| | 94 | | /// Image. |
| | 95 | | /// </summary> |
| | 96 | | /// <remarks> |
| | 97 | | /// A value of 'latest' can be specified to select the latest version |
| | 98 | | /// of an Image. If omitted, the default is 'latest'. |
| | 99 | | /// </remarks> |
| | 100 | | [JsonProperty(PropertyName = "version")] |
| 3396 | 101 | | public string Version { get; set; } |
| | 102 | |
|
| | 103 | | /// <summary> |
| | 104 | | /// Gets or sets the ARM resource identifier of the Shared Image |
| | 105 | | /// Gallery Image. Compute Nodes in the Pool will be created using this |
| | 106 | | /// Image Id. This is of the |
| | 107 | | /// form/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{ga |
| | 108 | | /// </summary> |
| | 109 | | /// <remarks> |
| | 110 | | /// This property is mutually exclusive with other ImageReference |
| | 111 | | /// properties. For Virtual Machine Image it must be in the same region |
| | 112 | | /// and subscription as the Azure Batch account. The Shared Image |
| | 113 | | /// Gallery Image must have replicas in the same region as the Azure |
| | 114 | | /// Batch account. For information about the firewall settings for the |
| | 115 | | /// Batch Compute Node agent to communicate with the Batch service see |
| | 116 | | /// https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuratio |
| | 117 | | /// </remarks> |
| | 118 | | [JsonProperty(PropertyName = "virtualMachineImageId")] |
| 3393 | 119 | | public string VirtualMachineImageId { get; set; } |
| | 120 | |
|
| | 121 | | } |
| | 122 | | } |