pub struct ApplicationServiceClient<T> { /* private fields */ }Expand description
ApplicationService is the service providing API methods for managing applications.
Implementations§
Source§impl<T> ApplicationServiceClient<T>where
T: GrpcService<Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> ApplicationServiceClient<T>where
T: GrpcService<Body>,
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,
) -> ApplicationServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<Body>, Response = Response<<T as GrpcService<Body>>::ResponseBody>>,
<T as Service<Request<Body>>>::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 create(
&mut self,
request: impl IntoRequest<CreateApplicationRequest>,
) -> Result<Response<CreateApplicationResponse>, Status>
pub async fn create( &mut self, request: impl IntoRequest<CreateApplicationRequest>, ) -> Result<Response<CreateApplicationResponse>, Status>
Create creates the given application.
Sourcepub async fn get(
&mut self,
request: impl IntoRequest<GetApplicationRequest>,
) -> Result<Response<GetApplicationResponse>, Status>
pub async fn get( &mut self, request: impl IntoRequest<GetApplicationRequest>, ) -> Result<Response<GetApplicationResponse>, Status>
Get the application for the given ID.
Sourcepub async fn update(
&mut self,
request: impl IntoRequest<UpdateApplicationRequest>,
) -> Result<Response<()>, Status>
pub async fn update( &mut self, request: impl IntoRequest<UpdateApplicationRequest>, ) -> Result<Response<()>, Status>
Update updates the given application.
Sourcepub async fn delete(
&mut self,
request: impl IntoRequest<DeleteApplicationRequest>,
) -> Result<Response<()>, Status>
pub async fn delete( &mut self, request: impl IntoRequest<DeleteApplicationRequest>, ) -> Result<Response<()>, Status>
Delete the application for the given ID.
Sourcepub async fn list(
&mut self,
request: impl IntoRequest<ListApplicationsRequest>,
) -> Result<Response<ListApplicationsResponse>, Status>
pub async fn list( &mut self, request: impl IntoRequest<ListApplicationsRequest>, ) -> Result<Response<ListApplicationsResponse>, Status>
Get the list of applications.
Sourcepub async fn list_integrations(
&mut self,
request: impl IntoRequest<ListIntegrationsRequest>,
) -> Result<Response<ListIntegrationsResponse>, Status>
pub async fn list_integrations( &mut self, request: impl IntoRequest<ListIntegrationsRequest>, ) -> Result<Response<ListIntegrationsResponse>, Status>
List all configured integrations.
Sourcepub async fn create_http_integration(
&mut self,
request: impl IntoRequest<CreateHttpIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn create_http_integration( &mut self, request: impl IntoRequest<CreateHttpIntegrationRequest>, ) -> Result<Response<()>, Status>
Create HTTP integration.
Sourcepub async fn get_http_integration(
&mut self,
request: impl IntoRequest<GetHttpIntegrationRequest>,
) -> Result<Response<GetHttpIntegrationResponse>, Status>
pub async fn get_http_integration( &mut self, request: impl IntoRequest<GetHttpIntegrationRequest>, ) -> Result<Response<GetHttpIntegrationResponse>, Status>
Get the configured HTTP integration.
Sourcepub async fn update_http_integration(
&mut self,
request: impl IntoRequest<UpdateHttpIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn update_http_integration( &mut self, request: impl IntoRequest<UpdateHttpIntegrationRequest>, ) -> Result<Response<()>, Status>
Update the HTTP integration.
Sourcepub async fn delete_http_integration(
&mut self,
request: impl IntoRequest<DeleteHttpIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_http_integration( &mut self, request: impl IntoRequest<DeleteHttpIntegrationRequest>, ) -> Result<Response<()>, Status>
Delete the HTTP integration.
Sourcepub async fn create_influx_db_integration(
&mut self,
request: impl IntoRequest<CreateInfluxDbIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn create_influx_db_integration( &mut self, request: impl IntoRequest<CreateInfluxDbIntegrationRequest>, ) -> Result<Response<()>, Status>
Create InfluxDb integration.
Sourcepub async fn get_influx_db_integration(
&mut self,
request: impl IntoRequest<GetInfluxDbIntegrationRequest>,
) -> Result<Response<GetInfluxDbIntegrationResponse>, Status>
pub async fn get_influx_db_integration( &mut self, request: impl IntoRequest<GetInfluxDbIntegrationRequest>, ) -> Result<Response<GetInfluxDbIntegrationResponse>, Status>
Get InfluxDb integration.
Sourcepub async fn update_influx_db_integration(
&mut self,
request: impl IntoRequest<UpdateInfluxDbIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn update_influx_db_integration( &mut self, request: impl IntoRequest<UpdateInfluxDbIntegrationRequest>, ) -> Result<Response<()>, Status>
Update InfluxDb integration.
Sourcepub async fn delete_influx_db_integration(
&mut self,
request: impl IntoRequest<DeleteInfluxDbIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_influx_db_integration( &mut self, request: impl IntoRequest<DeleteInfluxDbIntegrationRequest>, ) -> Result<Response<()>, Status>
Delete InfluxDb integration.
Sourcepub async fn create_things_board_integration(
&mut self,
request: impl IntoRequest<CreateThingsBoardIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn create_things_board_integration( &mut self, request: impl IntoRequest<CreateThingsBoardIntegrationRequest>, ) -> Result<Response<()>, Status>
Create ThingsBoard integration.
Sourcepub async fn get_things_board_integration(
&mut self,
request: impl IntoRequest<GetThingsBoardIntegrationRequest>,
) -> Result<Response<GetThingsBoardIntegrationResponse>, Status>
pub async fn get_things_board_integration( &mut self, request: impl IntoRequest<GetThingsBoardIntegrationRequest>, ) -> Result<Response<GetThingsBoardIntegrationResponse>, Status>
Get ThingsBoard integration.
Sourcepub async fn update_things_board_integration(
&mut self,
request: impl IntoRequest<UpdateThingsBoardIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn update_things_board_integration( &mut self, request: impl IntoRequest<UpdateThingsBoardIntegrationRequest>, ) -> Result<Response<()>, Status>
Update ThingsBoard integration.
Sourcepub async fn delete_things_board_integration(
&mut self,
request: impl IntoRequest<DeleteThingsBoardIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_things_board_integration( &mut self, request: impl IntoRequest<DeleteThingsBoardIntegrationRequest>, ) -> Result<Response<()>, Status>
Delete ThingsBoard integration.
Sourcepub async fn create_my_devices_integration(
&mut self,
request: impl IntoRequest<CreateMyDevicesIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn create_my_devices_integration( &mut self, request: impl IntoRequest<CreateMyDevicesIntegrationRequest>, ) -> Result<Response<()>, Status>
Create myDevices integration.
Sourcepub async fn get_my_devices_integration(
&mut self,
request: impl IntoRequest<GetMyDevicesIntegrationRequest>,
) -> Result<Response<GetMyDevicesIntegrationResponse>, Status>
pub async fn get_my_devices_integration( &mut self, request: impl IntoRequest<GetMyDevicesIntegrationRequest>, ) -> Result<Response<GetMyDevicesIntegrationResponse>, Status>
Get myDevices integration.
Sourcepub async fn update_my_devices_integration(
&mut self,
request: impl IntoRequest<UpdateMyDevicesIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn update_my_devices_integration( &mut self, request: impl IntoRequest<UpdateMyDevicesIntegrationRequest>, ) -> Result<Response<()>, Status>
Update myDevices integration.
Sourcepub async fn delete_my_devices_integration(
&mut self,
request: impl IntoRequest<DeleteMyDevicesIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_my_devices_integration( &mut self, request: impl IntoRequest<DeleteMyDevicesIntegrationRequest>, ) -> Result<Response<()>, Status>
Delete myDevices integration.
Sourcepub async fn create_gcp_pub_sub_integration(
&mut self,
request: impl IntoRequest<CreateGcpPubSubIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn create_gcp_pub_sub_integration( &mut self, request: impl IntoRequest<CreateGcpPubSubIntegrationRequest>, ) -> Result<Response<()>, Status>
Create GCP Pub/Sub integration.
Sourcepub async fn get_gcp_pub_sub_integration(
&mut self,
request: impl IntoRequest<GetGcpPubSubIntegrationRequest>,
) -> Result<Response<GetGcpPubSubIntegrationResponse>, Status>
pub async fn get_gcp_pub_sub_integration( &mut self, request: impl IntoRequest<GetGcpPubSubIntegrationRequest>, ) -> Result<Response<GetGcpPubSubIntegrationResponse>, Status>
Get GCP Pub/Sub integration.
Sourcepub async fn update_gcp_pub_sub_integration(
&mut self,
request: impl IntoRequest<UpdateGcpPubSubIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn update_gcp_pub_sub_integration( &mut self, request: impl IntoRequest<UpdateGcpPubSubIntegrationRequest>, ) -> Result<Response<()>, Status>
Update GCP Pub/Sub integration.
Sourcepub async fn delete_gcp_pub_sub_integration(
&mut self,
request: impl IntoRequest<DeleteGcpPubSubIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_gcp_pub_sub_integration( &mut self, request: impl IntoRequest<DeleteGcpPubSubIntegrationRequest>, ) -> Result<Response<()>, Status>
Delete GCP Pub/Sub integration.
Sourcepub async fn create_aws_sns_integration(
&mut self,
request: impl IntoRequest<CreateAwsSnsIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn create_aws_sns_integration( &mut self, request: impl IntoRequest<CreateAwsSnsIntegrationRequest>, ) -> Result<Response<()>, Status>
Create AWS SNS integration.
Sourcepub async fn get_aws_sns_integration(
&mut self,
request: impl IntoRequest<GetAwsSnsIntegrationRequest>,
) -> Result<Response<GetAwsSnsIntegrationResponse>, Status>
pub async fn get_aws_sns_integration( &mut self, request: impl IntoRequest<GetAwsSnsIntegrationRequest>, ) -> Result<Response<GetAwsSnsIntegrationResponse>, Status>
Get AWS SNS integration.
Sourcepub async fn update_aws_sns_integration(
&mut self,
request: impl IntoRequest<UpdateAwsSnsIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn update_aws_sns_integration( &mut self, request: impl IntoRequest<UpdateAwsSnsIntegrationRequest>, ) -> Result<Response<()>, Status>
Update AWS SNS integration.
Sourcepub async fn delete_aws_sns_integration(
&mut self,
request: impl IntoRequest<DeleteAwsSnsIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_aws_sns_integration( &mut self, request: impl IntoRequest<DeleteAwsSnsIntegrationRequest>, ) -> Result<Response<()>, Status>
Delete AWS SNS integration.
Sourcepub async fn create_azure_service_bus_integration(
&mut self,
request: impl IntoRequest<CreateAzureServiceBusIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn create_azure_service_bus_integration( &mut self, request: impl IntoRequest<CreateAzureServiceBusIntegrationRequest>, ) -> Result<Response<()>, Status>
Create Azure Service-Bus integration.
Sourcepub async fn get_azure_service_bus_integration(
&mut self,
request: impl IntoRequest<GetAzureServiceBusIntegrationRequest>,
) -> Result<Response<GetAzureServiceBusIntegrationResponse>, Status>
pub async fn get_azure_service_bus_integration( &mut self, request: impl IntoRequest<GetAzureServiceBusIntegrationRequest>, ) -> Result<Response<GetAzureServiceBusIntegrationResponse>, Status>
Get Azure Service-Bus integration.
Sourcepub async fn update_azure_service_bus_integration(
&mut self,
request: impl IntoRequest<UpdateAzureServiceBusIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn update_azure_service_bus_integration( &mut self, request: impl IntoRequest<UpdateAzureServiceBusIntegrationRequest>, ) -> Result<Response<()>, Status>
Update Azure Service-Bus integration.
Sourcepub async fn delete_azure_service_bus_integration(
&mut self,
request: impl IntoRequest<DeleteAzureServiceBusIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_azure_service_bus_integration( &mut self, request: impl IntoRequest<DeleteAzureServiceBusIntegrationRequest>, ) -> Result<Response<()>, Status>
Delete Azure Service-Bus integration.
Sourcepub async fn create_pilot_things_integration(
&mut self,
request: impl IntoRequest<CreatePilotThingsIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn create_pilot_things_integration( &mut self, request: impl IntoRequest<CreatePilotThingsIntegrationRequest>, ) -> Result<Response<()>, Status>
Create Pilot Things integration.
Sourcepub async fn get_pilot_things_integration(
&mut self,
request: impl IntoRequest<GetPilotThingsIntegrationRequest>,
) -> Result<Response<GetPilotThingsIntegrationResponse>, Status>
pub async fn get_pilot_things_integration( &mut self, request: impl IntoRequest<GetPilotThingsIntegrationRequest>, ) -> Result<Response<GetPilotThingsIntegrationResponse>, Status>
Get Pilot Things integration.
Sourcepub async fn update_pilot_things_integration(
&mut self,
request: impl IntoRequest<UpdatePilotThingsIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn update_pilot_things_integration( &mut self, request: impl IntoRequest<UpdatePilotThingsIntegrationRequest>, ) -> Result<Response<()>, Status>
Update Pilot Things integration.
Sourcepub async fn delete_pilot_things_integration(
&mut self,
request: impl IntoRequest<DeletePilotThingsIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_pilot_things_integration( &mut self, request: impl IntoRequest<DeletePilotThingsIntegrationRequest>, ) -> Result<Response<()>, Status>
Delete Pilot Things integration.
Sourcepub async fn create_ifttt_integration(
&mut self,
request: impl IntoRequest<CreateIftttIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn create_ifttt_integration( &mut self, request: impl IntoRequest<CreateIftttIntegrationRequest>, ) -> Result<Response<()>, Status>
Create IFTTT integration.
Sourcepub async fn get_ifttt_integration(
&mut self,
request: impl IntoRequest<GetIftttIntegrationRequest>,
) -> Result<Response<GetIftttIntegrationResponse>, Status>
pub async fn get_ifttt_integration( &mut self, request: impl IntoRequest<GetIftttIntegrationRequest>, ) -> Result<Response<GetIftttIntegrationResponse>, Status>
Get IFTTT integration.
Sourcepub async fn update_ifttt_integration(
&mut self,
request: impl IntoRequest<UpdateIftttIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn update_ifttt_integration( &mut self, request: impl IntoRequest<UpdateIftttIntegrationRequest>, ) -> Result<Response<()>, Status>
Update IFTTT integration.
Sourcepub async fn delete_ifttt_integration(
&mut self,
request: impl IntoRequest<DeleteIftttIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_ifttt_integration( &mut self, request: impl IntoRequest<DeleteIftttIntegrationRequest>, ) -> Result<Response<()>, Status>
Delete IFTTT integration.
Sourcepub async fn create_blynk_integration(
&mut self,
request: impl IntoRequest<CreateBlynkIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn create_blynk_integration( &mut self, request: impl IntoRequest<CreateBlynkIntegrationRequest>, ) -> Result<Response<()>, Status>
Create Blynk integration.
Sourcepub async fn get_blynk_integration(
&mut self,
request: impl IntoRequest<GetBlynkIntegrationRequest>,
) -> Result<Response<GetBlynkIntegrationResponse>, Status>
pub async fn get_blynk_integration( &mut self, request: impl IntoRequest<GetBlynkIntegrationRequest>, ) -> Result<Response<GetBlynkIntegrationResponse>, Status>
Get Blynk integration.
Sourcepub async fn update_blynk_integration(
&mut self,
request: impl IntoRequest<UpdateBlynkIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn update_blynk_integration( &mut self, request: impl IntoRequest<UpdateBlynkIntegrationRequest>, ) -> Result<Response<()>, Status>
Update Blynk integration.
Sourcepub async fn delete_blynk_integration(
&mut self,
request: impl IntoRequest<DeleteBlynkIntegrationRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_blynk_integration( &mut self, request: impl IntoRequest<DeleteBlynkIntegrationRequest>, ) -> Result<Response<()>, Status>
Delete Blynk integration.
Sourcepub async fn generate_mqtt_integration_client_certificate(
&mut self,
request: impl IntoRequest<GenerateMqttIntegrationClientCertificateRequest>,
) -> Result<Response<GenerateMqttIntegrationClientCertificateResponse>, Status>
pub async fn generate_mqtt_integration_client_certificate( &mut self, request: impl IntoRequest<GenerateMqttIntegrationClientCertificateRequest>, ) -> Result<Response<GenerateMqttIntegrationClientCertificateResponse>, Status>
Generates application ID specific client-certificate.
Sourcepub async fn list_device_profiles(
&mut self,
request: impl IntoRequest<ListApplicationDeviceProfilesRequest>,
) -> Result<Response<ListApplicationDeviceProfilesResponse>, Status>
pub async fn list_device_profiles( &mut self, request: impl IntoRequest<ListApplicationDeviceProfilesRequest>, ) -> Result<Response<ListApplicationDeviceProfilesResponse>, Status>
List device-profiles used within the given application.
List device tags used within the given application.
Trait Implementations§
Source§impl<T: Clone> Clone for ApplicationServiceClient<T>
impl<T: Clone> Clone for ApplicationServiceClient<T>
Source§fn clone(&self) -> ApplicationServiceClient<T>
fn clone(&self) -> ApplicationServiceClient<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 ApplicationServiceClient<T>
impl<T> RefUnwindSafe for ApplicationServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for ApplicationServiceClient<T>where
T: Send,
impl<T> Sync for ApplicationServiceClient<T>where
T: Sync,
impl<T> Unpin for ApplicationServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for ApplicationServiceClient<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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