Struct google_api_proto::google::cloud::eventarc::v1::eventarc_client::EventarcClient
source · pub struct EventarcClient<T> { /* private fields */ }
Expand description
Eventarc allows users to subscribe to various events that are provided by Google Cloud services and forward them to supported destinations.
Implementations§
source§impl<T> EventarcClient<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> EventarcClient<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,
) -> EventarcClient<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 get_trigger(
&mut self,
request: impl IntoRequest<GetTriggerRequest>,
) -> Result<Response<Trigger>, Status>
pub async fn get_trigger( &mut self, request: impl IntoRequest<GetTriggerRequest>, ) -> Result<Response<Trigger>, Status>
Get a single trigger.
sourcepub async fn list_triggers(
&mut self,
request: impl IntoRequest<ListTriggersRequest>,
) -> Result<Response<ListTriggersResponse>, Status>
pub async fn list_triggers( &mut self, request: impl IntoRequest<ListTriggersRequest>, ) -> Result<Response<ListTriggersResponse>, Status>
List triggers.
sourcepub async fn create_trigger(
&mut self,
request: impl IntoRequest<CreateTriggerRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_trigger( &mut self, request: impl IntoRequest<CreateTriggerRequest>, ) -> Result<Response<Operation>, Status>
Create a new trigger in a particular project and location.
sourcepub async fn update_trigger(
&mut self,
request: impl IntoRequest<UpdateTriggerRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_trigger( &mut self, request: impl IntoRequest<UpdateTriggerRequest>, ) -> Result<Response<Operation>, Status>
Update a single trigger.
sourcepub async fn delete_trigger(
&mut self,
request: impl IntoRequest<DeleteTriggerRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_trigger( &mut self, request: impl IntoRequest<DeleteTriggerRequest>, ) -> Result<Response<Operation>, Status>
Delete a single trigger.
sourcepub async fn get_channel(
&mut self,
request: impl IntoRequest<GetChannelRequest>,
) -> Result<Response<Channel>, Status>
pub async fn get_channel( &mut self, request: impl IntoRequest<GetChannelRequest>, ) -> Result<Response<Channel>, Status>
Get a single Channel.
sourcepub async fn list_channels(
&mut self,
request: impl IntoRequest<ListChannelsRequest>,
) -> Result<Response<ListChannelsResponse>, Status>
pub async fn list_channels( &mut self, request: impl IntoRequest<ListChannelsRequest>, ) -> Result<Response<ListChannelsResponse>, Status>
List channels.
sourcepub async fn create_channel(
&mut self,
request: impl IntoRequest<CreateChannelRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_channel( &mut self, request: impl IntoRequest<CreateChannelRequest>, ) -> Result<Response<Operation>, Status>
Create a new channel in a particular project and location.
sourcepub async fn update_channel(
&mut self,
request: impl IntoRequest<UpdateChannelRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_channel( &mut self, request: impl IntoRequest<UpdateChannelRequest>, ) -> Result<Response<Operation>, Status>
Update a single channel.
sourcepub async fn delete_channel(
&mut self,
request: impl IntoRequest<DeleteChannelRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_channel( &mut self, request: impl IntoRequest<DeleteChannelRequest>, ) -> Result<Response<Operation>, Status>
Delete a single channel.
sourcepub async fn get_provider(
&mut self,
request: impl IntoRequest<GetProviderRequest>,
) -> Result<Response<Provider>, Status>
pub async fn get_provider( &mut self, request: impl IntoRequest<GetProviderRequest>, ) -> Result<Response<Provider>, Status>
Get a single Provider.
sourcepub async fn list_providers(
&mut self,
request: impl IntoRequest<ListProvidersRequest>,
) -> Result<Response<ListProvidersResponse>, Status>
pub async fn list_providers( &mut self, request: impl IntoRequest<ListProvidersRequest>, ) -> Result<Response<ListProvidersResponse>, Status>
List providers.
sourcepub async fn get_channel_connection(
&mut self,
request: impl IntoRequest<GetChannelConnectionRequest>,
) -> Result<Response<ChannelConnection>, Status>
pub async fn get_channel_connection( &mut self, request: impl IntoRequest<GetChannelConnectionRequest>, ) -> Result<Response<ChannelConnection>, Status>
Get a single ChannelConnection.
sourcepub async fn list_channel_connections(
&mut self,
request: impl IntoRequest<ListChannelConnectionsRequest>,
) -> Result<Response<ListChannelConnectionsResponse>, Status>
pub async fn list_channel_connections( &mut self, request: impl IntoRequest<ListChannelConnectionsRequest>, ) -> Result<Response<ListChannelConnectionsResponse>, Status>
List channel connections.
sourcepub async fn create_channel_connection(
&mut self,
request: impl IntoRequest<CreateChannelConnectionRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_channel_connection( &mut self, request: impl IntoRequest<CreateChannelConnectionRequest>, ) -> Result<Response<Operation>, Status>
Create a new ChannelConnection in a particular project and location.
sourcepub async fn delete_channel_connection(
&mut self,
request: impl IntoRequest<DeleteChannelConnectionRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_channel_connection( &mut self, request: impl IntoRequest<DeleteChannelConnectionRequest>, ) -> Result<Response<Operation>, Status>
Delete a single ChannelConnection.
sourcepub async fn get_google_channel_config(
&mut self,
request: impl IntoRequest<GetGoogleChannelConfigRequest>,
) -> Result<Response<GoogleChannelConfig>, Status>
pub async fn get_google_channel_config( &mut self, request: impl IntoRequest<GetGoogleChannelConfigRequest>, ) -> Result<Response<GoogleChannelConfig>, Status>
Get a GoogleChannelConfig
sourcepub async fn update_google_channel_config(
&mut self,
request: impl IntoRequest<UpdateGoogleChannelConfigRequest>,
) -> Result<Response<GoogleChannelConfig>, Status>
pub async fn update_google_channel_config( &mut self, request: impl IntoRequest<UpdateGoogleChannelConfigRequest>, ) -> Result<Response<GoogleChannelConfig>, Status>
Update a single GoogleChannelConfig
Trait Implementations§
source§impl<T: Clone> Clone for EventarcClient<T>
impl<T: Clone> Clone for EventarcClient<T>
source§fn clone(&self) -> EventarcClient<T>
fn clone(&self) -> EventarcClient<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 EventarcClient<T>
impl<T> RefUnwindSafe for EventarcClient<T>where
T: RefUnwindSafe,
impl<T> Send for EventarcClient<T>where
T: Send,
impl<T> Sync for EventarcClient<T>where
T: Sync,
impl<T> Unpin for EventarcClient<T>where
T: Unpin,
impl<T> UnwindSafe for EventarcClient<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