github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/smn/v2/subscriptions/urls.go (about)

     1  package subscriptions
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  func createURL(c *golangsdk.ServiceClient, topicUrn string) string {
     6  	return c.ServiceURL("topics", topicUrn, "subscriptions")
     7  }
     8  
     9  func deleteURL(c *golangsdk.ServiceClient, subscriptionUrn string) string {
    10  	return c.ServiceURL("subscriptions", subscriptionUrn)
    11  }
    12  
    13  func listURL(c *golangsdk.ServiceClient) string {
    14  	return c.ServiceURL("subscriptions?offset=0&limit=100")
    15  }
    16  
    17  func listFromTopicURL(c *golangsdk.ServiceClient, topicUrn string) string {
    18  	return c.ServiceURL("topics", topicUrn, "subscriptions?offset=0&limit=100")
    19  }