class Azure::Cosmosdb::Mgmt::V2015_04_08::Models::ContainerPartitionKey
The configuration of the partition key to be used for partitioning data into multiple partitions
Attributes
kind[RW]
@return [PartitionKind] Indicates the kind of algorithm used for partitioning. Possible values include: 'Hash', 'Range'. Default value: 'Hash' .
paths[RW]
@return [Array<String>] List of paths using which data within the container can be partitioned
Public Class Methods
mapper()
click to toggle source
Mapper for ContainerPartitionKey
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb, line 30 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ContainerPartitionKey', type: { name: 'Composite', class_name: 'ContainerPartitionKey', model_properties: { paths: { client_side_validation: true, required: false, serialized_name: 'paths', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, kind: { client_side_validation: true, required: false, serialized_name: 'kind', default_value: 'Hash', type: { name: 'String' } } } } } end