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

Move google.cloud.iterator to google.api.core.page_iterator #3770

Merged
merged 17 commits into from
Aug 9, 2017

Conversation

theacodes
Copy link
Contributor

  • Re-write tests to pytest style.
  • Make GAXIterator private- it will soon be removed.
  • Pass api_request into HTTPIterator to avoid accessing private members
  • Update references across libraries.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 9, 2017
@theacodes theacodes added api: core and removed cla: yes This human has signed the Contributor License Agreement. labels Aug 9, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 9, 2017
Copy link
Contributor

@dhermes dhermes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but please fix my nits

path=path,
item_to_value=_item_to_table,
items_key='tables',
page_token=page_token, max_results=max_results)

This comment was marked as spam.

This comment was marked as spam.

:rtype: :class:`~types.GeneratorType`
:returns: A generator of items from the API.
:raises ValueError: If the iterator has already been started.
returns:

This comment was marked as spam.

This comment was marked as spam.

"""
params = self._get_query_params()
if self._HTTP_METHOD == 'GET':
return self.client._connection.api_request(
return self.api_request(

This comment was marked as spam.

This comment was marked as spam.

method=self._HTTP_METHOD,
path=self.path,
data=params)
else:
raise ValueError('Unexpected HTTP method', self._HTTP_METHOD)


class GAXIterator(Iterator):
class _GAXIterator(Iterator):

This comment was marked as spam.

This comment was marked as spam.

@@ -4,7 +4,6 @@ Core
.. toctree::
config
auth
iterators

This comment was marked as spam.

This comment was marked as spam.

@theacodes theacodes merged commit c24123c into googleapis:master Aug 9, 2017
@theacodes theacodes deleted the api-core-iterator branch August 9, 2017 17:02
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 21, 2017
…is#3770)

* Move google.cloud.iterator to google.api.core.page_iterator
* Re-write tests to pytest style.
* Make GAXIterator private- it will soon be removed.
* Pass api_request into HTTPIterator to avoid accessing private members
* BigQuery: use google.api.core.page_iterator
* DNS: use google.api.core.page_iterator
* Logging: use google.api.core.page_iterator
* PubSub: use google.api.core.page_iterator
* Resource manager: use google.api.core.page_iterator
* Runtimeconfig: use google.api.core.page_iterator
* logging: use google.api.core._GAXIterator
* Storage: use google.api.core.page_iterator
* Pubsub: use google.api.core._GAXIterator
* Trace: use google.api.core._GAXIterator
* Spanner: use google.api.core._GAXIterator
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
…is#3770)

* Move google.cloud.iterator to google.api.core.page_iterator
* Re-write tests to pytest style.
* Make GAXIterator private- it will soon be removed.
* Pass api_request into HTTPIterator to avoid accessing private members
* BigQuery: use google.api.core.page_iterator
* DNS: use google.api.core.page_iterator
* Logging: use google.api.core.page_iterator
* PubSub: use google.api.core.page_iterator
* Resource manager: use google.api.core.page_iterator
* Runtimeconfig: use google.api.core.page_iterator
* logging: use google.api.core._GAXIterator
* Storage: use google.api.core.page_iterator
* Pubsub: use google.api.core._GAXIterator
* Trace: use google.api.core._GAXIterator
* Spanner: use google.api.core._GAXIterator
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
…is#3770)

* Move google.cloud.iterator to google.api.core.page_iterator
* Re-write tests to pytest style.
* Make GAXIterator private- it will soon be removed.
* Pass api_request into HTTPIterator to avoid accessing private members
* BigQuery: use google.api.core.page_iterator
* DNS: use google.api.core.page_iterator
* Logging: use google.api.core.page_iterator
* PubSub: use google.api.core.page_iterator
* Resource manager: use google.api.core.page_iterator
* Runtimeconfig: use google.api.core.page_iterator
* logging: use google.api.core._GAXIterator
* Storage: use google.api.core.page_iterator
* Pubsub: use google.api.core._GAXIterator
* Trace: use google.api.core._GAXIterator
* Spanner: use google.api.core._GAXIterator
parthea pushed a commit that referenced this pull request Jun 4, 2023
* Move google.cloud.iterator to google.api.core.page_iterator
* Re-write tests to pytest style.
* Make GAXIterator private- it will soon be removed.
* Pass api_request into HTTPIterator to avoid accessing private members
* BigQuery: use google.api.core.page_iterator
* DNS: use google.api.core.page_iterator
* Logging: use google.api.core.page_iterator
* PubSub: use google.api.core.page_iterator
* Resource manager: use google.api.core.page_iterator
* Runtimeconfig: use google.api.core.page_iterator
* logging: use google.api.core._GAXIterator
* Storage: use google.api.core.page_iterator
* Pubsub: use google.api.core._GAXIterator
* Trace: use google.api.core._GAXIterator
* Spanner: use google.api.core._GAXIterator
parthea pushed a commit that referenced this pull request Oct 22, 2023
* Move google.cloud.iterator to google.api.core.page_iterator
* Re-write tests to pytest style.
* Make GAXIterator private- it will soon be removed.
* Pass api_request into HTTPIterator to avoid accessing private members
* BigQuery: use google.api.core.page_iterator
* DNS: use google.api.core.page_iterator
* Logging: use google.api.core.page_iterator
* PubSub: use google.api.core.page_iterator
* Resource manager: use google.api.core.page_iterator
* Runtimeconfig: use google.api.core.page_iterator
* logging: use google.api.core._GAXIterator
* Storage: use google.api.core.page_iterator
* Pubsub: use google.api.core._GAXIterator
* Trace: use google.api.core._GAXIterator
* Spanner: use google.api.core._GAXIterator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: core 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