compute
v1
|
#include <router_nat.h>
Static Public Member Functions | |
static RouterNat * | New () |
Represents a Nat resource. It enables the VMs within the specified subnetworks to access Internet without external IP addresses. It specifies a list of subnetworks (and the ranges within) that want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP would auto- allocate ephemeral IPs if no external IPs are provided.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'icmpIdleTimeoutSec
' attribute.
|
inline |
Clears the 'minPortsPerVm
' attribute.
|
inline |
Clears the 'name
' attribute.
|
inline |
Clears the 'natIpAllocateOption
' attribute.
|
inline |
Clears the 'natIps
' attribute.
|
inline |
Clears the 'sourceSubnetworkIpRangesToNat
' attribute.
|
inline |
Clears the 'subnetworks
' attribute.
|
inline |
Clears the 'tcpEstablishedIdleTimeoutSec
' attribute.
|
inline |
Clears the 'tcpTransitoryIdleTimeoutSec
' attribute.
|
inline |
Clears the 'udpIdleTimeoutSec
' attribute.
|
inline |
Get the value of the 'icmpIdleTimeoutSec
' attribute.
|
inline |
Get the value of the 'minPortsPerVm
' attribute.
|
inline |
Get the value of the 'name
' attribute.
|
inline |
Get the value of the 'natIpAllocateOption
' attribute.
|
inline |
Get a reference to the value of the 'natIps
' attribute.
|
inline |
Get the value of the 'sourceSubnetworkIpRangesToNat
' attribute.
const client::JsonCppArray<RouterNatSubnetworkToNat > google_compute_api::RouterNat::get_subnetworks | ( | ) | const |
Get a reference to the value of the 'subnetworks
' attribute.
|
inline |
Get the value of the 'tcpEstablishedIdleTimeoutSec
' attribute.
|
inline |
Get the value of the 'tcpTransitoryIdleTimeoutSec
' attribute.
|
inline |
Get the value of the 'udpIdleTimeoutSec
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'icmpIdleTimeoutSec
' attribute was set.
icmpIdleTimeoutSec
' attribute was set.
|
inline |
Determine if the 'minPortsPerVm
' attribute was set.
minPortsPerVm
' attribute was set.
|
inline |
Determine if the 'name
' attribute was set.
name
' attribute was set.
|
inline |
Determine if the 'natIpAllocateOption
' attribute was set.
natIpAllocateOption
' attribute was set.
|
inline |
Determine if the 'natIps
' attribute was set.
natIps
' attribute was set.
|
inline |
Determine if the 'sourceSubnetworkIpRangesToNat
' attribute was set.
sourceSubnetworkIpRangesToNat
' attribute was set.
|
inline |
Determine if the 'subnetworks
' attribute was set.
subnetworks
' attribute was set.
|
inline |
Determine if the 'tcpEstablishedIdleTimeoutSec
' attribute was set.
tcpEstablishedIdleTimeoutSec
' attribute was set.
|
inline |
Determine if the 'tcpTransitoryIdleTimeoutSec
' attribute was set.
tcpTransitoryIdleTimeoutSec
' attribute was set.
|
inline |
Determine if the 'udpIdleTimeoutSec
' attribute was set.
udpIdleTimeoutSec
' attribute was set.
|
inline |
Gets a reference to a mutable value of the 'natIps
' property.
A list of URLs of the IP resources used for this Nat service. These IPs must be valid static external IP addresses assigned to the project. max_length is subject to change post alpha.
client::JsonCppArray<RouterNatSubnetworkToNat > google_compute_api::RouterNat::mutable_subnetworks | ( | ) |
Gets a reference to a mutable value of the 'subnetworks
' property.
A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above.
|
static |
Creates a new default instance.
|
inline |
Change the 'icmpIdleTimeoutSec
' attribute.
Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
[in] | value | The new value. |
|
inline |
Change the 'minPortsPerVm
' attribute.
Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of ports is allocated to a VM. This gets rounded up to the nearest power of 2. Eg. if the value of this field is 50, at least 64 ports will be allocated to a VM.
[in] | value | The new value. |
|
inline |
Change the 'name
' attribute.
Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035.
[in] | value | The new value. |
|
inline |
Change the 'natIpAllocateOption
' attribute.
Specify the NatIpAllocateOption. If it is AUTO_ONLY, then nat_ip should be empty.
[in] | value | The new value. |
|
inline |
Change the 'sourceSubnetworkIpRangesToNat
' attribute.
Specify the Nat option. If this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region.
[in] | value | The new value. |
|
inline |
Change the 'tcpEstablishedIdleTimeoutSec
' attribute.
Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set.
[in] | value | The new value. |
|
inline |
Change the 'tcpTransitoryIdleTimeoutSec
' attribute.
Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set.
[in] | value | The new value. |
|
inline |
Change the 'udpIdleTimeoutSec
' attribute.
Timeout (in seconds) for UDP connections. Defaults to 30s if not set.
[in] | value | The new value. |