github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/dns/v2/zones/urls.go (about)

     1  package zones
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  func baseURL(c *golangsdk.ServiceClient) string {
     6  	return c.ServiceURL("zones")
     7  }
     8  
     9  func zoneURL(c *golangsdk.ServiceClient, zoneID string) string {
    10  	return c.ServiceURL("zones", zoneID)
    11  }
    12  
    13  func associateURL(client *golangsdk.ServiceClient, zoneID string) string {
    14  	return client.ServiceURL("zones", zoneID, "associaterouter")
    15  }
    16  
    17  func disassociateURL(client *golangsdk.ServiceClient, zoneID string) string {
    18  	return client.ServiceURL("zones", zoneID, "disassociaterouter")
    19  }