Policy status notification handling - initial rollup
[ric-plt/a1.git] / pkg / restapi / embedded_spec.go
index 067d41d..77ad658 100644 (file)
@@ -314,6 +314,12 @@ func init() {
           "name": "policy_instance_id",
           "in": "path",
           "required": true
+        },
+        {
+          "type": "string",
+          "description": "URL send by non-RT RIC. This where non-RT RIC expects status updates on the policy creation\n",
+          "name": "notificationDestination",
+          "in": "query"
         }
       ]
     },
@@ -333,18 +339,19 @@ func init() {
             "schema": {
               "type": "object",
               "properties": {
-                "created_at": {
+                "enforceReason": {
                   "type": "string",
-                  "format": "date-time"
-                },
-                "has_been_deleted": {
-                  "type": "boolean"
+                  "enum": [
+                    "SCOPE_NOT_APPLICABLE",
+                    "STATEMENT_NOT_APPLICABLE",
+                    "OTHER_REASON"
+                  ]
                 },
-                "instance_status": {
+                "enforceStatus": {
                   "type": "string",
                   "enum": [
-                    "IN EFFECT",
-                    "NOT IN EFFECT"
+                    "ENFORCED",
+                    "NOT_ENFORCED"
                   ]
                 }
               }
@@ -728,6 +735,12 @@ func init() {
           "name": "policy_instance_id",
           "in": "path",
           "required": true
+        },
+        {
+          "type": "string",
+          "description": "URL send by non-RT RIC. This where non-RT RIC expects status updates on the policy creation\n",
+          "name": "notificationDestination",
+          "in": "query"
         }
       ]
     },
@@ -747,18 +760,19 @@ func init() {
             "schema": {
               "type": "object",
               "properties": {
-                "created_at": {
+                "enforceReason": {
                   "type": "string",
-                  "format": "date-time"
-                },
-                "has_been_deleted": {
-                  "type": "boolean"
+                  "enum": [
+                    "SCOPE_NOT_APPLICABLE",
+                    "STATEMENT_NOT_APPLICABLE",
+                    "OTHER_REASON"
+                  ]
                 },
-                "instance_status": {
+                "enforceStatus": {
                   "type": "string",
                   "enum": [
-                    "IN EFFECT",
-                    "NOT IN EFFECT"
+                    "ENFORCED",
+                    "NOT_ENFORCED"
                   ]
                 }
               }