forked from huaweicloud/huaweicloud-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.go
29 lines (22 loc) · 868 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
package policies
import (
"github.com/YoungPioneers/huaweicloud-sdk-go"
)
func ActionURL(c *gophercloud.ServiceClient, scalingPolicyId string) string {
return c.ServiceURL("scaling_policy", scalingPolicyId, "action")
}
func CreateURL(c *gophercloud.ServiceClient) string {
return c.ServiceURL("scaling_policy")
}
func DeleteURL(c *gophercloud.ServiceClient, scalingPolicyId string) string {
return c.ServiceURL("scaling_policy", scalingPolicyId)
}
func GetURL(c *gophercloud.ServiceClient, scalingPolicyId string) string {
return c.ServiceURL("scaling_policy", scalingPolicyId)
}
func ListURL(c *gophercloud.ServiceClient, scalingGroupId string) string {
return c.ServiceURL("scaling_policy", scalingGroupId, "list")
}
func UpdateURL(c *gophercloud.ServiceClient, scalingPolicyId string) string {
return c.ServiceURL("scaling_policy", scalingPolicyId)
}