Compute V1 Client - Class InstanceGroupsSetNamedPortsRequest (1.7.1)

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

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getNamedPorts

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNamedPorts

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

Parameter
NameDescription
var array<Google\Cloud\Compute\V1\NamedPort>
Returns
TypeDescription
$this