| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | namespace Azure.ResourceManager.Compute.Models |
| | 9 | | { |
| | 10 | | /// <summary> Data used for requesting a SAS. </summary> |
| | 11 | | public partial class GrantAccessData |
| | 12 | | { |
| | 13 | | /// <summary> Initializes a new instance of GrantAccessData. </summary> |
| | 14 | | /// <param name="access"> The Access Level, accepted values include None, Read, Write. </param> |
| | 15 | | /// <param name="durationInSeconds"> Time duration in seconds until the SAS access expires. </param> |
| 22 | 16 | | public GrantAccessData(AccessLevel access, int durationInSeconds) |
| | 17 | | { |
| 22 | 18 | | Access = access; |
| 22 | 19 | | DurationInSeconds = durationInSeconds; |
| 22 | 20 | | } |
| | 21 | |
|
| | 22 | | /// <summary> The Access Level, accepted values include None, Read, Write. </summary> |
| 60 | 23 | | public AccessLevel Access { get; } |
| | 24 | | /// <summary> Time duration in seconds until the SAS access expires. </summary> |
| 60 | 25 | | public int DurationInSeconds { get; } |
| | 26 | | } |
| | 27 | | } |