Google Cloud Iam Credentials V1 Client - Class GenerateAccessTokenResponse (1.1.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
NameDescription
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
TypeDescription
string

setAccessToken

The OAuth 2.0 access token.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getExpireTime

Token expiration time.

The expiration time is always set.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasExpireTime

clearExpireTime

setExpireTime

Token expiration time.

The expiration time is always set.

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