Google Cloud Gke Backup V1 Client - Class ClusterMetadata (1.0.0)

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 message google.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's cluster field.

↳ k8s_version string

Output only. The Kubernetes server version of the source cluster.

↳ backup_crd_versions array|Google\Protobuf\Internal\MapField

Output only. A list of the Backup for GKE CRD versions found in the cluster.

↳ gke_version string

Output only. GKE version

↳ anthos_version string

Output only. Anthos version

getCluster

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 field.
Returns
Type Description
string

setCluster

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

getK8SVersion

Output only. The Kubernetes server version of the source cluster.

Returns
Type Description
string

setK8SVersion

Output only. The Kubernetes server version of the source cluster.

Parameter
Name Description
var string
Returns
Type Description
$this

getBackupCrdVersions

Output only. A list of the Backup for GKE CRD versions found in the cluster.

Returns
Type Description
Google\Protobuf\Internal\MapField

setBackupCrdVersions

Output only. A list of the Backup for GKE CRD versions found in the cluster.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getGkeVersion

Output only. GKE version

Returns
Type Description
string

hasGkeVersion

setGkeVersion

Output only. GKE version

Parameter
Name Description
var string
Returns
Type Description
$this

getAnthosVersion

Output only. Anthos version

Returns
Type Description
string

hasAnthosVersion

setAnthosVersion

Output only. Anthos version

Parameter
Name Description
var string
Returns
Type Description
$this

getPlatformVersion

Returns
Type Description
string