Class: Google::Apis::ServiceconsumermanagementV1::CustomError
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ServiceconsumermanagementV1::CustomError
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/serviceconsumermanagement_v1/classes.rb,
generated/google/apis/serviceconsumermanagement_v1/representations.rb,
generated/google/apis/serviceconsumermanagement_v1/representations.rb 
Overview
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
 
Instance Attribute Summary collapse
- 
  
    
      #rules  ⇒ Array<Google::Apis::ServiceconsumermanagementV1::CustomErrorRule> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The list of custom error rules that apply to individual API messages.
 - 
  
    
      #types  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The list of custom error detail types, e.g.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CustomError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of CustomError.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CustomError
Returns a new instance of CustomError
      697 698 699  | 
    
      # File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 697 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#rules ⇒ Array<Google::Apis::ServiceconsumermanagementV1::CustomErrorRule>
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
      690 691 692  | 
    
      # File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 690 def rules @rules end  | 
  
#types ⇒ Array<String>
The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.
Corresponds to the JSON property types
      695 696 697  | 
    
      # File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 695 def types @types end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      702 703 704 705  | 
    
      # File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 702 def update!(**args) @rules = args[:rules] if args.key?(:rules) @types = args[:types] if args.key?(:types) end  |