github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/compute/v2/extensions/quotasets/urls.go (about)

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