Skip to content

Commit 388d29b

Browse files
committed
Merge pull request #71 from Marchowes/TrafficDirector_Improvements
Traffic director improvements 1.6.1
2 parents 55924ff + cb25c01 commit 388d29b

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

HISTORY.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Release History
22
---------------
3+
4+
1.6.1 (2016-2-11)
5+
*Added UNKNOWN record type
6+
*DSF records status getter added
7+
38
1.6.0 (2016-1-28)
49
+++++++++++++++++
510
*DSF service objects can now be independently Created, Updated, Read, and Deleted.

dyn/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
66
Requires Python 2.6 or higher, or the "simplejson" package.
77
"""
8-
version_info = (1, 6, 0)
8+
version_info = (1, 6, 1)
99
__name__ = 'dyn'
1010
__doc__ = 'A python wrapper for the DynDNS and DynEmail APIs'
11-
__author__ = 'Jonathan Nappi, Cole Tuininga'
11+
__author__ = 'Jonathan Nappi, Cole Tuininga, Marc Howes'
1212
__version__ = '.'.join([str(x) for x in version_info])
1313
__maintainer__ = 'Marc Howes'
1414
__email__ = '[email protected]'

dyn/tm/services/dsf.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def __init__(self, label=None, weight=1, automation='auto', endpoints=None,
194194
self._endpoint_up_count = endpoint_up_count
195195
self._eligible = eligible
196196
self._service_id = self._dsf_record_set_id = self.uri = None
197-
self._dsf_record_id = None
197+
self._dsf_record_id = self._status = None
198198
self._implicitPublish = True
199199
for key, val in kwargs.items():
200200
setattr(self, '_' + key, val)
@@ -408,6 +408,13 @@ def eligible(self, value):
408408
if self._implicitPublish:
409409
self._eligible = value
410410

411+
@property
412+
def status(self):
413+
"""Status of Record"""
414+
self.refresh()
415+
return self._status
416+
417+
411418
def to_json(self, svc_id=None, skip_svc=False):
412419
"""Convert this DSFRecord to a json blob"""
413420

@@ -437,11 +444,11 @@ def to_json(self, svc_id=None, skip_svc=False):
437444

438445
@property
439446
def implicitPublish(self):
447+
"Toggle for this specific :class:`DSFRecord` for turning on and off implicit Publishing for record Updates."
440448
return self._implicitPublish
441449

442450
@implicitPublish.setter
443451
def implicitPublish(self, value):
444-
"Toggle for this specific :class:`DSFRecord` for turning on and off implicit Publishing for record Updates."
445452
if value != True and value != False:
446453
raise Exception('Value must be True or False')
447454
self._implicitPublish = value
@@ -1737,11 +1744,11 @@ def record_set_id(self):
17371744

17381745
@property
17391746
def implicitPublish(self):
1747+
"Toggle for this specific :class:`DSFRecordSet` for turning on and off implicit Publishing for record Updates."
17401748
return self._implicitPublish
17411749

17421750
@implicitPublish.setter
17431751
def implicitPublish(self, value):
1744-
"Toggle for this specific :class:`DSFRecordSet` for turning on and off implicit Publishing for record Updates."
17451752
if value != True and value != False:
17461753
raise Exception('Value must be True or False')
17471754
self._implicitPublish = value
@@ -2003,11 +2010,11 @@ def failover_chain_id(self):
20032010

20042011
@property
20052012
def implicitPublish(self):
2013+
"Toggle for this specific :class:`DSFFailoverChain` for turning on and off implicit Publishing for record Updates."
20062014
return self._implicitPublish
20072015

20082016
@implicitPublish.setter
20092017
def implicitPublish(self, value):
2010-
"Toggle for this specific :class:`DSFFailoverChain` for turning on and off implicit Publishing for record Updates."
20112018
if value != True and value != False:
20122019
raise Exception('Value must be True or False')
20132020
self._implicitPublish = value
@@ -2262,11 +2269,11 @@ def to_json(self, svc_id=None, skip_svc=False):
22622269

22632270
@property
22642271
def implicitPublish(self):
2272+
"Toggle for this specific :class:`DSFResponsePool` for turning on and off implicit Publishing for record Updates."
22652273
return self._implicitPublish
22662274

22672275
@implicitPublish.setter
22682276
def implicitPublish(self, value):
2269-
"Toggle for this specific :class:`DSFResponsePool` for turning on and off implicit Publishing for record Updates."
22702277
if value != True and value != False:
22712278
raise Exception('Value must be True or False')
22722279
self._implicitPublish = value
@@ -2560,11 +2567,11 @@ def ruleset_id(self):
25602567

25612568
@property
25622569
def implicitPublish(self):
2570+
"Toggle for this specific :class:`DSFRuleset` for turning on and off implicit Publishing for record Updates."
25632571
return self._implicitPublish
25642572

25652573
@implicitPublish.setter
25662574
def implicitPublish(self, value):
2567-
"Toggle for this specific :class:`DSFRuleset` for turning on and off implicit Publishing for record Updates."
25682575
if value != True and value != False:
25692576
raise Exception('Value must be True or False')
25702577
self._implicitPublish = value
@@ -3435,11 +3442,11 @@ def ttl(self, value):
34353442

34363443
@property
34373444
def implicitPublish(self):
3445+
"Toggle for this specific :class:`TrafficDirector` for turning on and off implicit Publishing for record Updates."
34383446
return self._implicitPublish
34393447

34403448
@implicitPublish.setter
34413449
def implicitPublish(self, value):
3442-
"Toggle for this specific :class:`TrafficDirector` for turning on and off implicit Publishing for record Updates."
34433450
if value != True and value != False:
34443451
raise Exception('Value must be True or False')
34453452
self._implicitPublish = value

0 commit comments

Comments
 (0)