Source code for azure.mgmt.servicefabric.models.service_type_delta_health_policy_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 ServiceTypeDeltaHealthPolicy(Model): """Service health policy . :param max_percent_delta_unhealthy_services: Maximum percentage of unhealthy services in cluster :type max_percent_delta_unhealthy_services: int """ _validation = { 'max_percent_delta_unhealthy_services': {'maximum': 100, 'minimum': 0}, } _attribute_map = { 'max_percent_delta_unhealthy_services': {'key': 'maxPercentDeltaUnhealthyServices', 'type': 'int'}, } def __init__(self, *, max_percent_delta_unhealthy_services: int=None, **kwargs) -> None: super(ServiceTypeDeltaHealthPolicy, self).__init__(**kwargs) self.max_percent_delta_unhealthy_services = max_percent_delta_unhealthy_services