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

     1  package lifecyclehooks
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  const rootPath = "scaling_lifecycle_hook"
     6  
     7  func rootURL(client *golangsdk.ServiceClient, groupID string) string {
     8  	return client.ServiceURL(rootPath, groupID)
     9  }
    10  
    11  func resourceURL(client *golangsdk.ServiceClient, groupID, hookName string) string {
    12  	return client.ServiceURL(rootPath, groupID, hookName)
    13  }
    14  
    15  func listURL(client *golangsdk.ServiceClient, groupID string) string {
    16  	return client.ServiceURL(rootPath, groupID, "list")
    17  }