Skip to content

Commit eedde1e

Browse files
chore: restructure module paths (#816)
1 parent 1ecf65f commit eedde1e

File tree

145 files changed

+7125
-6989
lines changed

Some content is hidden

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

145 files changed

+7125
-6989
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:8555f0e37e6261408f792bfd6635102d2da5ad73f8f09bcb24f25e6afb5fac97
16+
digest: sha256:240b5bcc2bafd450912d2da2be15e62bc6de2cf839823ae4bf94d4f392b451dc
17+
# created: 2023-06-03T21:25:37.968717478Z

.kokoro/requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ typing-extensions
55
twine
66
wheel
77
setuptools
8-
nox
8+
nox>=2022.11.21 # required to remove dependency on py
99
charset-normalizer<3
1010
click<8.1.0

.kokoro/requirements.txt

Lines changed: 28 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
2-
# This file is autogenerated by pip-compile with python 3.10
3-
# To update, run:
2+
# This file is autogenerated by pip-compile with Python 3.9
3+
# by the following command:
44
#
55
# pip-compile --allow-unsafe --generate-hashes requirements.in
66
#
@@ -113,28 +113,26 @@ commonmark==0.9.1 \
113113
--hash=sha256:452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60 \
114114
--hash=sha256:da2f38c92590f83de410ba1a3cbceafbc74fee9def35f9251ba9a971d6d66fd9
115115
# via rich
116-
cryptography==39.0.1 \
117-
--hash=sha256:0f8da300b5c8af9f98111ffd512910bc792b4c77392a9523624680f7956a99d4 \
118-
--hash=sha256:35f7c7d015d474f4011e859e93e789c87d21f6f4880ebdc29896a60403328f1f \
119-
--hash=sha256:5aa67414fcdfa22cf052e640cb5ddc461924a045cacf325cd164e65312d99502 \
120-
--hash=sha256:5d2d8b87a490bfcd407ed9d49093793d0f75198a35e6eb1a923ce1ee86c62b41 \
121-
--hash=sha256:6687ef6d0a6497e2b58e7c5b852b53f62142cfa7cd1555795758934da363a965 \
122-
--hash=sha256:6f8ba7f0328b79f08bdacc3e4e66fb4d7aab0c3584e0bd41328dce5262e26b2e \
123-
--hash=sha256:706843b48f9a3f9b9911979761c91541e3d90db1ca905fd63fee540a217698bc \
124-
--hash=sha256:807ce09d4434881ca3a7594733669bd834f5b2c6d5c7e36f8c00f691887042ad \
125-
--hash=sha256:83e17b26de248c33f3acffb922748151d71827d6021d98c70e6c1a25ddd78505 \
126-
--hash=sha256:96f1157a7c08b5b189b16b47bc9db2332269d6680a196341bf30046330d15388 \
127-
--hash=sha256:aec5a6c9864be7df2240c382740fcf3b96928c46604eaa7f3091f58b878c0bb6 \
128-
--hash=sha256:b0afd054cd42f3d213bf82c629efb1ee5f22eba35bf0eec88ea9ea7304f511a2 \
129-
--hash=sha256:ced4e447ae29ca194449a3f1ce132ded8fcab06971ef5f618605aacaa612beac \
130-
--hash=sha256:d1f6198ee6d9148405e49887803907fe8962a23e6c6f83ea7d98f1c0de375695 \
131-
--hash=sha256:e124352fd3db36a9d4a21c1aa27fd5d051e621845cb87fb851c08f4f75ce8be6 \
132-
--hash=sha256:e422abdec8b5fa8462aa016786680720d78bdce7a30c652b7fadf83a4ba35336 \
133-
--hash=sha256:ef8b72fa70b348724ff1218267e7f7375b8de4e8194d1636ee60510aae104cd0 \
134-
--hash=sha256:f0c64d1bd842ca2633e74a1a28033d139368ad959872533b1bab8c80e8240a0c \
135-
--hash=sha256:f24077a3b5298a5a06a8e0536e3ea9ec60e4c7ac486755e5fb6e6ea9b3500106 \
136-
--hash=sha256:fdd188c8a6ef8769f148f88f859884507b954cc64db6b52f66ef199bb9ad660a \
137-
--hash=sha256:fe913f20024eb2cb2f323e42a64bdf2911bb9738a15dba7d3cce48151034e3a8
116+
cryptography==41.0.0 \
117+
--hash=sha256:0ddaee209d1cf1f180f1efa338a68c4621154de0afaef92b89486f5f96047c55 \
118+
--hash=sha256:14754bcdae909d66ff24b7b5f166d69340ccc6cb15731670435efd5719294895 \
119+
--hash=sha256:344c6de9f8bda3c425b3a41b319522ba3208551b70c2ae00099c205f0d9fd3be \
120+
--hash=sha256:34d405ea69a8b34566ba3dfb0521379b210ea5d560fafedf9f800a9a94a41928 \
121+
--hash=sha256:3680248309d340fda9611498a5319b0193a8dbdb73586a1acf8109d06f25b92d \
122+
--hash=sha256:3c5ef25d060c80d6d9f7f9892e1d41bb1c79b78ce74805b8cb4aa373cb7d5ec8 \
123+
--hash=sha256:4ab14d567f7bbe7f1cdff1c53d5324ed4d3fc8bd17c481b395db224fb405c237 \
124+
--hash=sha256:5c1f7293c31ebc72163a9a0df246f890d65f66b4a40d9ec80081969ba8c78cc9 \
125+
--hash=sha256:6b71f64beeea341c9b4f963b48ee3b62d62d57ba93eb120e1196b31dc1025e78 \
126+
--hash=sha256:7d92f0248d38faa411d17f4107fc0bce0c42cae0b0ba5415505df72d751bf62d \
127+
--hash=sha256:8362565b3835ceacf4dc8f3b56471a2289cf51ac80946f9087e66dc283a810e0 \
128+
--hash=sha256:84a165379cb9d411d58ed739e4af3396e544eac190805a54ba2e0322feb55c46 \
129+
--hash=sha256:88ff107f211ea696455ea8d911389f6d2b276aabf3231bf72c8853d22db755c5 \
130+
--hash=sha256:9f65e842cb02550fac96536edb1d17f24c0a338fd84eaf582be25926e993dde4 \
131+
--hash=sha256:a4fc68d1c5b951cfb72dfd54702afdbbf0fb7acdc9b7dc4301bbf2225a27714d \
132+
--hash=sha256:b7f2f5c525a642cecad24ee8670443ba27ac1fab81bba4cc24c7b6b41f2d0c75 \
133+
--hash=sha256:b846d59a8d5a9ba87e2c3d757ca019fa576793e8758174d3868aecb88d6fc8eb \
134+
--hash=sha256:bf8fc66012ca857d62f6a347007e166ed59c0bc150cefa49f28376ebe7d992a2 \
135+
--hash=sha256:f5d0bf9b252f30a31664b6f64432b4730bb7038339bd18b1fafe129cfc2be9be
138136
# via
139137
# gcp-releasetool
140138
# secretstorage
@@ -335,9 +333,9 @@ more-itertools==9.0.0 \
335333
--hash=sha256:250e83d7e81d0c87ca6bd942e6aeab8cc9daa6096d12c5308f3f92fa5e5c1f41 \
336334
--hash=sha256:5a6257e40878ef0520b1803990e3e22303a41b5714006c32a3fd8304b26ea1ab
337335
# via jaraco-classes
338-
nox==2022.8.7 \
339-
--hash=sha256:1b894940551dc5c389f9271d197ca5d655d40bdc6ccf93ed6880e4042760a34b \
340-
--hash=sha256:96cca88779e08282a699d672258ec01eb7c792d35bbbf538c723172bce23212c
336+
nox==2022.11.21 \
337+
--hash=sha256:0e41a990e290e274cb205a976c4c97ee3c5234441a8132c8c3fd9ea3c22149eb \
338+
--hash=sha256:e21c31de0711d1274ca585a2c5fde36b1aa962005ba8e9322bf5eeed16dcd684
341339
# via -r requirements.in
342340
packaging==21.3 \
343341
--hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \
@@ -380,10 +378,6 @@ protobuf==3.20.3 \
380378
# gcp-docuploader
381379
# gcp-releasetool
382380
# google-api-core
383-
py==1.11.0 \
384-
--hash=sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719 \
385-
--hash=sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378
386-
# via nox
387381
pyasn1==0.4.8 \
388382
--hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \
389383
--hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba
@@ -423,9 +417,9 @@ readme-renderer==37.3 \
423417
--hash=sha256:cd653186dfc73055656f090f227f5cb22a046d7f71a841dfa305f55c9a513273 \
424418
--hash=sha256:f67a16caedfa71eef48a31b39708637a6f4664c4394801a7b0d6432d13907343
425419
# via twine
426-
requests==2.28.1 \
427-
--hash=sha256:7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983 \
428-
--hash=sha256:8fefa2a1a1365bf5520aac41836fbee479da67864514bdb821f31ce07ce65349
420+
requests==2.31.0 \
421+
--hash=sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f \
422+
--hash=sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1
429423
# via
430424
# gcp-releasetool
431425
# google-api-core

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "2.17.0"
2+
".": "2.19.0"
33
}

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,49 @@
44

