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

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
NameDescription
data array

Optional. Data for populating the Message object.

↳ cluster string

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

The Kubernetes server version of the source cluster.

↳ backup_crd_versions array|Google\Protobuf\Internal\MapField

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

↳ gke_version string

GKE version

↳ anthos_version string

Anthos version

getCluster

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
TypeDescription
string

setCluster

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
NameDescription
var string
Returns
TypeDescription
$this

getK8SVersion

The Kubernetes server version of the source cluster.

Returns
TypeDescription
string

setK8SVersion

The Kubernetes server version of the source cluster.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBackupCrdVersions

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

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setBackupCrdVersions

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

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getGkeVersion

GKE version

Returns
TypeDescription
string

hasGkeVersion

setGkeVersion

GKE version

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAnthosVersion

Anthos version

Returns
TypeDescription
string

hasAnthosVersion

setAnthosVersion

Anthos version

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPlatformVersion

Returns
TypeDescription
string