pub struct Cluster {
pub name: String,
pub location: String,
pub state: i32,
pub serve_nodes: i32,
pub node_scaling_factor: i32,
pub default_storage_type: i32,
pub encryption_config: Option<EncryptionConfig>,
pub config: Option<Config>,
}
Expand description
A resizable group of nodes in a particular cloud location, capable of serving all [Tables][google.bigtable.admin.v2.Table] in the parent [Instance][google.bigtable.admin.v2.Instance].
Fields§
§name: String
The unique name of the cluster. Values are of the form
projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*
.
location: String
Immutable. The location where this cluster’s nodes and storage reside. For
best performance, clients should be located as close as possible to this
cluster. Currently only zones are supported, so values should be of the
form projects/{project}/locations/{zone}
.
state: i32
Output only. The current state of the cluster.
serve_nodes: i32
The number of nodes allocated to this cluster. More nodes enable higher throughput and more consistent performance.
node_scaling_factor: i32
Immutable. The node scaling factor of this cluster.
default_storage_type: i32
Immutable. The type of storage used by this cluster to serve its parent instance’s tables, unless explicitly overridden.
encryption_config: Option<EncryptionConfig>
Immutable. The encryption configuration for CMEK-protected clusters.
config: Option<Config>
Implementations§
Source§impl Cluster
impl Cluster
Sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
Sourcepub fn default_storage_type(&self) -> StorageType
pub fn default_storage_type(&self) -> StorageType
Returns the enum value of default_storage_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_default_storage_type(&mut self, value: StorageType)
pub fn set_default_storage_type(&mut self, value: StorageType)
Sets default_storage_type
to the provided enum value.
Sourcepub fn node_scaling_factor(&self) -> NodeScalingFactor
pub fn node_scaling_factor(&self) -> NodeScalingFactor
Returns the enum value of node_scaling_factor
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_node_scaling_factor(&mut self, value: NodeScalingFactor)
pub fn set_node_scaling_factor(&mut self, value: NodeScalingFactor)
Sets node_scaling_factor
to the provided enum value.
Trait Implementations§
Source§impl Message for Cluster
impl Message for Cluster
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
.impl StructuralPartialEq for Cluster
Auto Trait Implementations§
impl Freeze for Cluster
impl RefUnwindSafe for Cluster
impl Send for Cluster
impl Sync for Cluster
impl Unpin for Cluster
impl UnwindSafe for Cluster
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> 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