# 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::V2018_06_01_preview
  module Models
    #
    # Data source object contains configuration to collect telemetry and one or
    # more sinks to send that telemetry data to
    #
    class DataSource

      include MsRestAzure

      # @return [Enum] Datasource kind. Possible values include:
      # 'PerformanceCounter', 'ETWProviders', 'WindowsEventLogs'
      attr_accessor :kind

      # @return [DataSourceConfiguration]
      attr_accessor :configuration

      # @return [Array<SinkConfiguration>]
      attr_accessor :sinks


      #
      # Mapper for DataSource class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'DataSource',
          type: {
            name: 'Composite',
            class_name: 'DataSource',
            model_properties: {
              kind: {
                client_side_validation: true,
                required: true,
                serialized_name: 'kind',
                type: {
                  name: 'String'
                }
              },
              configuration: {
                client_side_validation: true,
                required: true,
                serialized_name: 'configuration',
                type: {
                  name: 'Composite',
                  class_name: 'DataSourceConfiguration'
                }
              },
              sinks: {
                client_side_validation: true,
                required: true,
                serialized_name: 'sinks',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'SinkConfigurationElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'SinkConfiguration'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
