Google Anthos Multi Cloud V1 Client - Class GenerateAwsAccessTokenResponse (0.5.4)

Reference documentation and code samples for the Google Anthos Multi Cloud V1 Client class GenerateAwsAccessTokenResponse.

Response message for AwsClusters.GenerateAwsAccessToken method.

Generated from protobuf message google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse

Namespace

Google \ Cloud \ GkeMultiCloud \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ access_token string

Output only. Access token to authenticate to k8s api-server.

↳ expiration_time Google\Protobuf\Timestamp

Output only. Timestamp at which the token will expire.

getAccessToken

Output only. Access token to authenticate to k8s api-server.

Returns
Type Description
string

setAccessToken

Output only. Access token to authenticate to k8s api-server.

Parameter
Name Description
var string
Returns
Type Description
$this

getExpirationTime

Output only. Timestamp at which the token will expire.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasExpirationTime

clearExpirationTime

setExpirationTime

Output only. Timestamp at which the token will expire.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this