github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/networking/v2/bandwidths/urls.go (about) 1 package bandwidths 2 3 import "github.com/opentelekomcloud/gophertelekomcloud" 4 5 const ( 6 resourcePath = "bandwidths" 7 insertPath = "insert" 8 removePath = "remove" 9 ) 10 11 func rootURL(client *golangsdk.ServiceClient) string { 12 return client.ServiceURL(client.ProjectID, resourcePath) 13 } 14 15 func resourceURL(client *golangsdk.ServiceClient, ID string) string { 16 return client.ServiceURL(client.ProjectID, resourcePath, ID) 17 } 18 19 func insertURL(client *golangsdk.ServiceClient, ID string) string { 20 return client.ServiceURL(client.ProjectID, resourcePath, ID, insertPath) 21 } 22 23 func removeURL(client *golangsdk.ServiceClient, ID string) string { 24 return client.ServiceURL(client.ProjectID, resourcePath, ID, removePath) 25 }