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.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
  • // 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;
    });
    
    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.delete({
        // Optional. If true, deletes all entries in the entry group.
        force: 'placeholder-value',
        // Required. The name of the entry group. For example, `projects/{project_id\}/locations/{location\}/entryGroups/{entry_group_id\}`.
        name: 'projects/my-project/locations/my-location/entryGroups/my-entryGroup',
      });
      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.tags.create({
        // 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.
        parent:
          'projects/my-project/locations/my-location/entryGroups/my-entryGroup',
    
        // Request body metadata
        requestBody: {
          // request body parameters
          // {
          //   "column": "my_column",
          //   "fields": {},
          //   "name": "my_name",
          //   "template": "my_template",
          //   "templateDisplayName": "my_templateDisplayName"
          // }
        },
      });
      console.log(res.data);
    
      // Example response
      // {
      //   "column": "my_column",
      //   "fields": {},
      //   "name": "my_name",
      //   "template": "my_template",
      //   "templateDisplayName": "my_templateDisplayName"
      // }
    }
    
    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.create({
        // Required. The ID of the entry group to create. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and must start with a letter or underscore. The maximum size is 64 bytes when encoded in UTF-8.
        entryGroupId: 'placeholder-value',
        // 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.
        parent: 'projects/my-project/locations/my-location',
    
        // 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
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples