use crate::Result;
#[derive(Clone, Debug)]
pub struct Folders<T>
where
T: super::stub::Folders + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> Folders<T>
where
T: super::stub::Folders + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::Folders for Folders<T>
where
T: super::stub::Folders + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn get_folder(
&self,
req: crate::model::GetFolderRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Folder>> {
self.inner.get_folder(req, options).await
}
#[tracing::instrument(ret)]
async fn list_folders(
&self,
req: crate::model::ListFoldersRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListFoldersResponse>> {
self.inner.list_folders(req, options).await
}
#[tracing::instrument(ret)]
async fn search_folders(
&self,
req: crate::model::SearchFoldersRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SearchFoldersResponse>> {
self.inner.search_folders(req, options).await
}
#[tracing::instrument(ret)]
async fn create_folder(
&self,
req: crate::model::CreateFolderRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.create_folder(req, options).await
}
#[tracing::instrument(ret)]
async fn update_folder(
&self,
req: crate::model::UpdateFolderRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.update_folder(req, options).await
}
#[tracing::instrument(ret)]
async fn move_folder(
&self,
req: crate::model::MoveFolderRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.move_folder(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_folder(
&self,
req: crate::model::DeleteFolderRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.delete_folder(req, options).await
}
#[tracing::instrument(ret)]
async fn undelete_folder(
&self,
req: crate::model::UndeleteFolderRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.undelete_folder(req, options).await
}
#[tracing::instrument(ret)]
async fn get_iam_policy(
&self,
req: google_cloud_iam_v1::model::GetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
self.inner.get_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn set_iam_policy(
&self,
req: google_cloud_iam_v1::model::SetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
self.inner.set_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn test_iam_permissions(
&self,
req: google_cloud_iam_v1::model::TestIamPermissionsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::TestIamPermissionsResponse>> {
self.inner.test_iam_permissions(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)
}
}
#[derive(Clone, Debug)]
pub struct Organizations<T>
where
T: super::stub::Organizations + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> Organizations<T>
where
T: super::stub::Organizations + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::Organizations for Organizations<T>
where
T: super::stub::Organizations + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn get_organization(
&self,
req: crate::model::GetOrganizationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Organization>> {
self.inner.get_organization(req, options).await
}
#[tracing::instrument(ret)]
async fn search_organizations(
&self,
req: crate::model::SearchOrganizationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SearchOrganizationsResponse>> {
self.inner.search_organizations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_iam_policy(
&self,
req: google_cloud_iam_v1::model::GetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
self.inner.get_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn set_iam_policy(
&self,
req: google_cloud_iam_v1::model::SetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
self.inner.set_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn test_iam_permissions(
&self,
req: google_cloud_iam_v1::model::TestIamPermissionsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::TestIamPermissionsResponse>> {
self.inner.test_iam_permissions(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
}
}
#[derive(Clone, Debug)]
pub struct Projects<T>
where
T: super::stub::Projects + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> Projects<T>
where
T: super::stub::Projects + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::Projects for Projects<T>
where
T: super::stub::Projects + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn get_project(
&self,
req: crate::model::GetProjectRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Project>> {
self.inner.get_project(req, options).await
}
#[tracing::instrument(ret)]
async fn list_projects(
&self,
req: crate::model::ListProjectsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListProjectsResponse>> {
self.inner.list_projects(req, options).await
}
#[tracing::instrument(ret)]
async fn search_projects(
&self,
req: crate::model::SearchProjectsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SearchProjectsResponse>> {
self.inner.search_projects(req, options).await
}
#[tracing::instrument(ret)]
async fn create_project(
&self,
req: crate::model::CreateProjectRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.create_project(req, options).await
}
#[tracing::instrument(ret)]
async fn update_project(
&self,
req: crate::model::UpdateProjectRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.update_project(req, options).await
}
#[tracing::instrument(ret)]
async fn move_project(
&self,
req: crate::model::MoveProjectRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.move_project(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_project(
&self,
req: crate::model::DeleteProjectRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.delete_project(req, options).await
}
#[tracing::instrument(ret)]
async fn undelete_project(
&self,
req: crate::model::UndeleteProjectRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.undelete_project(req, options).await
}
#[tracing::instrument(ret)]
async fn get_iam_policy(
&self,
req: google_cloud_iam_v1::model::GetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
self.inner.get_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn set_iam_policy(
&self,
req: google_cloud_iam_v1::model::SetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
self.inner.set_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn test_iam_permissions(
&self,
req: google_cloud_iam_v1::model::TestIamPermissionsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::TestIamPermissionsResponse>> {
self.inner.test_iam_permissions(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)
}
}
#[derive(Clone, Debug)]
pub struct TagBindings<T>
where
T: super::stub::TagBindings + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> TagBindings<T>
where
T: super::stub::TagBindings + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::TagBindings for TagBindings<T>
where
T: super::stub::TagBindings + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_tag_bindings(
&self,
req: crate::model::ListTagBindingsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListTagBindingsResponse>> {
self.inner.list_tag_bindings(req, options).await
}
#[tracing::instrument(ret)]
async fn create_tag_binding(
&self,
req: crate::model::CreateTagBindingRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.create_tag_binding(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_tag_binding(
&self,
req: crate::model::DeleteTagBindingRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.delete_tag_binding(req, options).await
}
#[tracing::instrument(ret)]
async fn list_effective_tags(
&self,
req: crate::model::ListEffectiveTagsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListEffectiveTagsResponse>> {
self.inner.list_effective_tags(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)
}
}
#[derive(Clone, Debug)]
pub struct TagHolds<T>
where
T: super::stub::TagHolds + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> TagHolds<T>
where
T: super::stub::TagHolds + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::TagHolds for TagHolds<T>
where
T: super::stub::TagHolds + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create_tag_hold(
&self,
req: crate::model::CreateTagHoldRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.create_tag_hold(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_tag_hold(
&self,
req: crate::model::DeleteTagHoldRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.delete_tag_hold(req, options).await
}
#[tracing::instrument(ret)]
async fn list_tag_holds(
&self,
req: crate::model::ListTagHoldsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListTagHoldsResponse>> {
self.inner.list_tag_holds(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)
}
}
#[derive(Clone, Debug)]
pub struct TagKeys<T>
where
T: super::stub::TagKeys + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> TagKeys<T>
where
T: super::stub::TagKeys + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::TagKeys for TagKeys<T>
where
T: super::stub::TagKeys + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_tag_keys(
&self,
req: crate::model::ListTagKeysRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListTagKeysResponse>> {
self.inner.list_tag_keys(req, options).await
}
#[tracing::instrument(ret)]
async fn get_tag_key(
&self,
req: crate::model::GetTagKeyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::TagKey>> {
self.inner.get_tag_key(req, options).await
}
#[tracing::instrument(ret)]
async fn get_namespaced_tag_key(
&self,
req: crate::model::GetNamespacedTagKeyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::TagKey>> {
self.inner.get_namespaced_tag_key(req, options).await
}
#[tracing::instrument(ret)]
async fn create_tag_key(
&self,
req: crate::model::CreateTagKeyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.create_tag_key(req, options).await
}
#[tracing::instrument(ret)]
async fn update_tag_key(
&self,
req: crate::model::UpdateTagKeyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.update_tag_key(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_tag_key(
&self,
req: crate::model::DeleteTagKeyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.delete_tag_key(req, options).await
}
#[tracing::instrument(ret)]
async fn get_iam_policy(
&self,
req: google_cloud_iam_v1::model::GetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
self.inner.get_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn set_iam_policy(
&self,
req: google_cloud_iam_v1::model::SetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
self.inner.set_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn test_iam_permissions(
&self,
req: google_cloud_iam_v1::model::TestIamPermissionsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::TestIamPermissionsResponse>> {
self.inner.test_iam_permissions(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)
}
}
#[derive(Clone, Debug)]
pub struct TagValues<T>
where
T: super::stub::TagValues + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> TagValues<T>
where
T: super::stub::TagValues + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::TagValues for TagValues<T>
where
T: super::stub::TagValues + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_tag_values(
&self,
req: crate::model::ListTagValuesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListTagValuesResponse>> {
self.inner.list_tag_values(req, options).await
}
#[tracing::instrument(ret)]
async fn get_tag_value(
&self,
req: crate::model::GetTagValueRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::TagValue>> {
self.inner.get_tag_value(req, options).await
}
#[tracing::instrument(ret)]
async fn get_namespaced_tag_value(
&self,
req: crate::model::GetNamespacedTagValueRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::TagValue>> {
self.inner.get_namespaced_tag_value(req, options).await
}
#[tracing::instrument(ret)]
async fn create_tag_value(
&self,
req: crate::model::CreateTagValueRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.create_tag_value(req, options).await
}
#[tracing::instrument(ret)]
async fn update_tag_value(
&self,
req: crate::model::UpdateTagValueRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.update_tag_value(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_tag_value(
&self,
req: crate::model::DeleteTagValueRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.delete_tag_value(req, options).await
}
#[tracing::instrument(ret)]
async fn get_iam_policy(
&self,
req: google_cloud_iam_v1::model::GetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
self.inner.get_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn set_iam_policy(
&self,
req: google_cloud_iam_v1::model::SetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
self.inner.set_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn test_iam_permissions(
&self,
req: google_cloud_iam_v1::model::TestIamPermissionsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::TestIamPermissionsResponse>> {
self.inner.test_iam_permissions(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)
}
}