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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ mode | stringSpecifies whether NAT IP is auto or manual. Check the Mode enum for the list of possible values. | 
| ↳ nat_ip | stringNAT IP address. For example: 203.0.113.11. | 
| ↳ usage | stringSpecifies 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 | |