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

     1  package link
     2  
     3  import "github.com/chnsz/golangsdk"
     4  
     5  // POST /v1.1/{project_id}/clusters/{cluster_id}/cdm/link
     6  func createLinkURL(c *golangsdk.ServiceClient, clusterId string) string {
     7  	return c.ServiceURL("clusters", clusterId, "cdm", "link")
     8  }
     9  
    10  // GET /v1.1/{project_id}/clusters/{cluster_id}/cdm/link/{link_name}
    11  func showLinkURL(c *golangsdk.ServiceClient, clusterId string, linkName string) string {
    12  	return c.ServiceURL("clusters", clusterId, "cdm", "link", linkName)
    13  }
    14  
    15  // PUT /v1.1/{project_id}/clusters/{cluster_id}/cdm/link/{link_name}
    16  func updateLinkURL(c *golangsdk.ServiceClient, clusterId string, linkName string) string {
    17  	return c.ServiceURL("clusters", clusterId, "cdm", "link", linkName)
    18  }
    19  
    20  // DELETE /v1.1/{project_id}/clusters/{cluster_id}/cdm/link/{link_name}
    21  func deleteLinkURL(c *golangsdk.ServiceClient, clusterId string, linkName string) string {
    22  	return c.ServiceURL("clusters", clusterId, "cdm", "link", linkName)
    23  }