#![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: crate::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<crate::Response<crate::model::ListPoliciesResponse>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn get_policy(
&self,
_req: crate::model::GetPolicyRequest,
_options: crate::RequestOptions,
) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Policy>>> + Send
{
gaxi::unimplemented::unimplemented_stub()
}
fn create_policy(
&self,
_req: crate::model::CreatePolicyRequest,
_options: crate::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn update_policy(
&self,
_req: crate::model::UpdatePolicyRequest,
_options: crate::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn delete_policy(
&self,
_req: crate::model::DeletePolicyRequest,
_options: crate::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn get_operation(
&self,
_req: google_cloud_longrunning::model::GetOperationRequest,
_options: crate::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn get_polling_error_policy(
&self,
_options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
}
fn get_polling_backoff_policy(
&self,
_options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
}
}