# Security Command Center V2 API - Class Google::Cloud::SecurityCenter::V2::NotificationConfig (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::NotificationConfig.

Cloud Security Command Center (Cloud SCC) notification configs.


<br />

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

## Inherits

- [Object](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-Kubernetes-Object)

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #description

    def description() -> ::String

**Returns**

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

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- The description of the notification config (max of 1024 characters).
**Returns**

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

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name The following list shows some examples: + `organizations/{organization_id}/locations/{location_id}/notificationConfigs/notify_public_bucket` + `folders/{folder_id}/locations/{location_id}/notificationConfigs/notify_public_bucket` + `projects/{project_id}/locations/{location_id}/notificationConfigs/notify_public_bucket`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name The following list shows some examples: + `organizations/{organization_id}/locations/{location_id}/notificationConfigs/notify_public_bucket` + `folders/{folder_id}/locations/{location_id}/notificationConfigs/notify_public_bucket` + `projects/{project_id}/locations/{location_id}/notificationConfigs/notify_public_bucket`
**Returns**

- (::String) --- Identifier. The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name The following list shows some examples: + `organizations/{organization_id}/locations/{location_id}/notificationConfigs/notify_public_bucket` + `folders/{folder_id}/locations/{location_id}/notificationConfigs/notify_public_bucket` + `projects/{project_id}/locations/{location_id}/notificationConfigs/notify_public_bucket`

### #pubsub_topic

    def pubsub_topic() -> ::String

**Returns**

- (::String) --- The Pub/Sub topic to send notifications to. Its format is "projects/\[project_id\]/topics/\[topic\]".

### #pubsub_topic=

    def pubsub_topic=(value) -> ::String

**Parameter**

- **value** (::String) --- The Pub/Sub topic to send notifications to. Its format is "projects/\[project_id\]/topics/\[topic\]".
**Returns**

- (::String) --- The Pub/Sub topic to send notifications to. Its format is "projects/\[project_id\]/topics/\[topic\]".

### #service_account

    def service_account() -> ::String

**Returns**

- (::String) --- Output only. The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.

### #streaming_config

    def streaming_config() -> ::Google::Cloud::SecurityCenter::V2::NotificationConfig::StreamingConfig

**Returns**

- ([::Google::Cloud::SecurityCenter::V2::NotificationConfig::StreamingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-NotificationConfig-StreamingConfig)) --- The config for triggering streaming-based notifications.

### #streaming_config=

    def streaming_config=(value) -> ::Google::Cloud::SecurityCenter::V2::NotificationConfig::StreamingConfig

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V2::NotificationConfig::StreamingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-NotificationConfig-StreamingConfig)) --- The config for triggering streaming-based notifications.
**Returns**

- ([::Google::Cloud::SecurityCenter::V2::NotificationConfig::StreamingConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-NotificationConfig-StreamingConfig)) --- The config for triggering streaming-based notifications.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The timestamp of when the notification config was last updated.