Content-Length: 624766 | pFad | http://github.com/googleapis/google-cloud-python/commit/0abfc262b29f2c4b46032c40334c7c5b6123e68b

27 Dataproc: harmonize / DRY 'README.rst' / 'docs/index.rst'. · googleapis/google-cloud-python@0abfc26 · GitHub
Skip to content

Commit 0abfc26

Browse files
committed
Dataproc: harmonize / DRY 'README.rst' / 'docs/index.rst'.
Toward #5912.
1 parent 316e4cb commit 0abfc26

File tree

3 files changed

+25
-117
lines changed

3 files changed

+25
-117
lines changed

dataproc/README.rst

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
Python Client for Google Cloud Dataproc API (`Alpha`_)
22
======================================================
33

4+
|pypi| |versions|
5+
46
`Google Cloud Dataproc API`_: Manages Hadoop-based clusters and jobs on Google Cloud Platform.
57

68
- `Client Library Documentation`_
79
- `Product Documentation`_
810

911
.. _Alpha: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst
12+
.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-dataproc.svg
13+
:target: https://pypi.org/project/google-cloud-dataproc/
14+
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-dataproc.svg
15+
:target: https://pypi.org/project/google-cloud-dataproc/
1016
.. _Google Cloud Dataproc API: https://cloud.google.com/dataproc
1117
.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/dataproc/usage.html
1218
.. _Product Documentation: https://cloud.google.com/dataproc
@@ -61,11 +67,8 @@ Windows
6167
<your-env>\Scripts\activate
6268
<your-env>\Scripts\pip.exe install google-cloud-dataproc
6369
64-
Preview
65-
~~~~~~~
66-
67-
ClusterControllerClient
68-
^^^^^^^^^^^^^^^^^^^^^^^
70+
Example Usage
71+
~~~~~~~~~~~~~
6972

7073
.. code:: py
7174
@@ -93,10 +96,5 @@ Next Steps
9396

9497
- Read the `Client Library Documentation`_ for Google Cloud Dataproc API
9598
API to see other available methods on the client.
96-
- Read the `Google Cloud Dataproc API Product documentation`_ to learn
97-
more about the product and see How-to Guides.
98-
- View this `repository’s main README`_ to see the full list of Cloud
99-
APIs that we cover.
100-
101-
.. _Google Cloud Dataproc API Product documentation: https://cloud.google.com/dataproc
102-
.. _repository’s main README: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst
99+
- Read the `Product documentation`_ to learn more about the product and see
100+
How-to Guides.

dataproc/docs/changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../dataproc/CHANGELOG.md
1+
../CHANGELOG.md

dataproc/docs/index.rst

Lines changed: 14 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,23 @@
1-
Python Client for Google Cloud Dataproc API (`Alpha`_)
2-
======================================================
1+
.. include:: /../dataproc/README.rst
32

4-
`Google Cloud Dataproc API`_: Manages Hadoop-based clusters and jobs on Google Cloud Platform.
53

6-
- `Client Library Documentation`_
7-
- `Product Documentation`_
8-
9-
.. _Alpha: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst
10-
.. _Google Cloud Dataproc API: https://cloud.google.com/dataproc
11-
.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/dataproc/usage.html
12-
.. _Product Documentation: https://cloud.google.com/dataproc
13-
14-
Quick Start
15-
-----------
16-
17-
In order to use this library, you first need to go through the following steps:
18-
19-
1. `Select or create a Cloud Platform project.`_
20-
2. `Enable billing for your project.`_
21-
3. `Enable the Google Cloud Dataproc API.`_
22-
4. `Setup Authentication.`_
23-
24-
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
25-
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
26-
.. _Enable the Google Cloud Dataproc API.: https://cloud.google.com/dataproc
27-
.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html
28-
29-
Installation
30-
~~~~~~~~~~~~
31-
32-
Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to
33-
create isolated Python environments. The basic problem it addresses is one of
34-
dependencies and versions, and indirectly permissions.
35-
36-
With `virtualenv`_, it's possible to install this library without needing system
37-
install permissions, and without clashing with the installed system
38-
dependencies.
39-
40-
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
41-
42-
43-
Mac/Linux
44-
^^^^^^^^^
45-
46-
.. code-block:: console
47-
48-
pip install virtualenv
49-
virtualenv <your-env>
50-
source <your-env>/bin/activate
51-
<your-env>/bin/pip install google-cloud-dataproc
52-
53-
54-
Windows
55-
^^^^^^^
56-
57-
.. code-block:: console
58-
59-
pip install virtualenv
60-
virtualenv <your-env>
61-
<your-env>\Scripts\activate
62-
<your-env>\Scripts\pip.exe install google-cloud-dataproc
63-
64-
Preview
65-
~~~~~~~
66-
67-
ClusterControllerClient
68-
^^^^^^^^^^^^^^^^^^^^^^^
69-
70-
.. code:: py
71-
72-
from google.cloud import dataproc_v1
73-
74-
client = dataproc_v1.ClusterControllerClient()
75-
76-
project_id = ''
77-
region = ''
78-
79-
80-
# Iterate over all results
81-
for element in client.list_clusters(project_id, region):
82-
# process element
83-
pass
4+
API Reference
5+
-------------
6+
.. toctree::
7+
:maxdepth: 2
848

85-
# Or iterate over results one page at a time
86-
for page in client.list_clusters(project_id, region, options=CallOptions(page_token=INITIAL_PAGE)):
87-
for element in page:
88-
# process element
89-
pass
9+
gapic/v1/api
10+
gapic/v1/types
11+
gapic/v1beta2/api
12+
gapic/v1beta2/types
9013

91-
Next Steps
92-
~~~~~~~~~~
9314

94-
- Read the `Client Library Documentation`_ for Google Cloud Dataproc API
95-
API to see other available methods on the client.
96-
- Read the `Google Cloud Dataproc API Product documentation`_ to learn
97-
more about the product and see How-to Guides.
98-
- View this `repository’s main README`_ to see the full list of Cloud
99-
APIs that we cover.
15+
Changelog
16+
---------
10017

101-
.. _Google Cloud Dataproc API Product documentation: https://cloud.google.com/dataproc
102-
.. _repository’s main README: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst
18+
For a list of all ``google-cloud-dataproc`` releases:
10319

104-
Api Reference
105-
-------------
10620
.. toctree::
107-
:maxdepth: 2
21+
:maxdepth: 2
10822

109-
gapic/v1/api
110-
gapic/v1/types
111-
gapic/v1beta2/api
112-
gapic/v1beta2/types
113-
changelog
23+
changelog

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/googleapis/google-cloud-python/commit/0abfc262b29f2c4b46032c40334c7c5b6123e68b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy