Struct google_api_proto::google::cloud::netapp::v1::BackupPolicy
source · pub struct BackupPolicy {
pub name: String,
pub daily_backup_limit: Option<i32>,
pub weekly_backup_limit: Option<i32>,
pub monthly_backup_limit: Option<i32>,
pub description: Option<String>,
pub enabled: Option<bool>,
pub assigned_volume_count: Option<i32>,
pub create_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub state: i32,
}
Expand description
Backup Policy.
Fields§
§name: String
Identifier. The resource name of the backup policy.
Format:
projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}
.
daily_backup_limit: Option<i32>
Number of daily backups to keep. Note that the minimum daily backup limit is 2.
weekly_backup_limit: Option<i32>
Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
monthly_backup_limit: Option<i32>
Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
description: Option<String>
Description of the backup policy.
enabled: Option<bool>
If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level. If not specified, default is true.
assigned_volume_count: Option<i32>
Output only. The total number of volumes assigned by this backup policy.
create_time: Option<Timestamp>
Output only. The time when the backup policy was created.
labels: BTreeMap<String, String>
Resource labels to represent user provided metadata.
state: i32
Output only. The backup policy state.
Implementations§
source§impl BackupPolicy
impl BackupPolicy
sourcepub fn daily_backup_limit(&self) -> i32
pub fn daily_backup_limit(&self) -> i32
Returns the value of daily_backup_limit
, or the default value if daily_backup_limit
is unset.
sourcepub fn weekly_backup_limit(&self) -> i32
pub fn weekly_backup_limit(&self) -> i32
Returns the value of weekly_backup_limit
, or the default value if weekly_backup_limit
is unset.
sourcepub fn monthly_backup_limit(&self) -> i32
pub fn monthly_backup_limit(&self) -> i32
Returns the value of monthly_backup_limit
, or the default value if monthly_backup_limit
is unset.
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
Returns the value of enabled
, or the default value if enabled
is unset.
sourcepub fn assigned_volume_count(&self) -> i32
pub fn assigned_volume_count(&self) -> i32
Returns the value of assigned_volume_count
, or the default value if assigned_volume_count
is unset.
Trait Implementations§
source§impl Clone for BackupPolicy
impl Clone for BackupPolicy
source§fn clone(&self) -> BackupPolicy
fn clone(&self) -> BackupPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BackupPolicy
impl Debug for BackupPolicy
source§impl Default for BackupPolicy
impl Default for BackupPolicy
source§impl Message for BackupPolicy
impl Message for BackupPolicy
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 BackupPolicy
impl PartialEq for BackupPolicy
source§fn eq(&self, other: &BackupPolicy) -> bool
fn eq(&self, other: &BackupPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BackupPolicy
Auto Trait Implementations§
impl Freeze for BackupPolicy
impl RefUnwindSafe for BackupPolicy
impl Send for BackupPolicy
impl Sync for BackupPolicy
impl Unpin for BackupPolicy
impl UnwindSafe for BackupPolicy
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