Skip to main content

data_attribute_bindings

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

Overview

Namedata_attribute_bindings
TypeResource
Idgoogle.dataplex.data_attribute_bindings

Fields

NameDatatypeDescription
namestringOutput only. The relative resource name of the Data Attribute Binding, of the form: projects/{project_number}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id}
descriptionstringOptional. Description of the DataAttributeBinding.
attributesarrayOptional. List of attributes to be associated with the resource, provided in the form: projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}
createTimestringOutput only. The time when the DataAttributeBinding was created.
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. Etags must be used when calling the DeleteDataAttributeBinding and the UpdateDataAttributeBinding method.
labelsobjectOptional. User-defined labels for the DataAttributeBinding.
pathsarrayOptional. The list of paths for items within the associated resource (eg. columns and partitions within a table) along with attribute bindings.
resourcestringOptional. Immutable. The resource name of the resource that is associated to attributes. Presently, only entity resource is supported in the form: projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity_id} Must belong in the same project and region as the attribute binding, and there can only exist one active binding for a resource.
uidstringOutput only. System generated globally unique ID for the DataAttributeBinding. This ID will be different if the DataAttributeBinding is deleted and re-created with the same name.
updateTimestringOutput only. The time when the DataAttributeBinding was last updated.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_data_attribute_bindings_getSELECTdataAttributeBindingsId, locationsId, projectsIdRetrieves a DataAttributeBinding resource.
projects_locations_data_attribute_bindings_listSELECTlocationsId, projectsIdLists DataAttributeBinding resources in a project and location.
projects_locations_data_attribute_bindings_createINSERTlocationsId, projectsIdCreate a DataAttributeBinding resource.
projects_locations_data_attribute_bindings_deleteDELETEdataAttributeBindingsId, locationsId, projectsIdDeletes a DataAttributeBinding resource. All attributes within the DataAttributeBinding must be deleted before the DataAttributeBinding can be deleted.
projects_locations_data_attribute_bindings_patchUPDATEdataAttributeBindingsId, locationsId, projectsIdUpdates a DataAttributeBinding resource.

SELECT examples

Lists DataAttributeBinding resources in a project and location.

SELECT
name,
description,
attributes,
createTime,
displayName,
etag,
labels,
paths,
resource,
uid,
updateTime
FROM google.dataplex.data_attribute_bindings
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new data_attribute_bindings resource.

/*+ create */
INSERT INTO google.dataplex.data_attribute_bindings (
locationsId,
projectsId,
description,
displayName,
labels,
etag,
resource,
attributes,
paths
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ description }}',
'{{ displayName }}',
'{{ labels }}',
'{{ etag }}',
'{{ resource }}',
'{{ attributes }}',
'{{ paths }}'
;

UPDATE example

Updates a data_attribute_bindings resource.

/*+ update */
UPDATE google.dataplex.data_attribute_bindings
SET
description = '{{ description }}',
displayName = '{{ displayName }}',
labels = '{{ labels }}',
etag = '{{ etag }}',
resource = '{{ resource }}',
attributes = '{{ attributes }}',
paths = '{{ paths }}'
WHERE
dataAttributeBindingsId = '{{ dataAttributeBindingsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified data_attribute_bindings resource.

/*+ delete */
DELETE FROM google.dataplex.data_attribute_bindings
WHERE dataAttributeBindingsId = '{{ dataAttributeBindingsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';