Compute V1 Client - Class RouterNatSubnetworkToNat (1.5.0)

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

Defines the IP ranges that want to use NAT for a subnetwork.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

URL for the subnetwork resource that will use NAT.

↳ secondary_ip_range_names array

A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.

↳ source_ip_ranges_to_nat array

Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] Check the SourceIpRangesToNat enum for the list of possible values.

getName

URL for the subnetwork resource that will use NAT.

Generated from protobuf field optional string name = 3373707;

Returns
TypeDescription
string

hasName

clearName

setName

URL for the subnetwork resource that will use NAT.

Generated from protobuf field optional string name = 3373707;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSecondaryIpRangeNames

A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.

Generated from protobuf field repeated string secondary_ip_range_names = 264315097;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSecondaryIpRangeNames

A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.

Generated from protobuf field repeated string secondary_ip_range_names = 264315097;

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getSourceIpRangesToNat

Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] Check the SourceIpRangesToNat enum for the list of possible values.

Generated from protobuf field repeated string source_ip_ranges_to_nat = 388310386;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSourceIpRangesToNat

Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] Check the SourceIpRangesToNat enum for the list of possible values.

Generated from protobuf field repeated string source_ip_ranges_to_nat = 388310386;

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this