github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/eps/v1/enterpriseprojects/urls.go (about)

     1  package enterpriseprojects
     2  
     3  import "github.com/chnsz/golangsdk"
     4  
     5  const resourcePath = "enterprise-projects"
     6  
     7  func rootURL(c *golangsdk.ServiceClient) string {
     8  	return c.ServiceURL(resourcePath)
     9  }
    10  
    11  func resourceURL(c *golangsdk.ServiceClient, id string) string {
    12  	return c.ServiceURL(resourcePath, id)
    13  }
    14  
    15  func actionURL(c *golangsdk.ServiceClient, id string) string {
    16  	return c.ServiceURL(resourcePath, id, "action")
    17  }
    18  
    19  func migrateURL(c *golangsdk.ServiceClient, id string) string {
    20  	return c.ServiceURL(resourcePath, id, "resources-migrate")
    21  }
    22  
    23  func resourceFilterURL(c *golangsdk.ServiceClient, id string) string {
    24  	return c.ServiceURL(resourcePath, id, "resources", "filter")
    25  }