You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ne...@apache.org on 2018/10/25 17:14:15 UTC
[trafficcontrol] branch master updated: added get_origins
get_staticdnsentry from api/1.3
This is an automated email from the ASF dual-hosted git repository.
neuman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 518614e added get_origins get_staticdnsentry from api/1.3
518614e is described below
commit 518614e2abc4fd1b82c32fcd98c75faf8e6cd8ff
Author: tyagian <ty...@husky.neu.edu>
AuthorDate: Tue Oct 23 11:16:53 2018 -0400
added get_origins get_staticdnsentry from api/1.3
---
.../python/trafficops/trafficops/tosession.py | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/traffic_control/clients/python/trafficops/trafficops/tosession.py b/traffic_control/clients/python/trafficops/trafficops/tosession.py
index c807370..13af639 100644
--- a/traffic_control/clients/python/trafficops/trafficops/tosession.py
+++ b/traffic_control/clients/python/trafficops/trafficops/tosession.py
@@ -898,6 +898,27 @@ class TOSession(restapi.RestApiSession):
:raises: Union[trafficops.restapi.LoginError, trafficops.restapi.OperationError]
"""
+ @restapi.api_request(u'get', u'origins', (u'1.3',))
+ def get_origins(self, query_params=None):
+ """
+ Get origins associated with the delivery service
+ :param query_params: The optional url query parameters for the call
+ :type query_params: Dict[Text, Any]
+ :rtype: Tuple[Union[Dict[Text, Any], List[Dict[Text, Any]]], requests.Response]
+ :raises: Union[trafficops.restapi.LoginError, trafficops.restapi.OperationError]
+ """
+
+ @restapi.api_request(u'get', u'staticdnsentries', (u'1.3',))
+ def get_staticdnsentries(self, query_params=None):
+ """
+ Get static DNS entries associated with the delivery service
+ :param query_params: The optional url query parameters for the call
+ :type query_params: Dict[Text, Any]
+ :rtype: Tuple[Union[Dict[Text, Any], List[Dict[Text, Any]]], requests.Response]
+ :raises: Union[trafficops.restapi.LoginError, trafficops.restapi.OperationError]
+ """
+
+
if __name__ == u'__main__':
# Sample usages
import sys