github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/dms/v1/groups/urls.go (about)

     1  package groups
     2  
     3  import (
     4  	"github.com/chnsz/golangsdk"
     5  )
     6  
     7  // endpoint/queues/{queue_id}/groups
     8  const resourcePathQueues = "queues"
     9  const resourcePathGroups = "groups"
    10  
    11  // createURL will build the rest query url of creation
    12  func createURL(client *golangsdk.ServiceClient, queueID string) string {
    13  	return client.ServiceURL(client.ProjectID, resourcePathQueues, queueID, resourcePathGroups)
    14  }
    15  
    16  // deleteURL will build the url of deletion
    17  func deleteURL(client *golangsdk.ServiceClient, queueID string, groupID string) string {
    18  	return client.ServiceURL(client.ProjectID, resourcePathQueues, queueID, resourcePathGroups, groupID)
    19  }
    20  
    21  // listURL will build the list url of list function
    22  func listURL(client *golangsdk.ServiceClient, queueID string) string {
    23  	return client.ServiceURL(client.ProjectID, resourcePathQueues, queueID, "resourcePathGroups")
    24  }