diff --git a/README.rst b/README.rst index bc86bd61..2139f877 100644 --- a/README.rst +++ b/README.rst @@ -79,29 +79,6 @@ Windows \Scripts\activate \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 ~~~~~~~~~~ @@ -109,4 +86,4 @@ 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. \ No newline at end of file + How-to Guides.