#[async_trait::async_trait]
pub trait SecurityPosture: std::fmt::Debug + Send + Sync {
async fn list_postures(
&self,
req: crate::model::ListPosturesRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListPosturesResponse>>;
async fn list_posture_revisions(
&self,
req: crate::model::ListPostureRevisionsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListPostureRevisionsResponse>>;
async fn get_posture(
&self,
req: crate::model::GetPostureRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::Posture>>;
async fn create_posture(
&self,
req: crate::model::CreatePostureRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn update_posture(
&self,
req: crate::model::UpdatePostureRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn delete_posture(
&self,
req: crate::model::DeletePostureRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn extract_posture(
&self,
req: crate::model::ExtractPostureRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn list_posture_deployments(
&self,
req: crate::model::ListPostureDeploymentsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListPostureDeploymentsResponse>>;
async fn get_posture_deployment(
&self,
req: crate::model::GetPostureDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PostureDeployment>>;
async fn create_posture_deployment(
&self,
req: crate::model::CreatePostureDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn update_posture_deployment(
&self,
req: crate::model::UpdatePostureDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn delete_posture_deployment(
&self,
req: crate::model::DeletePostureDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>;
async fn list_posture_templates(
&self,
req: crate::model::ListPostureTemplatesRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListPostureTemplatesResponse>>;
async fn get_posture_template(
&self,
req: crate::model::GetPostureTemplateRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PostureTemplate>>;
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 list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>>;
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 delete_operation(
&self,
req: google_cloud_longrunning::model::DeleteOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<()>>;
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::SecurityPosture> SecurityPosture for T {
async fn list_postures(
&self,
req: crate::model::ListPosturesRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListPosturesResponse>> {
T::list_postures(self, req, options).await
}
async fn list_posture_revisions(
&self,
req: crate::model::ListPostureRevisionsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListPostureRevisionsResponse>> {
T::list_posture_revisions(self, req, options).await
}
async fn get_posture(
&self,
req: crate::model::GetPostureRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::Posture>> {
T::get_posture(self, req, options).await
}
async fn create_posture(
&self,
req: crate::model::CreatePostureRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::create_posture(self, req, options).await
}
async fn update_posture(
&self,
req: crate::model::UpdatePostureRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::update_posture(self, req, options).await
}
async fn delete_posture(
&self,
req: crate::model::DeletePostureRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::delete_posture(self, req, options).await
}
async fn extract_posture(
&self,
req: crate::model::ExtractPostureRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::extract_posture(self, req, options).await
}
async fn list_posture_deployments(
&self,
req: crate::model::ListPostureDeploymentsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListPostureDeploymentsResponse>> {
T::list_posture_deployments(self, req, options).await
}
async fn get_posture_deployment(
&self,
req: crate::model::GetPostureDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PostureDeployment>> {
T::get_posture_deployment(self, req, options).await
}
async fn create_posture_deployment(
&self,
req: crate::model::CreatePostureDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::create_posture_deployment(self, req, options).await
}
async fn update_posture_deployment(
&self,
req: crate::model::UpdatePostureDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::update_posture_deployment(self, req, options).await
}
async fn delete_posture_deployment(
&self,
req: crate::model::DeletePostureDeploymentRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::Operation>> {
T::delete_posture_deployment(self, req, options).await
}
async fn list_posture_templates(
&self,
req: crate::model::ListPostureTemplatesRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListPostureTemplatesResponse>> {
T::list_posture_templates(self, req, options).await
}
async fn get_posture_template(
&self,
req: crate::model::GetPostureTemplateRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::PostureTemplate>> {
T::get_posture_template(self, req, options).await
}
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
}
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
}
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>>
{
T::list_operations(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 delete_operation(
&self,
req: google_cloud_longrunning::model::DeleteOperationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<()>> {
T::delete_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)
}
}