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

     1  package whitelists
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  const resourcePath = "instance"
     6  
     7  // resourceURL will build the url of put and get request url
     8  // url: client.Endpoint/instance/{instance_id}/whitelist
     9  func resourceURL(client *golangsdk.ServiceClient, id string) string {
    10  	return client.ServiceURL(resourcePath, id, "whitelist")
    11  }