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