class Azure::Cosmosdb::Mgmt::V2019_12_12::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
version[RW]
@return [Integer] Indicates the version of the partition key definition
Public Class Methods
mapper()
click to toggle source
Mapper for ContainerPartitionKey
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb, line 33 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' } }, version: { client_side_validation: true, required: false, serialized_name: 'version', constraints: { InclusiveMaximum: 2, InclusiveMinimum: 1 }, type: { name: 'Number' } } } } } end