Class: Azure::ServiceFabric::V6_3_0_9::Models::CheckSequencePropertyBatchOperation
- Inherits:
-
PropertyBatchOperation
- Object
- PropertyBatchOperation
- Azure::ServiceFabric::V6_3_0_9::Models::CheckSequencePropertyBatchOperation
- 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
-
#Kind ⇒ Object
Returns the value of attribute Kind.
-
#sequence_number ⇒ String
The expected sequence number.
Attributes inherited from PropertyBatchOperation
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for CheckSequencePropertyBatchOperation class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ CheckSequencePropertyBatchOperation
constructor
A new instance of CheckSequencePropertyBatchOperation.
Constructor Details
#initialize ⇒ CheckSequencePropertyBatchOperation
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
#Kind ⇒ Object
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_number ⇒ String
Returns 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
.mapper ⇒ Object
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 |