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

     1  package nics
     2  
     3  import (
     4  	"github.com/huaweicloud/golangsdk"
     5  )
     6  
     7  func listURL(client *golangsdk.ServiceClient, serverId string) string {
     8  	return client.ServiceURL("servers", serverId, "os-interface")
     9  }
    10  
    11  func getURL(client *golangsdk.ServiceClient, serverId string, Id string) string {
    12  	return client.ServiceURL("servers", serverId, "os-interface", Id)
    13  }