# 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::Network::Mgmt::V2019_11_01
  module Models
    #
    # Allow to exclude some variable satisfy the condition for the WAF check.
    #
    class OwaspCrsExclusionEntry

      include MsRestAzure

      # @return [OwaspCrsExclusionEntryMatchVariable] The variable to be
      # excluded. Possible values include: 'RequestHeaderNames',
      # 'RequestCookieNames', 'RequestArgNames'
      attr_accessor :match_variable

      # @return [OwaspCrsExclusionEntrySelectorMatchOperator] When
      # matchVariable is a collection, operate on the selector to specify which
      # elements in the collection this exclusion applies to. Possible values
      # include: 'Equals', 'Contains', 'StartsWith', 'EndsWith', 'EqualsAny'
      attr_accessor :selector_match_operator

      # @return [String] When matchVariable is a collection, operator used to
      # specify which elements in the collection this exclusion applies to.
      attr_accessor :selector


      #
      # Mapper for OwaspCrsExclusionEntry class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'OwaspCrsExclusionEntry',
          type: {
            name: 'Composite',
            class_name: 'OwaspCrsExclusionEntry',
            model_properties: {
              match_variable: {
                client_side_validation: true,
                required: true,
                serialized_name: 'matchVariable',
                type: {
                  name: 'String'
                }
              },
              selector_match_operator: {
                client_side_validation: true,
                required: true,
                serialized_name: 'selectorMatchOperator',
                type: {
                  name: 'String'
                }
              },
              selector: {
                client_side_validation: true,
                required: true,
                serialized_name: 'selector',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
