class Azure::ServiceFabric::V7_0_0_42::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

Kind[RW]
sequence_number[RW]

@return [String] The expected sequence number.

Private Class Methods

mapper() click to toggle source

Mapper for CheckSequencePropertyBatchOperation class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/7.0.0.42/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
new() click to toggle source
# File lib/7.0.0.42/generated/azure_service_fabric/models/check_sequence_property_batch_operation.rb, line 26
def initialize
  @Kind = "CheckSequence"
end