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

     1  package instances
     2  
     3  import "github.com/chnsz/golangsdk"
     4  
     5  const rootPath = "cas/applications"
     6  
     7  func rootURL(client *golangsdk.ServiceClient, appId, componentId string) string {
     8  	return client.ServiceURL(rootPath, appId, "components", componentId, "instances")
     9  }
    10  
    11  func resourceURL(client *golangsdk.ServiceClient, appId, componentId, instanceId string) string {
    12  	return client.ServiceURL(rootPath, appId, "components", componentId, "instances", instanceId)
    13  }
    14  
    15  func actionURL(client *golangsdk.ServiceClient, appId, componentId, instanceId string) string {
    16  	return client.ServiceURL(rootPath, appId, "components", componentId, "instances", instanceId, "action")
    17  }