Struct google_api_proto::google::cloud::gsuiteaddons::v1::g_suite_add_ons_client::GSuiteAddOnsClient
source · pub struct GSuiteAddOnsClient<T> { /* private fields */ }
Expand description
A service for managing Google Workspace Add-ons deployments.
A Google Workspace Add-on is a third-party embedded component that can be installed in Google Workspace Applications like Gmail, Calendar, Drive, and the Google Docs, Sheets, and Slides editors. Google Workspace Add-ons can display UI cards, receive contextual information from the host application, and perform actions in the host application (See: https://developers.google.com/gsuite/add-ons/overview for more information).
A Google Workspace Add-on deployment resource specifies metadata about the add-on, including a specification of the entry points in the host application that trigger add-on executions (see: https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests). Add-on deployments defined via the Google Workspace Add-ons API define their entrypoints using HTTPS URLs (See: https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes),
A Google Workspace Add-on deployment can be installed in developer mode, which allows an add-on developer to test the experience an end-user would see when installing and running the add-on in their G Suite applications. When running in developer mode, more detailed error messages are exposed in the add-on UI to aid in debugging.
A Google Workspace Add-on deployment can be published to Google Workspace Marketplace, which allows other Google Workspace users to discover and install the add-on. See: https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview for details.
Implementations§
source§impl<T> GSuiteAddOnsClient<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> GSuiteAddOnsClient<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,
) -> GSuiteAddOnsClient<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
Gets the authorization information for deployments in a given project.
sourcepub async fn create_deployment(
&mut self,
request: impl IntoRequest<CreateDeploymentRequest>,
) -> Result<Response<Deployment>, Status>
pub async fn create_deployment( &mut self, request: impl IntoRequest<CreateDeploymentRequest>, ) -> Result<Response<Deployment>, Status>
Creates a deployment with the specified name and configuration.
sourcepub async fn replace_deployment(
&mut self,
request: impl IntoRequest<ReplaceDeploymentRequest>,
) -> Result<Response<Deployment>, Status>
pub async fn replace_deployment( &mut self, request: impl IntoRequest<ReplaceDeploymentRequest>, ) -> Result<Response<Deployment>, Status>
Creates or replaces a deployment with the specified name.
sourcepub async fn get_deployment(
&mut self,
request: impl IntoRequest<GetDeploymentRequest>,
) -> Result<Response<Deployment>, Status>
pub async fn get_deployment( &mut self, request: impl IntoRequest<GetDeploymentRequest>, ) -> Result<Response<Deployment>, Status>
Gets the deployment with the specified name.
sourcepub async fn list_deployments(
&mut self,
request: impl IntoRequest<ListDeploymentsRequest>,
) -> Result<Response<ListDeploymentsResponse>, Status>
pub async fn list_deployments( &mut self, request: impl IntoRequest<ListDeploymentsRequest>, ) -> Result<Response<ListDeploymentsResponse>, Status>
Lists all deployments in a particular project.
sourcepub async fn delete_deployment(
&mut self,
request: impl IntoRequest<DeleteDeploymentRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_deployment( &mut self, request: impl IntoRequest<DeleteDeploymentRequest>, ) -> Result<Response<()>, Status>
Deletes the deployment with the given name.
sourcepub async fn install_deployment(
&mut self,
request: impl IntoRequest<InstallDeploymentRequest>,
) -> Result<Response<()>, Status>
pub async fn install_deployment( &mut self, request: impl IntoRequest<InstallDeploymentRequest>, ) -> Result<Response<()>, Status>
Installs a deployment in developer mode. See: https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons.
sourcepub async fn uninstall_deployment(
&mut self,
request: impl IntoRequest<UninstallDeploymentRequest>,
) -> Result<Response<()>, Status>
pub async fn uninstall_deployment( &mut self, request: impl IntoRequest<UninstallDeploymentRequest>, ) -> Result<Response<()>, Status>
Uninstalls a developer mode deployment. See: https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons.
sourcepub async fn get_install_status(
&mut self,
request: impl IntoRequest<GetInstallStatusRequest>,
) -> Result<Response<InstallStatus>, Status>
pub async fn get_install_status( &mut self, request: impl IntoRequest<GetInstallStatusRequest>, ) -> Result<Response<InstallStatus>, Status>
Fetches the install status of a developer mode deployment.
Trait Implementations§
source§impl<T: Clone> Clone for GSuiteAddOnsClient<T>
impl<T: Clone> Clone for GSuiteAddOnsClient<T>
source§fn clone(&self) -> GSuiteAddOnsClient<T>
fn clone(&self) -> GSuiteAddOnsClient<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 GSuiteAddOnsClient<T>
impl<T> RefUnwindSafe for GSuiteAddOnsClient<T>where
T: RefUnwindSafe,
impl<T> Send for GSuiteAddOnsClient<T>where
T: Send,
impl<T> Sync for GSuiteAddOnsClient<T>where
T: Sync,
impl<T> Unpin for GSuiteAddOnsClient<T>where
T: Unpin,
impl<T> UnwindSafe for GSuiteAddOnsClient<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