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.



166
167
168
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 166

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

Instance Attribute Details

#tokenString

The OpenId Connect ID token. The token is a JSON Web Token (JWT) that contains a payload with claims. See the JSON Web Token spec for more information. Here is an example of a decoded JWT payload: ` "iss": "https://accounts.google.com", "iat": 1496953245, "exp": 1496953245, "aud": "https://www.example.com", "sub": "107517467455664443765", " azp": "107517467455664443765", "email": "[email protected]. gserviceaccount.com", "email_verified": true, "google": ` "organization_number" : 123456 ` ` Corresponds to the JSON property token

Returns:

  • (String)


164
165
166
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 164

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



171
172
173
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 171

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