Reference documentation and code samples for the Migrate for Compute Engine V1 API class Google::Rpc::PreconditionFailure.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#violations
def violations() -> ::Array<::Google::Rpc::PreconditionFailure::Violation>
Returns
- (::Array<::Google::Rpc::PreconditionFailure::Violation>) — Describes all precondition violations.
#violations=
def violations=(value) -> ::Array<::Google::Rpc::PreconditionFailure::Violation>
Parameter
- value (::Array<::Google::Rpc::PreconditionFailure::Violation>) — Describes all precondition violations.
Returns
- (::Array<::Google::Rpc::PreconditionFailure::Violation>) — Describes all precondition violations.