github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/networking/v2/extensions/subnetpools/urls.go (about) 1 package subnetpools 2 3 import "github.com/huaweicloud/golangsdk" 4 5 const resourcePath = "subnetpools" 6 7 func resourceURL(c *golangsdk.ServiceClient, id string) string { 8 return c.ServiceURL(resourcePath, id) 9 } 10 11 func rootURL(c *golangsdk.ServiceClient) string { 12 return c.ServiceURL(resourcePath) 13 } 14 15 func listURL(c *golangsdk.ServiceClient) string { 16 return rootURL(c) 17 } 18 19 func getURL(c *golangsdk.ServiceClient, id string) string { 20 return resourceURL(c, id) 21 } 22 23 func createURL(c *golangsdk.ServiceClient) string { 24 return rootURL(c) 25 } 26 27 func updateURL(c *golangsdk.ServiceClient, id string) string { 28 return resourceURL(c, id) 29 } 30 31 func deleteURL(c *golangsdk.ServiceClient, id string) string { 32 return resourceURL(c, id) 33 }