Skip to content

Commit

Permalink
Fix parameterSensitivities by removing unsupported enum
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelarnauts committed Jun 19, 2024
1 parent 1d52262 commit 72d29b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 0 additions & 7 deletions nipyapi/nifi/models/parameter_group_configuration_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions resources/client_gen/api_defs/nifi-1.23.2.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" : {
Expand Down

0 comments on commit 72d29b4

Please sign in to comment.