REST Resource: accounts.dataSources.fileUploads

Resource: FileUpload

The file upload of a specific data source, that is, the result of the retrieval of the data source at a certain timestamp computed asynchronously when the data source processing is finished. Only applicable to file data sources.

JSON representation
{
  "name": string,
  "dataSourceId": string,
  "processingState": enum (ProcessingState),
  "issues": [
    {
      object (Issue)
    }
  ],
  "itemsTotal": string,
  "itemsCreated": string,
  "itemsUpdated": string,
  "uploadTime": string
}
Fields
name

string

Identifier. The name of the data source file upload. Format: {datasource.name=accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}}

dataSourceId

string (int64 format)

Output only. The data source id.

processingState

enum (ProcessingState)

Output only. The processing state of the data source.

issues[]

object (Issue)

Output only. The list of issues occurring in the data source.

itemsTotal

string (int64 format)

Output only. The number of items in the data source that were processed.

itemsCreated

string (int64 format)

Output only. The number of items in the data source that were created.

itemsUpdated

string (int64 format)

Output only. The number of items in the data source that were updated.

uploadTime

string (Timestamp format)

Output only. The date at which the file of the data source was uploaded.

ProcessingState

The processing state of the data source.

Enums
PROCESSING_STATE_UNSPECIFIED Processing state unspecified.
FAILED The data source could not be processed or all the items had errors.
IN_PROGRESS The data source is being processed.
SUCCEEDED The data source was processed successfully, though some items might have had errors.

Issue

An error occurring in the data source, like "invalid price".

JSON representation
{
  "title": string,
  "description": string,
  "code": string,
  "count": string,
  "severity": enum (Severity),
  "documentationUri": string
}
Fields
title

string

Output only. The title of the issue, for example, "Item too big".

description

string

Output only. The error description, for example, "Your data source contains items which have too many attributes, or are too big. These items will be dropped".

code

string

Output only. The code of the error, for example, "validation/invalid_value". Returns "?" if the code is unknown.

count

string (int64 format)

Output only. The number of occurrences of the error in the file upload.

severity

enum (Severity)

Output only. The severity of the issue.

documentationUri

string

Output only. Link to the documentation explaining the issue in more details, if available.

Severity

The severity of the issue.

Enums
SEVERITY_UNSPECIFIED Severity unspecified.
WARNING The issue is the warning.
ERROR The issue is an error.

Methods

get

Gets the latest data source file upload.