use crate::Result;
#[derive(Clone, Debug)]
pub struct PolicyBindings<T>
where
T: super::stub::PolicyBindings + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> PolicyBindings<T>
where
T: super::stub::PolicyBindings + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::PolicyBindings for PolicyBindings<T>
where
T: super::stub::PolicyBindings + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create_policy_binding(
&self,
req: crate::model::CreatePolicyBindingRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.create_policy_binding(req, options).await
}
#[tracing::instrument(ret)]
async fn get_policy_binding(
&self,
req: crate::model::GetPolicyBindingRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::PolicyBinding>> {
self.inner.get_policy_binding(req, options).await
}
#[tracing::instrument(ret)]
async fn update_policy_binding(
&self,
req: crate::model::UpdatePolicyBindingRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.update_policy_binding(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_policy_binding(
&self,
req: crate::model::DeletePolicyBindingRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.delete_policy_binding(req, options).await
}
#[tracing::instrument(ret)]
async fn list_policy_bindings(
&self,
req: crate::model::ListPolicyBindingsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListPolicyBindingsResponse>> {
self.inner.list_policy_bindings(req, options).await
}
#[tracing::instrument(ret)]
async fn search_target_policy_bindings(
&self,
req: crate::model::SearchTargetPolicyBindingsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SearchTargetPolicyBindingsResponse>> {
self.inner.search_target_policy_bindings(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
self.inner.get_polling_error_policy(options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
self.inner.get_polling_backoff_policy(options)
}
}
#[derive(Clone, Debug)]
pub struct PrincipalAccessBoundaryPolicies<T>
where
T: super::stub::PrincipalAccessBoundaryPolicies + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> PrincipalAccessBoundaryPolicies<T>
where
T: super::stub::PrincipalAccessBoundaryPolicies + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::PrincipalAccessBoundaryPolicies for PrincipalAccessBoundaryPolicies<T>
where
T: super::stub::PrincipalAccessBoundaryPolicies + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create_principal_access_boundary_policy(
&self,
req: crate::model::CreatePrincipalAccessBoundaryPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner
.create_principal_access_boundary_policy(req, options)
.await
}
#[tracing::instrument(ret)]
async fn get_principal_access_boundary_policy(
&self,
req: crate::model::GetPrincipalAccessBoundaryPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::PrincipalAccessBoundaryPolicy>> {
self.inner
.get_principal_access_boundary_policy(req, options)
.await
}
#[tracing::instrument(ret)]
async fn update_principal_access_boundary_policy(
&self,
req: crate::model::UpdatePrincipalAccessBoundaryPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner
.update_principal_access_boundary_policy(req, options)
.await
}
#[tracing::instrument(ret)]
async fn delete_principal_access_boundary_policy(
&self,
req: crate::model::DeletePrincipalAccessBoundaryPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner
.delete_principal_access_boundary_policy(req, options)
.await
}
#[tracing::instrument(ret)]
async fn list_principal_access_boundary_policies(
&self,
req: crate::model::ListPrincipalAccessBoundaryPoliciesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListPrincipalAccessBoundaryPoliciesResponse>> {
self.inner
.list_principal_access_boundary_policies(req, options)
.await
}
#[tracing::instrument(ret)]
async fn search_principal_access_boundary_policy_bindings(
&self,
req: crate::model::SearchPrincipalAccessBoundaryPolicyBindingsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SearchPrincipalAccessBoundaryPolicyBindingsResponse>>
{
self.inner
.search_principal_access_boundary_policy_bindings(req, options)
.await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
self.inner.get_polling_error_policy(options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
self.inner.get_polling_backoff_policy(options)
}
}