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

     1  package applications
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  const rootPath = "instances"
     6  
     7  func rootURL(c *golangsdk.ServiceClient, instanceId string) string {
     8  	return c.ServiceURL(rootPath, instanceId, "apps")
     9  }
    10  
    11  func resourceURL(c *golangsdk.ServiceClient, instanceId, appId string) string {
    12  	return c.ServiceURL(rootPath, instanceId, "apps", appId)
    13  }
    14  
    15  func resetSecretURL(c *golangsdk.ServiceClient, instanceId, appId string) string {
    16  	return c.ServiceURL(rootPath, instanceId, "apps/secret", appId)
    17  }
    18  
    19  func codeURL(c *golangsdk.ServiceClient, instanceId, appId string) string {
    20  	return c.ServiceURL(rootPath, instanceId, "apps", appId, "app-codes")
    21  }
    22  
    23  func codeResourceURL(c *golangsdk.ServiceClient, instanceId, appId, codeId string) string {
    24  	return c.ServiceURL(rootPath, instanceId, "apps", appId, "app-codes", codeId)
    25  }