github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/identity/v3/users/urls.go (about) 1 package users 2 3 import "github.com/huaweicloud/golangsdk" 4 5 func listURL(client *golangsdk.ServiceClient) string { 6 return client.ServiceURL("users") 7 } 8 9 func getURL(client *golangsdk.ServiceClient, userID string) string { 10 return client.ServiceURL("users", userID) 11 } 12 13 func createURL(client *golangsdk.ServiceClient) string { 14 return client.ServiceURL("users") 15 } 16 17 func updateURL(client *golangsdk.ServiceClient, userID string) string { 18 return client.ServiceURL("users", userID) 19 } 20 21 func deleteURL(client *golangsdk.ServiceClient, userID string) string { 22 return client.ServiceURL("users", userID) 23 } 24 25 func listGroupsURL(client *golangsdk.ServiceClient, userID string) string { 26 return client.ServiceURL("users", userID, "groups") 27 } 28 29 func listProjectsURL(client *golangsdk.ServiceClient, userID string) string { 30 return client.ServiceURL("users", userID, "projects") 31 } 32 33 func listInGroupURL(client *golangsdk.ServiceClient, groupID string) string { 34 return client.ServiceURL("groups", groupID, "users") 35 } 36 37 func membershipURL(client *golangsdk.ServiceClient, groupID string, userID string) string { 38 return client.ServiceURL("groups", groupID, "users", userID) 39 }