Class: Azure::Network::Mgmt::V2020_03_01::Models::FirewallPolicyRuleCondition

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-03-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb

Overview

Properties of a rule.

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFirewallPolicyRuleCondition

Returns a new instance of FirewallPolicyRuleCondition.


20
21
22
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb', line 20

def initialize
  @ruleConditionType = "FirewallPolicyRuleCondition"
end

Instance Attribute Details

#descriptionString

Returns Description of the rule condition.

Returns:

  • (String)

    Description of the rule condition.


30
31
32
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb', line 30

def description
  @description
end

#nameString

Returns Name of the rule condition.

Returns:

  • (String)

    Name of the rule condition.


27
28
29
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb', line 27

def name
  @name
end

#ruleConditionTypeObject

Returns the value of attribute ruleConditionType


24
25
26
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb', line 24

def ruleConditionType
  @ruleConditionType
end

Class Method Details

.mapperObject

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-03-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