Constructor
new DataCatalogClient(optionsopt)
Construct an instance of DataCatalogClient.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
The configuration object. See the subsequent parameters for more details. Properties
|
- Source:
Members
(static) apiEndpoint
The DNS address for this API service - same as servicePath(), exists for compatibility reasons.
- Source:
(static) port
The port for this API service.
- Source:
(static) scopes
The scopes needed to make gRPC calls for every method defined in this service.
- Source:
(static) servicePath
The DNS address for this API service.
- Source:
Methods
close()
Terminate the GRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
- Source:
createEntry(request, optionsopt) → {Promise}
Alpha feature.
Creates an entry. Currently only entries of 'FILESET' type can be created.
The user should enable the Data Catalog API in the project identified by
the parent parameter (see [Data Catalog Resource Project]
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
createEntryGroup(request, optionsopt) → {Promise}
Alpha feature.
Creates an EntryGroup.
The user should enable the Data Catalog API in the project identified by
the parent parameter (see [Data Catalog Resource Project]
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
createTag(request, optionsopt) → {Promise}
Creates a tag on an [Entry][google.cloud.datacatalog.v1beta1.Entry].
Note: The project identified by the parent parameter for the
tag
and the
tag
template
used to create the tag must be from the same organization.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
createTagTemplate(request, optionsopt) → {Promise}
Creates a tag template. The user should enable the Data Catalog API in
the project identified by the parent parameter (see Data Catalog
Resource Project for more
information).
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
createTagTemplateField(request, optionsopt) → {Promise}
Creates a field in a tag template. The user should enable the Data Catalog
API in the project identified by the parent parameter (see
Data Catalog Resource
Project for more
information).
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
deleteEntry(request, optionsopt) → {Promise}
Alpha feature.
Deletes an existing entry. Only entries created through
[CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry]
method can be deleted.
The user should enable the Data Catalog API in the project identified by
the name parameter (see [Data Catalog Resource Project]
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
deleteEntryGroup(request, optionsopt) → {Promise}
Alpha feature.
Deletes an EntryGroup. Only entry groups that do not contain entries can be
deleted. The user should enable the Data Catalog API in the project
identified by the name parameter (see [Data Catalog Resource Project]
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
deleteTag(request, optionsopt) → {Promise}
Deletes a tag.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
deleteTagTemplate(request, optionsopt) → {Promise}
Deletes a tag template and all tags using the template.
The user should enable the Data Catalog API in the project identified by
the name parameter (see [Data Catalog Resource Project]
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
deleteTagTemplateField(request, optionsopt) → {Promise}
Deletes a field in a tag template and all uses of that field.
The user should enable the Data Catalog API in the project identified by
the name parameter (see [Data Catalog Resource Project]
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
getEntry(request, optionsopt) → {Promise}
Gets an entry.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
getEntryGroup(request, optionsopt) → {Promise}
Alpha feature. Gets an EntryGroup.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
getIamPolicy(request, optionsopt) → {Promise}
Gets the access control policy for a resource. A NOT_FOUND error
is returned if the resource does not exist. An empty policy is returned
if the resource exists but does not have a policy set on it.
Supported resources are:
- Tag templates.
- Entries.
- Entry groups. Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog.
Callers must have following Google IAM permission
datacatalog.tagTemplates.getIamPolicyto get policies on tag templates.datacatalog.entries.getIamPolicyto get policies on entries.datacatalog.entryGroups.getIamPolicyto get policies on entry groups.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
request |
Object |
The request object that will be sent. |
|
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
getProjectId(callback)
Return the project ID used by this class.
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
function |
the callback to be called with the current project Id. |
- Source:
getTagTemplate(request, optionsopt) → {Promise}
Gets a tag template.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
listTags(request, optionsopt) → {Promise}
Lists the tags on an [Entry][google.cloud.datacatalog.v1beta1.Entry].
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
listTagsStream(request, optionsopt) → {Stream}
Equivalent to listTags, but returns a NodeJS Stream object.
This fetches the paged responses for listTags continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
lookupEntry(request, optionsopt) → {Promise}
Get an entry by target resource name. This method allows clients to use the resource name from the source Google Cloud Platform service to get the Data Catalog Entry.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
renameTagTemplateField(request, optionsopt) → {Promise}
Renames a field in a tag template. The user should enable the Data Catalog
API in the project identified by the name parameter (see Data Catalog
Resource Project for more
information).
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
searchCatalog(request, optionsopt) → {Promise}
Searches Data Catalog for multiple resources like entries, tags that match a query.
This is a custom method
(https://cloud.google.com/apis/design/custom_methods) and does not return
the complete resource, only the resource identifier and high level
fields. Clients can subsequentally call Get methods.
Note that searches do not have full recall. There may be results that match your query but are not returned, even in subsequent pages of results. These missing results may vary across repeated calls to search. Do not rely on this method if you need to guarantee full recall.
See Data Catalog Search Syntax for more information.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
searchCatalogStream(request, optionsopt) → {Stream}
Equivalent to searchCatalog, but returns a NodeJS Stream object.
This fetches the paged responses for searchCatalog continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
setIamPolicy(request, optionsopt) → {Promise}
Sets the access control policy for a resource. Replaces any existing policy. Supported resources are:
- Tag templates.
- Entries.
- Entry groups. Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog.
Callers must have following Google IAM permission
datacatalog.tagTemplates.setIamPolicyto set policies on tag templates.datacatalog.entries.setIamPolicyto set policies on entries.datacatalog.entryGroups.setIamPolicyto set policies on entry groups.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
request |
Object |
The request object that will be sent. |
|
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
testIamPermissions(request, optionsopt) → {Promise}
Returns the caller's permissions on a resource.
If the resource does not exist, an empty set of permissions is returned
(We don't return a NOT_FOUND error).
Supported resources are:
- Tag templates.
- Entries.
- Entry groups. Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog.
A caller is not required to have Google IAM permission to make this request.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
request |
Object |
The request object that will be sent. |
|
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
updateEntry(request, optionsopt) → {Promise}
Updates an existing entry.
The user should enable the Data Catalog API in the project identified by
the entry.name parameter (see [Data Catalog Resource Project]
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
updateTag(request, optionsopt) → {Promise}
Updates an existing tag.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
updateTagTemplate(request, optionsopt) → {Promise}
Updates a tag template. This method cannot be used to update the fields of
a template. The tag template fields are represented as separate resources
and should be updated using their own create/update/delete methods.
The user should enable the Data Catalog API in the project identified by
the tag_template.name parameter (see [Data Catalog Resource Project]
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source:
updateTagTemplateField(request, optionsopt) → {Promise}
Updates a field in a tag template. This method cannot be used to update the
field type. The user should enable the Data Catalog API in the project
identified by the name parameter (see [Data Catalog Resource Project]
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
- Source: