Class: Google::Apis::DeveloperconnectV1::FetchAccessTokenResponse
- Inherits:
-
Object
- Object
- Google::Apis::DeveloperconnectV1::FetchAccessTokenResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/developerconnect_v1/classes.rb,
lib/google/apis/developerconnect_v1/representations.rb,
lib/google/apis/developerconnect_v1/representations.rb
Overview
Message for responding to getting an OAuth access token.
Instance Attribute Summary collapse
-
#exchange_error ⇒ Google::Apis::DeveloperconnectV1::ExchangeError
Message for representing an error from exchanging OAuth tokens.
-
#expiration_time ⇒ String
Expiration timestamp.
-
#scopes ⇒ Array<String>
The scopes of the access token.
-
#token ⇒ String
The token content.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FetchAccessTokenResponse
constructor
A new instance of FetchAccessTokenResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FetchAccessTokenResponse
Returns a new instance of FetchAccessTokenResponse.
852 853 854 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 852 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exchange_error ⇒ Google::Apis::DeveloperconnectV1::ExchangeError
Message for representing an error from exchanging OAuth tokens.
Corresponds to the JSON property exchangeError
835 836 837 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 835 def exchange_error @exchange_error end |
#expiration_time ⇒ String
Expiration timestamp. Can be empty if unknown or non-expiring.
Corresponds to the JSON property expirationTime
840 841 842 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 840 def expiration_time @expiration_time end |
#scopes ⇒ Array<String>
The scopes of the access token.
Corresponds to the JSON property scopes
845 846 847 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 845 def scopes @scopes end |
#token ⇒ String
The token content.
Corresponds to the JSON property token
850 851 852 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 850 def token @token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
857 858 859 860 861 862 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 857 def update!(**args) @exchange_error = args[:exchange_error] if args.key?(:exchange_error) @expiration_time = args[:expiration_time] if args.key?(:expiration_time) @scopes = args[:scopes] if args.key?(:scopes) @token = args[:token] if args.key?(:token) end |