Trait OrganizationIntegrationApi

Source
pub trait OrganizationIntegrationApi: Send + Sync {
    // Required methods
    fn create<'a, 'life0, 'async_trait>(
        &'life0 self,
        organization_id: Uuid,
        organization_integration_request_model: Option<OrganizationIntegrationRequestModel>,
    ) -> Pin<Box<dyn Future<Output = Result<OrganizationIntegrationResponseModel, Error<CreateError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn delete<'a, 'life0, 'async_trait>(
        &'life0 self,
        organization_id: Uuid,
        integration_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn get<'a, 'life0, 'async_trait>(
        &'life0 self,
        organization_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<OrganizationIntegrationResponseModel>, Error<GetError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn update<'a, 'life0, 'async_trait>(
        &'life0 self,
        organization_id: Uuid,
        integration_id: Uuid,
        organization_integration_request_model: Option<OrganizationIntegrationRequestModel>,
    ) -> Pin<Box<dyn Future<Output = Result<OrganizationIntegrationResponseModel, Error<UpdateError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn create<'a, 'life0, 'async_trait>( &'life0 self, organization_id: Uuid, organization_integration_request_model: Option<OrganizationIntegrationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<OrganizationIntegrationResponseModel, Error<CreateError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{organizationId}/integrations

Source

fn delete<'a, 'life0, 'async_trait>( &'life0 self, organization_id: Uuid, integration_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

DELETE /organizations/{organizationId}/integrations/{integrationId}

Source

fn get<'a, 'life0, 'async_trait>( &'life0 self, organization_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<OrganizationIntegrationResponseModel>, Error<GetError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /organizations/{organizationId}/integrations

Source

fn update<'a, 'life0, 'async_trait>( &'life0 self, organization_id: Uuid, integration_id: Uuid, organization_integration_request_model: Option<OrganizationIntegrationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<OrganizationIntegrationResponseModel, Error<UpdateError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

PUT /organizations/{organizationId}/integrations/{integrationId}

Implementors§