Trait OrgPolicy (0.5.0)

定義用於實作 [super::client::OrgPolicy] 的特徵。

應用程式開發人員可能需要實作這個特徵,才能模擬 client::OrgPolicy。在其他用途中,應用程式開發人員只會使用 client::OrgPolicy,不需要擔心這個特徵或其導入方式。

服務會定期取得新的 RPC。因此,這個特徵也會獲得新方法。為避免應用程式中斷,特徵會提供每個方法的預設實作。這些實作大多只會傳回錯誤。

提供的付款方式

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]。