github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/dli/v2/batches/urls.go (about)

     1  package batches
     2  
     3  import "github.com/chnsz/golangsdk"
     4  
     5  const rootPath = "batches"
     6  
     7  func rootURL(c *golangsdk.ServiceClient) string {
     8  	return c.ServiceURL(rootPath)
     9  }
    10  
    11  func resourceURL(c *golangsdk.ServiceClient, batchId string) string {
    12  	return c.ServiceURL(rootPath, batchId)
    13  }
    14  
    15  func stateURL(c *golangsdk.ServiceClient, batchId string) string {
    16  	return c.ServiceURL(rootPath, batchId, "state")
    17  }
    18  
    19  func logURL(c *golangsdk.ServiceClient, batchId string) string {
    20  	return c.ServiceURL(rootPath, batchId, "log")
    21  }