1.0.20220809 • Published 2 years ago

@maxim_mazurok/gapi.client.artifactregistry v1.0.20220809

Weekly downloads
75
License
MIT
Repository
github
Last release
2 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

2 years ago

1.0.20220621

2 years ago

1.0.20220628

2 years ago

1.0.20220623

2 years ago

1.0.20220711

2 years ago

1.0.20220720

2 years ago

1.0.20220803

2 years ago

1.0.20220727

2 years ago

1.0.20220809

2 years ago

1.0.20220506

2 years ago

1.0.20220503

2 years ago

1.0.20220522

2 years ago

1.0.20220527

2 years ago

1.0.20220415

2 years ago

1.0.20220425

2 years ago

1.0.20220317

2 years ago

1.0.20220401

2 years ago

1.0.20220328

2 years ago

1.0.20220225

2 years ago

1.0.20220307

2 years ago

1.0.20220311

2 years ago

1.0.20220217

2 years ago

1.0.20220113

2 years ago

1.0.20220203

2 years ago

1.0.20220121

2 years ago

1.0.20220212

2 years ago

1.0.20211112

3 years ago

1.0.20211108

3 years ago

1.0.20211203

2 years ago

1.0.20211022

3 years ago

1.0.20211029

3 years ago

1.0.20211015

3 years ago

1.0.20211002

3 years ago

1.0.20210925

3 years ago

1.0.20210918

3 years ago

1.0.20210910

3 years ago

1.0.20210902

3 years ago

1.0.20210825

3 years ago

1.0.20210817

3 years ago

1.0.20210810

3 years ago

1.0.20210803

3 years ago

1.0.20210723

3 years ago

1.0.20210713

3 years ago

1.0.20210629

3 years ago

1.0.20210622

3 years ago

1.0.20210615

3 years ago

1.0.20210603

3 years ago

1.0.20210527

3 years ago

1.0.20210524

3 years ago

1.0.20210517

3 years ago

1.0.20210509

3 years ago

1.0.20210430

3 years ago

1.0.20210423

3 years ago

1.0.20210415

3 years ago

1.0.20210402

3 years ago

1.0.20210324

3 years ago

1.0.20210317

3 years ago

1.0.20210308

3 years ago

1.0.20210302

3 years ago

1.0.20210301

3 years ago

1.0.20210219

3 years ago

1.0.20210212

3 years ago

1.0.20210205

3 years ago

1.0.20210124

3 years ago

1.0.20210114

3 years ago

1.0.20201231

3 years ago

1.0.20201215

3 years ago

1.0.20201203

3 years ago

1.0.20201113

4 years ago

1.0.20201107

4 years ago