-
Notifications
You must be signed in to change notification settings - Fork 7
/
urls.go
24 lines (19 loc) · 902 Bytes
/
urls.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package groups
import (
"github.com/huaweicloud/terraform-provider-hcs/huaweicloudstack/sdk/huaweicloud"
)
// endpoint/queues/{queue_id}/groups
const resourcePathQueues = "queues"
const resourcePathGroups = "groups"
// createURL will build the rest query url of creation
func createURL(client *golangsdk.ServiceClient, queueID string) string {
return client.ServiceURL(client.ProjectID, resourcePathQueues, queueID, resourcePathGroups)
}
// deleteURL will build the url of deletion
func deleteURL(client *golangsdk.ServiceClient, queueID string, groupID string) string {
return client.ServiceURL(client.ProjectID, resourcePathQueues, queueID, resourcePathGroups, groupID)
}
// listURL will build the list url of list function
func listURL(client *golangsdk.ServiceClient, queueID string) string {
return client.ServiceURL(client.ProjectID, resourcePathQueues, queueID, "resourcePathGroups")
}