forked from G-Core/gcorelabscloud-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.go
37 lines (28 loc) · 806 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
32
33
34
35
36
37
package subnets
import (
gcorecloud "github.com/alexandrpaliy/gcorelabscloud-go"
)
func resourceActionURL(c *gcorecloud.ServiceClient, id string, action string) string {
return c.ServiceURL(id, action)
}
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 listURL(c *gcorecloud.ServiceClient) string {
return rootURL(c)
}
func createURL(c *gcorecloud.ServiceClient) string {
return rootURL(c)
}
func updateURL(c *gcorecloud.ServiceClient, id string) string {
return resourceURL(c, id)
}
func deleteURL(c *gcorecloud.ServiceClient, id string) string {
return resourceURL(c, id)
}