diff --git a/CHANGELOG.md b/CHANGELOG.md index 34e146f..536e20f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ [1]: https://pypi.org/project/demisto-py/#history +## 2.0.14 +Fixed an issue where the attribute mapping for the `search_incidents` model was incorrectly looking for `incidents` not `data`. + ## 2.0.13 * Fixed the `filter` parameter in `search_incidents` method to be required as specified in the API. diff --git a/demisto_client/demisto_api/api/default_api.py b/demisto_client/demisto_api/api/default_api.py index ac4ce39..9645774 100644 --- a/demisto_client/demisto_api/api/default_api.py +++ b/demisto_client/demisto_api/api/default_api.py @@ -3814,7 +3814,6 @@ def import_classifier(self, file, **kwargs): # noqa: E501 """ with open(file, 'r') as classifier_json_file: data = classifier_json_file.read() - classifier_data_json = json.loads(data) classifier_id = classifier_data_json.get('id') kwargs['_return_http_data_only'] = True @@ -6105,7 +6104,7 @@ def search_incidents(self, filter, **kwargs): # noqa: E501 :param async_req bool :param SearchIncidentsData filter: (required) - :return: Incident + :return: InlineResponse200 If the method is called asynchronously, returns the request thread. """ @@ -6127,7 +6126,7 @@ def search_incidents_with_http_info(self, filter, **kwargs): # noqa: E501 :param async_req bool :param SearchIncidentsData filter: (required) - :return: Incident + :return: InlineResponse200 If the method is called asynchronously, returns the request thread. """ @@ -6185,7 +6184,7 @@ def search_incidents_with_http_info(self, filter, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='Incident', # noqa: E501 + response_type='InlineResponse200', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/demisto_client/demisto_api/models/inline_response200.py b/demisto_client/demisto_api/models/inline_response200.py index c2fd908..976bfeb 100644 --- a/demisto_client/demisto_api/models/inline_response200.py +++ b/demisto_client/demisto_api/models/inline_response200.py @@ -33,47 +33,47 @@ class InlineResponse200(object): and the value is json key in definition. """ swagger_types = { - 'incidents': 'list[Incident]', + 'data': 'list[Incident]', 'total': 'int' } attribute_map = { - 'incidents': 'incidents', + 'data': 'data', 'total': 'total' } - def __init__(self, incidents=None, total=None): # noqa: E501 + def __init__(self, data=None, total=None): # noqa: E501 """InlineResponse200 - a model defined in Swagger""" # noqa: E501 - self._incidents = None + self._data = None self._total = None self.discriminator = None - if incidents is not None: - self.incidents = incidents + if data is not None: + self.data = data if total is not None: self.total = total @property - def incidents(self): - """Gets the incidents of this InlineResponse200. # noqa: E501 + def data(self): + """Gets the data of this InlineResponse200. # noqa: E501 - :return: The incidents of this InlineResponse200. # noqa: E501 + :return: The data of this InlineResponse200. # noqa: E501 :rtype: list[Incident] """ - return self._incidents + return self._data - @incidents.setter - def incidents(self, incidents): - """Sets the incidents of this InlineResponse200. + @data.setter + def data(self, data): + """Sets the data of this InlineResponse200. - :param incidents: The incidents of this InlineResponse200. # noqa: E501 + :param data: The data of this InlineResponse200. # noqa: E501 :type: list[Incident] """ - self._incidents = incidents + self._data = data @property def total(self): diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index ae0ed25..c7f8511 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -2116,6 +2116,8 @@ from pprint import pprint api_instance = demisto_client.configure(base_url="https://YOUR_DEMISTO_SERVER", api_key="YOUR_API_KEY") file = '/path/to/file.txt' # file | file +type = 'type_example' # str | associated typeID for the layout +kind = 'kind_example' # str | layout kind details try: # Import a layout diff --git a/docs/ExpirationPolicy.md b/docs/ExpirationPolicy.md new file mode 100644 index 0000000..b188e91 --- /dev/null +++ b/docs/ExpirationPolicy.md @@ -0,0 +1,9 @@ +# ExpirationPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/ExpirationSettingsSource.md b/docs/ExpirationSettingsSource.md new file mode 100644 index 0000000..67516a4 --- /dev/null +++ b/docs/ExpirationSettingsSource.md @@ -0,0 +1,9 @@ +# ExpirationSettingsSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/ExpirationSource.md b/docs/ExpirationSource.md new file mode 100644 index 0000000..322a2df --- /dev/null +++ b/docs/ExpirationSource.md @@ -0,0 +1,17 @@ +# ExpirationSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**brand** | **str** | | [optional] +**expiration_interval** | **int** | | [optional] +**expiration_policy** | [**ExpirationPolicy**](ExpirationPolicy.md) | | [optional] +**instance** | **str** | | [optional] +**module_id** | **str** | | [optional] +**set_time** | **datetime** | | [optional] +**source** | [**ExpirationSettingsSource**](ExpirationSettingsSource.md) | | [optional] +**user** | **str** | | [optional] + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/FeedIndicator.md b/docs/FeedIndicator.md new file mode 100644 index 0000000..44f4998 --- /dev/null +++ b/docs/FeedIndicator.md @@ -0,0 +1,28 @@ +# FeedIndicator + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expiration_source** | [**ExpirationSource**](ExpirationSource.md) | | [optional] +**bypass_exclusion_list** | **bool** | | [optional] +**classifier_version** | **int** | | [optional] +**expiration_interval** | **int** | | [optional] +**expiration_policy** | [**ExpirationPolicy**](ExpirationPolicy.md) | | [optional] +**feed_config** | **dict(str, object)** | | [optional] +**fetch_time** | **datetime** | | [optional] +**fields** | [**CustomFields**](CustomFields.md) | | [optional] +**is_enrichment** | **bool** | | [optional] +**modified_time** | **datetime** | | [optional] +**module_id** | **str** | | [optional] +**raw_json** | **dict(str, object)** | | [optional] +**reliability** | [**Reliability**](Reliability.md) | | [optional] +**score** | **int** | | [optional] +**source_brand** | **str** | | [optional] +**source_instance** | **str** | | [optional] +**timestamp** | **datetime** | | [optional] +**type** | **str** | indicator fields | [optional] +**value** | **str** | | [optional] + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/FeedIndicators.md b/docs/FeedIndicators.md new file mode 100644 index 0000000..a7e22b5 --- /dev/null +++ b/docs/FeedIndicators.md @@ -0,0 +1,9 @@ +# FeedIndicators + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/FormDisplay.md b/docs/FormDisplay.md new file mode 100644 index 0000000..2ad9c9a --- /dev/null +++ b/docs/FormDisplay.md @@ -0,0 +1,17 @@ +# FormDisplay + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body_background_color** | **str** | | [optional] +**body_font_color** | **str** | | [optional] +**header_background_color** | **str** | | [optional] +**header_font_color** | **str** | | [optional] +**sender** | **str** | | [optional] +**submit_button_background_color** | **str** | | [optional] +**submit_button_font_color** | **str** | | [optional] +**submit_text** | **str** | | [optional] + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/Incidents.md b/docs/Incidents.md new file mode 100644 index 0000000..3654327 --- /dev/null +++ b/docs/Incidents.md @@ -0,0 +1,9 @@ +# Incidents + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/IndicatorEditBulkResponse.md b/docs/IndicatorEditBulkResponse.md new file mode 100644 index 0000000..db6c32b --- /dev/null +++ b/docs/IndicatorEditBulkResponse.md @@ -0,0 +1,11 @@ +# IndicatorEditBulkResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | **int** | | [optional] +**updated** | **int** | | [optional] + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/InlineResponse200.md b/docs/InlineResponse200.md index c4fc717..913b1cc 100644 --- a/docs/InlineResponse200.md +++ b/docs/InlineResponse200.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**incidents** | [**list[Incident]**](Incident.md) | | [optional] +**data** | [**list[Incident]**](Incident.md) | | [optional] **total** | **int** | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/InstanceClassifier.md b/docs/InstanceClassifier.md new file mode 100644 index 0000000..e227778 --- /dev/null +++ b/docs/InstanceClassifier.md @@ -0,0 +1,32 @@ +# InstanceClassifier + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**brand_name** | **str** | | [optional] +**commit_message** | **str** | | [optional] +**custom** | **bool** | | [optional] +**default_incident_type** | **str** | | [optional] +**feed** | **bool** | | [optional] +**from_server_version** | [**Version**](Version.md) | | [optional] +**id** | **str** | | [optional] +**incident_samples** | [**Incidents**](Incidents.md) | | [optional] +**indicator_samples** | [**FeedIndicators**](FeedIndicators.md) | | [optional] +**instance_id** | **str** | | [optional] +**instance_name** | **str** | | [optional] +**is_default** | **bool** | | [optional] +**item_version** | [**Version**](Version.md) | | [optional] +**key_type_map** | **dict(str, str)** | | [optional] +**mapping** | [**dict(str, Mapper)**](Mapper.md) | | [optional] +**modified** | **datetime** | | [optional] +**pack_id** | **str** | | [optional] +**primary_term** | **int** | | [optional] +**propagation_labels** | **list[str]** | | [optional] +**sequence_number** | **int** | | [optional] +**should_commit** | **bool** | | [optional] +**sort_values** | **list[str]** | | [optional] +**version** | **int** | | [optional] + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/Layout.md b/docs/Layout.md new file mode 100644 index 0000000..abc825e --- /dev/null +++ b/docs/Layout.md @@ -0,0 +1,30 @@ +# Layout + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commit_message** | **str** | | [optional] +**from_server_version** | [**Version**](Version.md) | | [optional] +**id** | **str** | | [optional] +**item_version** | [**Version**](Version.md) | | [optional] +**kind** | **str** | | [optional] +**modified** | **datetime** | | [optional] +**name** | **str** | | [optional] +**pack_id** | **str** | | [optional] +**prev_kind** | **str** | | [optional] +**prev_type_id** | **str** | | [optional] +**primary_term** | **int** | | [optional] +**propagation_labels** | **list[str]** | | [optional] +**sections** | [**list[LayoutSection]**](LayoutSection.md) | | [optional] +**sequence_number** | **int** | | [optional] +**should_commit** | **bool** | | [optional] +**sort_values** | **list[str]** | | [optional] +**system** | **bool** | | [optional] +**to_server_version** | [**Version**](Version.md) | | [optional] +**type_id** | **str** | | [optional] +**vc_should_ignore** | **bool** | | [optional] +**version** | **int** | | [optional] + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/LayoutAPI.md b/docs/LayoutAPI.md new file mode 100644 index 0000000..b254ff2 --- /dev/null +++ b/docs/LayoutAPI.md @@ -0,0 +1,12 @@ +# LayoutAPI + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | | [optional] +**layout** | [**Layout**](Layout.md) | | [optional] +**type_id** | **str** | | [optional] + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/LayoutField.md b/docs/LayoutField.md new file mode 100644 index 0000000..4595472 --- /dev/null +++ b/docs/LayoutField.md @@ -0,0 +1,17 @@ +# LayoutField + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**field_id** | **str** | | [optional] +**id** | **str** | | [optional] +**is_visible** | **bool** | | [optional] +**modified** | **datetime** | | [optional] +**primary_term** | **int** | | [optional] +**sequence_number** | **int** | | [optional] +**sort_values** | **list[str]** | | [optional] +**version** | **int** | | [optional] + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/LayoutSection.md b/docs/LayoutSection.md new file mode 100644 index 0000000..39aad76 --- /dev/null +++ b/docs/LayoutSection.md @@ -0,0 +1,23 @@ +# LayoutSection + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | | [optional] +**fields** | [**list[LayoutField]**](LayoutField.md) | | [optional] +**id** | **str** | | [optional] +**is_visible** | **bool** | | [optional] +**modified** | **datetime** | | [optional] +**name** | **str** | | [optional] +**primary_term** | **int** | | [optional] +**query** | **object** | | [optional] +**query_type** | **str** | | [optional] +**read_only** | **bool** | | [optional] +**sequence_number** | **int** | | [optional] +**sort_values** | **list[str]** | | [optional] +**type** | **str** | | [optional] +**version** | **int** | | [optional] + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/Mapper.md b/docs/Mapper.md new file mode 100644 index 0000000..ba52c77 --- /dev/null +++ b/docs/Mapper.md @@ -0,0 +1,11 @@ +# Mapper + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dont_map_event_to_labels** | **bool** | DontMapEventToLabels by default we will map all the fields of the event to incident labels | [optional] +**internal_mapping** | [**dict(str, AdvanceArg)**](AdvanceArg.md) | | [optional] + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/Playbook.md b/docs/Playbook.md new file mode 100644 index 0000000..6e6e9d0 --- /dev/null +++ b/docs/Playbook.md @@ -0,0 +1,49 @@ +# Playbook + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**brands** | **list[str]** | | [optional] +**commands** | **list[str]** | | [optional] +**comment** | **str** | | [optional] +**commit_message** | **str** | | [optional] +**dbot_created_by** | **str** | Who has created this event - relevant only for manual incidents | [optional] +**detached** | **bool** | | [optional] +**from_server_version** | [**Version**](Version.md) | | [optional] +**has_role** | **bool** | Internal field to make queries on role faster | [optional] +**hidden** | **bool** | | [optional] +**id** | **str** | | [optional] +**inputs** | [**PlaybookInputs**](PlaybookInputs.md) | | [optional] +**item_version** | [**Version**](Version.md) | | [optional] +**locked** | **bool** | | [optional] +**missing_scripts_ids** | **list[str]** | | [optional] +**modified** | **datetime** | | [optional] +**name** | **str** | | [optional] +**name_raw** | **str** | | [optional] +**outputs** | [**PlaybookOutputs**](PlaybookOutputs.md) | | [optional] +**pack_id** | **str** | | [optional] +**prev_name** | **str** | | [optional] +**previous_roles** | **list[str]** | PreviousRoleName - do not change this field manually | [optional] +**primary_term** | **int** | | [optional] +**private** | **bool** | | [optional] +**propagation_labels** | **list[str]** | | [optional] +**quiet** | **bool** | | [optional] +**roles** | **list[str]** | The role assigned to this investigation | [optional] +**script_ids** | **list[str]** | | [optional] +**sequence_number** | **int** | | [optional] +**should_commit** | **bool** | | [optional] +**sort_values** | **list[str]** | | [optional] +**source_playbook_id** | **str** | | [optional] +**start_task_id** | **str** | | [optional] +**system** | **bool** | | [optional] +**tags** | **list[str]** | | [optional] +**task_ids** | **list[str]** | auto generated field that will contain all task ids in this playbook Needed for searching with bleve | [optional] +**tasks** | [**dict(str, PlaybookTask)**](PlaybookTask.md) | | [optional] +**to_server_version** | [**Version**](Version.md) | | [optional] +**vc_should_ignore** | **bool** | | [optional] +**version** | **int** | | [optional] +**view** | [**PlaybookView**](PlaybookView.md) | | [optional] + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/PlaybookTask.md b/docs/PlaybookTask.md new file mode 100644 index 0000000..ddb5de2 --- /dev/null +++ b/docs/PlaybookTask.md @@ -0,0 +1,37 @@ +# PlaybookTask + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list[TaskCondition]**](TaskCondition.md) | Conditions - optional list of conditions to run when task is conditional. we check conditions by their order (e.i. - considering the first one that satisfied) | [optional] +**continue_on_error** | **bool** | | [optional] +**default_assignee** | **str** | | [optional] +**default_assignee_complex** | [**AdvanceArg**](AdvanceArg.md) | | [optional] +**default_reminder** | **int** | | [optional] +**evidence_data** | [**EvidenceData**](EvidenceData.md) | | [optional] +**field_mapping** | [**list[FieldMapping]**](FieldMapping.md) | | [optional] +**form** | [**DataCollectionForm**](DataCollectionForm.md) | | [optional] +**form_display** | [**FormDisplay**](FormDisplay.md) | | [optional] +**id** | **str** | | [optional] +**ignore_worker** | **bool** | Do not run this task in a worker | [optional] +**loop** | [**TaskLoop**](TaskLoop.md) | | [optional] +**message** | [**NotifiableItem**](NotifiableItem.md) | | [optional] +**next_tasks** | **dict(str, list[str])** | | [optional] +**note** | **bool** | | [optional] +**quiet_mode** | [**QuietMode**](QuietMode.md) | | [optional] +**reputation_calc** | [**ReputationCalcAlg**](ReputationCalcAlg.md) | | [optional] +**restricted_completion** | **bool** | | [optional] +**script_arguments** | [**dict(str, AdvanceArg)**](AdvanceArg.md) | | [optional] +**separate_context** | **bool** | | [optional] +**skip_unavailable** | **bool** | SkipUnavailable if true then will check if automation exists, integration of that command is installed and active or sub playbook exists in Demisto | [optional] +**sla** | [**SLA**](SLA.md) | | [optional] +**sla_reminder** | [**SLA**](SLA.md) | | [optional] +**task** | [**Task**](Task.md) | | [optional] +**task_id** | **str** | | [optional] +**timer_triggers** | [**list[TimerTrigger]**](TimerTrigger.md) | SLA fields | [optional] +**type** | [**TaskType**](TaskType.md) | | [optional] +**view** | [**TaskView**](TaskView.md) | | [optional] + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/QuietMode.md b/docs/QuietMode.md new file mode 100644 index 0000000..e2108a3 --- /dev/null +++ b/docs/QuietMode.md @@ -0,0 +1,9 @@ +# QuietMode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/Reliability.md b/docs/Reliability.md new file mode 100644 index 0000000..628ae68 --- /dev/null +++ b/docs/Reliability.md @@ -0,0 +1,9 @@ +# Reliability + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/ScriptAPI.md b/docs/ScriptAPI.md new file mode 100644 index 0000000..9c14041 --- /dev/null +++ b/docs/ScriptAPI.md @@ -0,0 +1,33 @@ +# ScriptAPI + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**arguments** | [**list[Argument]**](Argument.md) | | [optional] +**comment** | **str** | | [optional] +**context_keys** | **list[str]** | | [optional] +**depends_on** | **dict(str, list[str])** | | [optional] +**deprecated** | **bool** | | [optional] +**detached** | **bool** | | [optional] +**docker_image** | **str** | | [optional] +**enabled** | **bool** | | [optional] +**hidden** | **bool** | | [optional] +**id** | **str** | | [optional] +**locked** | **bool** | | [optional] +**modified** | **datetime** | | [optional] +**name** | **str** | | [optional] +**outputs** | [**list[Output]**](Output.md) | | [optional] +**permitted** | **bool** | | [optional] +**propagation_labels** | **list[str]** | | [optional] +**roles** | **list[str]** | | [optional] +**run_as** | **str** | | [optional] +**script_target** | [**ScriptTarget**](ScriptTarget.md) | | [optional] +**system** | **bool** | | [optional] +**tags** | **list[str]** | | [optional] +**type** | [**ScriptType**](ScriptType.md) | | [optional] +**user** | **str** | | [optional] +**version** | **int** | | [optional] + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/docs/Version.md b/docs/Version.md new file mode 100644 index 0000000..5810958 --- /dev/null +++ b/docs/Version.md @@ -0,0 +1,11 @@ +# Version + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**digits** | **list[int]** | | [optional] +**label** | **str** | | [optional] + +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) + + diff --git a/gen-code.sh b/gen-code.sh index 3e38746..d4e6caa 100755 --- a/gen-code.sh +++ b/gen-code.sh @@ -23,8 +23,6 @@ sed -i '' -e 's/^from demisto_client.demisto_api.models.group import Group/# &/' sed -i '' -e 's/^from demisto_client.demisto_api.models.investigation_playbook import InvestigationPlaybook/# &/' demisto_client/demisto_api/models/investigation_playbook_task.py # __api_call needs to work with dict objects and not Classes when updating data such as POST requests sed -i '' -e 's/config = self.configuration/&; body = demisto_client.to_extended_dict(body) # noqa: E702/' demisto_client/demisto_api/api_client.py -# Spec file specifies 'InlineResponse200' as expected return type. This is incorrect. -sed -i '' -e 's/InlineResponse200/Incident/g' demisto_client/demisto_api/api/default_api.py # Update the docs sed -i '' -e '/# demisto-py/,/## Documentation for API Endpoints/d' docs/README.md echo '## Documentation for API Endpoints' | cat - docs/README.md > readme.temp && mv readme.temp docs/README.md diff --git a/server_api_swagger.json b/server_api_swagger.json index 15f4c5c..339ca16 100644 --- a/server_api_swagger.json +++ b/server_api_swagger.json @@ -808,7 +808,7 @@ "schema": { "type": "object", "properties": { - "incidents": { + "data": { "type": "array", "items": { "$ref": "#/definitions/Incident"