Compute V1 Client - Class NatIpInfo (1.22.1)

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

Contains NAT IP information of a NAT config (i.e. usage status, mode).

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ nat_ip_info_mappingsarray<NatIpInfoNatIpInfoMapping>

A list of all NAT IPs assigned to this NAT config.

↳ nat_namestring

Name of the NAT config which the NAT IP belongs to.

getNatIpInfoMappings

A list of all NAT IPs assigned to this NAT config.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNatIpInfoMappings

A list of all NAT IPs assigned to this NAT config.

Parameter
NameDescription
vararray<NatIpInfoNatIpInfoMapping>
Returns
TypeDescription
$this

getNatName

Name of the NAT config which the NAT IP belongs to.

Returns
TypeDescription
string

hasNatName

clearNatName

setNatName

Name of the NAT config which the NAT IP belongs to.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this