Source code for azure.servicefabric.models.uniform_int64_range_partition_scheme_description_py3

# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .partition_scheme_description_py3 import PartitionSchemeDescription


[docs]class UniformInt64RangePartitionSchemeDescription(PartitionSchemeDescription): """Describes a partitioning scheme where an integer range is allocated evenly across a number of partitions. All required parameters must be populated in order to send to Azure. :param partition_scheme: Required. Constant filled by server. :type partition_scheme: str :param count: Required. The number of partitions. :type count: int :param low_key: Required. String indicating the lower bound of the partition key range that should be split between the partitions. :type low_key: str :param high_key: Required. String indicating the upper bound of the partition key range that should be split between the partitions. :type high_key: str """ _validation = { 'partition_scheme': {'required': True}, 'count': {'required': True}, 'low_key': {'required': True}, 'high_key': {'required': True}, } _attribute_map = { 'partition_scheme': {'key': 'PartitionScheme', 'type': 'str'}, 'count': {'key': 'Count', 'type': 'int'}, 'low_key': {'key': 'LowKey', 'type': 'str'}, 'high_key': {'key': 'HighKey', 'type': 'str'}, } def __init__(self, *, count: int, low_key: str, high_key: str, **kwargs) -> None: super(UniformInt64RangePartitionSchemeDescription, self).__init__(**kwargs) self.count = count self.low_key = low_key self.high_key = high_key self.partition_scheme = 'UniformInt64Range'