- Resource: ImportJob
- ImportJobState
- ValidationReport
- FileValidationReport
- ImportRowError
- ImportError
- Severity
- CsvErrorDetails
- XlsxErrorDetails
- JsonErrorDetails
- ArchiveErrorDetails
- ExecutionReport
- InlinePayloadInfo
- PayloadFile
- GCSPayloadInfo
- Methods
Resource: ImportJob
A resource that represents the background job that imports asset frames.
JSON representation |
---|
{ "name": string, "displayName": string, "createTime": string, "updateTime": string, "completeTime": string, "state": enum ( |
Fields | |
---|---|
name |
Output only. The full name of the import job. |
displayName |
User-friendly display name. Maximum length is 63 characters. |
createTime |
Output only. The timestamp when the import job was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The timestamp when the import job was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
completeTime |
Output only. The timestamp when the import job was completed. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
state |
Output only. The state of the import job. |
labels |
Labels as key value pairs. An object containing a list of |
assetSource |
Required. Reference to a source. |
Union field report . Holds the various report types of an import job. report can be only one of the following: |
|
validationReport |
Output only. The report with the validation results of the import job. |
executionReport |
Output only. The report with the results of running the import job. |
Union field payload_info . The import job payload data. payload_info can be only one of the following: |
|
inlinePayload |
The payload is included in the request, mainly used for small import jobs. |
gcsPayload |
The payload is in Google Cloud Storage. |
ImportJobState
Enumerates possible states of an import job.
Enums | |
---|---|
IMPORT_JOB_STATE_UNSPECIFIED |
Default value. |
IMPORT_JOB_STATE_PENDING |
The import job is pending. |
IMPORT_JOB_STATE_RUNNING |
The processing of the import job is ongoing. |
IMPORT_JOB_STATE_COMPLETED |
The import job processing has completed. |
IMPORT_JOB_STATE_FAILED |
The import job failed to be processed. |
IMPORT_JOB_STATE_VALIDATING |
The import job is being validated. |
IMPORT_JOB_STATE_FAILED_VALIDATION |
The import job contains blocking errors. |
IMPORT_JOB_STATE_READY |
The validation of the job completed with no blocking errors. |
ValidationReport
A resource that aggregates errors across import job files.
JSON representation |
---|
{ "fileValidations": [ { object ( |
Fields | |
---|---|
fileValidations[] |
List of errors found in files. |
jobErrors[] |
List of job level errors. |
FileValidationReport
A resource that aggregates the validation errors found in an import job file.
JSON representation |
---|
{ "fileName": string, "rowErrors": [ { object ( |
Fields | |
---|---|
fileName |
The name of the file. |
rowErrors[] |
Partial list of rows that encountered validation error. |
partialReport |
Flag indicating that processing was aborted due to maximum number of errors. |
fileErrors[] |
List of file level errors. |
ImportRowError
A resource that reports the import job errors at row level.
JSON representation |
---|
{ "rowNumber": integer, "vmName": string, "vmUuid": string, "assetTitle": string, "errors": [ { object ( |
Fields | |
---|---|
rowNumber |
The row number where the error was detected. |
vmName |
The name of the VM in the row. |
vmUuid |
The VM UUID. |
assetTitle |
The asset title. |
errors[] |
The list of errors detected in the row. |
Union field error_details . Additional error details per file type. error_details can be only one of the following: |
|
csvError |
Error details for a CSV file. |
xlsxError |
Error details for an XLSX file. |
jsonError |
Error details for a JSON file. |
archiveError |
Error details for an archive file. |
ImportError
A resource that reports the errors encountered while processing an import job.
JSON representation |
---|
{
"errorDetails": string,
"severity": enum ( |
Fields | |
---|---|
errorDetails |
The error information. |
severity |
The severity of the error. |
Severity
Enumerate possible error severity.
Enums | |
---|---|
SEVERITY_UNSPECIFIED |
|
ERROR |
|
WARNING |
|
INFO |
CsvErrorDetails
Error details for a CSV file.
JSON representation |
---|
{ "rowNumber": integer } |
Fields | |
---|---|
rowNumber |
The row number where the error was detected. |
XlsxErrorDetails
Error details for an XLSX file.
JSON representation |
---|
{ "sheet": string, "rowNumber": integer } |
Fields | |
---|---|
sheet |
The name of the sheet where the error was detected. |
rowNumber |
The row number where the error was detected. |
JsonErrorDetails
This type has no fields.
Error details for a JSON file.
ArchiveErrorDetails
Error details for an archive file.
JSON representation |
---|
{ "filePath": string, // Union field |
Fields | |
---|---|
filePath |
The file path inside the archive where the error was detected. |
Union field error_details . Additional error details per file type. error_details can be only one of the following: |
|
csvError |
Error details for a CSV file. |
ExecutionReport
A resource that reports result of the import job execution.
JSON representation |
---|
{ "framesReported": integer, "executionErrors": { object ( |
Fields | |
---|---|
framesReported |
Total number of asset frames reported for the import job. |
executionErrors |
Validation errors encountered during the execution of the import job. |
jobErrors[] |
List of job-level errors. Deprecated, use the job errors under executionErrors instead. |
totalRowsCount |
Total number of rows in the import job. |
InlinePayloadInfo
A resource that represents the inline import job payload.
JSON representation |
---|
{ "format": enum ( |
Fields | |
---|---|
format |
The import job format. |
payload[] |
List of payload files. |
PayloadFile
Payload file for inline import job payload.
JSON representation |
---|
{ "name": string, "data": string } |
Fields | |
---|---|
name |
The file name. |
data |
The file data. A base64-encoded string. |
GCSPayloadInfo
A resource that represents a payload hosted on Google Cloud Storage.
JSON representation |
---|
{
"format": enum ( |
Fields | |
---|---|
format |
The import job format. |
path |
The payload path in Google Cloud Storage. |
Methods |
|
---|---|
|
Creates an import job. |
|
Deletes an import job. |
|
Gets the details of an import job. |
|
Lists all import jobs. |
|
Updates an import job. |
|
Runs an import job. |
|
Validates an import job. |