다음을 통해 공유


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.Update.IUpdate 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.Update.IUpdate
Public Function WithRepositoryAuthentication (tokenType As TokenType, token As String) As IUpdate

Parameters

tokenType
TokenType

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

token
String

The token used to authenticate to the source control repository.

Returns

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.Update.IUpdate 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.Update.IUpdate
Public Function WithRepositoryAuthentication (tokenType As TokenType, token As String, refreshToken As String, scope As String, expiresIn As Integer) As IUpdate

Parameters

tokenType
TokenType

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

token
String

The token used to authenticate to the source control repository.

refreshToken
String

The token that is used to refresh the access token.

scope
String

The scope of the access token.

expiresIn
Int32

Time in seconds that the token remains valid.

Returns

Applies to