class Google::Apis::ServiceconsumermanagementV1::CustomErrorRule

A custom error rule.

Attributes

is_error_type[RW]

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` @return [Boolean]

is_error_type?[RW]

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` @return [Boolean]

selector[RW]

Selects messages to which this rule applies. Refer to selector for syntax details. Corresponds to the JSON property `selector` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/serviceconsumermanagement_v1/classes.rb, line 764
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/serviceconsumermanagement_v1/classes.rb, line 769
def update!(**args)
  @is_error_type = args[:is_error_type] if args.key?(:is_error_type)
  @selector = args[:selector] if args.key?(:selector)
end