github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/csbs/v1/backup/urls.go (about)

     1  package backup
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  const rootPath = "providers"
     6  const ProviderID = "fc4d5750-22e7-4798-8a46-f48f62c4c1da"
     7  
     8  func rootURL(c *golangsdk.ServiceClient, resourceid string) string {
     9  	return c.ServiceURL(rootPath, ProviderID, "resources", resourceid, "action")
    10  }
    11  
    12  func resourceURL(c *golangsdk.ServiceClient) string {
    13  	return c.ServiceURL(rootPath, ProviderID, "resources", "action")
    14  }
    15  
    16  func getURL(c *golangsdk.ServiceClient, checkpoint_item_id string) string {
    17  	return c.ServiceURL("checkpoint_items", checkpoint_item_id)
    18  }
    19  
    20  func deleteURL(c *golangsdk.ServiceClient, checkpoint_id string) string {
    21  	return c.ServiceURL(rootPath, ProviderID, "checkpoints", checkpoint_id)
    22  }
    23  
    24  func listURL(c *golangsdk.ServiceClient) string {
    25  	return c.ServiceURL("checkpoint_items")
    26  }