Skip to content

Commit

Permalink
Merge pull request #1160 from tseaver/dns-add_api_docs
Browse files Browse the repository at this point in the history
Add DNS API docs
  • Loading branch information
tseaver committed Sep 30, 2015
2 parents b5c6085 + 5946e66 commit ee835e9
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 4 deletions.
7 changes: 7 additions & 0 deletions docs/dns-changes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Change Sets
~~~~~~~~~~~

.. automodule:: gcloud.dns.changes
:members:
:undoc-members:
:show-inheritance:
15 changes: 15 additions & 0 deletions docs/dns-client.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
DNS Client
==========

.. automodule:: gcloud.dns.client
:members:
:undoc-members:
:show-inheritance:

Connection
~~~~~~~~~~

.. automodule:: gcloud.dns.connection
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/dns-resource_record_set.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Resource Record Sets
~~~~~~~~~~~~~~~~~~~~

.. automodule:: gcloud.dns.resource_record_set
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/dns-zone.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Managed Zones
~~~~~~~~~~~~~

.. automodule:: gcloud.dns.zone
:members:
:undoc-members:
:show-inheritance:
4 changes: 4 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
:caption: DNS

dns-usage
Client <dns-client>
dns-zone
dns-resource_record_set
dns-changes

.. toctree::
:maxdepth: 0
Expand Down
8 changes: 4 additions & 4 deletions gcloud/dns/changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def additions(self):
"""Resource record sets to be added to the zone.
:rtype: sequence of
:class:`gcloud.dns.resource_record_set.ResourceRecordSet'.
:class:`gcloud.dns.resource_record_set.ResourceRecordSet`.
:returns: record sets appended via :meth:`add_record_set`
"""
return self._additions
Expand All @@ -139,7 +139,7 @@ def deletions(self):
"""Resource record sets to be deleted from the zone.
:rtype: sequence of
:class:`gcloud.dns.resource_record_set.ResourceRecordSet'.
:class:`gcloud.dns.resource_record_set.ResourceRecordSet`.
:returns: record sets appended via :meth:`delete_record_set`
"""
return self._deletions
Expand All @@ -148,7 +148,7 @@ def add_record_set(self, record_set):
"""Append a record set to the 'additions' for the change set.
:type record_set:
:class:`gcloud.dns.resource_record_set.ResourceRecordSet'
:class:`gcloud.dns.resource_record_set.ResourceRecordSet`
:param record_set: the record set to append
:raises: ``ValueError`` if ``record_set`` is not of the required type.
Expand All @@ -161,7 +161,7 @@ def delete_record_set(self, record_set):
"""Append a record set to the 'deletions' for the change set.
:type record_set:
:class:`gcloud.dns.resource_record_set.ResourceRecordSet'
:class:`gcloud.dns.resource_record_set.ResourceRecordSet`
:param record_set: the record set to append
:raises: ``ValueError`` if ``record_set`` is not of the required type.
Expand Down

0 comments on commit ee835e9

Please sign in to comment.