blob: 27efb3e2e21c2fe28e92d6dd0c990b390c81f521 [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}