google-cloud-agentidentity-v1 1.1.0

Google Cloud Client Libraries for Rust - Agent Identity API
Documentation
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by sidekick. DO NOT EDIT.

/// A dyn-compatible, crate-private version of [super::AuthProviderService].
#[async_trait::async_trait]
pub trait AuthProviderService: std::fmt::Debug + Send + Sync {
    async fn list_auth_providers(
        &self,
        req: crate::model::ListAuthProvidersRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListAuthProvidersResponse>>;

    async fn get_auth_provider(
        &self,
        req: crate::model::GetAuthProviderRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AuthProvider>>;

    async fn create_auth_provider(
        &self,
        req: crate::model::CreateAuthProviderRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AuthProvider>>;

    async fn update_auth_provider(
        &self,
        req: crate::model::UpdateAuthProviderRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AuthProvider>>;

    async fn delete_auth_provider(
        &self,
        req: crate::model::DeleteAuthProviderRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<()>>;

    async fn undelete_auth_provider(
        &self,
        req: crate::model::UndeleteAuthProviderRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AuthProvider>>;

    async fn query_auth_providers(
        &self,
        req: crate::model::QueryAuthProvidersRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::QueryAuthProvidersResponse>>;

    async fn query_workloads(
        &self,
        req: crate::model::QueryWorkloadsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::QueryWorkloadsResponse>>;

    async fn list_authorizations(
        &self,
        req: crate::model::ListAuthorizationsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListAuthorizationsResponse>>;

    async fn get_authorization(
        &self,
        req: crate::model::GetAuthorizationRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::Authorization>>;

    async fn delete_authorization(
        &self,
        req: crate::model::DeleteAuthorizationRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<()>>;

    async fn list_access_summaries(
        &self,
        req: crate::model::ListAccessSummariesRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListAccessSummariesResponse>>;

    async fn get_access_summary(
        &self,
        req: crate::model::GetAccessSummaryRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AccessSummary>>;

    async fn revoke_authorization(
        &self,
        req: crate::model::RevokeAuthorizationRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::RevokeAuthorizationResponse>>;

    async fn enable_auth_provider(
        &self,
        req: crate::model::EnableAuthProviderRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AuthProvider>>;

    async fn disable_auth_provider(
        &self,
        req: crate::model::DisableAuthProviderRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AuthProvider>>;

    async fn list_locations(
        &self,
        req: google_cloud_location::model::ListLocationsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<google_cloud_location::model::ListLocationsResponse>>;

    async fn get_location(
        &self,
        req: google_cloud_location::model::GetLocationRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<google_cloud_location::model::Location>>;

    async fn set_iam_policy(
        &self,
        req: google_cloud_iam_v1::model::SetIamPolicyRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<google_cloud_iam_v1::model::Policy>>;

    async fn get_iam_policy(
        &self,
        req: google_cloud_iam_v1::model::GetIamPolicyRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<google_cloud_iam_v1::model::Policy>>;

    async fn test_iam_permissions(
        &self,
        req: google_cloud_iam_v1::model::TestIamPermissionsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<google_cloud_iam_v1::model::TestIamPermissionsResponse>>;
}

/// All implementations of [super::AuthProviderService] also implement [AuthProviderService].
#[async_trait::async_trait]
impl<T: super::AuthProviderService> AuthProviderService for T {
    /// Forwards the call to the implementation provided by `T`.
    async fn list_auth_providers(
        &self,
        req: crate::model::ListAuthProvidersRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListAuthProvidersResponse>> {
        T::list_auth_providers(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_auth_provider(
        &self,
        req: crate::model::GetAuthProviderRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AuthProvider>> {
        T::get_auth_provider(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn create_auth_provider(
        &self,
        req: crate::model::CreateAuthProviderRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AuthProvider>> {
        T::create_auth_provider(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn update_auth_provider(
        &self,
        req: crate::model::UpdateAuthProviderRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AuthProvider>> {
        T::update_auth_provider(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn delete_auth_provider(
        &self,
        req: crate::model::DeleteAuthProviderRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<()>> {
        T::delete_auth_provider(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn undelete_auth_provider(
        &self,
        req: crate::model::UndeleteAuthProviderRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AuthProvider>> {
        T::undelete_auth_provider(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn query_auth_providers(
        &self,
        req: crate::model::QueryAuthProvidersRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::QueryAuthProvidersResponse>> {
        T::query_auth_providers(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn query_workloads(
        &self,
        req: crate::model::QueryWorkloadsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::QueryWorkloadsResponse>> {
        T::query_workloads(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_authorizations(
        &self,
        req: crate::model::ListAuthorizationsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListAuthorizationsResponse>> {
        T::list_authorizations(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_authorization(
        &self,
        req: crate::model::GetAuthorizationRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::Authorization>> {
        T::get_authorization(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn delete_authorization(
        &self,
        req: crate::model::DeleteAuthorizationRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<()>> {
        T::delete_authorization(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_access_summaries(
        &self,
        req: crate::model::ListAccessSummariesRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListAccessSummariesResponse>> {
        T::list_access_summaries(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_access_summary(
        &self,
        req: crate::model::GetAccessSummaryRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AccessSummary>> {
        T::get_access_summary(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn revoke_authorization(
        &self,
        req: crate::model::RevokeAuthorizationRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::RevokeAuthorizationResponse>> {
        T::revoke_authorization(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn enable_auth_provider(
        &self,
        req: crate::model::EnableAuthProviderRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AuthProvider>> {
        T::enable_auth_provider(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn disable_auth_provider(
        &self,
        req: crate::model::DisableAuthProviderRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AuthProvider>> {
        T::disable_auth_provider(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_locations(
        &self,
        req: google_cloud_location::model::ListLocationsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
        T::list_locations(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_location(
        &self,
        req: google_cloud_location::model::GetLocationRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<google_cloud_location::model::Location>> {
        T::get_location(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn set_iam_policy(
        &self,
        req: google_cloud_iam_v1::model::SetIamPolicyRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
        T::set_iam_policy(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_iam_policy(
        &self,
        req: google_cloud_iam_v1::model::GetIamPolicyRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
        T::get_iam_policy(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn test_iam_permissions(
        &self,
        req: google_cloud_iam_v1::model::TestIamPermissionsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<google_cloud_iam_v1::model::TestIamPermissionsResponse>>
    {
        T::test_iam_permissions(self, req, options).await
    }
}