Skip to content

Commit

Permalink
docs(samples): update python-api-walkthrough.md (#308)
Browse files Browse the repository at this point in the history
Enable APIs using gcloud in the Cloud Shell terminal. Update product and links names.

Co-authored-by: meredithslota <meredithslota@google.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people committed Jan 13, 2022
1 parent d00d307 commit 350f252
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions dataproc/snippets/python-api-walkthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Estimated completion time: <walkthrough-tutorial-duration duration="5"></walkthr

This [Cloud Shell](https://cloud.google.com/shell/docs/) walkthrough leads you
through the steps to use the
[Google Cloud Client Libraries for Python](https://googleapis.github.io/google-cloud-python/latest/dataproc/index.html)
[Cloud Client Libraries for Python](https://googleapis.github.io/google-cloud-python/latest/dataproc/index.html)
to programmatically interact with [Dataproc](https://cloud.google.com/dataproc/docs/).

As you follow this walkthrough, you run Python code that calls
Expand All @@ -24,7 +24,7 @@ The `submit_job_to_cluster.py file` used in this walkthrough is opened in the
Cloud Shell editor when you launch the walkthrough. You can view
the code as your follow the walkthrough steps.

**For more information**: See [Dataproc&rarr;Use the Python Client Library](https://cloud.google.com/dataproc/docs/tutorials/python-library-example) for
**For more information**: See [Use the Cloud Client Libraries for Python](https://cloud.google.com/dataproc/docs/tutorials/python-library-example) for
an explanation of how the code works.

**To reload this walkthrough:** Run the following command from the
Expand All @@ -38,16 +38,21 @@ an explanation of how the code works.

## Prerequisites (1)

1. Create or select a Google Cloud Platform project to use for this tutorial.
* <walkthrough-project-billing-setup permissions=""></walkthrough-project-billing-setup>

1. Click the link below to enable the Dataproc, Compute Engine, and Cloud Storage APIs
in a separate GCP console tab in your browser.

**Note:** After you select your project and enable the APIs, return to this tutorial by clicking
on the **Cloud Shell** tab in your browser.

* [Enable APIs](https://console.cloud.google.com/flows/enableapi?apiid=dataproc,compute_component,storage-component.googleapis.com&redirect=https://console.cloud.google.com)
<walkthrough-watcher-constant key="project_id" value="<project_id>"
></walkthrough-watcher-constant>
1. Create or select a Google Cloud project to use for this
tutorial.
* <walkthrough-project-setup billing="true"></walkthrough-project-setup>

1. Enable the Dataproc, Compute Engine, and Cloud Storage APIs in your
project.
```sh
gcloud services enable dataproc.googleapis.com \
compute.googleapis.com \
storage-component.googleapis.com \
--project={{project_id}}
```

## Prerequisites (2)

Expand Down

0 comments on commit 350f252

Please sign in to comment.