次の方法で共有


SourceControlAuthInfo Class

The authorization properties for accessing the source code repository.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.containerregistry._serialization.Model
SourceControlAuthInfo

Constructor

SourceControlAuthInfo(*, token: str, token_type: str | _models.TokenType | None = None, refresh_token: str | None = None, scope: str | None = None, expires_in: int | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
token_type

The type of Auth token. Known values are: "PAT" and "OAuth".

token
str

The access token used to access the source control provider. Required.

refresh_token
str

The refresh token used to refresh the access token.

scope
str

The scope of the access token.

expires_in
int

Time in seconds that the token remains valid.

Variables

Name Description
token_type

The type of Auth token. Known values are: "PAT" and "OAuth".

token
str

The access token used to access the source control provider. Required.

refresh_token
str

The refresh token used to refresh the access token.

scope
str

The scope of the access token.

expires_in
int

Time in seconds that the token remains valid.