Class: Google::Apis::ApigeeV1::GoogleRpcPreconditionFailure

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/apigee_v1/classes.rb,
generated/google/apis/apigee_v1/representations.rb,
generated/google/apis/apigee_v1/representations.rb

Overview

Describes what preconditions have failed. For example, if an RPC failed because it required the Terms of Service to be acknowledged, it could list the terms of service violation in the PreconditionFailure message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleRpcPreconditionFailure

Returns a new instance of GoogleRpcPreconditionFailure.


5844
5845
5846
# File 'generated/google/apis/apigee_v1/classes.rb', line 5844

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#violationsArray<Google::Apis::ApigeeV1::GoogleRpcPreconditionFailureViolation>

Describes all precondition violations. Corresponds to the JSON property violations


5842
5843
5844
# File 'generated/google/apis/apigee_v1/classes.rb', line 5842

def violations
  @violations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


5849
5850
5851
# File 'generated/google/apis/apigee_v1/classes.rb', line 5849

def update!(**args)
  @violations = args[:violations] if args.key?(:violations)
end