blob: 2cf128b5e2c2ad10a923e8e1c73ededd28515d85 [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}