Class: Google::Apis::Oauth2V1::Tokeninfo
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::Oauth2V1::Tokeninfo
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/oauth2_v1/classes.rb,
 generated/google/apis/oauth2_v1/representations.rb,
 generated/google/apis/oauth2_v1/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #access_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The access type granted with this token. 
- 
  
    
      #audience  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Who is the intended audience for this token. 
- 
  
    
      #email  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The email address of the user. 
- 
  
    
      #email_verified  ⇒ Boolean 
    
    
      (also: #email_verified?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Boolean flag which is true if the email address is verified. 
- 
  
    
      #expires_in  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The expiry time of the token, as number of seconds left until expiry. 
- 
  
    
      #issued_at  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The issue time of the token, as number of seconds. 
- 
  
    
      #issued_to  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    To whom was the token issued to. 
- 
  
    
      #issuer  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Who issued the token. 
- 
  
    
      #nonce  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Nonce of the id token. 
- 
  
    
      #scope  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The space separated list of scopes granted to this token. 
- 
  
    
      #user_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The obfuscated user id. 
- 
  
    
      #verified_email  ⇒ Boolean 
    
    
      (also: #verified_email?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Boolean flag which is true if the email address is verified. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Tokeninfo 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Tokeninfo. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Tokeninfo
Returns a new instance of Tokeninfo
| 218 219 220 | # File 'generated/google/apis/oauth2_v1/classes.rb', line 218 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#access_type ⇒ String
The access type granted with this token. It can be offline or online.
Corresponds to the JSON property access_type
| 156 157 158 | # File 'generated/google/apis/oauth2_v1/classes.rb', line 156 def access_type @access_type end | 
#audience ⇒ String
Who is the intended audience for this token. In general the same as issued_to.
Corresponds to the JSON property audience
| 161 162 163 | # File 'generated/google/apis/oauth2_v1/classes.rb', line 161 def audience @audience end | 
#email ⇒ String
The email address of the user. Present only if the email scope is present in
the request.
Corresponds to the JSON property email
| 167 168 169 | # File 'generated/google/apis/oauth2_v1/classes.rb', line 167 def email @email end | 
#email_verified ⇒ Boolean Also known as: email_verified?
Boolean flag which is true if the email address is verified. Present only if
the email scope is present in the request.
Corresponds to the JSON property email_verified
| 173 174 175 | # File 'generated/google/apis/oauth2_v1/classes.rb', line 173 def email_verified @email_verified end | 
#expires_in ⇒ Fixnum
The expiry time of the token, as number of seconds left until expiry.
Corresponds to the JSON property expires_in
| 179 180 181 | # File 'generated/google/apis/oauth2_v1/classes.rb', line 179 def expires_in @expires_in end | 
#issued_at ⇒ Fixnum
The issue time of the token, as number of seconds.
Corresponds to the JSON property issued_at
| 184 185 186 | # File 'generated/google/apis/oauth2_v1/classes.rb', line 184 def issued_at @issued_at end | 
#issued_to ⇒ String
To whom was the token issued to. In general the same as audience.
Corresponds to the JSON property issued_to
| 189 190 191 | # File 'generated/google/apis/oauth2_v1/classes.rb', line 189 def issued_to @issued_to end | 
#issuer ⇒ String
Who issued the token.
Corresponds to the JSON property issuer
| 194 195 196 | # File 'generated/google/apis/oauth2_v1/classes.rb', line 194 def issuer @issuer end | 
#nonce ⇒ String
Nonce of the id token.
Corresponds to the JSON property nonce
| 199 200 201 | # File 'generated/google/apis/oauth2_v1/classes.rb', line 199 def nonce @nonce end | 
#scope ⇒ String
The space separated list of scopes granted to this token.
Corresponds to the JSON property scope
| 204 205 206 | # File 'generated/google/apis/oauth2_v1/classes.rb', line 204 def scope @scope end | 
#user_id ⇒ String
The obfuscated user id.
Corresponds to the JSON property user_id
| 209 210 211 | # File 'generated/google/apis/oauth2_v1/classes.rb', line 209 def user_id @user_id end | 
#verified_email ⇒ Boolean Also known as: verified_email?
Boolean flag which is true if the email address is verified. Present only if
the email scope is present in the request.
Corresponds to the JSON property verified_email
| 215 216 217 | # File 'generated/google/apis/oauth2_v1/classes.rb', line 215 def verified_email @verified_email end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 223 224 225 226 227 228 229 230 231 232 233 234 235 236 | # File 'generated/google/apis/oauth2_v1/classes.rb', line 223 def update!(**args) @access_type = args[:access_type] if args.key?(:access_type) @audience = args[:audience] if args.key?(:audience) @email = args[:email] if args.key?(:email) @email_verified = args[:email_verified] if args.key?(:email_verified) @expires_in = args[:expires_in] if args.key?(:expires_in) @issued_at = args[:issued_at] if args.key?(:issued_at) @issued_to = args[:issued_to] if args.key?(:issued_to) @issuer = args[:issuer] if args.key?(:issuer) @nonce = args[:nonce] if args.key?(:nonce) @scope = args[:scope] if args.key?(:scope) @user_id = args[:user_id] if args.key?(:user_id) @verified_email = args[:verified_email] if args.key?(:verified_email) end |