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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Error

Returns a new instance of Error.



3048
3049
3050
# File 'lib/google/apis/content_v2_1/classes.rb', line 3048

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

Instance Attribute Details

#domainString

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

Returns:

  • (String)


3036
3037
3038
# File 'lib/google/apis/content_v2_1/classes.rb', line 3036

def domain
  @domain
end

#messageString

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

Returns:

  • (String)


3041
3042
3043
# File 'lib/google/apis/content_v2_1/classes.rb', line 3041

def message
  @message
end

#reasonString

The error code. Corresponds to the JSON property reason

Returns:

  • (String)


3046
3047
3048
# File 'lib/google/apis/content_v2_1/classes.rb', line 3046

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3053
3054
3055
3056
3057
# File 'lib/google/apis/content_v2_1/classes.rb', line 3053

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