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

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

Namespace

Google \ Cloud \ GkeMultiCloud \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
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
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var string
Returns
Type Description
$this