REST Resource: projects.locations.importJobs.importDataFiles

Resource: ImportDataFile

A resource that represents a payload file in an import job.

JSON representation
{
  "name": string,
  "displayName": string,
  "format": enum (ImportJobFormat),
  "createTime": string,
  "state": enum (State),

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

string

Output only. The name of the file.

displayName

string

User-friendly display name. Maximum length is 63 characters.

format

enum (ImportJobFormat)

Required. The payload format.

createTime

string (Timestamp format)

Output only. The timestamp when the file was created.

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 state of the import data file.

Union field file_info.

file_info can be only one of the following:

uploadFileInfo

object (UploadFileInfo)

Information about a file that is uploaded to a storage service.

ImportJobFormat

Specifies the data formats supported by Migration Center.

Enums
IMPORT_JOB_FORMAT_UNSPECIFIED Default value.
IMPORT_JOB_FORMAT_RVTOOLS_XLSX RVTools format (XLSX).
IMPORT_JOB_FORMAT_RVTOOLS_CSV RVTools format (CSV).
IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV CSV format exported from AWS using the [AWS collection script][https://github.com/GoogleCloudPlatform/aws-to-stratozone-export].
IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV CSV format exported from Azure using the [Azure collection script][https://github.com/GoogleCloudPlatform/azure-to-stratozone-export].
IMPORT_JOB_FORMAT_STRATOZONE_CSV CSV format created manually and following the StratoZone format. For more information, see [Manually create and upload data tables][https://cloud.google.com/migrate/stratozone/docs/import-data-portal].
IMPORT_JOB_FORMAT_DATABASE_ZIP ZIP file with nested CSV files generated by a database collector.

State

Enumerates possible states of an import data file.

Enums
STATE_UNSPECIFIED Default value.
CREATING The data file is being created.
ACTIVE The data file completed initialization.

UploadFileInfo

A resource that contains a URI to which a data file can be uploaded.

JSON representation
{
  "signedUri": string,
  "headers": {
    string: string,
    ...
  },
  "uriExpirationTime": string
}
Fields
signedUri

string

Output only. Upload URI for the file.

headers

map (key: string, value: string)

Output only. The headers that were used to sign the URI.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

uriExpirationTime

string (Timestamp format)

Output only. Expiration time of the upload URI.

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".

Methods

create

Creates an import data file.

delete

Delete an import data file.

get

Gets an import data file.

list

List import data files.