github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/dns/v2/zones/urls.go (about) 1 package zones 2 3 import "github.com/opentelekomcloud/gophertelekomcloud" 4 5 const rootPath = "zones" 6 7 func baseURL(c *golangsdk.ServiceClient) string { 8 return c.ServiceURL(rootPath) 9 } 10 11 func zoneURL(c *golangsdk.ServiceClient, zoneID string) string { 12 return c.ServiceURL(rootPath, zoneID) 13 } 14 15 func associateURL(client *golangsdk.ServiceClient, zoneID string) string { 16 return client.ServiceURL(rootPath, zoneID, "associaterouter") 17 } 18 19 func disassociateURL(client *golangsdk.ServiceClient, zoneID string) string { 20 return client.ServiceURL(rootPath, zoneID, "disassociaterouter") 21 }