Class: Google::Cloud::GkeBackup::V1::RestoreConfig::ClusterResourceRestoreScope

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/gkebackup/v1/restore.rb

Overview

Defines the scope of cluster-scoped resources to restore.

Some group kinds are not reasonable choices for a restore, and will cause an error if selected here. Any scope selection that would restore "all valid" resources automatically excludes these group kinds.

  • gkebackup.gke.io/BackupJob
  • gkebackup.gke.io/RestoreJob
  • metrics.k8s.io/NodeMetrics
  • migration.k8s.io/StorageState
  • migration.k8s.io/StorageVersionMigration
  • Node
  • snapshot.storage.k8s.io/VolumeSnapshotContent
  • storage.k8s.io/CSINode

Some group kinds are driven by restore configuration elsewhere, and will cause an error if selected here.

  • Namespace
  • PersistentVolume

Instance Attribute Summary collapse

Instance Attribute Details

#all_group_kinds::Boolean

Returns If True, all valid cluster-scoped resources will be restored. Mutually exclusive to any other field in the message.

Returns:

  • (::Boolean)

    If True, all valid cluster-scoped resources will be restored. Mutually exclusive to any other field in the message.



259
260
261
262
# File 'proto_docs/google/cloud/gkebackup/v1/restore.rb', line 259

class ClusterResourceRestoreScope
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#excluded_group_kinds::Array<::Google::Cloud::GkeBackup::V1::RestoreConfig::GroupKind>

Returns A list of cluster-scoped resource group kinds to NOT restore from the backup. If specified, all valid cluster-scoped resources will be restored except for those specified in the list. Mutually exclusive to any other field in the message.

Returns:

  • (::Array<::Google::Cloud::GkeBackup::V1::RestoreConfig::GroupKind>)

    A list of cluster-scoped resource group kinds to NOT restore from the backup. If specified, all valid cluster-scoped resources will be restored except for those specified in the list. Mutually exclusive to any other field in the message.



259
260
261
262
# File 'proto_docs/google/cloud/gkebackup/v1/restore.rb', line 259

class ClusterResourceRestoreScope
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#no_group_kinds::Boolean

Returns If True, no cluster-scoped resources will be restored. This has the same restore scope as if the message is not defined. Mutually exclusive to any other field in the message.

Returns:

  • (::Boolean)

    If True, no cluster-scoped resources will be restored. This has the same restore scope as if the message is not defined. Mutually exclusive to any other field in the message.



259
260
261
262
# File 'proto_docs/google/cloud/gkebackup/v1/restore.rb', line 259

class ClusterResourceRestoreScope
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#selected_group_kinds::Array<::Google::Cloud::GkeBackup::V1::RestoreConfig::GroupKind>

Returns A list of cluster-scoped resource group kinds to restore from the backup. If specified, only the selected resources will be restored. Mutually exclusive to any other field in the message.

Returns:



259
260
261
262
# File 'proto_docs/google/cloud/gkebackup/v1/restore.rb', line 259

class ClusterResourceRestoreScope
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end