Class: Google::Apis::WorkstationsV1beta::GenerateAccessTokenResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/workstations_v1beta/classes.rb,
lib/google/apis/workstations_v1beta/representations.rb,
lib/google/apis/workstations_v1beta/representations.rb

Overview

Response message for GenerateAccessToken.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenerateAccessTokenResponse

Returns a new instance of GenerateAccessTokenResponse.



836
837
838
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 836

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#access_tokenString

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

Returns:

  • (String)


829
830
831
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 829

def access_token
  @access_token
end

#expire_timeString

Time at which the generated token will expire. Corresponds to the JSON property expireTime

Returns:

  • (String)


834
835
836
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 834

def expire_time
  @expire_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



841
842
843
844
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 841

def update!(**args)
  @access_token = args[:access_token] if args.key?(:access_token)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
end