Trait CountsApi

Source
pub trait CountsApi: Send + Sync {
    // Required methods
    fn get_by_organization<'a, 'life0, 'async_trait>(
        &'life0 self,
        organization_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<OrganizationCountsResponseModel, Error<GetByOrganizationError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn get_by_project<'a, 'life0, 'async_trait>(
        &'life0 self,
        project_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<ProjectCountsResponseModel, Error<GetByProjectError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn get_by_service_account<'a, 'life0, 'async_trait>(
        &'life0 self,
        service_account_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<ServiceAccountCountsResponseModel, Error<GetByServiceAccountError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

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

GET /organizations/{organizationId}/sm-counts

Source

fn get_by_project<'a, 'life0, 'async_trait>( &'life0 self, project_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<ProjectCountsResponseModel, Error<GetByProjectError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /projects/{projectId}/sm-counts

Source

fn get_by_service_account<'a, 'life0, 'async_trait>( &'life0 self, service_account_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<ServiceAccountCountsResponseModel, Error<GetByServiceAccountError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /service-accounts/{serviceAccountId}/sm-counts

Implementors§