github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/identity/v3/policies/urls.go (about)

     1  package policies
     2  
     3  import (
     4  	"github.com/opentelekomcloud/gophertelekomcloud"
     5  )
     6  
     7  const (
     8  	rootPath            = "roles"
     9  	openstackPolicyPath = "OS-ROLE"
    10  )
    11  
    12  func listURL(client *golangsdk.ServiceClient) string {
    13  	return client.ServiceURL(openstackPolicyPath, rootPath)
    14  }
    15  
    16  func getURL(client *golangsdk.ServiceClient, roleId string) string {
    17  	return client.ServiceURL(openstackPolicyPath, rootPath, roleId)
    18  }
    19  
    20  func createURL(client *golangsdk.ServiceClient) string {
    21  	return client.ServiceURL(openstackPolicyPath, rootPath)
    22  }
    23  
    24  func updateURL(client *golangsdk.ServiceClient, roleId string) string {
    25  	return client.ServiceURL(openstackPolicyPath, rootPath, roleId)
    26  }
    27  
    28  func deleteURL(client *golangsdk.ServiceClient, roleId string) string {
    29  	return client.ServiceURL(openstackPolicyPath, rootPath, roleId)
    30  }