github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/dms/v2/instances/urls.go (about)

     1  package instances
     2  
     3  import "github.com/opentelekomcloud/gophertelekomcloud"
     4  
     5  // endpoint/instances
     6  const resourcePath = "instances"
     7  
     8  // createURL will build the rest query url of creation
     9  func createURL(client *golangsdk.ServiceClient) string {
    10  	return client.ServiceURL(resourcePath)
    11  }
    12  
    13  // deleteURL will build the url of deletion
    14  func deleteURL(client *golangsdk.ServiceClient, id string) string {
    15  	return client.ServiceURL(resourcePath, id)
    16  }
    17  
    18  // updateURL will build the url of update
    19  func updateURL(c *golangsdk.ServiceClient, id string) string {
    20  	return c.ServiceURL(resourcePath, id)
    21  }
    22  
    23  // getURL will build the get url of get function
    24  func getURL(client *golangsdk.ServiceClient, id string) string {
    25  	return client.ServiceURL(resourcePath, id)
    26  }
    27  
    28  func changePasswordURL(client *golangsdk.ServiceClient, id string) string {
    29  	return client.ServiceURL(resourcePath, id, "password")
    30  }
    31  
    32  func crossVpcURL(client *golangsdk.ServiceClient, id string) string {
    33  	return client.ServiceURL(resourcePath, id, "crossvpc/modify")
    34  }