Class: Azure::Network::Mgmt::V2019_11_01::Models::FirewallPolicyNatRule

Inherits:
FirewallPolicyRule
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-01/generated/azure_mgmt_network/models/firewall_policy_nat_rule.rb

Overview

Firewall Policy NAT Rule.

Instance Attribute Summary collapse

Attributes inherited from FirewallPolicyRule

#name, #priority

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFirewallPolicyNatRule

Returns a new instance of FirewallPolicyNatRule.


16
17
18
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/firewall_policy_nat_rule.rb', line 16

def initialize
  @ruleType = "FirewallPolicyNatRule"
end

Instance Attribute Details

#actionFirewallPolicyNatRuleAction

Returns The action type of a Nat rule.

Returns:


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

def action
  @action
end

#rule_conditionFirewallPolicyRuleCondition

traffic.

Returns:


33
34
35
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/firewall_policy_nat_rule.rb', line 33

def rule_condition
  @rule_condition
end

#ruleTypeObject

Returns the value of attribute ruleType


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

def ruleType
  @ruleType
end

#translated_addressString

Returns The translated address for this NAT rule.

Returns:

  • (String)

    The translated address for this NAT rule.


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

def translated_address
  @translated_address
end

#translated_portString

Returns The translated port for this NAT rule.

Returns:

  • (String)

    The translated port for this NAT rule.


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

def translated_port
  @translated_port
end

Class Method Details

.mapperObject

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


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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/firewall_policy_nat_rule.rb', line 40

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'FirewallPolicyNatRule',
    type: {
      name: 'Composite',
      class_name: 'FirewallPolicyNatRule',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        priority: {
          client_side_validation: true,
          required: false,
          serialized_name: 'priority',
          constraints: {
            InclusiveMaximum: 65000,
            InclusiveMinimum: 100
          },
          type: {
            name: 'Number'
          }
        },
        ruleType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'ruleType',
          type: {
            name: 'String'
          }
        },
        action: {
          client_side_validation: true,
          required: false,
          serialized_name: 'action',
          type: {
            name: 'Composite',
            class_name: 'FirewallPolicyNatRuleAction'
          }
        },
        translated_address: {
          client_side_validation: true,
          required: false,
          serialized_name: 'translatedAddress',
          type: {
            name: 'String'
          }
        },
        translated_port: {
          client_side_validation: true,
          required: false,
          serialized_name: 'translatedPort',
          type: {
            name: 'String'
          }
        },
        rule_condition: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ruleCondition',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'ruleConditionType',
            uber_parent: 'FirewallPolicyRuleCondition',
            class_name: 'FirewallPolicyRuleCondition'
          }
        }
      }
    }
  }
end