| | 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.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// The settings for an authentication token that the Task can use to |
| | 20 | | /// perform Batch service operations. |
| | 21 | | /// </summary> |
| | 22 | | public partial class AuthenticationTokenSettings |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Initializes a new instance of the AuthenticationTokenSettings |
| | 26 | | /// class. |
| | 27 | | /// </summary> |
| 1118 | 28 | | public AuthenticationTokenSettings() |
| | 29 | | { |
| | 30 | | CustomInit(); |
| 1118 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> |
| | 34 | | /// Initializes a new instance of the AuthenticationTokenSettings |
| | 35 | | /// class. |
| | 36 | | /// </summary> |
| | 37 | | /// <param name="access">The Batch resources to which the token grants |
| | 38 | | /// access.</param> |
| 0 | 39 | | public AuthenticationTokenSettings(IList<AccessScope> access = default(IList<AccessScope>)) |
| | 40 | | { |
| 0 | 41 | | Access = access; |
| | 42 | | CustomInit(); |
| 0 | 43 | | } |
| | 44 | |
|
| | 45 | | /// <summary> |
| | 46 | | /// An initialization method that performs custom operations like setting defaults |
| | 47 | | /// </summary> |
| | 48 | | partial void CustomInit(); |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// Gets or sets the Batch resources to which the token grants access. |
| | 52 | | /// </summary> |
| | 53 | | /// <remarks> |
| | 54 | | /// The authentication token grants access to a limited set of Batch |
| | 55 | | /// service operations. Currently the only supported value for the |
| | 56 | | /// access property is 'job', which grants access to all operations |
| | 57 | | /// related to the Job which contains the Task. |
| | 58 | | /// </remarks> |
| | 59 | | [JsonProperty(PropertyName = "access")] |
| 3950 | 60 | | public IList<AccessScope> Access { get; set; } |
| | 61 | |
|
| | 62 | | } |
| | 63 | | } |