pub struct ConnectionServiceAsyncClient<T>(/* private fields */);
Expand description
A Connection contains the relevant metadata and information to be used as a data source for runs. The Connection Service is responsible for creating, updating, and retrieving database connections.
Implementations§
Source§impl<T> ConnectionServiceAsyncClient<T>where
T: AsyncClient,
impl<T> ConnectionServiceAsyncClient<T>where
T: AsyncClient,
Sourcepub async fn create_connection(
&self,
auth_: &BearerToken,
create_connection: &CreateConnection,
) -> Result<Connection, Error>
pub async fn create_connection( &self, auth_: &BearerToken, create_connection: &CreateConnection, ) -> Result<Connection, Error>
Creates a new connection.
Sourcepub async fn update_connection(
&self,
auth_: &BearerToken,
rid: &ConnectionRid,
request: &UpdateConnectionRequest,
) -> Result<Connection, Error>
pub async fn update_connection( &self, auth_: &BearerToken, rid: &ConnectionRid, request: &UpdateConnectionRequest, ) -> Result<Connection, Error>
Updates an existing connection.
Sourcepub async fn update_connection_status(
&self,
auth_: &BearerToken,
rid: &ConnectionRid,
request: &ConnectionStatus,
) -> Result<(), Error>
pub async fn update_connection_status( &self, auth_: &BearerToken, rid: &ConnectionRid, request: &ConnectionStatus, ) -> Result<(), Error>
Updates an existing connection status.
Adds available tag key/value pairs to the connection. If a tag name already exists, the values will be merged. This is primarily an internal endpoint to update tags for external connections as they are periodically scraped. This endpoint should only be called by clients for Visual crossing connections. Throws if called for Nominal connections which have their tags automatically indexed in the underlying Database.
Sourcepub async fn get_connection(
&self,
auth_: &BearerToken,
rid: &ConnectionRid,
) -> Result<Connection, Error>
pub async fn get_connection( &self, auth_: &BearerToken, rid: &ConnectionRid, ) -> Result<Connection, Error>
Gets a connection by its RID.
Sourcepub async fn get_connections(
&self,
auth_: &BearerToken,
rids: &BTreeSet<ConnectionRid>,
) -> Result<BTreeSet<Connection>, Error>
pub async fn get_connections( &self, auth_: &BearerToken, rids: &BTreeSet<ConnectionRid>, ) -> Result<BTreeSet<Connection>, Error>
Gets a set of connections by their RIDs.
Sourcepub async fn list_connections(
&self,
auth_: &BearerToken,
include_archived: Option<bool>,
workspaces: &BTreeSet<WorkspaceRid>,
) -> Result<BTreeSet<Connection>, Error>
pub async fn list_connections( &self, auth_: &BearerToken, include_archived: Option<bool>, workspaces: &BTreeSet<WorkspaceRid>, ) -> Result<BTreeSet<Connection>, Error>
Lists all connections.
Sourcepub async fn archive_connection(
&self,
auth_: &BearerToken,
rid: &ConnectionRid,
) -> Result<(), Error>
pub async fn archive_connection( &self, auth_: &BearerToken, rid: &ConnectionRid, ) -> Result<(), Error>
Archives a connection, which simply tags the connection for a client to filter.
Sourcepub async fn unarchive_connection(
&self,
auth_: &BearerToken,
rid: &ConnectionRid,
) -> Result<(), Error>
pub async fn unarchive_connection( &self, auth_: &BearerToken, rid: &ConnectionRid, ) -> Result<(), Error>
Undoes the archiving of a connection.
Trait Implementations§
Source§impl<T> AsyncService<T> for ConnectionServiceAsyncClient<T>where
T: AsyncClient,
impl<T> AsyncService<T> for ConnectionServiceAsyncClient<T>where
T: AsyncClient,
Source§impl<T: Clone> Clone for ConnectionServiceAsyncClient<T>
impl<T: Clone> Clone for ConnectionServiceAsyncClient<T>
Source§fn clone(&self) -> ConnectionServiceAsyncClient<T>
fn clone(&self) -> ConnectionServiceAsyncClient<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 ConnectionServiceAsyncClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConnectionServiceAsyncClient<T>where
T: RefUnwindSafe,
impl<T> Send for ConnectionServiceAsyncClient<T>where
T: Send,
impl<T> Sync for ConnectionServiceAsyncClient<T>where
T: Sync,
impl<T> Unpin for ConnectionServiceAsyncClient<T>where
T: Unpin,
impl<T> UnwindSafe for ConnectionServiceAsyncClient<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