1.0.20220809 • Published 3 years ago

@maxim_mazurok/gapi.client.artifactregistry v1.0.20220809

Weekly downloads
75
License
MIT
Repository
github
Last release
3 years ago

TypeScript typings for Artifact Registry API v1

Store and manage build artifacts in a scalable and integrated service built on Google infrastructure. For detailed description please check documentation.

Installing

Install typings for Artifact Registry API:

npm install @types/gapi.client.artifactregistry@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('artifactregistry', 'v1', () => {
  // now we can use gapi.client.artifactregistry
  // ...
});

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',

      // View your data across Google Cloud services and see the email address of your Google Account
      'https://www.googleapis.com/auth/cloud-platform.read-only',
    ],
    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 Artifact Registry API resources:

/*
Retrieves the Settings for the Project.
*/
await gapi.client.artifactregistry.projects.getProjectSettings({ name: "name",  });

/*
Updates the Settings for the Project.
*/
await gapi.client.artifactregistry.projects.updateProjectSettings({ name: "name",  });
1.0.20220614

3 years ago

1.0.20220621

3 years ago

1.0.20220628

3 years ago

1.0.20220623

3 years ago

1.0.20220711

3 years ago

1.0.20220720

3 years ago

1.0.20220803

3 years ago

1.0.20220727

3 years ago

1.0.20220809

3 years ago

1.0.20220506

3 years ago

1.0.20220503

3 years ago

1.0.20220522

3 years ago

1.0.20220527

3 years ago

1.0.20220415

3 years ago

1.0.20220425

3 years ago

1.0.20220317

3 years ago

1.0.20220401

3 years ago

1.0.20220328

3 years ago

1.0.20220225

3 years ago

1.0.20220307

3 years ago

1.0.20220311

3 years ago

1.0.20220217

3 years ago

1.0.20220113

3 years ago

1.0.20220203

3 years ago

1.0.20220121

3 years ago

1.0.20220212

3 years ago

1.0.20211112

4 years ago

1.0.20211108

4 years ago

1.0.20211203

4 years ago

1.0.20211022

4 years ago

1.0.20211029

4 years ago

1.0.20211015

4 years ago

1.0.20211002

4 years ago

1.0.20210925

4 years ago

1.0.20210918

4 years ago

1.0.20210910

4 years ago

1.0.20210902

4 years ago

1.0.20210825

4 years ago

1.0.20210817

4 years ago

1.0.20210810

4 years ago

1.0.20210803

4 years ago

1.0.20210723

4 years ago

1.0.20210713

4 years ago

1.0.20210629

4 years ago

1.0.20210622

4 years ago

1.0.20210615

4 years ago

1.0.20210603

4 years ago

1.0.20210527

4 years ago

1.0.20210524

4 years ago

1.0.20210517

4 years ago

1.0.20210509

4 years ago

1.0.20210430

4 years ago

1.0.20210423

4 years ago

1.0.20210415

4 years ago

1.0.20210402

4 years ago

1.0.20210324

4 years ago

1.0.20210317

4 years ago

1.0.20210308

4 years ago

1.0.20210302

4 years ago

1.0.20210301

4 years ago

1.0.20210219

4 years ago

1.0.20210212

4 years ago

1.0.20210205

4 years ago

1.0.20210124

4 years ago

1.0.20210114

4 years ago

1.0.20201231

4 years ago

1.0.20201215

5 years ago

1.0.20201203

5 years ago

1.0.20201113

5 years ago

1.0.20201107

5 years ago