# 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::DeploymentManager::Mgmt::V2019_11_01_preview
  module Models
    #
    # The regular expressions to match the response content with.
    #
    class RestResponseRegex

      include MsRestAzure

      # @return [Array<String>] The list of regular expressions.
      attr_accessor :matches

      # @return [RestMatchQuantifier] Indicates whether any or all of the
      # expressions should match with the response content. Possible values
      # include: 'All', 'Any'
      attr_accessor :match_quantifier


      #
      # Mapper for RestResponseRegex class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'RestResponse_regex',
          type: {
            name: 'Composite',
            class_name: 'RestResponseRegex',
            model_properties: {
              matches: {
                client_side_validation: true,
                required: false,
                serialized_name: 'matches',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              match_quantifier: {
                client_side_validation: true,
                required: false,
                serialized_name: 'matchQuantifier',
                type: {
                  name: 'Enum',
                  module: 'RestMatchQuantifier'
                }
              }
            }
          }
        }
      end
    end
  end
end
