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
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_product_sets_add_product | INSERT | locationsId, productSetsId, projectsId | 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 | locationsId, productSetsId, projectsId | Removes a Product from the specified ProductSet. |
INSERT
example
Use the following StackQL query and manifest file to create a new product_sets_product
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.vision.product_sets_product (
locationsId,
productSetsId,
projectsId,
product
)
SELECT
'{{ locationsId }}',
'{{ productSetsId }}',
'{{ projectsId }}',
'{{ product }}'
;
- name: your_resource_model_name
props:
- name: product
value: string
DELETE
example
Deletes the specified product_sets_product
resource.
/*+ delete */
DELETE FROM google.vision.product_sets_product
WHERE locationsId = '{{ locationsId }}'
AND productSetsId = '{{ productSetsId }}'
AND projectsId = '{{ projectsId }}';