Source code for azure.servicefabric.models.named_partition_information_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_information_py3 import PartitionInformation


[docs]class NamedPartitionInformation(PartitionInformation): """Describes the partition information for the name as a string that is based on partition schemes. All required parameters must be populated in order to send to Azure. :param id: An internal ID used by Service Fabric to uniquely identify a partition. This is a randomly generated GUID when the service was created. The partition ID is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the IDs of its partitions would be different. :type id: str :param service_partition_kind: Required. Constant filled by server. :type service_partition_kind: str :param name: Name of the partition. :type name: str """ _validation = { 'service_partition_kind': {'required': True}, } _attribute_map = { 'id': {'key': 'Id', 'type': 'str'}, 'service_partition_kind': {'key': 'ServicePartitionKind', 'type': 'str'}, 'name': {'key': 'Name', 'type': 'str'}, } def __init__(self, *, id: str=None, name: str=None, **kwargs) -> None: super(NamedPartitionInformation, self).__init__(id=id, **kwargs) self.name = name self.service_partition_kind = 'Named'