-
Notifications
You must be signed in to change notification settings - Fork 7
/
urls.go
23 lines (18 loc) · 993 Bytes
/
urls.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package link
import "github.com/huaweicloud/terraform-provider-hcs/huaweicloudstack/sdk/huaweicloud"
// POST /v1.1/{project_id}/clusters/{cluster_id}/cdm/link
func createLinkURL(c *golangsdk.ServiceClient, clusterId string) string {
return c.ServiceURL("clusters", clusterId, "cdm", "link")
}
// GET /v1.1/{project_id}/clusters/{cluster_id}/cdm/link/{link_name}
func showLinkURL(c *golangsdk.ServiceClient, clusterId string, linkName string) string {
return c.ServiceURL("clusters", clusterId, "cdm", "link", linkName)
}
// PUT /v1.1/{project_id}/clusters/{cluster_id}/cdm/link/{link_name}
func updateLinkURL(c *golangsdk.ServiceClient, clusterId string, linkName string) string {
return c.ServiceURL("clusters", clusterId, "cdm", "link", linkName)
}
// DELETE /v1.1/{project_id}/clusters/{cluster_id}/cdm/link/{link_name}
func deleteLinkURL(c *golangsdk.ServiceClient, clusterId string, linkName string) string {
return c.ServiceURL("clusters", clusterId, "cdm", "link", linkName)
}