Class: Azure::CDN::Mgmt::V2020_09_01::Models::MatchCondition

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb

Overview

Define match conditions

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#match_valueArray<String>

Returns List of possible match values.

Returns:

  • (Array<String>)

    List of possible match values.



36
37
38
# File 'lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb', line 36

def match_value
  @match_value
end

#match_variableMatchVariable

values include: ‘RemoteAddr’, ‘SocketAddr’, ‘RequestMethod’, ‘RequestHeader’, ‘RequestUri’, ‘QueryString’, ‘RequestBody’, ‘Cookies’, ‘PostArgs’

Returns:

  • (MatchVariable)

    Match variable to compare against. Possible



19
20
21
# File 'lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb', line 19

def match_variable
  @match_variable
end

#negate_conditionBoolean

negated.

Returns:

  • (Boolean)

    Describes if the result of this condition should be



33
34
35
# File 'lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb', line 33

def negate_condition
  @negate_condition
end

#operatorOperator

include: ‘Any’, ‘IPMatch’, ‘GeoMatch’, ‘Equal’, ‘Contains’, ‘LessThan’, ‘GreaterThan’, ‘LessThanOrEqual’, ‘GreaterThanOrEqual’, ‘BeginsWith’, ‘EndsWith’, ‘RegEx’

Returns:

  • (Operator)

    Describes operator to be matched. Possible values



29
30
31
# File 'lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb', line 29

def operator
  @operator
end

#selectorString

QueryString, Cookies, RequestHeader or PostArgs.

Returns:

  • (String)

    Selector can used to match a specific key for



23
24
25
# File 'lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb', line 23

def selector
  @selector
end

#transformsArray<TransformType>

Returns List of transforms.

Returns:



39
40
41
# File 'lib/2020-09-01/generated/azure_mgmt_cdn/models/match_condition.rb', line 39

def transforms
  @transforms
end

Class Method Details

.mapperObject

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



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# 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