github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/networking/v1/subnets/urls.go (about) 1 package subnets 2 3 import "github.com/huaweicloud/golangsdk" 4 5 const ( 6 resourcePath = "subnets" 7 rootpath = "vpcs" 8 ) 9 10 func rootURL(c *golangsdk.ServiceClient) string { 11 return c.ServiceURL(c.ProjectID, resourcePath) 12 } 13 14 func resourceURL(c *golangsdk.ServiceClient, id string) string { 15 return c.ServiceURL(c.ProjectID, resourcePath, id) 16 } 17 18 func updateURL(c *golangsdk.ServiceClient, vpcid, id string) string { 19 return c.ServiceURL(c.ProjectID, rootpath, vpcid, resourcePath, id) 20 }