Skip to content

Commit ded41d7

Browse files
committed
feat(ET-374): Updating client to use openapi standards for secure events feed and vuln mgmt
Signed-off-by: S3B4SZ17 <[email protected]>
1 parent 9d18376 commit ded41d7

File tree

162 files changed

+12138
-19
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+12138
-19
lines changed

.gitignore

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Byte-compiled / optimized / DLL files
22
__pycache__/
33
*.py[cod]
4+
*$py.class
45

56
# C extensions
67
*.so
@@ -42,6 +43,11 @@ htmlcov/
4243
nosetests.xml
4344
coverage.xml
4445
*,cover
46+
.hypothesis/
47+
venv/
48+
.venv/
49+
.python-version
50+
.pytest_cache
4551

4652
# Translations
4753
*.mo
@@ -56,13 +62,5 @@ docs/_build/
5662
# PyBuilder
5763
target/
5864

59-
# virtualenv
60-
venv/
61-
62-
# Direnv
63-
.envrc
64-
65-
# IntelliJ projects
66-
.idea/
67-
68-
coverage/
65+
#Ipython Notebook
66+
.ipynb_checkpoints

.openapi-generator-ignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

.openapi-generator/FILES

+144
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
.github/workflows/python.yml
2+
.gitignore
3+
.gitlab-ci.yml
4+
.travis.yml
5+
README.md
6+
docs/Action.md
7+
docs/ActionType.md
8+
docs/AgentlessMlRuntimeDetectionContent.md
9+
docs/AgentlessMlRuntimeDetectionContentAllOfFields.md
10+
docs/AgentlessRuntimeDetectionContent.md
11+
docs/AgentlessRuntimeDetectionContentAllOfFields.md
12+
docs/BaseAction.md
13+
docs/BaseContent.md
14+
docs/CaptureAction.md
15+
docs/Category.md
16+
docs/ContainerKilledAction.md
17+
docs/ContainerPausedAction.md
18+
docs/ContainerStoppedAction.md
19+
docs/DriftPreventedAction.md
20+
docs/Error.md
21+
docs/Event.md
22+
docs/EventContent.md
23+
docs/EventContentType.md
24+
docs/EventsFeedPage.md
25+
docs/K8sAdmissionReviewContent.md
26+
docs/K8sAdmissionReviewContentAllOfScanResult.md
27+
docs/ListEventsResponse.md
28+
docs/MalwarePreventedAction.md
29+
docs/Operand.md
30+
docs/Originator.md
31+
docs/PolicyOrigin.md
32+
docs/ProcessKilledAction.md
33+
docs/SecureEventsApi.md
34+
docs/SequenceInner.md
35+
docs/Source.md
36+
docs/SourceDetails.md
37+
docs/StatefulDetectionsContent.md
38+
docs/StatefulDetectionsContentAllOfFields.md
39+
docs/StatsInner.md
40+
docs/SupportedFilter.md
41+
docs/SupportedFilterType.md
42+
docs/SupportedFiltersResponse.md
43+
docs/WorkloadMlRuntimeDetectionContent.md
44+
docs/WorkloadRuntimeDetectionContent.md
45+
docs/WorkloadRuntimeDetectionContentAllOfFields.md
46+
docs/Zone.md
47+
git_push.sh
48+
pyproject.toml
49+
requirements.txt
50+
setup.cfg
51+
setup.py
52+
sysdig_client/__init__.py
53+
sysdig_client/api/__init__.py
54+
sysdig_client/api/secure_events_api.py
55+
sysdig_client/api_client.py
56+
sysdig_client/api_response.py
57+
sysdig_client/configuration.py
58+
sysdig_client/exceptions.py
59+
sysdig_client/models/__init__.py
60+
sysdig_client/models/action.py
61+
sysdig_client/models/action_type.py
62+
sysdig_client/models/agentless_ml_runtime_detection_content.py
63+
sysdig_client/models/agentless_ml_runtime_detection_content_all_of_fields.py
64+
sysdig_client/models/agentless_runtime_detection_content.py
65+
sysdig_client/models/agentless_runtime_detection_content_all_of_fields.py
66+
sysdig_client/models/base_action.py
67+
sysdig_client/models/base_content.py
68+
sysdig_client/models/capture_action.py
69+
sysdig_client/models/category.py
70+
sysdig_client/models/container_killed_action.py
71+
sysdig_client/models/container_paused_action.py
72+
sysdig_client/models/container_stopped_action.py
73+
sysdig_client/models/drift_prevented_action.py
74+
sysdig_client/models/error.py
75+
sysdig_client/models/event.py
76+
sysdig_client/models/event_content.py
77+
sysdig_client/models/event_content_type.py
78+
sysdig_client/models/events_feed_page.py
79+
sysdig_client/models/k8s_admission_review_content.py
80+
sysdig_client/models/k8s_admission_review_content_all_of_scan_result.py
81+
sysdig_client/models/list_events_response.py
82+
sysdig_client/models/malware_prevented_action.py
83+
sysdig_client/models/operand.py
84+
sysdig_client/models/originator.py
85+
sysdig_client/models/policy_origin.py
86+
sysdig_client/models/process_killed_action.py
87+
sysdig_client/models/sequence_inner.py
88+
sysdig_client/models/source.py
89+
sysdig_client/models/source_details.py
90+
sysdig_client/models/stateful_detections_content.py
91+
sysdig_client/models/stateful_detections_content_all_of_fields.py
92+
sysdig_client/models/stats_inner.py
93+
sysdig_client/models/supported_filter.py
94+
sysdig_client/models/supported_filter_type.py
95+
sysdig_client/models/supported_filters_response.py
96+
sysdig_client/models/workload_ml_runtime_detection_content.py
97+
sysdig_client/models/workload_runtime_detection_content.py
98+
sysdig_client/models/workload_runtime_detection_content_all_of_fields.py
99+
sysdig_client/models/zone.py
100+
sysdig_client/py.typed
101+
sysdig_client/rest.py
102+
test-requirements.txt
103+
test/__init__.py
104+
test/test_action.py
105+
test/test_action_type.py
106+
test/test_agentless_ml_runtime_detection_content.py
107+
test/test_agentless_ml_runtime_detection_content_all_of_fields.py
108+
test/test_agentless_runtime_detection_content.py
109+
test/test_agentless_runtime_detection_content_all_of_fields.py
110+
test/test_base_action.py
111+
test/test_base_content.py
112+
test/test_capture_action.py
113+
test/test_category.py
114+
test/test_container_killed_action.py
115+
test/test_container_paused_action.py
116+
test/test_container_stopped_action.py
117+
test/test_drift_prevented_action.py
118+
test/test_event.py
119+
test/test_event_content.py
120+
test/test_event_content_type.py
121+
test/test_events_feed_page.py
122+
test/test_k8s_admission_review_content.py
123+
test/test_k8s_admission_review_content_all_of_scan_result.py
124+
test/test_list_events_response.py
125+
test/test_malware_prevented_action.py
126+
test/test_operand.py
127+
test/test_originator.py
128+
test/test_policy_origin.py
129+
test/test_process_killed_action.py
130+
test/test_secure_events_api.py
131+
test/test_sequence_inner.py
132+
test/test_source.py
133+
test/test_source_details.py
134+
test/test_stateful_detections_content.py
135+
test/test_stateful_detections_content_all_of_fields.py
136+
test/test_stats_inner.py
137+
test/test_supported_filter.py
138+
test/test_supported_filter_type.py
139+
test/test_supported_filters_response.py
140+
test/test_workload_ml_runtime_detection_content.py
141+
test/test_workload_runtime_detection_content.py
142+
test/test_workload_runtime_detection_content_all_of_fields.py
143+
test/test_zone.py
144+
tox.ini

