Compute V1 Client - Class RegionInstanceGroupsSetNamedPortsRequest (1.14.0)

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

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

Namespace

Google \ Cloud \ Compute \ V1

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.

↳ 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.

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.

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