blob: 19a21aa90da9144c4df3bfa1e9d5d9432d055f53 [file] [log] [blame]
Jon Perritt24270c42014-10-21 21:11:04 -05001package networks
2
3import "github.com/rackspace/gophercloud"
4
5func resourceURL(c *gophercloud.ServiceClient, id string) string {
Jon Perritt44b1ea22014-10-22 00:13:23 -05006 return c.ServiceURL("os-networksv2", id)
Jon Perritt24270c42014-10-21 21:11:04 -05007}
8
9func rootURL(c *gophercloud.ServiceClient) string {
Jon Perritt44b1ea22014-10-22 00:13:23 -050010 return c.ServiceURL("os-networksv2")
Jon Perritt24270c42014-10-21 21:11:04 -050011}
12
13func getURL(c *gophercloud.ServiceClient, id string) string {
Jon Perritt44b1ea22014-10-22 00:13:23 -050014 return resourceURL(c, id)
Jon Perritt24270c42014-10-21 21:11:04 -050015}
16
17func listURL(c *gophercloud.ServiceClient) string {
Jon Perritt44b1ea22014-10-22 00:13:23 -050018 return rootURL(c)
Jon Perritt24270c42014-10-21 21:11:04 -050019}
20
21func createURL(c *gophercloud.ServiceClient) string {
Jon Perritt44b1ea22014-10-22 00:13:23 -050022 return rootURL(c)
Jon Perritt24270c42014-10-21 21:11:04 -050023}
24
25func deleteURL(c *gophercloud.ServiceClient, id string) string {
Jon Perritt44b1ea22014-10-22 00:13:23 -050026 return resourceURL(c, id)
Jon Perritt24270c42014-10-21 21:11:04 -050027}