Enum google_api_proto::google::cloud::gkebackup::v1::restore_config::NamespacedResourceRestoreScope
source · pub enum NamespacedResourceRestoreScope {
AllNamespaces(bool),
SelectedNamespaces(Namespaces),
SelectedApplications(NamespacedNames),
NoNamespaces(bool),
ExcludedNamespaces(Namespaces),
}
Expand description
Specifies the namespaced resources to restore from the Backup. Only one of the entries may be specified. If not specified, NO namespaced resources will be restored.
Note: Resources will never be restored into managed namespaces such as
kube-system
, kube-public
, or kube-node-lease
. These namespaces
are silently skipped when
[all_namespaces][google.cloud.gkebackup.v1.RestoreConfig.all_namespaces] is
selected. Listing them explicitly will result in an error.
Variants§
AllNamespaces(bool)
Restore all namespaced resources in the Backup if set to “True”. Specifying this field to “False” is an error.
SelectedNamespaces(Namespaces)
A list of selected Namespaces to restore from the Backup. The listed Namespaces and all resources contained in them will be restored.
SelectedApplications(NamespacedNames)
A list of selected ProtectedApplications to restore. The listed ProtectedApplications and all the resources to which they refer will be restored.
NoNamespaces(bool)
Do not restore any namespaced resources if set to “True”. Specifying this field to “False” is not allowed.
ExcludedNamespaces(Namespaces)
A list of selected namespaces excluded from restoration. All namespaces except those in this list will be restored.
Implementations§
source§impl NamespacedResourceRestoreScope
impl NamespacedResourceRestoreScope
sourcepub fn merge(
field: &mut Option<NamespacedResourceRestoreScope>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<NamespacedResourceRestoreScope>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for NamespacedResourceRestoreScope
impl Clone for NamespacedResourceRestoreScope
source§fn clone(&self) -> NamespacedResourceRestoreScope
fn clone(&self) -> NamespacedResourceRestoreScope
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for NamespacedResourceRestoreScope
impl PartialEq for NamespacedResourceRestoreScope
source§fn eq(&self, other: &NamespacedResourceRestoreScope) -> bool
fn eq(&self, other: &NamespacedResourceRestoreScope) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NamespacedResourceRestoreScope
Auto Trait Implementations§
impl Freeze for NamespacedResourceRestoreScope
impl RefUnwindSafe for NamespacedResourceRestoreScope
impl Send for NamespacedResourceRestoreScope
impl Sync for NamespacedResourceRestoreScope
impl Unpin for NamespacedResourceRestoreScope
impl UnwindSafe for NamespacedResourceRestoreScope
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