Skip to content

Commit

Permalink
build: add release-please config, fix owlbot-config
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl committed Nov 11, 2022
1 parent 1681a10 commit e0e2ae8
Show file tree
Hide file tree
Showing 10 changed files with 146 additions and 27 deletions.
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"packages/gapic-node-templating": "0.0.0",
"packages/google-api-apikeys": "0.1.3",
"packages/google-api-servicecontrol": "2.0.3",
"packages/google-cloud-batch": "0.3.2",
"packages/google-cloud-beyondcorp-appconnections": "0.2.3",
"packages/google-cloud-beyondcorp-appconnectors": "0.3.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/api/servicecontrol/(.*)/.*-nodejs/(.*)
dest: /owl-bot-staging/$1/$2
- source: /google/api/servicecontrol/(.*)/.*-nodejs
dest: /owl-bot-staging/google-api-servicecontrol/$1

begin-after-commit-hash: ef7685951dedbb18bce99dcbc0dfd8bdac0fec86

2 changes: 1 addition & 1 deletion packages/google-api-servicecontrol/.mocharc.js
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/google-api-servicecontrol/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions packages/google-api-servicecontrol/.repo-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"language": "nodejs",
"product_documentation": "https://cloud.google.com/service-infrastructure/docs/overview/",
"default_version": "v1",
"issue_tracker": "https://github.com/googleapis/nodejs-service-control/issues",
"issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
"name_pretty": "Service Control API",
"repo": "googleapis/nodejs-service-control",
"repo": "googleapis/google-cloud-node",
"api_shortname": "servicecontrol",
"library_type": "GAPIC_AUTO"
}
20 changes: 13 additions & 7 deletions packages/google-api-servicecontrol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[//]: # "To regenerate it, use `python -m synthtool`."
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>

# [Service Control API: Node.js Client](https://github.com/googleapis/nodejs-service-control)
# [Service Control API: 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/service-control.svg)](https://www.npmjs.org/package/@google-cloud/service-control)
Expand All @@ -14,11 +14,11 @@ Service control client for Node.js


A comprehensive list of changes in each version may be found in
[the CHANGELOG](https://github.com/googleapis/nodejs-service-control/blob/main/CHANGELOG.md).
[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-api-servicecontrol/CHANGELOG.md).

* [Service Control API Node.js Client API Reference][client-docs]
* [Service Control API Documentation][product-docs]
* [github.com/googleapis/nodejs-service-control](https://github.com/googleapis/nodejs-service-control)
* [github.com/googleapis/google-cloud-node/packages/google-api-servicecontrol](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-api-servicecontrol)

Read more about the client libraries for Cloud APIs, including the older
Google APIs Client Libraries, in [Client Libraries Explained][explained].
Expand Down Expand Up @@ -81,11 +81,17 @@ reportOperationResults();

## Samples

Samples are in the [`samples/`](https://github.com/googleapis/nodejs-service-control/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 |
| --------------------------- | --------------------------------- | ------ |
| Quickstart | [source code](https://github.com/googleapis/nodejs-service-control/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-service-control&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
| Quota_controller.allocate_quota | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/quota_controller.allocate_quota.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/quota_controller.allocate_quota.js,samples/README.md) |
| Service_controller.check | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/service_controller.check.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/service_controller.check.js,samples/README.md) |
| Service_controller.report | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/service_controller.report.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/service_controller.report.js,samples/README.md) |
| Service_controller.check | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/service_controller.check.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/v2/service_controller.check.js,samples/README.md) |
| Service_controller.report | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/service_controller.report.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/v2/service_controller.report.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) |
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/test/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/test/quickstart.js,samples/README.md) |



Expand Down Expand Up @@ -135,7 +141,7 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages]

