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

Optional. User-friendly display name. Maximum length is 256 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.

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
{
  "uriExpirationTime": string,
  "headers": {
    string: string,
    ...
  },
  "signedUri": string
}
Fields
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".

headers

map (key: string, value: string)

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

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

signedUri

string

Output only. Upload URI for the file.

Methods

create

Creates an import data file.

delete

Delete an import data file.

get

Gets an import data file.

list

List import data files.