github.com/gophercloud/gophercloud@v1.11.0/openstack/networking/v2/subnets/urls.go (about) 1 package subnets 2 3 import "github.com/gophercloud/gophercloud" 4 5 func resourceURL(c *gophercloud.ServiceClient, id string) string { 6 return c.ServiceURL("subnets", id) 7 } 8 9 func rootURL(c *gophercloud.ServiceClient) string { 10 return c.ServiceURL("subnets") 11 } 12 13 func listURL(c *gophercloud.ServiceClient) string { 14 return rootURL(c) 15 } 16 17 func getURL(c *gophercloud.ServiceClient, id string) string { 18 return resourceURL(c, id) 19 } 20 21 func createURL(c *gophercloud.ServiceClient) string { 22 return rootURL(c) 23 } 24 25 func updateURL(c *gophercloud.ServiceClient, id string) string { 26 return resourceURL(c, id) 27 } 28 29 func deleteURL(c *gophercloud.ServiceClient, id string) string { 30 return resourceURL(c, id) 31 }