#![allow(rustdoc::broken_intra_doc_links)]
pub(crate) mod dynamic;
pub trait Policies: std::fmt::Debug + Send + Sync {
fn list_policies(
&self,
_req: crate::model::ListPoliciesRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<crate::model::ListPoliciesResponse>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn get_policy(
&self,
_req: crate::model::GetPolicyRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<crate::model::Policy>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn create_policy(
&self,
_req: crate::model::CreatePolicyRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn update_policy(
&self,
_req: crate::model::UpdatePolicyRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn delete_policy(
&self,
_req: crate::model::DeletePolicyRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn get_operation(
&self,
_req: longrunning::model::GetOperationRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn get_polling_error_policy(
&self,
_options: &gax::options::RequestOptions,
) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
}
fn get_polling_backoff_policy(
&self,
_options: &gax::options::RequestOptions,
) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
}
}