Class: Azure::Network::Mgmt::V2020_04_01::Models::FirewallPolicyRuleCondition
- Inherits:
-
Object
- Object
- Azure::Network::Mgmt::V2020_04_01::Models::FirewallPolicyRuleCondition
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb
Overview
Properties of a rule.
Direct Known Subclasses
ApplicationRuleCondition, NatRuleCondition, NetworkRuleCondition
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#description ⇒ String
Description of the rule condition.
-
#name ⇒ String
Name of the rule condition.
-
#ruleConditionType ⇒ Object
Returns the value of attribute ruleConditionType.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for FirewallPolicyRuleCondition class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ FirewallPolicyRuleCondition
constructor
A new instance of FirewallPolicyRuleCondition.
Constructor Details
#initialize ⇒ FirewallPolicyRuleCondition
Returns a new instance of FirewallPolicyRuleCondition.
20 21 22 |
# File 'lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb', line 20 def initialize @ruleConditionType = "FirewallPolicyRuleCondition" end |
Instance Attribute Details
#description ⇒ String
Returns Description of the rule condition.
30 31 32 |
# File 'lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb', line 30 def description @description end |
#name ⇒ String
Returns Name of the rule condition.
27 28 29 |
# File 'lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb', line 27 def name @name end |
#ruleConditionType ⇒ Object
Returns the value of attribute ruleConditionType.
24 25 26 |
# File 'lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb', line 24 def ruleConditionType @ruleConditionType end |
Class Method Details
.mapper ⇒ Object
Mapper for FirewallPolicyRuleCondition class as Ruby Hash. This will be used for serialization/deserialization.
37 38 39 40 41 42 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 |
# File 'lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb', line 37 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'FirewallPolicyRuleCondition', type: { name: 'Composite', polymorphic_discriminator: 'ruleConditionType', uber_parent: 'FirewallPolicyRuleCondition', class_name: 'FirewallPolicyRuleCondition', model_properties: { name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } }, description: { client_side_validation: true, required: false, serialized_name: 'description', type: { name: 'String' } } } } } end |