Jamie Hannaford | 89f9af2 | 2014-09-17 12:21:48 +0200 | [diff] [blame] | 1 | package subnets |
Jamie Hannaford | 0708c00 | 2014-09-17 16:08:49 +0200 | [diff] [blame] | 2 | |
| 3 | import "github.com/rackspace/gophercloud" |
| 4 | |
| 5 | const Version = "v2.0" |
| 6 | |
| 7 | func ResourceURL(c *gophercloud.ServiceClient, id string) string { |
| 8 | return c.ServiceURL(Version, "subnets", id) |
| 9 | } |
| 10 | |
| 11 | func RootURL(c *gophercloud.ServiceClient) string { |
| 12 | return c.ServiceURL(Version, "subnets") |
| 13 | } |
| 14 | |
| 15 | func ListURL(c *gophercloud.ServiceClient) string { |
| 16 | return RootURL(c) |
| 17 | } |
| 18 | |
| 19 | func GetURL(c *gophercloud.ServiceClient, id string) string { |
| 20 | return ResourceURL(c, id) |
| 21 | } |
Jamie Hannaford | 6363143 | 2014-09-18 11:40:09 +0200 | [diff] [blame] | 22 | |
| 23 | func CreateURL(c *gophercloud.ServiceClient) string { |
| 24 | return RootURL(c) |
| 25 | } |
Jamie Hannaford | d11e20c | 2014-09-18 12:03:01 +0200 | [diff] [blame] | 26 | |
| 27 | func UpdateURL(c *gophercloud.ServiceClient, id string) string { |
| 28 | return ResourceURL(c, id) |
| 29 | } |
| 30 | |
| 31 | func DeleteURL(c *gophercloud.ServiceClient, id string) string { |
| 32 | return ResourceURL(c, id) |
| 33 | } |