Skip to main content

categories

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

Overview​

Namecategories
TypeResource
Idgoogle.dataplex.categories

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringOutput only. Identifier. The resource name of the GlossaryCategory. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}
createTimestring (google-datetime)Output only. The time at which the GlossaryCategory was created.
descriptionstringOptional. The user-mutable description of the GlossaryCategory.
displayNamestringOptional. User friendly display name of the GlossaryCategory. This is user-mutable. This will be same as the GlossaryCategoryId, if not specified.
labelsobjectOptional. User-defined labels for the GlossaryCategory.
parentstringRequired. The immediate parent of the GlossaryCategory in the resource-hierarchy. It can either be a Glossary or a GlossaryCategory. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} OR projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}
uidstringOutput only. System generated unique id for the GlossaryCategory. This ID will be different if the GlossaryCategory is deleted and re-created with the same name.
updateTimestring (google-datetime)Output only. The time at which the GlossaryCategory was last updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_glossaries_categories_getselectprojectsId, locationsId, glossariesId, categoriesIdGets a GlossaryCategory resource.
projects_locations_glossaries_categories_listselectprojectsId, locationsId, glossariesIdfilter, orderBy, pageSize, pageTokenLists GlossaryCategory resources in a Glossary.
projects_locations_glossaries_categories_createinsertprojectsId, locationsId, glossariesIdcategoryIdCreates a new GlossaryCategory resource.
projects_locations_glossaries_categories_patchupdateprojectsId, locationsId, glossariesId, categoriesIdupdateMaskUpdates a GlossaryCategory resource.
projects_locations_glossaries_categories_deletedeleteprojectsId, locationsId, glossariesId, categoriesIdDeletes a GlossaryCategory resource. All the GlossaryCategories and GlossaryTerms nested directly under the specified GlossaryCategory will be moved one level up to the parent in the hierarchy.

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
categoriesIdstring
glossariesIdstring
locationsIdstring
projectsIdstring
categoryIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples​

Gets a GlossaryCategory resource.

SELECT
name,
createTime,
description,
displayName,
labels,
parent,
uid,
updateTime
FROM google.dataplex.categories
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND glossariesId = '{{ glossariesId }}' -- required
AND categoriesId = '{{ categoriesId }}' -- required
;

INSERT examples​

Creates a new GlossaryCategory resource.

INSERT INTO google.dataplex.categories (
data__description,
data__displayName,
data__labels,
data__parent,
projectsId,
locationsId,
glossariesId,
categoryId
)
SELECT
'{{ description }}',
'{{ displayName }}',
'{{ labels }}',
'{{ parent }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ glossariesId }}',
'{{ categoryId }}'
RETURNING
name,
createTime,
description,
displayName,
labels,
parent,
uid,
updateTime
;

UPDATE examples​

Updates a GlossaryCategory resource.

UPDATE google.dataplex.categories
SET
data__description = '{{ description }}',
data__displayName = '{{ displayName }}',
data__labels = '{{ labels }}',
data__parent = '{{ parent }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND glossariesId = '{{ glossariesId }}' --required
AND categoriesId = '{{ categoriesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
description,
displayName,
labels,
parent,
uid,
updateTime;

DELETE examples​

Deletes a GlossaryCategory resource. All the GlossaryCategories and GlossaryTerms nested directly under the specified GlossaryCategory will be moved one level up to the parent in the hierarchy.

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