| | | 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 | | /// Specifies the parameters for the auto user that runs a Task on the |
| | | 18 | | /// Batch service. |
| | | 19 | | /// </summary> |
| | | 20 | | public partial class AutoUserSpecification |
| | | 21 | | { |
| | | 22 | | /// <summary> |
| | | 23 | | /// Initializes a new instance of the AutoUserSpecification class. |
| | | 24 | | /// </summary> |
| | 1759 | 25 | | public AutoUserSpecification() |
| | | 26 | | { |
| | | 27 | | CustomInit(); |
| | 1759 | 28 | | } |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// Initializes a new instance of the AutoUserSpecification class. |
| | | 32 | | /// </summary> |
| | | 33 | | /// <param name="scope">The scope for the auto user</param> |
| | | 34 | | /// <param name="elevationLevel">The elevation level of the auto |
| | | 35 | | /// user.</param> |
| | 1 | 36 | | public AutoUserSpecification(AutoUserScope? scope = default(AutoUserScope?), ElevationLevel? elevationLevel = de |
| | | 37 | | { |
| | 1 | 38 | | Scope = scope; |
| | 1 | 39 | | ElevationLevel = elevationLevel; |
| | | 40 | | CustomInit(); |
| | 1 | 41 | | } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// An initialization method that performs custom operations like setting defaults |
| | | 45 | | /// </summary> |
| | | 46 | | partial void CustomInit(); |
| | | 47 | | |
| | | 48 | | /// <summary> |
| | | 49 | | /// Gets or sets the scope for the auto user |
| | | 50 | | /// </summary> |
| | | 51 | | /// <remarks> |
| | | 52 | | /// The default value is pool. If the pool is running Windows a value |
| | | 53 | | /// of Task should be specified if stricter isolation between tasks is |
| | | 54 | | /// required. For example, if the task mutates the registry in a way |
| | | 55 | | /// which could impact other tasks, or if certificates have been |
| | | 56 | | /// specified on the pool which should not be accessible by normal |
| | | 57 | | /// tasks but should be accessible by StartTasks. Possible values |
| | | 58 | | /// include: 'task', 'pool' |
| | | 59 | | /// </remarks> |
| | | 60 | | [JsonProperty(PropertyName = "scope")] |
| | 3926 | 61 | | public AutoUserScope? Scope { get; set; } |
| | | 62 | | |
| | | 63 | | /// <summary> |
| | | 64 | | /// Gets or sets the elevation level of the auto user. |
| | | 65 | | /// </summary> |
| | | 66 | | /// <remarks> |
| | | 67 | | /// The default value is nonAdmin. Possible values include: 'nonAdmin', |
| | | 68 | | /// 'admin' |
| | | 69 | | /// </remarks> |
| | | 70 | | [JsonProperty(PropertyName = "elevationLevel")] |
| | 3914 | 71 | | public ElevationLevel? ElevationLevel { get; set; } |
| | | 72 | | |
| | | 73 | | } |
| | | 74 | | } |