pub struct MockAccessPoliciesApi {
AccessPoliciesApi_expectations: MockAccessPoliciesApi_AccessPoliciesApi,
}
Fields§
§AccessPoliciesApi_expectations: MockAccessPoliciesApi_AccessPoliciesApi
Implementations§
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<GetPeoplePotentialGranteesError>>> + 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<GetPeoplePotentialGranteesError>>> + 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<GetProjectPeopleAccessPoliciesError>>> + 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<GetProjectPeopleAccessPoliciesError>>> + 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<GetProjectPotentialGranteesError>>> + 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<GetProjectPotentialGranteesError>>> + 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<GetProjectServiceAccountsAccessPoliciesError>>> + 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<GetProjectServiceAccountsAccessPoliciesError>>> + 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<GetSecretAccessPoliciesError>>> + 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<GetSecretAccessPoliciesError>>> + 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<GetServiceAccountGrantedPoliciesError>>> + 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<GetServiceAccountGrantedPoliciesError>>> + 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<GetServiceAccountPeopleAccessPoliciesError>>> + 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<GetServiceAccountPeopleAccessPoliciesError>>> + 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<GetServiceAccountsPotentialGranteesError>>> + 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<GetServiceAccountsPotentialGranteesError>>> + 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<PutProjectPeopleAccessPoliciesError>>> + 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<PutProjectPeopleAccessPoliciesError>>> + 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<PutProjectServiceAccountsAccessPoliciesError>>> + 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<PutProjectServiceAccountsAccessPoliciesError>>> + 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<PutServiceAccountGrantedPoliciesError>>> + 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<PutServiceAccountGrantedPoliciesError>>> + 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<PutServiceAccountPeopleAccessPoliciesError>>> + 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<PutServiceAccountPeopleAccessPoliciesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /service-accounts/{id}/access-policies/people