-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Address fourth part of 451: Make Key constructor easier to use by taking positional args. #460
Conversation
c17800d do we need to expose Other than that, LGTM. |
RE: >>> partial_key = Key('Foo', 1, 'Bar')
>>> new_path = partial_key.flath_path + (1000,)
>>> entity = Entity(*new_path) This is no longer the goal, but ISTM the contents of (Through some discussions in #336 and elsewhere it seems it's best to just have |
c17800d
to
03f5dd8
Compare
@tseaver I added 16760fb since your review because I realized we had false positives from things like >>> datastore.key.Key('Foo', None, dataset_id='foo')
<Key[{'kind': 'Foo'}], dataset=foo>
>>> datastore.key.Key('Foo', None, 'Bar', 10, dataset_id='foo')
<Key[{'kind': 'Foo'}, {'kind': 'Bar', 'id': 10}], dataset=foo> |
16760fb
to
676b20c
Compare
Ugh, the rebase ruins the commit hash in your comment. If you don't think we need to pull the |
Address fourth part of 451: Make Key constructor easier to use by taking positional args.
@tseaver I agree having |
Co-authored-by: Nitsan Shai <nshai@google.com>
Co-authored-by: Nitsan Shai <nshai@google.com>
Co-authored-by: Nitsan Shai <nshai@google.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Source-Link: https://togithub.com/googleapis/synthtool/commit/26c7505b2f76981ec1707b851e1595c8c06e90fc Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f946c75373c2b0040e8e318c5e85d0cf46bc6e61d0a01f3ef94d8de974ac6790
* docs: clarified gcs_bucket field of the SecuritySettings message PiperOrigin-RevId: 477778532 Source-Link: googleapis/googleapis@22d2bda Source-Link: googleapis/googleapis-gen@821f121 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODIxZjEyMWYwMWMxNTBlNGRiZDBiZjlhNzkyYmMwNWMyY2VlYzFkMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: clarified gcs_bucket field of the SecuritySettings message PiperOrigin-RevId: 478035442 Source-Link: googleapis/googleapis@8cb255f Source-Link: googleapis/googleapis-gen@461eeeb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDYxZWVlYjc3MGMwMzk3YjVlZjgzOTJkMjQyOTk1M2YxMzkzZmY2NCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Source-Link: googleapis/synthtool@69fda12 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:ae600f36b6bc972b368367b6f83a1d91ec2c82a4a116b383d67d547c56fe6de3 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Source-Link: https://togithub.com/googleapis/synthtool/commit/25083af347468dd5f90f69627420f7d452b6c50e Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e6cbd61f1838d9ff6a31436dfc13717f372a7482a82fc1863ca954ec47bff8c8
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
* chore(bazel): update protobuf to v3.21.3 chore(bazel): update gax-java to 2.18.4 PiperOrigin-RevId: 463115700 Source-Link: googleapis/googleapis@52130a9 Source-Link: googleapis/googleapis-gen@6a4d9d9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmE0ZDlkOWJiM2FmYjIwYjBmNWZhNGY1ZDlmNjc0MGIxZDBlYjE5YSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Source-Link: googleapis/synthtool@7197a00 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:c43f1d918bcf817d337aa29ff833439494a158a0831508fda4ec75dc4c0d0320 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Nitsan Shai <nshai@google.com>
Make Key constructor easier to use by taking positional args.
Addresses fourth part of #451.
NOTE: This has #459 as a diffbase.