# Backup for GKE V1 API - Class Google::Cloud::GkeBackup::V1::Backup::ClusterMetadata (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.12.0 0.11.0 0.10.1 0.9.0 0.8.0 0.7.2 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Backup for GKE V1 API class Google::Cloud::GkeBackup::V1::Backup::ClusterMetadata.

Information about the GKE cluster from which this Backup was created.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #anthos_version

    def anthos_version() -> ::String

**Returns**

- (::String) --- Output only. Anthos version

  Note: The following fields are mutually exclusive: `anthos_version`, `gke_version`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #backup_crd_versions

    def backup_crd_versions() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Output only. A list of the Backup for GKE CRD versions found in the cluster.

### #cluster

    def cluster() -> ::String

**Returns**

- (::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's
  [cluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-BackupPlan#Google__Cloud__GkeBackup__V1__BackupPlan_cluster_instance_ "Google::Cloud::GkeBackup::V1::BackupPlan#cluster (method)") field.

### #gke_version

    def gke_version() -> ::String

**Returns**

- (::String) --- Output only. GKE version

  Note: The following fields are mutually exclusive: `gke_version`, `anthos_version`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #k8s_version

    def k8s_version() -> ::String

**Returns**

- (::String) --- Output only. The Kubernetes server version of the source cluster.