Skip to content

Commit

Permalink
chore: restructure module paths (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Jun 28, 2023
1 parent 1ecf65f commit eedde1e
Show file tree
Hide file tree
Showing 145 changed files with 7,125 additions and 6,989 deletions.
3 changes: 2 additions & 1 deletion .github/.OwlBot.lock.yaml
Expand Up @@ -13,4 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
digest: sha256:8555f0e37e6261408f792bfd6635102d2da5ad73f8f09bcb24f25e6afb5fac97
digest: sha256:240b5bcc2bafd450912d2da2be15e62bc6de2cf839823ae4bf94d4f392b451dc
# created: 2023-06-03T21:25:37.968717478Z
2 changes: 1 addition & 1 deletion .kokoro/requirements.in
Expand Up @@ -5,6 +5,6 @@ typing-extensions
twine
wheel
setuptools
nox
nox>=2022.11.21 # required to remove dependency on py
charset-normalizer<3
click<8.1.0
62 changes: 28 additions & 34 deletions .kokoro/requirements.txt
@@ -1,6 +1,6 @@
#
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes requirements.in
#
Expand Down Expand Up @@ -113,28 +113,26 @@ commonmark==0.9.1 \
--hash=sha256:452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60 \
--hash=sha256:da2f38c92590f83de410ba1a3cbceafbc74fee9def35f9251ba9a971d6d66fd9
# via rich
cryptography==39.0.1 \
--hash=sha256:0f8da300b5c8af9f98111ffd512910bc792b4c77392a9523624680f7956a99d4 \
--hash=sha256:35f7c7d015d474f4011e859e93e789c87d21f6f4880ebdc29896a60403328f1f \
--hash=sha256:5aa67414fcdfa22cf052e640cb5ddc461924a045cacf325cd164e65312d99502 \
--hash=sha256:5d2d8b87a490bfcd407ed9d49093793d0f75198a35e6eb1a923ce1ee86c62b41 \
--hash=sha256:6687ef6d0a6497e2b58e7c5b852b53f62142cfa7cd1555795758934da363a965 \
--hash=sha256:6f8ba7f0328b79f08bdacc3e4e66fb4d7aab0c3584e0bd41328dce5262e26b2e \
--hash=sha256:706843b48f9a3f9b9911979761c91541e3d90db1ca905fd63fee540a217698bc \
--hash=sha256:807ce09d4434881ca3a7594733669bd834f5b2c6d5c7e36f8c00f691887042ad \
--hash=sha256:83e17b26de248c33f3acffb922748151d71827d6021d98c70e6c1a25ddd78505 \
--hash=sha256:96f1157a7c08b5b189b16b47bc9db2332269d6680a196341bf30046330d15388 \
--hash=sha256:aec5a6c9864be7df2240c382740fcf3b96928c46604eaa7f3091f58b878c0bb6 \
--hash=sha256:b0afd054cd42f3d213bf82c629efb1ee5f22eba35bf0eec88ea9ea7304f511a2 \
--hash=sha256:ced4e447ae29ca194449a3f1ce132ded8fcab06971ef5f618605aacaa612beac \
--hash=sha256:d1f6198ee6d9148405e49887803907fe8962a23e6c6f83ea7d98f1c0de375695 \
--hash=sha256:e124352fd3db36a9d4a21c1aa27fd5d051e621845cb87fb851c08f4f75ce8be6 \
--hash=sha256:e422abdec8b5fa8462aa016786680720d78bdce7a30c652b7fadf83a4ba35336 \
--hash=sha256:ef8b72fa70b348724ff1218267e7f7375b8de4e8194d1636ee60510aae104cd0 \
--hash=sha256:f0c64d1bd842ca2633e74a1a28033d139368ad959872533b1bab8c80e8240a0c \
--hash=sha256:f24077a3b5298a5a06a8e0536e3ea9ec60e4c7ac486755e5fb6e6ea9b3500106 \
--hash=sha256:fdd188c8a6ef8769f148f88f859884507b954cc64db6b52f66ef199bb9ad660a \
--hash=sha256:fe913f20024eb2cb2f323e42a64bdf2911bb9738a15dba7d3cce48151034e3a8
cryptography==41.0.0 \
--hash=sha256:0ddaee209d1cf1f180f1efa338a68c4621154de0afaef92b89486f5f96047c55 \
--hash=sha256:14754bcdae909d66ff24b7b5f166d69340ccc6cb15731670435efd5719294895 \
--hash=sha256:344c6de9f8bda3c425b3a41b319522ba3208551b70c2ae00099c205f0d9fd3be \
--hash=sha256:34d405ea69a8b34566ba3dfb0521379b210ea5d560fafedf9f800a9a94a41928 \
--hash=sha256:3680248309d340fda9611498a5319b0193a8dbdb73586a1acf8109d06f25b92d \
--hash=sha256:3c5ef25d060c80d6d9f7f9892e1d41bb1c79b78ce74805b8cb4aa373cb7d5ec8 \
--hash=sha256:4ab14d567f7bbe7f1cdff1c53d5324ed4d3fc8bd17c481b395db224fb405c237 \
--hash=sha256:5c1f7293c31ebc72163a9a0df246f890d65f66b4a40d9ec80081969ba8c78cc9 \
--hash=sha256:6b71f64beeea341c9b4f963b48ee3b62d62d57ba93eb120e1196b31dc1025e78 \
--hash=sha256:7d92f0248d38faa411d17f4107fc0bce0c42cae0b0ba5415505df72d751bf62d \
--hash=sha256:8362565b3835ceacf4dc8f3b56471a2289cf51ac80946f9087e66dc283a810e0 \
--hash=sha256:84a165379cb9d411d58ed739e4af3396e544eac190805a54ba2e0322feb55c46 \
--hash=sha256:88ff107f211ea696455ea8d911389f6d2b276aabf3231bf72c8853d22db755c5 \
--hash=sha256:9f65e842cb02550fac96536edb1d17f24c0a338fd84eaf582be25926e993dde4 \
--hash=sha256:a4fc68d1c5b951cfb72dfd54702afdbbf0fb7acdc9b7dc4301bbf2225a27714d \
--hash=sha256:b7f2f5c525a642cecad24ee8670443ba27ac1fab81bba4cc24c7b6b41f2d0c75 \
--hash=sha256:b846d59a8d5a9ba87e2c3d757ca019fa576793e8758174d3868aecb88d6fc8eb \
--hash=sha256:bf8fc66012ca857d62f6a347007e166ed59c0bc150cefa49f28376ebe7d992a2 \
--hash=sha256:f5d0bf9b252f30a31664b6f64432b4730bb7038339bd18b1fafe129cfc2be9be
# via
# gcp-releasetool
# secretstorage
Expand Down Expand Up @@ -335,9 +333,9 @@ more-itertools==9.0.0 \
--hash=sha256:250e83d7e81d0c87ca6bd942e6aeab8cc9daa6096d12c5308f3f92fa5e5c1f41 \
--hash=sha256:5a6257e40878ef0520b1803990e3e22303a41b5714006c32a3fd8304b26ea1ab
# via jaraco-classes
nox==2022.8.7 \
--hash=sha256:1b894940551dc5c389f9271d197ca5d655d40bdc6ccf93ed6880e4042760a34b \
--hash=sha256:96cca88779e08282a699d672258ec01eb7c792d35bbbf538c723172bce23212c
nox==2022.11.21 \
--hash=sha256:0e41a990e290e274cb205a976c4c97ee3c5234441a8132c8c3fd9ea3c22149eb \
--hash=sha256:e21c31de0711d1274ca585a2c5fde36b1aa962005ba8e9322bf5eeed16dcd684
# via -r requirements.in
packaging==21.3 \
--hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \
Expand Down Expand Up @@ -380,10 +378,6 @@ protobuf==3.20.3 \
# gcp-docuploader
# gcp-releasetool
# google-api-core
py==1.11.0 \
--hash=sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719 \
--hash=sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378
# via nox
pyasn1==0.4.8 \
--hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \
--hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba
Expand Down Expand Up @@ -423,9 +417,9 @@ readme-renderer==37.3 \
--hash=sha256:cd653186dfc73055656f090f227f5cb22a046d7f71a841dfa305f55c9a513273 \
--hash=sha256:f67a16caedfa71eef48a31b39708637a6f4664c4394801a7b0d6432d13907343
# via twine
requests==2.28.1 \
--hash=sha256:7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983 \
--hash=sha256:8fefa2a1a1365bf5520aac41836fbee479da67864514bdb821f31ce07ce65349
requests==2.31.0 \
--hash=sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f \
--hash=sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1
# via
# gcp-releasetool
# google-api-core
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
@@ -1,3 +1,3 @@
{
".": "2.17.0"
".": "2.19.0"
}
43 changes: 43 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,49 @@

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

## [2.19.0](https://github.com/googleapis/python-bigtable/compare/v2.18.1...v2.19.0) (2023-06-08)


### Features

* Add ChangeStreamConfig to CreateTable and UpdateTable ([#786](https://github.com/googleapis/python-bigtable/issues/786)) ([cef70f2](https://github.com/googleapis/python-bigtable/commit/cef70f243541820225f86a520e0b2abd3a7354f7))


### Bug Fixes

* 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))


### Documentation

* **samples:** Add region tags ([#788](https://github.com/googleapis/python-bigtable/issues/788)) ([ecf539c](https://github.com/googleapis/python-bigtable/commit/ecf539c4c976fd9e5505b8abf0b697b218f09fef))

## [2.18.1](https://github.com/googleapis/python-bigtable/compare/v2.18.0...v2.18.1) (2023-05-11)


### Bug Fixes

* Revert "Feat: Threaded MutationsBatcher" ([#773](https://github.com/googleapis/python-bigtable/issues/773)) ([a767cff](https://github.com/googleapis/python-bigtable/commit/a767cff95d990994f85f5fd05cc10f952087b49d))

## [2.18.0](https://github.com/googleapis/python-bigtable/compare/v2.17.0...v2.18.0) (2023-05-10)


### Features

* Publish RateLimitInfo and FeatureFlag protos ([#768](https://github.com/googleapis/python-bigtable/issues/768)) ([171fea6](https://github.com/googleapis/python-bigtable/commit/171fea6de57a47f92a2a56050f8bfe7518144df7))
* Threaded MutationsBatcher ([#722](https://github.com/googleapis/python-bigtable/issues/722)) ([7521a61](https://github.com/googleapis/python-bigtable/commit/7521a617c121ead96a21ca47959a53b2db2da090))


### Bug Fixes

* 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))


### Documentation

* Fix delete from column family example ([#764](https://github.com/googleapis/python-bigtable/issues/764)) ([128b4e1](https://github.com/googleapis/python-bigtable/commit/128b4e1f3eea2dad903d84c8f2933b17a5f0d226))
* 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))

## [2.17.0](https://github.com/googleapis/python-bigtable/compare/v2.16.0...v2.17.0) (2023-03-01)


Expand Down
2 changes: 1 addition & 1 deletion docs/app-profile.rst
@@ -1,6 +1,6 @@
App Profile
~~~~~~~~~~~

.. automodule:: google.cloud.bigtable.deprecated.app_profile
.. automodule:: google.cloud.bigtable.app_profile
:members:
:show-inheritance:
2 changes: 1 addition & 1 deletion docs/backup.rst
@@ -1,6 +1,6 @@
Backup
~~~~~~~~

.. automodule:: google.cloud.bigtable.deprecated.backup
.. automodule:: google.cloud.bigtable.backup
:members:
:show-inheritance:
6 changes: 6 additions & 0 deletions docs/batcher.rst
@@ -0,0 +1,6 @@
Mutations Batching
~~~~~~~~~~~~~~~~~~

.. automodule:: google.cloud.bigtable.batcher
:members:
:show-inheritance:
18 changes: 9 additions & 9 deletions docs/client-intro.rst
@@ -1,21 +1,21 @@
Base for Everything
===================

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

.. code:: python
from google.cloud.bigtable.deprecated.client import Client
from google.cloud.bigtable.client import Client
client = Client()
Long-lived Defaults
-------------------

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

Expand All @@ -38,14 +38,14 @@ Configuration

.. code::
>>> import google.cloud.deprecated as bigtable
>>> from google.cloud import bigtable
>>> client = bigtable.Client()
or pass in ``credentials`` and ``project`` explicitly

.. code::
>>> import google.cloud.deprecated as bigtable
>>> from google.cloud import bigtable
>>> client = bigtable.Client(project='my-project', credentials=creds)
.. tip::
Expand Down Expand Up @@ -73,15 +73,15 @@ you can pass the ``read_only`` argument:
client = bigtable.Client(read_only=True)
This will ensure that the
:data:`READ_ONLY_SCOPE <google.cloud.bigtable.deprecated.client.READ_ONLY_SCOPE>` is used
:data:`READ_ONLY_SCOPE <google.cloud.bigtable.client.READ_ONLY_SCOPE>` is used
for API requests (so any accidental requests that would modify data will
fail).

Next Step
---------

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

Head next to learn about the :doc:`instance-api`.
Expand Down
2 changes: 1 addition & 1 deletion docs/client.rst
@@ -1,6 +1,6 @@
Client
~~~~~~

.. automodule:: google.cloud.bigtable.deprecated.client
.. automodule:: google.cloud.bigtable.client
:members:
:show-inheritance:
2 changes: 1 addition & 1 deletion docs/cluster.rst
@@ -1,6 +1,6 @@
Cluster
~~~~~~~

.. automodule:: google.cloud.bigtable.deprecated.cluster
.. automodule:: google.cloud.bigtable.cluster
:members:
:show-inheritance:
22 changes: 11 additions & 11 deletions docs/column-family.rst
Expand Up @@ -2,27 +2,27 @@ Column Families
===============

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

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

The types
:class:`MaxAgeGCRule <google.cloud.bigtable.deprecated.column_family.MaxAgeGCRule>`,
:class:`MaxVersionsGCRule <google.cloud.bigtable.deprecated.column_family.MaxVersionsGCRule>`,
:class:`GarbageCollectionRuleUnion <google.cloud.bigtable.deprecated.column_family.GarbageCollectionRuleUnion>` and
:class:`GarbageCollectionRuleIntersection <google.cloud.bigtable.deprecated.column_family.GarbageCollectionRuleIntersection>`
:class:`MaxAgeGCRule <google.cloud.bigtable.column_family.MaxAgeGCRule>`,
:class:`MaxVersionsGCRule <google.cloud.bigtable.column_family.MaxVersionsGCRule>`,
:class:`GarbageCollectionRuleUnion <google.cloud.bigtable.column_family.GarbageCollectionRuleUnion>` and
:class:`GarbageCollectionRuleIntersection <google.cloud.bigtable.column_family.GarbageCollectionRuleIntersection>`
can all be used as the optional ``gc_rule`` argument in the
:class:`ColumnFamily <google.cloud.bigtable.deprecated.column_family.ColumnFamily>`
:class:`ColumnFamily <google.cloud.bigtable.column_family.ColumnFamily>`
constructor. This value is then used in the
:meth:`create() <google.cloud.bigtable.deprecated.column_family.ColumnFamily.create>` and
:meth:`update() <google.cloud.bigtable.deprecated.column_family.ColumnFamily.update>` methods.
:meth:`create() <google.cloud.bigtable.column_family.ColumnFamily.create>` and
:meth:`update() <google.cloud.bigtable.column_family.ColumnFamily.update>` methods.

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

.. code:: python
Expand All @@ -44,6 +44,6 @@ at the lowest level of the nesting:
----

.. automodule:: google.cloud.bigtable.deprecated.column_family
.. automodule:: google.cloud.bigtable.column_family
:members:
:show-inheritance:

0 comments on commit eedde1e

Please sign in to comment.