Class: Azure::Network::Mgmt::V2019_11_01::Models::InboundNatRule

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

Overview

Inbound NAT rule of the load balancer.

Instance Attribute Summary collapse

Attributes inherited from SubResource

#id

Class Method Summary collapse

Instance Attribute Details

#backend_ipconfigurationNetworkInterfaceIPConfiguration

address defined on a network interface of a VM. Traffic sent to the frontend port of each of the frontend IP configurations is forwarded to the backend IP.

Returns:


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

def backend_ipconfiguration
  @backend_ipconfiguration
end

#backend_portInteger

values range from 1 to 65535.

Returns:

  • (Integer)

    The port used for the internal endpoint. Acceptable


36
37
38
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb', line 36

def backend_port
  @backend_port
end

#enable_floating_ipBoolean

floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint.

Returns:

  • (Boolean)

    Configures a virtual machine's endpoint for the


48
49
50
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb', line 48

def enable_floating_ip
  @enable_floating_ip
end

#enable_tcp_resetBoolean

timeout or unexpected connection termination. This element is only used when the protocol is set to TCP.

Returns:

  • (Boolean)

    Receive bidirectional TCP Reset on TCP flow idle


53
54
55
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb', line 53

def enable_tcp_reset
  @enable_tcp_reset
end

#etagString

resource is updated.

Returns:

  • (String)

    A unique read-only string that changes whenever the


67
68
69
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb', line 67

def etag
  @etag
end

#frontend_ipconfigurationSubResource

Returns A reference to frontend IP addresses.

Returns:

  • (SubResource)

    A reference to frontend IP addresses.


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

def frontend_ipconfiguration
  @frontend_ipconfiguration
end

#frontend_portInteger

each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534.

Returns:

  • (Integer)

    The port for the external endpoint. Port numbers for


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

def frontend_port
  @frontend_port
end

#idle_timeout_in_minutesInteger

can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP.

Returns:

  • (Integer)

    The timeout for the TCP idle connection. The value


41
42
43
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb', line 41

def idle_timeout_in_minutes
  @idle_timeout_in_minutes
end

#nameString

of inbound NAT rules used by the load balancer. This name can be used to access the resource.

Returns:

  • (String)

    The name of the resource that is unique within the set


63
64
65
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb', line 63

def name
  @name
end

#protocolTransportProtocol

used by the load balancing rule. Possible values include: 'Udp', 'Tcp', 'All'

Returns:


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

def protocol
  @protocol
end

#provisioning_stateProvisioningState

rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'

Returns:


58
59
60
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb', line 58

def provisioning_state
  @provisioning_state
end

#typeString

Returns Type of the resource.

Returns:

  • (String)

    Type of the resource.


70
71
72
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb', line 70

def type
  @type
end

Class Method Details

.mapperObject

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


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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb', line 77

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'InboundNatRule',
    type: {
      name: 'Composite',
      class_name: 'InboundNatRule',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        frontend_ipconfiguration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.frontendIPConfiguration',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        backend_ipconfiguration: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.backendIPConfiguration',
          type: {
            name: 'Composite',
            class_name: 'NetworkInterfaceIPConfiguration'
          }
        },
        protocol: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.protocol',
          type: {
            name: 'String'
          }
        },
        frontend_port: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.frontendPort',
          type: {
            name: 'Number'
          }
        },
        backend_port: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.backendPort',
          type: {
            name: 'Number'
          }
        },
        idle_timeout_in_minutes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.idleTimeoutInMinutes',
          type: {
            name: 'Number'
          }
        },
        enable_floating_ip: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.enableFloatingIP',
          type: {
            name: 'Boolean'
          }
        },
        enable_tcp_reset: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.enableTcpReset',
          type: {
            name: 'Boolean'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        etag: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end