Class: Google::Apis::IamcredentialsV1::GenerateAccessTokenResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GenerateAccessTokenResponse

Returns a new instance of GenerateAccessTokenResponse.



86
87
88
# File 'generated/google/apis/iamcredentials_v1/classes.rb', line 86

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

Instance Attribute Details

#access_tokenString

The OAuth 2.0 access token. Corresponds to the JSON property accessToken

Returns:

  • (String)


78
79
80
# File 'generated/google/apis/iamcredentials_v1/classes.rb', line 78

def access_token
  @access_token
end

#expire_timeString

Token expiration time. The expiration time is always set. Corresponds to the JSON property expireTime

Returns:

  • (String)


84
85
86
# File 'generated/google/apis/iamcredentials_v1/classes.rb', line 84

def expire_time
  @expire_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



91
92
93
94
# File 'generated/google/apis/iamcredentials_v1/classes.rb', line 91

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