class Google::Apis::StsV1beta::GoogleIdentityStsV1betaExchangeTokenResponse

Response message for ExchangeToken.

Attributes

access_token[RW]

An OAuth 2.0 security token, issued by Google, in response to the token exchange request. Tokens can vary in size, depending in part on the size of mapped claims, up to a maximum of 12288 bytes (12 KB). Google reserves the right to change the token size and the maximum length at any time. Corresponds to the JSON property `access_token` @return [String]

expires_in[RW]

The amount of time, in seconds, between the time when the access token was issued and the time when the access token will expire. This field is absent when the `subject_token` in the request is a Google-issued, short-lived access token. In this case, the access token has the same expiration time as the ` subject_token`. Corresponds to the JSON property `expires_in` @return [Fixnum]

issued_token_type[RW]

The token type. Always matches the value of `requested_token_type` from the request. Corresponds to the JSON property `issued_token_type` @return [String]

token_type[RW]

The type of access token. Always has the value `Bearer`. Corresponds to the JSON property `token_type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sts_v1beta/classes.rb, line 452
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sts_v1beta/classes.rb, line 457
def update!(**args)
  @access_token = args[:access_token] if args.key?(:access_token)
  @expires_in = args[:expires_in] if args.key?(:expires_in)
  @issued_token_type = args[:issued_token_type] if args.key?(:issued_token_type)
  @token_type = args[:token_type] if args.key?(:token_type)
end