google-cloud-securitycentermanagement-v1 1.2.0

Google Cloud Client Libraries for Rust - Security Command Center Management 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::SecurityCenterManagement].
#[async_trait::async_trait]
pub trait SecurityCenterManagement: std::fmt::Debug + Send + Sync {
    async fn list_effective_security_health_analytics_custom_modules(
        &self,
        req: crate::model::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<
        crate::Response<crate::model::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>,
    >;

    async fn get_effective_security_health_analytics_custom_module(
        &self,
        req: crate::model::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::EffectiveSecurityHealthAnalyticsCustomModule>>;

    async fn list_security_health_analytics_custom_modules(
        &self,
        req: crate::model::ListSecurityHealthAnalyticsCustomModulesRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<
        crate::Response<crate::model::ListSecurityHealthAnalyticsCustomModulesResponse>,
    >;

    async fn list_descendant_security_health_analytics_custom_modules(
        &self,
        req: crate::model::ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<
        crate::Response<crate::model::ListDescendantSecurityHealthAnalyticsCustomModulesResponse>,
    >;

    async fn get_security_health_analytics_custom_module(
        &self,
        req: crate::model::GetSecurityHealthAnalyticsCustomModuleRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::SecurityHealthAnalyticsCustomModule>>;

    async fn create_security_health_analytics_custom_module(
        &self,
        req: crate::model::CreateSecurityHealthAnalyticsCustomModuleRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::SecurityHealthAnalyticsCustomModule>>;

    async fn update_security_health_analytics_custom_module(
        &self,
        req: crate::model::UpdateSecurityHealthAnalyticsCustomModuleRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::SecurityHealthAnalyticsCustomModule>>;

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

    async fn simulate_security_health_analytics_custom_module(
        &self,
        req: crate::model::SimulateSecurityHealthAnalyticsCustomModuleRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<
        crate::Response<crate::model::SimulateSecurityHealthAnalyticsCustomModuleResponse>,
    >;

    async fn list_effective_event_threat_detection_custom_modules(
        &self,
        req: crate::model::ListEffectiveEventThreatDetectionCustomModulesRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<
        crate::Response<crate::model::ListEffectiveEventThreatDetectionCustomModulesResponse>,
    >;

    async fn get_effective_event_threat_detection_custom_module(
        &self,
        req: crate::model::GetEffectiveEventThreatDetectionCustomModuleRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::EffectiveEventThreatDetectionCustomModule>>;

    async fn list_event_threat_detection_custom_modules(
        &self,
        req: crate::model::ListEventThreatDetectionCustomModulesRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListEventThreatDetectionCustomModulesResponse>>;

    async fn list_descendant_event_threat_detection_custom_modules(
        &self,
        req: crate::model::ListDescendantEventThreatDetectionCustomModulesRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<
        crate::Response<crate::model::ListDescendantEventThreatDetectionCustomModulesResponse>,
    >;

    async fn get_event_threat_detection_custom_module(
        &self,
        req: crate::model::GetEventThreatDetectionCustomModuleRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::EventThreatDetectionCustomModule>>;

    async fn create_event_threat_detection_custom_module(
        &self,
        req: crate::model::CreateEventThreatDetectionCustomModuleRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::EventThreatDetectionCustomModule>>;

    async fn update_event_threat_detection_custom_module(
        &self,
        req: crate::model::UpdateEventThreatDetectionCustomModuleRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::EventThreatDetectionCustomModule>>;

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

    async fn validate_event_threat_detection_custom_module(
        &self,
        req: crate::model::ValidateEventThreatDetectionCustomModuleRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<
        crate::Response<crate::model::ValidateEventThreatDetectionCustomModuleResponse>,
    >;

    async fn get_security_center_service(
        &self,
        req: crate::model::GetSecurityCenterServiceRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::SecurityCenterService>>;

    async fn list_security_center_services(
        &self,
        req: crate::model::ListSecurityCenterServicesRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListSecurityCenterServicesResponse>>;

    async fn update_security_center_service(
        &self,
        req: crate::model::UpdateSecurityCenterServiceRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::SecurityCenterService>>;

    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>>;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /// Forwards the call to the implementation provided by `T`.
    async fn update_security_center_service(
        &self,
        req: crate::model::UpdateSecurityCenterServiceRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::SecurityCenterService>> {
        T::update_security_center_service(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
    }
}