github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/networking/v2/extensions/layer3/routers/urls.go (about)

     1  package routers
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  const resourcePath = "routers"
     6  
     7  func rootURL(c *golangsdk.ServiceClient) string {
     8  	return c.ServiceURL(resourcePath)
     9  }
    10  
    11  func resourceURL(c *golangsdk.ServiceClient, id string) string {
    12  	return c.ServiceURL(resourcePath, id)
    13  }
    14  
    15  func addInterfaceURL(c *golangsdk.ServiceClient, id string) string {
    16  	return c.ServiceURL(resourcePath, id, "add_router_interface")
    17  }
    18  
    19  func removeInterfaceURL(c *golangsdk.ServiceClient, id string) string {
    20  	return c.ServiceURL(resourcePath, id, "remove_router_interface")
    21  }