Struct google_api_proto::google::spanner::executor::v1::UpdateCloudInstanceAction
source · pub struct UpdateCloudInstanceAction {
pub instance_id: String,
pub project_id: String,
pub display_name: Option<String>,
pub node_count: Option<i32>,
pub processing_units: Option<i32>,
pub autoscaling_config: Option<AutoscalingConfig>,
pub labels: BTreeMap<String, String>,
}
Expand description
Action that updates a Cloud Spanner instance.
Fields§
§instance_id: String
Cloud instance ID (not path), e.g. “test-instance”.
project_id: String
Cloud project ID, e.g. “spanner-cloud-systest”.
display_name: Option<String>
The descriptive name for this instance as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
node_count: Option<i32>
The number of nodes allocated to this instance. At most one of either node_count or processing_units should be present in the message.
processing_units: Option<i32>
The number of processing units allocated to this instance. At most one of processing_units or node_count should be present in the message.
autoscaling_config: Option<AutoscalingConfig>
The autoscaling config for this instance. If non-empty, this instance is using autoscaling (processing_units and node_count should be set to 0 if used).
labels: BTreeMap<String, String>
labels.
Implementations§
source§impl UpdateCloudInstanceAction
impl UpdateCloudInstanceAction
sourcepub fn display_name(&self) -> &str
pub fn display_name(&self) -> &str
Returns the value of display_name
, or the default value if display_name
is unset.
sourcepub fn node_count(&self) -> i32
pub fn node_count(&self) -> i32
Returns the value of node_count
, or the default value if node_count
is unset.
sourcepub fn processing_units(&self) -> i32
pub fn processing_units(&self) -> i32
Returns the value of processing_units
, or the default value if processing_units
is unset.
Trait Implementations§
source§impl Clone for UpdateCloudInstanceAction
impl Clone for UpdateCloudInstanceAction
source§fn clone(&self) -> UpdateCloudInstanceAction
fn clone(&self) -> UpdateCloudInstanceAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateCloudInstanceAction
impl Debug for UpdateCloudInstanceAction
source§impl Default for UpdateCloudInstanceAction
impl Default for UpdateCloudInstanceAction
source§impl Message for UpdateCloudInstanceAction
impl Message for UpdateCloudInstanceAction
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 UpdateCloudInstanceAction
impl PartialEq for UpdateCloudInstanceAction
source§fn eq(&self, other: &UpdateCloudInstanceAction) -> bool
fn eq(&self, other: &UpdateCloudInstanceAction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateCloudInstanceAction
Auto Trait Implementations§
impl Freeze for UpdateCloudInstanceAction
impl RefUnwindSafe for UpdateCloudInstanceAction
impl Send for UpdateCloudInstanceAction
impl Sync for UpdateCloudInstanceAction
impl Unpin for UpdateCloudInstanceAction
impl UnwindSafe for UpdateCloudInstanceAction
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