Struct google_api_proto::google::cloud::notebooks::v1::managed_notebook_service_client::ManagedNotebookServiceClient
source · pub struct ManagedNotebookServiceClient<T> { /* private fields */ }
Expand description
API v1 service for Managed Notebooks.
Implementations§
source§impl<T> ManagedNotebookServiceClient<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> ManagedNotebookServiceClient<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,
) -> ManagedNotebookServiceClient<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 list_runtimes(
&mut self,
request: impl IntoRequest<ListRuntimesRequest>,
) -> Result<Response<ListRuntimesResponse>, Status>
pub async fn list_runtimes( &mut self, request: impl IntoRequest<ListRuntimesRequest>, ) -> Result<Response<ListRuntimesResponse>, Status>
Lists Runtimes in a given project and location.
sourcepub async fn get_runtime(
&mut self,
request: impl IntoRequest<GetRuntimeRequest>,
) -> Result<Response<Runtime>, Status>
pub async fn get_runtime( &mut self, request: impl IntoRequest<GetRuntimeRequest>, ) -> Result<Response<Runtime>, Status>
Gets details of a single Runtime. The location must be a regional endpoint rather than zonal.
sourcepub async fn create_runtime(
&mut self,
request: impl IntoRequest<CreateRuntimeRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_runtime( &mut self, request: impl IntoRequest<CreateRuntimeRequest>, ) -> Result<Response<Operation>, Status>
Creates a new Runtime in a given project and location.
sourcepub async fn update_runtime(
&mut self,
request: impl IntoRequest<UpdateRuntimeRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_runtime( &mut self, request: impl IntoRequest<UpdateRuntimeRequest>, ) -> Result<Response<Operation>, Status>
Update Notebook Runtime configuration.
sourcepub async fn delete_runtime(
&mut self,
request: impl IntoRequest<DeleteRuntimeRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_runtime( &mut self, request: impl IntoRequest<DeleteRuntimeRequest>, ) -> Result<Response<Operation>, Status>
Deletes a single Runtime.
sourcepub async fn start_runtime(
&mut self,
request: impl IntoRequest<StartRuntimeRequest>,
) -> Result<Response<Operation>, Status>
pub async fn start_runtime( &mut self, request: impl IntoRequest<StartRuntimeRequest>, ) -> Result<Response<Operation>, Status>
Starts a Managed Notebook Runtime. Perform “Start” on GPU instances; “Resume” on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-instance
sourcepub async fn stop_runtime(
&mut self,
request: impl IntoRequest<StopRuntimeRequest>,
) -> Result<Response<Operation>, Status>
pub async fn stop_runtime( &mut self, request: impl IntoRequest<StopRuntimeRequest>, ) -> Result<Response<Operation>, Status>
Stops a Managed Notebook Runtime. Perform “Stop” on GPU instances; “Suspend” on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-instance
sourcepub async fn switch_runtime(
&mut self,
request: impl IntoRequest<SwitchRuntimeRequest>,
) -> Result<Response<Operation>, Status>
pub async fn switch_runtime( &mut self, request: impl IntoRequest<SwitchRuntimeRequest>, ) -> Result<Response<Operation>, Status>
Switch a Managed Notebook Runtime.
sourcepub async fn reset_runtime(
&mut self,
request: impl IntoRequest<ResetRuntimeRequest>,
) -> Result<Response<Operation>, Status>
pub async fn reset_runtime( &mut self, request: impl IntoRequest<ResetRuntimeRequest>, ) -> Result<Response<Operation>, Status>
Resets a Managed Notebook Runtime.
sourcepub async fn upgrade_runtime(
&mut self,
request: impl IntoRequest<UpgradeRuntimeRequest>,
) -> Result<Response<Operation>, Status>
pub async fn upgrade_runtime( &mut self, request: impl IntoRequest<UpgradeRuntimeRequest>, ) -> Result<Response<Operation>, Status>
Upgrades a Managed Notebook Runtime to the latest version.
sourcepub async fn report_runtime_event(
&mut self,
request: impl IntoRequest<ReportRuntimeEventRequest>,
) -> Result<Response<Operation>, Status>
pub async fn report_runtime_event( &mut self, request: impl IntoRequest<ReportRuntimeEventRequest>, ) -> Result<Response<Operation>, Status>
Report and process a runtime event.
sourcepub async fn refresh_runtime_token_internal(
&mut self,
request: impl IntoRequest<RefreshRuntimeTokenInternalRequest>,
) -> Result<Response<RefreshRuntimeTokenInternalResponse>, Status>
pub async fn refresh_runtime_token_internal( &mut self, request: impl IntoRequest<RefreshRuntimeTokenInternalRequest>, ) -> Result<Response<RefreshRuntimeTokenInternalResponse>, Status>
Gets an access token for the consumer service account that the customer attached to the runtime. Only accessible from the tenant instance.
sourcepub async fn diagnose_runtime(
&mut self,
request: impl IntoRequest<DiagnoseRuntimeRequest>,
) -> Result<Response<Operation>, Status>
pub async fn diagnose_runtime( &mut self, request: impl IntoRequest<DiagnoseRuntimeRequest>, ) -> Result<Response<Operation>, Status>
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
Trait Implementations§
source§impl<T: Clone> Clone for ManagedNotebookServiceClient<T>
impl<T: Clone> Clone for ManagedNotebookServiceClient<T>
source§fn clone(&self) -> ManagedNotebookServiceClient<T>
fn clone(&self) -> ManagedNotebookServiceClient<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 ManagedNotebookServiceClient<T>
impl<T> RefUnwindSafe for ManagedNotebookServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for ManagedNotebookServiceClient<T>where
T: Send,
impl<T> Sync for ManagedNotebookServiceClient<T>where
T: Sync,
impl<T> Unpin for ManagedNotebookServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for ManagedNotebookServiceClient<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