Skip to content

Commit

Permalink
Skip verify arg (#76)
Browse files Browse the repository at this point in the history
* Add skipVerify arg

* Add skipVerify arg in swagger

* Change from query to params

* CR Fixes
  • Loading branch information
ChanochShayner authored Nov 24, 2021
1 parent 8425589 commit 86140e5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
6 changes: 5 additions & 1 deletion demisto_client/demisto_api/api/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7174,6 +7174,7 @@ def upload_content_packs(self, file, **kwargs): # noqa: E501
:param async_req bool
:param file file: file (required)
:param object skip_verify: If true will skip pack signature verification. Use when uploading a custom or
:return: None
If the method is called asynchronously,
returns the request thread.
Expand All @@ -7196,12 +7197,13 @@ def upload_content_packs_with_http_info(self, file, **kwargs): # noqa: E501
:param async_req bool
:param file file: file (required)
:param object skip_verify: If true will skip pack signature verification. Use when uploading a custom or
:return: None
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['file'] # noqa: E501
all_params = ['file', 'skip_verify'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
Expand Down Expand Up @@ -7233,6 +7235,8 @@ def upload_content_packs_with_http_info(self, file, **kwargs): # noqa: E501
local_var_files = {}
if 'file' in params:
local_var_files['file'] = params['file'] # noqa: E501
if 'skip_verify' in params:
form_params.append(('skipVerify', params['skip_verify'])) # noqa: E501

body_params = None
# HTTP header `Accept`
Expand Down
12 changes: 5 additions & 7 deletions docs/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1178,10 +1178,7 @@ from demisto_client.demisto_api.rest import ApiException
from pprint import pprint

api_instance = demisto_client.configure(base_url="https://YOUR_DEMISTO_SERVER", api_key="YOUR_API_KEY")
update_data_batch = demisto_client.demisto_api.UpdateDataBatch(
columns=["id", "name", "severity"] # Columns are the CSV headers. If not provided, no results will be presented
) # UpdateDataBatch

update_data_batch = demisto_client.demisto_api.UpdateDataBatch() # UpdateDataBatch | (optional)

try:
# Batch export incidents to csv
Expand Down Expand Up @@ -3565,7 +3562,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)

# **upload_content_packs**
> upload_content_packs(file)
> upload_content_packs(file, skip_verify=skip_verify)
Upload a Pack as zip file. The zip file maybe a single Pack or a zip containing multiple zipped Packs (a zip of zips)

Expand All @@ -3582,10 +3579,11 @@ 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
skip_verify = NULL # object | If true will skip pack signature verification. Use when uploading a custom or (optional)

try:
# Upload a Pack as zip file. The zip file maybe a single Pack or a zip containing multiple zipped Packs (a zip of zips)
api_instance.upload_content_packs(file)
api_instance.upload_content_packs(file, skip_verify=skip_verify)
except ApiException as e:
print("Exception when calling DefaultApi->upload_content_packs: %s\n" % e)
```
Expand All @@ -3594,7 +3592,7 @@ except ApiException as e:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**file** | **file**| file |
**skip_verify** | **boolean** | If true will skip pack signature verification. Use when uploading a custom or |

### Return type

Expand Down
5 changes: 5 additions & 0 deletions server_api_swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1773,6 +1773,11 @@
"name": "file",
"in": "formData",
"required": true
},
{
"description": "If true will skip pack signature verification. Use when uploading a custom or",
"name": "skipVerify",
"in": "formData"
}
],
"responses": {
Expand Down

0 comments on commit 86140e5

Please sign in to comment.