Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class ClusterMetadata.
Information about the GKE cluster from which this Backup was created.
Generated from protobuf messagegoogle.cloud.gkebackup.v1.Backup.ClusterMetadata
Namespace
Google \ Cloud \ GkeBackup \ V1 \ Backup
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ cluster
string
Output only. The source cluster from which this Backup was created. Valid formats: -projects/*/locations/*/clusters/*-projects/*/zones/*/clusters/*This is inherited from the parent BackupPlan'sclusterfield.
↳ k8s_version
string
Output only. The Kubernetes server version of the source cluster.
[[["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 Gke Backup V1 Client - Class ClusterMetadata (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-gke-backup/latest/V1.Backup.ClusterMetadata)\n- [1.2.0](/php/docs/reference/cloud-gke-backup/1.2.0/V1.Backup.ClusterMetadata)\n- [1.0.3](/php/docs/reference/cloud-gke-backup/1.0.3/V1.Backup.ClusterMetadata)\n- [0.8.1](/php/docs/reference/cloud-gke-backup/0.8.1/V1.Backup.ClusterMetadata)\n- [0.7.2](/php/docs/reference/cloud-gke-backup/0.7.2/V1.Backup.ClusterMetadata)\n- [0.6.0](/php/docs/reference/cloud-gke-backup/0.6.0/V1.Backup.ClusterMetadata)\n- [0.5.3](/php/docs/reference/cloud-gke-backup/0.5.3/V1.Backup.ClusterMetadata)\n- [0.4.0](/php/docs/reference/cloud-gke-backup/0.4.0/V1.Backup.ClusterMetadata)\n- [0.3.1](/php/docs/reference/cloud-gke-backup/0.3.1/V1.Backup.ClusterMetadata)\n- [0.2.0](/php/docs/reference/cloud-gke-backup/0.2.0/V1.Backup.ClusterMetadata)\n- [0.1.7](/php/docs/reference/cloud-gke-backup/0.1.7/V1.Backup.ClusterMetadata) \nReference documentation and code samples for the Google Cloud Gke Backup V1 Client class ClusterMetadata.\n\nInformation about the GKE cluster from which this Backup was created.\n\nGenerated from protobuf message `google.cloud.gkebackup.v1.Backup.ClusterMetadata`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ GkeBackup \\\\ V1 \\\\ Backup\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCluster\n\nOutput only. The source cluster from which this Backup was created.\n\nValid formats:\n\n- `projects/*/locations/*/clusters/*`\n- `projects/*/zones/*/clusters/*` This is inherited from the parent BackupPlan's [cluster](/php/docs/reference/cloud-gke-backup/latest/V1.BackupPlan#_Google_Cloud_GkeBackup_V1_BackupPlan__getCluster__) field.\n\n### setCluster\n\nOutput only. The source cluster from which this Backup was created.\n\nValid formats:\n\n- `projects/*/locations/*/clusters/*`\n- `projects/*/zones/*/clusters/*` This is inherited from the parent BackupPlan's [cluster](/php/docs/reference/cloud-gke-backup/latest/V1.BackupPlan#_Google_Cloud_GkeBackup_V1_BackupPlan__getCluster__) field.\n\n### getK8SVersion\n\nOutput only. The Kubernetes server version of the source cluster.\n\n### setK8SVersion\n\nOutput only. The Kubernetes server version of the source cluster.\n\n### getBackupCrdVersions\n\nOutput only. A list of the Backup for GKE CRD versions found in the\ncluster.\n\n### setBackupCrdVersions\n\nOutput only. A list of the Backup for GKE CRD versions found in the\ncluster.\n\n### getGkeVersion\n\nOutput only. GKE version\n\n### hasGkeVersion\n\n### setGkeVersion\n\nOutput only. GKE version\n\n### getAnthosVersion\n\nOutput only. Anthos version\n\n### hasAnthosVersion\n\n### setAnthosVersion\n\nOutput only. Anthos version\n\n### getPlatformVersion"]]