blob: fba476df3322ccf268781d69f2bb9bf4d1444553 [file] [log] [blame]
Joe Topjianc9fb21b2015-02-22 05:55:48 +00001package servergroups
2
Krzysztof Szukiełojć3f41d082017-05-07 14:43:06 +02003import "gerrit.mcp.mirantis.net/debian/gophercloud.git"
Joe Topjianc9fb21b2015-02-22 05:55:48 +00004
5const resourcePath = "os-server-groups"
6
7func resourceURL(c *gophercloud.ServiceClient) string {
8 return c.ServiceURL(resourcePath)
9}
10
11func listURL(c *gophercloud.ServiceClient) string {
12 return resourceURL(c)
13}
14
15func createURL(c *gophercloud.ServiceClient) string {
16 return resourceURL(c)
17}
18
19func getURL(c *gophercloud.ServiceClient, id string) string {
20 return c.ServiceURL(resourcePath, id)
21}
22
23func deleteURL(c *gophercloud.ServiceClient, id string) string {
24 return getURL(c, id)
25}