Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
docs: remove example usage from README (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 committed Aug 11, 2020
1 parent 2d36496 commit 66c7af1
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions README.rst
Expand Up @@ -79,34 +79,11 @@ Windows
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install google-cloud-dataproc
Example Usage
~~~~~~~~~~~~~

.. code:: py
from google.cloud import dataproc_v1
client = dataproc_v1.ClusterControllerClient()
project_id = ''
region = ''
# Iterate over all results
for element in client.list_clusters(project_id, region):
# process element
pass
# Or iterate over results one page at a time
for page in client.list_clusters(project_id, region).pages:
for element in page:
# process element
pass
Next Steps
~~~~~~~~~~

- Read the `Client Library Documentation`_ for Google Cloud Dataproc API
API to see other available methods on the client.
- Read the `Product documentation`_ to learn more about the product and see
How-to Guides.
How-to Guides.

0 comments on commit 66c7af1

Please sign in to comment.