Skip to main content

attributes

Creates, updates, deletes, gets or lists an attributes resource.

Overview

Nameattributes
TypeResource
Idgoogle.dataplex.attributes

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The relative resource name of the dataAttribute, of the form: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}.
attributeCountinteger (int32)Output only. The number of child attributes present for this attribute.
createTimestring (google-datetime)Output only. The time when the DataAttribute was created.
dataAccessSpecobjectOptional. Specified when applied to data stored on the resource (eg: rows, columns in BigQuery Tables). (id: GoogleCloudDataplexV1DataAccessSpec)
descriptionstringOptional. Description of the DataAttribute.
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 DataAttribute.
parentIdstringOptional. The ID of the parent DataAttribute resource, should belong to the same data taxonomy. Circular dependency in parent chain is not valid. Maximum depth of the hierarchy allowed is 4. a -> b -> c -> d -> e, depth = 4
resourceAccessSpecobjectOptional. Specified when applied to a resource (eg: Cloud Storage bucket, BigQuery dataset, BigQuery table). (id: GoogleCloudDataplexV1ResourceAccessSpec)
uidstringOutput only. System generated globally unique ID for the DataAttribute. This ID will be different if the DataAttribute is deleted and re-created with the same name.
updateTimestring (google-datetime)Output only. The time when the DataAttribute was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_data_taxonomies_attributes_getselectprojectsId, locationsId, dataTaxonomiesId, attributesIdRetrieves a Data Attribute resource.
projects_locations_data_taxonomies_attributes_listselectprojectsId, locationsId, dataTaxonomiesIdpageSize, pageToken, filter, orderByLists Data Attribute resources in a DataTaxonomy.
projects_locations_data_taxonomies_attributes_createinsertprojectsId, locationsId, dataTaxonomiesIddataAttributeId, validateOnlyCreate a DataAttribute resource.
projects_locations_data_taxonomies_attributes_patchupdateprojectsId, locationsId, dataTaxonomiesId, attributesIdupdateMask, validateOnlyUpdates a DataAttribute resource.
projects_locations_data_taxonomies_attributes_deletedeleteprojectsId, locationsId, dataTaxonomiesId, attributesIdetagDeletes a Data Attribute resource.

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
attributesIdstring
dataTaxonomiesIdstring
locationsIdstring
projectsIdstring
dataAttributeIdstring
etagstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Retrieves a Data Attribute resource.

SELECT
name,
attributeCount,
createTime,
dataAccessSpec,
description,
displayName,
etag,
labels,
parentId,
resourceAccessSpec,
uid,
updateTime
FROM google.dataplex.attributes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND dataTaxonomiesId = '{{ dataTaxonomiesId }}' -- required
AND attributesId = '{{ attributesId }}' -- required;

INSERT examples

Create a DataAttribute resource.

INSERT INTO google.dataplex.attributes (
data__description,
data__displayName,
data__labels,
data__parentId,
data__etag,
data__resourceAccessSpec,
data__dataAccessSpec,
projectsId,
locationsId,
dataTaxonomiesId,
dataAttributeId,
validateOnly
)
SELECT
'{{ description }}',
'{{ displayName }}',
'{{ labels }}',
'{{ parentId }}',
'{{ etag }}',
'{{ resourceAccessSpec }}',
'{{ dataAccessSpec }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ dataTaxonomiesId }}',
'{{ dataAttributeId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates a DataAttribute resource.

UPDATE google.dataplex.attributes
SET
data__description = '{{ description }}',
data__displayName = '{{ displayName }}',
data__labels = '{{ labels }}',
data__parentId = '{{ parentId }}',
data__etag = '{{ etag }}',
data__resourceAccessSpec = '{{ resourceAccessSpec }}',
data__dataAccessSpec = '{{ dataAccessSpec }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND dataTaxonomiesId = '{{ dataTaxonomiesId }}' --required
AND attributesId = '{{ attributesId }}' --required
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a Data Attribute resource.

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