github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/smn/v2/topics/urls.go (about)

     1  package topics
     2  
     3  import "github.com/chnsz/golangsdk"
     4  
     5  func createURL(c *golangsdk.ServiceClient) string {
     6  	return c.ServiceURL("topics")
     7  }
     8  
     9  func deleteURL(c *golangsdk.ServiceClient, id string) string {
    10  	return c.ServiceURL("topics", id)
    11  }
    12  
    13  func getURL(c *golangsdk.ServiceClient, id string) string {
    14  	return c.ServiceURL("topics", id)
    15  }
    16  
    17  func updateURL(c *golangsdk.ServiceClient, id string) string {
    18  	return c.ServiceURL("topics", id)
    19  }
    20  
    21  func listURL(c *golangsdk.ServiceClient) string {
    22  	return c.ServiceURL("topics")
    23  }
    24  
    25  func getPoliciesURL(c *golangsdk.ServiceClient, id, policyName string) string {
    26  	return c.ServiceURL("topics", id, "attributes?name="+policyName)
    27  }
    28  
    29  func updatePoliciesURL(c *golangsdk.ServiceClient, id, policyName string) string {
    30  	return c.ServiceURL("topics", id, "attributes", policyName)
    31  }