class Google::Apis::ServicenetworkingV1::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::ServicenetworkingV1::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_v1/classes.rb, line 1076 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_v1/classes.rb, line 1081 def update!(**args) @rules = args[:rules] if args.key?(:rules) @types = args[:types] if args.key?(:types) end