How to use where clause in Knex
Create refunds with Stripe
Load HTML with Cheerio
How to send POST request with Axios
Find intersection of array in Lodash
Powered by Official white Bloop logo with a period

Terms / Privacy / Search / Support

  • // 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;
    });
    
    Docs
  • // 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.entries.tags.delete({
          // Required. The name of the tag to delete.
          name: 'projects/my-project/locations/my-location/entryGroups/my-entryGroup/entries/my-entrie/tags/my-tag',
        });
      console.log(res.data);
    
      // Example response
      // {}
    }
    
    main().catch(e => {
      console.error(e);
      throw e;
    });
    
    Docs
  • // 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.patch({
        // The resource name of the entry group in URL format. Example: * projects/{project_id\}/locations/{location\}/entryGroups/{entry_group_id\} Note that this EntryGroup 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',
        // Names of fields whose values to overwrite on an entry group. 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.
        updateMask: 'placeholder-value',
    
        // Request body metadata
        requestBody: {
          // request body parameters
          // {
          //   "dataCatalogTimestamps": {},
          //   "description": "my_description",
          //   "displayName": "my_displayName",
          //   "name": "my_name"
          // }
        },
      });
      console.log(res.data);
    
      // Example response
      // {
      //   "dataCatalogTimestamps": {},
      //   "description": "my_description",
      //   "displayName": "my_displayName",
      //   "name": "my_name"
      // }
    }
    
    main().catch(e => {
      console.error(e);
      throw e;
    });
    
    Docs
  • // 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.get({
        // 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
      // {
      //   "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;
    });
    
    Docs
  • // 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.create({
        // Required. The id of the entry to create.
        entryId: 'placeholder-value',
        // Required. The name of the entry group this entry is in. Example: * projects/{project_id\}/locations/{location\}/entryGroups/{entry_group_id\} Note that this Entry and its child resources may not actually be stored in the location in this name.
        parent:
          'projects/my-project/locations/my-location/entryGroups/my-entryGroup',
    
        // 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;
    });
    
    Docs
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples