github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/dms/v2/rabbitmq/instances/urls.go (about) 1 package instances 2 3 import "github.com/huaweicloud/golangsdk" 4 5 // endpoint/instances 6 const resourcePath = "instances" 7 8 // createURL will build the rest query url of creation 9 func createURL(client *golangsdk.ServiceClient) string { 10 return client.ServiceURL(resourcePath) 11 } 12 13 // deleteURL will build the url of deletion 14 func deleteURL(client *golangsdk.ServiceClient, id string) string { 15 return client.ServiceURL(resourcePath, id) 16 } 17 18 // updateURL will build the url of update 19 func updateURL(c *golangsdk.ServiceClient, id string) string { 20 return c.ServiceURL(resourcePath, id) 21 } 22 23 // getURL will build the get url of get function 24 func getURL(client *golangsdk.ServiceClient, id string) string { 25 return client.ServiceURL(resourcePath, id) 26 } 27 28 func listURL(client *golangsdk.ServiceClient) string { 29 return client.ServiceURL(resourcePath) 30 }