Skip to content

Commit

Permalink
chore: migrate to owl bot (#363)
Browse files Browse the repository at this point in the history
* chore: migrate to owl bot

* chore: copy files from googleapis-gen fb91803ccef5d7c695139b22788b309e2197856b

* chore: run the post processor
  • Loading branch information
SurferJeffAtGoogle authored Apr 20, 2021
1 parent 0997dd7 commit c972f76
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 111 deletions.
26 changes: 26 additions & 0 deletions packages/google-cloud-securitycenter/.github/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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/repo-automation-bots/owlbot-nodejs:latest


deep-remove-regex:
- /owl-bot-staging

deep-copy-regex:
- source: /google/cloud/securitycenter/(v.*)/.*-nodejs/(.*)
dest: /owl-bot-staging/$1/$2

begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b

17 changes: 9 additions & 8 deletions packages/google-cloud-securitycenter/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "security-center",
"name_pretty": "Google Cloud Security Command Center",
"product_documentation": "https://cloud.google.com/security-command-center",
"client_documentation": "https://googleapis.dev/nodejs/security-center/latest",
"issue_tracker": "https://issuetracker.google.com/savedsearches/559748",
"release_level": "ga",
"language": "nodejs",
"api_id": "securitycenter.googleapis.com",
"repo": "googleapis/nodejs-security-center",
"release_level": "ga",
"distribution_name": "@google-cloud/security-center",
"api_id": "securitycenter.googleapis.com",
"requires_billing": true
"default_version": "v1",
"name": "security-center",
"client_documentation": "https://googleapis.dev/nodejs/security-center/latest",
"requires_billing": true,
"name_pretty": "Google Cloud Security Command Center",
"issue_tracker": "https://issuetracker.google.com/savedsearches/559748",
"product_documentation": "https://cloud.google.com/security-command-center"
}
20 changes: 20 additions & 0 deletions packages/google-cloud-securitycenter/owlbot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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.

import synthtool.languages.node as node

node.owlbot_main(
staging_excludes=['package.json', 'README.md'],
templates_excludes=['.kokoro/samples-test.sh', '.kokoro/samples-test.sh']
)
8 changes: 4 additions & 4 deletions packages/google-cloud-securitycenter/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
// ** https://github.com/googleapis/synthtool **
// ** All changes to this file may be overwritten. **

import * as v1 from './v1';
import * as v1beta1 from './v1beta1';
import * as v1p1beta1 from './v1p1beta1';
import * as v1beta1 from './v1beta1';
import * as v1 from './v1';

const SecurityCenterClient = v1.SecurityCenterClient;
type SecurityCenterClient = v1.SecurityCenterClient;

export {v1, v1beta1, v1p1beta1, SecurityCenterClient};
export default {v1, v1beta1, v1p1beta1, SecurityCenterClient};
export {v1p1beta1, v1beta1, v1, SecurityCenterClient};
export default {v1p1beta1, v1beta1, v1, SecurityCenterClient};
import * as protos from '../protos/protos';
export {protos};
55 changes: 0 additions & 55 deletions packages/google-cloud-securitycenter/synth.metadata

This file was deleted.

44 changes: 0 additions & 44 deletions packages/google-cloud-securitycenter/synth.py

This file was deleted.

0 comments on commit c972f76

Please sign in to comment.