Skip to content

Commit

Permalink
Merge pull request #3409 from googleapis/nodejs-recommender-migration
Browse files Browse the repository at this point in the history
migrate code from googleapis/nodejs-recommender
  • Loading branch information
sofisl committed Oct 13, 2022
2 parents ff26491 + 20fb5f4 commit 3d21f04
Show file tree
Hide file tree
Showing 43 changed files with 37,017 additions and 0 deletions.
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"packages/google-cloud-language": "5.1.0",
"packages/google-cloud-oslogin": "4.0.2",
"packages/google-cloud-phishingprotection": "3.0.4",
"packages/google-cloud-recommender": "5.0.2",
"packages/google-cloud-redis": "3.1.3",
"packages/google-cloud-resourcemanager": "4.1.1",
"packages/google-cloud-security-publicca": "0.1.1",
Expand Down
23 changes: 23 additions & 0 deletions packages/google-cloud-recommender/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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.

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

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

begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b

7 changes: 7 additions & 0 deletions packages/google-cloud-recommender/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**/node_modules
**/coverage
test/fixtures
build/
docs/
protos/
samples/generated/
3 changes: 3 additions & 0 deletions packages/google-cloud-recommender/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./node_modules/gts"
}
4 changes: 4 additions & 0 deletions packages/google-cloud-recommender/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.ts text eol=lf
*.js text eol=lf
protos/* linguist-generated
**/api-extractor.json linguist-language=JSON-with-Comments
14 changes: 14 additions & 0 deletions packages/google-cloud-recommender/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
**/*.log
**/node_modules
.coverage
coverage
.nyc_output
docs/
out/
build/
system-test/secrets.js
system-test/*key.json
*.lock
.DS_Store
package-lock.json
__pycache__
55 changes: 55 additions & 0 deletions packages/google-cloud-recommender/.jsdoc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// 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
//
// https://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.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **

'use strict';

module.exports = {
opts: {
readme: './README.md',
package: './package.json',
template: './node_modules/jsdoc-fresh',
recurse: true,
verbose: true,
destination: './docs/'
},
plugins: [
'plugins/markdown',
'jsdoc-region-tag'
],
source: {
excludePattern: '(^|\\/|\\\\)[._]',
include: [
'build/src',
'protos'
],
includePattern: '\\.js$'
},
templates: {
copyright: 'Copyright 2021 Google LLC',
includeDate: false,
sourceFiles: false,
systemName: '@google-cloud/recommender',
theme: 'lumen',
default: {
outputSourceFiles: false
}
},
markdown: {
idInHeadings: true
}
};
29 changes: 29 additions & 0 deletions packages/google-cloud-recommender/.mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// 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.
// 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.
const config = {
"enable-source-maps": true,
"throw-deprecation": true,
"timeout": 10000,
"recursive": true
}
if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
delete config['throw-deprecation'];
}
if (process.env.MOCHA_REPORTER) {
config.reporter = process.env.MOCHA_REPORTER;
}
if (process.env.MOCHA_REPORTER_OUTPUT) {
config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
}
module.exports = config
24 changes: 24 additions & 0 deletions packages/google-cloud-recommender/.nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"report-dir": "./.coverage",
"reporter": ["text", "lcov"],
"exclude": [
"**/*-test",
"**/.coverage",
"**/apis",
"**/benchmark",
"**/conformance",
"**/docs",
"**/samples",
"**/scripts",
"**/protos",
"**/test",
"**/*.d.ts",
".jsdoc.js",
"**/.jsdoc.js",
"karma.conf.js",
"webpack-tests.config.js",
"webpack.config.js"
],
"exclude-after-remap": false,
"all": true
}
6 changes: 6 additions & 0 deletions packages/google-cloud-recommender/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/node_modules
**/coverage
test/fixtures
build/
docs/
protos/
17 changes: 17 additions & 0 deletions packages/google-cloud-recommender/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// 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.
// You may obtain a copy of the License at
//
// https://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.

module.exports = {
...require('gts/.prettierrc.json')
}
17 changes: 17 additions & 0 deletions packages/google-cloud-recommender/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"language": "nodejs",
"repo": "googleapis/google-cloud-node",
"name": "recommender",
"issue_tracker": "",
"default_version": "v1",
"api_id": "recommender.googleapis.com",
"distribution_name": "@google-cloud/recommender",
"requires_billing": true,
"product_documentation": "https://cloud.google.com/recommender/docs",
"codeowner_team": "@googleapis/ml-apis",
"name_pretty": "Recommender",
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/recommender/latest",
"release_level": "stable",
"api_shortname": "recommender",
"library_type": "GAPIC_AUTO"
}
Loading

0 comments on commit 3d21f04

Please sign in to comment.