github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/blockstorage/v2/snapshots/urls.go (about)

     1  package snapshots
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  func createURL(c *golangsdk.ServiceClient) string {
     6  	return c.ServiceURL("snapshots")
     7  }
     8  
     9  func deleteURL(c *golangsdk.ServiceClient, id string) string {
    10  	return c.ServiceURL("snapshots", id)
    11  }
    12  
    13  func getURL(c *golangsdk.ServiceClient, id string) string {
    14  	return deleteURL(c, id)
    15  }
    16  
    17  func listURL(c *golangsdk.ServiceClient) string {
    18  	return createURL(c)
    19  }
    20  
    21  func metadataURL(c *golangsdk.ServiceClient, id string) string {
    22  	return c.ServiceURL("snapshots", id, "metadata")
    23  }
    24  
    25  func updateMetadataURL(c *golangsdk.ServiceClient, id string) string {
    26  	return metadataURL(c, id)
    27  }