Class: Google::Rpc::PreconditionFailure

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/rpc/error_details.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.

Defined Under Namespace

Classes: Violation

Instance Attribute Summary collapse

Instance Attribute Details

#violations::Array<::Google::Rpc::PreconditionFailure::Violation>

Returns Describes all precondition violations.

Returns:



166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# File 'proto_docs/google/rpc/error_details.rb', line 166

class PreconditionFailure
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A message type used to describe a single precondition failure.
  # @!attribute [rw] type
  #   @return [::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".
  # @!attribute [rw] subject
  #   @return [::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.
  # @!attribute [rw] description
  #   @return [::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".
  class Violation
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end