REST Resource: accounts.dataSources.fileUploads
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
रिसॉर्स: FileUpload
किसी खास डेटा सोर्स की फ़ाइल अपलोड करना. इसका मतलब है कि डेटा सोर्स प्रोसेस होने के बाद, किसी खास टाइमस्टैंप पर डेटा सोर्स को वापस पाने का नतीजा, जिसे असिंक्रोनस तरीके से कैलकुलेट किया जाता है. यह सिर्फ़ फ़ाइल डेटा सोर्स पर लागू होता है.
JSON के काेड में दिखाना |
{
"name": string,
"dataSourceId": string,
"processingState": enum (ProcessingState ),
"issues": [
{
object (Issue )
}
],
"itemsTotal": string,
"itemsCreated": string,
"itemsUpdated": string,
"uploadTime": string
} |
फ़ील्ड |
name |
string
आइडेंटिफ़ायर. डेटा सोर्स फ़ाइल अपलोड का नाम. फ़ॉर्मैट: {datasource.name=accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}}
|
dataSourceId |
string (int64 format)
सिर्फ़ आउटपुट के लिए. डेटा सोर्स का आईडी.
|
processingState |
enum (ProcessingState )
सिर्फ़ आउटपुट के लिए. डेटा सोर्स की प्रोसेसिंग की स्थिति.
|
issues[] |
object (Issue )
सिर्फ़ आउटपुट के लिए. डेटा सोर्स में होने वाली समस्याओं की सूची.
|
itemsTotal |
string (int64 format)
सिर्फ़ आउटपुट के लिए. डेटा सोर्स में मौजूद उन आइटम की संख्या जिन्हें प्रोसेस किया गया.
|
itemsCreated |
string (int64 format)
सिर्फ़ आउटपुट के लिए. डेटा सोर्स में बनाए गए आइटम की संख्या.
|
itemsUpdated |
string (int64 format)
सिर्फ़ आउटपुट के लिए. डेटा सोर्स में मौजूद उन आइटम की संख्या जिन्हें अपडेट किया गया.
|
uploadTime |
string (Timestamp format)
सिर्फ़ आउटपुट के लिए. वह तारीख जब डेटा सोर्स की फ़ाइल अपलोड की गई थी.
|
ProcessingState
डेटा सोर्स की प्रोसेसिंग की स्थिति.
Enums |
PROCESSING_STATE_UNSPECIFIED |
प्रोसेसिंग की स्थिति की जानकारी नहीं दी गई है. |
FAILED |
डेटा सोर्स को प्रोसेस नहीं किया जा सका या सभी आइटम में गड़बड़ियां थीं. |
IN_PROGRESS |
डेटा सोर्स को प्रोसेस किया जा रहा है. |
SUCCEEDED |
डेटा सोर्स को प्रोसेस कर लिया गया है. हालांकि, हो सकता है कि कुछ आइटम में गड़बड़ियां हों. |
समस्या
डेटा सोर्स में कोई गड़बड़ी, जैसे कि "कीमत अमान्य है".
JSON के काेड में दिखाना |
{
"title": string,
"description": string,
"code": string,
"count": string,
"severity": enum (Severity ),
"documentationUri": string
} |
फ़ील्ड |
title |
string
सिर्फ़ आउटपुट के लिए. समस्या का टाइटल, जैसे कि "आइटम बहुत बड़ा है".
|
description |
string
सिर्फ़ आउटपुट के लिए. गड़बड़ी की जानकारी. उदाहरण के लिए, "आपके डेटा सोर्स में ऐसे प्रॉडक्ट मौजूद हैं जिनमें बहुत ज़्यादा एट्रिब्यूट दिए गए हैं या जिनके लिए बहुत ज़्यादा डेटा दिया गया है. ये आइटम हटा दिए जाएंगे".
|
code |
string
सिर्फ़ आउटपुट के लिए. गड़बड़ी का कोड, जैसे कि "validation/invalid_value". अगर कोड की जानकारी नहीं है, तो "?" दिखाता है.
|
count |
string (int64 format)
सिर्फ़ आउटपुट के लिए. फ़ाइल अपलोड करने के दौरान गड़बड़ी की संख्या.
|
severity |
enum (Severity )
सिर्फ़ आउटपुट के लिए. समस्या की गंभीरता.
|
documentationUri |
string
सिर्फ़ आउटपुट के लिए. अगर उपलब्ध हो, तो समस्या के बारे में ज़्यादा जानकारी देने वाले दस्तावेज़ का लिंक दें.
|
गंभीरता
Enums |
SEVERITY_UNSPECIFIED |
गंभीरता की जानकारी नहीं दी गई है. |
WARNING |
समस्या, चेतावनी है. |
ERROR |
समस्या एक गड़बड़ी है. |
तरीके |
|
डेटा सोर्स की नई फ़ाइल अपलोड की जाती है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-11-24 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-11-24 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eFileUpload is the asynchronous result of a data source retrieval, containing information about the processing of uploaded files.\u003c/p\u003e\n"],["\u003cp\u003eProcessingState indicates the status of the data source, whether it's being processed, has succeeded, or failed.\u003c/p\u003e\n"],["\u003cp\u003eIssue details errors encountered during data source processing, including descriptions, severity, and counts.\u003c/p\u003e\n"],["\u003cp\u003eFileUpload provides metrics such as the total, created, and updated items processed, along with the upload timestamp.\u003c/p\u003e\n"],["\u003cp\u003eThe resource provides a \u003ccode\u003eget\u003c/code\u003e method to retrieve the latest data source file upload details.\u003c/p\u003e\n"]]],["File uploads for data sources are processed asynchronously, with results available upon completion. Key information includes the `name`, `dataSourceId`, `processingState`, and any `issues`. The `processingState` can be `FAILED`, `IN_PROGRESS`, or `SUCCEEDED`. Issues have a `title`, `description`, `code`, `count`, and `severity` (`WARNING` or `ERROR`). Data like `itemsTotal`, `itemsCreated`, `itemsUpdated`, and `uploadTime` are also available. The `get` method is available to get the data.\n"],null,["# REST Resource: accounts.dataSources.fileUploads\n\n- [Resource: FileUpload](#FileUpload)\n - [JSON representation](#FileUpload.SCHEMA_REPRESENTATION)\n- [ProcessingState](#ProcessingState)\n- [Issue](#Issue)\n - [JSON representation](#Issue.SCHEMA_REPRESENTATION)\n- [Severity](#Severity)\n- [Methods](#METHODS_SUMMARY)\n\nResource: FileUpload\n--------------------\n\nThe 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.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"dataSourceId\": string, \"processingState\": enum (/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources.fileUploads#ProcessingState), \"issues\": [ { object (/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources.fileUploads#Issue) } ], \"itemsTotal\": string, \"itemsCreated\": string, \"itemsUpdated\": string, \"uploadTime\": string } ``` |\n\n| Fields ||\n|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Identifier. The name of the data source file upload. Format: `{datasource.name=accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}}` |\n| `dataSourceId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The data source id. |\n| `processingState` | `enum (`[ProcessingState](/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources.fileUploads#ProcessingState)`)` Output only. The processing state of the data source. |\n| `issues[]` | `object (`[Issue](/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources.fileUploads#Issue)`)` Output only. The list of issues occurring in the data source. |\n| `itemsTotal` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The number of items in the data source that were processed. |\n| `itemsCreated` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The number of items in the data source that were created. |\n| `itemsUpdated` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The number of items in the data source that were updated. |\n| `uploadTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Output only. The date at which the file of the data source was uploaded. |\n\nProcessingState\n---------------\n\nThe processing state of the data source.\n\n| Enums ||\n|--------------------------------|--------------------------------------------------------------------------------------|\n| `PROCESSING_STATE_UNSPECIFIED` | Processing state unspecified. |\n| `FAILED` | The data source could not be processed or all the items had errors. |\n| `IN_PROGRESS` | The data source is being processed. |\n| `SUCCEEDED` | The data source was processed successfully, though some items might have had errors. |\n\nIssue\n-----\n\nAn error occurring in the data source, like \"invalid price\".\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"title\": string, \"description\": string, \"code\": string, \"count\": string, \"severity\": enum (/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources.fileUploads#Severity), \"documentationUri\": string } ``` |\n\n| Fields ||\n|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `title` | `string` Output only. The title of the issue, for example, \"Item too big\". |\n| `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\". |\n| `code` | `string` Output only. The code of the error, for example, \"validation/invalid_value\". Returns \"?\" if the code is unknown. |\n| `count` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The number of occurrences of the error in the file upload. |\n| `severity` | `enum (`[Severity](/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources.fileUploads#Severity)`)` Output only. The severity of the issue. |\n| `documentationUri` | `string` Output only. Link to the documentation explaining the issue in more details, if available. |\n\nSeverity\n--------\n\nThe severity of the issue.\n\n| Enums ||\n|------------------------|---------------------------|\n| `SEVERITY_UNSPECIFIED` | Severity unspecified. |\n| `WARNING` | The issue is the warning. |\n| `ERROR` | The issue is an error. |\n\n| Methods ------- ||\n|-------------------------------------------------------------------------------------------------|------------------------------------------|\n| ### [get](/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources.fileUploads/get) | Gets the latest data source file upload. |"]]