AccessToken¶
-
class
oci.container_registry.models.AccessToken(**kwargs)¶ Bases:
objectAccess token response for OCI Container Registry extension authentication.
Methods
__init__(**kwargs)Initializes a new AccessToken object with values from keyword arguments. Attributes
access_token[Required] Gets the access_token of this AccessToken. expires_in[Required] Gets the expires_in of this AccessToken. scope[Required] Gets the scope of this AccessToken. token[Required] Gets the token of this AccessToken. -
__init__(**kwargs)¶ Initializes a new AccessToken object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - token (str) – The value to assign to the token property of this AccessToken.
- access_token (str) – The value to assign to the access_token property of this AccessToken.
- scope (str) – The value to assign to the scope property of this AccessToken.
- expires_in (int) – The value to assign to the expires_in property of this AccessToken.
-
access_token¶ [Required] Gets the access_token of this AccessToken. Access token string (alias for token).
Returns: The access_token of this AccessToken. Return type: str
-
expires_in¶ [Required] Gets the expires_in of this AccessToken. Seconds until the token expires.
Returns: The expires_in of this AccessToken. Return type: int
-
scope¶ [Required] Gets the scope of this AccessToken. Scope that restricts access to resources.
Returns: The scope of this AccessToken. Return type: str
-
token¶ [Required] Gets the token of this AccessToken. Access token string.
Returns: The token of this AccessToken. Return type: str
-