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.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('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;
    });
    
    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('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.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/entries/my-entrie',
    
          // 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
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples