Struct google_api_proto::google::cloud::gkebackup::v1::restore_config::ClusterResourceRestoreScope
source · pub struct ClusterResourceRestoreScope {
pub selected_group_kinds: Vec<GroupKind>,
pub excluded_group_kinds: Vec<GroupKind>,
pub all_group_kinds: bool,
pub no_group_kinds: bool,
}
Expand description
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
Fields§
§selected_group_kinds: Vec<GroupKind>
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.
excluded_group_kinds: Vec<GroupKind>
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.
all_group_kinds: bool
Optional. If True, all valid cluster-scoped resources will be restored. Mutually exclusive to any other field in the message.
no_group_kinds: bool
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.
Trait Implementations§
source§impl Clone for ClusterResourceRestoreScope
impl Clone for ClusterResourceRestoreScope
source§fn clone(&self) -> ClusterResourceRestoreScope
fn clone(&self) -> ClusterResourceRestoreScope
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClusterResourceRestoreScope
impl Debug for ClusterResourceRestoreScope
source§impl Message for ClusterResourceRestoreScope
impl Message for ClusterResourceRestoreScope
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ClusterResourceRestoreScope
impl PartialEq for ClusterResourceRestoreScope
source§fn eq(&self, other: &ClusterResourceRestoreScope) -> bool
fn eq(&self, other: &ClusterResourceRestoreScope) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ClusterResourceRestoreScope
Auto Trait Implementations§
impl Freeze for ClusterResourceRestoreScope
impl RefUnwindSafe for ClusterResourceRestoreScope
impl Send for ClusterResourceRestoreScope
impl Sync for ClusterResourceRestoreScope
impl Unpin for ClusterResourceRestoreScope
impl UnwindSafe for ClusterResourceRestoreScope
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request