document_links
Creates, updates, deletes, gets or lists a document_links
resource.
Overview
Name | document_links |
Type | Resource |
Id | google.contentwarehouse.document_links |
Fields
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
create | INSERT | documentsId, locationsId, projectsId | Create a link between a source document and a target document. |
delete | DELETE | documentLinksId, documentsId, locationsId, projectsId | Remove the link between the source and target documents. |
INSERT
example
Use the following StackQL query and manifest file to create a new document_links
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.contentwarehouse.document_links (
documentsId,
locationsId,
projectsId,
requestMetadata,
documentLink
)
SELECT
'{{ documentsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ requestMetadata }}',
'{{ documentLink }}'
;
- name: your_resource_model_name
props:
- name: requestMetadata
value:
- name: userInfo
value:
- name: groupIds
value:
- string
- name: id
value: string
- name: documentLink
value:
- name: updateTime
value: string
- name: name
value: string
- name: createTime
value: string
- name: state
value: string
- name: description
value: string
- name: targetDocumentReference
value:
- name: createTime
value: string
- name: documentIsLegalHoldFolder
value: boolean
- name: documentIsRetentionFolder
value: boolean
- name: documentIsFolder
value: boolean
- name: documentName
value: string
- name: updateTime
value: string
- name: snippet
value: string
- name: displayName
value: string
- name: deleteTime
value: string
DELETE
example
Deletes the specified document_links
resource.
/*+ delete */
DELETE FROM google.contentwarehouse.document_links
WHERE documentLinksId = '{{ documentLinksId }}'
AND documentsId = '{{ documentsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';