github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/apigw/v2/apigroups/urls.go (about)

     1  package apigroups
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  const rootPath = "instances"
     6  
     7  func rootURL(c *golangsdk.ServiceClient, instanceId string) string {
     8  	return c.ServiceURL(rootPath, instanceId, "api-groups")
     9  }
    10  
    11  func resourceURL(c *golangsdk.ServiceClient, instanceId, groupId string) string {
    12  	return c.ServiceURL(rootPath, instanceId, "api-groups", groupId)
    13  }