Skip to main content

data_taxonomies

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

Overview

Namedata_taxonomies
TypeResource
Idgoogle.dataplex.data_taxonomies

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The relative resource name of the DataTaxonomy, of the form: projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}.
attributeCountinteger (int32)Output only. The number of attributes in the DataTaxonomy.
classCountinteger (int32)Output only. The number of classes in the DataTaxonomy.
createTimestring (google-datetime)Output only. The time when the DataTaxonomy was created.
descriptionstringOptional. Description of the DataTaxonomy.
displayNamestringOptional. User friendly display name.
etagstringThis checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
labelsobjectOptional. User-defined labels for the DataTaxonomy.
uidstringOutput only. System generated globally unique ID for the dataTaxonomy. This ID will be different if the DataTaxonomy is deleted and re-created with the same name.
updateTimestring (google-datetime)Output only. The time when the DataTaxonomy was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_data_taxonomies_getselectprojectsId, locationsId, dataTaxonomiesIdRetrieves a DataTaxonomy resource.
projects_locations_data_taxonomies_listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists DataTaxonomy resources in a project and location.
projects_locations_data_taxonomies_createinsertprojectsId, locationsIddataTaxonomyId, validateOnlyCreate a DataTaxonomy resource.
projects_locations_data_taxonomies_patchupdateprojectsId, locationsId, dataTaxonomiesIdupdateMask, validateOnlyUpdates a DataTaxonomy resource.
projects_locations_data_taxonomies_deletedeleteprojectsId, locationsId, dataTaxonomiesIdetagDeletes a DataTaxonomy resource. All attributes within the DataTaxonomy must be deleted before the DataTaxonomy 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
dataTaxonomiesIdstring
locationsIdstring
projectsIdstring
dataTaxonomyIdstring
etagstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Retrieves a DataTaxonomy resource.

SELECT
name,
attributeCount,
classCount,
createTime,
description,
displayName,
etag,
labels,
uid,
updateTime
FROM google.dataplex.data_taxonomies
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND dataTaxonomiesId = '{{ dataTaxonomiesId }}' -- required;

INSERT examples

Create a DataTaxonomy resource.

INSERT INTO google.dataplex.data_taxonomies (
data__description,
data__displayName,
data__labels,
data__etag,
projectsId,
locationsId,
dataTaxonomyId,
validateOnly
)
SELECT
'{{ description }}',
'{{ displayName }}',
'{{ labels }}',
'{{ etag }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ dataTaxonomyId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates a DataTaxonomy resource.

UPDATE google.dataplex.data_taxonomies
SET
data__description = '{{ description }}',
data__displayName = '{{ displayName }}',
data__labels = '{{ labels }}',
data__etag = '{{ etag }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND dataTaxonomiesId = '{{ dataTaxonomiesId }}' --required
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a DataTaxonomy resource. All attributes within the DataTaxonomy must be deleted before the DataTaxonomy can be deleted.

DELETE FROM google.dataplex.data_taxonomies
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND dataTaxonomiesId = '{{ dataTaxonomiesId }}' --required
AND etag = '{{ etag }}';