pub struct MockOrganizationAuthRequestsApi {
OrganizationAuthRequestsApi_expectations: MockOrganizationAuthRequestsApi_OrganizationAuthRequestsApi,
}
Fields§
§OrganizationAuthRequestsApi_expectations: MockOrganizationAuthRequestsApi_OrganizationAuthRequestsApi
Implementations§
Source§impl MockOrganizationAuthRequestsApi
impl MockOrganizationAuthRequestsApi
Sourcepub fn checkpoint(&mut self)
pub fn checkpoint(&mut self)
Validate that all current expectations for all methods have been satisfied, and discard them.
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new mock object with no expectations.
This method will not be generated if the real struct
already has a new
method. However, it will be
generated if the struct implements a trait with a new
method. The trait’s new
method can still be called
like <MockX as TraitY>::new
Source§impl MockOrganizationAuthRequestsApi
impl MockOrganizationAuthRequestsApi
Sourcepub fn expect_bulk_deny_requests(&mut self) -> &mut Expectation
pub fn expect_bulk_deny_requests(&mut self) -> &mut Expectation
Create an Expectation
for mocking the bulk_deny_requests
method
Sourcepub fn expect_get_pending_requests(&mut self) -> &mut Expectation
pub fn expect_get_pending_requests(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_pending_requests
method
Sourcepub fn expect_update_auth_request(&mut self) -> &mut Expectation
pub fn expect_update_auth_request(&mut self) -> &mut Expectation
Create an Expectation
for mocking the update_auth_request
method
Sourcepub fn expect_update_many_auth_requests(&mut self) -> &mut Expectation
pub fn expect_update_many_auth_requests(&mut self) -> &mut Expectation
Create an Expectation
for mocking the update_many_auth_requests
method
Trait Implementations§
Source§impl OrganizationAuthRequestsApi for MockOrganizationAuthRequestsApi
impl OrganizationAuthRequestsApi for MockOrganizationAuthRequestsApi
Source§fn bulk_deny_requests<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
bulk_deny_admin_auth_request_request_model: Option<BulkDenyAdminAuthRequestRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<BulkDenyRequestsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn bulk_deny_requests<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
bulk_deny_admin_auth_request_request_model: Option<BulkDenyAdminAuthRequestRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<BulkDenyRequestsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/auth-requests/deny
Source§fn get_pending_requests<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PendingOrganizationAuthRequestResponseModelListResponseModel, Error<GetPendingRequestsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_pending_requests<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PendingOrganizationAuthRequestResponseModelListResponseModel, Error<GetPendingRequestsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/auth-requests
Source§fn update_auth_request<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
request_id: Uuid,
admin_auth_request_update_request_model: Option<AdminAuthRequestUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateAuthRequestError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn update_auth_request<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
request_id: Uuid,
admin_auth_request_update_request_model: Option<AdminAuthRequestUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateAuthRequestError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/auth-requests/{requestId}
Source§fn update_many_auth_requests<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
organization_auth_request_update_many_request_model: Option<Vec<OrganizationAuthRequestUpdateManyRequestModel>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateManyAuthRequestsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn update_many_auth_requests<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
organization_auth_request_update_many_request_model: Option<Vec<OrganizationAuthRequestUpdateManyRequestModel>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateManyAuthRequestsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/auth-requests