Compute V1 Client - Class InstanceGroupsSetNamedPortsRequest (1.17.0)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ fingerprint string

The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request. A request with an incorrect fingerprint will fail with error 412 conditionNotMet.

↳ named_ports array<Google\Cloud\Compute\V1\NamedPort>

The list of named ports to set for this instance group.

getFingerprint

The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request. A request with an incorrect fingerprint will fail with error 412 conditionNotMet.

Returns
Type Description
string

hasFingerprint

clearFingerprint

setFingerprint

The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request. A request with an incorrect fingerprint will fail with error 412 conditionNotMet.

Parameter
Name Description
var string
Returns
Type Description
$this

getNamedPorts

The list of named ports to set for this instance group.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setNamedPorts

The list of named ports to set for this instance group.

Parameter
Name Description
var array<Google\Cloud\Compute\V1\NamedPort>
Returns
Type Description
$this