Skip to content

Commit 6cb5af5

Browse files
authored
chore: add librarian integration for google-cloud-bigtable (#16551)
Fixes #16494
1 parent 485b03a commit 6cb5af5

File tree

325 files changed

+6049
-4155
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

325 files changed

+6049
-4155
lines changed

.librarian/generator-input/client-post-processing/bigtable-integration.yaml

Lines changed: 965 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"name": "bigtable",
3+
"name_pretty": "Google Cloud Bigtable",
4+
"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.",
5+
"product_documentation": "https://cloud.google.com/bigtable",
6+
"client_documentation": "https://cloud.google.com/python/docs/reference/bigtable/latest",
7+
"issue_tracker": "https://issuetracker.google.com/savedsearches/559777",
8+
"release_level": "stable",
9+
"language": "python",
10+
"library_type": "GAPIC_COMBO",
11+
"repo": "googleapis/google-cloud-python",
12+
"distribution_name": "google-cloud-bigtable",
13+
"api_id": "bigtable.googleapis.com",
14+
"requires_billing": true,
15+
"samples": [
16+
{
17+
"name": "Hello World in Cloud Bigtable",
18+
"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",
19+
"file": "main.py",
20+
"runnable": true,
21+
"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>&nbsp; project_id &nbsp; &nbsp; Your Cloud Platform project ID.<br>&nbsp; instance_id &nbsp; &nbsp;ID of the Cloud Bigtable instance to connect to.<br><br><br>optional arguments:<br>&nbsp; -h, --help &nbsp; &nbsp; show this help message and exit<br>&nbsp; --table TABLE &nbsp;Table to create and destroy. (default: Hello-Bigtable)</pre>",
22+
"override_path": "hello"
23+
},
24+
{
25+
"name": "Hello World using HappyBase",
26+
"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",
27+
"file": "main.py",
28+
"runnable": true,
29+
"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>&nbsp; project_id &nbsp; &nbsp; Your Cloud Platform project ID.<br>&nbsp; instance_id &nbsp; &nbsp;ID of the Cloud Bigtable instance to connect to.<br><br><br>optional arguments:<br>&nbsp; -h, --help &nbsp; &nbsp; show this help message and exit<br>&nbsp; --table TABLE &nbsp;Table to create and destroy. (default: Hello-Bigtable)</pre>",
30+
"override_path": "hello_happybase"
31+
},
32+
{
33+
"name": "cbt Command Demonstration",
34+
"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",
35+
"file": "instanceadmin.py",
36+
"runnable": true,
37+
"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>&nbsp; project_id &nbsp; &nbsp; Your Cloud Platform project ID.<br>&nbsp; instance_id &nbsp; &nbsp;ID of the Cloud Bigtable instance to connect to.<br><br><br>optional arguments:<br>&nbsp; -h, --help &nbsp; &nbsp; show this help message and exit<br>&nbsp; --table TABLE &nbsp;Table to create and destroy. (default: Hello-Bigtable)</pre>",
38+
"override_path": "instanceadmin"
39+
},
40+
{
41+
"name": "Metric Scaler",
42+
"description": "This sample demonstrates how to use Stackdriver Monitoring to scale Cloud Bigtable based on CPU usage.",
43+
"file": "metricscaler.py",
44+
"runnable": true,
45+
"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>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[--low_cpu_threshold LOW_CPU_THRESHOLD] <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[--short_sleep SHORT_SLEEP] [--long_sleep LONG_SLEEP] <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bigtable_instance bigtable_cluster <br><br> <br>Scales Cloud Bigtable clusters based on CPU usage. <br><br> <br>positional arguments: <br>&nbsp; bigtable_instance &nbsp; &nbsp; ID of the Cloud Bigtable instance to connect to. <br>&nbsp; bigtable_cluster &nbsp; &nbsp; &nbsp;ID of the Cloud Bigtable cluster to connect to. <br><br> <br>optional arguments: <br>&nbsp; -h, --help &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;show this help message and exit <br>&nbsp; --high_cpu_threshold HIGH_CPU_THRESHOLD <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Cloud Bigtable CPU usage is above this threshold, <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; scale up <br>&nbsp; --low_cpu_threshold LOW_CPU_THRESHOLD <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Cloud Bigtable CPU usage is below this threshold, <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; scale down <br>&nbsp; --short_sleep SHORT_SLEEP <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; How long to sleep in seconds between checking metrics <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; after no scale operation <br>&nbsp; --long_sleep LONG_SLEEP <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; How long to sleep in seconds between checking metrics <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; after a scaling operation</pre>",
46+
"override_path": "metricscaler"
47+
},
48+
{
49+
"name": "Quickstart",
50+
"description": "Demonstrates of Cloud Bigtable. This sample creates a Bigtable client, connects to an instance and then to a table, then closes the connection.",
51+
"file": "main.py",
52+
"runnable": true,
53+
"custom_content": "<pre>usage: main.py [-h] [--table TABLE] project_id instance_id <br><br> <br>positional arguments: <br>&nbsp; project_id &nbsp; &nbsp; Your Cloud Platform project ID. <br>&nbsp; instance_id &nbsp; &nbsp;ID of the Cloud Bigtable instance to connect to. <br><br> <br>optional arguments: <br>&nbsp; -h, --help &nbsp; &nbsp; show this help message and exit <br>&nbsp; --table TABLE &nbsp;Existing table used in the quickstart. (default: my-table)</pre>",
54+
"override_path": "quickstart"
55+
},
56+
{
57+
"name": "Quickstart using HappyBase",
58+
"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.",
59+
"file": "main.py",
60+
"runnable": true,
61+
"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>&nbsp; project_id &nbsp; &nbsp; Your Cloud Platform project ID. <br>&nbsp; instance_id &nbsp; &nbsp;ID of the Cloud Bigtable instance to connect to. <br><br> <br>optional arguments: <br>&nbsp; -h, --help &nbsp; &nbsp; show this help message and exit <br>&nbsp; --table TABLE &nbsp;Existing table used in the quickstart. (default: my-table)</pre>",
62+
"override_path": "quickstart_happybase"
63+
},
64+
{
65+
"name": "Snippets",
66+
"description": "This folder contains snippets for Python Cloud Bigtable.",
67+
"override_path": "snippets"
68+
},
69+
{
70+
"name": "Table Admin",
71+
"description": "Demonstrates how to connect to Cloud Bigtable and run some basic operations.",
72+
"file": "tableadmin.py",
73+
"runnable": true,
74+
"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>&nbsp; project_id &nbsp; &nbsp; Your Cloud Platform project ID. <br>&nbsp; instance_id &nbsp; &nbsp;ID of the Cloud Bigtable instance to connect to. <br><br> <br>optional arguments: <br>&nbsp; -h, --help &nbsp; &nbsp; show this help message and exit <br>&nbsp; --table TABLE &nbsp;Table to create and destroy. (default: Hello-Bigtable)</pre>",
75+
"override_path": "tableadmin"
76+
}
77+
],
78+
"default_version": "v2",
79+
"codeowner_team": "@googleapis/api-bigtable @googleapis/api-bigtable-partners",
80+
"api_shortname": "bigtable"
81+
}

