0.0.20241027 • Published 10 months ago

@maxim_mazurok/gapi.client.billingbudgets-v1 v0.0.20241027

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

TypeScript typings for Cloud Billing Budget API v1

The Cloud Billing Budget API stores Cloud Billing budgets, which define a budget plan and the rules to execute as spend is tracked against that plan. For detailed description please check documentation.

Installing

Install typings for Cloud Billing Budget API:

npm install @types/gapi.client.billingbudgets-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(
  'https://billingbudgets.googleapis.com/$discovery/rest?version=v1',
  () => {
    // now we can use:
    // gapi.client.billingbudgets
  }
);
// 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('billingbudgets', 'v1', () => {
  // now we can use:
  // gapi.client.billingbudgets
});

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 = [
    // View and manage your Google Cloud Platform billing accounts
    'https://www.googleapis.com/auth/cloud-billing',

    // 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 Cloud Billing Budget API resources:

0.0.20241027

10 months ago

0.0.20241020

10 months ago

0.0.20240929

11 months ago

0.0.20241013

10 months ago

0.0.20241005

10 months ago

0.0.20240922

11 months ago

0.0.20240914

11 months ago

0.0.20240908

11 months ago

0.0.20240901

12 months ago

0.0.20240804

1 year ago

0.0.20240728

1 year ago

0.0.20240609

1 year ago

0.0.20240602

1 year ago

0.0.20240526

1 year ago

0.0.20240720

1 year ago

0.0.20240817

12 months ago

0.0.20240811

1 year ago

0.0.20240616

1 year ago

0.0.20240630

1 year ago

0.0.20240707

1 year ago

0.0.20240825

12 months ago

0.0.20240623

1 year ago

0.0.20240713

1 year ago

0.0.20240519

1 year ago

0.0.20240512

1 year ago

0.0.20240504

1 year ago

0.0.20240427

1 year ago

0.0.20240420

1 year ago

0.0.20240414

1 year ago

0.0.20240407

1 year ago

0.0.20240330

1 year ago

0.0.20240323

1 year ago

0.0.20240317

1 year ago

0.0.20240310

1 year ago

0.0.20240302

1 year ago

0.0.20240225

1 year ago

0.0.20240218

1 year ago

0.0.20240211

2 years ago

0.0.20240204

2 years ago

0.0.20240128

2 years ago

0.0.20240121

2 years ago

0.0.20240114

2 years ago

0.0.20240106

2 years ago

0.0.20231217

2 years ago

0.0.20231210

2 years ago

0.0.20231203

2 years ago

0.0.20230818

2 years ago

0.0.20230915

2 years ago

0.0.20230817

2 years ago

0.0.20231029

2 years ago

0.0.20231105

2 years ago

0.0.20230910

2 years ago

0.0.20231008

2 years ago

0.0.20230710

2 years ago

0.0.20230716

2 years ago

0.0.20230813

2 years ago

0.0.20231112

2 years ago

0.0.20231015

2 years ago

0.0.20230929

2 years ago

0.0.20230806

2 years ago

0.0.20230729

2 years ago

0.0.20230723

2 years ago

0.0.20231119

2 years ago

0.0.20230820

2 years ago

0.0.20230704

2 years ago

0.0.20230903

2 years ago

0.0.20231022

2 years ago

0.0.20231126

2 years ago

0.0.20230624

2 years ago

0.0.20230621

2 years ago

0.0.20230424

2 years ago

0.0.20230529

2 years ago

0.0.20230507

2 years ago

0.0.20230402

2 years ago

0.0.20230309

2 years ago

0.0.20230207

3 years ago

0.0.20230221

2 years ago

0.0.20230117

3 years ago

0.0.20221126

3 years ago

0.0.20221212

3 years ago

0.0.20230109

3 years ago

0.0.20230102

3 years ago

0.0.20230123

3 years ago

0.0.20221019

3 years ago

0.0.20221025

3 years ago

0.0.20220916

3 years ago

0.0.20220829

3 years ago

0.0.20220823

3 years ago

0.0.20220904

3 years ago

0.0.20220817

3 years ago

0.0.20220811

3 years ago