class Azure::ServiceFabric::V6_5_0_36::Models::CheckSequencePropertyBatchOperation
Compares the Sequence Number of a property with the SequenceNumber argument. A property's sequence number can be thought of as that property's version. Every time the property is modified, its sequence number is increased. The sequence number can be found in a property's metadata. The comparison fails if the sequence numbers are not equal. CheckSequencePropertyBatchOperation
is generally used as a precondition for the write operations in the batch. Note that if one PropertyBatchOperation
in a PropertyBatch fails, the entire batch fails and cannot be committed in a transactional manner.
Attributes
@return [String] The expected sequence number.
Public Class Methods
Mapper for CheckSequencePropertyBatchOperation
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/6.5.0.36/generated/azure_service_fabric/models/check_sequence_property_batch_operation.rb, line 40 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'CheckSequence', type: { name: 'Composite', class_name: 'CheckSequencePropertyBatchOperation', model_properties: { property_name: { client_side_validation: true, required: true, serialized_name: 'PropertyName', type: { name: 'String' } }, Kind: { client_side_validation: true, required: true, serialized_name: 'Kind', type: { name: 'String' } }, sequence_number: { client_side_validation: true, required: true, serialized_name: 'SequenceNumber', type: { name: 'String' } } } } } end
# File lib/6.5.0.36/generated/azure_service_fabric/models/check_sequence_property_batch_operation.rb, line 26 def initialize @Kind = "CheckSequence" end