Get
|
|||||
|
|
Gets information associated with a Product.
Possible errors:
- Returns NOT_FOUND if the Product does not exist
Authorization
To use this building block you will have to grant access to at least one of the following scopes:
- View and manage your data across Google Cloud Platform services
- Apply machine learning models to understand and label images
Input
This building block consumes 1 input parameters
Name | Format | Description |
---|---|---|
name Required |
STRING |
Resource name of the Product to get. Format is:
|
= Parameter name
= Format
name STRING Required Resource name of the Product to get. Format is:
|
Output
This building block provides 7 output parameters
Name | Format | Description |
---|---|---|
name |
STRING |
The resource name of the product. Format is:
This field is ignored when creating a product |
displayName |
STRING |
The user-provided name for this Product. Must not be empty. Must be at most 4096 characters long |
description |
STRING |
User-provided metadata to be stored with this product. Must be at most 4096 characters long |
productCategory |
STRING |
The category for the product identified by the reference image. This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories "homegoods", "apparel", and "toys" are still supported, but these should not be used for new products. This field is immutable |
productLabels[] |
OBJECT |
A product label represented as a key-value pair |
productLabels[].value |
STRING |
The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes |
productLabels[].key |
STRING |
The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes |
= Parameter name
= Format
name STRING The resource name of the product. Format is:
This field is ignored when creating a product |
displayName STRING The user-provided name for this Product. Must not be empty. Must be at most 4096 characters long |
description STRING User-provided metadata to be stored with this product. Must be at most 4096 characters long |
productCategory STRING The category for the product identified by the reference image. This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories "homegoods", "apparel", and "toys" are still supported, but these should not be used for new products. This field is immutable |
productLabels[] OBJECT A product label represented as a key-value pair |
productLabels[].value STRING The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes |
productLabels[].key STRING The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes |