Share via


ComputeBatchModelFactory.AuthenticationTokenSettings Method

Definition

The settings for an authentication token that the Task can use to perform Batch service operations.

public static Azure.Compute.Batch.AuthenticationTokenSettings AuthenticationTokenSettings(System.Collections.Generic.IEnumerable<Azure.Compute.Batch.BatchAccessScope> access = default);
static member AuthenticationTokenSettings : seq<Azure.Compute.Batch.BatchAccessScope> -> Azure.Compute.Batch.AuthenticationTokenSettings
Public Shared Function AuthenticationTokenSettings (Optional access As IEnumerable(Of BatchAccessScope) = Nothing) As AuthenticationTokenSettings

Parameters

access
IEnumerable<BatchAccessScope>

The Batch resources to which the token grants access. The authentication token grants access to a limited set of Batch service operations. Currently the only supported value for the access property is 'job', which grants access to all operations related to the Job which contains the Task.

Returns

A new AuthenticationTokenSettings instance for mocking.

Applies to