.openapi-generator/VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.9.0

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Installation
1515
------------
1616
#### Automatic with PyPI
1717
pip install sdcclient
18+
# pip install ../path/to/this/repo
1819

1920
#### Manual (development only)
2021

docs/reference/Action.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Action
2+
3+
Action performed when the event happened.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**type** | [**ActionType**](ActionType.md) | |
10+
**is_successful** | **bool** | Whether or not the action was completed successfully. | [optional]
11+
**err_msg** | **str** | When &#x60;isSuccessful&#x60; is &#x60;false&#x60;, details on why the action failed. | [optional]
12+
**token** | **str** | Token to retrieve the related capture. | [optional]
13+
**after_event_ns** | **int** | Amount of nanoseconds after the event the Capture spans. | [optional]
14+
**before_event_ns** | **int** | Amount of nanoseconds before the event the Capture spans. | [optional]
15+
16+
## Example
17+
18+
```python
19+
from sysdig_client.models.action import Action
20+
21+
# TODO update the JSON string below
22+
json = "{}"
23+
# create an instance of Action from a JSON string
24+
action_instance = Action.from_json(json)
25+
# print the JSON string representation of the object
26+
print(Action.to_json())
27+
28+
# convert the object into a dict
29+
action_dict = action_instance.to_dict()
30+
# create an instance of Action from a dict
31+
action_from_dict = Action.from_dict(action_dict)
32+
```
33+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
34+
35+

