REST Resource: projects.locations.services.metadataImports

Resource: MetadataImport

A metastore resource that imports metadata.

JSON representation
{
  "name": string,
  "description": string,
  "createTime": string,
  "updateTime": string,
  "endTime": string,
  "state": enum (State),

  // Union field metadata can be only one of the following:
  "databaseDump": {
    object (DatabaseDump)
  }
  // End of list of possible types for union field metadata.
}
Fields
name

string

Immutable. The relative resource name of the metadata import, of the form:

projects/{projectNumber}/locations/{locationId}/services/{serviceId}/metadataImports/{metadataImportId}.

description

string

The description of the metadata import.

createTime

string (Timestamp format)

Output only. The time when the metadata import was started.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

updateTime

string (Timestamp format)

Output only. The time when the metadata import was last updated.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

endTime

string (Timestamp format)

Output only. The time when the metadata import finished.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

state

enum (State)

Output only. The current state of the metadata import.

Union field metadata. The metadata to be imported. metadata can be only one of the following:
databaseDump

object (DatabaseDump)

Immutable. A database dump from a pre-existing metastore's database.

DatabaseDump

A specification of the location of and metadata about a database dump from a relational database management system.

JSON representation
{
  "databaseType": enum (DatabaseType),
  "gcsUri": string,
  "sourceDatabase": string,
  "type": enum (Type)
}
Fields
databaseType
(deprecated)

enum (DatabaseType)

The type of the database.

gcsUri

string

A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.

sourceDatabase
(deprecated)

string

The name of the source database.

type

enum (Type)

Optional. The type of the database dump. If unspecified, defaults to MYSQL.

DatabaseType

The type of the database.

Enums
DATABASE_TYPE_UNSPECIFIED The type of the source database is unknown.
MYSQL The type of the source database is MySQL.

State

The current state of the metadata import.

Enums
STATE_UNSPECIFIED The state of the metadata import is unknown.
RUNNING The metadata import is running.
SUCCEEDED The metadata import completed successfully.
UPDATING The metadata import is being updated.
FAILED The metadata import failed, and attempted metadata changes were rolled back.

Methods

create

Creates a new MetadataImport in a given project and location.

get

Gets details of a single import.

list

Lists imports in a service.

patch

Updates a single import.