class Google::Apis::Oauth2V2::Tokeninfo
Attributes
The access type granted with this token. It can be offline or online. Corresponds to the JSON property `access_type` @return [String]
Who is the intended audience for this token. In general the same as issued_to. Corresponds to the JSON property `audience` @return [String]
The email address of the user. Present only if the email scope is present in the request. Corresponds to the JSON property `email` @return [String]
The expiry time of the token, as number of seconds left until expiry. Corresponds to the JSON property `expires_in` @return [Fixnum]
To whom was the token issued to. In general the same as audience. Corresponds to the JSON property `issued_to` @return [String]
The space separated list of scopes granted to this token. Corresponds to the JSON property `scope` @return [String]
The token handle associated with this token. Corresponds to the JSON property `token_handle` @return [String]
The obfuscated user id. Corresponds to the JSON property `user_id` @return [String]
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` @return [Boolean]
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` @return [Boolean]
Public Class Methods
# File generated/google/apis/oauth2_v2/classes.rb, line 145 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/oauth2_v2/classes.rb, line 150 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) @expires_in = args[:expires_in] if args.key?(:expires_in) @issued_to = args[:issued_to] if args.key?(:issued_to) @scope = args[:scope] if args.key?(:scope) @token_handle = args[:token_handle] if args.key?(:token_handle) @user_id = args[:user_id] if args.key?(:user_id) @verified_email = args[:verified_email] if args.key?(:verified_email) end