# @maxim_mazurok/gapi.client.cloudbuild-v1beta1

> TypeScript typings for Cloud Build API v1beta1

Latest version **0.0.20230102** (published 2023-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @maxim_mazurok/gapi.client.cloudbuild-v1beta1
pnpm add @maxim_mazurok/gapi.client.cloudbuild-v1beta1
yarn add @maxim_mazurok/gapi.client.cloudbuild-v1beta1
bun add @maxim_mazurok/gapi.client.cloudbuild-v1beta1
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.20230102 |
| Published | 2023-01-03 |
| First published | 2022-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 79.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 59 |
| Author | Maxim Mazurok |
| Maintainers | maxim_mazurok |

## Links

- npm: https://www.npmjs.com/package/@maxim_mazurok/gapi.client.cloudbuild-v1beta1
- Repository: https://github.com/Maxim-Mazurok/google-api-typings-generator
- Homepage: https://github.com/Maxim-Mazurok/google-api-typings-generator#readme
- Issues: https://github.com/Maxim-Mazurok/google-api-typings-generator/issues
- npm.io page: https://npm.io/package/@maxim_mazurok/gapi.client.cloudbuild-v1beta1

## Dependencies (2)

- [@types/gapi.client](https://npm.io/package/@types/gapi.client.md) *
- [@types/gapi.client.discovery](https://npm.io/package/@types/gapi.client.discovery.md) *

## Recent versions

- 0.0.20230102 (latest) — 2023-01-03
- 0.0.20221219 — 2022-12-20
- 0.0.20221207 — 2022-12-12
- 0.0.20221201 — 2022-12-02
- 0.0.20221110 — 2022-11-14
- 0.0.20221103 — 2022-11-08
- 0.0.20221027 — 2022-11-01
- 0.0.20221020 — 2022-10-25
- 0.0.20221015 — 2022-10-18
- 0.0.20220928 — 2022-09-29
- 0.0.20220921 — 2022-09-28
- 0.0.20220916 — 2022-09-21
- 0.0.20220908 — 2022-09-12
- 0.0.20220826 — 2022-08-31
- 0.0.20220818 — 2022-08-23
- … 3 more at https://npm.io/package/@maxim_mazurok/gapi.client.cloudbuild-v1beta1/versions

## README

# TypeScript typings for Cloud Build API v1beta1

Creates and manages builds on Google Cloud Platform.
For detailed description please check [documentation](https://cloud.google.com/cloud-build/docs/).

## Installing

Install typings for Cloud Build API:

```
npm install @types/gapi.client.cloudbuild-v1beta1 --save-dev
```

## Usage

You need to initialize Google API client in your code:

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

Then load api client wrapper:

```typescript
gapi.client.load('https://cloudbuild.googleapis.com/$discovery/rest?version=v1beta1', () => {
  // now we can use:
  // gapi.client.cloudbuild
});
```

```typescript
// 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('cloudbuild', 'v1beta1', () => {
  // now we can use:
  // gapi.client.cloudbuild
});
```

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

```typescript
// 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 Cloud Build API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript
```

---
_Source: https://npm.io/package/@maxim_mazurok/gapi.client.cloudbuild-v1beta1 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
