Compute V1 Client - Class NatIpInfoNatIpInfoMapping (1.14.0)

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

Contains information of a NAT IP.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ mode string

Specifies whether NAT IP is auto or manual. Check the Mode enum for the list of possible values.

↳ nat_ip string

NAT IP address. For example: 203.0.113.11.

↳ usage string

Specifies whether NAT IP is currently serving at least one endpoint or not. Check the Usage enum for the list of possible values.

getMode

Specifies whether NAT IP is auto or manual.

Check the Mode enum for the list of possible values.

Returns
TypeDescription
string

hasMode

clearMode

setMode

Specifies whether NAT IP is auto or manual.

Check the Mode enum for the list of possible values.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNatIp

NAT IP address. For example: 203.0.113.11.

Returns
TypeDescription
string

hasNatIp

clearNatIp

setNatIp

NAT IP address. For example: 203.0.113.11.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUsage

Specifies whether NAT IP is currently serving at least one endpoint or not.

Check the Usage enum for the list of possible values.

Returns
TypeDescription
string

hasUsage

clearUsage

setUsage

Specifies whether NAT IP is currently serving at least one endpoint or not.

Check the Usage enum for the list of possible values.

Parameter
NameDescription
var string
Returns
TypeDescription
$this