.librarian/state.yaml

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -974,12 +974,50 @@ libraries:
974974
tag_format: '{id}-v{version}'
975975
- id: google-cloud-bigtable
976976
version: 2.36.0
977-
last_generated_commit: ""
978-
apis: []
977+
last_generated_commit: a6cbf809c4c165e618ee23a059442af90a80a0f5
978+
apis:
979+
- path: google/bigtable/admin/v2
980+
service_config: bigtableadmin_v2.yaml
981+
- path: google/bigtable/v2
982+
service_config: bigtable_v2.yaml
979983
source_roots:
980984
- packages/google-cloud-bigtable
981-
preserve_regex: []
982-
remove_regex: []
985+
preserve_regex:
986+
- packages/google-cloud-bigtable/CHANGELOG.md
987+
- docs/CHANGELOG.md
988+
remove_regex:
989+
- ^packages/google-cloud-bigtable/.coveragerc
990+
- ^packages/google-cloud-bigtable/.flake8
991+
- ^packages/google-cloud-bigtable/.repo-metadata.json
992+
- ^packages/google-cloud-bigtable/LICENSE
993+
- ^packages/google-cloud-bigtable/MANIFEST.in
994+
- ^packages/google-cloud-bigtable/README.rst
995+
- ^packages/google-cloud-bigtable/mypy.ini
996+
- ^packages/google-cloud-bigtable/noxfile.py
997+
- ^packages/google-cloud-bigtable/setup.py
998+
- ^packages/google-cloud-bigtable/docs/conf.py
999+
- ^packages/google-cloud-bigtable/docs/index.rst
1000+
- ^packages/google-cloud-bigtable/docs/multiprocessing.rst
1001+
- ^packages/google-cloud-bigtable/docs/summary_overview.md
1002+
- ^packages/google-cloud-bigtable/docs/README.rst
1003+
- ^packages/google-cloud-bigtable/docs/_static/custom.css
1004+
- ^packages/google-cloud-bigtable/docs/_templates
1005+
- ^packages/google-cloud-bigtable/docs/bigtable
1006+
- ^packages/google-cloud-bigtable/google/cloud/bigtable/__init__.py
1007+
- ^packages/google-cloud-bigtable/google/cloud/bigtable/gapic_version.py
1008+
- ^packages/google-cloud-bigtable/google/cloud/bigtable/py.typed
1009+
- ^packages/google-cloud-bigtable/google/cloud/bigtable_v2
1010+
- ^packages/google-cloud-bigtable/google/cloud/bigtable_admin/
1011+
- ^packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/services
1012+
- ^packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/types
1013+
- ^packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/__init__.py
1014+
- ^packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/gapic
1015+
- ^packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/py.typed
1016+
- ^packages/google-cloud-bigtable/samples/generated_samples
1017+
- ^packages/google-cloud-bigtable/testing
1018+
- ^packages/google-cloud-bigtable/tests/__init__.py
1019+
- ^packages/google-cloud-bigtable/tests/unit/__init__.py
1020+
- ^packages/google-cloud-bigtable/tests/unit/gapic
9831021
tag_format: '{id}-v{version}'
9841022
- id: google-cloud-billing
9851023
version: 1.19.0
Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,13 @@
1-
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright 2020 Google LLC
4-
#
5-
# Licensed under the Apache License, Version 2.0 (the "License");
6-
# you may not use this file except in compliance with the License.
7-
# You may obtain a copy of the License at
8-
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
# Unless required by applicable law or agreed to in writing, software
12-
# distributed under the License is distributed on an "AS IS" BASIS,
13-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
# See the License for the specific language governing permissions and
15-
# limitations under the License.
16-
17-
# Generated by synthtool. DO NOT EDIT!
181
[run]
192
branch = True
20-
omit =
21-
google/cloud/bigtable_admin/__init__.py
22-
google/cloud/bigtable_admin/gapic_version.py
233

