Storage Transfer v1 API - Class NotificationConfig (2.6.0)

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

Reference documentation and code samples for the Storage Transfer v1 API class 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][google.storagetransfer.v1.NotificationConfig.EventType] values
  • "payloadFormat": one of the [PayloadFormat][google.storagetransfer.v1.NotificationConfig.PayloadFormat] values
  • "projectId": the [project_id][google.storagetransfer.v1.TransferOperation.project_id] of the TransferOperation
  • "transferJobName": the [transfer_job_name][google.storagetransfer.v1.TransferOperation.transfer_job_name] of the TransferOperation
  • "transferOperationName": the [name][google.storagetransfer.v1.TransferOperation.name] of the TransferOperation

The PubsubMessage.data contains 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
Name Description
other NotificationConfig

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
Type Description
RepeatedFieldNotificationConfigTypesEventType

PayloadFormat

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

Required. The desired format of the notification message payloads.

Property Value
Type Description
NotificationConfigTypesPayloadFormat

PubsubTopic

public string PubsubTopic { get; set; }

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

Property Value
Type Description
string