Class: Google::Apis::GkebackupV1::ClusterResourceRestoreScope

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

Identifies the cluster-scoped resources to restore from the Backup.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterResourceRestoreScope

Returns a new instance of ClusterResourceRestoreScope.



596
597
598
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 596

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

Instance Attribute Details

#selected_group_kindsArray<Google::Apis::GkebackupV1::GroupKind>

A list of "types" of cluster-scoped resources to be restored from the Backup. An empty list means that NO cluster-scoped resources will be restored. Note that Namespaces and PersistentVolume restoration is handled separately and is not governed by this field. Corresponds to the JSON property selectedGroupKinds



594
595
596
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 594

def selected_group_kinds
  @selected_group_kinds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



601
602
603
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 601

def update!(**args)
  @selected_group_kinds = args[:selected_group_kinds] if args.key?(:selected_group_kinds)
end