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:

Successful response

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, processesIdupdateMask, allowMissing, requestIdUpdates 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__name,
data__displayName,
data__attributes,
data__origin,
projectsId,
locationsId,
requestId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ attributes }}',
'{{ origin }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ requestId }}'
RETURNING
name,
attributes,
displayName,
origin
;

UPDATE examples

Updates a process.

UPDATE google.datalineage.processes
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__attributes = '{{ attributes }}',
data__origin = '{{ origin }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND processesId = '{{ processesId }}' --required
AND updateMask = '{{ updateMask}}'
AND allowMissing = {{ allowMissing}}
AND requestId = '{{ requestId}}'
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 }}';