Class: Azure::Network::Mgmt::V2019_11_01::Models::WebApplicationFirewallCustomRule

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

Overview

Defines contents of a web application rule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actionWebApplicationFirewallAction

include: 'Allow', 'Block', 'Log'

Returns:


36
37
38
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/web_application_firewall_custom_rule.rb', line 36

def action
  @action
end

#etagString

resource is updated.

Returns:

  • (String)

    A unique read-only string that changes whenever the


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

def etag
  @etag
end

#match_conditionsArray<MatchCondition>

Returns List of match conditions.

Returns:


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

def match_conditions
  @match_conditions
end

#nameString

policy. This name can be used to access the resource.

Returns:

  • (String)

    The name of the resource that is unique within a


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

def name
  @name
end

#priorityInteger

be evaluated before rules with a higher value.

Returns:

  • (Integer)

    Priority of the rule. Rules with a lower value will


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

def priority
  @priority
end

#rule_typeWebApplicationFirewallRuleType

include: 'MatchRule', 'Invalid'

Returns:


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

def rule_type
  @rule_type
end

Class Method Details

.mapperObject

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


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
116
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/web_application_firewall_custom_rule.rb', line 43

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'WebApplicationFirewallCustomRule',
    type: {
      name: 'Composite',
      class_name: 'WebApplicationFirewallCustomRule',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          constraints: {
            MaxLength: 128
          },
          type: {
            name: 'String'
          }
        },
        etag: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        },
        priority: {
          client_side_validation: true,
          required: true,
          serialized_name: 'priority',
          type: {
            name: 'Number'
          }
        },
        rule_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'ruleType',
          type: {
            name: 'String'
          }
        },
        match_conditions: {
          client_side_validation: true,
          required: true,
          serialized_name: 'matchConditions',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'MatchConditionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'MatchCondition'
                }
            }
          }
        },
        action: {
          client_side_validation: true,
          required: true,
          serialized_name: 'action',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end