Class: Google::Apis::WorkstationsV1::GenerateAccessTokenResponse
- Inherits:
-
Object
- Object
- Google::Apis::WorkstationsV1::GenerateAccessTokenResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workstations_v1/classes.rb,
lib/google/apis/workstations_v1/representations.rb,
lib/google/apis/workstations_v1/representations.rb
Overview
Response message for GenerateAccessToken.
Instance Attribute Summary collapse
-
#access_token ⇒ String
The generated bearer access token.
-
#expire_time ⇒ String
Time at which the generated token will expire.
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.
790 791 792 |
# File 'lib/google/apis/workstations_v1/classes.rb', line 790 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_token ⇒ String
The generated bearer access token. To use this token, include it in an
Authorization header of an HTTP request sent to the associated workstation's
hostname—for example, Authorization: Bearer.
Corresponds to the JSON property accessToken
783 784 785 |
# File 'lib/google/apis/workstations_v1/classes.rb', line 783 def access_token @access_token end |
#expire_time ⇒ String
Time at which the generated token will expire.
Corresponds to the JSON property expireTime
788 789 790 |
# File 'lib/google/apis/workstations_v1/classes.rb', line 788 def expire_time @expire_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
795 796 797 798 |
# File 'lib/google/apis/workstations_v1/classes.rb', line 795 def update!(**args) @access_token = args[:access_token] if args.key?(:access_token) @expire_time = args[:expire_time] if args.key?(:expire_time) end |