View Source GoogleApi.CloudScheduler.V1.Model.PubsubTarget (google_api_cloud_scheduler v0.7.5)

Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic.

Attributes

  • attributes (type: map(), default: nil) - Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
  • data (type: String.t, default: nil) - The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
  • topicName (type: String.t, default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.CloudScheduler.V1.Model.PubsubTarget{
  attributes: map() | nil,
  data: String.t() | nil,
  topicName: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.