HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/current/lib/surface/scheduler/jobs/update/pubsub.yaml
- help_text:
    brief: Update a Cloud Scheduler job with a Pub/Sub target.
    description: Update a Cloud Scheduler job with a Pub/Sub target.
    examples: |
      Update my-job's retry attempt limit:

        $ {command} my-job --max-retry-attempts=2

  request:
    collection: cloudscheduler.projects.locations.jobs
    method: patch
    modify_request_hooks:
    - googlecloudsdk.command_lib.scheduler.util:SetRequestJobName
    - googlecloudsdk.command_lib.scheduler.util:SetPubsubRequestMessageBody
    - googlecloudsdk.command_lib.scheduler.util:SetPubsubRequestUpdateAttributes
    - googlecloudsdk.command_lib.scheduler.util:UpdatePubSubMaskHook

  arguments:
    resource:
      help_text: Job to update.
      spec: !REF googlecloudsdk.command_lib.scheduler.resources:job
    params:
    - _REF_: googlecloudsdk.command_lib.scheduler.flags:schedule
    - _REF_: googlecloudsdk.command_lib.scheduler.flags:clearable_timezone
    - _REF_: googlecloudsdk.command_lib.scheduler.flags:description
    - _REF_: googlecloudsdk.command_lib.scheduler.flags:clearable_retry_attempts
    - _REF_: googlecloudsdk.command_lib.scheduler.flags:clearable_retry_duration
    - _REF_: googlecloudsdk.command_lib.scheduler.flags:clearable_min_backoff
    - _REF_: googlecloudsdk.command_lib.scheduler.flags:clearable_max_backoff
    - _REF_: googlecloudsdk.command_lib.scheduler.flags:clearable_max_doublings
    - _REF_: googlecloudsdk.command_lib.scheduler.flags:pubsub_topic
    - group:
        mutex: true
        help_text: |
          Body of the message to publish to the given topic name. Information on
          message formatting and size limits can be found at:
          https://cloud.google.com/pubsub/docs/publisher#publish
        params:
        - arg_name: message-body
          help_text: Body of the message.
        - arg_name: message-body-from-file
          type: "googlecloudsdk.calliope.arg_parsers:FileContents:"
          help_text: Path to a file containing the body of the message.
    - group:
        mutex: true
        params:
        - arg_name: clear-attributes
          api_field: job.pubsubTarget.attributes
          action: store_true
          processor: googlecloudsdk.command_lib.scheduler.util:ClearFlag
          help_text: |
            Clear the field corresponding to `--attributes`.
        - group:
            params:
            - arg_name: update-attributes
              metavar: KEY=VALUE
              type: "googlecloudsdk.calliope.arg_parsers:ArgDict:"
              help_text: |
                Comma-separated list of attributes. Each attribute has the form
                "NAME=VALUE". You can specify up to 100 attributes.
            - arg_name: remove-attributes
              type: "googlecloudsdk.calliope.arg_parsers:ArgList:"
              help_text: |
                Comma-separated list of attribute keys to remove with the form
                "KEY1,KEY2".