Class: Google::Apis::ContentV2_1::Error

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb

Overview

An error returned by the API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Error

Returns a new instance of Error.



2726
2727
2728
# File 'generated/google/apis/content_v2_1/classes.rb', line 2726

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

Instance Attribute Details

#domainString

The domain of the error. Corresponds to the JSON property domain

Returns:

  • (String)


2714
2715
2716
# File 'generated/google/apis/content_v2_1/classes.rb', line 2714

def domain
  @domain
end

#messageString

A description of the error. Corresponds to the JSON property message

Returns:

  • (String)


2719
2720
2721
# File 'generated/google/apis/content_v2_1/classes.rb', line 2719

def message
  @message
end

#reasonString

The error code. Corresponds to the JSON property reason

Returns:

  • (String)


2724
2725
2726
# File 'generated/google/apis/content_v2_1/classes.rb', line 2724

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2731
2732
2733
2734
2735
# File 'generated/google/apis/content_v2_1/classes.rb', line 2731

def update!(**args)
  @domain = args[:domain] if args.key?(:domain)
  @message = args[:message] if args.key?(:message)
  @reason = args[:reason] if args.key?(:reason)
end