processes
Creates, updates, deletes, gets or lists a processes
resource.
Overview
Name | processes |
Type | Resource |
Id | google.datalineage.processes |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The resource name of the lineage process. Format: projects/{project}/locations/{location}/processes/{process} . Can be specified or auto-assigned. {process} must be not longer than 200 characters and only contain characters in a set: a-zA-Z0-9_-:. |
attributes | object | Optional. The attributes of the process. Should only be used for the purpose of non-semantic management (classifying, describing or labeling the process). Up to 100 attributes are allowed. |
displayName | string | Optional. A human-readable name you can set to display in a user interface. Must be not longer than 200 characters and only contain UTF-8 letters or numbers, spaces or characters like _-:&. |
origin | object | Origin of a process. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, processesId, projectsId | Gets the details of the specified process. |
list | SELECT | locationsId, projectsId | List processes in the given project and location. List order is descending by insertion time. |
create | INSERT | locationsId, projectsId | Creates a new process. |
delete | DELETE | locationsId, processesId, projectsId | Deletes the process with the specified name. |
patch | UPDATE | locationsId, processesId, projectsId | Updates a process. |
SELECT
examples
List processes in the given project and location. List order is descending by insertion time.
SELECT
name,
attributes,
displayName,
origin
FROM google.datalineage.processes
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new processes
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.datalineage.processes (
locationsId,
projectsId,
name,
attributes,
displayName,
origin
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ attributes }}',
'{{ displayName }}',
'{{ origin }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: attributes
value: object
- name: displayName
value: string
- name: origin
value:
- name: sourceType
value: string
- name: name
value: string
UPDATE
example
Updates a processes
resource.
/*+ update */
UPDATE google.datalineage.processes
SET
name = '{{ name }}',
attributes = '{{ attributes }}',
displayName = '{{ displayName }}',
origin = '{{ origin }}'
WHERE
locationsId = '{{ locationsId }}'
AND processesId = '{{ processesId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified processes
resource.
/*+ delete */
DELETE FROM google.datalineage.processes
WHERE locationsId = '{{ locationsId }}'
AND processesId = '{{ processesId }}'
AND projectsId = '{{ projectsId }}';