blob: 485f97ace0611680e7ed36e83aca26c93f038979 [file] [log] [blame]
Jamie Hannaford89f9af22014-09-17 12:21:48 +02001package subnets
Jamie Hannaford0708c002014-09-17 16:08:49 +02002
3import "github.com/rackspace/gophercloud"
4
5const Version = "v2.0"
6
7func ResourceURL(c *gophercloud.ServiceClient, id string) string {
8 return c.ServiceURL(Version, "subnets", id)
9}
10
11func RootURL(c *gophercloud.ServiceClient) string {
12 return c.ServiceURL(Version, "subnets")
13}
14
15func ListURL(c *gophercloud.ServiceClient) string {
16 return RootURL(c)
17}
18
19func GetURL(c *gophercloud.ServiceClient, id string) string {
20 return ResourceURL(c, id)
21}
Jamie Hannaford63631432014-09-18 11:40:09 +020022
23func CreateURL(c *gophercloud.ServiceClient) string {
24 return RootURL(c)
25}