Struct google_api_proto::google::apps::alertcenter::v1beta1::alert_center_service_client::AlertCenterServiceClient
source · pub struct AlertCenterServiceClient<T> { /* private fields */ }
Expand description
Google Workspace Alert Center API (beta).
Implementations§
source§impl<T> AlertCenterServiceClient<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> AlertCenterServiceClient<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,
) -> AlertCenterServiceClient<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_alerts(
&mut self,
request: impl IntoRequest<ListAlertsRequest>,
) -> Result<Response<ListAlertsResponse>, Status>
pub async fn list_alerts( &mut self, request: impl IntoRequest<ListAlertsRequest>, ) -> Result<Response<ListAlertsResponse>, Status>
Lists the alerts.
sourcepub async fn get_alert(
&mut self,
request: impl IntoRequest<GetAlertRequest>,
) -> Result<Response<Alert>, Status>
pub async fn get_alert( &mut self, request: impl IntoRequest<GetAlertRequest>, ) -> Result<Response<Alert>, Status>
Gets the specified alert. Attempting to get a nonexistent alert returns
NOT_FOUND
error.
sourcepub async fn delete_alert(
&mut self,
request: impl IntoRequest<DeleteAlertRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_alert( &mut self, request: impl IntoRequest<DeleteAlertRequest>, ) -> Result<Response<()>, Status>
Marks the specified alert for deletion. An alert that has been marked for
deletion is removed from Alert Center after 30 days.
Marking an alert for deletion has no effect on an alert which has
already been marked for deletion. Attempting to mark a nonexistent alert
for deletion results in a NOT_FOUND
error.
sourcepub async fn undelete_alert(
&mut self,
request: impl IntoRequest<UndeleteAlertRequest>,
) -> Result<Response<Alert>, Status>
pub async fn undelete_alert( &mut self, request: impl IntoRequest<UndeleteAlertRequest>, ) -> Result<Response<Alert>, Status>
Restores, or “undeletes”, an alert that was marked for deletion within the
past 30 days. Attempting to undelete an alert which was marked for deletion
over 30 days ago (which has been removed from the Alert Center database) or
a nonexistent alert returns a NOT_FOUND
error. Attempting to
undelete an alert which has not been marked for deletion has no effect.
sourcepub async fn create_alert_feedback(
&mut self,
request: impl IntoRequest<CreateAlertFeedbackRequest>,
) -> Result<Response<AlertFeedback>, Status>
pub async fn create_alert_feedback( &mut self, request: impl IntoRequest<CreateAlertFeedbackRequest>, ) -> Result<Response<AlertFeedback>, Status>
Creates new feedback for an alert. Attempting to create a feedback for
a non-existent alert returns NOT_FOUND
error. Attempting to create a
feedback for an alert that is marked for deletion returns
`FAILED_PRECONDITION’ error.
sourcepub async fn list_alert_feedback(
&mut self,
request: impl IntoRequest<ListAlertFeedbackRequest>,
) -> Result<Response<ListAlertFeedbackResponse>, Status>
pub async fn list_alert_feedback( &mut self, request: impl IntoRequest<ListAlertFeedbackRequest>, ) -> Result<Response<ListAlertFeedbackResponse>, Status>
Lists all the feedback for an alert. Attempting to list feedbacks for
a non-existent alert returns NOT_FOUND
error.
sourcepub async fn get_alert_metadata(
&mut self,
request: impl IntoRequest<GetAlertMetadataRequest>,
) -> Result<Response<AlertMetadata>, Status>
pub async fn get_alert_metadata( &mut self, request: impl IntoRequest<GetAlertMetadataRequest>, ) -> Result<Response<AlertMetadata>, Status>
Returns the metadata of an alert. Attempting to get metadata for
a non-existent alert returns NOT_FOUND
error.
sourcepub async fn get_settings(
&mut self,
request: impl IntoRequest<GetSettingsRequest>,
) -> Result<Response<Settings>, Status>
pub async fn get_settings( &mut self, request: impl IntoRequest<GetSettingsRequest>, ) -> Result<Response<Settings>, Status>
Returns customer-level settings.
sourcepub async fn update_settings(
&mut self,
request: impl IntoRequest<UpdateSettingsRequest>,
) -> Result<Response<Settings>, Status>
pub async fn update_settings( &mut self, request: impl IntoRequest<UpdateSettingsRequest>, ) -> Result<Response<Settings>, Status>
Updates the customer-level settings.
sourcepub async fn batch_delete_alerts(
&mut self,
request: impl IntoRequest<BatchDeleteAlertsRequest>,
) -> Result<Response<BatchDeleteAlertsResponse>, Status>
pub async fn batch_delete_alerts( &mut self, request: impl IntoRequest<BatchDeleteAlertsRequest>, ) -> Result<Response<BatchDeleteAlertsResponse>, Status>
Performs batch delete operation on alerts.
sourcepub async fn batch_undelete_alerts(
&mut self,
request: impl IntoRequest<BatchUndeleteAlertsRequest>,
) -> Result<Response<BatchUndeleteAlertsResponse>, Status>
pub async fn batch_undelete_alerts( &mut self, request: impl IntoRequest<BatchUndeleteAlertsRequest>, ) -> Result<Response<BatchUndeleteAlertsResponse>, Status>
Performs batch undelete operation on alerts.
Trait Implementations§
source§impl<T: Clone> Clone for AlertCenterServiceClient<T>
impl<T: Clone> Clone for AlertCenterServiceClient<T>
source§fn clone(&self) -> AlertCenterServiceClient<T>
fn clone(&self) -> AlertCenterServiceClient<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 AlertCenterServiceClient<T>
impl<T> RefUnwindSafe for AlertCenterServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for AlertCenterServiceClient<T>where
T: Send,
impl<T> Sync for AlertCenterServiceClient<T>where
T: Sync,
impl<T> Unpin for AlertCenterServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for AlertCenterServiceClient<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