Skip to content

Commit e7f3dbe

Browse files
chore: migrate to owl bot (#886)
* chore: migrate to owl bot * chore: copy files from googleapis-gen fb91803ccef5d7c695139b22788b309e2197856b * chore: run the post processor * 🦉 Updates from OwlBot Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent ef41033 commit e7f3dbe

File tree

5 files changed

+68
-127
lines changed

5 files changed

+68
-127
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
docker:
15+
image: gcr.io/repo-automation-bots/owlbot-nodejs:latest
16+
17+
18+
deep-remove-regex:
19+
- /owl-bot-staging
20+
21+
deep-copy-regex:
22+
- source: /google/cloud/vision/(v.*)/.*-nodejs/(.*)
23+
dest: /owl-bot-staging/$1/$2
24+
25+
begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b
26+
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
2-
"name": "vision",
3-
"name_pretty": "Google Cloud Vision API",
4-
"product_documentation": "https://cloud.google.com/vision",
5-
"client_documentation": "https://googleapis.dev/nodejs/vision/latest",
62
"issue_tracker": "https://issuetracker.google.com/savedsearches/559765",
7-
"release_level": "ga",
8-
"language": "nodejs",
9-
"repo": "googleapis/nodejs-vision",
103
"distribution_name": "@google-cloud/vision",
4+
"product_documentation": "https://cloud.google.com/vision",
115
"api_id": "vision.googleapis.com",
6+
"client_documentation": "https://googleapis.dev/nodejs/vision/latest",
7+
"repo": "googleapis/nodejs-vision",
8+
"release_level": "ga",
129
"requires_billing": true,
13-
"codeowner_team": "@googleapis/ml-apis"
10+
"name_pretty": "Google Cloud Vision API",
11+
"name": "vision",
12+
"codeowner_team": "@googleapis/ml-apis",
13+
"default_version": "v1p4beta1",
14+
"language": "nodejs"
1415
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright 2018 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
"""This script is used to synthesize generated parts of this library."""
16+
17+
import synthtool as s
18+
import synthtool.languages.node as node
19+
from pathlib import Path
20+
21+
def patch(library: Path):
22+
client_file = library / "src/*/image_annotator_client.ts"
23+
s.replace(client_file, '\Z',
24+
'import {FeaturesMethod} from \'../helpers\';\n' +
25+
'// eslint-disable-next-line @typescript-eslint/no-empty-interface\n' +
26+
'export interface ImageAnnotatorClient extends FeaturesMethod {}\n'
27+
)
28+
29+
node.owlbot_main(
30+
staging_excludes=['src/index.ts', 'package.json'],
31+
templates_excludes=['src/index.ts'],
32+
patch_staging=patch
33+
)

packages/google-cloud-vision/synth.metadata

Lines changed: 0 additions & 73 deletions
This file was deleted.

packages/google-cloud-vision/synth.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)