Class: Google::Apis::GkebackupV1::ClusterMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkebackup_v1/classes.rb,
lib/google/apis/gkebackup_v1/representations.rb,
lib/google/apis/gkebackup_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterMetadata

Returns a new instance of ClusterMetadata.



573
574
575
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 573

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#anthos_versionString

Anthos version Corresponds to the JSON property anthosVersion

Returns:

  • (String)


549
550
551
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 549

def anthos_version
  @anthos_version
end

#backup_crd_versionsHash<String,String>

A list of the Backup for GKE CRD versions found in the cluster. Corresponds to the JSON property backupCrdVersions

Returns:

  • (Hash<String,String>)


554
555
556
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 554

def backup_crd_versions
  @backup_crd_versions
end

#clusterString

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. Corresponds to the JSON property cluster

Returns:

  • (String)


561
562
563
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 561

def cluster
  @cluster
end

#gke_versionString

GKE version Corresponds to the JSON property gkeVersion

Returns:

  • (String)


566
567
568
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 566

def gke_version
  @gke_version
end

#k8s_versionString

The Kubernetes server version of the source cluster. Corresponds to the JSON property k8sVersion

Returns:

  • (String)


571
572
573
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 571

def k8s_version
  @k8s_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



578
579
580
581
582
583
584
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 578

def update!(**args)
  @anthos_version = args[:anthos_version] if args.key?(:anthos_version)
  @backup_crd_versions = args[:backup_crd_versions] if args.key?(:backup_crd_versions)
  @cluster = args[:cluster] if args.key?(:cluster)
  @gke_version = args[:gke_version] if args.key?(:gke_version)
  @k8s_version = args[:k8s_version] if args.key?(:k8s_version)
end