# 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::V7_0_0_42
  module Models
    #
    # Information about a configuration parameter override.
    #
    class ConfigParameterOverride

      include MsRestAzure

      # @return [String] Name of the section for the parameter override.
      attr_accessor :section_name

      # @return [String] Name of the parameter that has been overridden.
      attr_accessor :parameter_name

      # @return [String] Value of the overridden parameter.
      attr_accessor :parameter_value

      # @return [Duration] The duration until config override is considered as
      # valid.
      attr_accessor :timeout

      # @return [Boolean] A value that indicates whether config override will
      # be removed on upgrade or will still be considered as valid.
      attr_accessor :persist_across_upgrade


      #
      # Mapper for ConfigParameterOverride class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ConfigParameterOverride',
          type: {
            name: 'Composite',
            class_name: 'ConfigParameterOverride',
            model_properties: {
              section_name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'SectionName',
                type: {
                  name: 'String'
                }
              },
              parameter_name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'ParameterName',
                type: {
                  name: 'String'
                }
              },
              parameter_value: {
                client_side_validation: true,
                required: true,
                serialized_name: 'ParameterValue',
                type: {
                  name: 'String'
                }
              },
              timeout: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Timeout',
                type: {
                  name: 'TimeSpan'
                }
              },
              persist_across_upgrade: {
                client_side_validation: true,
                required: false,
                serialized_name: 'PersistAcrossUpgrade',
                type: {
                  name: 'Boolean'
                }
              }
            }
          }
        }
      end
    end
  end
end
