Skip to content

Conversation

@dhermes
Copy link
Contributor

@dhermes dhermes commented Oct 31, 2016

NOTE: Has #2651 as diffbase. Unit test changes will be forthcoming.

@dhermes dhermes added the api: logging Issues related to the Cloud Logging API. label Oct 31, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 31, 2016
@dhermes
Copy link
Contributor Author

dhermes commented Oct 31, 2016

@tseaver @daspecster PTAL this is ready to go

:type resource: dict
:param resource: one entry resource from API response
:param resource: One entry resource from API response.

This comment was marked as spam.

token = iterator.next_page_token

self.assertEqual(sinks, RETURNED['sinks'])
# First check the token.

This comment was marked as spam.

This comment was marked as spam.

@daspecster
Copy link
Contributor

This LGTM as well.

@dhermes dhermes force-pushed the logging-iterators-sinks branch from 035ec7f to c351c05 Compare October 31, 2016 23:16
@dhermes dhermes merged commit 94aa18c into googleapis:master Oct 31, 2016
@dhermes dhermes deleted the logging-iterators-sinks branch October 31, 2016 23:22
token = iterator.next_page_token

self.assertEqual(sinks, SINKS)
# First check the token.

This comment was marked as spam.

This comment was marked as spam.

iterator = client.list_sinks()
page = six.next(iterator.pages)
sinks = list(page)
token = iterator.next_page_token

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
parthea pushed a commit that referenced this pull request Nov 24, 2025
Updating list_sinks() to Iterator pattern.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: logging Issues related to the Cloud Logging API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants