X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fvalidation.py;h=620272f5ec3eeed4dddc9754490452d22ae68888;hp=4dafed5dc66497486da89a2f58b8629fffd3d417;hb=HEAD;hpb=536bb568cd1c79d16d36cd13bdd20d167337d30d diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index 4dafed5..620272f 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -641,6 +641,23 @@ ns_verticalscale = { "additionalProperties": False, } +nslcmop_cancel = { + "title": "Cancel nslcmop input schema", + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "nsLcmOpOccId": id_schema, + "cancelMode": { + "enum": [ + "GRACEFUL", + "FORCEFUL", + ] + }, + }, + "required": ["cancelMode"], + "additionalProperties": False, +} + schema_version = {"type": "string", "enum": ["1.0"]} schema_type = {"type": "string"} vim_type = shortname_schema # {"enum": ["openstack", "openvim", "vmware", "opennebula", "aws", "azure", "fos"]} @@ -815,12 +832,11 @@ k8scluster_deploy_method_schema = { "title": "Deployment methods for K8s cluster", "type": "object", "properties": { - "helm-chart": {"type": "boolean"}, "juju-bundle": {"type": "boolean"}, "helm-chart-v3": {"type": "boolean"}, }, "additionalProperties": False, - "minProperties": 3, + "minProperties": 2, } k8scluster_nets_schema = { "title": "k8scluster nets input schema", @@ -930,6 +946,10 @@ k8srepo_properties = { "description": description_schema, "type": k8srepo_types, "url": description_schema, + "cacert": long_description_schema, + "user": string_schema, + "password": passwd_schema, + "oci": bool_schema, } k8srepo_new_schema = { "title": "k8scluster creation input schema",