Skip to main content

glossaries

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

Overview

Nameglossaries
TypeResource
Idgoogle.dataplex.glossaries

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Identifier. The resource name of the Glossary. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}
categoryCountinteger (int32)Output only. The number of GlossaryCategories in the Glossary.
createTimestring (google-datetime)Output only. The time at which the Glossary was created.
descriptionstringOptional. The user-mutable description of the Glossary.
displayNamestringOptional. User friendly display name of the Glossary. This is user-mutable. This will be same as the GlossaryId, if not specified.
etagstringOptional. Needed for resource freshness validation. This 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 Glossary.
termCountinteger (int32)Output only. The number of GlossaryTerms in the Glossary.
uidstringOutput only. System generated unique id for the Glossary. This ID will be different if the Glossary is deleted and re-created with the same name.
updateTimestring (google-datetime)Output only. The time at which the Glossary was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_glossaries_getselectprojectsId, locationsId, glossariesIdGets a Glossary resource.
projects_locations_glossaries_listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists Glossary resources in a project and location.
projects_locations_glossaries_createinsertprojectsId, locationsIdglossaryId, validateOnlyCreates a new Glossary resource.
projects_locations_glossaries_patchupdateprojectsId, locationsId, glossariesIdupdateMask, validateOnlyUpdates a Glossary resource.
projects_locations_glossaries_deletedeleteprojectsId, locationsId, glossariesIdetagDeletes a Glossary resource. All the categories and terms within the Glossary must be deleted before the Glossary 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
glossariesIdstring
locationsIdstring
projectsIdstring
etagstring
filterstring
glossaryIdstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Gets a Glossary resource.

SELECT
name,
categoryCount,
createTime,
description,
displayName,
etag,
labels,
termCount,
uid,
updateTime
FROM google.dataplex.glossaries
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND glossariesId = '{{ glossariesId }}' -- required;

INSERT examples

Creates a new Glossary resource.

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

UPDATE examples

Updates a Glossary resource.

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

DELETE examples

Deletes a Glossary resource. All the categories and terms within the Glossary must be deleted before the Glossary can be deleted.

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