github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/ecs/v1/cloudservers/urls.go (about) 1 package cloudservers 2 3 import "github.com/huaweicloud/golangsdk" 4 5 func createURL(sc *golangsdk.ServiceClient) string { 6 return sc.ServiceURL("cloudservers") 7 } 8 9 func deleteURL(sc *golangsdk.ServiceClient) string { 10 return sc.ServiceURL("cloudservers", "delete") 11 } 12 13 func getURL(sc *golangsdk.ServiceClient, serverID string) string { 14 return sc.ServiceURL("cloudservers", serverID) 15 } 16 17 func resizeURL(sc *golangsdk.ServiceClient, serverID string) string { 18 return sc.ServiceURL("cloudservers", serverID, "resize") 19 } 20 21 func listDetailURL(client *golangsdk.ServiceClient) string { 22 return client.ServiceURL("cloudservers", "detail") 23 } 24 25 func jobURL(sc *golangsdk.ServiceClient, jobId string) string { 26 return sc.ServiceURL("jobs", jobId) 27 } 28 29 func orderURL(sc *golangsdk.ServiceClient, orderId string) string { 30 return sc.ServiceURL(sc.DomainID, "common/order-mgr/orders-resource", orderId) 31 } 32 33 func deleteOrderURL(sc *golangsdk.ServiceClient) string { 34 return sc.ServiceURL(sc.DomainID, "common/order-mgr/resources/delete") 35 }