Class NotificationConfig (1.1.0)

public sealed class NotificationConfig : IMessage<NotificationConfig>, IEquatable<NotificationConfig>, IDeepCloneable<NotificationConfig>, IBufferMessage, IMessage

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

  • &quot;eventType&quot;: one of the [EventType][google.storagetransfer.v1.NotificationConfig.EventType] values
  • &quot;payloadFormat&quot;: one of the [PayloadFormat][google.storagetransfer.v1.NotificationConfig.PayloadFormat] values
  • &quot;projectId&quot;: the [project_id][google.storagetransfer.v1.TransferOperation.project_id] of the TransferOperation
  • &quot;transferJobName&quot;: the [transfer_job_name][google.storagetransfer.v1.TransferOperation.transfer_job_name] of the TransferOperation
  • &quot;transferOperationName&quot;: the [name][google.storagetransfer.v1.TransferOperation.name] of the TransferOperation

The PubsubMessage.data will contain a [TransferOperation][google.storagetransfer.v1.TransferOperation] resource formatted according to the specified PayloadFormat.

Inheritance

Object > NotificationConfig

Namespace

Google.Cloud.StorageTransfer.V1

Assembly

Google.Cloud.StorageTransfer.V1.dll

Constructors

NotificationConfig()

public NotificationConfig()

NotificationConfig(NotificationConfig)

public NotificationConfig(NotificationConfig other)
Parameter
NameDescription
otherNotificationConfig

Properties

EventTypes

public RepeatedField<NotificationConfig.Types.EventType> EventTypes { get; }

Event types for which a notification is desired. If empty, send notifications for all event types.

Property Value
TypeDescription
RepeatedField<NotificationConfig.Types.EventType>

PayloadFormat

public NotificationConfig.Types.PayloadFormat PayloadFormat { get; set; }

Required. The desired format of the notification message payloads.

Property Value
TypeDescription
NotificationConfig.Types.PayloadFormat

PubsubTopic

public string PubsubTopic { get; set; }

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][google.rpc.Code.INVALID_ARGUMENT] error.

Property Value
TypeDescription
String