X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Frestapi%2Fembedded_spec.go;fp=pkg%2Frestapi%2Fembedded_spec.go;h=77ad658172152edf583149efb79c634cb1abde49;hb=5152bd39551f19139752d89a795327ca9dd189db;hp=067d41d7b5189e38d8b499eaccfec1d8f0dbf9da;hpb=272fb5b36779f68a944ca317fa6a6159da0128e3;p=ric-plt%2Fa1.git diff --git a/pkg/restapi/embedded_spec.go b/pkg/restapi/embedded_spec.go index 067d41d..77ad658 100644 --- a/pkg/restapi/embedded_spec.go +++ b/pkg/restapi/embedded_spec.go @@ -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" ] } }