Skip to content
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

Implementing Bigtable Cluster.list_tables(). #1269

Merged
merged 1 commit into from
Dec 5, 2015

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Dec 4, 2015

This uses the table stub instead of the cluster stub. This
method is actually talking to a different service than
every method until now.

Also implementing Table.__eq__ so table comparison succeeds
in unit tests.

@dhermes dhermes added the api: bigtable Issues related to the Bigtable API. label Dec 4, 2015
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 4, 2015
self.name + '/tables/', 1)
if before != '':
raise ValueError('Table name %s not of expected format' % (
table_pb.name,))

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This uses the table stub instead of the cluster stub. This
method is actually talking to a different service than
every method until now.

Also implementing Table.__eq__ so table comparison succeeds
in unit tests.
result = []
for table_pb in table_list_pb.tables:
table_prefix = self.name + '/tables/'
if not table_pb.name.startswith(table_prefix):

This comment was marked as spam.

@tseaver
Copy link
Contributor

tseaver commented Dec 5, 2015

LGTM

dhermes added a commit that referenced this pull request Dec 5, 2015
Implementing Bigtable Cluster.list_tables().
@dhermes dhermes merged commit 32ec056 into googleapis:master Dec 5, 2015
@dhermes dhermes deleted the bigtable-list-tables branch December 5, 2015 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the Bigtable API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants