forked from G-Core/gcorelabscloud-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.go
43 lines (32 loc) · 1.04 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
package reservedfixedips
import gcorecloud "github.com/alexandrpaliy/gcorelabscloud-go"
func resourceURL(c *gcorecloud.ServiceClient, id string) string {
return c.ServiceURL(id)
}
func rootURL(c *gcorecloud.ServiceClient) string {
return c.ServiceURL()
}
func getURL(c *gcorecloud.ServiceClient, id string) string {
return resourceURL(c, id)
}
func createURL(c *gcorecloud.ServiceClient) string {
return rootURL(c)
}
func listURL(c *gcorecloud.ServiceClient) string {
return rootURL(c)
}
func deleteURL(c *gcorecloud.ServiceClient, id string) string {
return resourceURL(c, id)
}
func switchVIPURL(c *gcorecloud.ServiceClient, id string) string {
return resourceURL(c, id)
}
func connectedDeviceListURL(c *gcorecloud.ServiceClient, id string) string {
return c.ServiceURL(id, "connected_devices")
}
func availableDeviceListURL(c *gcorecloud.ServiceClient, id string) string {
return c.ServiceURL(id, "available_devices")
}
func portsToShareVIPURL(c *gcorecloud.ServiceClient, id string) string {
return c.ServiceURL(id, "connected_devices")
}