google-cloud-cloudcontrolspartner-v1 1.7.0

Google Cloud Client Libraries for Rust - Cloud Controls Partner API
Documentation
// Copyright 2025 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.

//! Traits to mock the clients in this library.
//!
//! Application developers may need to mock the clients in this library to test
//! how their application works with different (and sometimes hard to trigger)
//! client and service behavior. Such test can define mocks implementing the
//! trait(s) defined in this module, initialize the client with an instance of
//! this mock in their tests, and verify their application responds as expected.

#![allow(rustdoc::broken_intra_doc_links)]

pub(crate) mod dynamic;

/// Defines the trait used to implement [super::client::CloudControlsPartnerCore].
///
/// Application developers may need to implement this trait to mock
/// `client::CloudControlsPartnerCore`.  In other use-cases, application developers only
/// use `client::CloudControlsPartnerCore` and need not be concerned with this trait or
/// its implementations.
///
/// Services gain new RPCs routinely. Consequently, this trait gains new methods
/// too. To avoid breaking applications the trait provides a default
/// implementation of each method. Most of these implementations just return an
/// error.
pub trait CloudControlsPartnerCore: std::fmt::Debug + Send + Sync {
    /// Implements [super::client::CloudControlsPartnerCore::get_workload].
    fn get_workload(
        &self,
        _req: crate::model::GetWorkloadRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Workload>>> + Send
    {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::CloudControlsPartnerCore::list_workloads].
    fn list_workloads(
        &self,
        _req: crate::model::ListWorkloadsRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<
        Output = crate::Result<crate::Response<crate::model::ListWorkloadsResponse>>,
    > + Send {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::CloudControlsPartnerCore::get_customer].
    fn get_customer(
        &self,
        _req: crate::model::GetCustomerRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Customer>>> + Send
    {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::CloudControlsPartnerCore::list_customers].
    fn list_customers(
        &self,
        _req: crate::model::ListCustomersRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<
        Output = crate::Result<crate::Response<crate::model::ListCustomersResponse>>,
    > + Send {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::CloudControlsPartnerCore::get_ekm_connections].
    fn get_ekm_connections(
        &self,
        _req: crate::model::GetEkmConnectionsRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<
        Output = crate::Result<crate::Response<crate::model::EkmConnections>>,
    > + Send {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::CloudControlsPartnerCore::get_partner_permissions].
    fn get_partner_permissions(
        &self,
        _req: crate::model::GetPartnerPermissionsRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<
        Output = crate::Result<crate::Response<crate::model::PartnerPermissions>>,
    > + Send {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::CloudControlsPartnerCore::list_access_approval_requests].
    fn list_access_approval_requests(
        &self,
        _req: crate::model::ListAccessApprovalRequestsRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<
        Output = crate::Result<crate::Response<crate::model::ListAccessApprovalRequestsResponse>>,
    > + Send {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::CloudControlsPartnerCore::get_partner].
    fn get_partner(
        &self,
        _req: crate::model::GetPartnerRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Partner>>> + Send
    {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::CloudControlsPartnerCore::create_customer].
    fn create_customer(
        &self,
        _req: crate::model::CreateCustomerRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Customer>>> + Send
    {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::CloudControlsPartnerCore::update_customer].
    fn update_customer(
        &self,
        _req: crate::model::UpdateCustomerRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Customer>>> + Send
    {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::CloudControlsPartnerCore::delete_customer].
    fn delete_customer(
        &self,
        _req: crate::model::DeleteCustomerRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
        gaxi::unimplemented::unimplemented_stub()
    }
}

/// Defines the trait used to implement [super::client::CloudControlsPartnerMonitoring].
///
/// Application developers may need to implement this trait to mock
/// `client::CloudControlsPartnerMonitoring`.  In other use-cases, application developers only
/// use `client::CloudControlsPartnerMonitoring` and need not be concerned with this trait or
/// its implementations.
///
/// Services gain new RPCs routinely. Consequently, this trait gains new methods
/// too. To avoid breaking applications the trait provides a default
/// implementation of each method. Most of these implementations just return an
/// error.
pub trait CloudControlsPartnerMonitoring: std::fmt::Debug + Send + Sync {
    /// Implements [super::client::CloudControlsPartnerMonitoring::list_violations].
    fn list_violations(
        &self,
        _req: crate::model::ListViolationsRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<
        Output = crate::Result<crate::Response<crate::model::ListViolationsResponse>>,
    > + Send {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::CloudControlsPartnerMonitoring::get_violation].
    fn get_violation(
        &self,
        _req: crate::model::GetViolationRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Violation>>> + Send
    {
        gaxi::unimplemented::unimplemented_stub()
    }
}