Skip to main content

processes

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

Overview​

Nameprocesses
TypeResource
Idgoogle.datalineage.processes

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringImmutable. 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_-:.
attributesobjectOptional. 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.
displayNamestringOptional. 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 _-:&.
originobjectOptional. The origin of this process and its runs and lineage events. (id: GoogleCloudDatacatalogLineageV1Origin)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, processesIdGets the details of the specified process.
listselectprojectsId, locationsIdpageSize, pageTokenList processes in the given project and location. List order is descending by insertion time.
createinsertprojectsId, locationsIdrequestIdCreates a new process.
patchupdateprojectsId, locationsId, processesIdallowMissing, requestId, updateMaskUpdates a process.
deletedeleteprojectsId, locationsId, processesIdallowMissingDeletes the process with the specified name.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
processesIdstring
projectsIdstring
allowMissingboolean
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples​

Gets the details of the specified process.

SELECT
name,
attributes,
displayName,
origin
FROM google.datalineage.processes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND processesId = '{{ processesId }}' -- required
;

INSERT examples​

Creates a new process.

INSERT INTO google.datalineage.processes (
data__attributes,
data__displayName,
data__name,
data__origin,
projectsId,
locationsId,
requestId
)
SELECT
'{{ attributes }}',
'{{ displayName }}',
'{{ name }}',
'{{ origin }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ requestId }}'
RETURNING
name,
attributes,
displayName,
origin
;

UPDATE examples​

Updates a process.

UPDATE google.datalineage.processes
SET
data__attributes = '{{ attributes }}',
data__displayName = '{{ displayName }}',
data__name = '{{ name }}',
data__origin = '{{ origin }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND processesId = '{{ processesId }}' --required
AND allowMissing = {{ allowMissing}}
AND requestId = '{{ requestId}}'
AND updateMask = '{{ updateMask}}'
RETURNING
name,
attributes,
displayName,
origin;

DELETE examples​

Deletes the process with the specified name.

DELETE FROM google.datalineage.processes
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND processesId = '{{ processesId }}' --required
AND allowMissing = '{{ allowMissing }}'
;