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.
844 845 846 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 844 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
827 828 829 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 827 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
832 833 834 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 832 def expiration_time @expiration_time end |
#scopes ⇒ Array<String>
The scopes of the access token.
Corresponds to the JSON property scopes
837 838 839 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 837 def scopes @scopes end |
#token ⇒ String
The token content.
Corresponds to the JSON property token
842 843 844 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 842 def token @token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
849 850 851 852 853 854 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 849 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 |