Class: Google::Apis::StsV1::GoogleIdentityStsV1ExchangeTokenResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sts_v1/classes.rb,
generated/google/apis/sts_v1/representations.rb,
generated/google/apis/sts_v1/representations.rb

Overview

Response message for ExchangeToken.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleIdentityStsV1ExchangeTokenResponse

Returns a new instance of GoogleIdentityStsV1ExchangeTokenResponse.



107
108
109
# File 'generated/google/apis/sts_v1/classes.rb', line 107

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

Instance Attribute Details

#access_tokenString

An OAuth 2.0 security token, issued by Google, in response to the token exchange request. Corresponds to the JSON property access_token

Returns:

  • (String)


85
86
87
# File 'generated/google/apis/sts_v1/classes.rb', line 85

def access_token
  @access_token
end

#expires_inFixnum

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

Returns:

  • (Fixnum)


94
95
96
# File 'generated/google/apis/sts_v1/classes.rb', line 94

def expires_in
  @expires_in
end

#issued_token_typeString

The token type. Always matches the value of requested_token_type from the request. Corresponds to the JSON property issued_token_type

Returns:

  • (String)


100
101
102
# File 'generated/google/apis/sts_v1/classes.rb', line 100

def issued_token_type
  @issued_token_type
end

#token_typeString

The type of access_token. Always has the value Bearer. Corresponds to the JSON property token_type

Returns:

  • (String)


105
106
107
# File 'generated/google/apis/sts_v1/classes.rb', line 105

def token_type
  @token_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



112
113
114
115
116
117
# File 'generated/google/apis/sts_v1/classes.rb', line 112

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