github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/dws/v1/cluster/urls.go (about)

     1  package cluster
     2  
     3  import "github.com/chnsz/golangsdk"
     4  
     5  const (
     6  	resourcePath = "clusters"
     7  )
     8  
     9  func createURL(c *golangsdk.ServiceClient) string {
    10  	return c.ServiceURL(resourcePath)
    11  }
    12  
    13  func resourceURL(c *golangsdk.ServiceClient, id string) string {
    14  	return c.ServiceURL(resourcePath, id)
    15  }
    16  
    17  func listURL(c *golangsdk.ServiceClient) string {
    18  	return c.ServiceURL(resourcePath)
    19  }
    20  
    21  // resetPasswordURL /v1.0/{project_id}/clusters/{cluster_id}/reset-password
    22  func resetPasswordURL(c *golangsdk.ServiceClient, clusterId string) string {
    23  	return c.ServiceURL(resourcePath, clusterId, "reset-password")
    24  }
    25  
    26  // resizeURL /v1.0/{project_id}/clusters/{cluster_id}/resize
    27  func resizeURL(c *golangsdk.ServiceClient, clusterId string) string {
    28  	return c.ServiceURL(resourcePath, clusterId, "resize")
    29  }