Source code for azure.servicefabric.models.partition_backup_entity_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 .backup_entity_py3 import BackupEntity


[docs]class PartitionBackupEntity(BackupEntity): """Identifies the Service Fabric stateful partition which is being backed up. All required parameters must be populated in order to send to Azure. :param entity_kind: Required. Constant filled by server. :type entity_kind: str :param service_name: The full name of the service with 'fabric:' URI scheme. :type service_name: str :param partition_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 partition_id: str """ _validation = { 'entity_kind': {'required': True}, } _attribute_map = { 'entity_kind': {'key': 'EntityKind', 'type': 'str'}, 'service_name': {'key': 'ServiceName', 'type': 'str'}, 'partition_id': {'key': 'PartitionId', 'type': 'str'}, } def __init__(self, *, service_name: str=None, partition_id: str=None, **kwargs) -> None: super(PartitionBackupEntity, self).__init__(**kwargs) self.service_name = service_name self.partition_id = partition_id self.entity_kind = 'Partition'