docs/reference/ActionType.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# ActionType
2+
3+
Action type.
4+
5+
## Enum
6+
7+
* `CAPTURE` (value: `'capture'`)
8+
9+
* `CONTAINER_KILLED` (value: `'container_killed'`)
10+
11+
* `CONTAINER_PAUSED` (value: `'container_paused'`)
12+
13+
* `CONTAINER_STOPPED` (value: `'container_stopped'`)
14+
15+
* `DRIFT_PREVENTED` (value: `'drift_prevented'`)
16+
17+
* `MALWARE_PREVENTED` (value: `'malware_prevented'`)
18+
19+
* `PROCESS_KILLED` (value: `'process_killed'`)
20+
21+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
22+
23+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# AgentlessMlRuntimeDetectionContent
2+
3+
Agentless ML event content
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**type** | [**EventContentType**](EventContentType.md) | |
10+
**policy_id** | **int** | ID of the policy that generated the event | [optional]
11+
**policy_origin** | [**PolicyOrigin**](PolicyOrigin.md) | |
12+
**policy_notification_channel_ids** | **List[int]** | The list of notification channels where an alert is sent after event is generated. Doesn&#39;t account for aggregations and eventual thresholds. | [optional]
13+
**rule_name** | **str** | Name of the rule the event is generated after |
14+
**rule_type** | **int** | Rule type: - 1 - List matching - process - 2 - List matching - container - 3 - List matching - file - 4 - List matching - network - 5 - List matching - syscall - 6 - Falco - 7 - Drift detection - 8 - Malware detection - 11 - ML - Cryptominer detection - 13 - ML - AWS anomalous login - 14 - ML - Okta anomalous login |
15+
**fields** | [**AgentlessMlRuntimeDetectionContentAllOfFields**](AgentlessMlRuntimeDetectionContentAllOfFields.md) | |
16+
17+
## Example
18+
19+
```python
20+
from sysdig_client.models.agentless_ml_runtime_detection_content import AgentlessMlRuntimeDetectionContent
21+
22+
# TODO update the JSON string below
23+
json = "{}"
24+
# create an instance of AgentlessMlRuntimeDetectionContent from a JSON string
25+
agentless_ml_runtime_detection_content_instance = AgentlessMlRuntimeDetectionContent.from_json(json)
26+
# print the JSON string representation of the object
27+
print(AgentlessMlRuntimeDetectionContent.to_json())
28+
29+
# convert the object into a dict
30+
agentless_ml_runtime_detection_content_dict = agentless_ml_runtime_detection_content_instance.to_dict()
31+
# create an instance of AgentlessMlRuntimeDetectionContent from a dict
32+
agentless_ml_runtime_detection_content_from_dict = AgentlessMlRuntimeDetectionContent.from_dict(agentless_ml_runtime_detection_content_dict)
33+
```
34+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
35+
36+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# AgentlessMlRuntimeDetectionContentAllOfFields
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
9+
## Example
10+
11+
```python
12+
from sysdig_client.models.agentless_ml_runtime_detection_content_all_of_fields import AgentlessMlRuntimeDetectionContentAllOfFields
13+
14+
# TODO update the JSON string below
15+
json = "{}"
16+
# create an instance of AgentlessMlRuntimeDetectionContentAllOfFields from a JSON string
17+
agentless_ml_runtime_detection_content_all_of_fields_instance = AgentlessMlRuntimeDetectionContentAllOfFields.from_json(json)
18+
# print the JSON string representation of the object
19+
print(AgentlessMlRuntimeDetectionContentAllOfFields.to_json())
20+
21+
# convert the object into a dict
22+
agentless_ml_runtime_detection_content_all_of_fields_dict = agentless_ml_runtime_detection_content_all_of_fields_instance.to_dict()
23+
# create an instance of AgentlessMlRuntimeDetectionContentAllOfFields from a dict
24+
agentless_ml_runtime_detection_content_all_of_fields_from_dict = AgentlessMlRuntimeDetectionContentAllOfFields.from_dict(agentless_ml_runtime_detection_content_all_of_fields_dict)
25+
```
26+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
27+
28+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# AgentlessRuntimeDetectionContent
2+
3+
Agentless CDR event content
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**type** | [**EventContentType**](EventContentType.md) | |
10+
**integration_id** | **str** | The unique identifier of the integration that generated the event. |
11+
**integration_type** | **str** | The type of integration that generated the event. |
12+
**rule_name** | **str** | Name of the rule the event is generated after |
13+
**rule_type** | **int** | Rule type: - 1 - List matching - process - 2 - List matching - container - 3 - List matching - file - 4 - List matching - network - 5 - List matching - syscall - 6 - Falco - 7 - Drift detection - 8 - Malware detection - 11 - ML - Cryptominer detection - 13 - ML - AWS anomalous login - 14 - ML - Okta anomalous login |
14+
**rule_tags** | **List[str]** | The tags attached to the rule | [optional]
15+
**policy_id** | **int** | ID of the policy that generated the event |
16+
**policy_origin** | [**PolicyOrigin**](PolicyOrigin.md) | |
17+
**policy_notification_channel_ids** | **List[int]** | The list of notification channels where an alert is sent after event is generated. Doesn&#39;t account for aggregations and eventual thresholds. | [optional]
18+
**priority** | **str** | Rule priority | [optional]
19+
**output** | **str** | Event output, generated after the configured rule | [optional]
20+
**fields** | [**AgentlessRuntimeDetectionContentAllOfFields**](AgentlessRuntimeDetectionContentAllOfFields.md) | | [optional]
21+
22+
## Example
23+
24+
```python
25+
from sysdig_client.models.agentless_runtime_detection_content import AgentlessRuntimeDetectionContent
26+
27+
# TODO update the JSON string below
28+
json = "{}"
29+
# create an instance of AgentlessRuntimeDetectionContent from a JSON string
30+
agentless_runtime_detection_content_instance = AgentlessRuntimeDetectionContent.from_json(json)
31+
# print the JSON string representation of the object
32+
print(AgentlessRuntimeDetectionContent.to_json())
33+
34+
# convert the object into a dict
35+
agentless_runtime_detection_content_dict = agentless_runtime_detection_content_instance.to_dict()
36+
# create an instance of AgentlessRuntimeDetectionContent from a dict
37+
agentless_runtime_detection_content_from_dict = AgentlessRuntimeDetectionContent.from_dict(agentless_runtime_detection_content_dict)
38+
```
39+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
40+
41+

0 commit comments

Comments
 (0)