github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/identity/v3.0/policies/urls.go (about) 1 package policies 2 3 import "github.com/huaweicloud/golangsdk" 4 5 const ( 6 rootPath = "OS-ROLE" 7 rolePath = "roles" 8 ) 9 10 func rootURL(client *golangsdk.ServiceClient) string { 11 return client.ServiceURL(rootPath, rolePath) 12 } 13 14 func resourceURL(client *golangsdk.ServiceClient, roleID string) string { 15 return client.ServiceURL(rootPath, rolePath, roleID) 16 } 17 18 func listURL(client *golangsdk.ServiceClient) string { 19 return client.ServiceURL(rootPath, rolePath) 20 }