github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/drs/v2/replications/urls.go (about) 1 package replications 2 3 import "github.com/huaweicloud/golangsdk" 4 5 // endpoint/os-vendor-replications 6 const resourcePath = "os-vendor-replications" 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 // getURL will build the get url of get function 19 func getURL(client *golangsdk.ServiceClient, id string) string { 20 return client.ServiceURL(resourcePath, id) 21 } 22 23 // listURL will build the list url of list function 24 func listURL(client *golangsdk.ServiceClient) string { 25 return client.ServiceURL(resourcePath) 26 }