View Source GoogleApi.GKEBackup.V1.Model.ClusterResourceRestoreScope (google_api_gke_backup v0.6.0)

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

Attributes

  • allGroupKinds (type: boolean(), default: nil) - Optional. If True, all valid cluster-scoped resources will be restored. Mutually exclusive to any other field in the message.
  • excludedGroupKinds (type: list(GoogleApi.GKEBackup.V1.Model.GroupKind.t), default: nil) - Optional. 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.
  • noGroupKinds (type: boolean(), default: nil) - Optional. 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.
  • selectedGroupKinds (type: list(GoogleApi.GKEBackup.V1.Model.GroupKind.t), default: nil) - Optional. 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.GKEBackup.V1.Model.ClusterResourceRestoreScope{
  allGroupKinds: boolean() | nil,
  excludedGroupKinds: [GoogleApi.GKEBackup.V1.Model.GroupKind.t()] | nil,
  noGroupKinds: boolean() | nil,
  selectedGroupKinds: [GoogleApi.GKEBackup.V1.Model.GroupKind.t()] | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.