config
Creates, updates, deletes, gets or lists a config resource.
Overview
| Name | config |
| Type | Resource |
| Id | google.datalineage.config |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The resource name of the config. Format: organizations/{organization_id}/locations/global/config folders/{folder_id}/locations/global/config projects/{project_id}/locations/global/config projects/{project_number}/locations/global/config |
etag | string | Optional. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a config from overwriting each other. It is required that systems make use of the etag in the read-modify-write cycle to perform config updates in order to avoid race conditions: An etag is returned in the response to GetConfig, and systems are expected to put that etag in the request to UpdateConfig to ensure that their change will be applied to the same version of the config. If an etag is not provided in the call to UpdateConfig, then the existing config, if any, will be overwritten. |
ingestion | object | Optional. Ingestion rule for Data Lineage ingestion. (id: GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestion) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | organizationsId, locationsId | Get the Config for a given resource. | |
patch | update | organizationsId, locationsId | Update the Config for a given resource. |
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.
| Name | Datatype | Description |
|---|---|---|
locationsId | string | |
organizationsId | string |
SELECT examples
- get
Get the Config for a given resource.
SELECT
name,
etag,
ingestion
FROM google.datalineage.config
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
;
UPDATE examples
- patch
Update the Config for a given resource.
UPDATE google.datalineage.config
SET
data__name = '{{ name }}',
data__ingestion = '{{ ingestion }}',
data__etag = '{{ etag }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND locationsId = '{{ locationsId }}' --required
RETURNING
name,
etag,
ingestion;