zrhoffman commented on code in PR #7459:
URL: https://github.com/apache/trafficcontrol/pull/7459#discussion_r1192850380


##########
experimental/traffic-portal/src/app/api/cdn.service.ts:
##########
@@ -119,4 +119,16 @@ export class CDNService extends APIService {
 
                return this.put<ResponseCDN>(`cdns/${id}`, body).toPromise();
        }
+
+       /**
+        * Queues or dequeues updates on a CDN's servers.
+        *
+        * @param cdn The CDN to queue or dequeue updates on.
+        * @param action The action to perform on the CDN, either "queue" or 
"dequeue".
+        */
+       public async queueCDNUpdates(cdn: ResponseCDN, action: "queue" | 
"dequeue"): Promise<CDNQueueResponse> {
+               const path = `cdns/${cdn.id}/queue_update`;
+               const request: CDNQueueRequest = {action};
+               return this.post<CDNQueueResponse>(path, request).toPromise();
+       }

Review Comment:
   Added a `queueCDNUpdates()` test in 979020a30b



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to