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

     1  package eips
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  const resourcePath = "publicips"
     6  
     7  func rootURL(client *golangsdk.ServiceClient) string {
     8  	return client.ServiceURL(client.ProjectID, resourcePath)
     9  }
    10  
    11  func resourceURL(client *golangsdk.ServiceClient, id string) string {
    12  	return client.ServiceURL(client.ProjectID, resourcePath, id)
    13  }
    14  
    15  func listURL(client *golangsdk.ServiceClient) string {
    16  	return client.ServiceURL(client.ProjectID, resourcePath)
    17  }