[][src]Struct gcp_client::google::cloud::securitycenter::settings::v1beta1::security_center_settings_service_client::SecurityCenterSettingsServiceClient

pub struct SecurityCenterSettingsServiceClient<T> { /* fields omitted */ }

API Overview

The SecurityCenterSettingsService is a sub-api of securitycenter.googleapis.com. The service provides methods to manage Security Center Settings, and Component Settings for GCP organizations, folders, projects, and clusters.

Implementations

impl<T> SecurityCenterSettingsServiceClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn get_service_account<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetServiceAccountRequest>
) -> Result<Response<ServiceAccount>, Status>
[src]

Retrieves the organizations service account, if it exists, otherwise it creates the organization service account. This API is idempotent and will only create a service account once. On subsequent calls it will return the previously created service account. SHA, SCC and CTD Infra Automation will use this SA. This SA will not have any permissions when created. The UI will provision this via IAM or the user will using their own internal process. This API only creates SAs on the organization. Folders are not supported and projects will use per-project SAs associated with APIs enabled on a project. This API will be called by the UX onboarding workflow.

pub async fn get_settings<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetSettingsRequest>
) -> Result<Response<Settings>, Status>
[src]

Gets the Settings.

pub async fn update_settings<'_>(
    &'_ mut self,
    request: impl IntoRequest<UpdateSettingsRequest>
) -> Result<Response<Settings>, Status>
[src]

Updates the Settings.

pub async fn reset_settings<'_>(
    &'_ mut self,
    request: impl IntoRequest<ResetSettingsRequest>
) -> Result<Response<()>, Status>
[src]

Reset the organization, folder or project's settings and return the settings of just that resource to the default.

Settings are present at the organization, folder, project, and cluster levels. Using Reset on a sub-organization level will remove that resource's override and result in the parent's settings being used (eg: if Reset on a cluster, project settings will be used).

Using Reset on organization will remove the override that was set and result in default settings being used.

pub async fn batch_get_settings<'_>(
    &'_ mut self,
    request: impl IntoRequest<BatchGetSettingsRequest>
) -> Result<Response<BatchGetSettingsResponse>, Status>
[src]

Gets a list of settings.

pub async fn calculate_effective_settings<'_>(
    &'_ mut self,
    request: impl IntoRequest<CalculateEffectiveSettingsRequest>
) -> Result<Response<Settings>, Status>
[src]

CalculateEffectiveSettings looks up all of the Security Center Settings resources in the GCP resource hierarchy, and calculates the effective settings on that resource by applying the following rules:

  • Settings provided closer to the target resource take precedence over those further away (e.g. folder will override organization level settings).
  • Product defaults can be overridden at org, folder, project, and cluster levels.
  • Detectors will be filtered out if they belong to a billing tier the customer has not configured.

pub async fn batch_calculate_effective_settings<'_>(
    &'_ mut self,
    request: impl IntoRequest<BatchCalculateEffectiveSettingsRequest>
) -> Result<Response<BatchCalculateEffectiveSettingsResponse>, Status>
[src]

Gets a list of effective settings.

pub async fn get_component_settings<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetComponentSettingsRequest>
) -> Result<Response<ComponentSettings>, Status>
[src]

Gets the Component Settings.

pub async fn update_component_settings<'_>(
    &'_ mut self,
    request: impl IntoRequest<UpdateComponentSettingsRequest>
) -> Result<Response<ComponentSettings>, Status>
[src]

Updates the Component Settings.

pub async fn reset_component_settings<'_>(
    &'_ mut self,
    request: impl IntoRequest<ResetComponentSettingsRequest>
) -> Result<Response<()>, Status>
[src]

Reset the organization, folder or project's component settings and return the settings to the default. Settings are present at the organization, folder and project levels. Using Reset for a folder or project will remove the override that was set and result in the organization-level settings being used.

pub async fn calculate_effective_component_settings<'_>(
    &'_ mut self,
    request: impl IntoRequest<CalculateEffectiveComponentSettingsRequest>
) -> Result<Response<ComponentSettings>, Status>
[src]

Gets the Effective Component Settings.

pub async fn list_detectors<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListDetectorsRequest>
) -> Result<Response<ListDetectorsResponse>, Status>
[src]

Retrieves an unordered list of available detectors.

pub async fn list_components<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListComponentsRequest>
) -> Result<Response<ListComponentsResponse>, Status>
[src]

Retrieves an unordered list of available SCC components.

Trait Implementations

impl<T: Clone> Clone for SecurityCenterSettingsServiceClient<T>[src]

impl<T> Debug for SecurityCenterSettingsServiceClient<T>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]