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/imports/create.yaml
- release_tracks: [ALPHA, BETA]
  deprecate:
    is_removed: false
    warning: |
      This command has been deprecated.
      Please use `gcloud metastore services import gcs` instead.
  help_text:
    brief: |
      Import metadata into a service.
    description: |
      Import metadata with the given name and configurations in to a service.

    examples: |
      To import metadata with the name `my-import` and description `testing description`
      into service `my-service` from a database dump with uri `gs://database-dump` and database
      type `mysql`, run:

          $ {command} my-import --service=my-service --description='testing description' \
              --database-type=mysql --database-dump=gs://database-dump

  request:
    ALPHA:
      api_version: v1alpha
    BETA:
      api_version: v1beta
    collection: metastore.projects.locations.services.metadataImports

  arguments:
    resource:
      help_text: |
        Arguments and flags that specify the metadata import
        you want to create.
      spec: !REF googlecloudsdk.command_lib.metastore.resources:import
    params:
    - arg_name: description
      api_field: metadataImport.description
      help_text: |
        The description of this metadata import.
    - arg_name: database-type
      api_field: metadataImport.databaseDump.databaseType
      help_text: |
        The type of the database. If unspecified, defaults to `MYSQL`.
      choices:
      - arg_value: MYSQL
        enum_value: MYSQL
        help_text:  |
          MySQL Database
      default: MYSQL
      action:
        deprecated:
          removed: false
          warn: |
            The --database-type option is deprecated; use --database-dump-type instead.
    - arg_name: database-dump-type
      api_field: metadataImport.databaseDump.type
      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.
      default: MYSQL
    - arg_name: database-dump
      required: true
      api_field: metadataImport.databaseDump.gcsUri
      processor: googlecloudsdk.command_lib.metastore.validators:ValidateGcsUri:arg_name=--database-dump
      help_text: |
        A Cloud Storage object URI that specifies a database dump from which to import metadata.
        It must begin with `gs://`.

  async:
    collection: metastore.projects.locations.operations