Code Review
/
ric-plt
/
a1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Policy status notification handling - initial rollup
[ric-plt/a1.git]
/
pkg
/
restapi
/
embedded_spec.go
diff --git
a/pkg/restapi/embedded_spec.go
b/pkg/restapi/embedded_spec.go
index
067d41d
..
77ad658
100644
(file)
--- 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
"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": {
"schema": {
"type": "object",
"properties": {
- "
created_at
": {
+ "
enforceReason
": {
"type": "string",
"type": "string",
- "format": "date-time"
- },
- "has_been_deleted": {
- "type": "boolean"
+ "enum": [
+ "SCOPE_NOT_APPLICABLE",
+ "STATEMENT_NOT_APPLICABLE",
+ "OTHER_REASON"
+ ]
},
},
- "
instance_s
tatus": {
+ "
enforceS
tatus": {
"type": "string",
"enum": [
"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
"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": {
"schema": {
"type": "object",
"properties": {
- "
created_at
": {
+ "
enforceReason
": {
"type": "string",
"type": "string",
- "format": "date-time"
- },
- "has_been_deleted": {
- "type": "boolean"
+ "enum": [
+ "SCOPE_NOT_APPLICABLE",
+ "STATEMENT_NOT_APPLICABLE",
+ "OTHER_REASON"
+ ]
},
},
- "
instance_s
tatus": {
+ "
enforceS
tatus": {
"type": "string",
"enum": [
"type": "string",
"enum": [
- "
IN EFFECT
",
- "NOT
IN EFFECT
"
+ "
ENFORCED
",
+ "NOT
_ENFORCED
"
]
}
}
]
}
}