github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/taurusdb/v3/instances/urls.go (about)

     1  package instances
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  func createURL(c *golangsdk.ServiceClient) string {
     6  	return c.ServiceURL("instances")
     7  }
     8  
     9  func deleteURL(c *golangsdk.ServiceClient, instanceID string) string {
    10  	return c.ServiceURL("instances", instanceID)
    11  }
    12  
    13  func getURL(c *golangsdk.ServiceClient, instanceID string) string {
    14  	return c.ServiceURL("instances", instanceID)
    15  }
    16  
    17  func listURL(c *golangsdk.ServiceClient) string {
    18  	return c.ServiceURL("instances")
    19  }
    20  
    21  func enlargeURL(c *golangsdk.ServiceClient, instanceID string) string {
    22  	return c.ServiceURL("instances", instanceID, "nodes/enlarge")
    23  }
    24  
    25  func deleteReplicaURL(c *golangsdk.ServiceClient, instanceID, nodeID string) string {
    26  	return c.ServiceURL("instances", instanceID, "nodes", nodeID)
    27  }
    28  
    29  func nameURL(c *golangsdk.ServiceClient, instanceID string) string {
    30  	return c.ServiceURL("instances", instanceID, "name")
    31  }
    32  
    33  func passwordURL(c *golangsdk.ServiceClient, instanceID string) string {
    34  	return c.ServiceURL("instances", instanceID, "password")
    35  }
    36  
    37  func volumeURL(c *golangsdk.ServiceClient, instanceID string) string {
    38  	return c.ServiceURL("instances", instanceID, "volume/extend")
    39  }
    40  
    41  func proxyURL(c *golangsdk.ServiceClient, instanceID string) string {
    42  	return c.ServiceURL("instances", instanceID, "proxy")
    43  }
    44  
    45  func proxyEnlargeURL(c *golangsdk.ServiceClient, instanceID string) string {
    46  	return c.ServiceURL("instances", instanceID, "proxy/enlarge")
    47  }
    48  
    49  func actionURL(c *golangsdk.ServiceClient, instanceID string) string {
    50  	return c.ServiceURL("instances", instanceID, "action")
    51  }
    52  
    53  func jobURL(sc *golangsdk.ServiceClient, jobId string) string {
    54  	return sc.ServiceURL("jobs?id=" + jobId)
    55  }
    56  
    57  func listDehURL(c *golangsdk.ServiceClient) string {
    58  	return c.ServiceURL("dedicated-resources")
    59  }