class Google::Apis::StoragetransferV1::NotificationConfig

Specification to configure notifications published to Pub/Sub. Notifications are 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` contains a TransferOperation resource formatted according to the specified `PayloadFormat` .

Attributes

event_types[RW]

Event types for which a notification is desired. If empty, send notifications for all event types. Corresponds to the JSON property `eventTypes` @return [Array<String>]

payload_format[RW]

Required. The desired format of the notification message payloads. Corresponds to the JSON property `payloadFormat` @return [String]

pubsub_topic[RW]

Required. The `Topic.name` of the Pub/Sub topic to which to publish notifications. Must be of the format: `projects/`project`/topics/`topic“. Not matching this format results in an INVALID_ARGUMENT error. Corresponds to the JSON property `pubsubTopic` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/storagetransfer_v1/classes.rb, line 504
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/storagetransfer_v1/classes.rb, line 509
def update!(**args)
  @event_types = args[:event_types] if args.key?(:event_types)
  @payload_format = args[:payload_format] if args.key?(:payload_format)
  @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
end