data_taxonomies
Creates, updates, deletes, gets or lists a data_taxonomies
resource.
Overview
Name | data_taxonomies |
Type | Resource |
Id | google.dataplex.data_taxonomies |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The relative resource name of the DataTaxonomy, of the form: projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}. |
description | string | Optional. Description of the DataTaxonomy. |
attributeCount | integer | Output only. The number of attributes in the DataTaxonomy. |
classCount | integer | Output only. The number of classes in the DataTaxonomy. |
createTime | string | Output only. The time when the DataTaxonomy was created. |
displayName | string | Optional. User friendly display name. |
etag | string | 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. |
labels | object | Optional. User-defined labels for the DataTaxonomy. |
uid | string | Output 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. |
updateTime | string | Output only. The time when the DataTaxonomy was last updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_data_taxonomies_get | SELECT | dataTaxonomiesId, locationsId, projectsId | Retrieves a DataTaxonomy resource. |
projects_locations_data_taxonomies_list | SELECT | locationsId, projectsId | Lists DataTaxonomy resources in a project and location. |
projects_locations_data_taxonomies_create | INSERT | locationsId, projectsId | Create a DataTaxonomy resource. |
projects_locations_data_taxonomies_delete | DELETE | dataTaxonomiesId, locationsId, projectsId | Deletes a DataTaxonomy resource. All attributes within the DataTaxonomy must be deleted before the DataTaxonomy can be deleted. |
projects_locations_data_taxonomies_patch | UPDATE | dataTaxonomiesId, locationsId, projectsId | Updates a DataTaxonomy resource. |
SELECT
examples
Lists DataTaxonomy resources in a project and location.
SELECT
name,
description,
attributeCount,
classCount,
createTime,
displayName,
etag,
labels,
uid,
updateTime
FROM google.dataplex.data_taxonomies
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new data_taxonomies
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.dataplex.data_taxonomies (
locationsId,
projectsId,
description,
displayName,
labels,
etag
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ description }}',
'{{ displayName }}',
'{{ labels }}',
'{{ etag }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: uid
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: description
value: string
- name: displayName
value: string
- name: labels
value: object
- name: attributeCount
value: integer
- name: etag
value: string
- name: classCount
value: integer
UPDATE
example
Updates a data_taxonomies
resource.
/*+ update */
UPDATE google.dataplex.data_taxonomies
SET
description = '{{ description }}',
displayName = '{{ displayName }}',
labels = '{{ labels }}',
etag = '{{ etag }}'
WHERE
dataTaxonomiesId = '{{ dataTaxonomiesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified data_taxonomies
resource.
/*+ delete */
DELETE FROM google.dataplex.data_taxonomies
WHERE dataTaxonomiesId = '{{ dataTaxonomiesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';