Compute V1 Client - Class NamedSet (2.11.0)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ description string

An optional description of named set.

↳ elements array<Expr>

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

↳ fingerprint string

A fingerprint for the Named Set being applied to this Router, which is essentially a hash of the Named Set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the Named Set. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set.

↳ name string

This set's name, which must be a resource ID segment and unique within all named sets owned by the Router. Name should conform to RFC1035.

↳ type string

This named set's type Check the Type enum for the list of possible values.

getDescription

An optional description of named set.

Returns
Type Description
string

hasDescription

clearDescription

setDescription

An optional description of named set.

Parameter
Name Description
var string
Returns
Type Description
$this

getElements

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

Returns
Type Description
Google\Protobuf\RepeatedField<Expr>

setElements

CEL expressions that are comparable to constructs of this set's type (see Policy Language).

Parameter
Name Description
var array<Expr>
Returns
Type Description
$this

getFingerprint

A fingerprint for the Named Set being applied to this Router, which is essentially a hash of the Named Set used for optimistic locking.

The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the Named Set. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set.

Returns
Type Description
string

hasFingerprint

clearFingerprint

setFingerprint

A fingerprint for the Named Set being applied to this Router, which is essentially a hash of the Named Set used for optimistic locking.

The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the Named Set. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set.

Parameter
Name Description
var string
Returns
Type Description
$this

getName

This set's name, which must be a resource ID segment and unique within all named sets owned by the Router. Name should conform to RFC1035.

Returns
Type Description
string

hasName

clearName

setName

This set's name, which must be a resource ID segment and unique within all named sets owned by the Router. Name should conform to RFC1035.

Parameter
Name Description
var string
Returns
Type Description
$this

getType

This named set's type Check the Type enum for the list of possible values.

Returns
Type Description
string

hasType

clearType

setType

This named set's type Check the Type enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this