Class: Google::Apis::IamcredentialsV1::GenerateIdTokenResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenerateIdTokenResponse

Returns a new instance of GenerateIdTokenResponse.



149
150
151
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 149

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

Instance Attribute Details

#tokenString

The OpenId Connect ID token. Corresponds to the JSON property token

Returns:

  • (String)


147
148
149
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 147

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



154
155
156
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 154

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