A snapshot of a table at a particular time. A snapshot can be used as a checkpoint for data restoration or a data source for a new table.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Fields
name
The unique name of the snapshot.
Values are of the form
projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}.
source_table
Output only. The source table at the time the snapshot was taken.
data_size_bytes
Output only. The size of the data in the source table at the time the snapshot was taken. In some cases, this value may be computed asynchronously via a background process and a placeholder of 0 will be used in the meantime.
create_time
Output only. The time when the snapshot is created.
delete_time
The time when the snapshot will be deleted. The maximum amount of time a snapshot can stay active is 365 days. If 'ttl' is not specified, the default maximum of 365 days will be used.
state
Output only. The current state of the snapshot.
description
Description of the snapshot.
Implementations
new
fn new() -> Self
set_name
fn set_name<T: std::convert::Into<std::string::String>>(self, v: T) -> Self
Sets the value of [name][crate::model::Snapshot::name].
set_source_table
fn set_source_table<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::Table>,
Sets the value of [source_table][crate::model::Snapshot::source_table].
set_or_clear_source_table
fn set_or_clear_source_table<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::Table>,
Sets or clears the value of [source_table][crate::model::Snapshot::source_table].
set_data_size_bytes
fn set_data_size_bytes<T: std::convert::Into<i64>>(self, v: T) -> Self
Sets the value of [data_size_bytes][crate::model::Snapshot::data_size_bytes].
set_create_time
fn set_create_time<T>(self, v: T) -> Self
where
T: std::convert::Into<wkt::Timestamp>,
Sets the value of [create_time][crate::model::Snapshot::create_time].
set_or_clear_create_time
fn set_or_clear_create_time<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<wkt::Timestamp>,
Sets or clears the value of [create_time][crate::model::Snapshot::create_time].
set_delete_time
fn set_delete_time<T>(self, v: T) -> Self
where
T: std::convert::Into<wkt::Timestamp>,
Sets the value of [delete_time][crate::model::Snapshot::delete_time].
set_or_clear_delete_time
fn set_or_clear_delete_time<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<wkt::Timestamp>,
Sets or clears the value of [delete_time][crate::model::Snapshot::delete_time].
set_state
fn set_state<T: std::convert::Into<crate::model::snapshot::State>>(self, v: T) -> Self
Sets the value of [state][crate::model::Snapshot::state].
set_description
fn set_description<T: std::convert::Into<std::string::String>>(self, v: T) -> Self
Sets the value of [description][crate::model::Snapshot::description].