class Azure::ServiceFabric::V6_5_0_36::Models::PutPropertyBatchOperation

Puts the specified property under the specified name. Note that if one PropertyBatchOperation in a PropertyBatch fails, the entire batch fails and cannot be committed in a transactional manner.

Attributes

Kind[RW]
custom_type_id[RW]

@return [String] The property's custom type ID. Using this property, the user is able to tag the type of the value of the property.

value[RW]

@return [PropertyValue] Describes a Service Fabric property value.

Public Class Methods

mapper() click to toggle source

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

# File lib/6.5.0.36/generated/azure_service_fabric/models/put_property_batch_operation.rb, line 36
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Put',
    type: {
      name: 'Composite',
      class_name: 'PutPropertyBatchOperation',
      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'
          }
        },
        custom_type_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'CustomTypeId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/6.5.0.36/generated/azure_service_fabric/models/put_property_batch_operation.rb, line 18
def initialize
  @Kind = "Put"
end