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/metastore/services/export/gcs.yaml
- release_tracks: [ALPHA, BETA, GA]
  help_text:
    brief:  |
      Export metadata from a Dataproc Metastore service to Google Cloud Storage.
    description: |
      Export metadata from a Dataproc Metastore service to Google Cloud Storage.

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

        {top_command} metastore operations describe
    examples: |
        To export metadata from a Dataproc Metastore service with the name `my-metastore-service`
        in location `us-central1` to the destination folder `gs://my-bucket/destination-folder`, run:

          $ {command} my-metastore-service --location=us-central1 --destination-folder=gs://my-bucket/destination-folder

  request:
    method: exportMetadata
    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 Dataproc Metastore service
        you want to export.
      spec: !REF googlecloudsdk.command_lib.metastore.resources:service
    params:
    - arg_name: dump-type
      api_field: exportMetadataRequest.databaseDumpType
      help_text: |
        The type of the database dump. If unspecified, defaults to `mysql`.
      choices:
      - arg_value: mysql
        enum_value: MYSQL
        help_text: |
          Database dump is a MYSQL dump file.
      - arg_value: avro
        enum_value: AVRO
        help_text: |
          Database dump contains AVRO files.
      default: mysql
    - arg_name: destination-folder
      api_field: exportMetadataRequest.destinationGcsFolder
      required: true
      processor: googlecloudsdk.command_lib.metastore.validators:ValidateGcsUri:arg_name=--destination-folder
      help_text: |
        A Cloud Storage URI of a folder that metadata is exported to, in the format
        `gs://<bucket_name>/<path_inside_bukcet>`. A sub-folder containing
        exported files will be created below it.

  async:
    collection: metastore.projects.locations.operations