Class PubsubTarget
Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic.
Implements
Inherited Members
Namespace: Google.Apis.CloudScheduler.v1.Data
Assembly: Google.Apis.CloudScheduler.v1.dll
Syntax
public class PubsubTarget : IDirectResponseSchema
Properties
Attributes
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
Declaration
[JsonProperty("attributes")]
public virtual IDictionary<string, string> Attributes { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
Data
The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
Declaration
[JsonProperty("data")]
public virtual string Data { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
TopicName
Required. The name of the Cloud Pub/Sub topic to which messages will be published when a job is delivered.
The topic name must be in the same format as required by Pub/Sub's
PublishRequest.name,
for example projects/PROJECT_ID/topics/TOPIC_ID
. The topic must be in the same project as the Cloud
Scheduler job.
Declaration
[JsonProperty("topicName")]
public virtual string TopicName { get; set; }
Property Value
Type | Description |
---|---|
string |