+# VNF PKG OPERATIONS
+vnfpkgop_new_schema = {
+ "title": "VNF PKG operation creation input schema",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "lcmOperationType": string_schema,
+ "vnfPkgId": id_schema,
+ "kdu_name": name_schema,
+ "primitive": name_schema,
+ "primitive_params": {"type": "object"},
+ },
+ "required": [
+ "lcmOperationType",
+ "vnfPkgId",
+ "kdu_name",
+ "primitive",
+ "primitive_params",
+ ],
+ "additionalProperties": False,
+}
+
+clustercreation_new_schema = {
+ "title": "cluster creation operation input schema",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "name": name_schema,
+ "vim_account": string_schema,
+ "k8s_version": string_schema,
+ "node_size": string_schema,
+ "node_count": integer0_schema,
+ "description": string_schema,
+ "region_name": string_schema,
+ "resource_group": string_schema,
+ "infra_controller_profiles": shortname_schema,
+ "infra_config_profiles": shortname_schema,
+ "resource_profiles": shortname_schema,
+ "app_profiles": shortname_schema,
+ },
+ "required": [
+ "name",
+ "vim_account",
+ "k8s_version",
+ "node_size",
+ "node_count",
+ "description",
+ ],
+ "additionalProperties": False,
+}
+
+infra_controller_profile_create_new_schema = {
+ "title": "infra profile creation operation input schema",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "name": name_schema,
+ "description": string_schema,
+ },
+ "additionalProperties": False,
+}
+
+infra_controller_profile_create_edit_schema = {
+ "title": "infra profile creation operation input schema",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "name": name_schema,
+ "description": string_schema,
+ },
+ "additionalProperties": False,
+}
+
+infra_config_profile_create_new_schema = {
+ "title": "infra profile creation operation input schema",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "name": name_schema,
+ "description": string_schema,
+ },
+ "additionalProperties": False,
+}
+
+infra_config_profile_create_edit_schema = {
+ "title": "infra profile creation operation input schema",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "name": name_schema,
+ "description": string_schema,
+ },
+ "additionalProperties": False,
+}
+
+app_profile_create_new_schema = {
+ "title": "app profile creation operation input schema",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "name": name_schema,
+ "description": string_schema,
+ },
+ "additionalProperties": False,
+}
+app_profile_create_edit_schema = {
+ "title": "app profile creation operation input schema",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "name": name_schema,
+ "description": string_schema,
+ },
+ "additionalProperties": False,
+}
+
+resource_profile_create_new_schema = {
+ "title": "resource profile creation operation input schema",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "name": name_schema,
+ "description": string_schema,
+ },
+ "additionalProperties": False,
+}
+resource_profile_create_edit_schema = {
+ "title": "resource profile creation operation input schema",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "name": name_schema,
+ "description": string_schema,
+ },
+ "additionalProperties": False,
+}
+
+attach_profile = {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {"id": id_schema},
+ "additionalProperties": False,
+ },
+}
+remove_profile = {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {"id": id_schema},
+ "additionalProperties": False,
+ },
+}
+attach_dettach_profile_schema = {
+ "title": "attach/dettach profiles",