Class: Google::Apis::GkebackupV1::ClusterMetadata
- Inherits:
-
Object
- Object
- Google::Apis::GkebackupV1::ClusterMetadata
- 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
-
#anthos_version ⇒ String
Output only.
-
#backup_crd_versions ⇒ Hash<String,String>
Output only.
-
#cluster ⇒ String
Output only.
-
#gke_version ⇒ String
Output only.
-
#k8s_version ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClusterMetadata
constructor
A new instance of ClusterMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClusterMetadata
Returns a new instance of ClusterMetadata.
1317 1318 1319 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1317 def initialize(**args) update!(**args) end |
Instance Attribute Details
#anthos_version ⇒ String
Output only. Anthos version
Corresponds to the JSON property anthosVersion
1293 1294 1295 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1293 def anthos_version @anthos_version end |
#backup_crd_versions ⇒ Hash<String,String>
Output only. A list of the Backup for GKE CRD versions found in the cluster.
Corresponds to the JSON property backupCrdVersions
1298 1299 1300 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1298 def backup_crd_versions @backup_crd_versions end |
#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.
Corresponds to the JSON property cluster
1305 1306 1307 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1305 def cluster @cluster end |
#gke_version ⇒ String
Output only. GKE version
Corresponds to the JSON property gkeVersion
1310 1311 1312 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1310 def gke_version @gke_version end |
#k8s_version ⇒ String
Output only. The Kubernetes server version of the source cluster.
Corresponds to the JSON property k8sVersion
1315 1316 1317 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1315 def k8s_version @k8s_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1322 1323 1324 1325 1326 1327 1328 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1322 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 |