serving_configs_control
Creates, updates, deletes, gets or lists a serving_configs_control
resource.
Overview
Name | serving_configs_control |
Type | Resource |
Id | google.retail.serving_configs_control |
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_serving_configs_add_control | INSERT | catalogsId, locationsId, projectsId, servingConfigsId | Enables 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_control | DELETE | catalogsId, locationsId, projectsId, servingConfigsId | Disables 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.retail.serving_configs_control (
catalogsId,
locationsId,
projectsId,
servingConfigsId,
controlId
)
SELECT
'{{ catalogsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ servingConfigsId }}',
'{{ controlId }}'
;
- name: your_resource_model_name
props:
- name: controlId
value: string
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 }}';