github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/networking/v2/extensions/rbacpolicies/urls.go (about)

     1  package rbacpolicies
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  func resourceURL(c *golangsdk.ServiceClient, id string) string {
     6  	return c.ServiceURL("rbac-policies", id)
     7  }
     8  
     9  func rootURL(c *golangsdk.ServiceClient) string {
    10  	return c.ServiceURL("rbac-policies")
    11  }
    12  
    13  func createURL(c *golangsdk.ServiceClient) string {
    14  	return rootURL(c)
    15  }
    16  
    17  func listURL(c *golangsdk.ServiceClient) string {
    18  	return rootURL(c)
    19  }
    20  
    21  func getURL(c *golangsdk.ServiceClient, id string) string {
    22  	return resourceURL(c, id)
    23  }
    24  
    25  func deleteURL(c *golangsdk.ServiceClient, id string) string {
    26  	return resourceURL(c, id)
    27  }
    28  
    29  func updateURL(c *golangsdk.ServiceClient, id string) string {
    30  	return resourceURL(c, id)
    31  }