Struct google_api_proto::google::cloud::dataproc::v1::cluster_controller_client::ClusterControllerClient
source · pub struct ClusterControllerClient<T> { /* private fields */ }
Expand description
The ClusterControllerService provides methods to manage clusters of Compute Engine instances.
Implementations§
source§impl<T> ClusterControllerClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> ClusterControllerClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ClusterControllerClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn create_cluster(
&mut self,
request: impl IntoRequest<CreateClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_cluster( &mut self, request: impl IntoRequest<CreateClusterRequest>, ) -> Result<Response<Operation>, Status>
Creates a cluster in a project. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata.
sourcepub async fn update_cluster(
&mut self,
request: impl IntoRequest<UpdateClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_cluster( &mut self, request: impl IntoRequest<UpdateClusterRequest>, ) -> Result<Response<Operation>, Status>
Updates a cluster in a project. The returned
[Operation.metadata][google.longrunning.Operation.metadata] will be
ClusterOperationMetadata.
The cluster must be in a
[RUNNING
][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
is returned.
sourcepub async fn stop_cluster(
&mut self,
request: impl IntoRequest<StopClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn stop_cluster( &mut self, request: impl IntoRequest<StopClusterRequest>, ) -> Result<Response<Operation>, Status>
Stops a cluster in a project.
sourcepub async fn start_cluster(
&mut self,
request: impl IntoRequest<StartClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn start_cluster( &mut self, request: impl IntoRequest<StartClusterRequest>, ) -> Result<Response<Operation>, Status>
Starts a cluster in a project.
sourcepub async fn delete_cluster(
&mut self,
request: impl IntoRequest<DeleteClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_cluster( &mut self, request: impl IntoRequest<DeleteClusterRequest>, ) -> Result<Response<Operation>, Status>
Deletes a cluster in a project. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata.
sourcepub async fn get_cluster(
&mut self,
request: impl IntoRequest<GetClusterRequest>,
) -> Result<Response<Cluster>, Status>
pub async fn get_cluster( &mut self, request: impl IntoRequest<GetClusterRequest>, ) -> Result<Response<Cluster>, Status>
Gets the resource representation for a cluster in a project.
sourcepub async fn list_clusters(
&mut self,
request: impl IntoRequest<ListClustersRequest>,
) -> Result<Response<ListClustersResponse>, Status>
pub async fn list_clusters( &mut self, request: impl IntoRequest<ListClustersRequest>, ) -> Result<Response<ListClustersResponse>, Status>
Lists all regions/{region}/clusters in a project alphabetically.
sourcepub async fn diagnose_cluster(
&mut self,
request: impl IntoRequest<DiagnoseClusterRequest>,
) -> Result<Response<Operation>, Status>
pub async fn diagnose_cluster( &mut self, request: impl IntoRequest<DiagnoseClusterRequest>, ) -> Result<Response<Operation>, Status>
Gets cluster diagnostic information. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. After the operation completes, [Operation.response][google.longrunning.Operation.response] contains DiagnoseClusterResults.
Trait Implementations§
source§impl<T: Clone> Clone for ClusterControllerClient<T>
impl<T: Clone> Clone for ClusterControllerClient<T>
source§fn clone(&self) -> ClusterControllerClient<T>
fn clone(&self) -> ClusterControllerClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for ClusterControllerClient<T>
impl<T> RefUnwindSafe for ClusterControllerClient<T>where
T: RefUnwindSafe,
impl<T> Send for ClusterControllerClient<T>where
T: Send,
impl<T> Sync for ClusterControllerClient<T>where
T: Sync,
impl<T> Unpin for ClusterControllerClient<T>where
T: Unpin,
impl<T> UnwindSafe for ClusterControllerClient<T>where
T: UnwindSafe,
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