github.com/gophercloud/gophercloud@v1.11.0/openstack/compute/v2/extensions/quotasets/urls.go (about) 1 package quotasets 2 3 import "github.com/gophercloud/gophercloud" 4 5 const resourcePath = "os-quota-sets" 6 7 func resourceURL(c *gophercloud.ServiceClient) string { 8 return c.ServiceURL(resourcePath) 9 } 10 11 func getURL(c *gophercloud.ServiceClient, tenantID string) string { 12 return c.ServiceURL(resourcePath, tenantID) 13 } 14 15 func getDetailURL(c *gophercloud.ServiceClient, tenantID string) string { 16 return c.ServiceURL(resourcePath, tenantID, "detail") 17 } 18 19 func updateURL(c *gophercloud.ServiceClient, tenantID string) string { 20 return getURL(c, tenantID) 21 } 22 23 func deleteURL(c *gophercloud.ServiceClient, tenantID string) string { 24 return getURL(c, tenantID) 25 }