pub struct MockAccessPoliciesApi {
AccessPoliciesApi_expectations: MockAccessPoliciesApi_AccessPoliciesApi,
}Fields§
§AccessPoliciesApi_expectations: MockAccessPoliciesApi_AccessPoliciesApiImplementations§
Source§impl MockAccessPoliciesApi
impl MockAccessPoliciesApi
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 MockAccessPoliciesApi
impl MockAccessPoliciesApi
Sourcepub fn expect_get_people_potential_grantees(&mut self) -> &mut Expectation
pub fn expect_get_people_potential_grantees(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_people_potential_grantees method
Sourcepub fn expect_get_project_people_access_policies(&mut self) -> &mut Expectation
pub fn expect_get_project_people_access_policies(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_project_people_access_policies method
Sourcepub fn expect_get_project_potential_grantees(&mut self) -> &mut Expectation
pub fn expect_get_project_potential_grantees(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_project_potential_grantees method
Sourcepub fn expect_get_project_service_accounts_access_policies(
&mut self,
) -> &mut Expectation
pub fn expect_get_project_service_accounts_access_policies( &mut self, ) -> &mut Expectation
Create an Expectation for mocking the get_project_service_accounts_access_policies method
Sourcepub fn expect_get_secret_access_policies(&mut self) -> &mut Expectation
pub fn expect_get_secret_access_policies(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_secret_access_policies method
Sourcepub fn expect_get_service_account_granted_policies(
&mut self,
) -> &mut Expectation
pub fn expect_get_service_account_granted_policies( &mut self, ) -> &mut Expectation
Create an Expectation for mocking the get_service_account_granted_policies method
Sourcepub fn expect_get_service_account_people_access_policies(
&mut self,
) -> &mut Expectation
pub fn expect_get_service_account_people_access_policies( &mut self, ) -> &mut Expectation
Create an Expectation for mocking the get_service_account_people_access_policies method
Sourcepub fn expect_get_service_accounts_potential_grantees(
&mut self,
) -> &mut Expectation
pub fn expect_get_service_accounts_potential_grantees( &mut self, ) -> &mut Expectation
Create an Expectation for mocking the get_service_accounts_potential_grantees method
Sourcepub fn expect_put_project_people_access_policies(&mut self) -> &mut Expectation
pub fn expect_put_project_people_access_policies(&mut self) -> &mut Expectation
Create an Expectation for mocking the put_project_people_access_policies method
Sourcepub fn expect_put_project_service_accounts_access_policies(
&mut self,
) -> &mut Expectation
pub fn expect_put_project_service_accounts_access_policies( &mut self, ) -> &mut Expectation
Create an Expectation for mocking the put_project_service_accounts_access_policies method
Sourcepub fn expect_put_service_account_granted_policies(
&mut self,
) -> &mut Expectation
pub fn expect_put_service_account_granted_policies( &mut self, ) -> &mut Expectation
Create an Expectation for mocking the put_service_account_granted_policies method
Sourcepub fn expect_put_service_account_people_access_policies(
&mut self,
) -> &mut Expectation
pub fn expect_put_service_account_people_access_policies( &mut self, ) -> &mut Expectation
Create an Expectation for mocking the put_service_account_people_access_policies method
Trait Implementations§
Source§impl AccessPoliciesApi for MockAccessPoliciesApi
impl AccessPoliciesApi for MockAccessPoliciesApi
Source§fn get_people_potential_grantees<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PotentialGranteeResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_people_potential_grantees<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PotentialGranteeResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{id}/access-policies/people/potential-grantees
Source§fn get_project_people_access_policies<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProjectPeopleAccessPoliciesResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_project_people_access_policies<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProjectPeopleAccessPoliciesResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /projects/{id}/access-policies/people
Source§fn get_project_potential_grantees<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PotentialGranteeResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_project_potential_grantees<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PotentialGranteeResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{id}/access-policies/projects/potential-grantees
Source§fn get_project_service_accounts_access_policies<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProjectServiceAccountsAccessPoliciesResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_project_service_accounts_access_policies<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProjectServiceAccountsAccessPoliciesResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /projects/{id}/access-policies/service-accounts
Source§fn get_secret_access_policies<'a, 'life0, 'async_trait>(
&'life0 self,
secret_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretAccessPoliciesResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_secret_access_policies<'a, 'life0, 'async_trait>(
&'life0 self,
secret_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretAccessPoliciesResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /secrets/{secretId}/access-policies
Source§fn get_service_account_granted_policies<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountGrantedPoliciesPermissionDetailsResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_service_account_granted_policies<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountGrantedPoliciesPermissionDetailsResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /service-accounts/{id}/granted-policies
Source§fn get_service_account_people_access_policies<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountPeopleAccessPoliciesResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_service_account_people_access_policies<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountPeopleAccessPoliciesResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /service-accounts/{id}/access-policies/people
Source§fn get_service_accounts_potential_grantees<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PotentialGranteeResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_service_accounts_potential_grantees<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PotentialGranteeResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{id}/access-policies/service-accounts/potential-grantees
Source§fn put_project_people_access_policies<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
people_access_policies_request_model: Option<PeopleAccessPoliciesRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProjectPeopleAccessPoliciesResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn put_project_people_access_policies<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
people_access_policies_request_model: Option<PeopleAccessPoliciesRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProjectPeopleAccessPoliciesResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /projects/{id}/access-policies/people
Source§fn put_project_service_accounts_access_policies<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
project_service_accounts_access_policies_request_model: Option<ProjectServiceAccountsAccessPoliciesRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProjectServiceAccountsAccessPoliciesResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn put_project_service_accounts_access_policies<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
project_service_accounts_access_policies_request_model: Option<ProjectServiceAccountsAccessPoliciesRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProjectServiceAccountsAccessPoliciesResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /projects/{id}/access-policies/service-accounts
Source§fn put_service_account_granted_policies<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
service_account_granted_policies_request_model: Option<ServiceAccountGrantedPoliciesRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountGrantedPoliciesPermissionDetailsResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn put_service_account_granted_policies<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
service_account_granted_policies_request_model: Option<ServiceAccountGrantedPoliciesRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountGrantedPoliciesPermissionDetailsResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /service-accounts/{id}/granted-policies
Source§fn put_service_account_people_access_policies<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
people_access_policies_request_model: Option<PeopleAccessPoliciesRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountPeopleAccessPoliciesResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn put_service_account_people_access_policies<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
people_access_policies_request_model: Option<PeopleAccessPoliciesRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountPeopleAccessPoliciesResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /service-accounts/{id}/access-policies/people
Source§impl Debug for MockAccessPoliciesApi
impl Debug for MockAccessPoliciesApi
Auto Trait Implementations§
impl Freeze for MockAccessPoliciesApi
impl RefUnwindSafe for MockAccessPoliciesApi
impl Send for MockAccessPoliciesApi
impl Sync for MockAccessPoliciesApi
impl Unpin for MockAccessPoliciesApi
impl UnsafeUnpin for MockAccessPoliciesApi
impl UnwindSafe for MockAccessPoliciesApi
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more