use crate::Result;
#[derive(Clone, Debug)]
pub struct Audit<T>
where
T: super::stub::Audit + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> Audit<T>
where
T: super::stub::Audit + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::Audit for Audit<T>
where
T: super::stub::Audit + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn generate_framework_audit_scope_report(
&self,
req: crate::model::GenerateFrameworkAuditScopeReportRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::GenerateFrameworkAuditScopeReportResponse>> {
self.inner
.generate_framework_audit_scope_report(req, options)
.await
}
#[tracing::instrument(ret)]
async fn create_framework_audit(
&self,
req: crate::model::CreateFrameworkAuditRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.create_framework_audit(req, options).await
}
#[tracing::instrument(ret)]
async fn list_framework_audits(
&self,
req: crate::model::ListFrameworkAuditsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListFrameworkAuditsResponse>> {
self.inner.list_framework_audits(req, options).await
}
#[tracing::instrument(ret)]
async fn get_framework_audit(
&self,
req: crate::model::GetFrameworkAuditRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::FrameworkAudit>> {
self.inner.get_framework_audit(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
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(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
}
#[tracing::instrument(ret)]
async fn delete_operation(
&self,
req: google_cloud_longrunning::model::DeleteOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_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 CmEnrollmentService<T>
where
T: super::stub::CmEnrollmentService + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> CmEnrollmentService<T>
where
T: super::stub::CmEnrollmentService + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::CmEnrollmentService for CmEnrollmentService<T>
where
T: super::stub::CmEnrollmentService + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn update_cm_enrollment(
&self,
req: crate::model::UpdateCmEnrollmentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::CmEnrollment>> {
self.inner.update_cm_enrollment(req, options).await
}
#[tracing::instrument(ret)]
async fn calculate_effective_cm_enrollment(
&self,
req: crate::model::CalculateEffectiveCmEnrollmentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::CalculateEffectiveCmEnrollmentResponse>> {
self.inner
.calculate_effective_cm_enrollment(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
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(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
}
#[tracing::instrument(ret)]
async fn delete_operation(
&self,
req: google_cloud_longrunning::model::DeleteOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
}
#[derive(Clone, Debug)]
pub struct Config<T>
where
T: super::stub::Config + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> Config<T>
where
T: super::stub::Config + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::Config for Config<T>
where
T: super::stub::Config + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_frameworks(
&self,
req: crate::model::ListFrameworksRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListFrameworksResponse>> {
self.inner.list_frameworks(req, options).await
}
#[tracing::instrument(ret)]
async fn get_framework(
&self,
req: crate::model::GetFrameworkRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Framework>> {
self.inner.get_framework(req, options).await
}
#[tracing::instrument(ret)]
async fn create_framework(
&self,
req: crate::model::CreateFrameworkRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Framework>> {
self.inner.create_framework(req, options).await
}
#[tracing::instrument(ret)]
async fn update_framework(
&self,
req: crate::model::UpdateFrameworkRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Framework>> {
self.inner.update_framework(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_framework(
&self,
req: crate::model::DeleteFrameworkRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_framework(req, options).await
}
#[tracing::instrument(ret)]
async fn list_cloud_controls(
&self,
req: crate::model::ListCloudControlsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListCloudControlsResponse>> {
self.inner.list_cloud_controls(req, options).await
}
#[tracing::instrument(ret)]
async fn get_cloud_control(
&self,
req: crate::model::GetCloudControlRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::CloudControl>> {
self.inner.get_cloud_control(req, options).await
}
#[tracing::instrument(ret)]
async fn create_cloud_control(
&self,
req: crate::model::CreateCloudControlRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::CloudControl>> {
self.inner.create_cloud_control(req, options).await
}
#[tracing::instrument(ret)]
async fn update_cloud_control(
&self,
req: crate::model::UpdateCloudControlRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::CloudControl>> {
self.inner.update_cloud_control(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_cloud_control(
&self,
req: crate::model::DeleteCloudControlRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_cloud_control(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
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(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
}
#[tracing::instrument(ret)]
async fn delete_operation(
&self,
req: google_cloud_longrunning::model::DeleteOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
}
#[derive(Clone, Debug)]
pub struct Deployment<T>
where
T: super::stub::Deployment + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> Deployment<T>
where
T: super::stub::Deployment + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::Deployment for Deployment<T>
where
T: super::stub::Deployment + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create_framework_deployment(
&self,
req: crate::model::CreateFrameworkDeploymentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.create_framework_deployment(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_framework_deployment(
&self,
req: crate::model::DeleteFrameworkDeploymentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.delete_framework_deployment(req, options).await
}
#[tracing::instrument(ret)]
async fn get_framework_deployment(
&self,
req: crate::model::GetFrameworkDeploymentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::FrameworkDeployment>> {
self.inner.get_framework_deployment(req, options).await
}
#[tracing::instrument(ret)]
async fn list_framework_deployments(
&self,
req: crate::model::ListFrameworkDeploymentsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListFrameworkDeploymentsResponse>> {
self.inner.list_framework_deployments(req, options).await
}
#[tracing::instrument(ret)]
async fn get_cloud_control_deployment(
&self,
req: crate::model::GetCloudControlDeploymentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::CloudControlDeployment>> {
self.inner.get_cloud_control_deployment(req, options).await
}
#[tracing::instrument(ret)]
async fn list_cloud_control_deployments(
&self,
req: crate::model::ListCloudControlDeploymentsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListCloudControlDeploymentsResponse>> {
self.inner
.list_cloud_control_deployments(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
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(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
}
#[tracing::instrument(ret)]
async fn delete_operation(
&self,
req: google_cloud_longrunning::model::DeleteOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_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 Monitoring<T>
where
T: super::stub::Monitoring + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> Monitoring<T>
where
T: super::stub::Monitoring + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::Monitoring for Monitoring<T>
where
T: super::stub::Monitoring + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_framework_compliance_summaries(
&self,
req: crate::model::ListFrameworkComplianceSummariesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListFrameworkComplianceSummariesResponse>> {
self.inner
.list_framework_compliance_summaries(req, options)
.await
}
#[tracing::instrument(ret)]
async fn list_finding_summaries(
&self,
req: crate::model::ListFindingSummariesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListFindingSummariesResponse>> {
self.inner.list_finding_summaries(req, options).await
}
#[tracing::instrument(ret)]
async fn fetch_framework_compliance_report(
&self,
req: crate::model::FetchFrameworkComplianceReportRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::FrameworkComplianceReport>> {
self.inner
.fetch_framework_compliance_report(req, options)
.await
}
#[tracing::instrument(ret)]
async fn list_control_compliance_summaries(
&self,
req: crate::model::ListControlComplianceSummariesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListControlComplianceSummariesResponse>> {
self.inner
.list_control_compliance_summaries(req, options)
.await
}
#[tracing::instrument(ret)]
async fn aggregate_framework_compliance_report(
&self,
req: crate::model::AggregateFrameworkComplianceReportRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::AggregateFrameworkComplianceReportResponse>> {
self.inner
.aggregate_framework_compliance_report(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
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(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
}
#[tracing::instrument(ret)]
async fn delete_operation(
&self,
req: google_cloud_longrunning::model::DeleteOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
}