| | 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 configuration for Compute Nodes in a Pool based on the Azure Cloud |
| | 18 | | /// Services platform. |
| | 19 | | /// </summary> |
| | 20 | | public partial class CloudServiceConfiguration |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the CloudServiceConfiguration class. |
| | 24 | | /// </summary> |
| 828 | 25 | | public CloudServiceConfiguration() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 828 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the CloudServiceConfiguration class. |
| | 32 | | /// </summary> |
| | 33 | | /// <param name="osFamily">The Azure Guest OS family to be installed on |
| | 34 | | /// the virtual machines in the Pool.</param> |
| | 35 | | /// <param name="osVersion">The Azure Guest OS version to be installed |
| | 36 | | /// on the virtual machines in the Pool.</param> |
| 5 | 37 | | public CloudServiceConfiguration(string osFamily, string osVersion = default(string)) |
| | 38 | | { |
| 5 | 39 | | OsFamily = osFamily; |
| 5 | 40 | | OsVersion = osVersion; |
| | 41 | | CustomInit(); |
| 5 | 42 | | } |
| | 43 | |
|
| | 44 | | /// <summary> |
| | 45 | | /// An initialization method that performs custom operations like setting defaults |
| | 46 | | /// </summary> |
| | 47 | | partial void CustomInit(); |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Gets or sets the Azure Guest OS family to be installed on the |
| | 51 | | /// virtual machines in the Pool. |
| | 52 | | /// </summary> |
| | 53 | | /// <remarks> |
| | 54 | | /// Possible values are: |
| | 55 | | /// 2 - OS Family 2, equivalent to Windows Server 2008 R2 SP1. |
| | 56 | | /// 3 - OS Family 3, equivalent to Windows Server 2012. |
| | 57 | | /// 4 - OS Family 4, equivalent to Windows Server 2012 R2. |
| | 58 | | /// 5 - OS Family 5, equivalent to Windows Server 2016. |
| | 59 | | /// 6 - OS Family 6, equivalent to Windows Server 2019. For more |
| | 60 | | /// information, see Azure Guest OS Releases |
| | 61 | | /// (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases). |
| | 62 | | /// </remarks> |
| | 63 | | [JsonProperty(PropertyName = "osFamily")] |
| 1963 | 64 | | public string OsFamily { get; set; } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets or sets the Azure Guest OS version to be installed on the |
| | 68 | | /// virtual machines in the Pool. |
| | 69 | | /// </summary> |
| | 70 | | /// <remarks> |
| | 71 | | /// The default value is * which specifies the latest operating system |
| | 72 | | /// version for the specified OS family. |
| | 73 | | /// </remarks> |
| | 74 | | [JsonProperty(PropertyName = "osVersion")] |
| 1952 | 75 | | public string OsVersion { get; set; } |
| | 76 | |
|
| | 77 | | } |
| | 78 | | } |