Class: Azure::Network::Mgmt::V2019_04_01::Models::WebApplicationFirewallCustomRule
- Inherits:
-
Object
- Object
- Azure::Network::Mgmt::V2019_04_01::Models::WebApplicationFirewallCustomRule
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_custom_rule.rb
Overview
Defines contents of a web application rule.
Instance Attribute Summary collapse
-
#action ⇒ WebApplicationFirewallAction
include: ‘Allow’, ‘Block’, ‘Log’.
-
#etag ⇒ String
the resource is updated.
-
#match_conditions ⇒ Array<MatchCondition>
List of match conditions.
-
#name ⇒ String
policy.
-
#priority ⇒ Integer
value will be evaluated before rules with a higher value.
-
#rule_type ⇒ WebApplicationFirewallRuleType
Possible values include: ‘MatchRule’, ‘Invalid’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for WebApplicationFirewallCustomRule class as Ruby Hash.
Instance Attribute Details
#action ⇒ WebApplicationFirewallAction
include: ‘Allow’, ‘Block’, ‘Log’
36 37 38 |
# File 'lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_custom_rule.rb', line 36 def action @action end |
#etag ⇒ String
the resource is updated.
21 22 23 |
# File 'lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_custom_rule.rb', line 21 def etag @etag end |
#match_conditions ⇒ Array<MatchCondition>
Returns List of match conditions.
32 33 34 |
# File 'lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_custom_rule.rb', line 32 def match_conditions @match_conditions end |
#name ⇒ String
policy. This name can be used to access the resource.
17 18 19 |
# File 'lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_custom_rule.rb', line 17 def name @name end |
#priority ⇒ Integer
value will be evaluated before rules with a higher value.
25 26 27 |
# File 'lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_custom_rule.rb', line 25 def priority @priority end |
#rule_type ⇒ WebApplicationFirewallRuleType
Possible values include: ‘MatchRule’, ‘Invalid’
29 30 31 |
# File 'lib/2019-04-01/generated/azure_mgmt_network/models/web_application_firewall_custom_rule.rb', line 29 def rule_type @rule_type end |
Class Method Details
.mapper ⇒ Object
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-04-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 |