github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/iec/v1/servers/urls.go (about)

     1  package servers
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  func rootURL(client *golangsdk.ServiceClient) string {
     6  	return client.ServiceURL("cloudservers")
     7  }
     8  
     9  // getURL get iec server detail url
    10  func getURL(sc *golangsdk.ServiceClient, serverID string) string {
    11  	return sc.ServiceURL("cloudservers", serverID)
    12  }
    13  
    14  // updateURL get iec server update url
    15  func updateURL(sc *golangsdk.ServiceClient, serverID string) string {
    16  	return sc.ServiceURL("cloudservers", serverID)
    17  }
    18  
    19  func deleteAllServersURL(sc *golangsdk.ServiceClient) string {
    20  	return sc.ServiceURL("cloudservers", "delete")
    21  }