blob: f5432e1518c009af284df0395c582744f341d782 [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}
Brad Isonb5d55482016-03-29 13:19:14 -040020
21func deleteURL(c *gophercloud.ServiceClient, groupID, policyID, webhookID string) string {
22 return getURL(c, groupID, policyID, webhookID)
23}