attributes_config_catalog_attribute
Creates, updates, deletes, gets or lists a attributes_config_catalog_attribute
resource.
Overview
Name | attributes_config_catalog_attribute |
Type | Resource |
Id | google.retail.attributes_config_catalog_attribute |
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_catalogs_attributes_config_add_catalog_attribute | INSERT | catalogsId, locationsId, projectsId | Adds 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_attribute | DELETE | catalogsId, locationsId, projectsId | Removes 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.retail.attributes_config_catalog_attribute (
catalogsId,
locationsId,
projectsId,
catalogAttribute
)
SELECT
'{{ catalogsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ catalogAttribute }}'
;
- name: your_resource_model_name
props:
- name: catalogAttribute
value:
- name: key
value: string
- name: inUse
value: boolean
- name: type
value: string
- name: indexableOption
value: string
- name: dynamicFacetableOption
value: string
- name: searchableOption
value: string
- name: exactSearchableOption
value: string
- name: retrievableOption
value: string
- name: facetConfig
value:
- name: facetIntervals
value:
- - name: minimum
value: number
- name: exclusiveMinimum
value: number
- name: maximum
value: number
- name: exclusiveMaximum
value: number
- name: ignoredFacetValues
value:
- - name: values
value:
- string
- name: startTime
value: string
- name: endTime
value: string
- name: mergedFacetValues
value:
- - name: values
value:
- string
- name: mergedValue
value: string
- name: mergedFacet
value:
- name: mergedFacetKey
value: string
- name: rerankConfig
value:
- name: rerankFacet
value: boolean
- name: facetValues
value:
- string
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 }}';