#[non_exhaustive]pub struct CreateClusterRequest {
pub project_id: String,
pub region: String,
pub cluster: Option<Cluster>,
pub request_id: String,
pub action_on_failed_primary_workers: FailureAction,
/* private fields */
}
Expand description
A request to create a cluster.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.project_id: String
Required. The ID of the Google Cloud Platform project that the cluster belongs to.
region: String
Required. The Dataproc region in which to handle the request.
cluster: Option<Cluster>
Required. The cluster to create.
request_id: String
Optional. A unique ID used to identify the request. If the server receives two CreateClusterRequests with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.
It is recommended to always set this value to a UUID.
The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
action_on_failed_primary_workers: FailureAction
Optional. Failure action when primary worker creation fails.
Implementations§
Source§impl CreateClusterRequest
impl CreateClusterRequest
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
Sourcepub fn set_region<T: Into<String>>(self, v: T) -> Self
pub fn set_region<T: Into<String>>(self, v: T) -> Self
Sets the value of region.
Sourcepub fn set_cluster<T>(self, v: T) -> Self
pub fn set_cluster<T>(self, v: T) -> Self
Sets the value of cluster.
Sourcepub fn set_or_clear_cluster<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_cluster<T>(self, v: Option<T>) -> Self
Sets or clears the value of cluster.
Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
Sourcepub fn set_action_on_failed_primary_workers<T: Into<FailureAction>>(
self,
v: T,
) -> Self
pub fn set_action_on_failed_primary_workers<T: Into<FailureAction>>( self, v: T, ) -> Self
Sets the value of action_on_failed_primary_workers.
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 more