55
[1]: https://pypi.org/project/google-cloud-bigtable/#history
66

7+
## [2.19.0](https://github.com/googleapis/python-bigtable/compare/v2.18.1...v2.19.0) (2023-06-08)
8+
9+
10+
### Features
11+
12+
* Add ChangeStreamConfig to CreateTable and UpdateTable ([#786](https://github.com/googleapis/python-bigtable/issues/786)) ([cef70f2](https://github.com/googleapis/python-bigtable/commit/cef70f243541820225f86a520e0b2abd3a7354f7))
13+
14+
15+
### Bug Fixes
16+
17+
* Add a callback function on flush_rows ([#796](https://github.com/googleapis/python-bigtable/issues/796)) ([589aa5d](https://github.com/googleapis/python-bigtable/commit/589aa5d04f6b5a2bd310d0bf06aeb7058fb6fcd2))
18+
19+
20+
### Documentation
21+
22+
* **samples:** Add region tags ([#788](https://github.com/googleapis/python-bigtable/issues/788)) ([ecf539c](https://github.com/googleapis/python-bigtable/commit/ecf539c4c976fd9e5505b8abf0b697b218f09fef))
23+
24+
## [2.18.1](https://github.com/googleapis/python-bigtable/compare/v2.18.0...v2.18.1) (2023-05-11)
25+
26+
27+
### Bug Fixes
28+
29+
* Revert "Feat: Threaded MutationsBatcher" ([#773](https://github.com/googleapis/python-bigtable/issues/773)) ([a767cff](https://github.com/googleapis/python-bigtable/commit/a767cff95d990994f85f5fd05cc10f952087b49d))
30+
31+
## [2.18.0](https://github.com/googleapis/python-bigtable/compare/v2.17.0...v2.18.0) (2023-05-10)
32+
33+
34+
### Features
35+
36+
* Publish RateLimitInfo and FeatureFlag protos ([#768](https://github.com/googleapis/python-bigtable/issues/768)) ([171fea6](https://github.com/googleapis/python-bigtable/commit/171fea6de57a47f92a2a56050f8bfe7518144df7))
37+
* Threaded MutationsBatcher ([#722](https://github.com/googleapis/python-bigtable/issues/722)) ([7521a61](https://github.com/googleapis/python-bigtable/commit/7521a617c121ead96a21ca47959a53b2db2da090))
38+
39+
40+
### Bug Fixes
41+
42+
* Pass the "retry" when calling read_rows. ([#759](https://github.com/googleapis/python-bigtable/issues/759)) ([505273b](https://github.com/googleapis/python-bigtable/commit/505273b72bf83d8f92d0e0a92d62f22bce96cc3d))
43+
44+
45+
### Documentation
46+
47+
* Fix delete from column family example ([#764](https://github.com/googleapis/python-bigtable/issues/764)) ([128b4e1](https://github.com/googleapis/python-bigtable/commit/128b4e1f3eea2dad903d84c8f2933b17a5f0d226))
48+
* Fix formatting of request arg in docstring ([#756](https://github.com/googleapis/python-bigtable/issues/756)) ([45d3e43](https://github.com/googleapis/python-bigtable/commit/45d3e4308c4f494228c2e6e18a36285c557cb0c3))
49+
750
## [2.17.0](https://github.com/googleapis/python-bigtable/compare/v2.16.0...v2.17.0) (2023-03-01)
851

952

docs/app-profile.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
App Profile
22
~~~~~~~~~~~
33

4-
.. automodule:: google.cloud.bigtable.deprecated.app_profile
4+
.. automodule:: google.cloud.bigtable.app_profile
55
:members:
66
:show-inheritance:

docs/backup.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Backup
22
~~~~~~~~
33

4-
.. automodule:: google.cloud.bigtable.deprecated.backup
4+
.. automodule:: google.cloud.bigtable.backup
55
:members:
66
:show-inheritance:

docs/batcher.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Mutations Batching
2+
~~~~~~~~~~~~~~~~~~
3+
4+
.. automodule:: google.cloud.bigtable.batcher
5+
:members:
6+
:show-inheritance:

docs/client-intro.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
Base for Everything
22
===================
33

4-
To use the API, the :class:`Client <google.cloud.bigtable.deprecated.client.Client>`
4+
To use the API, the :class:`Client <google.cloud.bigtable.client.Client>`
55
class defines a high-level interface which handles authorization
66
and creating other objects:
77

88
.. code:: python
99
10-
from google.cloud.bigtable.deprecated.client import Client
10+
from google.cloud.bigtable.client import Client
1111
client = Client()
1212
1313
Long-lived Defaults
1414
-------------------
1515

16-
When creating a :class:`Client <google.cloud.bigtable.deprecated.client.Client>`, the
16+
When creating a :class:`Client <google.cloud.bigtable.client.Client>`, the
1717
``user_agent`` argument has sensible a default
18-
(:data:`DEFAULT_USER_AGENT <google.cloud.bigtable.deprecated.client.DEFAULT_USER_AGENT>`).
18+
(:data:`DEFAULT_USER_AGENT <google.cloud.bigtable.client.DEFAULT_USER_AGENT>`).
1919
However, you may over-ride it and the value will be used throughout all API
2020
requests made with the ``client`` you create.
2121

@@ -38,14 +38,14 @@ Configuration
3838

3939
.. code::
4040
41-
>>> import google.cloud.deprecated as bigtable
41+
>>> from google.cloud import bigtable
4242
>>> client = bigtable.Client()
4343
4444
or pass in ``credentials`` and ``project`` explicitly
4545

4646
.. code::
4747
48-
>>> import google.cloud.deprecated as bigtable
48+
>>> from google.cloud import bigtable
4949
>>> client = bigtable.Client(project='my-project', credentials=creds)
5050
5151
.. tip::
@@ -73,15 +73,15 @@ you can pass the ``read_only`` argument:
7373
client = bigtable.Client(read_only=True)
7474
7575
This will ensure that the
76-
:data:`READ_ONLY_SCOPE <google.cloud.bigtable.deprecated.client.READ_ONLY_SCOPE>` is used
76+
:data:`READ_ONLY_SCOPE <google.cloud.bigtable.client.READ_ONLY_SCOPE>` is used
7777
for API requests (so any accidental requests that would modify data will
7878
fail).
7979

8080
Next Step
8181
---------
8282

83-
After a :class:`Client <google.cloud.bigtable.deprecated.client.Client>`, the next highest-level
84-
object is an :class:`Instance <google.cloud.bigtable.deprecated.instance.Instance>`. You'll need
83+
After a :class:`Client <google.cloud.bigtable.client.Client>`, the next highest-level
84+
object is an :class:`Instance <google.cloud.bigtable.instance.Instance>`. You'll need
8585
one before you can interact with tables or data.
8686

8787
Head next to learn about the :doc:`instance-api`.

docs/client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Client
22
~~~~~~
33

4-
.. automodule:: google.cloud.bigtable.deprecated.client
4+
.. automodule:: google.cloud.bigtable.client
55
:members:
66
:show-inheritance:

docs/cluster.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Cluster
22
~~~~~~~
33

4-
.. automodule:: google.cloud.bigtable.deprecated.cluster
4+
.. automodule:: google.cloud.bigtable.cluster
55
:members:
66
:show-inheritance:

docs/column-family.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ Column Families
22
===============
33

44
When creating a
5-
:class:`ColumnFamily <google.cloud.bigtable.deprecated.column_family.ColumnFamily>`, it is
5+
:class:`ColumnFamily <google.cloud.bigtable.column_family.ColumnFamily>`, it is
66
possible to set garbage collection rules for expired data.
77

88
By setting a rule, cells in the table matching the rule will be deleted
99
during periodic garbage collection (which executes opportunistically in the
1010
background).
1111

1212
The types
13-
:class:`MaxAgeGCRule <google.cloud.bigtable.deprecated.column_family.MaxAgeGCRule>`,
14-
:class:`MaxVersionsGCRule <google.cloud.bigtable.deprecated.column_family.MaxVersionsGCRule>`,
15-
:class:`GarbageCollectionRuleUnion <google.cloud.bigtable.deprecated.column_family.GarbageCollectionRuleUnion>` and
16-
:class:`GarbageCollectionRuleIntersection <google.cloud.bigtable.deprecated.column_family.GarbageCollectionRuleIntersection>`
13+
:class:`MaxAgeGCRule <google.cloud.bigtable.column_family.MaxAgeGCRule>`,
14+
:class:`MaxVersionsGCRule <google.cloud.bigtable.column_family.MaxVersionsGCRule>`,
15+
:class:`GarbageCollectionRuleUnion <google.cloud.bigtable.column_family.GarbageCollectionRuleUnion>` and
16+
:class:`GarbageCollectionRuleIntersection <google.cloud.bigtable.column_family.GarbageCollectionRuleIntersection>`
1717
can all be used as the optional ``gc_rule`` argument in the
18-
:class:`ColumnFamily <google.cloud.bigtable.deprecated.column_family.ColumnFamily>`
18+
:class:`ColumnFamily <google.cloud.bigtable.column_family.ColumnFamily>`
1919
constructor. This value is then used in the
20-
:meth:`create() <google.cloud.bigtable.deprecated.column_family.ColumnFamily.create>` and
21-
:meth:`update() <google.cloud.bigtable.deprecated.column_family.ColumnFamily.update>` methods.
20+
:meth:`create() <google.cloud.bigtable.column_family.ColumnFamily.create>` and
21+
:meth:`update() <google.cloud.bigtable.column_family.ColumnFamily.update>` methods.
2222

2323
These rules can be nested arbitrarily, with a
24-
:class:`MaxAgeGCRule <google.cloud.bigtable.deprecated.column_family.MaxAgeGCRule>` or
25-
:class:`MaxVersionsGCRule <google.cloud.bigtable.deprecated.column_family.MaxVersionsGCRule>`
24+
:class:`MaxAgeGCRule <google.cloud.bigtable.column_family.MaxAgeGCRule>` or
25+
:class:`MaxVersionsGCRule <google.cloud.bigtable.column_family.MaxVersionsGCRule>`
2626
at the lowest level of the nesting:
2727

2828
.. code:: python
@@ -44,6 +44,6 @@ at the lowest level of the nesting:
4444
4545
----
4646

47-
.. automodule:: google.cloud.bigtable.deprecated.column_family
47+
.. automodule:: google.cloud.bigtable.column_family
4848
:members:
4949
:show-inheritance:

0 commit comments

Comments
 (0)