# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ServiceFabric::Mgmt::V2016_09_01 module Models # # Delta health policy for the cluster # class ClusterUpgradeDeltaHealthPolicy include MsRestAzure # @return [Integer] Additional unhealthy nodes percentage attr_accessor :max_percent_delta_unhealthy_nodes # @return [Integer] Additional unhealthy nodes percentage per upgrade # domain attr_accessor :max_percent_upgrade_domain_delta_unhealthy_nodes # @return [Integer] Additional unhealthy applications percentage attr_accessor :max_percent_delta_unhealthy_applications # # Mapper for ClusterUpgradeDeltaHealthPolicy class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, serialized_name: 'ClusterUpgradeDeltaHealthPolicy', type: { name: 'Composite', class_name: 'ClusterUpgradeDeltaHealthPolicy', model_properties: { max_percent_delta_unhealthy_nodes: { required: true, serialized_name: 'maxPercentDeltaUnhealthyNodes', constraints: { InclusiveMaximum: 100, InclusiveMinimum: 0 }, type: { name: 'Number' } }, max_percent_upgrade_domain_delta_unhealthy_nodes: { required: true, serialized_name: 'maxPercentUpgradeDomainDeltaUnhealthyNodes', constraints: { InclusiveMaximum: 100, InclusiveMinimum: 0 }, type: { name: 'Number' } }, max_percent_delta_unhealthy_applications: { required: true, serialized_name: 'maxPercentDeltaUnhealthyApplications', constraints: { InclusiveMaximum: 100, InclusiveMinimum: 0 }, type: { name: 'Number' } } } } } end end end end