class Azure::Network::Mgmt::V2019_06_01::Models::WebApplicationFirewallCustomRule
Defines contents of a web application rule.
Attributes
@return [WebApplicationFirewallAction] Type of Actions. Possible values include: 'Allow', 'Block', 'Log'
@return [String] Gets a unique read-only string that changes whenever the resource is updated.
@return [Array<MatchCondition>] List of match conditions.
@return [String] Gets name of the resource that is unique within a policy. This name can be used to access the resource.
@return [Integer] Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
@return [WebApplicationFirewallRuleType] Describes type of rule. Possible values include: 'MatchRule', 'Invalid'
Private Class Methods
Mapper for WebApplicationFirewallCustomRule class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2019-06-01/generated/azure_mgmt_network/models/web_application_firewall_custom_rule.rb, line 42 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