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.
SeeAnthos
Fleetsfor
more details on Anthos multi-cluster capabilities using Fleets.
Generated from protobuf messagegoogle.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 asprojects/<project-number>.
↳ membership
string
Output only. The name of the managed Hub Membership resource associated to this cluster. Membership names are formatted asprojects/<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 asprojects/<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 asprojects/<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 asprojects/<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 asprojects/<project-number>/locations/global/membership/<cluster-id>.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Anthos Multi Cloud V1 Client - Class Fleet (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/cloud-gke-multi-cloud/latest/V1.Fleet)\n- [1.2.1](/php/docs/reference/cloud-gke-multi-cloud/1.2.1/V1.Fleet)\n- [1.1.2](/php/docs/reference/cloud-gke-multi-cloud/1.1.2/V1.Fleet)\n- [1.0.0](/php/docs/reference/cloud-gke-multi-cloud/1.0.0/V1.Fleet)\n- [0.6.1](/php/docs/reference/cloud-gke-multi-cloud/0.6.1/V1.Fleet)\n- [0.5.4](/php/docs/reference/cloud-gke-multi-cloud/0.5.4/V1.Fleet)\n- [0.4.4](/php/docs/reference/cloud-gke-multi-cloud/0.4.4/V1.Fleet)\n- [0.3.0](/php/docs/reference/cloud-gke-multi-cloud/0.3.0/V1.Fleet)\n- [0.2.3](/php/docs/reference/cloud-gke-multi-cloud/0.2.3/V1.Fleet)\n- [0.1.4](/php/docs/reference/cloud-gke-multi-cloud/0.1.4/V1.Fleet) \nReference documentation and code samples for the Google Anthos Multi Cloud V1 Client class Fleet.\n\nFleet related configuration.\n\nFleets are a Google Cloud concept for logically organizing clusters,\nletting you use and manage multi-cluster capabilities and apply\nconsistent policies across your systems.\nSee [Anthos\nFleets](https://cloud.google.com/anthos/multicluster-management/fleets) for\nmore details on Anthos multi-cluster capabilities using Fleets.\n\nGenerated from protobuf message `google.cloud.gkemulticloud.v1.Fleet`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ GkeMultiCloud \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getProject\n\nRequired. The name of the Fleet host project where this cluster will be\nregistered.\n\nProject names are formatted as\n`projects/\u003cproject-number\u003e`.\n\n### setProject\n\nRequired. The name of the Fleet host project where this cluster will be\nregistered.\n\nProject names are formatted as\n`projects/\u003cproject-number\u003e`.\n\n### getMembership\n\nOutput only. The name of the managed Hub Membership resource associated to\nthis cluster.\n\nMembership names are formatted as\n`projects/\u003cproject-number\u003e/locations/global/membership/\u003ccluster-id\u003e`.\n\n### setMembership\n\nOutput only. The name of the managed Hub Membership resource associated to\nthis cluster.\n\nMembership names are formatted as\n`projects/\u003cproject-number\u003e/locations/global/membership/\u003ccluster-id\u003e`."]]