github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/deh/v1/hosts/urls.go (about)

     1  package hosts
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  const resourcePath = "dedicated-hosts"
     6  
     7  func rootURL(c *golangsdk.ServiceClient) string {
     8  	return c.ServiceURL(resourcePath)
     9  }
    10  func resourceURL(c *golangsdk.ServiceClient, id string) string {
    11  	return c.ServiceURL(resourcePath, id)
    12  }
    13  func listServerURL(c *golangsdk.ServiceClient, id string) string {
    14  	return c.ServiceURL(resourcePath, id, "servers")
    15  }