# 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
    #
    # Properties of a DiagnosticsSink.
    #
    class DiagnosticsSinkProperties

      include MsRestAzure

      @@discriminatorMap = Hash.new
      @@discriminatorMap["AzureInternalMonitoringPipeline"] = "AzureInternalMonitoringPipelineSinkDescription"

      def initialize
        @kind = "DiagnosticsSinkProperties"
      end

      attr_accessor :kind

      # @return [String] Name of the sink. This value is referenced by
      # DiagnosticsReferenceDescription
      attr_accessor :name

      # @return [String] A description of the sink.
      attr_accessor :description


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