github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/cce/v3/nodepools/urls.go (about)

     1  package nodepools
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  const (
     6  	rootPath     = "clusters"
     7  	resourcePath = "nodepools"
     8  )
     9  
    10  func rootURL(c *golangsdk.ServiceClient, clusterid string) string {
    11  	return c.ServiceURL(rootPath, clusterid, resourcePath)
    12  }
    13  
    14  func resourceURL(c *golangsdk.ServiceClient, clusterid, nodepoolid string) string {
    15  	return c.ServiceURL(rootPath, clusterid, resourcePath, nodepoolid)
    16  }