github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/ecs/v1/auto_recovery/urls.go (about) 1 package auto_recovery 2 3 import "github.com/huaweicloud/golangsdk" 4 5 const ( 6 rootPath = "cloudservers" 7 resourcePath = "autorecovery" 8 ) 9 10 func updateURL(c *golangsdk.ServiceClient, id string) string { 11 return c.ServiceURL(rootPath, id, resourcePath) 12 } 13 14 func resourceURL(c *golangsdk.ServiceClient, id string) string { 15 return updateURL(c, id) 16 }