Skip to content

Commit 91e82bc

Browse files
committed
Update sdk to v2.3.1
1 parent 2ce6515 commit 91e82bc

396 files changed

Lines changed: 808 additions & 10675 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.0"
3+
package_version_override: "2.3.1"

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.0"
3+
version = "2.3.1"
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): Example: {'api_token': 'api_token'}.
87+
body (ModelAPIAuthRequest):
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): Example: {'api_token': 'api_token'}.
118+
body (ModelAPIAuthRequest):
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): Example: {'api_token': 'api_token'}.
144+
body (ModelAPIAuthRequest):
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): Example: {'api_token': 'api_token'}.
173+
body (ModelAPIAuthRequest):
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): Example: {'password': 'password', 'email': 'email'}.
87+
body (ModelLoginRequest):
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): Example: {'password': 'password', 'email': 'email'}.
118+
body (ModelLoginRequest):
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): Example: {'password': 'password', 'email': 'email'}.
144+
body (ModelLoginRequest):
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): Example: {'password': 'password', 'email': 'email'}.
173+
body (ModelLoginRequest):
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): Example: {'node_ids': ['node_ids', 'node_ids']}.
85+
body (ModelCloudAccountDeleteReq):
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): Example: {'node_ids': ['node_ids', 'node_ids']}.
116+
body (ModelCloudAccountDeleteReq):
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): Example: {'node_ids': ['node_ids', 'node_ids']}.
142+
body (ModelCloudAccountDeleteReq):
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): Example: {'node_ids': ['node_ids', 'node_ids']}.
171+
body (ModelCloudAccountDeleteReq):
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: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ def sync_detailed(
8484
List Cloud Node Accounts registered with the console
8585
8686
Args:
87-
body (ModelCloudNodeAccountsListReq): Example: {'cloud_provider': 'aws', 'window':
88-
{'offset': 0, 'size': 6}}.
87+
body (ModelCloudNodeAccountsListReq):
8988
9089
Raises:
9190
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -116,8 +115,7 @@ def sync(
116115
List Cloud Node Accounts registered with the console
117116
118117
Args:
119-
body (ModelCloudNodeAccountsListReq): Example: {'cloud_provider': 'aws', 'window':
120-
{'offset': 0, 'size': 6}}.
118+
body (ModelCloudNodeAccountsListReq):
121119
122120
Raises:
123121
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -143,8 +141,7 @@ async def asyncio_detailed(
143141
List Cloud Node Accounts registered with the console
144142
145143
Args:
146-
body (ModelCloudNodeAccountsListReq): Example: {'cloud_provider': 'aws', 'window':
147-
{'offset': 0, 'size': 6}}.
144+
body (ModelCloudNodeAccountsListReq):
148145
149146
Raises:
150147
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -173,8 +170,7 @@ async def asyncio(
173170
List Cloud Node Accounts registered with the console
174171
175172
Args:
176-
body (ModelCloudNodeAccountsListReq): Example: {'cloud_provider': 'aws', 'window':
177-
{'offset': 0, 'size': 6}}.
173+
body (ModelCloudNodeAccountsListReq):
178174
179175
Raises:
180176
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): Example: {'node_ids': ['node_ids', 'node_ids']}.
85+
body (ModelCloudAccountRefreshReq):
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): Example: {'node_ids': ['node_ids', 'node_ids']}.
116+
body (ModelCloudAccountRefreshReq):
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): Example: {'node_ids': ['node_ids', 'node_ids']}.
142+
body (ModelCloudAccountRefreshReq):
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): Example: {'node_ids': ['node_ids', 'node_ids']}.
171+
body (ModelCloudAccountRefreshReq):
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: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,7 @@ def sync_detailed(
8282
Register Cloud Account
8383
8484
Args:
85-
body (ModelCloudNodeAccountRegisterReq): Example: {'account_id': 'account_id',
86-
'monitored_accounts': [{'account_id': 'account_id', 'account_name': 'account_name',
87-
'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name': 'account_name',
88-
'node_id': 'node_id'}], 'account_name': 'account_name', 'is_organization_deployment':
89-
True, 'cloud_provider': 'aws', 'organization_account_id': 'organization_account_id',
90-
'host_node_id': 'host_node_id', 'version': 'version', 'node_id': 'node_id'}.
85+
body (ModelCloudNodeAccountRegisterReq):
9186
9287
Raises:
9388
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -118,12 +113,7 @@ def sync(
118113
Register Cloud Account
119114
120115
Args:
121-
body (ModelCloudNodeAccountRegisterReq): Example: {'account_id': 'account_id',
122-
'monitored_accounts': [{'account_id': 'account_id', 'account_name': 'account_name',
123-
'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name': 'account_name',
124-
'node_id': 'node_id'}], 'account_name': 'account_name', 'is_organization_deployment':
125-
True, 'cloud_provider': 'aws', 'organization_account_id': 'organization_account_id',
126-
'host_node_id': 'host_node_id', 'version': 'version', 'node_id': 'node_id'}.
116+
body (ModelCloudNodeAccountRegisterReq):
127117
128118
Raises:
129119
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -149,12 +139,7 @@ async def asyncio_detailed(
149139
Register Cloud Account
150140
151141
Args:
152-
body (ModelCloudNodeAccountRegisterReq): Example: {'account_id': 'account_id',
153-
'monitored_accounts': [{'account_id': 'account_id', 'account_name': 'account_name',
154-
'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name': 'account_name',
155-
'node_id': 'node_id'}], 'account_name': 'account_name', 'is_organization_deployment':
156-
True, 'cloud_provider': 'aws', 'organization_account_id': 'organization_account_id',
157-
'host_node_id': 'host_node_id', 'version': 'version', 'node_id': 'node_id'}.
142+
body (ModelCloudNodeAccountRegisterReq):
158143
159144
Raises:
160145
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -183,12 +168,7 @@ async def asyncio(
183168
Register Cloud Account
184169
185170
Args:
186-
body (ModelCloudNodeAccountRegisterReq): Example: {'account_id': 'account_id',
187-
'monitored_accounts': [{'account_id': 'account_id', 'account_name': 'account_name',
188-
'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name': 'account_name',
189-
'node_id': 'node_id'}], 'account_name': 'account_name', 'is_organization_deployment':
190-
True, 'cloud_provider': 'aws', 'organization_account_id': 'organization_account_id',
191-
'host_node_id': 'host_node_id', 'version': 'version', 'node_id': 'node_id'}.
171+
body (ModelCloudNodeAccountRegisterReq):
192172
193173
Raises:
194174
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: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,7 @@ def sync_detailed(
8484
Get Cloud Compliance Scan results for cloud node
8585
8686
Args:
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': ['', '']}}}}.
87+
body (ModelScanResultsReq):
9688
9789
Raises:
9890
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -123,15 +115,7 @@ def sync(
123115
Get Cloud Compliance Scan results for cloud node
124116
125117
Args:
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': ['', '']}}}}.
118+
body (ModelScanResultsReq):
135119
136120
Raises:
137121
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -157,15 +141,7 @@ async def asyncio_detailed(
157141
Get Cloud Compliance Scan results for cloud node
158142
159143
Args:
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': ['', '']}}}}.
144+
body (ModelScanResultsReq):
169145
170146
Raises:
171147
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -194,15 +170,7 @@ async def asyncio(
194170
Get Cloud Compliance Scan results for cloud node
195171
196172
Args:
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': ['', '']}}}}.
173+
body (ModelScanResultsReq):
206174
207175
Raises:
208176
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

0 commit comments

Comments
 (0)