diff --git a/README.md b/README.md index c482207895a..c6f9d175d4f 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,6 @@ applications that interact with individual Google Cloud services: | [Document AI](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-documentai) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/documentai)](https://npm.im/@google-cloud/documentai) | | [Document AI Warehouse](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-contentwarehouse) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/contentwarehouse)](https://npm.im/@google-cloud/contentwarehouse) | | [Domains](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-domains) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/domains)](https://npm.im/@google-cloud/domains) | -| [Error Reporting](https://github.com/googleapis/nodejs-error-reporting) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/error-reporting)](https://npm.im/@google-cloud/error-reporting) | | [Essential Contacts API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-essentialcontacts) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/essential-contacts)](https://npm.im/@google-cloud/essential-contacts) | | [Eventarc](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-eventarc) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/eventarc)](https://npm.im/@google-cloud/eventarc) | | [Eventarc Publishing API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-eventarc-publishing) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/eventarc-publishing)](https://npm.im/@google-cloud/eventarc-publishing) | @@ -187,6 +186,7 @@ applications that interact with individual Google Cloud services: | [Device Streaming API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-devicestreaming) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/devicestreaming)](https://npm.im/@google-cloud/devicestreaming) | | [Financial Services API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-financialservices) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/financialservices)](https://npm.im/@google-cloud/financialservices) | | [GDC Hardware Management API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-gdchardwaremanagement) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/gdchardwaremanagement)](https://npm.im/@google-cloud/gdchardwaremanagement) | +| [Gemini Enterprise for Customer Experience API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-ces) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/ces)](https://npm.im/@google-cloud/ces) | | [Generative Language API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-ai-generativelanguage) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-ai/generativelanguage)](https://npm.im/@google-ai/generativelanguage) | | [GKE Connect Gateway](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-gkeconnect-gateway) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/gke-connect-gateway)](https://npm.im/@google-cloud/gke-connect-gateway) | | [GKE Recommender API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-gkerecommender) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/gkerecommender)](https://npm.im/@google-cloud/gkerecommender) | @@ -227,6 +227,8 @@ applications that interact with individual Google Cloud services: | [Solar API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-solar) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@googlemaps/solar)](https://npm.im/@googlemaps/solar) | | [Storage Batch Operations API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-storagebatchoperations) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/storagebatchoperations)](https://npm.im/@google-cloud/storagebatchoperations) | | [Vector Search API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-vectorsearch) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/vectorsearch)](https://npm.im/@google-cloud/vectorsearch) | +| [Vision AI API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-visionai) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/visionai)](https://npm.im/@google-cloud/visionai) | +| [Workload Manager API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-workloadmanager) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/workloadmanager)](https://npm.im/@google-cloud/workloadmanager) | If the service is not listed above, [google-api-nodejs-client](https://github.com/googleapis/google-api-nodejs-client) interfaces diff --git a/handwritten/bigquery/owlbot.py b/handwritten/bigquery/owlbot.py index 8a8ba78a835..0461dcbd705 100644 --- a/handwritten/bigquery/owlbot.py +++ b/handwritten/bigquery/owlbot.py @@ -17,13 +17,8 @@ import synthtool.languages.node_mono_repo as node from synthtool import shell -node.owlbot_main(relative_dir="handwritten/bigquery", - templates_excludes=[ - '.github/bug-report.md', - '.github/release-please.yml', - '.github/workflows/ci.yaml', - ] -) +node.owlbot_main(relative_dir="handwritten/bigquery") # Regenerate Discovery types. -shell.run(('npm','run','types')) +shell.run(('npm','install'), cwd='handwritten/bigquery') +shell.run(('npm','run','types'), cwd='handwritten/bigquery') diff --git a/handwritten/cloud-profiler/owlbot.py b/handwritten/cloud-profiler/owlbot.py index 47859bd630a..9a069345e4b 100644 --- a/handwritten/cloud-profiler/owlbot.py +++ b/handwritten/cloud-profiler/owlbot.py @@ -14,5 +14,4 @@ import synthtool.languages.node_mono_repo as node -node.owlbot_main(relative_dir="handwritten/cloud-profiler",templates_excludes=[".github/sync-repo-settings.yaml", - ".github/workflows/ci.yaml"]) +node.owlbot_main(relative_dir="handwritten/cloud-profiler") diff --git a/handwritten/datastore/owlbot.py b/handwritten/datastore/owlbot.py index a6af6e71f31..f5fb0c459cb 100644 --- a/handwritten/datastore/owlbot.py +++ b/handwritten/datastore/owlbot.py @@ -23,7 +23,7 @@ logging.basicConfig(level=logging.DEBUG) -staging = Path("owl-bot-staging") +staging = Path("owl-bot-staging/datastore") if staging.is_dir(): logging.info(f"Copying files from staging directory ${staging}.") @@ -32,20 +32,20 @@ for version in ['v1']: library = staging / version _tracked_paths.add(library) - s.copy([library],excludes=[ + s.copy([library], destination="handwritten/datastore", excludes=[ 'package.json', 'README.md', 'src/index.ts', 'src/v1/index.ts']) # Copy the admin library. for version in ['v1']: library = staging / 'admin' / version _tracked_paths.add(library) - s.copy([library],excludes=[ + s.copy([library], destination="handwritten/datastore", excludes=[ 'package.json', 'README.md', 'src/index.ts', 'src/v1/index.ts', 'tsconfig.json', 'tslint.json', 'system-test/fixtures/sample/src/index.ts', 'system-test/fixtures/sample/src/index.js', '.jsdoc.js', 'webpack.config.js']) # Patch the code. - system_test_files = ['system-test/fixtures/sample/src/index.ts', 'system-test/fixtures/sample/src/index.js'] + system_test_files = ['handwritten/datastore/system-test/fixtures/sample/src/index.ts', 'handwritten/datastore/system-test/fixtures/sample/src/index.js'] for file in system_test_files: s.replace(file, 'DatastoreClient', 'Datastore') s.replace(file, 'client.close', '// client.close'); # does not work with the manual layer @@ -54,7 +54,7 @@ shutil.rmtree(staging) common_templates = gcp.CommonTemplates() -templates = common_templates.node_library(source_location="build/src") -s.copy(templates) +templates = common_templates.node_mono_repo_library(source_location="build/src") +s.copy(templates, destination="handwritten/datastore") -node.postprocess_gapic_library_hermetic() +node.postprocess_gapic_library_hermetic(relative_dir="handwritten/datastore") diff --git a/handwritten/logging-bunyan/owlbot.py b/handwritten/logging-bunyan/owlbot.py index 3d2b1f5cb8c..6cf5632e46f 100644 --- a/handwritten/logging-bunyan/owlbot.py +++ b/handwritten/logging-bunyan/owlbot.py @@ -22,14 +22,14 @@ common_templates = gcp.CommonTemplates() -templates = common_templates.node_library(source_location='build/src') -s.move(templates, excludes=[ +templates = common_templates.node_mono_repo_library(relative_dir="handwritten/logging-bunyan", source_location='build/src') +s.move(templates, relative_dir="handwritten/logging-bunyan", excludes=[ ".github/auto-label.yaml", ".github/release-please.yml", ".github/CODEOWNERS", ".github/sync-repo-settings.yaml", ]) -node.fix() +node.fix_hermetic(relative_dir="handwritten/logging-bunyan") # -------------------------------------------------------------------------- # Modify test configs @@ -40,6 +40,7 @@ ".kokoro/common_env_vars.cfg", ".kokoro/common.cfg", merge=lambda src, dst, _, : f"{dst}\n{src}", + relative_dir="handwritten/logging-bunyan", ) for path, subdirs, files in os.walk(f".kokoro/continuous"): for name in files: @@ -49,4 +50,5 @@ ".kokoro/common_env_vars.cfg", file_path, merge=lambda src, dst, _, : f"{dst}\n{src}", + relative_dir="handwritten/logging-bunyan", ) diff --git a/handwritten/logging-winston/owlbot.py b/handwritten/logging-winston/owlbot.py index a92b1acb9cb..d508c22e3e9 100644 --- a/handwritten/logging-winston/owlbot.py +++ b/handwritten/logging-winston/owlbot.py @@ -21,8 +21,8 @@ logging.basicConfig(level=logging.DEBUG) common_templates = gcp.CommonTemplates() -templates = common_templates.node_library() -s.copy(templates, excludes=[ +templates = common_templates.node_mono_repo_library(relative_dir="handwritten/logging-winston") +s.copy(templates, destination="handwritten/logging-winston", excludes=[ ".github/auto-label.yaml", ".github/release-please.yml", ".github/CODEOWNERS", @@ -30,8 +30,7 @@ ".github/workflows/ci.yaml", ".kokoro" ]) -node.fix() - +node.fix_hermetic(relative_dir="handwritten/logging-winston") # -------------------------------------------------------------------------- # Modify test configs @@ -42,6 +41,7 @@ ".kokoro/common_env_vars.cfg", ".kokoro/common.cfg", merge=lambda src, dst, _, : f"{dst}\n{src}", + relative_dir="handwritten/logging-winston" ) for path, subdirs, files in os.walk(f".kokoro/continuous"): for name in files: @@ -51,4 +51,5 @@ ".kokoro/common_env_vars.cfg", file_path, merge=lambda src, dst, _, : f"{dst}\n{src}", + relative_dir="handwritten/logging-winston" )