blob: abea96158999e3f0a7d04e667f52060226f8db1d [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 {
Jamie Hannaford11108402015-02-23 10:31:41 +010018 return c.ServiceURL("datastores", datastoreID, "versions", versionID, "parameters")
Jamie Hannaford23867bb2015-02-17 15:56:48 +010019}
20
21func getDSParamURL(c *gophercloud.ServiceClient, datastoreID, versionID, paramID string) string {
Jamie Hannaford11108402015-02-23 10:31:41 +010022 return c.ServiceURL("datastores", datastoreID, "versions", versionID, "parameters", paramID)
Jamie Hannaford23867bb2015-02-17 15:56:48 +010023}
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}