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

     1  package maintainwindows
     2  
     3  import (
     4  	"strings"
     5  
     6  	"github.com/huaweicloud/golangsdk"
     7  )
     8  
     9  // endpoint/instances/maintain-windows
    10  const resourcePath = "instances/maintain-windows"
    11  
    12  // getURL will build the get url of get function
    13  func getURL(client *golangsdk.ServiceClient) string {
    14  	// remove projectid from endpoint
    15  	return strings.Replace(client.ServiceURL(resourcePath), "/"+client.ProjectID, "", -1)
    16  }