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.



804
805
806
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 804

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)


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

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)


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

def description
  @description
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



809
810
811
812
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 809

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