Class: Google::Apis::ContentV2_1::Error
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::Error
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
An error returned by the API.
Instance Attribute Summary collapse
-
#domain ⇒ String
The domain of the error.
-
#message ⇒ String
A description of the error.
-
#reason ⇒ String
The error code.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Error
constructor
A new instance of Error.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Error
4761 4762 4763 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4761 def initialize(**args) update!(**args) end |
Instance Attribute Details
#domain ⇒ String
The domain of the error.
Corresponds to the JSON property domain
4749 4750 4751 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4749 def domain @domain end |
#message ⇒ String
A description of the error.
Corresponds to the JSON property message
4754 4755 4756 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4754 def end |
#reason ⇒ String
The error code.
Corresponds to the JSON property reason
4759 4760 4761 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4759 def reason @reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4766 4767 4768 4769 4770 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4766 def update!(**args) @domain = args[:domain] if args.key?(:domain) = args[:message] if args.key?(:message) @reason = args[:reason] if args.key?(:reason) end |