| | | 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 definition of the user identity under which the Task is run. |
| | | 18 | | /// </summary> |
| | | 19 | | /// <remarks> |
| | | 20 | | /// Specify either the userName or autoUser property, but not both. |
| | | 21 | | /// </remarks> |
| | | 22 | | public partial class UserIdentity |
| | | 23 | | { |
| | | 24 | | /// <summary> |
| | | 25 | | /// Initializes a new instance of the UserIdentity class. |
| | | 26 | | /// </summary> |
| | 3317 | 27 | | public UserIdentity() |
| | | 28 | | { |
| | | 29 | | CustomInit(); |
| | 3317 | 30 | | } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// Initializes a new instance of the UserIdentity class. |
| | | 34 | | /// </summary> |
| | | 35 | | /// <param name="userName">The name of the user identity under which |
| | | 36 | | /// the Task is run.</param> |
| | | 37 | | /// <param name="autoUser">The auto user under which the Task is |
| | | 38 | | /// run.</param> |
| | 1 | 39 | | public UserIdentity(string userName = default(string), AutoUserSpecification autoUser = default(AutoUserSpecific |
| | | 40 | | { |
| | 1 | 41 | | UserName = userName; |
| | 1 | 42 | | AutoUser = autoUser; |
| | | 43 | | CustomInit(); |
| | 1 | 44 | | } |
| | | 45 | | |
| | | 46 | | /// <summary> |
| | | 47 | | /// An initialization method that performs custom operations like setting defaults |
| | | 48 | | /// </summary> |
| | | 49 | | partial void CustomInit(); |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// Gets or sets the name of the user identity under which the Task is |
| | | 53 | | /// run. |
| | | 54 | | /// </summary> |
| | | 55 | | /// <remarks> |
| | | 56 | | /// The userName and autoUser properties are mutually exclusive; you |
| | | 57 | | /// must specify one but not both. |
| | | 58 | | /// </remarks> |
| | | 59 | | [JsonProperty(PropertyName = "username")] |
| | 7470 | 60 | | public string UserName { get; set; } |
| | | 61 | | |
| | | 62 | | /// <summary> |
| | | 63 | | /// Gets or sets the auto user under which the Task is run. |
| | | 64 | | /// </summary> |
| | | 65 | | /// <remarks> |
| | | 66 | | /// The userName and autoUser properties are mutually exclusive; you |
| | | 67 | | /// must specify one but not both. |
| | | 68 | | /// </remarks> |
| | | 69 | | [JsonProperty(PropertyName = "autoUser")] |
| | 7451 | 70 | | public AutoUserSpecification AutoUser { get; set; } |
| | | 71 | | |
| | | 72 | | } |
| | | 73 | | } |