product_sets_product
Creates, updates, deletes, gets or lists a product_sets_product
resource.
Overview
Name | product_sets_product |
Type | Resource |
Id | google.vision.product_sets_product |
Fields
The following fields are returned by SELECT
queries:
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
projects_locations_product_sets_add_product | insert | projectsId , locationsId , productSetsId | Adds a Product to the specified ProductSet. If the Product is already present, no change is made. One Product can be added to at most 100 ProductSets. Possible errors: * Returns NOT_FOUND if the Product or the ProductSet doesn't exist. | |
projects_locations_product_sets_remove_product | delete | projectsId , locationsId , productSetsId | Removes a Product from the specified ProductSet. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
productSetsId | string | |
projectsId | string |
INSERT
examples
- projects_locations_product_sets_add_product
- Manifest
Adds a Product to the specified ProductSet. If the Product is already present, no change is made. One Product can be added to at most 100 ProductSets. Possible errors: * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
INSERT INTO google.vision.product_sets_product (
data__product,
projectsId,
locationsId,
productSetsId
)
SELECT
'{{ product }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ productSetsId }}'
;
# Description fields are for documentation purposes
- name: product_sets_product
props:
- name: projectsId
value: string
description: Required parameter for the product_sets_product resource.
- name: locationsId
value: string
description: Required parameter for the product_sets_product resource.
- name: productSetsId
value: string
description: Required parameter for the product_sets_product resource.
- name: product
value: string
description: >
Required. The resource name for the Product to be added to this ProductSet. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
DELETE
examples
- projects_locations_product_sets_remove_product
Removes a Product from the specified ProductSet.
DELETE FROM google.vision.product_sets_product
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND productSetsId = '{{ productSetsId }}' --required;