Joe Topjian | c21202d | 2015-02-27 21:32:58 +0000 | [diff] [blame] | 1 | package tenantnetworks |
| 2 | |
Jon Perritt | 27249f4 | 2016-02-18 10:35:59 -0600 | [diff] [blame^] | 3 | import "github.com/gophercloud/gophercloud" |
Joe Topjian | c21202d | 2015-02-27 21:32:58 +0000 | [diff] [blame] | 4 | |
| 5 | const resourcePath = "os-tenant-networks" |
| 6 | |
| 7 | func resourceURL(c *gophercloud.ServiceClient) string { |
| 8 | return c.ServiceURL(resourcePath) |
| 9 | } |
| 10 | |
| 11 | func listURL(c *gophercloud.ServiceClient) string { |
| 12 | return resourceURL(c) |
| 13 | } |
| 14 | |
| 15 | func getURL(c *gophercloud.ServiceClient, id string) string { |
| 16 | return c.ServiceURL(resourcePath, id) |
| 17 | } |