github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/dcs/v1/availablezones/urls.go (about) 1 package availablezones 2 3 import ( 4 "strings" 5 6 "github.com/huaweicloud/golangsdk" 7 ) 8 9 // endpoint/availablezones 10 const resourcePath = "availableZones" 11 12 // getURL will build the get url of get function 13 func getURL(client *golangsdk.ServiceClient) string { 14 // remove projectid from endpoint 15 return strings.Replace(client.ServiceURL(resourcePath), "/"+client.ProjectID, "", -1) 16 }