Trait OrganizationConnectionsApi

Source
pub trait OrganizationConnectionsApi: Send + Sync {
    // Required methods
    fn connections_enabled<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<bool, Error<ConnectionsEnabledError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_connection<'a, 'life0, 'async_trait>(
        &'life0 self,
        organization_connection_request_model: Option<OrganizationConnectionRequestModel>,
    ) -> Pin<Box<dyn Future<Output = Result<OrganizationConnectionResponseModel, Error<CreateConnectionError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn delete_connection<'a, 'life0, 'async_trait>(
        &'life0 self,
        organization_connection_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteConnectionError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn get_connection<'a, 'life0, 'async_trait>(
        &'life0 self,
        organization_id: Uuid,
        type: OrganizationConnectionType,
    ) -> Pin<Box<dyn Future<Output = Result<OrganizationConnectionResponseModel, Error<GetConnectionError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn update_connection<'a, 'life0, 'async_trait>(
        &'life0 self,
        organization_connection_id: Uuid,
        organization_connection_request_model: Option<OrganizationConnectionRequestModel>,
    ) -> Pin<Box<dyn Future<Output = Result<OrganizationConnectionResponseModel, Error<UpdateConnectionError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn connections_enabled<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<bool, Error<ConnectionsEnabledError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /organizations/connections/enabled

Source

fn create_connection<'a, 'life0, 'async_trait>( &'life0 self, organization_connection_request_model: Option<OrganizationConnectionRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<OrganizationConnectionResponseModel, Error<CreateConnectionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/connections

Source

fn delete_connection<'a, 'life0, 'async_trait>( &'life0 self, organization_connection_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteConnectionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

DELETE /organizations/connections/{organizationConnectionId}

Source

fn get_connection<'a, 'life0, 'async_trait>( &'life0 self, organization_id: Uuid, type: OrganizationConnectionType, ) -> Pin<Box<dyn Future<Output = Result<OrganizationConnectionResponseModel, Error<GetConnectionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /organizations/connections/{organizationId}/{type}

Source

fn update_connection<'a, 'life0, 'async_trait>( &'life0 self, organization_connection_id: Uuid, organization_connection_request_model: Option<OrganizationConnectionRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<OrganizationConnectionResponseModel, Error<UpdateConnectionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

PUT /organizations/connections/{organizationConnectionId}

Implementors§