Google Anthos Multi Cloud V1 Client - Class GenerateAwsAccessTokenResponse (0.1.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

Methods

__construct

Constructor.

Parameters
NameDescription
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.

Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
string

setAccessToken

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

Generated from protobuf field string access_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getExpirationTime

Output only. Timestamp at which the token will expire.

Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasExpirationTime

clearExpirationTime

setExpirationTime

Output only. Timestamp at which the token will expire.

Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this