class Azure::CDN::Mgmt::V2020_09_01::Models::MatchCondition
Define match conditions
Attributes
@return [Array<String>] List of possible match values.
@return [MatchVariable] Match variable to compare against. Possible values include: 'RemoteAddr', 'SocketAddr', 'RequestMethod', 'RequestHeader', 'RequestUri', 'QueryString', 'RequestBody', 'Cookies', 'PostArgs'
@return [Boolean] Describes if the result of this condition should be negated.
@return [Operator] Describes operator to be matched. Possible values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'RegEx'
@return [String] Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
@return [Array<TransformType>] List of transforms.
Private Class Methods
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