Class: Azure::Network::Mgmt::V2018_12_01::Models::AzureFirewallNatRule

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-12-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule.rb

Overview

Properties of a NAT rule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#descriptionString

Returns Description of the rule.

Returns:

  • (String)

    Description of the rule.


19
20
21
# File 'lib/2018-12-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule.rb', line 19

def description
  @description
end

#destination_addressesArray<String>

Supports IP ranges, prefixes, and service tags.

Returns:

  • (Array<String>)

    List of destination IP addresses for this rule.


26
27
28
# File 'lib/2018-12-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule.rb', line 26

def destination_addresses
  @destination_addresses
end

#destination_portsArray<String>

Returns List of destination ports.

Returns:

  • (Array<String>)

    List of destination ports.


29
30
31
# File 'lib/2018-12-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule.rb', line 29

def destination_ports
  @destination_ports
end

#nameString

Returns Name of the NAT rule.

Returns:

  • (String)

    Name of the NAT rule.


16
17
18
# File 'lib/2018-12-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule.rb', line 16

def name
  @name
end

#protocolsArray<AzureFirewallNetworkRuleProtocol>

AzureFirewallNetworkRuleProtocols applicable to this NAT rule.

Returns:


33
34
35
# File 'lib/2018-12-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule.rb', line 33

def protocols
  @protocols
end

#source_addressesArray<String>

Returns List of source IP addresses for this rule.

Returns:

  • (Array<String>)

    List of source IP addresses for this rule.


22
23
24
# File 'lib/2018-12-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule.rb', line 22

def source_addresses
  @source_addresses
end

#translated_addressString

Returns The translated address for this NAT rule.

Returns:

  • (String)

    The translated address for this NAT rule.


36
37
38
# File 'lib/2018-12-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule.rb', line 36

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.


39
40
41
# File 'lib/2018-12-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule.rb', line 39

def translated_port
  @translated_port
end

Class Method Details

.mapperObject

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


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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# File 'lib/2018-12-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule.rb', line 46

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AzureFirewallNatRule',
    type: {
      name: 'Composite',
      class_name: 'AzureFirewallNatRule',
      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'
          }
        },
        source_addresses: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceAddresses',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        destination_addresses: {
          client_side_validation: true,
          required: false,
          serialized_name: 'destinationAddresses',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        destination_ports: {
          client_side_validation: true,
          required: false,
          serialized_name: 'destinationPorts',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        protocols: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protocols',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'AzureFirewallNetworkRuleProtocolElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        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'
          }
        }
      }
    }
  }
end