github.com/gophercloud/gophercloud@v1.11.0/openstack/networking/v2/extensions/quotas/urls.go (about)

     1  package quotas
     2  
     3  import "github.com/gophercloud/gophercloud"
     4  
     5  const resourcePath = "quotas"
     6  const resourcePathDetail = "details.json"
     7  
     8  func resourceURL(c *gophercloud.ServiceClient, projectID string) string {
     9  	return c.ServiceURL(resourcePath, projectID)
    10  }
    11  
    12  func resourceDetailURL(c *gophercloud.ServiceClient, projectID string) string {
    13  	return c.ServiceURL(resourcePath, projectID, resourcePathDetail)
    14  }
    15  
    16  func getURL(c *gophercloud.ServiceClient, projectID string) string {
    17  	return resourceURL(c, projectID)
    18  }
    19  
    20  func getDetailURL(c *gophercloud.ServiceClient, projectID string) string {
    21  	return resourceDetailURL(c, projectID)
    22  }
    23  
    24  func updateURL(c *gophercloud.ServiceClient, projectID string) string {
    25  	return resourceURL(c, projectID)
    26  }