Class: Google::Apis::ApigeeV1::GoogleRpcPreconditionFailureViolation
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ApigeeV1::GoogleRpcPreconditionFailureViolation
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/apigee_v1/classes.rb,
lib/google/apis/apigee_v1/representations.rb,
lib/google/apis/apigee_v1/representations.rb 
Overview
A message type used to describe a single precondition failure.
Instance Attribute Summary collapse
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A description of how the precondition failed.
 - 
  
    
      #subject  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The subject, relative to the type, that failed.
 - 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The type of PreconditionFailure.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoogleRpcPreconditionFailureViolation 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GoogleRpcPreconditionFailureViolation.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ GoogleRpcPreconditionFailureViolation
Returns a new instance of GoogleRpcPreconditionFailureViolation.
      11966 11967 11968  | 
    
      # File 'lib/google/apis/apigee_v1/classes.rb', line 11966 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#description ⇒ String
A description of how the precondition failed. Developers can use this
description to understand how to fix the failure. For example: "Terms of
service not accepted".
Corresponds to the JSON property description
      11950 11951 11952  | 
    
      # File 'lib/google/apis/apigee_v1/classes.rb', line 11950 def description @description end  | 
  
#subject ⇒ String
The subject, relative to the type, that failed. For example, "google.com/cloud"
relative to the "TOS" type would indicate which terms of service is being
referenced.
Corresponds to the JSON property subject
      11957 11958 11959  | 
    
      # File 'lib/google/apis/apigee_v1/classes.rb', line 11957 def subject @subject end  | 
  
#type ⇒ String
The type of PreconditionFailure. We recommend using a service-specific enum
type to define the supported precondition violation subjects. For example, "
TOS" for "Terms of Service violation".
Corresponds to the JSON property type
      11964 11965 11966  | 
    
      # File 'lib/google/apis/apigee_v1/classes.rb', line 11964 def type @type end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      11971 11972 11973 11974 11975  | 
    
      # File 'lib/google/apis/apigee_v1/classes.rb', line 11971 def update!(**args) @description = args[:description] if args.key?(:description) @subject = args[:subject] if args.key?(:subject) @type = args[:type] if args.key?(:type) end  |