Class: Azure::Network::Mgmt::V2019_11_01::Models::FirewallPolicyRuleCondition

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-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.


19
20
21
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb', line 19

def initialize
  @ruleConditionType = "FirewallPolicyRuleCondition"
end

Instance Attribute Details

#descriptionString

Returns Description of the rule condition.

Returns:

  • (String)

    Description of the rule condition.


29
30
31
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb', line 29

def description
  @description
end

#nameString

Returns Name of the rule condition.

Returns:

  • (String)

    Name of the rule condition.


26
27
28
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb', line 26

def name
  @name
end

#ruleConditionTypeObject

Returns the value of attribute ruleConditionType


23
24
25
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb', line 23

def ruleConditionType
  @ruleConditionType
end

Class Method Details

.mapperObject

Mapper for FirewallPolicyRuleCondition class as Ruby Hash. This will be used for serialization/deserialization.


36
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
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb', line 36

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