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

Commit 66c7af1

Browse files
authored
docs: remove example usage from README (#77)
1 parent 2d36496 commit 66c7af1

1 file changed

Lines changed: 1 addition & 24 deletions

File tree

README.rst

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -79,34 +79,11 @@ Windows
7979
<your-env>\Scripts\activate
8080
<your-env>\Scripts\pip.exe install google-cloud-dataproc
8181
82-
Example Usage
83-
~~~~~~~~~~~~~
84-
85-
.. code:: py
86-
87-
from google.cloud import dataproc_v1
88-
89-
client = dataproc_v1.ClusterControllerClient()
90-
91-
project_id = ''
92-
region = ''
93-
94-
95-
# Iterate over all results
96-
for element in client.list_clusters(project_id, region):
97-
# process element
98-
pass
99-
100-
# Or iterate over results one page at a time
101-
for page in client.list_clusters(project_id, region).pages:
102-
for element in page:
103-
# process element
104-
pass
10582
10683
Next Steps
10784
~~~~~~~~~~
10885

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

0 commit comments

Comments
 (0)