Compute V1 Client - Class PreservedStatePreservedNetworkIp (1.18.1)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ auto_deletestring

These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted. Check the AutoDelete enum for the list of possible values.

↳ ip_addressGoogle\Cloud\Compute\V1\PreservedStatePreservedNetworkIpIpAddress

Ip address representation

getAutoDelete

These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted.

Check the AutoDelete enum for the list of possible values.

Returns
TypeDescription
string

hasAutoDelete

clearAutoDelete

setAutoDelete

These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted.

Check the AutoDelete enum for the list of possible values.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getIpAddress

Ip address representation

Returns
TypeDescription
Google\Cloud\Compute\V1\PreservedStatePreservedNetworkIpIpAddress|null

hasIpAddress

clearIpAddress

setIpAddress

Ip address representation

Parameter
NameDescription
varGoogle\Cloud\Compute\V1\PreservedStatePreservedNetworkIpIpAddress
Returns
TypeDescription
$this