-
Notifications
You must be signed in to change notification settings - Fork 1.7k
chore: add librarian integration for google-cloud-bigtable #16551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e1f39f8
chore: add librarian integration for google-cloud-bigtable
parthea 01a3f29
run nox -s format
parthea 8241dcc
run librarian generate for google-cloud-bigtable
parthea 45d6ab4
adjust formatting
parthea ab97072
address feedback
parthea b984329
lint
parthea fa62ff2
run nox -s generate_sync
parthea 6602218
add new line
parthea e73bc91
Address feedback
parthea 0d5c93c
update noxfile.py
parthea 334fabb
clean up
parthea dc088b6
lint
parthea File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
962 changes: 962 additions & 0 deletions
962
.librarian/generator-input/client-post-processing/bigtable-integration.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
81 changes: 81 additions & 0 deletions
81
.librarian/generator-input/packages/google-cloud-bigtable/.repo-metadata.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| { | ||
| "name": "bigtable", | ||
| "name_pretty": "Google Cloud Bigtable", | ||
| "api_description": "is Google's NoSQL Big Data database service. It's the\nsame database that powers many core Google services, including Search,\nAnalytics, Maps, and Gmail.", | ||
| "product_documentation": "https://cloud.google.com/bigtable", | ||
| "client_documentation": "https://cloud.google.com/python/docs/reference/bigtable/latest", | ||
| "issue_tracker": "https://issuetracker.google.com/savedsearches/559777", | ||
| "release_level": "stable", | ||
| "language": "python", | ||
| "library_type": "GAPIC_COMBO", | ||
| "repo": "googleapis/google-cloud-python", | ||
| "distribution_name": "google-cloud-bigtable", | ||
| "api_id": "bigtable.googleapis.com", | ||
| "requires_billing": true, | ||
| "samples": [ | ||
| { | ||
| "name": "Hello World in Cloud Bigtable", | ||
| "description": "Demonstrates how to connect to Cloud Bigtable and run some basic operations. More information available at: https://cloud.google.com/bigtable/docs/samples-python-hello", | ||
| "file": "main.py", | ||
| "runnable": true, | ||
| "custom_content": "<pre>usage: main.py [-h] [--table TABLE] project_id instance_id<br>Demonstrates how to connect to Cloud Bigtable and run some basic operations.<br>Prerequisites: - Create a Cloud Bigtable cluster.<br>https://cloud.google.com/bigtable/docs/creating-cluster - Set your Google<br>Application Default Credentials.<br>https://developers.google.com/identity/protocols/application-default-<br>credentials<br><br><br>positional arguments:<br> project_id Your Cloud Platform project ID.<br> instance_id ID of the Cloud Bigtable instance to connect to.<br><br><br>optional arguments:<br> -h, --help show this help message and exit<br> --table TABLE Table to create and destroy. (default: Hello-Bigtable)</pre>", | ||
| "override_path": "hello" | ||
| }, | ||
| { | ||
| "name": "Hello World using HappyBase", | ||
| "description": "This sample demonstrates using the Google Cloud Client Library HappyBase package, an implementation of the HappyBase API to connect to and interact with Cloud Bigtable. More information available at: https://cloud.google.com/bigtable/docs/samples-python-hello-happybase", | ||
| "file": "main.py", | ||
| "runnable": true, | ||
| "custom_content": "<pre>usage: main.py [-h] [--table TABLE] project_id instance_id<br>Demonstrates how to connect to Cloud Bigtable and run some basic operations.<br>Prerequisites: - Create a Cloud Bigtable cluster.<br>https://cloud.google.com/bigtable/docs/creating-cluster - Set your Google<br>Application Default Credentials.<br>https://developers.google.com/identity/protocols/application-default-<br>credentials<br><br><br>positional arguments:<br> project_id Your Cloud Platform project ID.<br> instance_id ID of the Cloud Bigtable instance to connect to.<br><br><br>optional arguments:<br> -h, --help show this help message and exit<br> --table TABLE Table to create and destroy. (default: Hello-Bigtable)</pre>", | ||
| "override_path": "hello_happybase" | ||
| }, | ||
| { | ||
| "name": "cbt Command Demonstration", | ||
| "description": "This page explains how to use the cbt command to connect to a Cloud Bigtable instance, perform basic administrative tasks, and read and write data in a table. More information about this quickstart is available at https://cloud.google.com/bigtable/docs/quickstart-cbt", | ||
| "file": "instanceadmin.py", | ||
| "runnable": true, | ||
| "custom_content": "<pre>usage: instanceadmin.py [-h] [run] [dev-instance] [del-instance] [add-cluster] [del-cluster] project_id instance_id cluster_id<br>Demonstrates how to connect to Cloud Bigtable and run some basic operations.<br>Prerequisites: - Create a Cloud Bigtable cluster.<br>https://cloud.google.com/bigtable/docs/creating-cluster - Set your Google<br>Application Default Credentials.<br>https://developers.google.com/identity/protocols/application-default-<br>credentials<br><br><br>positional arguments:<br> project_id Your Cloud Platform project ID.<br> instance_id ID of the Cloud Bigtable instance to connect to.<br><br><br>optional arguments:<br> -h, --help show this help message and exit<br> --table TABLE Table to create and destroy. (default: Hello-Bigtable)</pre>", | ||
| "override_path": "instanceadmin" | ||
| }, | ||
| { | ||
| "name": "Metric Scaler", | ||
| "description": "This sample demonstrates how to use Stackdriver Monitoring to scale Cloud Bigtable based on CPU usage.", | ||
| "file": "metricscaler.py", | ||
| "runnable": true, | ||
| "custom_content": "<pre>usage: metricscaler.py [-h] [--high_cpu_threshold HIGH_CPU_THRESHOLD] [--low_cpu_threshold LOW_CPU_THRESHOLD] [--short_sleep SHORT_SLEEP] [--long_sleep LONG_SLEEP] bigtable_instance bigtable_cluster<br>usage: metricscaler.py [-h] [--high_cpu_threshold HIGH_CPU_THRESHOLD] <br> [--low_cpu_threshold LOW_CPU_THRESHOLD] <br> [--short_sleep SHORT_SLEEP] [--long_sleep LONG_SLEEP] <br> bigtable_instance bigtable_cluster <br><br> <br>Scales Cloud Bigtable clusters based on CPU usage. <br><br> <br>positional arguments: <br> bigtable_instance ID of the Cloud Bigtable instance to connect to. <br> bigtable_cluster ID of the Cloud Bigtable cluster to connect to. <br><br> <br>optional arguments: <br> -h, --help show this help message and exit <br> --high_cpu_threshold HIGH_CPU_THRESHOLD <br> If Cloud Bigtable CPU usage is above this threshold, <br> scale up <br> --low_cpu_threshold LOW_CPU_THRESHOLD <br> If Cloud Bigtable CPU usage is below this threshold, <br> scale down <br> --short_sleep SHORT_SLEEP <br> How long to sleep in seconds between checking metrics <br> after no scale operation <br> --long_sleep LONG_SLEEP <br> How long to sleep in seconds between checking metrics <br> after a scaling operation</pre>", | ||
| "override_path": "metricscaler" | ||
| }, | ||
| { | ||
| "name": "Quickstart", | ||
| "description": "Demonstrates of Cloud Bigtable. This sample creates a Bigtable client, connects to an instance and then to a table, then closes the connection.", | ||
| "file": "main.py", | ||
| "runnable": true, | ||
| "custom_content": "<pre>usage: main.py [-h] [--table TABLE] project_id instance_id <br><br> <br>positional arguments: <br> project_id Your Cloud Platform project ID. <br> instance_id ID of the Cloud Bigtable instance to connect to. <br><br> <br>optional arguments: <br> -h, --help show this help message and exit <br> --table TABLE Existing table used in the quickstart. (default: my-table)</pre>", | ||
| "override_path": "quickstart" | ||
| }, | ||
| { | ||
| "name": "Quickstart using HappyBase", | ||
| "description": "Demonstrates of Cloud Bigtable using HappyBase. This sample creates a Bigtable client, connects to an instance and then to a table, then closes the connection.", | ||
| "file": "main.py", | ||
| "runnable": true, | ||
| "custom_content": "<pre>usage: main.py [-h] [--table TABLE] project_id instance_id<br>usage: main.py [-h] [--table TABLE] project_id instance_id <br><br> <br>positional arguments: <br> project_id Your Cloud Platform project ID. <br> instance_id ID of the Cloud Bigtable instance to connect to. <br><br> <br>optional arguments: <br> -h, --help show this help message and exit <br> --table TABLE Existing table used in the quickstart. (default: my-table)</code", | ||
| "override_path": "quickstart_happybase" | ||
| }, | ||
| { | ||
| "name": "Snippets", | ||
| "description": "This folder contains snippets for Python Cloud Bigtable.", | ||
| "override_path": "snippets" | ||
| }, | ||
| { | ||
| "name": "Table Admin", | ||
| "description": "Demonstrates how to connect to Cloud Bigtable and run some basic operations.", | ||
| "file": "tableadmin.py", | ||
| "runnable": true, | ||
| "custom_content": "<pre>usage: tableadmin.py [-h] [run] [delete] [--table TABLE] project_id instance_id <br><br> <br>Demonstrates how to connect to Cloud Bigtable and run some basic operations. <br>Prerequisites: - Create a Cloud Bigtable cluster. <br>https://cloud.google.com/bigtable/docs/creating-cluster - Set your Google <br>Application Default Credentials. <br>https://developers.google.com/identity/protocols/application-default- <br>credentials <br><br> <br>positional arguments: <br> project_id Your Cloud Platform project ID. <br> instance_id ID of the Cloud Bigtable instance to connect to. <br><br> <br>optional arguments: <br> -h, --help show this help message and exit <br> --table TABLE Table to create and destroy. (default: Hello-Bigtable)</pre>", | ||
| "override_path": "tableadmin" | ||
| } | ||
| ], | ||
| "default_version": "v2", | ||
| "codeowner_team": "@googleapis/api-bigtable @googleapis/api-bigtable-partners", | ||
| "api_shortname": "bigtable" | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,35 +1,13 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # | ||
| # Copyright 2020 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. | ||
|
|
||
| # Generated by synthtool. DO NOT EDIT! | ||
| [run] | ||
| branch = True | ||
| omit = | ||
| google/cloud/bigtable_admin/__init__.py | ||
| google/cloud/bigtable_admin/gapic_version.py | ||
|
|
||
| [report] | ||
| fail_under = 99 | ||
| show_missing = True | ||
| omit = | ||
| google/cloud/bigtable/__init__.py | ||
| google/cloud/bigtable/gapic_version.py | ||
| exclude_lines = | ||
| # Re-enable the standard pragma | ||
| pragma: NO COVER | ||
| # Ignore debug-only repr | ||
| def __repr__ | ||
| # Ignore abstract methods | ||
| raise NotImplementedError | ||
| omit = | ||
| */site-packages/*.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,20 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # | ||
| # Copyright 2024 Google LLC | ||
| # Copyright 2025 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 | ||
| # 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. | ||
|
|
||
| # Generated by synthtool. DO NOT EDIT! | ||
| # | ||
| include README.rst LICENSE | ||
| recursive-include google *.json *.proto py.typed | ||
| recursive-include google *.py *.pyi *.json *.proto py.typed | ||
| recursive-include tests * | ||
| global-exclude *.py[co] | ||
| global-exclude __pycache__ | ||
|
|
||
| # Exclude scripts for samples readmegen | ||
| prune scripts/readme-gen |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.