Skip to main content

serving_configs_control

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

Overview

Nameserving_configs_control
TypeResource
Idgoogle.retail.serving_configs_control

Fields

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

Methods

NameAccessible byRequired ParamsDescription
projects_locations_catalogs_serving_configs_add_controlINSERTcatalogsId, locationsId, projectsId, servingConfigsIdEnables a Control on the specified ServingConfig. The control is added in the last position of the list of controls it belongs to (e.g. if it's a facet spec control it will be applied in the last position of servingConfig.facetSpecIds) Returns a ALREADY_EXISTS error if the control has already been applied. Returns a FAILED_PRECONDITION error if the addition could exceed maximum number of control allowed for that type of control.
projects_locations_catalogs_serving_configs_remove_controlDELETEcatalogsId, locationsId, projectsId, servingConfigsIdDisables a Control on the specified ServingConfig. The control is removed from the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for the ServingConfig.

INSERT example

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

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

DELETE example

Deletes the specified serving_configs_control resource.

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