Class Google::Cloud::StorageTransfer::V1::NotificationConfig (v0.1.2)

Specification to configure notifications published to Cloud Pub/Sub. Notifications will be published to the customer-provided topic using the following PubsubMessage.attributes:

  • "eventType": one of the EventType values
  • "payloadFormat": one of the PayloadFormat values
  • "projectId": the project_id of the TransferOperation
  • "transferJobName": the transfer_job_name of the TransferOperation
  • "transferOperationName": the name of the TransferOperation

The PubsubMessage.data will contain a TransferOperation resource formatted according to the specified PayloadFormat.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#event_types

def event_types() -> ::Array<::Google::Cloud::StorageTransfer::V1::NotificationConfig::EventType>
Returns

#event_types=

def event_types=(value) -> ::Array<::Google::Cloud::StorageTransfer::V1::NotificationConfig::EventType>
Parameter
Returns

#payload_format

def payload_format() -> ::Google::Cloud::StorageTransfer::V1::NotificationConfig::PayloadFormat
Returns

#payload_format=

def payload_format=(value) -> ::Google::Cloud::StorageTransfer::V1::NotificationConfig::PayloadFormat
Parameter
Returns

#pubsub_topic

def pubsub_topic() -> ::String
Returns
  • (::String) — Required. The Topic.name of the Cloud Pub/Sub topic to which to publish notifications. Must be of the format: projects/{project}/topics/{topic}. Not matching this format will result in an INVALID_ARGUMENT error.

#pubsub_topic=

def pubsub_topic=(value) -> ::String
Parameter
  • value (::String) — Required. The Topic.name of the Cloud Pub/Sub topic to which to publish notifications. Must be of the format: projects/{project}/topics/{topic}. Not matching this format will result in an INVALID_ARGUMENT error.
Returns
  • (::String) — Required. The Topic.name of the Cloud Pub/Sub topic to which to publish notifications. Must be of the format: projects/{project}/topics/{topic}. Not matching this format will result in an INVALID_ARGUMENT error.