github.com/gophercloud/gophercloud@v1.11.0/openstack/dns/v2/transfer/request/urls.go (about)

     1  package request
     2  
     3  import "github.com/gophercloud/gophercloud"
     4  
     5  const (
     6  	rootPath     = "zones"
     7  	tasksPath    = "tasks"
     8  	resourcePath = "transfer_requests"
     9  )
    10  
    11  func baseURL(c *gophercloud.ServiceClient) string {
    12  	return c.ServiceURL(rootPath, tasksPath, resourcePath)
    13  }
    14  
    15  func createURL(c *gophercloud.ServiceClient, zoneID string) string {
    16  	return c.ServiceURL(rootPath, zoneID, tasksPath, resourcePath)
    17  }
    18  
    19  func resourceURL(c *gophercloud.ServiceClient, transferID string) string {
    20  	return c.ServiceURL(rootPath, tasksPath, resourcePath, transferID)
    21  }