HEX
Server: Apache/2.4.59 (Debian)
System: Linux keymana 4.19.0-21-cloud-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64
User: lijunjie (1003)
PHP: 7.4.33
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,pcntl_unshare,
Upload Files
File: //lib/google-cloud-sdk/lib/surface/scc/notifications/update.yaml
- release_tracks: [ALPHA, BETA, GA]

  help_text:
    brief: Update a Cloud Security Command Center notification config.
    description: Update a Cloud Security Command Center notification config.
    examples: |
        Update all mutable fields in ``my-config'' (description + pubsub topic + filter):

        $ {command} my-config --organization=123456 --description "New description" --pubsub_topic "projects/22222/topics/newtopic"

        $ {command} organizations/123456/notificationConfigs/my-config --description "New description" --pubsub_topic "projects/22222/topics/newtopic"

        Update my-config's description

        $ {command} my-config --organization=123456 --description "New description"

        $ {command} organizations/123456/notificationConfigs/my-config --description "New description"

        Update my-config's pubsub-topic

        $ {command} my-config --organization=123456 --pubsub_topic "projects/22222/topics/newtopic"

        $ {command} organizations/123456/notificationConfigs/my-config --pubsub_topic "projects/22222/topics/newtopic"

        Update my-config's filter

        $ {command} my-config --organization=123456 --filter='state = \"ACTIVE\"'

        $ {command} organizations/123456/notificationConfigs/my-config --filter='state = \"ACTIVE\"'
  request:
    collection: securitycenter.organizations.notificationConfigs
    disable_resource_check: true
    api_version: v1
    method: patch
    modify_request_hooks:
    - googlecloudsdk.command_lib.scc.notifications.request_hooks:UpdateNotificationReqHook

  arguments:
    params:
    - arg_name: notificationConfigId
      api_field: name
      is_positional: true
      required: true
      help_text: |
        The ID of the notification config. Formatted as "organizations/123/notificationConfigs/456" or just "456".

    - arg_name: organization
      required: false
      help_text: |
        The organization where the notification config resides. Formatted as "organizations/123" or just "123". Required if notificationConfigId does not contain organization information.

    - !REF googlecloudsdk.command_lib.scc.notifications.flags:description
    - !REF googlecloudsdk.command_lib.scc.notifications.flags:pubsub_topic
    - !REF googlecloudsdk.command_lib.scc.notifications.flags:filter