Compute V1 Client - Class RouterNatRuleAction (1.13.0)

Reference documentation and code samples for the Compute V1 Client class RouterNatRuleAction.

Generated from protobuf message google.cloud.compute.v1.RouterNatRuleAction

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ source_nat_active_ips array

A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT.

↳ source_nat_active_ranges array

A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT. This field is used for private NAT.

↳ source_nat_drain_ips array

A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT.

↳ source_nat_drain_ranges array

A list of URLs of subnetworks representing source ranges to be drained. This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule. This field is used for private NAT.

getSourceNatActiveIps

A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSourceNatActiveIps

A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getSourceNatActiveRanges

A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT. This field is used for private NAT.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSourceNatActiveRanges

A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT. This field is used for private NAT.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getSourceNatDrainIps

A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSourceNatDrainIps

A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getSourceNatDrainRanges

A list of URLs of subnetworks representing source ranges to be drained. This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule. This field is used for private NAT.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSourceNatDrainRanges

A list of URLs of subnetworks representing source ranges to be drained. This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule. This field is used for private NAT.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this