Google Cloud Iam Credentials V1 Client - Class GenerateAccessTokenResponse (2.0.2)

Reference documentation and code samples for the Google Cloud Iam Credentials V1 Client class GenerateAccessTokenResponse.

Generated from protobuf message google.iam.credentials.v1.GenerateAccessTokenResponse

Namespace

Google \ Cloud \ Iam \ Credentials \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ access_token string

The OAuth 2.0 access token.

↳ expire_time Google\Protobuf\Timestamp

Token expiration time. The expiration time is always set.

getAccessToken

The OAuth 2.0 access token.

Returns
Type Description
string

setAccessToken

The OAuth 2.0 access token.

Parameter
Name Description
var string
Returns
Type Description
$this

getExpireTime

Token expiration time.

The expiration time is always set.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasExpireTime

clearExpireTime

setExpireTime

Token expiration time.

The expiration time is always set.

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