class Azure::Network::Mgmt::V2020_04_01::Models::WebApplicationFirewallCustomRule
Defines contents of a web application rule.
Attributes
action[RW]
@return [WebApplicationFirewallAction] Type of Actions. Possible values include: 'Allow', 'Block', 'Log'
etag[RW]
@return [String] A unique read-only string that changes whenever the resource is updated.
match_conditions[RW]
@return [Array<MatchCondition>] List of match conditions.
name[RW]
@return [String] The name of the resource that is unique within a policy. This name can be used to access the resource.
priority[RW]
@return [Integer] Priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
rule_type[RW]
@return [WebApplicationFirewallRuleType] The rule type. Possible values include: 'MatchRule', 'Invalid'
Public Class Methods
mapper()
click to toggle source
Mapper for WebApplicationFirewallCustomRule
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2020-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