blob: 0efb90f6dc8fb77e79e53915788c586df78c2608 [file] [log] [blame]
Brad Ison366a7a02016-03-27 17:06:21 -04001package webhooks
2
3import "github.com/rackspace/gophercloud"
4
5func listURL(c *gophercloud.ServiceClient, groupID, policyID string) string {
6 return c.ServiceURL("groups", groupID, "policies", policyID, "webhooks")
7}
Brad Isone6e0ec12016-03-27 21:26:46 -04008
9func createURL(c *gophercloud.ServiceClient, groupID, policyID string) string {
10 return c.ServiceURL("groups", groupID, "policies", policyID, "webhooks")
11}
Brad Ison20644be2016-03-28 19:13:05 -040012
13func getURL(c *gophercloud.ServiceClient, groupID, policyID, webhookID string) string {
14 return c.ServiceURL("groups", groupID, "policies", policyID, "webhooks", webhookID)
15}
Brad Isond9ebfb92016-03-28 21:11:17 -040016
17func updateURL(c *gophercloud.ServiceClient, groupID, policyID, webhookID string) string {
18 return getURL(c, groupID, policyID, webhookID)
19}