github.com/gophercloud/gophercloud@v1.11.0/openstack/placement/v1/resourceproviders/urls.go (about) 1 package resourceproviders 2 3 import "github.com/gophercloud/gophercloud" 4 5 const ( 6 apiName = "resource_providers" 7 ) 8 9 func resourceProvidersListURL(client *gophercloud.ServiceClient) string { 10 return client.ServiceURL(apiName) 11 } 12 13 func deleteURL(client *gophercloud.ServiceClient, resourceProviderID string) string { 14 return client.ServiceURL(apiName, resourceProviderID) 15 } 16 17 func getURL(client *gophercloud.ServiceClient, resourceProviderID string) string { 18 return client.ServiceURL(apiName, resourceProviderID) 19 } 20 21 func updateURL(client *gophercloud.ServiceClient, resourceProviderID string) string { 22 return client.ServiceURL(apiName, resourceProviderID) 23 } 24 25 func getResourceProviderUsagesURL(client *gophercloud.ServiceClient, resourceProviderID string) string { 26 return client.ServiceURL(apiName, resourceProviderID, "usages") 27 } 28 29 func getResourceProviderInventoriesURL(client *gophercloud.ServiceClient, resourceProviderID string) string { 30 return client.ServiceURL(apiName, resourceProviderID, "inventories") 31 } 32 33 func getResourceProviderAllocationsURL(client *gophercloud.ServiceClient, resourceProviderID string) string { 34 return client.ServiceURL(apiName, resourceProviderID, "allocations") 35 } 36 37 func getResourceProviderTraitsURL(client *gophercloud.ServiceClient, resourceProviderID string) string { 38 return client.ServiceURL(apiName, resourceProviderID, "traits") 39 }