Brad Ison | 366a7a0 | 2016-03-27 17:06:21 -0400 | [diff] [blame] | 1 | package webhooks |
| 2 | |
| 3 | import "github.com/rackspace/gophercloud" |
| 4 | |
| 5 | func listURL(c *gophercloud.ServiceClient, groupID, policyID string) string { |
| 6 | return c.ServiceURL("groups", groupID, "policies", policyID, "webhooks") |
| 7 | } |
Brad Ison | e6e0ec1 | 2016-03-27 21:26:46 -0400 | [diff] [blame] | 8 | |
| 9 | func createURL(c *gophercloud.ServiceClient, groupID, policyID string) string { |
| 10 | return c.ServiceURL("groups", groupID, "policies", policyID, "webhooks") |
| 11 | } |
Brad Ison | 20644be | 2016-03-28 19:13:05 -0400 | [diff] [blame] | 12 | |
| 13 | func getURL(c *gophercloud.ServiceClient, groupID, policyID, webhookID string) string { |
| 14 | return c.ServiceURL("groups", groupID, "policies", policyID, "webhooks", webhookID) |
| 15 | } |
Brad Ison | d9ebfb9 | 2016-03-28 21:11:17 -0400 | [diff] [blame] | 16 | |
| 17 | func updateURL(c *gophercloud.ServiceClient, groupID, policyID, webhookID string) string { |
| 18 | return getURL(c, groupID, policyID, webhookID) |
| 19 | } |
Brad Ison | b5d5548 | 2016-03-29 13:19:14 -0400 | [diff] [blame^] | 20 | |
| 21 | func deleteURL(c *gophercloud.ServiceClient, groupID, policyID, webhookID string) string { |
| 22 | return getURL(c, groupID, policyID, webhookID) |
| 23 | } |