github.com/gophercloud/gophercloud@v1.11.0/openstack/compute/v2/flavors/urls.go (about) 1 package flavors 2 3 import ( 4 "github.com/gophercloud/gophercloud" 5 ) 6 7 func getURL(client *gophercloud.ServiceClient, id string) string { 8 return client.ServiceURL("flavors", id) 9 } 10 11 func listURL(client *gophercloud.ServiceClient) string { 12 return client.ServiceURL("flavors", "detail") 13 } 14 15 func createURL(client *gophercloud.ServiceClient) string { 16 return client.ServiceURL("flavors") 17 } 18 19 func updateURL(client *gophercloud.ServiceClient, id string) string { 20 return client.ServiceURL("flavors", id) 21 } 22 23 func deleteURL(client *gophercloud.ServiceClient, id string) string { 24 return client.ServiceURL("flavors", id) 25 } 26 27 func accessURL(client *gophercloud.ServiceClient, id string) string { 28 return client.ServiceURL("flavors", id, "os-flavor-access") 29 } 30 31 func accessActionURL(client *gophercloud.ServiceClient, id string) string { 32 return client.ServiceURL("flavors", id, "action") 33 } 34 35 func extraSpecsListURL(client *gophercloud.ServiceClient, id string) string { 36 return client.ServiceURL("flavors", id, "os-extra_specs") 37 } 38 39 func extraSpecsGetURL(client *gophercloud.ServiceClient, id, key string) string { 40 return client.ServiceURL("flavors", id, "os-extra_specs", key) 41 } 42 43 func extraSpecsCreateURL(client *gophercloud.ServiceClient, id string) string { 44 return client.ServiceURL("flavors", id, "os-extra_specs") 45 } 46 47 func extraSpecUpdateURL(client *gophercloud.ServiceClient, id, key string) string { 48 return client.ServiceURL("flavors", id, "os-extra_specs", key) 49 } 50 51 func extraSpecDeleteURL(client *gophercloud.ServiceClient, id, key string) string { 52 return client.ServiceURL("flavors", id, "os-extra_specs", key) 53 }