contexts_context_children
Creates, updates, deletes, gets or lists a contexts_context_children
resource.
Overview
Name | contexts_context_children |
Type | Resource |
Id | google.aiplatform.contexts_context_children |
Fields
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
add_context_children | INSERT | contextsId, locationsId, metadataStoresId, projectsId | Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error. |
remove_context_children | DELETE | contextsId, locationsId, metadataStoresId, projectsId | Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT added to the parent Context, they are simply skipped. |
INSERT
example
Use the following StackQL query and manifest file to create a new contexts_context_children
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.aiplatform.contexts_context_children (
contextsId,
locationsId,
metadataStoresId,
projectsId,
childContexts
)
SELECT
'{{ contextsId }}',
'{{ locationsId }}',
'{{ metadataStoresId }}',
'{{ projectsId }}',
'{{ childContexts }}'
;
- name: your_resource_model_name
props:
- name: childContexts
value:
- string
DELETE
example
Deletes the specified contexts_context_children
resource.
/*+ delete */
DELETE FROM google.aiplatform.contexts_context_children
WHERE contextsId = '{{ contextsId }}'
AND locationsId = '{{ locationsId }}'
AND metadataStoresId = '{{ metadataStoresId }}'
AND projectsId = '{{ projectsId }}';