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/396/lib/surface/metastore/services/alter_metadata_resource_location.yaml
- release_tracks: [ALPHA, BETA, GA]
  help_text:
    brief: |
      Alter metadata resource location.
    description: |
      Alter metadata resource location 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 resource location with the resource_name
      `databases/{database_id}`
      or
      `databases/{database_id}/tables/{table_id}`
      or
      and location_uri in location `us-central`, run:

          $ {command} my-metastore-service --location=us-central1 --resource_name=databases/my-db
            --location_uri=gs://destination_bucket/destination_object
  request:
    method: alterLocation
    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 resource and the location you want to alter.
      spec: !REF googlecloudsdk.command_lib.metastore.resources:service
    params:
    - arg_name: resource_name
      api_field: alterMetadataResourceLocationRequest.resourceName
      help_text: |
        The relative metadata resource name in the following format.
         `databases/{database_id}`
         or
         `databases/{database_id}/tables/{table_id}`
         or
         `databases/{database_id}/tables/{table_id}/partitions/{partition_id}`
      required: true
    - arg_name: location_uri
      api_field: alterMetadataResourceLocationRequest.locationUri
      help_text: |
        The new location URI for the metadata resource.
      required: true
  async:
    collection: metastore.projects.locations.operations