pub struct InstancePartition {
pub config: Option<String>,
pub create_time: Option<DateTime<Utc>>,
pub display_name: Option<String>,
pub etag: Option<String>,
pub name: Option<String>,
pub node_count: Option<i32>,
pub processing_units: Option<i32>,
pub referencing_backups: Option<Vec<String>>,
pub referencing_databases: Option<Vec<String>>,
pub state: Option<String>,
pub update_time: Option<DateTime<Utc>>,
}
Expand description
An isolated set of Cloud Spanner resources that databases can define placements on.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- instances instance partitions get projects (response)
Fields§
§config: Option<String>
Required. The name of the instance partition’s configuration. Values are of the form projects//instanceConfigs/
. See also InstanceConfig and ListInstanceConfigs.
create_time: Option<DateTime<Utc>>
Output only. The time at which the instance partition was created.
display_name: Option<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.
etag: Option<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.
name: Option<String>
Required. A unique identifier for the instance partition. Values are of the form projects//instances//instancePartitions/a-z*[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.
node_count: Option<i32>
The number of nodes allocated to this instance partition. Users can set the node_count field to specify the target number of nodes allocated to the instance partition. This may be zero in API responses for instance partitions that are not yet in state READY
.
processing_units: Option<i32>
The number of processing units allocated to this instance partition. Users can set the processing_units field to specify the target number of processing units allocated to the instance partition. This may be zero in API responses for instance partitions that are not yet in state READY
.
referencing_backups: Option<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.
referencing_databases: Option<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.
state: Option<String>
Output only. The current instance partition state.
update_time: Option<DateTime<Utc>>
Output only. The time at which the instance partition was most recently updated.
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§fn default() -> InstancePartition
fn default() -> InstancePartition
Source§impl<'de> Deserialize<'de> for InstancePartition
impl<'de> Deserialize<'de> for InstancePartition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for InstancePartition
impl Serialize for InstancePartition
impl ResponseResult 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more