use crate::Result;
#[derive(Clone, Debug)]
pub struct ConfidentialComputing<T>
where
T: super::stub::ConfidentialComputing + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> ConfidentialComputing<T>
where
T: super::stub::ConfidentialComputing + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::ConfidentialComputing for ConfidentialComputing<T>
where
T: super::stub::ConfidentialComputing + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create_challenge(
&self,
req: crate::model::CreateChallengeRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Challenge>> {
self.inner.create_challenge(req, options).await
}
#[tracing::instrument(ret)]
async fn verify_attestation(
&self,
req: crate::model::VerifyAttestationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::VerifyAttestationResponse>> {
self.inner.verify_attestation(req, options).await
}
#[tracing::instrument(ret)]
async fn verify_confidential_space(
&self,
req: crate::model::VerifyConfidentialSpaceRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::VerifyConfidentialSpaceResponse>> {
self.inner.verify_confidential_space(req, options).await
}
#[tracing::instrument(ret)]
async fn verify_confidential_gke(
&self,
req: crate::model::VerifyConfidentialGkeRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::VerifyConfidentialGkeResponse>> {
self.inner.verify_confidential_gke(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
}