diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c38b0a702765..5c5f992430fe 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -36,6 +36,7 @@ "packages/google-cloud-videointelligence": "4.1.1", "packages/google-container": "4.4.0", "packages/google-devtools-artifactregistry": "2.0.2", + "packages/google-devtools-cloudbuild": "3.2.0", "packages/google-iam": "0.2.2", "packages/google-maps-addressvalidation": "0.1.0", "packages/google-maps-routing": "0.2.1", diff --git a/packages/google-devtools-cloudbuild/.github/.OwlBot.yaml b/packages/google-devtools-cloudbuild/.OwlBot.yaml similarity index 80% rename from packages/google-devtools-cloudbuild/.github/.OwlBot.yaml rename to packages/google-devtools-cloudbuild/.OwlBot.yaml index 0b979a333250..b26f9d2baa85 100644 --- a/packages/google-devtools-cloudbuild/.github/.OwlBot.yaml +++ b/packages/google-devtools-cloudbuild/.OwlBot.yaml @@ -11,15 +11,13 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -docker: - image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest deep-remove-regex: - /owl-bot-staging deep-copy-regex: - - source: /google/devtools/cloudbuild/(.*)/.*-nodejs/(.*) - dest: /owl-bot-staging/$1/$2 + - source: /google/devtools/cloudbuild/(.*)/.*-nodejs + dest: /owl-bot-staging/google-devtools-cloudbuild/$1 begin-after-commit-hash: 0629d7a32eb96685272de698a1e5f31f030b60c1 diff --git a/packages/google-devtools-cloudbuild/.mocharc.js b/packages/google-devtools-cloudbuild/.mocharc.js index 0b600509bed2..cdb7b7521602 100644 --- a/packages/google-devtools-cloudbuild/.mocharc.js +++ b/packages/google-devtools-cloudbuild/.mocharc.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-cloudbuild/.prettierrc.js b/packages/google-devtools-cloudbuild/.prettierrc.js index d1b95106f4ce..d546a4ad5460 100644 --- a/packages/google-devtools-cloudbuild/.prettierrc.js +++ b/packages/google-devtools-cloudbuild/.prettierrc.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-cloudbuild/.repo-metadata.json b/packages/google-devtools-cloudbuild/.repo-metadata.json index 1d2c8a2419b9..31a25cbc5cab 100644 --- a/packages/google-devtools-cloudbuild/.repo-metadata.json +++ b/packages/google-devtools-cloudbuild/.repo-metadata.json @@ -1,5 +1,5 @@ { - "repo": "googleapis/nodejs-cloudbuild", + "repo": "googleapis/google-cloud-node", "codeowner_team": "@googleapis/aap-dpes", "requires_billing": true, "name": "cloudbuild", diff --git a/packages/google-devtools-cloudbuild/README.md b/packages/google-devtools-cloudbuild/README.md index b1d33f831e8e..664fa3c96be0 100644 --- a/packages/google-devtools-cloudbuild/README.md +++ b/packages/google-devtools-cloudbuild/README.md @@ -2,7 +2,7 @@ [//]: # "To regenerate it, use `python -m synthtool`." Google Cloud Platform logo -# [Cloud Build: Node.js Client](https://github.com/googleapis/nodejs-cloudbuild) +# [Cloud Build: Node.js Client](https://github.com/googleapis/google-cloud-node) [![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages) [![npm version](https://img.shields.io/npm/v/@google-cloud/cloudbuild.svg)](https://www.npmjs.org/package/@google-cloud/cloudbuild) @@ -14,11 +14,11 @@ Cloud Build API client for Node.js A comprehensive list of changes in each version may be found in -[the CHANGELOG](https://github.com/googleapis/nodejs-cloudbuild/blob/main/CHANGELOG.md). +[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-devtools-cloudbuild/CHANGELOG.md). * [Cloud Build Node.js Client API Reference][client-docs] * [Cloud Build Documentation][product-docs] -* [github.com/googleapis/nodejs-cloudbuild](https://github.com/googleapis/nodejs-cloudbuild) +* [github.com/googleapis/google-cloud-node/packages/google-devtools-cloudbuild](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-devtools-cloudbuild) Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in [Client Libraries Explained][explained]. @@ -110,12 +110,29 @@ async function quickstart( ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/nodejs-cloudbuild/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample. +Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| List Triggers. | [source code](https://github.com/googleapis/nodejs-cloudbuild/blob/main/samples/listBuildTriggers.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloudbuild&page=editor&open_in_editor=samples/listBuildTriggers.js,samples/README.md) | -| Quickstart | [source code](https://github.com/googleapis/nodejs-cloudbuild/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloudbuild&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | +| Cloud_build.approve_build | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.approve_build.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.approve_build.js,samples/README.md) | +| Cloud_build.cancel_build | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.cancel_build.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.cancel_build.js,samples/README.md) | +| Cloud_build.create_build | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.create_build.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.create_build.js,samples/README.md) | +| Cloud_build.create_build_trigger | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.create_build_trigger.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.create_build_trigger.js,samples/README.md) | +| Cloud_build.create_worker_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.create_worker_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.create_worker_pool.js,samples/README.md) | +| Cloud_build.delete_build_trigger | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.delete_build_trigger.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.delete_build_trigger.js,samples/README.md) | +| Cloud_build.delete_worker_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.delete_worker_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.delete_worker_pool.js,samples/README.md) | +| Cloud_build.get_build | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.get_build.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.get_build.js,samples/README.md) | +| Cloud_build.get_build_trigger | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.get_build_trigger.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.get_build_trigger.js,samples/README.md) | +| Cloud_build.get_worker_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.get_worker_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.get_worker_pool.js,samples/README.md) | +| Cloud_build.list_build_triggers | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.list_build_triggers.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.list_build_triggers.js,samples/README.md) | +| Cloud_build.list_builds | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.list_builds.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.list_builds.js,samples/README.md) | +| Cloud_build.list_worker_pools | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.list_worker_pools.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.list_worker_pools.js,samples/README.md) | +| Cloud_build.receive_trigger_webhook | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.receive_trigger_webhook.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.receive_trigger_webhook.js,samples/README.md) | +| Cloud_build.retry_build | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.retry_build.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.retry_build.js,samples/README.md) | +| Cloud_build.run_build_trigger | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.run_build_trigger.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.run_build_trigger.js,samples/README.md) | +| Cloud_build.update_build_trigger | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.update_build_trigger.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.update_build_trigger.js,samples/README.md) | +| Cloud_build.update_worker_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.update_worker_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.update_worker_pool.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/quickstart.js,samples/README.md) | @@ -165,7 +182,7 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages] ## Contributing -Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-cloudbuild/blob/main/CONTRIBUTING.md). +Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md). Please note that this `README.md`, the `samples/README.md`, and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`) @@ -177,7 +194,7 @@ to its templates in Apache Version 2.0 -See [LICENSE](https://github.com/googleapis/nodejs-cloudbuild/blob/main/LICENSE) +See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE) [client-docs]: https://cloud.google.com/nodejs/docs/reference/cloudbuild/latest [product-docs]: https://cloud.google.com/cloud-build/docs/ diff --git a/packages/google-devtools-cloudbuild/package.json b/packages/google-devtools-cloudbuild/package.json index a7a3e0b02fec..c69d012a61be 100644 --- a/packages/google-devtools-cloudbuild/package.json +++ b/packages/google-devtools-cloudbuild/package.json @@ -1,5 +1,9 @@ { - "repository": "googleapis/nodejs-cloudbuild", + "repository": { + "type": "git", + "directory": "packages/google-devtools-cloudbuild", + "url": "https://github.com/googleapis/google-cloud-node.git" + }, "name": "@google-cloud/cloudbuild", "version": "3.2.0", "author": "Google LLC", @@ -49,8 +53,8 @@ "prepare": "npm run compile-protos && npm run compile", "pretest": "npm run compile", "test": "c8 mocha build/test", - "system-test": "c8 mocha --timeout=15000 system-test/*.js build/system-test/*.js", - "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", + "system-test": "npm run compile && c8 mocha build/system-test", + "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test", "predocs-test": "npm run docs", "docs-test": "linkinator docs", "prelint": "cd samples; npm link ../; npm install", @@ -62,5 +66,6 @@ }, "dependencies": { "google-gax": "^3.5.2" - } + }, + "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-devtools-cloudbuild" } diff --git a/packages/google-devtools-cloudbuild/samples/README.md b/packages/google-devtools-cloudbuild/samples/README.md index 3d8ad7ed0c64..819f22b2b870 100644 --- a/packages/google-devtools-cloudbuild/samples/README.md +++ b/packages/google-devtools-cloudbuild/samples/README.md @@ -2,7 +2,7 @@ [//]: # "To regenerate it, use `python -m synthtool`." Google Cloud Platform logo -# [Cloud Build: Node.js Samples](https://github.com/googleapis/nodejs-cloudbuild) +# [Cloud Build: Node.js Samples](https://github.com/googleapis/google-cloud-node) [![Open in Cloud Shell][shell_img]][shell_link] @@ -12,13 +12,30 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) - * [List Triggers.](#list-triggers.) + * [Cloud_build.approve_build](#cloud_build.approve_build) + * [Cloud_build.cancel_build](#cloud_build.cancel_build) + * [Cloud_build.create_build](#cloud_build.create_build) + * [Cloud_build.create_build_trigger](#cloud_build.create_build_trigger) + * [Cloud_build.create_worker_pool](#cloud_build.create_worker_pool) + * [Cloud_build.delete_build_trigger](#cloud_build.delete_build_trigger) + * [Cloud_build.delete_worker_pool](#cloud_build.delete_worker_pool) + * [Cloud_build.get_build](#cloud_build.get_build) + * [Cloud_build.get_build_trigger](#cloud_build.get_build_trigger) + * [Cloud_build.get_worker_pool](#cloud_build.get_worker_pool) + * [Cloud_build.list_build_triggers](#cloud_build.list_build_triggers) + * [Cloud_build.list_builds](#cloud_build.list_builds) + * [Cloud_build.list_worker_pools](#cloud_build.list_worker_pools) + * [Cloud_build.receive_trigger_webhook](#cloud_build.receive_trigger_webhook) + * [Cloud_build.retry_build](#cloud_build.retry_build) + * [Cloud_build.run_build_trigger](#cloud_build.run_build_trigger) + * [Cloud_build.update_build_trigger](#cloud_build.update_build_trigger) + * [Cloud_build.update_worker_pool](#cloud_build.update_worker_pool) * [Quickstart](#quickstart) ## Before you begin Before running the samples, make sure you've followed the steps outlined in -[Using the client library](https://github.com/googleapis/nodejs-cloudbuild#using-the-client-library). +[Using the client library](https://github.com/googleapis/google-cloud-node#using-the-client-library). `cd samples` @@ -30,18 +47,305 @@ Before running the samples, make sure you've followed the steps outlined in -### List Triggers. +### Cloud_build.approve_build -List available build triggers. +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.approve_build.js). -View the [source code](https://github.com/googleapis/nodejs-cloudbuild/blob/main/samples/listBuildTriggers.js). +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.approve_build.js,samples/README.md) -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloudbuild&page=editor&open_in_editor=samples/listBuildTriggers.js,samples/README.md) +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.approve_build.js` + + +----- + + + + +### Cloud_build.cancel_build + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.cancel_build.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.cancel_build.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.cancel_build.js` + + +----- + + + + +### Cloud_build.create_build + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.create_build.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.create_build.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.create_build.js` + + +----- + + + + +### Cloud_build.create_build_trigger + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.create_build_trigger.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.create_build_trigger.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.create_build_trigger.js` + + +----- + + + + +### Cloud_build.create_worker_pool + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.create_worker_pool.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.create_worker_pool.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.create_worker_pool.js` + + +----- + + + + +### Cloud_build.delete_build_trigger + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.delete_build_trigger.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.delete_build_trigger.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.delete_build_trigger.js` + + +----- + + + + +### Cloud_build.delete_worker_pool + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.delete_worker_pool.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.delete_worker_pool.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.delete_worker_pool.js` + + +----- + + + + +### Cloud_build.get_build + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.get_build.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.get_build.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.get_build.js` + + +----- + + + + +### Cloud_build.get_build_trigger + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.get_build_trigger.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.get_build_trigger.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.get_build_trigger.js` + + +----- + + + + +### Cloud_build.get_worker_pool + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.get_worker_pool.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.get_worker_pool.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.get_worker_pool.js` + + +----- + + + + +### Cloud_build.list_build_triggers + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.list_build_triggers.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.list_build_triggers.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.list_build_triggers.js` + + +----- + + + + +### Cloud_build.list_builds + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.list_builds.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.list_builds.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.list_builds.js` + + +----- + + + + +### Cloud_build.list_worker_pools + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.list_worker_pools.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.list_worker_pools.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.list_worker_pools.js` + + +----- + + + + +### Cloud_build.receive_trigger_webhook + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.receive_trigger_webhook.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.receive_trigger_webhook.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.receive_trigger_webhook.js` + + +----- + + + + +### Cloud_build.retry_build + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.retry_build.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.retry_build.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.retry_build.js` + + +----- + + + + +### Cloud_build.run_build_trigger + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.run_build_trigger.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.run_build_trigger.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.run_build_trigger.js` + + +----- + + + + +### Cloud_build.update_build_trigger + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.update_build_trigger.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.update_build_trigger.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.update_build_trigger.js` + + +----- + + + + +### Cloud_build.update_worker_pool + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cloud_build.update_worker_pool.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cloud_build.update_worker_pool.js,samples/README.md) __Usage:__ -`node list-build-triggers.js ` +`node /workspace/google-cloud-node/samples/generated/v1/cloud_build.update_worker_pool.js` ----- @@ -51,14 +355,14 @@ __Usage:__ ### Quickstart -View the [source code](https://github.com/googleapis/nodejs-cloudbuild/blob/main/samples/quickstart.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/quickstart.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloudbuild&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/quickstart.js,samples/README.md) __Usage:__ -`node samples/quickstart.js` +`node /workspace/google-cloud-node/samples/quickstart.js` @@ -66,5 +370,5 @@ __Usage:__ [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png -[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloudbuild&page=editor&open_in_editor=samples/README.md +[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=samples/README.md [product-docs]: https://cloud.google.com/cloud-build/docs/ diff --git a/packages/google-devtools-cloudbuild/src/index.ts b/packages/google-devtools-cloudbuild/src/index.ts index 878b23339290..76076bd0b89a 100644 --- a/packages/google-devtools-cloudbuild/src/index.ts +++ b/packages/google-devtools-cloudbuild/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/release-please-config.json b/release-please-config.json index ca8fb90627b9..a62023ed6d29 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -37,6 +37,7 @@ "packages/google-cloud-videointelligence": {}, "packages/google-container": {}, "packages/google-devtools-artifactregistry": {}, + "packages/google-devtools-cloudbuild": {}, "packages/google-iam": {}, "packages/google-maps-addressvalidation": {}, "packages/google-maps-routing": {}, @@ -49,4 +50,4 @@ } ], "release-type": "node" -} \ No newline at end of file +}