pub trait LeasesApi: Send + Sync {
// Required methods
fn extend<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
access_lease_extension_request_model: AccessLeaseExtensionRequestModel,
) -> Pin<Box<dyn Future<Output = Result<AccessRequestDetailsResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn get_active<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AccessLeaseResponseModelListResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_history<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AccessLeaseResponseModelListResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_mine<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AccessLeaseResponseModelListResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn revoke<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
access_lease_revoke_request_model: AccessLeaseRevokeRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
}Required Methods§
Sourcefn extend<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
access_lease_extension_request_model: AccessLeaseExtensionRequestModel,
) -> Pin<Box<dyn Future<Output = Result<AccessRequestDetailsResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn extend<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
access_lease_extension_request_model: AccessLeaseExtensionRequestModel,
) -> Pin<Box<dyn Future<Output = Result<AccessRequestDetailsResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /leases/{id}/extend
Sourcefn get_active<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AccessLeaseResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_active<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AccessLeaseResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /leases/active
Sourcefn get_history<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AccessLeaseResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_history<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AccessLeaseResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /leases/history