定义用于实现 [super::client::OrgPolicy] 的 trait。
应用开发者可能需要实现此 trait 才能模拟 client::OrgPolicy。在其他用例中,应用开发者仅使用 client::OrgPolicy,无需关注此 trait 或其实现。
服务会定期获得新的 RPC。因此,此 trait 也会获得新方法。为避免破坏应用,trait 为每个方法提供了默认实现。大多数此类实现只是返回错误。
提供的方法
list_constraints
fn list_constraints(self: &Self, _req: crate::model::ListConstraintsRequest, _options: gax::options::RequestOptions) -> impl std::future::Future + Send
实现 [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
实现 [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
实现 [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
实现 [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
实现 [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
实现 [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
实现 [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
实现 [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
实现 [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
实现 [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
实现 [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
实现 [super::client::OrgPolicy::delete_custom_constraint]。