Defines the trait used to implement [super::client::OrgPolicy].
Application developers may need to implement this trait to mock
client::OrgPolicy. In other use-cases, application developers only
use client::OrgPolicy and need not be concerned with this trait or
its implementations.
Services gain new RPCs routinely. Consequently, this trait gains new methods too. To avoid breaking applications the trait provides a default implementation of each method. Most of these implementations just return an error.
Provided Methods
list_constraints
fn list_constraints(self: &Self, _req: crate::model::ListConstraintsRequest, _options: gax::options::RequestOptions) -> impl std::future::Future + Send
Implements [super::client::OrgPolicy::list_constraints].
list_policies
fn list_policies(self: &Self, _req: crate::model::ListPoliciesRequest, _options: gax::options::RequestOptions) -> impl std::future::Future + Send
Implements [super::client::OrgPolicy::list_policies].
get_policy
fn get_policy(self: &Self, _req: crate::model::GetPolicyRequest, _options: gax::options::RequestOptions) -> impl std::future::Future + Send
Implements [super::client::OrgPolicy::get_policy].
get_effective_policy
fn get_effective_policy(self: &Self, _req: crate::model::GetEffectivePolicyRequest, _options: gax::options::RequestOptions) -> impl std::future::Future + Send
Implements [super::client::OrgPolicy::get_effective_policy].
create_policy
fn create_policy(self: &Self, _req: crate::model::CreatePolicyRequest, _options: gax::options::RequestOptions) -> impl std::future::Future + Send
Implements [super::client::OrgPolicy::create_policy].
update_policy
fn update_policy(self: &Self, _req: crate::model::UpdatePolicyRequest, _options: gax::options::RequestOptions) -> impl std::future::Future + Send
Implements [super::client::OrgPolicy::update_policy].
delete_policy
fn delete_policy(self: &Self, _req: crate::model::DeletePolicyRequest, _options: gax::options::RequestOptions) -> impl std::future::Future + Send
Implements [super::client::OrgPolicy::delete_policy].
create_custom_constraint
fn create_custom_constraint(self: &Self, _req: crate::model::CreateCustomConstraintRequest, _options: gax::options::RequestOptions) -> impl std::future::Future + Send
Implements [super::client::OrgPolicy::create_custom_constraint].
update_custom_constraint
fn update_custom_constraint(self: &Self, _req: crate::model::UpdateCustomConstraintRequest, _options: gax::options::RequestOptions) -> impl std::future::Future + Send
Implements [super::client::OrgPolicy::update_custom_constraint].
get_custom_constraint
fn get_custom_constraint(self: &Self, _req: crate::model::GetCustomConstraintRequest, _options: gax::options::RequestOptions) -> impl std::future::Future + Send
Implements [super::client::OrgPolicy::get_custom_constraint].
list_custom_constraints
fn list_custom_constraints(self: &Self, _req: crate::model::ListCustomConstraintsRequest, _options: gax::options::RequestOptions) -> impl std::future::Future + Send
Implements [super::client::OrgPolicy::list_custom_constraints].
delete_custom_constraint
fn delete_custom_constraint(self: &Self, _req: crate::model::DeleteCustomConstraintRequest, _options: gax::options::RequestOptions) -> impl std::future::Future + Send
Implements [super::client::OrgPolicy::delete_custom_constraint].