# 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::V2019_05_05_preview
  module Models
    #
    # Target scope for a given action rule. By default scope will be the
    # subscription. User can also provide list of resource groups or list of
    # resources from the scope subscription as well.
    #
    class Scope

      include MsRestAzure

      # @return [ScopeType] type of target scope. Possible values include:
      # 'ResourceGroup', 'Resource'
      attr_accessor :scope_type

      # @return [Array<String>] list of ARM IDs of the given scope type which
      # will be the target of the given action rule.
      attr_accessor :values


      #
      # Mapper for Scope class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Scope',
          type: {
            name: 'Composite',
            class_name: 'Scope',
            model_properties: {
              scope_type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'scopeType',
                type: {
                  name: 'String'
                }
              },
              values: {
                client_side_validation: true,
                required: false,
                serialized_name: 'values',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
