class Azure::Network::Mgmt::V2019_06_01::Models::MatchCondition

Define match conditions.

Attributes

match_values[RW]

@return [Array<String>] Match value.

match_variables[RW]

@return [Array<MatchVariable>] List of match variables.

negation_conditon[RW]

@return [Boolean] Describes if this is negate condition or not.

operator[RW]

@return [WebApplicationFirewallOperator] Describes operator to be matched. Possible values include: 'IPMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'Regex'

transforms[RW]

@return [Array<WebApplicationFirewallTransform>] List of transforms.

Private Class Methods

mapper() click to toggle source

Mapper for MatchCondition class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2019-06-01/generated/azure_mgmt_network/models/match_condition.rb, line 37
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MatchCondition',
    type: {
      name: 'Composite',
      class_name: 'MatchCondition',
      model_properties: {
        match_variables: {
          client_side_validation: true,
          required: true,
          serialized_name: 'matchVariables',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'MatchVariableElementType',
                type: {
                  name: 'Composite',
                  class_name: 'MatchVariable'
                }
            }
          }
        },
        operator: {
          client_side_validation: true,
          required: true,
          serialized_name: 'operator',
          type: {
            name: 'String'
          }
        },
        negation_conditon: {
          client_side_validation: true,
          required: false,
          serialized_name: 'negationConditon',
          type: {
            name: 'Boolean'
          }
        },
        match_values: {
          client_side_validation: true,
          required: true,
          serialized_name: 'matchValues',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        transforms: {
          client_side_validation: true,
          required: false,
          serialized_name: 'transforms',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'WebApplicationFirewallTransformElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end