Source code for azure.servicefabric.models.partition_data_loss_progress_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 msrest.serialization import Model


[docs]class PartitionDataLossProgress(Model): """Information about a partition data loss user-induced operation. :param state: The state of the operation. Possible values include: 'Invalid', 'Running', 'RollingBack', 'Completed', 'Faulted', 'Cancelled', 'ForceCancelled' :type state: str or ~azure.servicefabric.models.OperationState :param invoke_data_loss_result: Represents information about an operation in a terminal state (Completed or Faulted). :type invoke_data_loss_result: ~azure.servicefabric.models.InvokeDataLossResult """ _attribute_map = { 'state': {'key': 'State', 'type': 'str'}, 'invoke_data_loss_result': {'key': 'InvokeDataLossResult', 'type': 'InvokeDataLossResult'}, } def __init__(self, *, state=None, invoke_data_loss_result=None, **kwargs) -> None: super(PartitionDataLossProgress, self).__init__(**kwargs) self.state = state self.invoke_data_loss_result = invoke_data_loss_result