Class: Google::Apis::DeveloperconnectV1::ExchangeError

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 representing an error from exchanging OAuth tokens.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExchangeError

Returns a new instance of ExchangeError.



796
797
798
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 796

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

Instance Attribute Details

#codeString

https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - error Corresponds to the JSON property code

Returns:

  • (String)


789
790
791
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 789

def code
  @code
end

#descriptionString

https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - error_description Corresponds to the JSON property description

Returns:

  • (String)


794
795
796
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 794

def description
  @description
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



801
802
803
804
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 801

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @description = args[:description] if args.key?(:description)
end