Class: Azure::Network::Mgmt::V2019_11_01::Models::MatchVariable

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

Overview

Define match variables.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#selectorString

Returns The selector of match variable.

Returns:

  • (String)

    The selector of match variable.


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

def selector
  @selector
end

#variable_nameWebApplicationFirewallMatchVariable

values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', 'RequestUri', 'RequestHeaders', 'RequestBody', 'RequestCookies'

Returns:


19
20
21
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/match_variable.rb', line 19

def variable_name
  @variable_name
end

Class Method Details

.mapperObject

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


29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/match_variable.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MatchVariable',
    type: {
      name: 'Composite',
      class_name: 'MatchVariable',
      model_properties: {
        variable_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'variableName',
          type: {
            name: 'String'
          }
        },
        selector: {
          client_side_validation: true,
          required: false,
          serialized_name: 'selector',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end