# 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_3_0_9
  module Models
    #
    # Describes the diagnostics options available
    #
    class DiagnosticsDescription

      include MsRestAzure

      # @return [Array<DiagnosticsSinkProperties>] List of supported sinks that
      # can be referenced.
      attr_accessor :sinks

      # @return [Boolean] Status of whether or not sinks are enabled.
      attr_accessor :enabled

      # @return [Array<String>] The sinks to be used if diagnostics is enabled.
      # Sink choices can be overridden at the service and code package level.
      attr_accessor :default_sink_refs


      #
      # Mapper for DiagnosticsDescription class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'DiagnosticsDescription',
          type: {
            name: 'Composite',
            class_name: 'DiagnosticsDescription',
            model_properties: {
              sinks: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sinks',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'DiagnosticsSinkPropertiesElementType',
                      type: {
                        name: 'Composite',
                        polymorphic_discriminator: 'kind',
                        uber_parent: 'DiagnosticsSinkProperties',
                        class_name: 'DiagnosticsSinkProperties'
                      }
                  }
                }
              },
              enabled: {
                client_side_validation: true,
                required: false,
                serialized_name: 'enabled',
                type: {
                  name: 'Boolean'
                }
              },
              default_sink_refs: {
                client_side_validation: true,
                required: false,
                serialized_name: 'defaultSinkRefs',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
