Reference documentation and code samples for the Google Cloud Container V1 Client class Fleet.
Fleet is the fleet configuration for the cluster.
Generated from protobuf messagegoogle.container.v1.Fleet
Namespace
Google \ Cloud \ Container \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ project
string
The Fleet host project(project ID or project number) where this cluster will be registered to. This field cannot be changed after the cluster has been registered.
↳ membership
string
Output only. The full resource name of the registered fleet membership of the cluster, in the format//gkehub.googleapis.com/projects/*/locations/*/memberships/*.
↳ pre_registered
bool
Output only. Whether the cluster has been registered through the fleet API.
getProject
The Fleet host project(project ID or project number) where this cluster
will be registered to. This field cannot be changed after the cluster has
been registered.
Returns
Type
Description
string
setProject
The Fleet host project(project ID or project number) where this cluster
will be registered to. This field cannot be changed after the cluster has
been registered.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getMembership
Output only. The full resource name of the registered fleet membership of
the cluster, in the format//gkehub.googleapis.com/projects/*/locations/*/memberships/*.
Returns
Type
Description
string
setMembership
Output only. The full resource name of the registered fleet membership of
the cluster, in the format//gkehub.googleapis.com/projects/*/locations/*/memberships/*.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPreRegistered
Output only. Whether the cluster has been registered through the fleet
API.
Returns
Type
Description
bool
setPreRegistered
Output only. Whether the cluster has been registered through the fleet
API.
[[["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 Cloud Container V1 Client - Class Fleet (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/php/docs/reference/cloud-container/latest/V1.Fleet)\n- [2.4.0](/php/docs/reference/cloud-container/2.4.0/V1.Fleet)\n- [2.3.4](/php/docs/reference/cloud-container/2.3.4/V1.Fleet)\n- [2.2.1](/php/docs/reference/cloud-container/2.2.1/V1.Fleet)\n- [2.1.0](/php/docs/reference/cloud-container/2.1.0/V1.Fleet)\n- [2.0.0](/php/docs/reference/cloud-container/2.0.0/V1.Fleet)\n- [1.33.0](/php/docs/reference/cloud-container/1.33.0/V1.Fleet)\n- [1.32.0](/php/docs/reference/cloud-container/1.32.0/V1.Fleet)\n- [1.31.0](/php/docs/reference/cloud-container/1.31.0/V1.Fleet)\n- [1.30.3](/php/docs/reference/cloud-container/1.30.3/V1.Fleet)\n- [1.24.0](/php/docs/reference/cloud-container/1.24.0/V1.Fleet)\n- [1.23.0](/php/docs/reference/cloud-container/1.23.0/V1.Fleet)\n- [1.22.0](/php/docs/reference/cloud-container/1.22.0/V1.Fleet)\n- [1.21.1](/php/docs/reference/cloud-container/1.21.1/V1.Fleet)\n- [1.20.0](/php/docs/reference/cloud-container/1.20.0/V1.Fleet)\n- [1.19.0](/php/docs/reference/cloud-container/1.19.0/V1.Fleet)\n- [1.18.0](/php/docs/reference/cloud-container/1.18.0/V1.Fleet)\n- [1.17.1](/php/docs/reference/cloud-container/1.17.1/V1.Fleet)\n- [1.16.0](/php/docs/reference/cloud-container/1.16.0/V1.Fleet)\n- [1.15.0](/php/docs/reference/cloud-container/1.15.0/V1.Fleet)\n- [1.14.0](/php/docs/reference/cloud-container/1.14.0/V1.Fleet)\n- [1.13.1](/php/docs/reference/cloud-container/1.13.1/V1.Fleet)\n- [1.12.1](/php/docs/reference/cloud-container/1.12.1/V1.Fleet)\n- [1.10.3](/php/docs/reference/cloud-container/1.10.3/V1.Fleet)\n- [1.9.1](/php/docs/reference/cloud-container/1.9.1/V1.Fleet) \nReference documentation and code samples for the Google Cloud Container V1 Client class Fleet.\n\nFleet is the fleet configuration for the cluster.\n\nGenerated from protobuf message `google.container.v1.Fleet`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Container \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getProject\n\nThe Fleet host project(project ID or project number) where this cluster\nwill be registered to. This field cannot be changed after the cluster has\nbeen registered.\n\n### setProject\n\nThe Fleet host project(project ID or project number) where this cluster\nwill be registered to. This field cannot be changed after the cluster has\nbeen registered.\n\n### getMembership\n\nOutput only. The full resource name of the registered fleet membership of\nthe cluster, in the format\n`//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.\n\n### setMembership\n\nOutput only. The full resource name of the registered fleet membership of\nthe cluster, in the format\n`//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.\n\n### getPreRegistered\n\nOutput only. Whether the cluster has been registered through the fleet\nAPI.\n\n### setPreRegistered\n\nOutput only. Whether the cluster has been registered through the fleet\nAPI."]]