Struct gapi_grpc::google::cloud::notebooks::v1beta1::notebook_service_client::NotebookServiceClient[][src]

pub struct NotebookServiceClient<T> { /* fields omitted */ }

API v1beta1 service for Cloud AI Platform Notebooks.

Implementations

impl NotebookServiceClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> NotebookServiceClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn list_instances(
    &mut self,
    request: impl IntoRequest<ListInstancesRequest>
) -> Result<Response<ListInstancesResponse>, Status>
[src]

Lists instances in a given project and location.

pub async fn get_instance(
    &mut self,
    request: impl IntoRequest<GetInstanceRequest>
) -> Result<Response<Instance>, Status>
[src]

Gets details of a single Instance.

pub async fn create_instance(
    &mut self,
    request: impl IntoRequest<CreateInstanceRequest>
) -> Result<Response<Operation>, Status>
[src]

Creates a new Instance in a given project and location.

pub async fn register_instance(
    &mut self,
    request: impl IntoRequest<RegisterInstanceRequest>
) -> Result<Response<Operation>, Status>
[src]

Registers an existing legacy notebook instance to the Notebooks API server. Legacy instances are instances created with the legacy Compute Engine calls. They are not manageable by the Notebooks API out of the box. This call makes these instances manageable by the Notebooks API.

pub async fn set_instance_accelerator(
    &mut self,
    request: impl IntoRequest<SetInstanceAcceleratorRequest>
) -> Result<Response<Operation>, Status>
[src]

Updates the guest accelerators of a single Instance.

pub async fn set_instance_machine_type(
    &mut self,
    request: impl IntoRequest<SetInstanceMachineTypeRequest>
) -> Result<Response<Operation>, Status>
[src]

Updates the machine type of a single Instance.

pub async fn set_instance_labels(
    &mut self,
    request: impl IntoRequest<SetInstanceLabelsRequest>
) -> Result<Response<Operation>, Status>
[src]

Updates the labels of an Instance.

pub async fn delete_instance(
    &mut self,
    request: impl IntoRequest<DeleteInstanceRequest>
) -> Result<Response<Operation>, Status>
[src]

Deletes a single Instance.

pub async fn start_instance(
    &mut self,
    request: impl IntoRequest<StartInstanceRequest>
) -> Result<Response<Operation>, Status>
[src]

Starts a notebook instance.

pub async fn stop_instance(
    &mut self,
    request: impl IntoRequest<StopInstanceRequest>
) -> Result<Response<Operation>, Status>
[src]

Stops a notebook instance.

pub async fn reset_instance(
    &mut self,
    request: impl IntoRequest<ResetInstanceRequest>
) -> Result<Response<Operation>, Status>
[src]

Resets a notebook instance.

pub async fn report_instance_info(
    &mut self,
    request: impl IntoRequest<ReportInstanceInfoRequest>
) -> Result<Response<Operation>, Status>
[src]

Allows notebook instances to report their latest instance information to the Notebooks API server. The server will merge the reported information to the instance metadata store. Do not use this method directly.

pub async fn is_instance_upgradeable(
    &mut self,
    request: impl IntoRequest<IsInstanceUpgradeableRequest>
) -> Result<Response<IsInstanceUpgradeableResponse>, Status>
[src]

Check if a notebook instance is upgradable.

pub async fn upgrade_instance(
    &mut self,
    request: impl IntoRequest<UpgradeInstanceRequest>
) -> Result<Response<Operation>, Status>
[src]

Upgrades a notebook instance to the latest version.

pub async fn upgrade_instance_internal(
    &mut self,
    request: impl IntoRequest<UpgradeInstanceInternalRequest>
) -> Result<Response<Operation>, Status>
[src]

Allows notebook instances to call this endpoint to upgrade themselves. Do not use this method directly.

pub async fn list_environments(
    &mut self,
    request: impl IntoRequest<ListEnvironmentsRequest>
) -> Result<Response<ListEnvironmentsResponse>, Status>
[src]

Lists environments in a project.

pub async fn get_environment(
    &mut self,
    request: impl IntoRequest<GetEnvironmentRequest>
) -> Result<Response<Environment>, Status>
[src]

Gets details of a single Environment.

pub async fn create_environment(
    &mut self,
    request: impl IntoRequest<CreateEnvironmentRequest>
) -> Result<Response<Operation>, Status>
[src]

Creates a new Environment.

pub async fn delete_environment(
    &mut self,
    request: impl IntoRequest<DeleteEnvironmentRequest>
) -> Result<Response<Operation>, Status>
[src]

Deletes a single Environment.

Trait Implementations

impl<T: Clone> Clone for NotebookServiceClient<T>[src]

impl<T> Debug for NotebookServiceClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for NotebookServiceClient<T>

impl<T> Send for NotebookServiceClient<T> where
    T: Send

impl<T> Sync for NotebookServiceClient<T> where
    T: Sync

impl<T> Unpin for NotebookServiceClient<T> where
    T: Unpin

impl<T> !UnwindSafe for NotebookServiceClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]