## Contributing

Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-service-control/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`)
Expand All @@ -147,7 +153,7 @@ to its templates in

Apache Version 2.0

See [LICENSE](https://github.com/googleapis/nodejs-service-control/blob/main/LICENSE)
See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)

[client-docs]: https://cloud.google.com/nodejs/docs/reference/service-control/latest
[product-docs]: https://cloud.google.com/service-infrastructure/docs/overview/
Expand Down
13 changes: 9 additions & 4 deletions packages/google-api-servicecontrol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"name": "@google-cloud/service-control",
"version": "2.0.3",
"description": "Service control client for Node.js",
"repository": "googleapis/nodejs-service-control",
"repository": {
"type": "git",
"directory": "packages/google-api-servicecontrol",
"url": "https://github.com/googleapis/google-cloud-node.git"
},
"license": "Apache-2.0",
"author": "Google LLC",
"main": "build/src/index.js",
Expand Down Expand Up @@ -34,9 +38,9 @@
"fix": "gts fix",
"lint": "gts check",
"prepare": "npm run compile-protos && npm run compile",
"system-test": "c8 mocha build/system-test",
"system-test": "npm run compile && c8 mocha build/system-test",
"test": "c8 mocha build/test",
"samples-test": "cd samples/ && npm link ../ && npm test",
"samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
"prelint": "cd samples; npm link ../; npm i"
},
"dependencies": {
Expand All @@ -63,5 +67,6 @@
},
"engines": {
"node": ">=12.0.0"
}
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-api-servicecontrol"
}
120 changes: 114 additions & 6 deletions packages/google-api-servicecontrol/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[//]: # "To regenerate it, use `python -m synthtool`."
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>

# [Service Control API: Node.js Samples](https://github.com/googleapis/nodejs-service-control)
# [Service Control API: Node.js Samples](https://github.com/googleapis/google-cloud-node)

[![Open in Cloud Shell][shell_img]][shell_link]

Expand All @@ -12,12 +12,18 @@

* [Before you begin](#before-you-begin)
* [Samples](#samples)
* [Quota_controller.allocate_quota](#quota_controller.allocate_quota)
* [Service_controller.check](#service_controller.check)
* [Service_controller.report](#service_controller.report)
* [Service_controller.check](#service_controller.check)
* [Service_controller.report](#service_controller.report)
* [Quickstart](#quickstart)
* [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-service-control#using-the-client-library).
[Using the client library](https://github.com/googleapis/google-cloud-node#using-the-client-library).

`cd samples`

Expand All @@ -29,22 +35,124 @@ Before running the samples, make sure you've followed the steps outlined in



### Quota_controller.allocate_quota

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/quota_controller.allocate_quota.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/quota_controller.allocate_quota.js,samples/README.md)

__Usage:__


`node /workspace/google-cloud-node/samples/generated/v1/quota_controller.allocate_quota.js`


-----




### Service_controller.check

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/service_controller.check.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/service_controller.check.js,samples/README.md)

__Usage:__


`node /workspace/google-cloud-node/samples/generated/v1/service_controller.check.js`


-----




### Service_controller.report

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/service_controller.report.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/service_controller.report.js,samples/README.md)

__Usage:__


`node /workspace/google-cloud-node/samples/generated/v1/service_controller.report.js`


-----




### Service_controller.check

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/service_controller.check.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/v2/service_controller.check.js,samples/README.md)

__Usage:__


`node /workspace/google-cloud-node/samples/generated/v2/service_controller.check.js`


-----




### Service_controller.report

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v2/service_controller.report.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/v2/service_controller.report.js,samples/README.md)

__Usage:__


`node /workspace/google-cloud-node/samples/generated/v2/service_controller.report.js`


-----




### Quickstart

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/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/quickstart.js,samples/README.md)

__Usage:__


`node /workspace/google-cloud-node/samples/quickstart.js`


-----




### Quickstart

View the [source code](https://github.com/googleapis/nodejs-service-control/blob/main/samples/quickstart.js).
View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/test/quickstart.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-service-control&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/test/quickstart.js,samples/README.md)

__Usage:__


`node samples/quickstart.js`
`node /workspace/google-cloud-node/samples/test/quickstart.js`






[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-service-control&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/service-infrastructure/docs/overview/
2 changes: 1 addition & 1 deletion packages/google-api-servicecontrol/src/index.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 2 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"initial-version": "0.1.0",
"packages": {
"packages/google-api-apikeys": {},
"packages/google-api-servicecontrol": {},
"packages/google-cloud-batch": {},
"packages/google-cloud-beyondcorp-appconnections": {},
"packages/google-cloud-beyondcorp-appconnectors": {},
Expand Down Expand Up @@ -49,4 +50,4 @@
}
],
"release-type": "node"
}
}

0 comments on commit e0e2ae8

Please sign in to comment.