use crate::Result;
#[derive(Clone, Debug)]
pub struct CloudShellService<T>
where
T: super::stub::CloudShellService + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> CloudShellService<T>
where
T: super::stub::CloudShellService + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::CloudShellService for CloudShellService<T>
where
T: super::stub::CloudShellService + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn get_environment(
&self,
req: crate::model::GetEnvironmentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Environment>> {
self.inner.get_environment(req, options).await
}
#[tracing::instrument(ret)]
async fn start_environment(
&self,
req: crate::model::StartEnvironmentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.start_environment(req, options).await
}
#[tracing::instrument(ret)]
async fn authorize_environment(
&self,
req: crate::model::AuthorizeEnvironmentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.authorize_environment(req, options).await
}
#[tracing::instrument(ret)]
async fn add_public_key(
&self,
req: crate::model::AddPublicKeyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.add_public_key(req, options).await
}
#[tracing::instrument(ret)]
async fn remove_public_key(
&self,
req: crate::model::RemovePublicKeyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.remove_public_key(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
self.inner.get_polling_error_policy(options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
self.inner.get_polling_backoff_policy(options)
}
}