pub struct UpgradeClusterRequest {
pub name: String,
pub version: i32,
pub request_id: String,
pub validate_only: bool,
pub etag: String,
}
Expand description
Upgrades a cluster.
Fields§
§name: String
Required. The resource name of the cluster.
version: i32
Required. The version the cluster is going to be upgraded to.
request_id: String
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if the original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
validate_only: bool
Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request.
etag: String
Optional. The current etag of the Cluster. If an etag is provided and does not match the current etag of the Cluster, upgrade will be blocked and an ABORTED error will be returned.
Implementations§
Source§impl UpgradeClusterRequest
impl UpgradeClusterRequest
Sourcepub fn version(&self) -> DatabaseVersion
pub fn version(&self) -> DatabaseVersion
Returns the enum value of version
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_version(&mut self, value: DatabaseVersion)
pub fn set_version(&mut self, value: DatabaseVersion)
Sets version
to the provided enum value.
Trait Implementations§
Source§impl Clone for UpgradeClusterRequest
impl Clone for UpgradeClusterRequest
Source§fn clone(&self) -> UpgradeClusterRequest
fn clone(&self) -> UpgradeClusterRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UpgradeClusterRequest
impl Debug for UpgradeClusterRequest
Source§impl Default for UpgradeClusterRequest
impl Default for UpgradeClusterRequest
Source§impl Message for UpgradeClusterRequest
impl Message for UpgradeClusterRequest
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 UpgradeClusterRequest
impl PartialEq for UpgradeClusterRequest
impl StructuralPartialEq for UpgradeClusterRequest
Auto Trait Implementations§
impl Freeze for UpgradeClusterRequest
impl RefUnwindSafe for UpgradeClusterRequest
impl Send for UpgradeClusterRequest
impl Sync for UpgradeClusterRequest
impl Unpin for UpgradeClusterRequest
impl UnwindSafe for UpgradeClusterRequest
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