Compute V1 Client - Class NatIpInfoNatIpInfoMapping (1.18.1)

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
Name Description
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
Type Description
string

hasMode

clearMode

setMode

Specifies whether NAT IP is auto or manual.

Check the Mode enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getNatIp

NAT IP address. For example: 203.0.113.11.

Returns
Type Description
string

hasNatIp

clearNatIp

setNatIp

NAT IP address. For example: 203.0.113.11.

Parameter
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var string
Returns
Type Description
$this