github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/networking/v2/bandwidths/urls.go (about) 1 package bandwidths 2 3 import "github.com/chnsz/golangsdk" 4 5 func PostURL(c *golangsdk.ServiceClient) string { 6 return c.ServiceURL(c.ProjectID, "bandwidths") 7 } 8 9 func BatchPostURL(c *golangsdk.ServiceClient) string { 10 return c.ServiceURL(c.ProjectID, "batch-bandwidths") 11 } 12 func UpdateURL(c *golangsdk.ServiceClient, ID string) string { 13 return c.ServiceURL(c.ProjectID, "bandwidths", ID) 14 } 15 16 func changeToPeriodURL(c *golangsdk.ServiceClient) string { 17 return c.ServiceURL(c.ProjectID, "bandwidths", "change-to-period") 18 } 19 20 func DeleteURL(c *golangsdk.ServiceClient, ID string) string { 21 return c.ServiceURL(c.ProjectID, "bandwidths", ID) 22 } 23 24 func InsertURL(c *golangsdk.ServiceClient, ID string) string { 25 return c.ServiceURL(c.ProjectID, "bandwidths", ID, "insert") 26 } 27 28 func RemoveURL(c *golangsdk.ServiceClient, ID string) string { 29 return c.ServiceURL(c.ProjectID, "bandwidths", ID, "remove") 30 }