Skip to main content

lakes

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

Overview

Namelakes
TypeResource
Idgoogle.dataplex.lakes

Fields

NameDatatypeDescription
namestringOutput only. The relative resource name of the lake, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
descriptionstringOptional. Description of the lake.
assetStatusobjectAggregated status of the underlying assets of a lake or zone.
createTimestringOutput only. The time when the lake was created.
displayNamestringOptional. User friendly display name.
labelsobjectOptional. User-defined labels for the lake.
metastoreobjectSettings to manage association of Dataproc Metastore with a lake.
metastoreStatusobjectStatus of Lake and Dataproc Metastore service instance association.
serviceAccountstringOutput only. Service account associated with this lake. This service account must be authorized to access or operate on resources managed by the lake.
statestringOutput only. Current state of the lake.
uidstringOutput only. System generated globally unique ID for the lake. This ID will be different if the lake is deleted and re-created with the same name.
updateTimestringOutput only. The time when the lake was last updated.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_lakes_getSELECTlakesId, locationsId, projectsIdRetrieves a lake resource.
projects_locations_lakes_listSELECTlocationsId, projectsIdLists lake resources in a project and location.
projects_locations_lakes_createINSERTlocationsId, projectsIdCreates a lake resource.
projects_locations_lakes_deleteDELETElakesId, locationsId, projectsIdDeletes a lake resource. All zones within the lake must be deleted before the lake can be deleted.
projects_locations_lakes_patchUPDATElakesId, locationsId, projectsIdUpdates a lake resource.

SELECT examples

Lists lake resources in a project and location.

SELECT
name,
description,
assetStatus,
createTime,
displayName,
labels,
metastore,
metastoreStatus,
serviceAccount,
state,
uid,
updateTime
FROM google.dataplex.lakes
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new lakes resource.

/*+ create */
INSERT INTO google.dataplex.lakes (
locationsId,
projectsId,
displayName,
labels,
description,
metastore
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ displayName }}',
'{{ labels }}',
'{{ description }}',
'{{ metastore }}'
;

UPDATE example

Updates a lakes resource.

/*+ update */
UPDATE google.dataplex.lakes
SET
displayName = '{{ displayName }}',
labels = '{{ labels }}',
description = '{{ description }}',
metastore = '{{ metastore }}'
WHERE
lakesId = '{{ lakesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified lakes resource.

/*+ delete */
DELETE FROM google.dataplex.lakes
WHERE lakesId = '{{ lakesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';