github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/workspace/v2/desktops/urls.go (about)

     1  package desktops
     2  
     3  import "github.com/chnsz/golangsdk"
     4  
     5  func rootURL(c *golangsdk.ServiceClient) string {
     6  	return c.ServiceURL("desktops")
     7  }
     8  
     9  func resourceURL(c *golangsdk.ServiceClient, desktopId string) string {
    10  	return c.ServiceURL("desktops", desktopId)
    11  }
    12  
    13  func productURL(c *golangsdk.ServiceClient) string {
    14  	return c.ServiceURL("desktops/resize")
    15  }
    16  
    17  func volumeURL(c *golangsdk.ServiceClient) string {
    18  	return c.ServiceURL("volumes")
    19  }
    20  
    21  func volumeExpandURL(c *golangsdk.ServiceClient) string {
    22  	return c.ServiceURL("volumes/expand")
    23  }
    24  
    25  func rebuildURL(c *golangsdk.ServiceClient) string {
    26  	return c.ServiceURL("desktops/rebuild")
    27  }
    28  
    29  func eipsURL(c *golangsdk.ServiceClient) string {
    30  	return c.ServiceURL("eips")
    31  }
    32  
    33  func bindEipURL(c *golangsdk.ServiceClient, bindType string) string {
    34  	return c.ServiceURL("eips", bindType)
    35  }
    36  
    37  func networkURL(c *golangsdk.ServiceClient, desktopId string) string {
    38  	return c.ServiceURL("desktops", desktopId, "networks")
    39  }
    40  
    41  func actionURL(c *golangsdk.ServiceClient) string {
    42  	return c.ServiceURL("desktops/action")
    43  }