Skip to main content

metadata_feeds

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

Overview

Namemetadata_feeds
TypeResource
Idgoogle.dataplex.metadata_feeds

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of the metadata feed, in the format projects/{project_id_or_number}/locations/{location_id}/metadataFeeds/{metadata_feed_id}.
createTimestring (google-datetime)Output only. The time when the feed was created.
filtersobjectOptional. The filters of the metadata feed. Only the changes that match the filters are published. (id: GoogleCloudDataplexV1MetadataFeedFilters)
labelsobjectOptional. User-defined labels.
pubsubTopicstringOptional. The pubsub topic that you want the metadata feed messages to publish to. Please grant Dataplex service account the permission to publish messages to the topic. The service account is: service-{PROJECT_NUMBER}@gcp-sa-dataplex.iam.gserviceaccount.com.
scopeobjectRequired. The scope of the metadata feed. Only the in scope changes are published. (id: GoogleCloudDataplexV1MetadataFeedScope)
uidstringOutput only. A system-generated, globally unique ID for the metadata job. If the metadata job is deleted and then re-created with the same name, this ID is different.
updateTimestring (google-datetime)Output only. The time when the feed was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_metadata_feeds_getselectprojectsId, locationsId, metadataFeedsIdGets a MetadataFeed.
projects_locations_metadata_feeds_listselectprojectsId, locationsIdpageToken, pageSize, orderBy, filterRetrieve a list of MetadataFeeds.
projects_locations_metadata_feeds_createinsertprojectsId, locationsIdvalidateOnly, metadataFeedIdCreates a MetadataFeed.
projects_locations_metadata_feeds_patchupdateprojectsId, locationsId, metadataFeedsIdupdateMask, validateOnlyUpdates a MetadataFeed.
projects_locations_metadata_feeds_deletedeleteprojectsId, locationsId, metadataFeedsIdDeletes a MetadataFeed.

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
locationsIdstring
metadataFeedsIdstring
projectsIdstring
filterstring
metadataFeedIdstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Gets a MetadataFeed.

SELECT
name,
createTime,
filters,
labels,
pubsubTopic,
scope,
uid,
updateTime
FROM google.dataplex.metadata_feeds
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND metadataFeedsId = '{{ metadataFeedsId }}' -- required
;

INSERT examples

Creates a MetadataFeed.

INSERT INTO google.dataplex.metadata_feeds (
data__scope,
data__filters,
data__labels,
data__name,
data__pubsubTopic,
projectsId,
locationsId,
validateOnly,
metadataFeedId
)
SELECT
'{{ scope }}',
'{{ filters }}',
'{{ labels }}',
'{{ name }}',
'{{ pubsubTopic }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ validateOnly }}',
'{{ metadataFeedId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates a MetadataFeed.

UPDATE google.dataplex.metadata_feeds
SET
data__scope = '{{ scope }}',
data__filters = '{{ filters }}',
data__labels = '{{ labels }}',
data__name = '{{ name }}',
data__pubsubTopic = '{{ pubsubTopic }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND metadataFeedsId = '{{ metadataFeedsId }}' --required
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a MetadataFeed.

DELETE FROM google.dataplex.metadata_feeds
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND metadataFeedsId = '{{ metadataFeedsId }}' --required
;