#[async_trait::async_trait]
pub trait OsConfigService: std::fmt::Debug + Send + Sync {
async fn execute_patch_job(
&self,
req: crate::model::ExecutePatchJobRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PatchJob>>;
async fn get_patch_job(
&self,
req: crate::model::GetPatchJobRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PatchJob>>;
async fn cancel_patch_job(
&self,
req: crate::model::CancelPatchJobRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PatchJob>>;
async fn list_patch_jobs(
&self,
req: crate::model::ListPatchJobsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListPatchJobsResponse>>;
async fn list_patch_job_instance_details(
&self,
req: crate::model::ListPatchJobInstanceDetailsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListPatchJobInstanceDetailsResponse>>;
async fn create_patch_deployment(
&self,
req: crate::model::CreatePatchDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PatchDeployment>>;
async fn get_patch_deployment(
&self,
req: crate::model::GetPatchDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PatchDeployment>>;
async fn list_patch_deployments(
&self,
req: crate::model::ListPatchDeploymentsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListPatchDeploymentsResponse>>;
async fn delete_patch_deployment(
&self,
req: crate::model::DeletePatchDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<()>>;
async fn update_patch_deployment(
&self,
req: crate::model::UpdatePatchDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PatchDeployment>>;
async fn pause_patch_deployment(
&self,
req: crate::model::PausePatchDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PatchDeployment>>;
async fn resume_patch_deployment(
&self,
req: crate::model::ResumePatchDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PatchDeployment>>;
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<()>>;
}
#[async_trait::async_trait]
impl<T: super::OsConfigService> OsConfigService for T {
async fn execute_patch_job(
&self,
req: crate::model::ExecutePatchJobRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PatchJob>> {
T::execute_patch_job(self, req, options).await
}
async fn get_patch_job(
&self,
req: crate::model::GetPatchJobRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PatchJob>> {
T::get_patch_job(self, req, options).await
}
async fn cancel_patch_job(
&self,
req: crate::model::CancelPatchJobRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PatchJob>> {
T::cancel_patch_job(self, req, options).await
}
async fn list_patch_jobs(
&self,
req: crate::model::ListPatchJobsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListPatchJobsResponse>> {
T::list_patch_jobs(self, req, options).await
}
async fn list_patch_job_instance_details(
&self,
req: crate::model::ListPatchJobInstanceDetailsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListPatchJobInstanceDetailsResponse>> {
T::list_patch_job_instance_details(self, req, options).await
}
async fn create_patch_deployment(
&self,
req: crate::model::CreatePatchDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PatchDeployment>> {
T::create_patch_deployment(self, req, options).await
}
async fn get_patch_deployment(
&self,
req: crate::model::GetPatchDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PatchDeployment>> {
T::get_patch_deployment(self, req, options).await
}
async fn list_patch_deployments(
&self,
req: crate::model::ListPatchDeploymentsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListPatchDeploymentsResponse>> {
T::list_patch_deployments(self, req, options).await
}
async fn delete_patch_deployment(
&self,
req: crate::model::DeletePatchDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<()>> {
T::delete_patch_deployment(self, req, options).await
}
async fn update_patch_deployment(
&self,
req: crate::model::UpdatePatchDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PatchDeployment>> {
T::update_patch_deployment(self, req, options).await
}
async fn pause_patch_deployment(
&self,
req: crate::model::PausePatchDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PatchDeployment>> {
T::pause_patch_deployment(self, req, options).await
}
async fn resume_patch_deployment(
&self,
req: crate::model::ResumePatchDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PatchDeployment>> {
T::resume_patch_deployment(self, req, options).await
}
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::get_operation(self, req, options).await
}
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<()>> {
T::cancel_operation(self, req, options).await
}
}
#[async_trait::async_trait]
pub trait OsConfigZonalService: std::fmt::Debug + Send + Sync {
async fn create_os_policy_assignment(
&self,
req: crate::model::CreateOSPolicyAssignmentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn update_os_policy_assignment(
&self,
req: crate::model::UpdateOSPolicyAssignmentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn get_os_policy_assignment(
&self,
req: crate::model::GetOSPolicyAssignmentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::OSPolicyAssignment>>;
async fn list_os_policy_assignments(
&self,
req: crate::model::ListOSPolicyAssignmentsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListOSPolicyAssignmentsResponse>>;
async fn list_os_policy_assignment_revisions(
&self,
req: crate::model::ListOSPolicyAssignmentRevisionsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListOSPolicyAssignmentRevisionsResponse>>;
async fn delete_os_policy_assignment(
&self,
req: crate::model::DeleteOSPolicyAssignmentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn get_os_policy_assignment_report(
&self,
req: crate::model::GetOSPolicyAssignmentReportRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::OSPolicyAssignmentReport>>;
async fn list_os_policy_assignment_reports(
&self,
req: crate::model::ListOSPolicyAssignmentReportsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListOSPolicyAssignmentReportsResponse>>;
async fn get_inventory(
&self,
req: crate::model::GetInventoryRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::Inventory>>;
async fn list_inventories(
&self,
req: crate::model::ListInventoriesRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListInventoriesResponse>>;
async fn get_vulnerability_report(
&self,
req: crate::model::GetVulnerabilityReportRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::VulnerabilityReport>>;
async fn list_vulnerability_reports(
&self,
req: crate::model::ListVulnerabilityReportsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListVulnerabilityReportsResponse>>;
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<()>>;
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy>;
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy>;
}
#[async_trait::async_trait]
impl<T: super::OsConfigZonalService> OsConfigZonalService for T {
async fn create_os_policy_assignment(
&self,
req: crate::model::CreateOSPolicyAssignmentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::create_os_policy_assignment(self, req, options).await
}
async fn update_os_policy_assignment(
&self,
req: crate::model::UpdateOSPolicyAssignmentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::update_os_policy_assignment(self, req, options).await
}
async fn get_os_policy_assignment(
&self,
req: crate::model::GetOSPolicyAssignmentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::OSPolicyAssignment>> {
T::get_os_policy_assignment(self, req, options).await
}
async fn list_os_policy_assignments(
&self,
req: crate::model::ListOSPolicyAssignmentsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListOSPolicyAssignmentsResponse>> {
T::list_os_policy_assignments(self, req, options).await
}
async fn list_os_policy_assignment_revisions(
&self,
req: crate::model::ListOSPolicyAssignmentRevisionsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListOSPolicyAssignmentRevisionsResponse>> {
T::list_os_policy_assignment_revisions(self, req, options).await
}
async fn delete_os_policy_assignment(
&self,
req: crate::model::DeleteOSPolicyAssignmentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::delete_os_policy_assignment(self, req, options).await
}
async fn get_os_policy_assignment_report(
&self,
req: crate::model::GetOSPolicyAssignmentReportRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::OSPolicyAssignmentReport>> {
T::get_os_policy_assignment_report(self, req, options).await
}
async fn list_os_policy_assignment_reports(
&self,
req: crate::model::ListOSPolicyAssignmentReportsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListOSPolicyAssignmentReportsResponse>> {
T::list_os_policy_assignment_reports(self, req, options).await
}
async fn get_inventory(
&self,
req: crate::model::GetInventoryRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::Inventory>> {
T::get_inventory(self, req, options).await
}
async fn list_inventories(
&self,
req: crate::model::ListInventoriesRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListInventoriesResponse>> {
T::list_inventories(self, req, options).await
}
async fn get_vulnerability_report(
&self,
req: crate::model::GetVulnerabilityReportRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::VulnerabilityReport>> {
T::get_vulnerability_report(self, req, options).await
}
async fn list_vulnerability_reports(
&self,
req: crate::model::ListVulnerabilityReportsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListVulnerabilityReportsResponse>> {
T::list_vulnerability_reports(self, req, options).await
}
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::get_operation(self, req, options).await
}
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<()>> {
T::cancel_operation(self, req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
T::get_polling_error_policy(self, options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
T::get_polling_backoff_policy(self, options)
}
}