# 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 msrest.serialization import Model


class PartitionInformation(Model):
    """Information about the partition identity, partitioning scheme and keys
    supported by it.

    :param id:
    :type id: str
    :param ServicePartitionKind: Polymorphic Discriminator
    :type ServicePartitionKind: str
    """ 

    _validation = {
        'ServicePartitionKind': {'required': True},
    }

    _attribute_map = {
        'id': {'key': 'Id', 'type': 'str'},
        'ServicePartitionKind': {'key': 'ServicePartitionKind', 'type': 'str'},
    }

    _subtype_map = {
        'ServicePartitionKind': {'Int64Range': 'Int64RangePartitionInformation', 'Named': 'NamedPartitionInformation', 'Singleton': 'SingletonPartitionInformation'}
    }

    def __init__(self, id=None):
        self.id = id
        self.ServicePartitionKind = None
