1.0.20220805 • Published 2 years ago

@maxim_mazurok/gapi.client.datacatalog v1.0.20220805

Weekly downloads
47
License
MIT
Repository
github
Last release
2 years ago

TypeScript typings for Google Cloud Data Catalog API v1

A fully managed and highly scalable data discovery and metadata management service. For detailed description please check documentation.

Installing

Install typings for Google Cloud Data Catalog API:

npm install @types/gapi.client.datacatalog@v1 --save-dev

Usage

You need to initialize Google API client in your code:

gapi.load('client', () => {
  // now we can use gapi.client
  // ...
});

Then load api client wrapper:

gapi.client.load('datacatalog', 'v1', () => {
  // now we can use gapi.client.datacatalog
  // ...
});

Don't forget to authenticate your client before sending any request to resources:

// declare client_id registered in Google Developers Console
var client_id = '',
  scope = [ 
      // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
      'https://www.googleapis.com/auth/cloud-platform',
    ],
    immediate = true;
// ...

gapi.auth.authorize(
  { client_id: client_id, scope: scope, immediate: immediate },
  authResult => {
    if (authResult && !authResult.error) {
        /* handle successful authorization */
    } else {
        /* handle authorization error */
    }
});

After that you can use Google Cloud Data Catalog API resources:

/*
Searches Data Catalog for multiple resources like entries and tags that match a query. This is a [Custom Method] (https://cloud.google.com/apis/design/custom_methods) that doesn't return all information on a resource, only its ID and high level fields. To get more information, you can subsequently call specific get methods. Note: Data Catalog search queries don't guarantee full recall. Results that match your query might not be returned, even in subsequent result pages. Additionally, returned (and not returned) results can vary if you repeat search queries. For more information, see [Data Catalog search syntax] (https://cloud.google.com/data-catalog/docs/how-to/search-reference).
*/
await gapi.client.datacatalog.catalog.search({  });

/*
Gets an entry by its target resource name. The resource name comes from the source Google Cloud Platform service.
*/
await gapi.client.datacatalog.entries.lookup({  });
1.0.20220613

2 years ago

1.0.20220707

2 years ago

1.0.20220624

2 years ago

1.0.20220715

2 years ago

1.0.20220805

2 years ago

1.0.20220726

2 years ago

1.0.20220609

2 years ago

1.0.20220429

2 years ago

1.0.20220505

2 years ago

1.0.20220513

2 years ago

1.0.20220530

2 years ago

1.0.20220415

2 years ago

1.0.20220426

2 years ago

1.0.20220321

2 years ago

1.0.20220409

2 years ago

1.0.20220329

2 years ago

1.0.20220224

2 years ago

1.0.20220311

2 years ago

1.0.20211230

2 years ago

1.0.20220117

2 years ago

1.0.20220201

2 years ago

1.0.20220103

2 years ago

1.0.20220121

2 years ago

1.0.20220209

2 years ago

1.0.20220215

2 years ago

1.0.20211110

3 years ago

1.0.20211201

2 years ago

1.0.20211014

3 years ago

1.0.20210920

3 years ago

1.0.20210910

3 years ago

1.0.20210909

3 years ago

1.0.20210901

3 years ago

1.0.20210827

3 years ago

1.0.20210811

3 years ago

1.0.20210803

3 years ago

1.0.20210721

3 years ago

1.0.20210712

3 years ago

1.0.20210702

3 years ago

1.0.20210625

3 years ago

1.0.20210618

3 years ago

1.0.20210601

3 years ago

1.0.20210520

3 years ago

1.0.20210510

3 years ago

1.0.20210429

3 years ago

1.0.20210412

3 years ago

1.0.20210408

3 years ago

1.0.20210402

3 years ago

1.0.20210325

3 years ago

1.0.20210316

3 years ago

1.0.20210305

3 years ago

1.0.20210223

3 years ago

1.0.20210220

3 years ago

1.0.20210209

3 years ago

1.0.20210205

3 years ago

1.0.20210129

3 years ago

1.0.20210123

3 years ago

1.0.20210112

3 years ago

1.0.20201223

3 years ago

1.0.20201210

3 years ago

1.0.20201127

3 years ago

1.0.20201107

4 years ago

1.0.20201102

4 years ago