Struct google_api_proto::google::spanner::admin::instance::v1::InstancePartition
source · pub struct InstancePartition {
pub name: String,
pub config: String,
pub display_name: String,
pub state: i32,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub referencing_databases: Vec<String>,
pub referencing_backups: Vec<String>,
pub etag: String,
pub compute_capacity: Option<ComputeCapacity>,
}
Expand description
An isolated set of Cloud Spanner resources that databases can define placements on.
Fields§
§name: String
Required. A unique identifier for the instance partition. Values are of the
form
projects/<project>/instances/<instance>/instancePartitions/[a-z][-a-z0-9]*\[a-z0-9\]
.
The final segment of the name must be between 2 and 64 characters in
length. An instance partition’s name cannot be changed after the instance
partition is created.
config: String
Required. The name of the instance partition’s configuration. Values are of
the form projects/<project>/instanceConfigs/<configuration>
. See also
[InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] and
[ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
display_name: String
Required. The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
state: i32
Output only. The current instance partition state.
create_time: Option<Timestamp>
Output only. The time at which the instance partition was created.
update_time: Option<Timestamp>
Output only. The time at which the instance partition was most recently updated.
referencing_databases: Vec<String>
Output only. The names of the databases that reference this instance partition. Referencing databases should share the parent instance. The existence of any referencing database prevents the instance partition from being deleted.
referencing_backups: Vec<String>
Output only. The names of the backups that reference this instance partition. Referencing backups should share the parent instance. The existence of any referencing backup prevents the instance partition from being deleted.
etag: String
Used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance partition from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform instance partition updates in order to avoid race conditions: An etag is returned in the response which contains instance partitions, and systems are expected to put that etag in the request to update instance partitions to ensure that their change will be applied to the same version of the instance partition. If no etag is provided in the call to update instance partition, then the existing instance partition is overwritten blindly.
compute_capacity: Option<ComputeCapacity>
Compute capacity defines amount of server and storage resources that are available to the databases in an instance partition. At most one of either node_count or processing_units should be present in the message. See the documentation for more information about nodes and processing units.
Implementations§
Trait Implementations§
source§impl Clone for InstancePartition
impl Clone for InstancePartition
source§fn clone(&self) -> InstancePartition
fn clone(&self) -> InstancePartition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstancePartition
impl Debug for InstancePartition
source§impl Default for InstancePartition
impl Default for InstancePartition
source§impl Message for InstancePartition
impl Message for InstancePartition
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 InstancePartition
impl PartialEq for InstancePartition
source§fn eq(&self, other: &InstancePartition) -> bool
fn eq(&self, other: &InstancePartition) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstancePartition
Auto Trait Implementations§
impl Freeze for InstancePartition
impl RefUnwindSafe for InstancePartition
impl Send for InstancePartition
impl Sync for InstancePartition
impl Unpin for InstancePartition
impl UnwindSafe for InstancePartition
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