blob: 4d4c244df1e273f25e5c073f39ad8fc7902d8929 [file] [log] [blame]
Jamie Hannaforded7f4532015-02-17 14:56:30 +01001package configurations
2
3import "github.com/rackspace/gophercloud"
4
5func baseURL(c *gophercloud.ServiceClient) string {
6 return c.ServiceURL("configurations")
7}
8
9func resourceURL(c *gophercloud.ServiceClient, configID string) string {
10 return c.ServiceURL("configurations", configID)
11}
12
13func instancesURL(c *gophercloud.ServiceClient, configID string) string {
14 return c.ServiceURL("configurations", configID, "instances")
15}
Jamie Hannaford23867bb2015-02-17 15:56:48 +010016
17func listDSParamsURL(c *gophercloud.ServiceClient, datastoreID, versionID string) string {
18 return c.ServiceURL("datastores", dsID, "versions", versionID, "parameters")
19}
20
21func getDSParamURL(c *gophercloud.ServiceClient, datastoreID, versionID, paramID string) string {
22 return c.ServiceURL("datastores", dsID, "versions", versionID, "parameters", paramID)
23}
24
25func listGlobalParamsURL(c *gophercloud.ServiceClient, versionID string) string {
26 return c.ServiceURL("datastores", "versions", versionID, "parameters")
27}
28
29func getGlobalParamURL(c *gophercloud.ServiceClient, versionID, paramID string) string {
30 return c.ServiceURL("datastores", "versions", versionID, "parameters", paramID)
31}