blob: 80b86b324f3e43c4d6f9497e7b2f82803645af3c [file] [log] [blame]
Michal Kobusf6113582019-09-09 15:58:21 +02001package ports
2
3import "gerrit.mcp.mirantis.net/debian/gophercloud.git"
4
5func createURL(client *gophercloud.ServiceClient) string {
6 return client.ServiceURL("ports")
7}
8
9func listURL(client *gophercloud.ServiceClient) string {
10 return createURL(client)
11}
12
13func listDetailURL(client *gophercloud.ServiceClient) string {
14 return client.ServiceURL("ports", "detail")
15}
16
17func resourceURL(client *gophercloud.ServiceClient, id string) string {
18 return client.ServiceURL("ports", id)
19}
20
21func deleteURL(client *gophercloud.ServiceClient, id string) string {
22 return resourceURL(client, id)
23}
24
25func getURL(client *gophercloud.ServiceClient, id string) string {
26 return resourceURL(client, id)
27}
28
29func updateURL(client *gophercloud.ServiceClient, id string) string {
30 return resourceURL(client, id)
31}