| | 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 | | /// Properties used to create a user used to execute Tasks on an Azure |
| | 18 | | /// Batch Compute Node. |
| | 19 | | /// </summary> |
| | 20 | | public partial class UserAccount |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the UserAccount class. |
| | 24 | | /// </summary> |
| 3585 | 25 | | public UserAccount() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 3585 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the UserAccount class. |
| | 32 | | /// </summary> |
| | 33 | | /// <param name="name">The name of the user Account.</param> |
| | 34 | | /// <param name="password">The password for the user Account.</param> |
| | 35 | | /// <param name="elevationLevel">The elevation level of the user |
| | 36 | | /// Account.</param> |
| | 37 | | /// <param name="linuxUserConfiguration">The Linux-specific user |
| | 38 | | /// configuration for the user Account.</param> |
| | 39 | | /// <param name="windowsUserConfiguration">The Windows-specific user |
| | 40 | | /// configuration for the user Account.</param> |
| 0 | 41 | | public UserAccount(string name, string password, ElevationLevel? elevationLevel = default(ElevationLevel?), Linu |
| | 42 | | { |
| 0 | 43 | | Name = name; |
| 0 | 44 | | Password = password; |
| 0 | 45 | | ElevationLevel = elevationLevel; |
| 0 | 46 | | LinuxUserConfiguration = linuxUserConfiguration; |
| 0 | 47 | | WindowsUserConfiguration = windowsUserConfiguration; |
| | 48 | | CustomInit(); |
| 0 | 49 | | } |
| | 50 | |
|
| | 51 | | /// <summary> |
| | 52 | | /// An initialization method that performs custom operations like setting defaults |
| | 53 | | /// </summary> |
| | 54 | | partial void CustomInit(); |
| | 55 | |
|
| | 56 | | /// <summary> |
| | 57 | | /// Gets or sets the name of the user Account. |
| | 58 | | /// </summary> |
| | 59 | | [JsonProperty(PropertyName = "name")] |
| 8564 | 60 | | public string Name { get; set; } |
| | 61 | |
|
| | 62 | | /// <summary> |
| | 63 | | /// Gets or sets the password for the user Account. |
| | 64 | | /// </summary> |
| | 65 | | [JsonProperty(PropertyName = "password")] |
| 8595 | 66 | | public string Password { get; set; } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets or sets the elevation level of the user Account. |
| | 70 | | /// </summary> |
| | 71 | | /// <remarks> |
| | 72 | | /// The default value is nonAdmin. Possible values include: 'nonAdmin', |
| | 73 | | /// 'admin' |
| | 74 | | /// </remarks> |
| | 75 | | [JsonProperty(PropertyName = "elevationLevel")] |
| 8533 | 76 | | public ElevationLevel? ElevationLevel { get; set; } |
| | 77 | |
|
| | 78 | | /// <summary> |
| | 79 | | /// Gets or sets the Linux-specific user configuration for the user |
| | 80 | | /// Account. |
| | 81 | | /// </summary> |
| | 82 | | /// <remarks> |
| | 83 | | /// This property is ignored if specified on a Windows Pool. If not |
| | 84 | | /// specified, the user is created with the default options. |
| | 85 | | /// </remarks> |
| | 86 | | [JsonProperty(PropertyName = "linuxUserConfiguration")] |
| 8583 | 87 | | public LinuxUserConfiguration LinuxUserConfiguration { get; set; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets or sets the Windows-specific user configuration for the user |
| | 91 | | /// Account. |
| | 92 | | /// </summary> |
| | 93 | | /// <remarks> |
| | 94 | | /// This property can only be specified if the user is on a Windows |
| | 95 | | /// Pool. If not specified and on a Windows Pool, the user is created |
| | 96 | | /// with the default options. |
| | 97 | | /// </remarks> |
| | 98 | | [JsonProperty(PropertyName = "windowsUserConfiguration")] |
| 8580 | 99 | | public WindowsUserConfiguration WindowsUserConfiguration { get; set; } |
| | 100 | |
|
| | 101 | | } |
| | 102 | | } |