# 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::AlertsManagement::Mgmt::V2018_05_05_preview
  module Models
    #
    # List the alerts.
    #
    class SmartGroupsList

      include MsRestAzure

      # @return [String] URL to fetch the next set of alerts.
      attr_accessor :next_link

      # @return [Array<SmartGroup>] List of alerts
      attr_accessor :value


      #
      # Mapper for SmartGroupsList class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'smartGroupsList',
          type: {
            name: 'Composite',
            class_name: 'SmartGroupsList',
            model_properties: {
              next_link: {
                client_side_validation: true,
                required: false,
                serialized_name: 'nextLink',
                type: {
                  name: 'String'
                }
              },
              value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'value',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'SmartGroupElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'SmartGroup'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
