pub struct ConnectionServiceClient<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> ConnectionServiceClient<T>where
T: Client,
impl<T> ConnectionServiceClient<T>where
T: Client,
Sourcepub fn create_connection(
&self,
auth_: &BearerToken,
create_connection: &CreateConnection,
) -> Result<Connection, Error>
pub fn create_connection( &self, auth_: &BearerToken, create_connection: &CreateConnection, ) -> Result<Connection, Error>
Creates a new connection.
Sourcepub fn update_connection(
&self,
auth_: &BearerToken,
rid: &ConnectionRid,
request: &UpdateConnectionRequest,
) -> Result<Connection, Error>
pub fn update_connection( &self, auth_: &BearerToken, rid: &ConnectionRid, request: &UpdateConnectionRequest, ) -> Result<Connection, Error>
Updates an existing connection.
Sourcepub fn update_connection_status(
&self,
auth_: &BearerToken,
rid: &ConnectionRid,
request: &ConnectionStatus,
) -> Result<(), Error>
pub 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 fn get_connection(
&self,
auth_: &BearerToken,
rid: &ConnectionRid,
) -> Result<Connection, Error>
pub fn get_connection( &self, auth_: &BearerToken, rid: &ConnectionRid, ) -> Result<Connection, Error>
Gets a connection by its RID.
Sourcepub fn get_connections(
&self,
auth_: &BearerToken,
rids: &BTreeSet<ConnectionRid>,
) -> Result<BTreeSet<Connection>, Error>
pub fn get_connections( &self, auth_: &BearerToken, rids: &BTreeSet<ConnectionRid>, ) -> Result<BTreeSet<Connection>, Error>
Gets a set of connections by their RIDs.
Sourcepub fn list_connections(
&self,
auth_: &BearerToken,
include_archived: Option<bool>,
workspaces: &BTreeSet<WorkspaceRid>,
) -> Result<BTreeSet<Connection>, Error>
pub fn list_connections( &self, auth_: &BearerToken, include_archived: Option<bool>, workspaces: &BTreeSet<WorkspaceRid>, ) -> Result<BTreeSet<Connection>, Error>
Lists all connections.
Sourcepub fn archive_connection(
&self,
auth_: &BearerToken,
rid: &ConnectionRid,
) -> Result<(), Error>
pub fn archive_connection( &self, auth_: &BearerToken, rid: &ConnectionRid, ) -> Result<(), Error>
Archives a connection, which simply tags the connection for a client to filter.
Sourcepub fn unarchive_connection(
&self,
auth_: &BearerToken,
rid: &ConnectionRid,
) -> Result<(), Error>
pub fn unarchive_connection( &self, auth_: &BearerToken, rid: &ConnectionRid, ) -> Result<(), Error>
Undoes the archiving of a connection.
Trait Implementations§
Source§impl<T: Clone> Clone for ConnectionServiceClient<T>
impl<T: Clone> Clone for ConnectionServiceClient<T>
Source§fn clone(&self) -> ConnectionServiceClient<T>
fn clone(&self) -> ConnectionServiceClient<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<T: Debug> Debug for ConnectionServiceClient<T>
impl<T: Debug> Debug for ConnectionServiceClient<T>
Auto Trait Implementations§
impl<T> Freeze for ConnectionServiceClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConnectionServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for ConnectionServiceClient<T>where
T: Send,
impl<T> Sync for ConnectionServiceClient<T>where
T: Sync,
impl<T> Unpin for ConnectionServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for ConnectionServiceClient<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