-
Notifications
You must be signed in to change notification settings - Fork 6.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
Add region tags to bigtable/hello sample. #376
Conversation
|
||
from gcloud import bigtable | ||
from gcloud.bigtable import happybase | ||
|
||
|
||
def main(project, cluster_id, zone, table_name): | ||
# [START connecting_to_bigtable] | ||
# project = "my-project-id" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These comments are unnecessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree w/ Jon - rename project => projectId (or the Python convention), same for the others.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary comments removed and project
renamed to project_id
.
LGTM with small nit, but @waprin should review. |
LGTM - w/ Jon's nit. |
Also, change the sample to use sequential keys (with a disclaimer) to match the Java sample. I had forgotten to add a sample usage to get a specific row, so add that, too.
* fix: warning message * docs: correct naming Co-authored-by: Yvonne <[email protected]>
* fix: warning message * docs: correct naming Co-authored-by: Yvonne <[email protected]>
* fix: warning message * docs: correct naming Co-authored-by: Yvonne <[email protected]>
Also, change the sample to use sequential keys (with a disclaimer) to
match the Java sample. I had forgotten to add a sample usage to get a
specific row, so add that, too.