// Before running the sample:
// - Enable the API at:
// https://console.developers.google.com/apis/api/datacatalog.googleapis.com
// - Login into gcloud by running:
// `$ gcloud auth application-default login`
// - Install the npm module by running:
// `$ npm install googleapis`
const {google} = require('googleapis');
const datacatalog = google.datacatalog('v1beta1');
async function main() {
const auth = new google.auth.GoogleAuth({
// Scopes can be specified either as an array or as a single, space-delimited string.
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
});
// Acquire an auth client, and bind it to all future calls
const authClient = await auth.getClient();
google.options({auth: authClient});
// Do the magic
const res = await datacatalog.projects.locations.entryGroups.tags.delete({
// Required. The name of the tag to delete. Example: * projects/{project_id\}/locations/{location\}/entryGroups/{entry_group_id\}/entries/{entry_id\}/tags/{tag_id\}
name: 'projects/my-project/locations/my-location/entryGroups/my-entryGroup/tags/my-tag',
});
console.log(res.data);
// Example response
// {}
}
main().catch(e => {
console.error(e);
throw e;
});
// Before running the sample:
// - Enable the API at:
// https://console.developers.google.com/apis/api/datacatalog.googleapis.com
// - Login into gcloud by running:
// `$ gcloud auth application-default login`
// - Install the npm module by running:
// `$ npm install googleapis`
const {google} = require('googleapis');
const datacatalog = google.datacatalog('v1');
async function main() {
const auth = new google.auth.GoogleAuth({
// Scopes can be specified either as an array or as a single, space-delimited string.
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
});
// Acquire an auth client, and bind it to all future calls
const authClient = await auth.getClient();
google.options({auth: authClient});
// Do the magic
const res = await datacatalog.projects.locations.entryGroups.delete({
// Optional. If true, deletes all entries in the entry group.
force: 'placeholder-value',
// Required. The name of the entry group to delete.
name: 'projects/my-project/locations/my-location/entryGroups/my-entryGroup',
});
console.log(res.data);
// Example response
// {}
}
main().catch(e => {
console.error(e);
throw e;
});
// Before running the sample:
// - Enable the API at:
// https://console.developers.google.com/apis/api/datacatalog.googleapis.com
// - Login into gcloud by running:
// `$ gcloud auth application-default login`
// - Install the npm module by running:
// `$ npm install googleapis`
const {google} = require('googleapis');
const datacatalog = google.datacatalog('v1beta1');
async function main() {
const auth = new google.auth.GoogleAuth({
// Scopes can be specified either as an array or as a single, space-delimited string.
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
});
// Acquire an auth client, and bind it to all future calls
const authClient = await auth.getClient();
google.options({auth: authClient});
// Do the magic
const res = await datacatalog.projects.locations.entryGroups.entries.delete({
// Required. The name of the entry. Example: * projects/{project_id\}/locations/{location\}/entryGroups/{entry_group_id\}/entries/{entry_id\}
name: 'projects/my-project/locations/my-location/entryGroups/my-entryGroup/entries/my-entrie',
});
console.log(res.data);
// Example response
// {}
}
main().catch(e => {
console.error(e);
throw e;
});
// Before running the sample:
// - Enable the API at:
// https://console.developers.google.com/apis/api/datacatalog.googleapis.com
// - Login into gcloud by running:
// `$ gcloud auth application-default login`
// - Install the npm module by running:
// `$ npm install googleapis`
const {google} = require('googleapis');
const datacatalog = google.datacatalog('v1beta1');
async function main() {
const auth = new google.auth.GoogleAuth({
// Scopes can be specified either as an array or as a single, space-delimited string.
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
});
// Acquire an auth client, and bind it to all future calls
const authClient = await auth.getClient();
google.options({auth: authClient});
// Do the magic
const res = await datacatalog.projects.locations.entryGroups.entries.patch({
// Output only. The Data Catalog resource name of the entry in URL format. Example: * projects/{project_id\}/locations/{location\}/entryGroups/{entry_group_id\}/entries/{entry_id\} Note that this Entry and its child resources may not actually be stored in the location in this name.
name: 'projects/my-project/locations/my-location/entryGroups/my-entryGroup/entries/my-entrie',
// Names of fields whose values to overwrite on an entry. If this parameter is absent or empty, all modifiable fields are overwritten. If such fields are non-required and omitted in the request body, their values are emptied. The following fields are modifiable: * For entries with type `DATA_STREAM`: * `schema` * For entries with type `FILESET`: * `schema` * `display_name` * `description` * `gcs_fileset_spec` * `gcs_fileset_spec.file_patterns` * For entries with `user_specified_type`: * `schema` * `display_name` * `description` * `user_specified_type` * `user_specified_system` * `linked_resource` * `source_system_timestamps`
updateMask: 'placeholder-value',
// Request body metadata
requestBody: {
// request body parameters
// {
// "bigqueryDateShardedSpec": {},
// "bigqueryTableSpec": {},
// "description": "my_description",
// "displayName": "my_displayName",
// "gcsFilesetSpec": {},
// "integratedSystem": "my_integratedSystem",
// "linkedResource": "my_linkedResource",
// "name": "my_name",
// "schema": {},
// "sourceSystemTimestamps": {},
// "type": "my_type",
// "usageSignal": {},
// "userSpecifiedSystem": "my_userSpecifiedSystem",
// "userSpecifiedType": "my_userSpecifiedType"
// }
},
});
console.log(res.data);
// Example response
// {
// "bigqueryDateShardedSpec": {},
// "bigqueryTableSpec": {},
// "description": "my_description",
// "displayName": "my_displayName",
// "gcsFilesetSpec": {},
// "integratedSystem": "my_integratedSystem",
// "linkedResource": "my_linkedResource",
// "name": "my_name",
// "schema": {},
// "sourceSystemTimestamps": {},
// "type": "my_type",
// "usageSignal": {},
// "userSpecifiedSystem": "my_userSpecifiedSystem",
// "userSpecifiedType": "my_userSpecifiedType"
// }
}
main().catch(e => {
console.error(e);
throw e;
});
// Before running the sample:
// - Enable the API at:
// https://console.developers.google.com/apis/api/datacatalog.googleapis.com
// - Login into gcloud by running:
// `$ gcloud auth application-default login`
// - Install the npm module by running:
// `$ npm install googleapis`
const {google} = require('googleapis');
const datacatalog = google.datacatalog('v1beta1');
async function main() {
const auth = new google.auth.GoogleAuth({
// Scopes can be specified either as an array or as a single, space-delimited string.
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
});
// Acquire an auth client, and bind it to all future calls
const authClient = await auth.getClient();
google.options({auth: authClient});
// Do the magic
const res =
await datacatalog.projects.locations.entryGroups.entries.tags.list({
// The maximum number of tags to return. Default is 10. Max limit is 1000.
pageSize: 'placeholder-value',
// Token that specifies which page is requested. If empty, the first page is returned.
pageToken: 'placeholder-value',
// Required. The name of the Data Catalog resource to list the tags of. The resource could be an Entry or an EntryGroup. Examples: * projects/{project_id\}/locations/{location\}/entryGroups/{entry_group_id\} * projects/{project_id\}/locations/{location\}/entryGroups/{entry_group_id\}/entries/{entry_id\}
parent:
'projects/my-project/locations/my-location/entryGroups/my-entryGroup/entries/my-entrie',
});
console.log(res.data);
// Example response
// {
// "nextPageToken": "my_nextPageToken",
// "tags": []
// }
}
main().catch(e => {
console.error(e);
throw e;
});