|
1 | 1 | Python Client for Google Cloud DNS |
2 | 2 | ================================== |
3 | 3 |
|
4 | | - Python idiomatic client for `Google Cloud DNS`_ |
| 4 | +The `Google Cloud DNS`_ API provides methods that you can use to |
| 5 | +manage DNS for your applications. |
5 | 6 |
|
6 | | -.. _Google Cloud DNS: https://cloud.google.com/dns/ |
7 | 7 |
|
8 | 8 | |pypi| |versions| |
9 | 9 |
|
10 | | -- `Documentation`_ |
| 10 | +- `Client Library Documentation`_ |
| 11 | +- `Product Documentation`_ |
11 | 12 |
|
12 | | -.. _Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/dns/usage.html |
| 13 | +.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-dns.svg |
| 14 | + :target: https://pypi.org/project/google-cloud-dns/ |
| 15 | +.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-dns.svg |
| 16 | +.. _Google Cloud DNS: https://cloud.google.com/dns/ |
| 17 | + :target: https://pypi.org/project/google-cloud-dns/ |
| 18 | +.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/dns/index.html |
| 19 | +.. _Product Documentation: https://cloud.google.com/dns/docs/ |
13 | 20 |
|
14 | 21 | Quick Start |
15 | 22 | ----------- |
16 | 23 |
|
17 | | -.. code-block:: console |
| 24 | +In order to use this library, you first need to go through the following steps: |
18 | 25 |
|
19 | | - $ pip install --upgrade google-cloud-dns |
| 26 | +1. `Select or create a Cloud Platform project.`_ |
| 27 | +2. `Enable billing for your project.`_ |
| 28 | +3. `Enable the Google Cloud Datastore API.`_ |
| 29 | +4. `Setup Authentication.`_ |
20 | 30 |
|
21 | | -For more information on setting up your Python development environment, |
22 | | -such as installing ``pip`` and ``virtualenv`` on your system, please refer |
23 | | -to `Python Development Environment Setup Guide`_ for Google Cloud Platform. |
| 31 | +.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project |
| 32 | +.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project |
| 33 | +.. _Enable the Google Cloud Datastore API.: https://cloud.google.com/datastore |
| 34 | +.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html |
24 | 35 |
|
25 | | -.. _Python Development Environment Setup Guide: https://cloud.google.com/python/setup |
| 36 | +Installation |
| 37 | +~~~~~~~~~~~~ |
26 | 38 |
|
27 | | -Authentication |
28 | | --------------- |
| 39 | +Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to |
| 40 | +create isolated Python environments. The basic problem it addresses is one of |
| 41 | +dependencies and versions, and indirectly permissions. |
29 | 42 |
|
30 | | -With ``google-cloud-python`` we try to make authentication as painless as |
31 | | -possible. Check out the `Authentication section`_ in our documentation to |
32 | | -learn more. You may also find the `authentication document`_ shared by all |
33 | | -the ``google-cloud-*`` libraries to be helpful. |
| 43 | +With `virtualenv`_, it's possible to install this library without needing system |
| 44 | +install permissions, and without clashing with the installed system |
| 45 | +dependencies. |
34 | 46 |
|
35 | | -.. _Authentication section: https://google-cloud-python.readthedocs.io/en/latest/core/auth.html |
36 | | -.. _authentication document: https://github.com/GoogleCloudPlatform/google-cloud-common/tree/master/authentication |
| 47 | +.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ |
37 | 48 |
|
38 | | -Using the API |
39 | | -------------- |
40 | 49 |
|
41 | | -The Cloud `DNS`_ API (`DNS API docs`_) provides methods that you can use to |
42 | | -manage DNS for your applications. |
| 50 | +Mac/Linux |
| 51 | +^^^^^^^^^ |
43 | 52 |
|
44 | | -.. _DNS: https://cloud.google.com/dns/ |
45 | | -.. _DNS API docs: https://cloud.google.com/dns/docs/apis |
| 53 | +.. code-block:: console |
46 | 54 |
|
47 | | -See the ``google-cloud-python`` API DNS `Documentation`_ to learn |
48 | | -how to manage DNS records using this Client Library. |
| 55 | + pip install virtualenv |
| 56 | + virtualenv <your-env> |
| 57 | + source <your-env>/bin/activate |
| 58 | + <your-env>/bin/pip install google-cloud-datastore |
49 | 59 |
|
50 | | -.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-dns.svg |
51 | | - :target: https://pypi.org/project/google-cloud-dns/ |
52 | | -.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-dns.svg |
53 | | - :target: https://pypi.org/project/google-cloud-dns/ |
| 60 | +
|
| 61 | +Windows |
| 62 | +^^^^^^^ |
| 63 | + |
| 64 | +.. code-block:: console |
| 65 | +
|
| 66 | + pip install virtualenv |
| 67 | + virtualenv <your-env> |
| 68 | + <your-env>\Scripts\activate |
| 69 | + <your-env>\Scripts\pip.exe install google-cloud-datastore |
| 70 | +
|
| 71 | +
|
| 72 | +Next Steps |
| 73 | +~~~~~~~~~~ |
| 74 | + |
| 75 | +- Read the `Client Library Documentation`_ for Google Cloud DNS |
| 76 | + API to see other available methods on the client. |
| 77 | +- Read the `Product documentation`_ to learn |
| 78 | + more about the product and see How-to Guides. |
0 commit comments