Initial commit for Xapp Orchestration
[ric-plt/appmgr.git] / pkg / restful / types.go
index 189962d..7d395f4 100755 (executable)
@@ -22,10 +22,10 @@ package restful
 import (
        "net/http"
 
-       cfgmap "gerrit.oran-osc.org/r/ric-plt/appmgr/pkg/cm"
-       helmer "gerrit.oran-osc.org/r/ric-plt/appmgr/pkg/helm"
-       "gerrit.oran-osc.org/r/ric-plt/appmgr/pkg/restapi/operations"
-       resthook "gerrit.oran-osc.org/r/ric-plt/appmgr/pkg/resthooks"
+       cfgmap "gerrit.o-ran-sc.org/r/ric-plt/appmgr/pkg/cm"
+       helmer "gerrit.o-ran-sc.org/r/ric-plt/appmgr/pkg/helm"
+       "gerrit.o-ran-sc.org/r/ric-plt/appmgr/pkg/restapi/operations"
+       resthook "gerrit.o-ran-sc.org/r/ric-plt/appmgr/pkg/resthooks"
 )
 
 type CmdOptions struct {
@@ -47,3 +47,29 @@ type Restful struct {
        rh    *resthook.Resthook
        ready bool
 }
+
+//Taken from xapp-frame models
+type ConfigMetadata struct {
+
+       // The type of the content
+       // Required: true
+       // Enum: [json xml other]
+       ConfigType *string `json:"configType"`
+
+       // Name of the xApp
+       // Required: true
+       XappName *string `json:"xappName"`
+}
+
+type XAppConfig struct {
+
+       // Configuration in JSON format
+       // Required: true
+       Config interface{} `json:"config"`
+
+       // metadata
+       // Required: true
+       Metadata *ConfigMetadata `json:"metadata"`
+}
+
+type XappConfigList []*XAppConfig