# 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::V6_4_0_36
  module Models
    #
    # Describes the resource that is used for triggering auto scaling.
    #
    class AutoScalingResourceMetric < AutoScalingMetric

      include MsRestAzure


      def initialize
        @kind = "Resource"
      end

      attr_accessor :kind

      # @return [AutoScalingResourceMetricName] Name of the resource. Possible
      # values include: 'cpu', 'memoryInGB'
      attr_accessor :name


      #
      # Mapper for AutoScalingResourceMetric class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Resource',
          type: {
            name: 'Composite',
            class_name: 'AutoScalingResourceMetric',
            model_properties: {
              kind: {
                client_side_validation: true,
                required: true,
                serialized_name: 'kind',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
