#![allow(rustdoc::broken_intra_doc_links)]
pub(crate) mod dynamic;
pub trait FunctionService: std::fmt::Debug + Send + Sync {
fn get_function(
&self,
_req: crate::model::GetFunctionRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<crate::model::Function>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn list_functions(
&self,
_req: crate::model::ListFunctionsRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<crate::model::ListFunctionsResponse>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn create_function(
&self,
_req: crate::model::CreateFunctionRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn update_function(
&self,
_req: crate::model::UpdateFunctionRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn delete_function(
&self,
_req: crate::model::DeleteFunctionRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn generate_upload_url(
&self,
_req: crate::model::GenerateUploadUrlRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<crate::model::GenerateUploadUrlResponse>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn generate_download_url(
&self,
_req: crate::model::GenerateDownloadUrlRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<crate::model::GenerateDownloadUrlResponse>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn list_runtimes(
&self,
_req: crate::model::ListRuntimesRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<crate::model::ListRuntimesResponse>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn list_locations(
&self,
_req: location::model::ListLocationsRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<location::model::ListLocationsResponse>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn set_iam_policy(
&self,
_req: iam_v1::model::SetIamPolicyRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn get_iam_policy(
&self,
_req: iam_v1::model::GetIamPolicyRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn test_iam_permissions(
&self,
_req: iam_v1::model::TestIamPermissionsRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>>,
> + Send {
gaxi::unimplemented::unimplemented_stub()
}
fn list_operations(
&self,
_req: longrunning::model::ListOperationsRequest,
_options: gax::options::RequestOptions,
) -> impl std::future::Future<
Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
> + 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())
}
}