1- help_text:
2    brief: Create a Cloud Scheduler job with a Pub/Sub target.
3    description: Create a Cloud Scheduler job with a Pub/Sub target.
4    examples: |
5      The following command creates a job that publishes a messgae with the body
6      'Hello' to the Pub/Sub topic 'cron-topic' every 3 hours:
7
8        $ {command} my-job --schedule="0 */3 * * *"
9          --topic=cron-topic --message-body="Hello"
10
11  request:
12    collection: cloudscheduler.projects.locations.jobs
13    method: create
14    modify_request_hooks:
15    - googlecloudsdk.command_lib.scheduler.util:ModifyCreatePubsubJobRequest
16
17  arguments:
18    resource:
19      help_text: Job to create.
20      spec: !REF googlecloudsdk.command_lib.scheduler.resources:job
21      removed_flags: [location]
22    params:
23    - _REF_: googlecloudsdk.command_lib.scheduler.flags:schedule
24      required: true
25    - _REF_: googlecloudsdk.command_lib.scheduler.flags:timezone
26    - _REF_: googlecloudsdk.command_lib.scheduler.flags:description
27    - _REF_: googlecloudsdk.command_lib.scheduler.flags:retry_attempts
28    - _REF_: googlecloudsdk.command_lib.scheduler.flags:retry_duration
29    - _REF_: googlecloudsdk.command_lib.scheduler.flags:min_backoff
30    - _REF_: googlecloudsdk.command_lib.scheduler.flags:max_backoff
31    - _REF_: googlecloudsdk.command_lib.scheduler.flags:max_doublings
32    - _REF_: googlecloudsdk.command_lib.scheduler.flags:pubsub_topic
33      required: true
34    - group:
35        mutex: true
36        required: true
37        help_text: |
38          Body of the message to publish to the given topic name. Information on
39          message formatting and size limits can be found at:
40          https://cloud.google.com/pubsub/docs/publisher#publish
41        params:
42        - arg_name: message-body
43          help_text: Body of the message.
44        - arg_name: message-body-from-file
45          type: "googlecloudsdk.calliope.arg_parsers:FileContents:"
46          help_text: Path to a file containing the body of the message.
47    - arg_name: attributes
48      api_field: job.pubsubTarget.attributes
49      type: googlecloudsdk.command_lib.scheduler.util:ParseAttributes
50      help_text: |
51        Comma-separated list of attributes. Each attribute has the form
52        "NAME=VALUE". You can specify up to 100 attributes.
53