Google Anthos Multi Cloud V1 Client - Class Fleet (0.2.3)

Reference documentation and code samples for the Google Anthos Multi Cloud V1 Client class Fleet.

Fleet related configuration.

Fleets are a Google Cloud concept for logically organizing clusters, letting you use and manage multi-cluster capabilities and apply consistent policies across your systems. See Anthos Fleets for more details on Anthos multi-cluster capabilities using Fleets.

Generated from protobuf message google.cloud.gkemulticloud.v1.Fleet

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ project string

Required. The name of the Fleet host project where this cluster will be registered. Project names are formatted as projects/<project-number>.

↳ membership string

Output only. The name of the managed Hub Membership resource associated to this cluster. Membership names are formatted as projects/<project-number>/locations/global/membership/<cluster-id>.

getProject

Required. The name of the Fleet host project where this cluster will be registered.

Project names are formatted as projects/<project-number>.

Returns
TypeDescription
string

setProject

Required. The name of the Fleet host project where this cluster will be registered.

Project names are formatted as projects/<project-number>.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMembership

Output only. The name of the managed Hub Membership resource associated to this cluster.

Membership names are formatted as projects/<project-number>/locations/global/membership/<cluster-id>.

Returns
TypeDescription
string

setMembership

Output only. The name of the managed Hub Membership resource associated to this cluster.

Membership names are formatted as projects/<project-number>/locations/global/membership/<cluster-id>.

Parameter
NameDescription
var string
Returns
TypeDescription
$this