You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "gokulakrishnansvm (via GitHub)" <gi...@apache.org> on 2023/06/26 16:00:11 UTC

[GitHub] [trafficcontrol] gokulakrishnansvm commented on a diff in pull request #7592: Added Api Contract Test case for cdn_notifications endpoint

gokulakrishnansvm commented on code in PR #7592:
URL: https://github.com/apache/trafficcontrol/pull/7592#discussion_r1242417463


##########
traffic_control/clients/python/trafficops/tosession.py:
##########
@@ -559,6 +559,31 @@ def get_cdns_domains(self):
 		:rtype: Tuple[Dict[str, Any], requests.Response]
 		:raises: Union[LoginError, OperationError]
 		"""
+	
+	#
+	# CDN Notifications
+	#
+	@api_request('get', 'cdn_notifications', ('3.0', '4.0', '4.1', '5.0'))

Review Comment:
   Sure.



##########
traffic_control/clients/python/trafficops/tosession.py:
##########
@@ -559,6 +559,31 @@ def get_cdns_domains(self):
 		:rtype: Tuple[Dict[str, Any], requests.Response]
 		:raises: Union[LoginError, OperationError]
 		"""
+	
+	#
+	# CDN Notifications
+	#
+	@api_request('get', 'cdn_notifications', ('3.0', '4.0', '4.1', '5.0'))
+	def get_cdn_notifications(self, query_params=None):
+		"""
+		Get all CDN notifications.
+		:ref:`to-api-cdn-notifications`
+		:param query_params: See API page for more information on accepted parameters
+		:type query_params: Dict[str, Any]
+		:rtype: Tuple[Union[Dict[str, Any], List[Dict[str, Any]]], requests.Response]
+		:raises: Union[LoginError, OperationError]
+		"""
+
+	@api_request('post', 'cdn_notifications', ('3.0', '4.0', '4.1', '5.0'))

Review Comment:
   Sure,



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org