You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by erjohnso <gi...@git.apache.org> on 2014/12/30 01:13:40 UTC

[GitHub] libcloud pull request: [google compute] adding all list params to ...

GitHub user erjohnso opened a pull request:

    https://github.com/apache/libcloud/pull/422

    [google compute] adding all list params to all list functions

    This PR adds support to all `list_XXX()` and `ex_list_XXX()` driver methods using the parameters provided by GCE API as described in this example, https://cloud.google.com/compute/docs/reference/latest/diskTypes/list.
    
    * Users can now provide an `ex_filter` to restrict search results to filter matches such as nodes that match `name eq "test.*"`.
    * Users can now step through large resource sets `ex_max_results` for each method call until no more results are returned. In GCE terms, this allows for "pagination" and uses a `pageToken` query parameter to step through the resource set. Users can 'reset' the step pointer by specifying `ex_reset_page_token`, e.g.
    
      ```python
      subset = gce_driver.ex_list_snapshots(ex_max_results=2):
      while subset:
          # do something with this subset of snapshots...
          subset = gce_driver.ex_list_snapshots(ex_max_results=2)
      gce_driver.ex_list_snapshots(ex_reset_page_token=True)
      ```


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/erjohnso/libcloud GCE_listops

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/libcloud/pull/422.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #422
    
----
commit d9f54153768e45d469bb03a373bcea6ca24bb9bc
Author: Eric Johnson <er...@google.com>
Date:   2014-12-29T22:52:44Z

    [google compute] adding all list params to all list functions

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] libcloud pull request: [google compute] adding all list params to ...

Posted by erjohnso <gi...@git.apache.org>.
Github user erjohnso closed the pull request at:

    https://github.com/apache/libcloud/pull/422


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---