Struct google_api_proto::google::cloud::managedkafka::v1::CreateClusterRequest
source · pub struct CreateClusterRequest {
pub parent: String,
pub cluster_id: String,
pub cluster: Option<Cluster>,
pub request_id: String,
}
Expand description
Request for CreateCluster.
Fields§
§parent: String
Required. The parent region in which to create the cluster. Structured like
projects/{project}/locations/{location}
.
cluster_id: String
Required. The ID to use for the cluster, which will become the final
component of the cluster’s name. The ID must be 1-63 characters long, and
match the regular expression [a-z](\[-a-z0-9\]*[a-z0-9])?
to comply with
RFC 1035.
This value is structured like: my-cluster-id
.
cluster: Option<Cluster>
Required. Configuration of the cluster to create. Its name
field is
ignored.
request_id: String
Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID.
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 within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request.
The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Trait Implementations§
source§impl Clone for CreateClusterRequest
impl Clone for CreateClusterRequest
source§fn clone(&self) -> CreateClusterRequest
fn clone(&self) -> CreateClusterRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateClusterRequest
impl Debug for CreateClusterRequest
source§impl Default for CreateClusterRequest
impl Default for CreateClusterRequest
source§impl Message for CreateClusterRequest
impl Message for CreateClusterRequest
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 CreateClusterRequest
impl PartialEq for CreateClusterRequest
source§fn eq(&self, other: &CreateClusterRequest) -> bool
fn eq(&self, other: &CreateClusterRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateClusterRequest
Auto Trait Implementations§
impl Freeze for CreateClusterRequest
impl RefUnwindSafe for CreateClusterRequest
impl Send for CreateClusterRequest
impl Sync for CreateClusterRequest
impl Unpin for CreateClusterRequest
impl UnwindSafe for CreateClusterRequest
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