Skip to main content

attributes_config_catalog_attribute

Creates, updates, deletes, gets or lists an attributes_config_catalog_attribute resource.

Overview

Nameattributes_config_catalog_attribute
TypeResource
Idgoogle.retail.attributes_config_catalog_attribute

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:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_catalogs_attributes_config_add_catalog_attributeinsertprojectsId, locationsId, catalogsIdAdds the specified CatalogAttribute to the AttributesConfig. If the CatalogAttribute to add already exists, an ALREADY_EXISTS error is returned.
projects_locations_catalogs_attributes_config_remove_catalog_attributedeleteprojectsId, locationsId, catalogsIdRemoves the specified CatalogAttribute from the AttributesConfig. If the CatalogAttribute to remove does not exist, a NOT_FOUND error is returned.

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.

NameDatatypeDescription
catalogsIdstring
locationsIdstring
projectsIdstring

INSERT examples

Adds the specified CatalogAttribute to the AttributesConfig. If the CatalogAttribute to add already exists, an ALREADY_EXISTS error is returned.

INSERT INTO google.retail.attributes_config_catalog_attribute (
data__catalogAttribute,
projectsId,
locationsId,
catalogsId
)
SELECT
'{{ catalogAttribute }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ catalogsId }}'
RETURNING
name,
attributeConfigLevel,
catalogAttributes
;

DELETE examples

Removes the specified CatalogAttribute from the AttributesConfig. If the CatalogAttribute to remove does not exist, a NOT_FOUND error is returned.

DELETE FROM google.retail.attributes_config_catalog_attribute
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND catalogsId = '{{ catalogsId }}' --required;