# 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::V2017_07_01_preview
  module Models
    #
    # Describes the policy for a monitored application upgrade.
    #
    class ApplicationUpgradePolicy

      include MsRestAzure

      # @return [Integer]
      attr_accessor :upgrade_replica_set_check_timeout

      # @return [Boolean]
      attr_accessor :force_restart

      # @return [RollingUpgradeMonitoringPolicy]
      attr_accessor :rolling_upgrade_monitoring_policy

      # @return [ApplicationHealthPolicy]
      attr_accessor :application_health_policy


      #
      # Mapper for ApplicationUpgradePolicy class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ApplicationUpgradePolicy',
          type: {
            name: 'Composite',
            class_name: 'ApplicationUpgradePolicy',
            model_properties: {
              upgrade_replica_set_check_timeout: {
                client_side_validation: true,
                required: false,
                serialized_name: 'upgradeReplicaSetCheckTimeout',
                type: {
                  name: 'Number'
                }
              },
              force_restart: {
                client_side_validation: true,
                required: false,
                serialized_name: 'forceRestart',
                type: {
                  name: 'Boolean'
                }
              },
              rolling_upgrade_monitoring_policy: {
                client_side_validation: true,
                required: false,
                serialized_name: 'rollingUpgradeMonitoringPolicy',
                type: {
                  name: 'Composite',
                  class_name: 'RollingUpgradeMonitoringPolicy'
                }
              },
              application_health_policy: {
                client_side_validation: true,
                required: false,
                serialized_name: 'applicationHealthPolicy',
                type: {
                  name: 'Composite',
                  class_name: 'ApplicationHealthPolicy'
                }
              }
            }
          }
        }
      end
    end
  end
end
