Skip to main content

attributes_config_catalog_attribute

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

Overview

Nameattributes_config_catalog_attribute
TypeResource
Idgoogle.retail.attributes_config_catalog_attribute

Fields

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_catalogs_attributes_config_add_catalog_attributeINSERTcatalogsId, locationsId, projectsIdAdds 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_attributeDELETEcatalogsId, locationsId, projectsIdRemoves the specified CatalogAttribute from the AttributesConfig. If the CatalogAttribute to remove does not exist, a NOT_FOUND error is returned.

INSERT example

Use the following StackQL query and manifest file to create a new attributes_config_catalog_attribute resource.

/*+ create */
INSERT INTO google.retail.attributes_config_catalog_attribute (
catalogsId,
locationsId,
projectsId,
catalogAttribute
)
SELECT
'{{ catalogsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ catalogAttribute }}'
;

DELETE example

Deletes the specified attributes_config_catalog_attribute resource.

/*+ delete */
DELETE FROM google.retail.attributes_config_catalog_attribute
WHERE catalogsId = '{{ catalogsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';