244
[report]
25-
fail_under = 99
265
show_missing = True
6+
omit =
7+
google/cloud/bigtable/__init__.py
8+
google/cloud/bigtable/gapic_version.py
279
exclude_lines =
2810
# Re-enable the standard pragma
2911
pragma: NO COVER
3012
# Ignore debug-only repr
3113
def __repr__
32-
# Ignore abstract methods
33-
raise NotImplementedError
34-
omit =
35-
*/site-packages/*.py

packages/google-cloud-bigtable/.flake8

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright 2024 Google LLC
2+
# Copyright 2025 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
65
# you may not use this file except in compliance with the License.
76
# You may obtain a copy of the License at
87
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
8+
# http://www.apache.org/licenses/LICENSE-2.0
109
#
1110
# Unless required by applicable law or agreed to in writing, software
1211
# distributed under the License is distributed on an "AS IS" BASIS,
1312
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
16-
17-
# Generated by synthtool. DO NOT EDIT!
15+
#
1816
[flake8]
17+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
18+
# Resolve flake8 lint issues
1919
ignore = E203, E231, E266, E501, W503
2020
exclude =
21-
# Exclude generated code.
22-
**/proto/**
21+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
22+
# Ensure that generated code passes flake8 lint
2323
**/gapic/**
2424
**/services/**
2525
**/types/**
26+
# Exclude Protobuf gencode
2627
*_pb2.py
2728

2829
# Standard linting exemptions.

packages/google-cloud-bigtable/.repo-metadata.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "bigtable",
3-
"name_pretty": "Cloud Bigtable",
3+
"name_pretty": "Google Cloud Bigtable",
4+
"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.",
45
"product_documentation": "https://cloud.google.com/bigtable",
56
"client_documentation": "https://cloud.google.com/python/docs/reference/bigtable/latest",
67
"issue_tracker": "https://issuetracker.google.com/savedsearches/559777",
@@ -57,7 +58,7 @@
5758
"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.",
5859
"file": "main.py",
5960
"runnable": true,
60-
"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>&nbsp; project_id &nbsp; &nbsp; Your Cloud Platform project ID. <br>&nbsp; instance_id &nbsp; &nbsp;ID of the Cloud Bigtable instance to connect to. <br><br> <br>optional arguments: <br>&nbsp; -h, --help &nbsp; &nbsp; show this help message and exit <br>&nbsp; --table TABLE &nbsp;Existing table used in the quickstart. (default: my-table)</code",
61+
"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>&nbsp; project_id &nbsp; &nbsp; Your Cloud Platform project ID. <br>&nbsp; instance_id &nbsp; &nbsp;ID of the Cloud Bigtable instance to connect to. <br><br> <br>optional arguments: <br>&nbsp; -h, --help &nbsp; &nbsp; show this help message and exit <br>&nbsp; --table TABLE &nbsp;Existing table used in the quickstart. (default: my-table)</pre>",
6162
"override_path": "quickstart_happybase"
6263
},
6364
{
Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright 2024 Google LLC
2+
# Copyright 2025 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
65
# you may not use this file except in compliance with the License.
76
# You may obtain a copy of the License at
87
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
8+
# http://www.apache.org/licenses/LICENSE-2.0
109
#
1110
# Unless required by applicable law or agreed to in writing, software
1211
# distributed under the License is distributed on an "AS IS" BASIS,
1312
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
16-
17-
# Generated by synthtool. DO NOT EDIT!
15+
#
1816
include README.rst LICENSE
19-
recursive-include google *.json *.proto py.typed
17+
recursive-include google *.py *.pyi *.json *.proto py.typed
2018
recursive-include tests *
2119
global-exclude *.py[co]
2220
global-exclude __pycache__
23-
24-
# Exclude scripts for samples readmegen
25-
prune scripts/readme-gen

0 commit comments

Comments
 (0)