use crate::Result;
#[derive(Clone, Debug)]
pub struct ParameterManager<T>
where
T: super::stub::ParameterManager + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> ParameterManager<T>
where
T: super::stub::ParameterManager + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::ParameterManager for ParameterManager<T>
where
T: super::stub::ParameterManager + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_parameters(
&self,
req: crate::model::ListParametersRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListParametersResponse>> {
self.inner.list_parameters(req, options).await
}
#[tracing::instrument(ret)]
async fn get_parameter(
&self,
req: crate::model::GetParameterRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Parameter>> {
self.inner.get_parameter(req, options).await
}
#[tracing::instrument(ret)]
async fn create_parameter(
&self,
req: crate::model::CreateParameterRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Parameter>> {
self.inner.create_parameter(req, options).await
}
#[tracing::instrument(ret)]
async fn update_parameter(
&self,
req: crate::model::UpdateParameterRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Parameter>> {
self.inner.update_parameter(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_parameter(
&self,
req: crate::model::DeleteParameterRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_parameter(req, options).await
}
#[tracing::instrument(ret)]
async fn list_parameter_versions(
&self,
req: crate::model::ListParameterVersionsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListParameterVersionsResponse>> {
self.inner.list_parameter_versions(req, options).await
}
#[tracing::instrument(ret)]
async fn get_parameter_version(
&self,
req: crate::model::GetParameterVersionRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ParameterVersion>> {
self.inner.get_parameter_version(req, options).await
}
#[tracing::instrument(ret)]
async fn render_parameter_version(
&self,
req: crate::model::RenderParameterVersionRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::RenderParameterVersionResponse>> {
self.inner.render_parameter_version(req, options).await
}
#[tracing::instrument(ret)]
async fn create_parameter_version(
&self,
req: crate::model::CreateParameterVersionRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ParameterVersion>> {
self.inner.create_parameter_version(req, options).await
}
#[tracing::instrument(ret)]
async fn update_parameter_version(
&self,
req: crate::model::UpdateParameterVersionRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ParameterVersion>> {
self.inner.update_parameter_version(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_parameter_version(
&self,
req: crate::model::DeleteParameterVersionRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_parameter_version(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
}
}