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

Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class ClusterResourceRestoreScope.

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

Generated from protobuf message google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope

Namespace

Google \ Cloud \ GkeBackup \ V1 \ RestoreConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ selected_group_kinds array<Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind>

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.

↳ excluded_group_kinds 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.

↳ all_group_kinds bool

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

↳ no_group_kinds bool

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.

getSelectedGroupKinds

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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSelectedGroupKinds

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.

Parameter
NameDescription
var array<Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind>
Returns
TypeDescription
$this

getExcludedGroupKinds

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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setExcludedGroupKinds

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.

Parameter
NameDescription
var array<Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind>
Returns
TypeDescription
$this

getAllGroupKinds

If True, all valid cluster-scoped resources will be restored.

Mutually exclusive to any other field in the message.

Returns
TypeDescription
bool

setAllGroupKinds

If True, all valid cluster-scoped resources will be restored.

Mutually exclusive to any other field in the message.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getNoGroupKinds

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

setNoGroupKinds

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.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this