DataCatalog
import { DataCatalog } from "https://googleapis.deno.dev/v1/datacatalog:v1.ts";
A fully managed and highly scalable data discovery and metadata management service.
§Methods
Searches Data Catalog for multiple resources like entries and tags that match a query. This is a [Custom Method] (https://cloud.google.com/apis/design/custom_methods) that doesn't return all information on a resource, only its ID and high level fields. To get more information, you can subsequently call specific get methods. Note: Data Catalog search queries don't guarantee full recall. Results that match your query might not be returned, even in subsequent result pages. Additionally, returned (and not returned) results can vary if you repeat search queries. For more information, see [Data Catalog search syntax] (https://cloud.google.com/data-catalog/docs/how-to/search-reference).
Gets an entry by its target resource name. The resource name comes from the source Google Cloud Platform service.
Creates an entry group. An entry group contains logically related entries
together with Cloud Identity and Access
Management policies. These policies
specify users who can create, edit, and view entries within entry groups.
Data Catalog automatically creates entry groups with names that start with
the @
symbol for the following resources: * BigQuery entries
(@bigquery
) * Pub/Sub topics (@pubsub
) * Dataproc Metastore services
(@dataproc_metastore_{SERVICE_NAME_HASH}
) You can create your own entry
groups for Cloud Storage fileset entries and custom entries together with
the corresponding IAM policies. User-created entry groups can't contain the
@
symbol, it is reserved for automatically created groups. Entry groups,
like entries, can be searched. A maximum of 10,000 entry groups may be
created per organization across all locations. You must enable the Data
Catalog API in the project identified by the parent
parameter. For more
information, see Data Catalog resource
project.
Required. The names of the project and location that the new entry group belongs to. Note: The entry group itself and its child resources might not be stored in the location specified in its name.
Deletes an entry group. You must enable the Data Catalog API in the
project identified by the name
parameter. For more information, see Data
Catalog resource
project.
Required. The name of the entry group to delete.
Creates an entry. You can create entries only with 'FILESET', 'CLUSTER',
'DATA_STREAM', or custom types. Data Catalog automatically creates entries
with other types during metadata ingestion from integrated systems. You
must enable the Data Catalog API in the project identified by the parent
parameter. For more information, see Data Catalog resource
project.
An entry group can have a maximum of 100,000 entries.
Required. The name of the entry group this entry belongs to. Note: The entry itself and its child resources might not be stored in the location specified in its name.
Deletes an existing entry. You can delete only the entries created by the
CreateEntry method. You must enable the Data Catalog API in the project
identified by the name
parameter. For more information, see Data Catalog
resource
project.
Required. The name of the entry to delete.
Gets an entry.
Required. The name of the entry to get.
Gets the access control policy for a resource. May return: * ANOT_FOUND
error if the resource doesn't exist or you don't have the permission to
view it. * An empty policy if the resource exists but doesn't have a set
policy. Supported resources are: - Tag templates - Entry groups Note: This
method doesn't get policies from Google Cloud Platform resources ingested
into Data Catalog. To call this method, you must have the following Google
IAM permissions: - datacatalog.tagTemplates.getIamPolicy
to get policies
on tag templates. - datacatalog.entryGroups.getIamPolicy
to get policies
on entry groups.
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Imports entries from a source, such as data previously dumped into a Cloud
Storage bucket, into Data Catalog. Import of entries is a sync operation
that reconciles the state of the third-party system with the Data Catalog.
ImportEntries
accepts source data snapshots of a third-party system.
Snapshot should be delivered as a .wire or base65-encoded .txt file
containing a sequence of Protocol Buffer messages of DumpItem type.
ImportEntries
returns a long-running operation resource that can be
queried with Operations.GetOperation to return ImportEntriesMetadata and an
ImportEntriesResponse message.
Required. Target entry group for ingested entries.
Lists entries. Note: Currently, this method can list only custom entries. To get a list of both custom and automatically created entries, use SearchCatalog.
Required. The name of the entry group that contains the entries to list. Can be provided in URL format.
Modifies contacts, part of the business context of an Entry. To call this
method, you must have the datacatalog.entries.updateContacts
IAM
permission on the corresponding project.
Required. The full resource name of the entry.
Modifies entry overview, part of the business context of an Entry. To call
this method, you must have the datacatalog.entries.updateOverview
IAM
permission on the corresponding project.
Required. The full resource name of the entry.
Updates an existing entry. You must enable the Data Catalog API in the
project identified by the entry.name
parameter. For more information, see
Data Catalog resource
project.
Output only. Identifier. The resource name of an entry in URL format. Note: The entry itself and its child resources might not be stored in the location specified in its name.
Marks an Entry as starred by the current user. Starring information is private to each user.
Required. The name of the entry to mark as starred.
Creates a tag and assigns it to: * An Entry if the method name is
projects.locations.entryGroups.entries.tags.create
. * Or EntryGroupif the
method name is projects.locations.entryGroups.tags.create
. Note: The
project identified by the parent
parameter for the [tag]
(https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters)
and the [tag template]
(https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters)
used to create the tag must be in the same organization.
Required. The name of the resource to attach this tag to. Tags can be attached to entries or entry groups. An entry can have up to 1000 attached tags. Note: The tag and its child resources might not be stored in the location specified in its name.
Lists tags assigned to an Entry. The columns in the response are lowercased.
Required. The name of the Data Catalog resource to list the tags of. The resource can be an Entry or an EntryGroup (without /entries/{entries}
at the end).
Updates an existing tag.
Identifier. The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name.
ReconcileTags
creates or updates a list of tags on the entry. If the
ReconcileTagsRequest.force_delete_missing parameter is set, the operation
deletes tags not included in the input tag list. ReconcileTags
returns a
long-running operation resource that can be queried with
Operations.GetOperation to return ReconcileTagsMetadata and a
ReconcileTagsResponse message.
Required. Name of Entry to be tagged.
Gets your permissions on a resource. Returns an empty set of permissions if the resource doesn't exist. Supported resources are: - Tag templates - Entry groups Note: This method gets policies only within Data Catalog and can't be used to get policies from BigQuery, Pub/Sub, Dataproc Metastore, and any external Google Cloud Platform resources ingested into Data Catalog. No Google IAM permissions are required to call this method.
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Marks an Entry as NOT starred by the current user. Starring information is private to each user.
Required. The name of the entry to mark as not starred.
Gets an entry group.
Required. The name of the entry group to get.
Gets the access control policy for a resource. May return: * ANOT_FOUND
error if the resource doesn't exist or you don't have the permission to
view it. * An empty policy if the resource exists but doesn't have a set
policy. Supported resources are: - Tag templates - Entry groups Note: This
method doesn't get policies from Google Cloud Platform resources ingested
into Data Catalog. To call this method, you must have the following Google
IAM permissions: - datacatalog.tagTemplates.getIamPolicy
to get policies
on tag templates. - datacatalog.entryGroups.getIamPolicy
to get policies
on entry groups.
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Lists entry groups.
Required. The name of the location that contains the entry groups to list. Can be provided as a URL.
Updates an entry group. You must enable the Data Catalog API in the
project identified by the entry_group.name
parameter. For more
information, see Data Catalog resource
project.
Identifier. The resource name of the entry group in URL format. Note: The entry group itself and its child resources might not be stored in the location specified in its name.
Sets an access control policy for a resource. Replaces any existing
policy. Supported resources are: - Tag templates - Entry groups Note: This
method sets policies only within Data Catalog and can't be used to manage
policies in BigQuery, Pub/Sub, Dataproc Metastore, and any external Google
Cloud Platform resources synced with the Data Catalog. To call this method,
you must have the following Google IAM permissions: -
datacatalog.tagTemplates.setIamPolicy
to set policies on tag templates. -
datacatalog.entryGroups.setIamPolicy
to set policies on entry groups.
REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Creates a tag and assigns it to: * An Entry if the method name is
projects.locations.entryGroups.entries.tags.create
. * Or EntryGroupif the
method name is projects.locations.entryGroups.tags.create
. Note: The
project identified by the parent
parameter for the [tag]
(https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters)
and the [tag template]
(https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters)
used to create the tag must be in the same organization.
Required. The name of the resource to attach this tag to. Tags can be attached to entries or entry groups. An entry can have up to 1000 attached tags. Note: The tag and its child resources might not be stored in the location specified in its name.
Lists tags assigned to an Entry. The columns in the response are lowercased.
Required. The name of the Data Catalog resource to list the tags of. The resource can be an Entry or an EntryGroup (without /entries/{entries}
at the end).
Updates an existing tag.
Identifier. The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name.
Gets your permissions on a resource. Returns an empty set of permissions if the resource doesn't exist. Supported resources are: - Tag templates - Entry groups Note: This method gets policies only within Data Catalog and can't be used to get policies from BigQuery, Pub/Sub, Dataproc Metastore, and any external Google Cloud Platform resources ingested into Data Catalog. No Google IAM permissions are required to call this method.
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED
. Clients can use Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation, the
operation is not deleted; instead, it becomes an operation with an
Operation.error value with a google.rpc.Status.code of 1, corresponding to
Code.CANCELLED
.
The name of the operation resource to be cancelled.
Deletes a long-running operation. This method indicates that the client is
no longer interested in the operation result. It does not cancel the
operation. If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED
.
The name of the operation resource to be deleted.
Lists operations that match the specified filter in the request. If the
server doesn't support this method, it returns UNIMPLEMENTED
.
The name of the operation's parent resource.
Creates a tag template. You must enable the Data Catalog API in the
project identified by the parent
parameter. For more information, see
[Data Catalog resource project]
(https://cloud.google.com/data-catalog/docs/concepts/resource-project).
Required. The name of the project and the template location region.
Deletes a tag template and all tags that use it. You must enable the Data
Catalog API in the project identified by the name
parameter. For more
information, see Data Catalog resource
project.
Required. The name of the tag template to delete.
Creates a field in a tag template. You must enable the Data Catalog API in
the project identified by the parent
parameter. For more information, see
Data Catalog resource
project.
Required. The name of the project and the template location region.
Deletes a field in a tag template and all uses of this field from the tags
based on this template. You must enable the Data Catalog API in the project
identified by the name
parameter. For more information, see Data Catalog
resource
project.
Required. The name of the tag template field to delete.
Renames an enum value in a tag template. Within a single enum field, enum values must be unique.
Required. The name of the enum field value.
Updates a field in a tag template. You can't update the field type with
this method. You must enable the Data Catalog API in the project identified
by the name
parameter. For more information, see Data Catalog resource
project.
Required. The name of the tag template field.
Renames a field in a tag template. You must enable the Data Catalog API in
the project identified by the name
parameter. For more information, see
[Data Catalog resource project]
(https://cloud.google.com/data-catalog/docs/concepts/resource-project).
Required. The name of the tag template field.
Gets a tag template.
Required. The name of the tag template to get.
Gets the access control policy for a resource. May return: * ANOT_FOUND
error if the resource doesn't exist or you don't have the permission to
view it. * An empty policy if the resource exists but doesn't have a set
policy. Supported resources are: - Tag templates - Entry groups Note: This
method doesn't get policies from Google Cloud Platform resources ingested
into Data Catalog. To call this method, you must have the following Google
IAM permissions: - datacatalog.tagTemplates.getIamPolicy
to get policies
on tag templates. - datacatalog.entryGroups.getIamPolicy
to get policies
on entry groups.
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Updates a tag template. You can't update template fields with this method.
These fields are separate resources with their own create, update, and
delete methods. You must enable the Data Catalog API in the project
identified by the tag_template.name
parameter. For more information, see
Data Catalog resource
project.
Identifier. The resource name of the tag template in URL format. Note: The tag template itself and its child resources might not be stored in the location specified in its name.
Sets an access control policy for a resource. Replaces any existing
policy. Supported resources are: - Tag templates - Entry groups Note: This
method sets policies only within Data Catalog and can't be used to manage
policies in BigQuery, Pub/Sub, Dataproc Metastore, and any external Google
Cloud Platform resources synced with the Data Catalog. To call this method,
you must have the following Google IAM permissions: -
datacatalog.tagTemplates.setIamPolicy
to set policies on tag templates. -
datacatalog.entryGroups.setIamPolicy
to set policies on entry groups.
REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Gets your permissions on a resource. Returns an empty set of permissions if the resource doesn't exist. Supported resources are: - Tag templates - Entry groups Note: This method gets policies only within Data Catalog and can't be used to get policies from BigQuery, Pub/Sub, Dataproc Metastore, and any external Google Cloud Platform resources ingested into Data Catalog. No Google IAM permissions are required to call this method.
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Creates a taxonomy in a specified project. The taxonomy is initially empty, that is, it doesn't contain policy tags.
Required. Resource name of the project that the taxonomy will belong to.
Deletes a taxonomy, including all policy tags in this taxonomy, their associated policies, and the policy tags references from BigQuery columns.
Required. Resource name of the taxonomy to delete. Note: All policy tags in this taxonomy are also deleted.
Exports taxonomies in the requested type and returns them, including their
policy tags. The requested taxonomies must belong to the same project. This
method generates SerializedTaxonomy
protocol buffers with nested policy
tags that can be used as input for ImportTaxonomies
calls.
Required. Resource name of the project that the exported taxonomies belong to.
Gets a taxonomy.
Required. Resource name of the taxonomy to get.
Gets the IAM policy for a policy tag or a taxonomy.
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Creates new taxonomies (including their policy tags) in a given project by importing from inlined or cross-regional sources. For a cross-regional source, new taxonomies are created by copying from a source in another region. For an inlined source, taxonomies and policy tags are created in bulk using nested protocol buffer structures.
Required. Resource name of project that the imported taxonomies will belong to.
Lists all taxonomies in a project in a particular location that you have a permission to view.
Required. Resource name of the project to list the taxonomies of.
Updates a taxonomy, including its display name, description, and activated policy types.
Identifier. Resource name of this taxonomy in URL format. Note: Policy tag manager generates unique taxonomy IDs.
Creates a policy tag in a taxonomy.
Required. Resource name of the taxonomy that the policy tag will belong to.
Deletes a policy tag together with the following: * All of its descendant policy tags, if any * Policies associated with the policy tag and its descendants * References from BigQuery table schema of the policy tag and its descendants
Required. Resource name of the policy tag to delete. Note: All of its descendant policy tags are also deleted.
Gets a policy tag.
Required. Resource name of the policy tag.
Gets the IAM policy for a policy tag or a taxonomy.
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Lists all policy tags in a taxonomy.
Required. Resource name of the taxonomy to list the policy tags of.
Updates a policy tag, including its display name, description, and parent policy tag.
Identifier. Resource name of this policy tag in the URL format. The policy tag manager generates unique taxonomy IDs and policy tag IDs.
Sets the IAM policy for a policy tag or a taxonomy.
REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Returns your permissions on a specified policy tag or taxonomy.
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Replaces (updates) a taxonomy and all its policy tags. The taxonomy and
its entire hierarchy of policy tags must be represented literally by
SerializedTaxonomy
and the nested SerializedPolicyTag
messages. This
operation automatically does the following: - Deletes the existing policy
tags that are missing from the SerializedPolicyTag
. - Creates policy tags
that don't have resource names. They are considered new. - Updates policy
tags with valid resources names accordingly.
Required. Resource name of the taxonomy to update.
Sets the IAM policy for a policy tag or a taxonomy.
REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Returns your permissions on a specified policy tag or taxonomy.
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.