github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/apigw/v2/responses/urls.go (about) 1 package responses 2 3 import ( 4 "fmt" 5 6 "github.com/huaweicloud/golangsdk" 7 ) 8 9 func buildResponsesPath(instanceId, groupId string) string { 10 return fmt.Sprintf("instances/%s/api-groups/%s/gateway-responses", instanceId, groupId) 11 } 12 13 func rootURL(c *golangsdk.ServiceClient, path string) string { 14 return c.ServiceURL(path) 15 } 16 17 func resourceURL(c *golangsdk.ServiceClient, path, respId string) string { 18 return c.ServiceURL(path, respId) 19 } 20 21 func specResponsesURL(c *golangsdk.ServiceClient, path, respId, respType string) string { 22 return c.ServiceURL(path, respId, respType) 23 }