class Azure::ServiceFabric::V7_0_0_42::Models::NamedPartitionSchemeDescription

Describes the named partition scheme of the service.

Attributes

PartitionScheme[RW]
count[RW]

@return [Integer] The number of partitions.

names[RW]

@return [Array<String>] Array of size specified by the ‘Count’ parameter, for the names of the partitions.

Private Class Methods

mapper() click to toggle source

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

# File lib/7.0.0.42/generated/azure_service_fabric/models/named_partition_scheme_description.rb, line 34
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Named',
    type: {
      name: 'Composite',
      class_name: 'NamedPartitionSchemeDescription',
      model_properties: {
        PartitionScheme: {
          client_side_validation: true,
          required: true,
          serialized_name: 'PartitionScheme',
          type: {
            name: 'String'
          }
        },
        count: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Count',
          type: {
            name: 'Number'
          }
        },
        names: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Names',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/7.0.0.42/generated/azure_service_fabric/models/named_partition_scheme_description.rb, line 16
def initialize
  @PartitionScheme = "Named"
end