You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2011/09/11 21:39:49 UTC
svn commit: r1169509 - /libcloud/trunk/libcloud/dns/base.py
Author: tomaz
Date: Sun Sep 11 19:39:49 2011
New Revision: 1169509
URL: http://svn.apache.org/viewvc?rev=1169509&view=rev
Log:
Add get_zone and get_record method.
Modified:
libcloud/trunk/libcloud/dns/base.py
Modified: libcloud/trunk/libcloud/dns/base.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/dns/base.py?rev=1169509&r1=1169508&r2=1169509&view=diff
==============================================================================
--- libcloud/trunk/libcloud/dns/base.py (original)
+++ libcloud/trunk/libcloud/dns/base.py Sun Sep 11 19:39:49 2011
@@ -133,6 +133,24 @@ class DNSDriver(object):
raise NotImplementedError(
'list_records not implemented for this driver')
+ def get_zone(self, zone_id):
+ """
+ Return a Zone instance.
+
+ @return: C{Zone} instance.
+ """
+ raise NotImplementedError(
+ 'get_zone not implemented for this driver')
+
+ def get_record(self, zone_id, record_id):
+ """
+ Return a Record instance.
+
+ @return: C{Record} instance.
+ """
+ raise NotImplementedError(
+ 'get_record not implemented for this driver')
+
def create_zone(self, type='master', ttl=None, extra=None):
"""
Create a new zone.