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

     1  package instances
     2  
     3  import (
     4  	"github.com/huaweicloud/golangsdk"
     5  )
     6  
     7  const resourcePath = "scaling_group_instance"
     8  
     9  //getURL will build the querystring by which can be able to query all the instances
    10  //of group
    11  func listURL(client *golangsdk.ServiceClient, groupID string) string {
    12  	return client.ServiceURL(resourcePath, groupID, "list")
    13  }
    14  
    15  //deleteURL will build the query url by which can be able to delete an instance from
    16  //the group
    17  func deleteURL(client *golangsdk.ServiceClient, id string) string {
    18  	return client.ServiceURL(resourcePath, id)
    19  }
    20  
    21  //batchURL will build the query url by which can be able to batch add or delete
    22  //instances
    23  func batchURL(client *golangsdk.ServiceClient, groupID string) string {
    24  	return client.ServiceURL(resourcePath, groupID, "action")
    25  }