Class: Google::Apis::StsV1::GoogleIdentityStsV1ExchangeOauthTokenResponse
- Inherits:
-
Object
- Object
- Google::Apis::StsV1::GoogleIdentityStsV1ExchangeOauthTokenResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sts_v1/classes.rb,
lib/google/apis/sts_v1/representations.rb,
lib/google/apis/sts_v1/representations.rb
Overview
Response message for ExchangeOauthToken. see https://www.rfc-editor.org/rfc/ rfc6749#section-5.1
Instance Attribute Summary collapse
-
#access_token ⇒ String
An OAuth 2.0 security token, issued by Google, in response to the Oauth token exchange request for the authorization code and refresh token flows.
-
#expires_in ⇒ Fixnum
The amount of time, in seconds, between the time when the access token was issued and the time when the access token will expires.
-
#refresh_token ⇒ String
A refresh token, issued by Google, in response to the OAuth token exchange request for refresh token flow Corresponds to the JSON property
refresh_token. -
#scope ⇒ String
A list of scopes associated with the returned token.
-
#token_type ⇒ String
The type of token.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleIdentityStsV1ExchangeOauthTokenResponse
constructor
A new instance of GoogleIdentityStsV1ExchangeOauthTokenResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleIdentityStsV1ExchangeOauthTokenResponse
Returns a new instance of GoogleIdentityStsV1ExchangeOauthTokenResponse.
295 296 297 |
# File 'lib/google/apis/sts_v1/classes.rb', line 295 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_token ⇒ String
An OAuth 2.0 security token, issued by Google, in response to the Oauth token
exchange request for the authorization code and refresh token flows. The
returned access token.
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
269 270 271 |
# File 'lib/google/apis/sts_v1/classes.rb', line 269 def access_token @access_token end |
#expires_in ⇒ Fixnum
The amount of time, in seconds, between the time when the access token was
issued and the time when the access token will expires.
Corresponds to the JSON property expires_in
275 276 277 |
# File 'lib/google/apis/sts_v1/classes.rb', line 275 def expires_in @expires_in end |
#refresh_token ⇒ String
A refresh token, issued by Google, in response to the OAuth token exchange
request for refresh token flow
Corresponds to the JSON property refresh_token
281 282 283 |
# File 'lib/google/apis/sts_v1/classes.rb', line 281 def refresh_token @refresh_token end |
#scope ⇒ String
A list of scopes associated with the returned token.
Corresponds to the JSON property scope
286 287 288 |
# File 'lib/google/apis/sts_v1/classes.rb', line 286 def scope @scope end |
#token_type ⇒ String
The type of token. Field reserved for RFC compliance. See https://www.rfc-
editor.org/rfc/rfc6749#section-5.1 Note: No token_type is returned for current
implementation
Corresponds to the JSON property token_type
293 294 295 |
# File 'lib/google/apis/sts_v1/classes.rb', line 293 def token_type @token_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
300 301 302 303 304 305 306 |
# File 'lib/google/apis/sts_v1/classes.rb', line 300 def update!(**args) @access_token = args[:access_token] if args.key?(:access_token) @expires_in = args[:expires_in] if args.key?(:expires_in) @refresh_token = args[:refresh_token] if args.key?(:refresh_token) @scope = args[:scope] if args.key?(:scope) @token_type = args[:token_type] if args.key?(:token_type) end |