blob: 8ee32078f2c19d1b98868a0fc34b14029900b95a [file] [log] [blame]
Brad Ison53e997c2016-03-26 18:02:05 -04001package policies
2
3import "github.com/rackspace/gophercloud"
4
5func listURL(c *gophercloud.ServiceClient, groupID string) string {
6 return c.ServiceURL("groups", groupID, "policies")
7}
Brad Isone7d6dfc2016-04-06 14:55:07 -04008
9func createURL(c *gophercloud.ServiceClient, groupID string) string {
10 return c.ServiceURL("groups", groupID, "policies")
11}
Brad Ison55523e52016-04-06 19:25:20 -040012
13func getURL(c *gophercloud.ServiceClient, groupID, policyID string) string {
14 return c.ServiceURL("groups", groupID, "policies", policyID)
15}
Brad Isonac037d52016-04-07 19:41:29 -040016
17func updateURL(c *gophercloud.ServiceClient, groupID, policyID string) string {
18 return getURL(c, groupID, policyID)
19}
Brad Ison124df8e2016-04-07 19:51:51 -040020
21func deleteURL(c *gophercloud.ServiceClient, groupID, policyID string) string {
22 return getURL(c, groupID, policyID)
23}
Brad Ison42f8dfb2016-04-07 20:26:06 -040024
25func executeURL(c *gophercloud.ServiceClient, groupID, policyID string) string {
26 return c.ServiceURL("groups", groupID, "policies", policyID, "execute")
27}