# 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::Monitor::Mgmt::V2015_04_01
  module Models
    #
    # Specifies an auto scale rule metric dimension.
    #
    class ScaleRuleMetricDimension

      include MsRestAzure

      # @return [String] Name of the dimension.
      attr_accessor :dimension_name

      # @return [ScaleRuleMetricDimensionOperationType] the dimension operator.
      # Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to
      # any of the values. 'NotEquals' being not equal to all of the values.
      # Possible values include: 'Equals', 'NotEquals'
      attr_accessor :operator

      # @return [Array<String>] list of dimension values. For example:
      # ["App1","App2"].
      attr_accessor :values


      #
      # Mapper for ScaleRuleMetricDimension class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ScaleRuleMetricDimension',
          type: {
            name: 'Composite',
            class_name: 'ScaleRuleMetricDimension',
            model_properties: {
              dimension_name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'DimensionName',
                type: {
                  name: 'String'
                }
              },
              operator: {
                client_side_validation: true,
                required: true,
                serialized_name: 'Operator',
                type: {
                  name: 'String'
                }
              },
              values: {
                client_side_validation: true,
                required: true,
                serialized_name: 'Values',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
