Compute V1 Client - Class PreservedStatePreservedNetworkIp (1.19.0)

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
Name Description
data array

Optional. Data for populating the Message object.

↳ auto_delete string

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

getIpAddress

Ip address representation

Returns
Type Description
Google\Cloud\Compute\V1\PreservedStatePreservedNetworkIpIpAddress|null

hasIpAddress

clearIpAddress

setIpAddress

Ip address representation

Parameter
Name Description
var Google\Cloud\Compute\V1\PreservedStatePreservedNetworkIpIpAddress
Returns
Type Description
$this