Class: Google::Apis::IamcredentialsV1::GenerateAccessTokenResponse
- Inherits:
-
Object
- Object
- Google::Apis::IamcredentialsV1::GenerateAccessTokenResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/iamcredentials_v1/classes.rb,
lib/google/apis/iamcredentials_v1/representations.rb,
lib/google/apis/iamcredentials_v1/representations.rb
Instance Attribute Summary collapse
-
#access_token ⇒ String
The OAuth 2.0 access token.
-
#expire_time ⇒ String
Token expiration time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenerateAccessTokenResponse
constructor
A new instance of GenerateAccessTokenResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenerateAccessTokenResponse
Returns a new instance of GenerateAccessTokenResponse.
88 89 90 |
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 88 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_token ⇒ String
The OAuth 2.0 access token.
Corresponds to the JSON property accessToken
81 82 83 |
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 81 def access_token @access_token end |
#expire_time ⇒ String
Token expiration time. The expiration time is always set.
Corresponds to the JSON property expireTime
86 87 88 |
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 86 def expire_time @expire_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
93 94 95 96 |
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 93 def update!(**args) @access_token = args[:access_token] if args.key?(:access_token) @expire_time = args[:expire_time] if args.key?(:expire_time) end |