Skip to content

Commit

Permalink
Update sdk to v2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ramanan-ravi committed Sep 26, 2024
1 parent 2ce6515 commit 91e82bc
Show file tree
Hide file tree
Showing 396 changed files with 808 additions and 10,675 deletions.
2 changes: 1 addition & 1 deletion openapi_config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package_name_override: "threatmapper"
project_name_override: "threatmapper"
package_version_override: "2.3.0"
package_version_override: "2.3.1"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "threatmapper"
version = "2.3.0"
version = "2.3.1"
description = "A client library for accessing Deepfence ThreatMapper"
authors = []
readme = "README.md"
Expand Down
8 changes: 4 additions & 4 deletions threatmapper/api/authentication/auth_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sync_detailed(
Get access token for programmatic API access, by providing API Token
Args:
body (ModelAPIAuthRequest): Example: {'api_token': 'api_token'}.
body (ModelAPIAuthRequest):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down Expand Up @@ -115,7 +115,7 @@ def sync(
Get access token for programmatic API access, by providing API Token
Args:
body (ModelAPIAuthRequest): Example: {'api_token': 'api_token'}.
body (ModelAPIAuthRequest):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -141,7 +141,7 @@ async def asyncio_detailed(
Get access token for programmatic API access, by providing API Token
Args:
body (ModelAPIAuthRequest): Example: {'api_token': 'api_token'}.
body (ModelAPIAuthRequest):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down Expand Up @@ -170,7 +170,7 @@ async def asyncio(
Get access token for programmatic API access, by providing API Token
Args:
body (ModelAPIAuthRequest): Example: {'api_token': 'api_token'}.
body (ModelAPIAuthRequest):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down
8 changes: 4 additions & 4 deletions threatmapper/api/authentication/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sync_detailed(
Login API
Args:
body (ModelLoginRequest): Example: {'password': 'password', 'email': 'email'}.
body (ModelLoginRequest):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down Expand Up @@ -115,7 +115,7 @@ def sync(
Login API
Args:
body (ModelLoginRequest): Example: {'password': 'password', 'email': 'email'}.
body (ModelLoginRequest):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -141,7 +141,7 @@ async def asyncio_detailed(
Login API
Args:
body (ModelLoginRequest): Example: {'password': 'password', 'email': 'email'}.
body (ModelLoginRequest):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down Expand Up @@ -170,7 +170,7 @@ async def asyncio(
Login API
Args:
body (ModelLoginRequest): Example: {'password': 'password', 'email': 'email'}.
body (ModelLoginRequest):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down
8 changes: 4 additions & 4 deletions threatmapper/api/cloud_nodes/delete_cloud_node_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def sync_detailed(
Delete Cloud Node Account and related resources
Args:
body (ModelCloudAccountDeleteReq): Example: {'node_ids': ['node_ids', 'node_ids']}.
body (ModelCloudAccountDeleteReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down Expand Up @@ -113,7 +113,7 @@ def sync(
Delete Cloud Node Account and related resources
Args:
body (ModelCloudAccountDeleteReq): Example: {'node_ids': ['node_ids', 'node_ids']}.
body (ModelCloudAccountDeleteReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -139,7 +139,7 @@ async def asyncio_detailed(
Delete Cloud Node Account and related resources
Args:
body (ModelCloudAccountDeleteReq): Example: {'node_ids': ['node_ids', 'node_ids']}.
body (ModelCloudAccountDeleteReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down Expand Up @@ -168,7 +168,7 @@ async def asyncio(
Delete Cloud Node Account and related resources
Args:
body (ModelCloudAccountDeleteReq): Example: {'node_ids': ['node_ids', 'node_ids']}.
body (ModelCloudAccountDeleteReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down
12 changes: 4 additions & 8 deletions threatmapper/api/cloud_nodes/list_cloud_node_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ def sync_detailed(
List Cloud Node Accounts registered with the console
Args:
body (ModelCloudNodeAccountsListReq): Example: {'cloud_provider': 'aws', 'window':
{'offset': 0, 'size': 6}}.
body (ModelCloudNodeAccountsListReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down Expand Up @@ -116,8 +115,7 @@ def sync(
List Cloud Node Accounts registered with the console
Args:
body (ModelCloudNodeAccountsListReq): Example: {'cloud_provider': 'aws', 'window':
{'offset': 0, 'size': 6}}.
body (ModelCloudNodeAccountsListReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -143,8 +141,7 @@ async def asyncio_detailed(
List Cloud Node Accounts registered with the console
Args:
body (ModelCloudNodeAccountsListReq): Example: {'cloud_provider': 'aws', 'window':
{'offset': 0, 'size': 6}}.
body (ModelCloudNodeAccountsListReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down Expand Up @@ -173,8 +170,7 @@ async def asyncio(
List Cloud Node Accounts registered with the console
Args:
body (ModelCloudNodeAccountsListReq): Example: {'cloud_provider': 'aws', 'window':
{'offset': 0, 'size': 6}}.
body (ModelCloudNodeAccountsListReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down
8 changes: 4 additions & 4 deletions threatmapper/api/cloud_nodes/refresh_cloud_node_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def sync_detailed(
Refresh the cloud resources in a Cloud Account
Args:
body (ModelCloudAccountRefreshReq): Example: {'node_ids': ['node_ids', 'node_ids']}.
body (ModelCloudAccountRefreshReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down Expand Up @@ -113,7 +113,7 @@ def sync(
Refresh the cloud resources in a Cloud Account
Args:
body (ModelCloudAccountRefreshReq): Example: {'node_ids': ['node_ids', 'node_ids']}.
body (ModelCloudAccountRefreshReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -139,7 +139,7 @@ async def asyncio_detailed(
Refresh the cloud resources in a Cloud Account
Args:
body (ModelCloudAccountRefreshReq): Example: {'node_ids': ['node_ids', 'node_ids']}.
body (ModelCloudAccountRefreshReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down Expand Up @@ -168,7 +168,7 @@ async def asyncio(
Refresh the cloud resources in a Cloud Account
Args:
body (ModelCloudAccountRefreshReq): Example: {'node_ids': ['node_ids', 'node_ids']}.
body (ModelCloudAccountRefreshReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down
28 changes: 4 additions & 24 deletions threatmapper/api/cloud_nodes/register_cloud_node_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,7 @@ def sync_detailed(
Register Cloud Account
Args:
body (ModelCloudNodeAccountRegisterReq): Example: {'account_id': 'account_id',
'monitored_accounts': [{'account_id': 'account_id', 'account_name': 'account_name',
'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name': 'account_name',
'node_id': 'node_id'}], 'account_name': 'account_name', 'is_organization_deployment':
True, 'cloud_provider': 'aws', 'organization_account_id': 'organization_account_id',
'host_node_id': 'host_node_id', 'version': 'version', 'node_id': 'node_id'}.
body (ModelCloudNodeAccountRegisterReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down Expand Up @@ -118,12 +113,7 @@ def sync(
Register Cloud Account
Args:
body (ModelCloudNodeAccountRegisterReq): Example: {'account_id': 'account_id',
'monitored_accounts': [{'account_id': 'account_id', 'account_name': 'account_name',
'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name': 'account_name',
'node_id': 'node_id'}], 'account_name': 'account_name', 'is_organization_deployment':
True, 'cloud_provider': 'aws', 'organization_account_id': 'organization_account_id',
'host_node_id': 'host_node_id', 'version': 'version', 'node_id': 'node_id'}.
body (ModelCloudNodeAccountRegisterReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -149,12 +139,7 @@ async def asyncio_detailed(
Register Cloud Account
Args:
body (ModelCloudNodeAccountRegisterReq): Example: {'account_id': 'account_id',
'monitored_accounts': [{'account_id': 'account_id', 'account_name': 'account_name',
'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name': 'account_name',
'node_id': 'node_id'}], 'account_name': 'account_name', 'is_organization_deployment':
True, 'cloud_provider': 'aws', 'organization_account_id': 'organization_account_id',
'host_node_id': 'host_node_id', 'version': 'version', 'node_id': 'node_id'}.
body (ModelCloudNodeAccountRegisterReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down Expand Up @@ -183,12 +168,7 @@ async def asyncio(
Register Cloud Account
Args:
body (ModelCloudNodeAccountRegisterReq): Example: {'account_id': 'account_id',
'monitored_accounts': [{'account_id': 'account_id', 'account_name': 'account_name',
'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name': 'account_name',
'node_id': 'node_id'}], 'account_name': 'account_name', 'is_organization_deployment':
True, 'cloud_provider': 'aws', 'organization_account_id': 'organization_account_id',
'host_node_id': 'host_node_id', 'version': 'version', 'node_id': 'node_id'}.
body (ModelCloudNodeAccountRegisterReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,7 @@ def sync_detailed(
Get Cloud Compliance Scan results for cloud node
Args:
body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0,
'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '',
'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name':
'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter':
{'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0,
'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in':
{'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}},
'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in':
{'key': ['', '']}}}}.
body (ModelScanResultsReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down Expand Up @@ -123,15 +115,7 @@ def sync(
Get Cloud Compliance Scan results for cloud node
Args:
body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0,
'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '',
'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name':
'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter':
{'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0,
'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in':
{'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}},
'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in':
{'key': ['', '']}}}}.
body (ModelScanResultsReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -157,15 +141,7 @@ async def asyncio_detailed(
Get Cloud Compliance Scan results for cloud node
Args:
body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0,
'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '',
'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name':
'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter':
{'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0,
'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in':
{'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}},
'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in':
{'key': ['', '']}}}}.
body (ModelScanResultsReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down Expand Up @@ -194,15 +170,7 @@ async def asyncio(
Get Cloud Compliance Scan results for cloud node
Args:
body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0,
'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '',
'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name':
'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter':
{'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0,
'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in':
{'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}},
'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in':
{'key': ['', '']}}}}.
body (ModelScanResultsReq):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down
Loading

0 comments on commit 91e82bc

Please sign in to comment.