From 4be40164dad3cf4e1acb1953b527e960459229f8 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Tue, 11 Aug 2020 16:44:07 -0700 Subject: [PATCH] docs: remove example usage from README (#77) --- packages/google-cloud-dataproc/README.rst | 25 +---------------------- 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/packages/google-cloud-dataproc/README.rst b/packages/google-cloud-dataproc/README.rst index bc86bd61454b..2139f87781e1 100644 --- a/packages/google-cloud-dataproc/README.rst +++ b/packages/google-cloud-dataproc/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.