class Google::Apis::ServicenetworkingV1beta::CustomError

Customize service error responses. For example, list any service specific protobuf types that can appear in error detail lists of error responses. Example: custom_error: types: - google.foo.v1.CustomError - google.foo.v1. AnotherError

Attributes

rules[RW]

The list of custom error rules that apply to individual API messages. NOTE: All service configuration rules follow “last one wins” order. Corresponds to the JSON property `rules` @return [Array<Google::Apis::ServicenetworkingV1beta::CustomErrorRule>]

types[RW]

The list of custom error detail types, e.g. 'google.foo.v1.CustomError'. Corresponds to the JSON property `types` @return [Array<String>]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/servicenetworking_v1beta/classes.rb, line 920
def update!(**args)
  @rules = args[:rules] if args.key?(:rules)
  @types = args[:types] if args.key?(:types)
end