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

     1  package groups_hcs
     2  
     3  import (
     4  	"log"
     5  
     6  	"github.com/huaweicloud/golangsdk"
     7  )
     8  
     9  const resourcePath = "scaling_group"
    10  
    11  func createURL(c *golangsdk.ServiceClient) string {
    12  	ur := c.ServiceURL(resourcePath)
    13  	log.Printf("[DEBUG] Create URL is: %#v", ur)
    14  	return ur
    15  }
    16  
    17  func deleteURL(c *golangsdk.ServiceClient, id string) string {
    18  	return c.ServiceURL(resourcePath, id)
    19  }
    20  
    21  func getURL(c *golangsdk.ServiceClient, id string) string {
    22  	return c.ServiceURL(resourcePath, id)
    23  }
    24  
    25  func listURL(c *golangsdk.ServiceClient) string {
    26  	return c.ServiceURL(resourcePath)
    27  }
    28  
    29  func enableURL(c *golangsdk.ServiceClient, id string) string {
    30  	return c.ServiceURL(resourcePath, id, "action")
    31  }
    32  
    33  func updateURL(c *golangsdk.ServiceClient, id string) string {
    34  	return c.ServiceURL(resourcePath, id)
    35  }