Skip to main content

lakes

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

Overview

Namelakes
TypeResource
Idgoogle.dataplex.lakes

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The relative resource name of the lake, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
assetStatusobjectOutput only. Aggregated status of the underlying assets of the lake. (id: GoogleCloudDataplexV1AssetStatus)
createTimestring (google-datetime)Output only. The time when the lake was created.
descriptionstringOptional. Description of the lake.
displayNamestringOptional. User friendly display name.
labelsobjectOptional. User-defined labels for the lake.
metastoreobjectOptional. Settings to manage lake and Dataproc Metastore service instance association. (id: GoogleCloudDataplexV1LakeMetastore)
metastoreStatusobjectOutput only. Metastore status of the lake. (id: GoogleCloudDataplexV1LakeMetastoreStatus)
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.
updateTimestring (google-datetime)Output only. The time when the lake was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_lakes_getselectprojectsId, locationsId, lakesIdRetrieves a lake resource.
projects_locations_lakes_listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists lake resources in a project and location.
projects_locations_lakes_createinsertprojectsId, locationsIdlakeId, validateOnlyCreates a lake resource.
projects_locations_lakes_patchupdateprojectsId, locationsId, lakesIdupdateMask, validateOnlyUpdates a lake resource.
projects_locations_lakes_deletedeleteprojectsId, locationsId, lakesIdDeletes a lake resource. All zones within the lake must be deleted before the lake can be deleted.

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
lakesIdstring
locationsIdstring
projectsIdstring
filterstring
lakeIdstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Retrieves a lake resource.

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

INSERT examples

Creates a lake resource.

INSERT INTO google.dataplex.lakes (
data__displayName,
data__labels,
data__description,
data__metastore,
projectsId,
locationsId,
lakeId,
validateOnly
)
SELECT
'{{ displayName }}',
'{{ labels }}',
'{{ description }}',
'{{ metastore }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ lakeId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates a lake resource.

UPDATE google.dataplex.lakes
SET
data__displayName = '{{ displayName }}',
data__labels = '{{ labels }}',
data__description = '{{ description }}',
data__metastore = '{{ metastore }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND lakesId = '{{ lakesId }}' --required
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a lake resource. All zones within the lake must be deleted before the lake can be deleted.

DELETE FROM google.dataplex.lakes
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND lakesId = '{{ lakesId }}' --required;