blob: fe20c53fedd94ad75510b445e122db26a1b4b54f [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}
Jamie Hannafordd11e20c2014-09-18 12:03:01 +020026
27func UpdateURL(c *gophercloud.ServiceClient, id string) string {
28 return ResourceURL(c, id)
29}
30
31func DeleteURL(c *gophercloud.ServiceClient, id string) string {
32 return ResourceURL(c, id)
33}