- HTTP request
- Path parameters
- Request body
- Response body
- Authorization Scopes
- ImportProductSetsInputConfig
- ImportProductSetsGcsSource
- Try it!
Asynchronous API that imports a list of reference images to specified product sets based on a list of image information.
The google.longrunning.Operation
API can be used to keep track of the progress and results of the request. Operation.metadata
contains BatchOperationMetadata
. (progress) Operation.response
contains ImportProductSetsResponse
. (results)
The input source of this method is a csv file on Google Cloud Storage. For the format of the csv file please see ImportProductSetsGcsSource.csv_file_uri
.
HTTP request
POST https://vision.googleapis.com/v1p4beta1/{parent=projects/*/locations/*}/productSets:import
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The project in which the ProductSets should be imported. Format is |
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{
"inputConfig": {
object ( |
Fields | |
---|---|
inputConfig |
Required. The input content for the list of requests. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-vision
For more information, see the Authentication Overview.
ImportProductSetsInputConfig
The input content for the productSets.import
method.
JSON representation | |
---|---|
{
"gcsSource": {
object ( |
Fields | |
---|---|
gcsSource |
The Google Cloud Storage location for a csv file which preserves a list of ImportProductSetRequests in each line. |
ImportProductSetsGcsSource
The Google Cloud Storage location for a csv file which preserves a list of ImportProductSetRequests in each line.
JSON representation | |
---|---|
{ "csvFileUri": string } |
Fields | |
---|---|
csvFileUri |
The Google Cloud Storage URI of the input csv file. The URI must start with The format of the input csv file should be one image per line. In each line, there are 8 columns.
The If the The The If a The
The At most one The The system will resize the image if the image resolution is too large to process (larger than 20MP). |