-
Notifications
You must be signed in to change notification settings - Fork 6
/
urls.go
31 lines (23 loc) · 844 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
24
25
26
27
28
29
30
31
package domains
import "github.com/huaweicloud/terraform-provider-hcs/huaweicloudstack/sdk/huaweicloud"
const (
rootPath = "cdn/domains"
)
func createURL(sc *golangsdk.ServiceClient) string {
return sc.ServiceURL(rootPath)
}
func deleteURL(sc *golangsdk.ServiceClient, domainId string) string {
return sc.ServiceURL(rootPath, domainId)
}
func getURL(sc *golangsdk.ServiceClient, domainId string) string {
return sc.ServiceURL(rootPath, domainId, "detail")
}
func enableURL(sc *golangsdk.ServiceClient, domainId string) string {
return sc.ServiceURL(rootPath, domainId, "enable")
}
func disableURL(sc *golangsdk.ServiceClient, domainId string) string {
return sc.ServiceURL(rootPath, domainId, "disable")
}
func originURL(sc *golangsdk.ServiceClient, domainId string) string {
return sc.ServiceURL(rootPath, domainId, "origin")
}