pub struct NotificationConfig {
pub description: Option<String>,
pub name: Option<String>,
pub pubsub_topic: Option<String>,
pub service_account: Option<String>,
pub streaming_config: Option<StreamingConfig>,
}
Expand description
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.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- notification configs create folders (request|response)
- notification configs get folders (response)
- notification configs patch folders (request|response)
- notification configs create organizations (request|response)
- notification configs get organizations (response)
- notification configs patch organizations (request|response)
- notification configs create projects (request|response)
- notification configs get projects (response)
- notification configs patch projects (request|response)
Fields§
§description: Option<String>
The description of the notification config (max of 1024 characters).
name: Option<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”, “folders/{folder_id}/notificationConfigs/notify_public_bucket”, or “projects/{project_id}/notificationConfigs/notify_public_bucket”.
pubsub_topic: Option<String>
The Pub/Sub topic to send notifications to. Its format is “projects/[project_id]/topics/[topic]”.
service_account: Option<String>
Output only. The service account that needs “pubsub.topics.publish” permission to publish to the Pub/Sub topic.
streaming_config: Option<StreamingConfig>
The config for triggering streaming-based notifications.
Trait Implementations§
Source§impl Clone for NotificationConfig
impl Clone for NotificationConfig
Source§fn clone(&self) -> NotificationConfig
fn clone(&self) -> NotificationConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NotificationConfig
impl Debug for NotificationConfig
Source§impl Default for NotificationConfig
impl Default for NotificationConfig
Source§fn default() -> NotificationConfig
fn default() -> NotificationConfig
Source§impl<'de> Deserialize<'de> for NotificationConfig
impl<'de> Deserialize<'de> for NotificationConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for NotificationConfig
impl Serialize for NotificationConfig
impl RequestValue for NotificationConfig
impl ResponseResult for NotificationConfig
Auto Trait Implementations§
impl Freeze for NotificationConfig
impl RefUnwindSafe for NotificationConfig
impl Send for NotificationConfig
impl Sync for NotificationConfig
impl Unpin for NotificationConfig
impl UnwindSafe for NotificationConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more