IRepositoryBranchAndAuth.WithRepositoryAuthentication Method

Definition

Overloads

WithRepositoryAuthentication(TokenType, String)

The function that allows the user to input the type of the token used for authentication and the token itself to authenticate to the source control repository.

WithRepositoryAuthentication(TokenType, String, String, String, Int32)

The function that allows the user to input the type of the token used for authentication and the token itself to authenticate to the source control repository.

WithRepositoryAuthentication(TokenType, String)

The function that allows the user to input the type of the token used for authentication and the token itself to authenticate to the source control repository.

public Microsoft.Azure.Management.ContainerRegistry.Fluent.RegistrySourceTrigger.UpdateDefinition.ISourceTriggerAttachable WithRepositoryAuthentication (Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.TokenType tokenType, string token);
abstract member WithRepositoryAuthentication : Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.TokenType * string -> Microsoft.Azure.Management.ContainerRegistry.Fluent.RegistrySourceTrigger.UpdateDefinition.ISourceTriggerAttachable
Public Function WithRepositoryAuthentication (tokenType As TokenType, token As String) As ISourceTriggerAttachable

Parameters

tokenType
TokenType

The type of the token used to authenticate to the source control repository.

token
System.String

The token used to authenticate to the source control repository.

Returns

ISourceTriggerAttachable

Applies to

WithRepositoryAuthentication(TokenType, String, String, String, Int32)

The function that allows the user to input the type of the token used for authentication and the token itself to authenticate to the source control repository.

public Microsoft.Azure.Management.ContainerRegistry.Fluent.RegistrySourceTrigger.UpdateDefinition.ISourceTriggerAttachable WithRepositoryAuthentication (Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.TokenType tokenType, string token, string refreshToken, string scope, int expiresIn);
abstract member WithRepositoryAuthentication : Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.TokenType * string * string * string * int -> Microsoft.Azure.Management.ContainerRegistry.Fluent.RegistrySourceTrigger.UpdateDefinition.ISourceTriggerAttachable
Public Function WithRepositoryAuthentication (tokenType As TokenType, token As String, refreshToken As String, scope As String, expiresIn As Integer) As ISourceTriggerAttachable

Parameters

tokenType
TokenType

The type of the token used to authenticate to the source control repository.

token
System.String

The token used to authenticate to the source control repository.

refreshToken
System.String

The token that is used to refresh the access token.

scope
System.String

The scope of the access token.

expiresIn
System.Int32

Time in seconds that the token remains valid.

Returns

ISourceTriggerAttachable

Applies to