Brad Ison | 53e997c | 2016-03-26 18:02:05 -0400 | [diff] [blame] | 1 | package policies |
| 2 | |
| 3 | import "github.com/rackspace/gophercloud" |
| 4 | |
| 5 | func listURL(c *gophercloud.ServiceClient, groupID string) string { |
| 6 | return c.ServiceURL("groups", groupID, "policies") |
| 7 | } |
Brad Ison | e7d6dfc | 2016-04-06 14:55:07 -0400 | [diff] [blame] | 8 | |
| 9 | func createURL(c *gophercloud.ServiceClient, groupID string) string { |
| 10 | return c.ServiceURL("groups", groupID, "policies") |
| 11 | } |
Brad Ison | 55523e5 | 2016-04-06 19:25:20 -0400 | [diff] [blame] | 12 | |
| 13 | func getURL(c *gophercloud.ServiceClient, groupID, policyID string) string { |
| 14 | return c.ServiceURL("groups", groupID, "policies", policyID) |
| 15 | } |
Brad Ison | ac037d5 | 2016-04-07 19:41:29 -0400 | [diff] [blame] | 16 | |
| 17 | func updateURL(c *gophercloud.ServiceClient, groupID, policyID string) string { |
| 18 | return getURL(c, groupID, policyID) |
| 19 | } |
Brad Ison | 124df8e | 2016-04-07 19:51:51 -0400 | [diff] [blame] | 20 | |
| 21 | func deleteURL(c *gophercloud.ServiceClient, groupID, policyID string) string { |
| 22 | return getURL(c, groupID, policyID) |
| 23 | } |
Brad Ison | 42f8dfb | 2016-04-07 20:26:06 -0400 | [diff] [blame] | 24 | |
| 25 | func executeURL(c *gophercloud.ServiceClient, groupID, policyID string) string { |
| 26 | return c.ServiceURL("groups", groupID, "policies", policyID, "execute") |
| 27 | } |