#![allow(rustdoc::broken_intra_doc_links)]
pub(crate) mod dynamic;
pub trait ApiKeys: std::fmt::Debug + Send + Sync {
fn create_key(
&self,
_req: crate::model::CreateKeyRequest,
_options: crate::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn list_keys(
&self,
_req: crate::model::ListKeysRequest,
_options: crate::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<crate::Response<crate::model::ListKeysResponse>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn get_key(
&self,
_req: crate::model::GetKeyRequest,
_options: crate::RequestOptions,
) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Key>>> + Send
{
gaxi::unimplemented::unimplemented_stub()
}
fn get_key_string(
&self,
_req: crate::model::GetKeyStringRequest,
_options: crate::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<crate::Response<crate::model::GetKeyStringResponse>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn update_key(
&self,
_req: crate::model::UpdateKeyRequest,
_options: crate::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn delete_key(
&self,
_req: crate::model::DeleteKeyRequest,
_options: crate::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn undelete_key(
&self,
_req: crate::model::UndeleteKeyRequest,
_options: crate::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn lookup_key(
&self,
_req: crate::model::LookupKeyRequest,
_options: crate::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<crate::Response<crate::model::LookupKeyResponse>>,
> + 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())
}
#[doc(hidden)]
fn get_poller_options(
&self,
_options: &crate::RequestOptions,
) -> google_cloud_lro::PollerOptions {
google_cloud_lro::PollerOptions::default()
}
}