github.com/gophercloud/gophercloud@v1.11.0/openstack/blockstorage/v3/qos/urls.go (about) 1 package qos 2 3 import "github.com/gophercloud/gophercloud" 4 5 func getURL(client *gophercloud.ServiceClient, id string) string { 6 return client.ServiceURL("qos-specs", id) 7 } 8 9 func createURL(c *gophercloud.ServiceClient) string { 10 return c.ServiceURL("qos-specs") 11 } 12 13 func listURL(c *gophercloud.ServiceClient) string { 14 return c.ServiceURL("qos-specs") 15 } 16 17 func deleteURL(c *gophercloud.ServiceClient, id string) string { 18 return c.ServiceURL("qos-specs", id) 19 } 20 21 func updateURL(client *gophercloud.ServiceClient, id string) string { 22 return client.ServiceURL("qos-specs", id) 23 } 24 25 func deleteKeysURL(client *gophercloud.ServiceClient, id string) string { 26 return client.ServiceURL("qos-specs", id, "delete_keys") 27 } 28 29 func associateURL(client *gophercloud.ServiceClient, id string) string { 30 return client.ServiceURL("qos-specs", id, "associate") 31 } 32 33 func disassociateURL(client *gophercloud.ServiceClient, id string) string { 34 return client.ServiceURL("qos-specs", id, "disassociate") 35 } 36 37 func disassociateAllURL(client *gophercloud.ServiceClient, id string) string { 38 return client.ServiceURL("qos-specs", id, "disassociate_all") 39 } 40 41 func listAssociationsURL(client *gophercloud.ServiceClient, id string) string { 42 return client.ServiceURL("qos-specs", id, "associations") 43 }