# 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::Synapse::Mgmt::V2019_06_01_preview
  module Models
    #
    # What is this?
    #
    class OperationMetaMetricSpecification

      include MsRestAzure

      # @return [String] The source MDM namespace
      attr_accessor :source_mdm_namespace

      # @return [String] Metric display name
      attr_accessor :display_name

      # @return [String] Metric unique name
      attr_accessor :name

      # @return [String] Metric aggregation type
      attr_accessor :aggregation_type

      # @return [String] Metric description
      attr_accessor :display_description

      # @return [String] The source MDM account
      attr_accessor :source_mdm_account

      # @return [Boolean] Whether the regional MDM account is enabled
      attr_accessor :enable_regional_mdm_account

      # @return [String] Metric units
      attr_accessor :unit

      # @return [Array<OperationMetaMetricDimensionSpecification>] Metric
      # dimensions
      attr_accessor :dimensions

      # @return [Boolean] Whether the metric supports instance-level
      # aggregation
      attr_accessor :supports_instance_level_aggregation

      # @return [String] Metric filter
      attr_accessor :metric_filter_pattern


      #
      # Mapper for OperationMetaMetricSpecification class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'OperationMetaMetricSpecification',
          type: {
            name: 'Composite',
            class_name: 'OperationMetaMetricSpecification',
            model_properties: {
              source_mdm_namespace: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sourceMdmNamespace',
                type: {
                  name: 'String'
                }
              },
              display_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'displayName',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              aggregation_type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'aggregationType',
                type: {
                  name: 'String'
                }
              },
              display_description: {
                client_side_validation: true,
                required: false,
                serialized_name: 'displayDescription',
                type: {
                  name: 'String'
                }
              },
              source_mdm_account: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sourceMdmAccount',
                type: {
                  name: 'String'
                }
              },
              enable_regional_mdm_account: {
                client_side_validation: true,
                required: false,
                serialized_name: 'enableRegionalMdmAccount',
                type: {
                  name: 'Boolean'
                }
              },
              unit: {
                client_side_validation: true,
                required: false,
                serialized_name: 'unit',
                type: {
                  name: 'String'
                }
              },
              dimensions: {
                client_side_validation: true,
                required: false,
                serialized_name: 'dimensions',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'OperationMetaMetricDimensionSpecificationElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'OperationMetaMetricDimensionSpecification'
                      }
                  }
                }
              },
              supports_instance_level_aggregation: {
                client_side_validation: true,
                required: false,
                serialized_name: 'supportsInstanceLevelAggregation',
                type: {
                  name: 'Boolean'
                }
              },
              metric_filter_pattern: {
                client_side_validation: true,
                required: false,
                serialized_name: 'metricFilterPattern',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
