[][src]Struct gcp_client::google::cloud::securitycenter::v1p1beta1::NotificationConfig

pub struct NotificationConfig {
    pub name: String,
    pub description: String,
    pub event_type: i32,
    pub pubsub_topic: String,
    pub service_account: String,
    pub notify_config: Option<NotifyConfig>,
}

Cloud Security Command Center (Cloud SCC) notification configs.

A notification config is a Cloud SCC resource that contains the configuration to send notifications for create/update events of findings, assets and etc.

Fields

name: String

The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/notificationConfigs/notify_public_bucket".

description: String

The description of the notification config (max of 1024 characters).

event_type: i32

The type of events the config is for, e.g. FINDING.

pubsub_topic: String

The PubSub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".

service_account: String

Output only. The service account that needs "pubsub.topics.publish" permission to publish to the PubSub topic.

notify_config: Option<NotifyConfig>

The config for triggering notifications.

Implementations

impl NotificationConfig[src]

pub fn event_type(&self) -> EventType[src]

Returns the enum value of event_type, or the default if the field is set to an invalid enum value.

pub fn set_event_type(&mut self, value: EventType)[src]

Sets event_type to the provided enum value.

Trait Implementations

impl Clone for NotificationConfig[src]

impl Debug for NotificationConfig[src]

impl Default for NotificationConfig[src]

impl Message for NotificationConfig[src]

impl PartialEq<NotificationConfig> for NotificationConfig[src]

impl StructuralPartialEq for NotificationConfig[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]