Eventarc v1 API - Class Pubsub (2.5.0)

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

Reference documentation and code samples for the Eventarc v1 API class Pubsub.

Represents a Pub/Sub transport.

Inheritance

object > Pubsub

Namespace

Google.Cloud.Eventarc.V1

Assembly

Google.Cloud.Eventarc.V1.dll

Constructors

Pubsub()

public Pubsub()

Pubsub(Pubsub)

public Pubsub(Pubsub other)
Parameter
Name Description
other Pubsub

Properties

Subscription

public string Subscription { get; set; }

Output only. The name of the Pub/Sub subscription created and managed by Eventarc as a transport for the event delivery. Format: projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}.

Property Value
Type Description
string

Topic

public string Topic { get; set; }

Optional. The name of the Pub/Sub topic created and managed by Eventarc as a transport for the event delivery. Format: projects/{PROJECT_ID}/topics/{TOPIC_NAME}.

You can set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished. The topic you provide here is not deleted by Eventarc at trigger deletion.

Property Value
Type Description
string