Skip to content

Commit eff2fe8

Browse files
committed
Update sdk to v2.5.0
1 parent 91e82bc commit eff2fe8

403 files changed

Lines changed: 12261 additions & 913 deletions

File tree

Some content is hidden

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

openapi_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package_name_override: "threatmapper"
22
project_name_override: "threatmapper"
3-
package_version_override: "2.3.1"
3+
package_version_override: "2.5.0"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "threatmapper"
3-
version = "2.3.1"
3+
version = "2.5.0"
44
description = "A client library for accessing Deepfence ThreatMapper"
55
authors = []
66
readme = "README.md"

threatmapper/api/authentication/auth_token.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def sync_detailed(
8484
Get access token for programmatic API access, by providing API Token
8585
8686
Args:
87-
body (ModelAPIAuthRequest):
87+
body (ModelAPIAuthRequest): Example: {'api_token': 'api_token'}.
8888
8989
Raises:
9090
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -115,7 +115,7 @@ def sync(
115115
Get access token for programmatic API access, by providing API Token
116116
117117
Args:
118-
body (ModelAPIAuthRequest):
118+
body (ModelAPIAuthRequest): Example: {'api_token': 'api_token'}.
119119
120120
Raises:
121121
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -141,7 +141,7 @@ async def asyncio_detailed(
141141
Get access token for programmatic API access, by providing API Token
142142
143143
Args:
144-
body (ModelAPIAuthRequest):
144+
body (ModelAPIAuthRequest): Example: {'api_token': 'api_token'}.
145145
146146
Raises:
147147
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -170,7 +170,7 @@ async def asyncio(
170170
Get access token for programmatic API access, by providing API Token
171171
172172
Args:
173-
body (ModelAPIAuthRequest):
173+
body (ModelAPIAuthRequest): Example: {'api_token': 'api_token'}.
174174
175175
Raises:
176176
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

threatmapper/api/authentication/login.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def sync_detailed(
8484
Login API
8585
8686
Args:
87-
body (ModelLoginRequest):
87+
body (ModelLoginRequest): Example: {'password': 'password', 'email': 'email'}.
8888
8989
Raises:
9090
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -115,7 +115,7 @@ def sync(
115115
Login API
116116
117117
Args:
118-
body (ModelLoginRequest):
118+
body (ModelLoginRequest): Example: {'password': 'password', 'email': 'email'}.
119119
120120
Raises:
121121
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -141,7 +141,7 @@ async def asyncio_detailed(
141141
Login API
142142
143143
Args:
144-
body (ModelLoginRequest):
144+
body (ModelLoginRequest): Example: {'password': 'password', 'email': 'email'}.
145145
146146
Raises:
147147
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -170,7 +170,7 @@ async def asyncio(
170170
Login API
171171
172172
Args:
173-
body (ModelLoginRequest):
173+
body (ModelLoginRequest): Example: {'password': 'password', 'email': 'email'}.
174174
175175
Raises:
176176
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

threatmapper/api/cloud_nodes/delete_cloud_node_account.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def sync_detailed(
8282
Delete Cloud Node Account and related resources
8383
8484
Args:
85-
body (ModelCloudAccountDeleteReq):
85+
body (ModelCloudAccountDeleteReq): Example: {'node_ids': ['node_ids', 'node_ids']}.
8686
8787
Raises:
8888
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -113,7 +113,7 @@ def sync(
113113
Delete Cloud Node Account and related resources
114114
115115
Args:
116-
body (ModelCloudAccountDeleteReq):
116+
body (ModelCloudAccountDeleteReq): Example: {'node_ids': ['node_ids', 'node_ids']}.
117117
118118
Raises:
119119
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -139,7 +139,7 @@ async def asyncio_detailed(
139139
Delete Cloud Node Account and related resources
140140
141141
Args:
142-
body (ModelCloudAccountDeleteReq):
142+
body (ModelCloudAccountDeleteReq): Example: {'node_ids': ['node_ids', 'node_ids']}.
143143
144144
Raises:
145145
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -168,7 +168,7 @@ async def asyncio(
168168
Delete Cloud Node Account and related resources
169169
170170
Args:
171-
body (ModelCloudAccountDeleteReq):
171+
body (ModelCloudAccountDeleteReq): Example: {'node_ids': ['node_ids', 'node_ids']}.
172172
173173
Raises:
174174
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

threatmapper/api/cloud_nodes/list_cloud_node_account.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ def sync_detailed(
8484
List Cloud Node Accounts registered with the console
8585
8686
Args:
87-
body (ModelCloudNodeAccountsListReq):
87+
body (ModelCloudNodeAccountsListReq): Example: {'cloud_provider': 'aws', 'window':
88+
{'offset': 0, 'size': 6}}.
8889
8990
Raises:
9091
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -115,7 +116,8 @@ def sync(
115116
List Cloud Node Accounts registered with the console
116117
117118
Args:
118-
body (ModelCloudNodeAccountsListReq):
119+
body (ModelCloudNodeAccountsListReq): Example: {'cloud_provider': 'aws', 'window':
120+
{'offset': 0, 'size': 6}}.
119121
120122
Raises:
121123
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -141,7 +143,8 @@ async def asyncio_detailed(
141143
List Cloud Node Accounts registered with the console
142144
143145
Args:
144-
body (ModelCloudNodeAccountsListReq):
146+
body (ModelCloudNodeAccountsListReq): Example: {'cloud_provider': 'aws', 'window':
147+
{'offset': 0, 'size': 6}}.
145148
146149
Raises:
147150
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -170,7 +173,8 @@ async def asyncio(
170173
List Cloud Node Accounts registered with the console
171174
172175
Args:
173-
body (ModelCloudNodeAccountsListReq):
176+
body (ModelCloudNodeAccountsListReq): Example: {'cloud_provider': 'aws', 'window':
177+
{'offset': 0, 'size': 6}}.
174178
175179
Raises:
176180
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

threatmapper/api/cloud_nodes/refresh_cloud_node_account.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def sync_detailed(
8282
Refresh the cloud resources in a Cloud Account
8383
8484
Args:
85-
body (ModelCloudAccountRefreshReq):
85+
body (ModelCloudAccountRefreshReq): Example: {'node_ids': ['node_ids', 'node_ids']}.
8686
8787
Raises:
8888
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -113,7 +113,7 @@ def sync(
113113
Refresh the cloud resources in a Cloud Account
114114
115115
Args:
116-
body (ModelCloudAccountRefreshReq):
116+
body (ModelCloudAccountRefreshReq): Example: {'node_ids': ['node_ids', 'node_ids']}.
117117
118118
Raises:
119119
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -139,7 +139,7 @@ async def asyncio_detailed(
139139
Refresh the cloud resources in a Cloud Account
140140
141141
Args:
142-
body (ModelCloudAccountRefreshReq):
142+
body (ModelCloudAccountRefreshReq): Example: {'node_ids': ['node_ids', 'node_ids']}.
143143
144144
Raises:
145145
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -168,7 +168,7 @@ async def asyncio(
168168
Refresh the cloud resources in a Cloud Account
169169
170170
Args:
171-
body (ModelCloudAccountRefreshReq):
171+
body (ModelCloudAccountRefreshReq): Example: {'node_ids': ['node_ids', 'node_ids']}.
172172
173173
Raises:
174174
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

threatmapper/api/cloud_nodes/register_cloud_node_account.py

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,14 @@ def sync_detailed(
8282
Register Cloud Account
8383
8484
Args:
85-
body (ModelCloudNodeAccountRegisterReq):
85+
body (ModelCloudNodeAccountRegisterReq): Example: {'initial_request': True, 'account_id':
86+
'account_id', 'monitored_accounts': [{'account_id': 'account_id', 'account_name':
87+
'account_name', 'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name':
88+
'account_name', 'node_id': 'node_id'}], 'account_name': 'account_name',
89+
'is_organization_deployment': True, 'installation_id': 'installation_id',
90+
'cloud_provider': 'aws', 'persistent_volume_supported': True, 'organization_account_id':
91+
'organization_account_id', 'host_node_id': 'host_node_id', 'version': 'version',
92+
'node_id': 'node_id'}.
8693
8794
Raises:
8895
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -113,7 +120,14 @@ def sync(
113120
Register Cloud Account
114121
115122
Args:
116-
body (ModelCloudNodeAccountRegisterReq):
123+
body (ModelCloudNodeAccountRegisterReq): Example: {'initial_request': True, 'account_id':
124+
'account_id', 'monitored_accounts': [{'account_id': 'account_id', 'account_name':
125+
'account_name', 'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name':
126+
'account_name', 'node_id': 'node_id'}], 'account_name': 'account_name',
127+
'is_organization_deployment': True, 'installation_id': 'installation_id',
128+
'cloud_provider': 'aws', 'persistent_volume_supported': True, 'organization_account_id':
129+
'organization_account_id', 'host_node_id': 'host_node_id', 'version': 'version',
130+
'node_id': 'node_id'}.
117131
118132
Raises:
119133
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -139,7 +153,14 @@ async def asyncio_detailed(
139153
Register Cloud Account
140154
141155
Args:
142-
body (ModelCloudNodeAccountRegisterReq):
156+
body (ModelCloudNodeAccountRegisterReq): Example: {'initial_request': True, 'account_id':
157+
'account_id', 'monitored_accounts': [{'account_id': 'account_id', 'account_name':
158+
'account_name', 'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name':
159+
'account_name', 'node_id': 'node_id'}], 'account_name': 'account_name',
160+
'is_organization_deployment': True, 'installation_id': 'installation_id',
161+
'cloud_provider': 'aws', 'persistent_volume_supported': True, 'organization_account_id':
162+
'organization_account_id', 'host_node_id': 'host_node_id', 'version': 'version',
163+
'node_id': 'node_id'}.
143164
144165
Raises:
145166
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -168,7 +189,14 @@ async def asyncio(
168189
Register Cloud Account
169190
170191
Args:
171-
body (ModelCloudNodeAccountRegisterReq):
192+
body (ModelCloudNodeAccountRegisterReq): Example: {'initial_request': True, 'account_id':
193+
'account_id', 'monitored_accounts': [{'account_id': 'account_id', 'account_name':
194+
'account_name', 'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name':
195+
'account_name', 'node_id': 'node_id'}], 'account_name': 'account_name',
196+
'is_organization_deployment': True, 'installation_id': 'installation_id',
197+
'cloud_provider': 'aws', 'persistent_volume_supported': True, 'organization_account_id':
198+
'organization_account_id', 'host_node_id': 'host_node_id', 'version': 'version',
199+
'node_id': 'node_id'}.
172200
173201
Raises:
174202
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

threatmapper/api/cloud_scanner/count_results_cloud_compliance_scan.py

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,15 @@ def sync_detailed(
8484
Get Cloud Compliance Scan results for cloud node
8585
8686
Args:
87-
body (ModelScanResultsReq):
87+
body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0,
88+
'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '',
89+
'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name':
90+
'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter':
91+
{'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0,
92+
'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in':
93+
{'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}},
94+
'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in':
95+
{'key': ['', '']}}}}.
8896
8997
Raises:
9098
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -115,7 +123,15 @@ def sync(
115123
Get Cloud Compliance Scan results for cloud node
116124
117125
Args:
118-
body (ModelScanResultsReq):
126+
body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0,
127+
'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '',
128+
'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name':
129+
'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter':
130+
{'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0,
131+
'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in':
132+
{'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}},
133+
'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in':
134+
{'key': ['', '']}}}}.
119135
120136
Raises:
121137
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -141,7 +157,15 @@ async def asyncio_detailed(
141157
Get Cloud Compliance Scan results for cloud node
142158
143159
Args:
144-
body (ModelScanResultsReq):
160+
body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0,
161+
'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '',
162+
'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name':
163+
'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter':
164+
{'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0,
165+
'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in':
166+
{'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}},
167+
'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in':
168+
{'key': ['', '']}}}}.
145169
146170
Raises:
147171
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -170,7 +194,15 @@ async def asyncio(
170194
Get Cloud Compliance Scan results for cloud node
171195
172196
Args:
173-
body (ModelScanResultsReq):
197+
body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0,
198+
'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '',
199+
'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name':
200+
'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter':
201+
{'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0,
202+
'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in':
203+
{'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}},
204+
'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in':
205+
{'key': ['', '']}}}}.
174206
175207
Raises:
176208
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

0 commit comments

Comments
 (0)