Class: Google::Apis::DeveloperconnectV1::FetchAccessTokenResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_errorGoogle::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_timeString

Expiration timestamp. Can be empty if unknown or non-expiring. Corresponds to the JSON property expirationTime

Returns:

  • (String)


832
833
834
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 832

def expiration_time
  @expiration_time
end

#scopesArray<String>

The scopes of the access token. Corresponds to the JSON property scopes

Returns:

  • (Array<String>)


837
838
839
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 837

def scopes
  @scopes
end

#tokenString

The token content. Corresponds to the JSON property token

Returns:

  • (String)


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