Skip to content

Commit

Permalink
Added default threshold to plugin result entry.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Aubreville committed Mar 24, 2023
1 parent 0f0375f commit ac0ef81
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions exact_sync/v1/api/processing_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,8 @@ def create_plugin_result_entry_with_http_info(self, **kwargs): # noqa: E501
form_params.append(('name', params['name'])) # noqa: E501
if 'visible' in params:
form_params.append(('visible', params['visible'])) # noqa: E501
if 'default_threshold' in params:
form_params.append(('default_threshold', params['default_threshold'])) # noqa: E501
if 'annotation_results' in params:
form_params.append(('annotation_results', params['annotation_results'])) # noqa: E501
collection_formats['annotation_results'] = 'multi' # noqa: E501
Expand Down Expand Up @@ -1341,6 +1343,7 @@ def partial_update_plugin_result_entry_with_http_info(self, id, **kwargs): # no
'created_time',
'name',
'visible',
'default_threshold',
'annotation_results',
'bitmap_results'] # noqa: E501
all_params.append('async_req')
Expand Down
2 changes: 1 addition & 1 deletion exact_sync/v1/models/plugin_result_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def to_dict(self):
else:
result[attr] = value
if issubclass(PluginResultAnnotation, dict):
for key, value in self.items():
for key, value in self.items(): # type: ignore
result[key] = value

return result
Expand Down
7 changes: 6 additions & 1 deletion exact_sync/v1/models/plugin_result_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class PluginResultEntry(object):
'created_time': 'datetime',
'name': 'str',
'visible': 'bool',
'default_threshold' : 'float',
'annotation_results': 'list[int]',
'bitmap_results': 'list[int]'
}
Expand All @@ -42,11 +43,12 @@ class PluginResultEntry(object):
'created_time': 'created_time',
'name': 'name',
'visible': 'visible',
'default_threshold' : 'default_threshold',
'annotation_results': 'annotation_results',
'bitmap_results': 'bitmap_results'
}

def __init__(self, id=None, pluginresult=None, created_time=None, name=None, visible=None, annotation_results=None, bitmap_results=None): # noqa: E501
def __init__(self, id=None, pluginresult=None, created_time=None, name=None, default_threshold=None, visible=None, annotation_results=None, bitmap_results=None): # noqa: E501
"""PluginResultEntry - a model defined in Swagger""" # noqa: E501
self._id = None
self._pluginresult = None
Expand All @@ -56,6 +58,9 @@ def __init__(self, id=None, pluginresult=None, created_time=None, name=None, vis
self._annotation_results = None
self._bitmap_results = None
self.discriminator = None
self.default_threshold = None
if default_threshold is not None:
self.default_threshold = default_threshold
if id is not None:
self.id = id
self.pluginresult = pluginresult
Expand Down

0 comments on commit ac0ef81

Please sign in to comment.