class Azure::CDN::Mgmt::V2020_09_01::Models::MatchCondition

Define match conditions

Attributes

match_value[RW]

@return [Array<String>] List of possible match values.

match_variable[RW]

@return [MatchVariable] Match variable to compare against. Possible values include: 'RemoteAddr', 'SocketAddr', 'RequestMethod', 'RequestHeader', 'RequestUri', 'QueryString', 'RequestBody', 'Cookies', 'PostArgs'

negate_condition[RW]

@return [Boolean] Describes if the result of this condition should be negated.

operator[RW]

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

selector[RW]

@return [String] Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.

transforms[RW]

@return [Array<TransformType>] 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/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb, line 46
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MatchCondition',
    type: {
      name: 'Composite',
      class_name: 'MatchCondition',
      model_properties: {
        match_variable: {
          client_side_validation: true,
          required: true,
          serialized_name: 'matchVariable',
          type: {
            name: 'String'
          }
        },
        selector: {
          client_side_validation: true,
          required: false,
          serialized_name: 'selector',
          type: {
            name: 'String'
          }
        },
        operator: {
          client_side_validation: true,
          required: true,
          serialized_name: 'operator',
          type: {
            name: 'String'
          }
        },
        negate_condition: {
          client_side_validation: true,
          required: false,
          serialized_name: 'negateCondition',
          type: {
            name: 'Boolean'
          }
        },
        match_value: {
          client_side_validation: true,
          required: true,
          serialized_name: 'matchValue',
          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: 'TransformTypeElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end