Class: Azure::ServiceFabric::V6_5_0_36::Models::CheckValuePropertyBatchOperation

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

Overview

Represents a PropertyBatchOperation that compares the value of the property with the expected value. The CheckValuePropertyBatchOperation 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

#initializeCheckValuePropertyBatchOperation

Returns a new instance of CheckValuePropertyBatchOperation.



21
22
23
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/check_value_property_batch_operation.rb', line 21

def initialize
  @Kind = "CheckValue"
end

Instance Attribute Details

#KindObject

Returns the value of attribute Kind.



25
26
27
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/check_value_property_batch_operation.rb', line 25

def Kind
  @Kind
end

#valuePropertyValue

Returns The expected property value.

Returns:



28
29
30
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/check_value_property_batch_operation.rb', line 28

def value
  @value
end

Class Method Details

.mapperObject

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



35
36
37
38
39
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
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/check_value_property_batch_operation.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CheckValue',
    type: {
      name: 'Composite',
      class_name: 'CheckValuePropertyBatchOperation',
      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'
          }
        },
        value: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Value',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'Kind',
            uber_parent: 'PropertyValue',
            class_name: 'PropertyValue'
          }
        }
      }
    }
  }
end