From 8b012753d82e50dcd0dd88f9984e19cb8643fb0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Arnauts?= Date: Fri, 14 Jun 2024 10:45:01 +0200 Subject: [PATCH] Fix parameterSensitivities by removing unsupported enum --- .../nifi/models/parameter_group_configuration_entity.py | 7 ------- resources/client_gen/api_defs/nifi-1.23.2.json | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/nipyapi/nifi/models/parameter_group_configuration_entity.py b/nipyapi/nifi/models/parameter_group_configuration_entity.py index 0bc603b8..d88f6248 100644 --- a/nipyapi/nifi/models/parameter_group_configuration_entity.py +++ b/nipyapi/nifi/models/parameter_group_configuration_entity.py @@ -129,13 +129,6 @@ def parameter_sensitivities(self, parameter_sensitivities): :param parameter_sensitivities: The parameter_sensitivities of this ParameterGroupConfigurationEntity. :type: dict(str, str) """ - allowed_values = ["SENSITIVE", "NON_SENSITIVE"] - if not set(parameter_sensitivities.keys()).issubset(set(allowed_values)): - raise ValueError( - "Invalid keys in `parameter_sensitivities` [{0}], must be a subset of [{1}]" - .format(", ".join(map(str, set(parameter_sensitivities.keys())-set(allowed_values))), - ", ".join(map(str, allowed_values))) - ) self._parameter_sensitivities = parameter_sensitivities diff --git a/resources/client_gen/api_defs/nifi-1.23.2.json b/resources/client_gen/api_defs/nifi-1.23.2.json index 8cb9c648..0558ceab 100644 --- a/resources/client_gen/api_defs/nifi-1.23.2.json +++ b/resources/client_gen/api_defs/nifi-1.23.2.json @@ -18782,8 +18782,7 @@ "type" : "object", "description" : "All fetched parameter names that should be applied.", "additionalProperties" : { - "type" : "string", - "enum" : [ "SENSITIVE", "NON_SENSITIVE" ] + "type" : "string" } }, "synchronized" : {