Skip to content

Commit

Permalink
Try to clarify scheduler docs on pubsub (#2904)
Browse files Browse the repository at this point in the history
Merged PR #2904.
  • Loading branch information
emilymye authored and modular-magician committed Jan 2, 2020
1 parent 8cddcb7 commit 2e43da8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/ansible
2 changes: 1 addition & 1 deletion build/inspec
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
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 2e43da8

Please sign in to comment.