Class: Azure::Network::Mgmt::V2019_11_01::Models::MatchCondition

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-01/generated/azure_mgmt_network/models/match_condition.rb

Overview

Define match conditions.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#match_valuesArray<String>

Returns Match value.

Returns:

  • (Array<String>)

    Match value.


28
29
30
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/match_condition.rb', line 28

def match_values
  @match_values
end

#match_variablesArray<MatchVariable>

Returns List of match variables.

Returns:


16
17
18
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/match_condition.rb', line 16

def match_variables
  @match_variables
end

#negation_conditonBoolean

Returns Whether this is negate condition or not.

Returns:

  • (Boolean)

    Whether this is negate condition or not.


25
26
27
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/match_condition.rb', line 25

def negation_conditon
  @negation_conditon
end

#operatorWebApplicationFirewallOperator

Possible values include: 'IPMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'Regex', 'GeoMatch'

Returns:


22
23
24
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/match_condition.rb', line 22

def operator
  @operator
end

#transformsArray<WebApplicationFirewallTransform>

Returns List of transforms.

Returns:


31
32
33
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/match_condition.rb', line 31

def transforms
  @transforms
end

Class Method Details

.mapperObject

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


38
39
40
41
42
43
44
45
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
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/match_condition.rb', line 38

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