0.0.20240513 • Published 5 days ago

@maxim_mazurok/gapi.client.artifactregistry-v1beta2 v0.0.20240513

Weekly downloads
-
License
MIT
Repository
github
Last release
5 days ago

TypeScript typings for Artifact Registry API v1beta2

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-v1beta2 --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(
  'https://artifactregistry.googleapis.com/$discovery/rest?version=v1beta2',
  () => {
    // now we can use:
    // gapi.client.artifactregistry
  }
);
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
gapi.client.load('artifactregistry', 'v1beta2', () => {
  // 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',
});
0.0.20240513

5 days ago

0.0.20240501

16 days ago

0.0.20240425

23 days ago

0.0.20240412

1 month ago

0.0.20240329

2 months ago

0.0.20240322

2 months ago

0.0.20240313

2 months ago

0.0.20240308

2 months ago

0.0.20240305

3 months ago

0.0.20240223

3 months ago

0.0.20240213

3 months ago

0.0.20240202

3 months ago

0.0.20240122

4 months ago

0.0.20240105

4 months ago

0.0.20240102

5 months ago

0.0.20231208

5 months ago

0.0.20230816

9 months ago

0.0.20231108

6 months ago

0.0.20231114

6 months ago

0.0.20230809

9 months ago

0.0.20231018

7 months ago

0.0.20230803

10 months ago

0.0.20230726

10 months ago

0.0.20230724

10 months ago

0.0.20231102

7 months ago

0.0.20231025

7 months ago

0.0.20230719

10 months ago

0.0.20230918

8 months ago

0.0.20231006

8 months ago

0.0.20230710

11 months ago

0.0.20230913

8 months ago

0.0.20230905

9 months ago

0.0.20230628

11 months ago

0.0.20231002

8 months ago

0.0.20230626

11 months ago

0.0.20230512

1 year ago

0.0.20230615

11 months ago

0.0.20230607

12 months ago

0.0.20230508

1 year ago

0.0.20230524

12 months ago

0.0.20230502

1 year ago

0.0.20230522

12 months ago

0.0.20230622

11 months ago

0.0.20230606

12 months ago

0.0.20230529

12 months ago

0.0.20230313

1 year ago

0.0.20230317

1 year ago

0.0.20230326

1 year ago

0.0.20230303

1 year ago

0.0.20230427

1 year ago

0.0.20230307

1 year ago

0.0.20230411

1 year ago

0.0.20230208

1 year ago

0.0.20230220

1 year ago

0.0.20230202

1 year ago

0.0.20221130

1 year ago

0.0.20221115

2 years ago

0.0.20230105

1 year ago

0.0.20221014

2 years ago

0.0.20221003

2 years ago

0.0.20221210

1 year ago

0.0.20221022

2 years ago

0.0.20230113

1 year ago

0.0.20221108

2 years ago

0.0.20230111

1 year ago

0.0.20230123

1 year ago

0.0.20220829

2 years ago

0.0.20220910

2 years ago

0.0.20220817

2 years ago

0.0.20220809

2 years ago