github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/evs/v2/cloudvolumes/urls.go (about) 1 package cloudvolumes 2 3 import "github.com/huaweicloud/golangsdk" 4 5 const resourcePath = "cloudvolumes" 6 7 func createURL(c *golangsdk.ServiceClient) string { 8 return c.ServiceURL(resourcePath) 9 } 10 11 func resourceURL(c *golangsdk.ServiceClient, id string) string { 12 return c.ServiceURL(resourcePath, id) 13 } 14 15 func actionURL(c *golangsdk.ServiceClient, id string) string { 16 return c.ServiceURL(resourcePath, id, "action") 17 } 18 19 func listURL(c *golangsdk.ServiceClient) string { 20 return c.ServiceURL(resourcePath, "detail") 21 }