Class: Azure::ServiceFabric::V6_3_0_9::Models::CheckSequencePropertyBatchOperation

Inherits:
PropertyBatchOperation show all
Includes:
MsRestAzure
Defined in:
lib/6.3.0.9/generated/azure_service_fabric/models/check_sequence_property_batch_operation.rb

Overview

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.

Instance Attribute Summary collapse

Attributes inherited from PropertyBatchOperation

#property_name

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCheckSequencePropertyBatchOperation

Returns a new instance of CheckSequencePropertyBatchOperation.



26
27
28
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/check_sequence_property_batch_operation.rb', line 26

def initialize
  @Kind = "CheckSequence"
end

Instance Attribute Details

#KindObject

Returns the value of attribute Kind.



30
31
32
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/check_sequence_property_batch_operation.rb', line 30

def Kind
  @Kind
end

#sequence_numberString

Returns The expected sequence number.

Returns:

  • (String)

    The expected sequence number.



33
34
35
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/check_sequence_property_batch_operation.rb', line 33

def sequence_number
  @sequence_number
end

Class Method Details

.mapperObject

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



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/6.3.0.9/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