Skip to content

Commit

Permalink
try to clarify scheduler docs on pubsub
Browse files Browse the repository at this point in the history
  • Loading branch information
emilymye committed Jan 2, 2020
1 parent ed947a9 commit 8c754e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions products/cloudscheduler/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,10 @@ objects:
- !ruby/object:Api::Type::String
name: topicName
description: |
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 PubSub's PublishRequest.name,
for example projects/PROJECT_ID/topics/TOPIC_ID.
The full resource name for the Cloud Pub/Sub topic to which
messages will be published when a job is delivered. ~>**NOTE**:
The topic name must be in the same format as required by PubSub's
PublishRequest.name, e.g. `projects/my-project/topics/my-topic`.
required: true
input: true
- !ruby/object:Api::Type::String
Expand Down
1 change: 1 addition & 0 deletions templates/terraform/examples/scheduler_job_pubsub.tf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resource "google_cloud_scheduler_job" "job" {
schedule = "*/2 * * * *"

pubsub_target {
# topic.id is the topic's full resource name.
topic_name = google_pubsub_topic.topic.id
data = base64encode("test")
}
Expand Down

0 comments on commit 8c754e9

Please sign in to comment.