NAME
    gcloud logging saved-queries update - update Logging saved queries

SYNOPSIS
    gcloud logging saved-queries update SAVED_QUERY_ID
        [--description=DESCRIPTION] [--display-name=DISPLAY_NAME]
        [--location=LOCATION] [--name=NAME] [--visibility=VISIBILITY]
        [--billing-account=BILLING_ACCOUNT_ID | --folder=FOLDER_ID
          | --organization=ORGANIZATION_ID | --project=PROJECT_ID]
        [--sql-query-text=SQL_QUERY_TEXT
          | --add-summary-field=ADD_SUMMARY_FIELD --clear-summary-fields
          --log-filter=LOG_FILTER --remove-summary-field=REMOVE_SUMMARY_FIELD
          --summary-field-end=SUMMARY_FIELD_END
          | --summary-field-start=SUMMARY_FIELD_START] [GCLOUD_WIDE_FLAG ...]

DESCRIPTION
    Update a saved query.

EXAMPLES
    To update the display name and description of a saved query, run:

        $ gcloud logging saved-queries update my-saved-query \
            --display-name="New Name" --description="New Description"

POSITIONAL ARGUMENTS
     SAVED_QUERY_ID
        ID of the saved query to update.

FLAGS
     --description=DESCRIPTION
        The description of the saved query.

     --display-name=DISPLAY_NAME
        The display name of the saved query.

     --location=LOCATION
        Location of the saved query.

     --name=NAME
        The resource name of the saved query.

     --visibility=VISIBILITY
        The visibility of the saved query.

     At most one of these can be specified:

       --billing-account=BILLING_ACCOUNT_ID
          Billing account of the saved query to update.

       --folder=FOLDER_ID
          Folder of the saved query to update.

       --organization=ORGANIZATION_ID
          Organization of the saved query to update.

       --project=PROJECT_ID
          Project of the saved query to update.

          The Google Cloud project ID to use for this invocation. If omitted,
          then the current project is assumed; the current project can be
          listed using gcloud config list --format='text(core.project)' and can
          be set using gcloud config set project PROJECTID.

          --project and its fallback core/project property play two roles in
          the invocation. It specifies the project of the resource to operate
          on. It also specifies the project for API enablement check, quota,
          and billing. To specify a different project for quota and billing,
          use --billing-project or billing/quota_project property.

     At most one of these can be specified:

       --sql-query-text=SQL_QUERY_TEXT
          The SQL query text. If this argument is specified, no LoggingQuery
          arguments (--log-filter, --add-summary-field, etc.) may be specified.

       Or at least one of these can be specified:

         --add-summary-field=ADD_SUMMARY_FIELD
            Add a summary field.

         --clear-summary-fields
            Clear all summary fields.

         --log-filter=LOG_FILTER
            The logging filter. If this argument is specified, --sql-query-text
            may not be specified.

         --remove-summary-field=REMOVE_SUMMARY_FIELD
            Remove a summary field.

         At most one of these can be specified:

           --summary-field-end=SUMMARY_FIELD_END
              Summary field end.

           --summary-field-start=SUMMARY_FIELD_START
              Summary field start.

GCLOUD WIDE FLAGS
    These flags are available to all commands: --access-token-file, --account,
    --billing-project, --configuration, --flags-file, --flatten, --format,
    --help, --impersonate-service-account, --log-http, --project, --quiet,
    --trace-token, --user-output-enabled, --verbosity.

    Run $ gcloud help for details.
