# 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 NodeUpgradeProgressInfo(Model):
"""Information about the upgrading node and its status.
:param node_name: The name of a Service Fabric node.
:type node_name: str
:param upgrade_phase: The state of the upgrading node. Possible values
include: 'Invalid', 'PreUpgradeSafetyCheck', 'Upgrading',
'PostUpgradeSafetyCheck'
:type upgrade_phase: str or ~azure.servicefabric.models.NodeUpgradePhase
:param pending_safety_checks: List of pending safety checks
:type pending_safety_checks:
list[~azure.servicefabric.models.SafetyCheckWrapper]
"""
_attribute_map = {
'node_name': {'key': 'NodeName', 'type': 'str'},
'upgrade_phase': {'key': 'UpgradePhase', 'type': 'str'},
'pending_safety_checks': {'key': 'PendingSafetyChecks', 'type': '[SafetyCheckWrapper]'},
}
def __init__(self, *, node_name: str=None, upgrade_phase=None, pending_safety_checks=None, **kwargs) -> None:
super(NodeUpgradeProgressInfo, self).__init__(**kwargs)
self.node_name = node_name
self.upgrade_phase = upgrade_phase
self.pending_safety_checks = pending_safety_checks