pub struct FlowServiceClient<T> { /* private fields */ }
Expand description
Service for managing OpenIAP Flow (OpenFlow)
Implementations§
Source§impl<T> FlowServiceClient<T>where
T: GrpcService<UnsyncBoxBody<Bytes, Status>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::Error: Into<Box<dyn Error + Send + Sync>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Send + Sync>> + Send,
impl<T> FlowServiceClient<T>where
T: GrpcService<UnsyncBoxBody<Bytes, Status>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::Error: Into<Box<dyn Error + Send + Sync>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Send + Sync>> + Send,
pub fn new(inner: T) -> FlowServiceClient<T>
pub fn with_origin(inner: T, origin: Uri) -> FlowServiceClient<T>
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> FlowServiceClient<InterceptedService<T, F>>where
F: Interceptor,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Default,
T: Service<Request<UnsyncBoxBody<Bytes, Status>>, Response = Response<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody>>,
<T as Service<Request<UnsyncBoxBody<Bytes, Status>>>>::Error: Into<Box<dyn Error + Send + Sync>> + Send + Sync,
Sourcepub fn send_compressed(
self,
encoding: CompressionEncoding,
) -> FlowServiceClient<T>
pub fn send_compressed( self, encoding: CompressionEncoding, ) -> FlowServiceClient<T>
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,
) -> FlowServiceClient<T>
pub fn accept_compressed( self, encoding: CompressionEncoding, ) -> FlowServiceClient<T>
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> FlowServiceClient<T>
pub fn max_decoding_message_size(self, limit: usize) -> FlowServiceClient<T>
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> FlowServiceClient<T>
pub fn max_encoding_message_size(self, limit: usize) -> FlowServiceClient<T>
Limits the maximum size of an encoded message.
Default: usize::MAX
Sourcepub async fn setup_stream(
&mut self,
request: impl IntoStreamingRequest<Message = Envelope>,
) -> Result<Response<Streaming<Envelope>>, Status>
pub async fn setup_stream( &mut self, request: impl IntoStreamingRequest<Message = Envelope>, ) -> Result<Response<Streaming<Envelope>>, Status>
Establishes a bidirectional streaming connection for sending and receiving Envelopes. This method is used to set up a real-time data stream for communication. Returns a bidirectional stream of Envelopes.
Sourcepub async fn signin(
&mut self,
request: impl IntoRequest<SigninRequest>,
) -> Result<Response<SigninResponse>, Status>
pub async fn signin( &mut self, request: impl IntoRequest<SigninRequest>, ) -> Result<Response<SigninResponse>, Status>
Signs in a user with the provided SigninRequest and returns a SigninResponse. This method authenticates a user and provides access to the OpenFlow system. Returns a SigninResponse containing authentication details.
Sourcepub async fn download(
&mut self,
request: impl IntoRequest<DownloadRequest>,
) -> Result<Response<DownloadResponse>, Status>
pub async fn download( &mut self, request: impl IntoRequest<DownloadRequest>, ) -> Result<Response<DownloadResponse>, Status>
Downloads a file from OpenFlow This method retrieves files from the OpenFlow system based on the specified criteria. This will initiaize a DownLoad stream, and once completed send send a DownloadResponse
Sourcepub async fn upload(
&mut self,
request: impl IntoRequest<UploadRequest>,
) -> Result<Response<UploadResponse>, Status>
pub async fn upload( &mut self, request: impl IntoRequest<UploadRequest>, ) -> Result<Response<UploadResponse>, Status>
Uploads data based on the provided UploadRequest and returns an UploadResponse. This method allows users to upload data to the OpenFlow system. Returns an UploadResponse confirming the successful upload.
Sourcepub async fn custom_command(
&mut self,
request: impl IntoRequest<CustomCommandRequest>,
) -> Result<Response<CustomCommandResponse>, Status>
pub async fn custom_command( &mut self, request: impl IntoRequest<CustomCommandRequest>, ) -> Result<Response<CustomCommandResponse>, Status>
Executes a custom command in OpenIAP Flow. This method enables the execution of custom commands within the OpenFlow system. Returns a CustomCommandResponse with the result of the command execution.
Sourcepub async fn list_collections(
&mut self,
request: impl IntoRequest<ListCollectionsRequest>,
) -> Result<Response<ListCollectionsResponse>, Status>
pub async fn list_collections( &mut self, request: impl IntoRequest<ListCollectionsRequest>, ) -> Result<Response<ListCollectionsResponse>, Status>
Lists all MongoDB collections the user has access to. This method provides a list of collections that the user can interact with in the MongoDB database. Returns a ListCollectionsResponse containing collection names.
Sourcepub async fn drop_collection(
&mut self,
request: impl IntoRequest<DropCollectionRequest>,
) -> Result<Response<DropCollectionResponse>, Status>
pub async fn drop_collection( &mut self, request: impl IntoRequest<DropCollectionRequest>, ) -> Result<Response<DropCollectionResponse>, Status>
Drops a MongoDB Collection, requires user is a member of admins role. This method allows administrators to delete a MongoDB collection. Returns a DropCollectionResponse confirming the deletion.
Sourcepub async fn create_collection(
&mut self,
request: impl IntoRequest<CreateCollectionRequest>,
) -> Result<Response<CreateCollectionResponse>, Status>
pub async fn create_collection( &mut self, request: impl IntoRequest<CreateCollectionRequest>, ) -> Result<Response<CreateCollectionResponse>, Status>
Creates a new MongoDB collection, useful if you need to create with parameters like creating a TimeSeries Collection. This method creates a new MongoDB collection with optional parameters. Returns a CreateCollectionResponse indicating the success of collection creation.
Sourcepub async fn query(
&mut self,
request: impl IntoRequest<QueryRequest>,
) -> Result<Response<QueryResponse>, Status>
pub async fn query( &mut self, request: impl IntoRequest<QueryRequest>, ) -> Result<Response<QueryResponse>, Status>
Performs a query using QueryRequest and returns a QueryResponse. This method executes a query operation in the MongoDB database. Returns a QueryResponse with query results.
Sourcepub async fn get_document_version(
&mut self,
request: impl IntoRequest<GetDocumentVersionRequest>,
) -> Result<Response<GetDocumentVersionResponse>, Status>
pub async fn get_document_version( &mut self, request: impl IntoRequest<GetDocumentVersionRequest>, ) -> Result<Response<GetDocumentVersionResponse>, Status>
Retrieves a document’s version using GetDocumentVersionRequest and returns a GetDocumentVersionResponse. This method retrieves a specific version of a document. Returns a GetDocumentVersionResponse with the requested document version.
Sourcepub async fn aggregate(
&mut self,
request: impl IntoRequest<AggregateRequest>,
) -> Result<Response<AggregateResponse>, Status>
pub async fn aggregate( &mut self, request: impl IntoRequest<AggregateRequest>, ) -> Result<Response<AggregateResponse>, Status>
Aggregates data based on AggregateRequest and returns an AggregateResponse. This method performs data aggregation operations on the MongoDB database. Returns an AggregateResponse with the aggregated data.
Sourcepub async fn count(
&mut self,
request: impl IntoRequest<CountRequest>,
) -> Result<Response<CountResponse>, Status>
pub async fn count( &mut self, request: impl IntoRequest<CountRequest>, ) -> Result<Response<CountResponse>, Status>
Counts documents based on CountRequest and returns a CountResponse. This method counts documents in the MongoDB database based on specified criteria. Returns a CountResponse with the count result.
Sourcepub async fn insert_one(
&mut self,
request: impl IntoRequest<InsertOneRequest>,
) -> Result<Response<InsertOneResponse>, Status>
pub async fn insert_one( &mut self, request: impl IntoRequest<InsertOneRequest>, ) -> Result<Response<InsertOneResponse>, Status>
Inserts a single document using InsertOneRequest and returns an InsertOneResponse. This method inserts a single document into the MongoDB database. Returns an InsertOneResponse confirming the insertion.
Sourcepub async fn insert_many(
&mut self,
request: impl IntoRequest<InsertManyRequest>,
) -> Result<Response<InsertManyResponse>, Status>
pub async fn insert_many( &mut self, request: impl IntoRequest<InsertManyRequest>, ) -> Result<Response<InsertManyResponse>, Status>
Inserts multiple documents using InsertManyRequest and returns an InsertManyResponse. This method inserts multiple documents into the MongoDB database. Returns an InsertManyResponse confirming the insertions.
Sourcepub async fn update_one(
&mut self,
request: impl IntoRequest<UpdateOneRequest>,
) -> Result<Response<UpdateOneResponse>, Status>
pub async fn update_one( &mut self, request: impl IntoRequest<UpdateOneRequest>, ) -> Result<Response<UpdateOneResponse>, Status>
Updates a single document using UpdateOneRequest and returns an UpdateOneResponse. This method updates a single document in the MongoDB database. Returns an UpdateOneResponse confirming the update.
Sourcepub async fn update_document(
&mut self,
request: impl IntoRequest<UpdateDocumentRequest>,
) -> Result<Response<UpdateDocumentResponse>, Status>
pub async fn update_document( &mut self, request: impl IntoRequest<UpdateDocumentRequest>, ) -> Result<Response<UpdateDocumentResponse>, Status>
Updates documents using UpdateDocumentRequest and returns an UpdateDocumentResponse. This method updates multiple documents in the MongoDB database. Returns an UpdateDocumentResponse confirming the updates.
Sourcepub async fn insert_or_update_one(
&mut self,
request: impl IntoRequest<InsertOrUpdateOneRequest>,
) -> Result<Response<InsertOrUpdateOneResponse>, Status>
pub async fn insert_or_update_one( &mut self, request: impl IntoRequest<InsertOrUpdateOneRequest>, ) -> Result<Response<InsertOrUpdateOneResponse>, Status>
Inserts or updates a single document using InsertOrUpdateOneRequest and returns an InsertOrUpdateOneResponse. This method either inserts or updates a single document in the MongoDB database. Returns an InsertOrUpdateOneResponse confirming the operation.
Sourcepub async fn insert_or_update_many(
&mut self,
request: impl IntoRequest<InsertOrUpdateManyRequest>,
) -> Result<Response<InsertOrUpdateManyResponse>, Status>
pub async fn insert_or_update_many( &mut self, request: impl IntoRequest<InsertOrUpdateManyRequest>, ) -> Result<Response<InsertOrUpdateManyResponse>, Status>
Inserts or updates multiple documents using InsertOrUpdateManyRequest and returns an InsertOrUpdateManyResponse. This method either inserts or updates multiple documents in the MongoDB database. Returns an InsertOrUpdateManyResponse confirming the operation.
Sourcepub async fn delete_one(
&mut self,
request: impl IntoRequest<DeleteOneRequest>,
) -> Result<Response<DeleteOneResponse>, Status>
pub async fn delete_one( &mut self, request: impl IntoRequest<DeleteOneRequest>, ) -> Result<Response<DeleteOneResponse>, Status>
Deletes a single document using DeleteOneRequest and returns a DeleteOneResponse. This method deletes a single document from the MongoDB database. Returns a DeleteOneResponse confirming the deletion.
Sourcepub async fn delete_many(
&mut self,
request: impl IntoRequest<DeleteManyRequest>,
) -> Result<Response<DeleteManyResponse>, Status>
pub async fn delete_many( &mut self, request: impl IntoRequest<DeleteManyRequest>, ) -> Result<Response<DeleteManyResponse>, Status>
Deletes multiple documents using DeleteManyRequest and returns a DeleteManyResponse. This method deletes multiple documents from the MongoDB database. Returns a DeleteManyResponse confirming the deletions.
Sourcepub async fn register_queue(
&mut self,
request: impl IntoRequest<RegisterQueueRequest>,
) -> Result<Response<RegisterQueueResponse>, Status>
pub async fn register_queue( &mut self, request: impl IntoRequest<RegisterQueueRequest>, ) -> Result<Response<RegisterQueueResponse>, Status>
Registers a queue using RegisterQueueRequest and returns a RegisterQueueResponse. This method registers and starts consuming a queue for message routing using AMQP Returns a RegisterQueueResponse confirming the registration.
Sourcepub async fn register_exchange(
&mut self,
request: impl IntoRequest<RegisterExchangeRequest>,
) -> Result<Response<RegisterExchangeResponse>, Status>
pub async fn register_exchange( &mut self, request: impl IntoRequest<RegisterExchangeRequest>, ) -> Result<Response<RegisterExchangeResponse>, Status>
Registers an exchange using RegisterExchangeRequest and returns a RegisterExchangeResponse. This method registers an exchange and start consuming if for message routing using AMQP Returns a RegisterExchangeResponse confirming the registration.
Sourcepub async fn queue_message(
&mut self,
request: impl IntoRequest<QueueMessageRequest>,
) -> Result<Response<QueueMessageResponse>, Status>
pub async fn queue_message( &mut self, request: impl IntoRequest<QueueMessageRequest>, ) -> Result<Response<QueueMessageResponse>, Status>
Sends a message to a queue using QueueMessageRequest and returns a QueueMessageResponse. This method sends a message to a registered queue for processing. Returns a QueueMessageResponse confirming the message transmission.
Sourcepub async fn un_register_queue(
&mut self,
request: impl IntoRequest<UnRegisterQueueRequest>,
) -> Result<Response<UnRegisterQueueResponse>, Status>
pub async fn un_register_queue( &mut self, request: impl IntoRequest<UnRegisterQueueRequest>, ) -> Result<Response<UnRegisterQueueResponse>, Status>
Unregisters a queue using UnRegisterQueueRequest and returns an UnRegisterQueueResponse. This method unregisters a previously registered queue or Exchange. Returns an UnRegisterQueueResponse confirming the unregistration.
Sourcepub async fn watch(
&mut self,
request: impl IntoRequest<WatchRequest>,
) -> Result<Response<WatchResponse>, Status>
pub async fn watch( &mut self, request: impl IntoRequest<WatchRequest>, ) -> Result<Response<WatchResponse>, Status>
Watches for changes using WatchRequest and returns a WatchResponse. This method enables clients to watch for changes in a MongoDB collections, use paths (JSONQuerys) to limit what documents to wath. Returns a WatchResponse with relevant notifications.
Sourcepub async fn un_watch(
&mut self,
request: impl IntoRequest<UnWatchRequest>,
) -> Result<Response<UnWatchResponse>, Status>
pub async fn un_watch( &mut self, request: impl IntoRequest<UnWatchRequest>, ) -> Result<Response<UnWatchResponse>, Status>
Stops watching for changes using UnWatchRequest and returns an UnWatchResponse. This method stops the client from watching for changes formerly registered using Watch Returns an UnWatchResponse confirming the cessation of watching.
Sourcepub async fn push_workitem(
&mut self,
request: impl IntoRequest<PushWorkitemRequest>,
) -> Result<Response<PushWorkitemResponse>, Status>
pub async fn push_workitem( &mut self, request: impl IntoRequest<PushWorkitemRequest>, ) -> Result<Response<PushWorkitemResponse>, Status>
This method pushes (adds) a Workitem
to a ‘WorkItemQueue’
Returns a PushWorkitemResponse confirming the operation.
Sourcepub async fn push_workitems(
&mut self,
request: impl IntoRequest<PushWorkitemsRequest>,
) -> Result<Response<PushWorkitemsResponse>, Status>
pub async fn push_workitems( &mut self, request: impl IntoRequest<PushWorkitemsRequest>, ) -> Result<Response<PushWorkitemsResponse>, Status>
Pushes multiple Workitem
s using PushWorkitemsRequest and returns a PushWorkitemsResponse.
This method pushes multiple Workitem
s to a ‘WorkItemQueue’.
Returns a PushWorkitemsResponse confirming the operation.
Sourcepub async fn update_workitem(
&mut self,
request: impl IntoRequest<UpdateWorkitemRequest>,
) -> Result<Response<UpdateWorkitemResponse>, Status>
pub async fn update_workitem( &mut self, request: impl IntoRequest<UpdateWorkitemRequest>, ) -> Result<Response<UpdateWorkitemResponse>, Status>
Updates a Workitem
using UpdateWorkitemRequest and returns an UpdateWorkitemResponse.
This method updates a Workitem
in the ‘WorkItemQueue’.
Returns an UpdateWorkitemResponse confirming the update.
Sourcepub async fn pop_workitem(
&mut self,
request: impl IntoRequest<PopWorkitemRequest>,
) -> Result<Response<PopWorkitemResponse>, Status>
pub async fn pop_workitem( &mut self, request: impl IntoRequest<PopWorkitemRequest>, ) -> Result<Response<PopWorkitemResponse>, Status>
Pops a Workitem
using PopWorkitemRequest and returns a PopWorkitemResponse.
This method pops a Workitem
from the ‘WorkItemQueue’ for execution.
Returns a PopWorkitemResponse with the popped Workitem
.
Sourcepub async fn delete_workitem(
&mut self,
request: impl IntoRequest<DeleteWorkitemRequest>,
) -> Result<Response<DeleteWorkitemResponse>, Status>
pub async fn delete_workitem( &mut self, request: impl IntoRequest<DeleteWorkitemRequest>, ) -> Result<Response<DeleteWorkitemResponse>, Status>
Deletes a Workitem
using DeleteWorkitemRequest and returns a DeleteWorkitemResponse.
This method deletes a Workitem
from the ‘WorkItemQueue’.
Returns a DeleteWorkitemResponse confirming the deletion.
Sourcepub async fn add_work_item_queue(
&mut self,
request: impl IntoRequest<AddWorkItemQueueRequest>,
) -> Result<Response<AddWorkItemQueueResponse>, Status>
pub async fn add_work_item_queue( &mut self, request: impl IntoRequest<AddWorkItemQueueRequest>, ) -> Result<Response<AddWorkItemQueueResponse>, Status>
This Created a new WorkitemQueue'. These Queues can store
Workitem`s
Returns an AddWorkItemQueueResponse confirming the addition.
Sourcepub async fn update_work_item_queue(
&mut self,
request: impl IntoRequest<UpdateWorkItemQueueRequest>,
) -> Result<Response<UpdateWorkItemQueueResponse>, Status>
pub async fn update_work_item_queue( &mut self, request: impl IntoRequest<UpdateWorkItemQueueRequest>, ) -> Result<Response<UpdateWorkItemQueueResponse>, Status>
Updates an existing WorkitemQueue' This method updates the configuration of a
WorkitemQueue’.
Will also deleted all associated Workitem
s if purge is enabled.
Returns an UpdateWorkItemQueueResponse confirming the update.
Sourcepub async fn delete_work_item_queue(
&mut self,
request: impl IntoRequest<DeleteWorkItemQueueRequest>,
) -> Result<Response<DeleteWorkItemQueueResponse>, Status>
pub async fn delete_work_item_queue( &mut self, request: impl IntoRequest<DeleteWorkItemQueueRequest>, ) -> Result<Response<DeleteWorkItemQueueResponse>, Status>
Deletes a WorkitemQueue' This method deletes a
WorkitemQueue’ queue. Will also deleted all associated Workitem
s if purge is enabled.
Returns a DeleteWorkItemQueueResponse confirming the deletion.
Sourcepub async fn ensure_customer(
&mut self,
request: impl IntoRequest<EnsureCustomerRequest>,
) -> Result<Response<EnsureCustomerResponse>, Status>
pub async fn ensure_customer( &mut self, request: impl IntoRequest<EnsureCustomerRequest>, ) -> Result<Response<EnsureCustomerResponse>, Status>
Ensures the existence of a customer using EnsureCustomerRequest and returns an EnsureCustomerResponse. This method ensures that a customer exists in the system and performs necessary actions. Returns an EnsureCustomerResponse confirming the operation.
Sourcepub async fn invoke_open_rpa(
&mut self,
request: impl IntoRequest<InvokeOpenRpaRequest>,
) -> Result<Response<InvokeOpenRpaResponse>, Status>
pub async fn invoke_open_rpa( &mut self, request: impl IntoRequest<InvokeOpenRpaRequest>, ) -> Result<Response<InvokeOpenRpaResponse>, Status>
Execute a workflow on a OpenRPA robot. If rpc is true, will wait for reply and return reply ( this can take a long time !)
Sourcepub async fn start_agent(
&mut self,
request: impl IntoRequest<StartAgentRequest>,
) -> Result<Response<StartAgentResponse>, Status>
pub async fn start_agent( &mut self, request: impl IntoRequest<StartAgentRequest>, ) -> Result<Response<StartAgentResponse>, Status>
Start an agent inside Docker or Kubernetes agentid is the _id of an agent from the agents collection Requires invoke permission on agent
Sourcepub async fn stop_agent(
&mut self,
request: impl IntoRequest<StopAgentRequest>,
) -> Result<Response<StopAgentResponse>, Status>
pub async fn stop_agent( &mut self, request: impl IntoRequest<StopAgentRequest>, ) -> Result<Response<StopAgentResponse>, Status>
Stop an agent running inside Docker or Kubernetes agentid is the _id of an agent from the agents collection Requires invoke permission on agent
Sourcepub async fn get_agent_log(
&mut self,
request: impl IntoRequest<GetAgentLogRequest>,
) -> Result<Response<GetAgentLogResponse>, Status>
pub async fn get_agent_log( &mut self, request: impl IntoRequest<GetAgentLogRequest>, ) -> Result<Response<GetAgentLogResponse>, Status>
Return the console output of an running agent, can be in docker, kubernetes or running remote. agentid is the _id of an agent from the agents collection Requires invoke permission on agent
Sourcepub async fn get_agent_pods(
&mut self,
request: impl IntoRequest<GetAgentPodsRequest>,
) -> Result<Response<GetAgentPodsResponse>, Status>
pub async fn get_agent_pods( &mut self, request: impl IntoRequest<GetAgentPodsRequest>, ) -> Result<Response<GetAgentPodsResponse>, Status>
Return a list of pods for an running agent. Docker and Kubernetes only. agentid is the _id of an agent from the agents collection Requires invoke permission on agent
Sourcepub async fn delete_agent_pod(
&mut self,
request: impl IntoRequest<DeleteAgentPodRequest>,
) -> Result<Response<DeleteAgentPodResponse>, Status>
pub async fn delete_agent_pod( &mut self, request: impl IntoRequest<DeleteAgentPodRequest>, ) -> Result<Response<DeleteAgentPodResponse>, Status>
Remove an agent pod, found with GetAgentPods. Docker and Kubernetes only. On kubernetes this will restart it, on Docker this will kill it agentid is the _id of an agent from the agents collection Requires invoke permission on agent
Sourcepub async fn delete_agent(
&mut self,
request: impl IntoRequest<DeleteAgentRequest>,
) -> Result<Response<DeleteAgentResponse>, Status>
pub async fn delete_agent( &mut self, request: impl IntoRequest<DeleteAgentRequest>, ) -> Result<Response<DeleteAgentResponse>, Status>
Remove an agent if running. Docker and Kubernetes only. Removes instance on docker, remove deployment, ingress and other resources on Kubernetes agentid is the _id of an agent from the agents collection Requires delete permission on agent
Sourcepub async fn create_index(
&mut self,
request: impl IntoRequest<CreateIndexRequest>,
) -> Result<Response<CreateIndexResponse>, Status>
pub async fn create_index( &mut self, request: impl IntoRequest<CreateIndexRequest>, ) -> Result<Response<CreateIndexResponse>, Status>
Create an Index on a MongoDB Collection Will not fail if exists, but will fail if spec is different from existing. Require admins rights
Sourcepub async fn get_indexes(
&mut self,
request: impl IntoRequest<GetIndexesRequest>,
) -> Result<Response<GetIndexesResponse>, Status>
pub async fn get_indexes( &mut self, request: impl IntoRequest<GetIndexesRequest>, ) -> Result<Response<GetIndexesResponse>, Status>
Create an Index on a MongoDB Collection Will not fail if exists, but will fail if spec is different from existing. Require admins rights
Sourcepub async fn drop_index(
&mut self,
request: impl IntoRequest<DropIndexRequest>,
) -> Result<Response<DropIndexResponse>, Status>
pub async fn drop_index( &mut self, request: impl IntoRequest<DropIndexRequest>, ) -> Result<Response<DropIndexResponse>, Status>
Delete an Index from a MongoDB Collection Require admins rights
Sourcepub async fn delete_package(
&mut self,
request: impl IntoRequest<DeletePackageRequest>,
) -> Result<Response<DeletePackageResponse>, Status>
pub async fn delete_package( &mut self, request: impl IntoRequest<DeletePackageRequest>, ) -> Result<Response<DeletePackageResponse>, Status>
Delete an agent Package. Removes the associated file and then delete te package from the agents collection. Requires delete permission on the Package
Trait Implementations§
Source§impl<T> Clone for FlowServiceClient<T>where
T: Clone,
impl<T> Clone for FlowServiceClient<T>where
T: Clone,
Source§fn clone(&self) -> FlowServiceClient<T>
fn clone(&self) -> FlowServiceClient<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 FlowServiceClient<T>
impl<T> RefUnwindSafe for FlowServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for FlowServiceClient<T>where
T: Send,
impl<T> Sync for FlowServiceClient<T>where
T: Sync,
impl<T> Unpin for FlowServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for FlowServiceClient<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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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