# 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 ApplicationUpgradeUpdateDescription(Model):
"""Describes the parameters for updating an ongoing application upgrade.
All required parameters must be populated in order to send to Azure.
:param name: Required. The name of the application, including the
'fabric:' URI scheme.
:type name: str
:param upgrade_kind: Required. The kind of upgrade out of the following
possible values. Possible values include: 'Invalid', 'Rolling'. Default
value: "Rolling" .
:type upgrade_kind: str or ~azure.servicefabric.models.UpgradeKind
:param application_health_policy: Defines a health policy used to evaluate
the health of an application or one of its children entities.
:type application_health_policy:
~azure.servicefabric.models.ApplicationHealthPolicy
:param update_description: Describes the parameters for updating a rolling
upgrade of application or cluster.
:type update_description:
~azure.servicefabric.models.RollingUpgradeUpdateDescription
"""
_validation = {
'name': {'required': True},
'upgrade_kind': {'required': True},
}
_attribute_map = {
'name': {'key': 'Name', 'type': 'str'},
'upgrade_kind': {'key': 'UpgradeKind', 'type': 'str'},
'application_health_policy': {'key': 'ApplicationHealthPolicy', 'type': 'ApplicationHealthPolicy'},
'update_description': {'key': 'UpdateDescription', 'type': 'RollingUpgradeUpdateDescription'},
}
def __init__(self, *, name: str, upgrade_kind="Rolling", application_health_policy=None, update_description=None, **kwargs) -> None:
super(ApplicationUpgradeUpdateDescription, self).__init__(**kwargs)
self.name = name
self.upgrade_kind = upgrade_kind
self.application_health_policy = application_health_policy
self.update_description = update_description