Class: Google::Apis::ServiceusageV1::CustomErrorRule

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

Overview

A custom error rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CustomErrorRule

Returns a new instance of CustomErrorRule.



784
785
786
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 784

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

Instance Attribute Details

#is_error_typeBoolean Also known as: is_error_type?

Mark this message as possible payload in error response. Otherwise, objects of this type will be filtered when they appear in error payload. Corresponds to the JSON property isErrorType

Returns:

  • (Boolean)


775
776
777
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 775

def is_error_type
  @is_error_type
end

#selectorString

Selects messages to which this rule applies. Refer to selector for syntax details. Corresponds to the JSON property selector

Returns:

  • (String)


782
783
784
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 782

def selector
  @selector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



789
790
791
792
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 789

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