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/394/lib/surface/metastore/services/alter_table_properties.yaml
- release_tracks: [ALPHA, BETA, GA]
  help_text:
    brief: |
      Alter metadata table properties.
    description: |
      Alter metadata table properties from a Dataproc Metastore service's underlying metadata store.

      If run asynchronously with `--async`, exits after printing
      one operation name that can be used to poll the status of the
      creation via:

        {top_command} metastore operations describe
    examples: |
      To alter metadata table properties a and b on table-name
      `databases/{database_id}/tables/{table_id}`
      , use the update-mask `properties.a,properties.b`
      , and run:

          $ {command} my-metastore-service --location=us-central1
            --table-name=databases/my-database/tables/my-table
            --update-mask=properties.a,properties.b
            --properties=a=1,b=2
  request:
    method: alterTableProperties
    ALPHA:
      api_version: v1alpha
    BETA:
      api_version: v1beta
    GA:
      api_version: v1
    collection: metastore.projects.locations.services
  arguments:
    resource:
      help_text: |
        Arguments and flags that specify the table you want to alter.
      spec: !REF googlecloudsdk.command_lib.metastore.resources:service
    params:
    - arg_name: table-name
      api_field: alterTablePropertiesRequest.tableName
      help_text: |
        The name of the table containing the properties you're altering in the
        following format.

        `databases/{database_id}/tables/{table_id}`
      required: true
    - arg_name: update-mask
      api_field: alterTablePropertiesRequest.updateMask
      help_text: |
        A string where field names are separated by a comma. Specifies the metadata table properties
         fields that are overwritten by the update. Fields specified in the `update-mask` are
          relative to the resource (not to the full request). A field is overwritten if it is in
          the mask.

        For example, given the target properties:

            properties {
              a: 1
              b: 2
            }

        And an update properties:

            properties {
              a: 2
              b: 3
              c: 4
            }

        then if the field mask is:

        `properties.b,properties.c`

        then the updated result will be:

            properties {
              a: 1
              b: 3
              c: 4
            }
      required: true
    - arg_name: properties
      api_field: alterTablePropertiesRequest.properties.additionalProperties
      help_text: |
         A string where field names are separated by a comma. Describes the desired values to mutate.
         If update-mask is empty, the properties will not update. Otherwise, the properties only
         alter the values whose associated paths exist in the update mask.

         For example, the desired key-value pairs.

         a=2,b=3,c=4

      required: true
      metavar: KEY=VALUE
      type:
        arg_dict:
          flatten: true
          spec:
          - api_field: key
          - api_field: value
  async:
    collection: metastore.projects.locations.operations