ArmComputeModelFactory.GrantAccessData Method

Definition

Initializes a new instance of GrantAccessData.

public static Azure.ResourceManager.Compute.Models.GrantAccessData GrantAccessData (Azure.ResourceManager.Compute.Models.AccessLevel access = default, int durationInSeconds = 0, bool? getSecureVmGuestStateSas = default, Azure.ResourceManager.Compute.Models.DiskImageFileFormat? fileFormat = default);
static member GrantAccessData : Azure.ResourceManager.Compute.Models.AccessLevel * int * Nullable<bool> * Nullable<Azure.ResourceManager.Compute.Models.DiskImageFileFormat> -> Azure.ResourceManager.Compute.Models.GrantAccessData
Public Shared Function GrantAccessData (Optional access As AccessLevel = Nothing, Optional durationInSeconds As Integer = 0, Optional getSecureVmGuestStateSas As Nullable(Of Boolean) = Nothing, Optional fileFormat As Nullable(Of DiskImageFileFormat) = Nothing) As GrantAccessData

Parameters

access
AccessLevel

The Access Level, accepted values include None, Read, Write.

durationInSeconds
Int32

Time duration in seconds until the SAS access expires.

getSecureVmGuestStateSas
Nullable<Boolean>

Set this flag to true to get additional SAS for VM guest state.

fileFormat
Nullable<DiskImageFileFormat>

Used to specify the file format when making request for SAS on a VHDX file format snapshot.

Returns

A new GrantAccessData instance for mocking.

Applies to