Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit 18aa605

Browse files
committed
release/6.5.19 - changes based on console version 6.5.19
1 parent 4bee83a commit 18aa605

28 files changed

+207
-59
lines changed

api-files/console-swagger-6.5.19.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

docs/ExceptionScope.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**id** | **int** | The identifier of the vulnerability to which the exception applies. | [optional]
6+
**id** | **int** | The identifier of the scope type to which the exception applies. For example in a site scoped vulnerability exception this is the site id, in an asset group vulnerability exception this is the asset group id. | [optional]
77
**key** | **str** | If the scope type is `\"Instance\"`, an optional key to discriminate the instance the exception applies to. | [optional]
88
**links** | [**list[Link]**](Link.md) | | [optional]
99
**port** | **int** | If the scope type is `\"Instance\"` and the vulnerability is detected on a service, the port on which the exception applies. | [optional]

docs/Features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**dynamic_discovery** | **bool** | Whether dynamic discovery sources may be used. | [optional]
99
**early_access** | **bool** | Whether early-access features are available prior to general availability. | [optional]
1010
**engine_pool** | **bool** | Whether scan engine pools may be used. | [optional]
11-
**insight_platform** | **bool** | Whether the usage of the Insight Platform is allowed. | [optional]
11+
**insight_platform** | **bool** | Whether the usage of the Insight platform is allowed. | [optional]
1212
**mobile** | **bool** | Whether mobile features are allowed. | [optional]
1313
**multitenancy** | **bool** | Whether multitenancy is allowed. | [optional]
1414
**policy_editor** | **bool** | Whether the editing of policies is allowed. | [optional]

docs/Report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**baseline** | **object** | If the template is `baseline-comparison` or `executive-overview` the baseline scan to compare against. This can be the `first` scan, the `previous` scan, or a scan as of a specified date. | [optional]
6+
**baseline** | **object** | If the template is `baseline-comparison` or `executive-overview` the baseline scan to compare against. This can be the `first` scan, the `previous` scan, or a scan as of a specified date. Defaults to `previous`. | [optional]
77
**bureau** | **str** | The name of the bureau for a CyberScope report. Only used when the format is `\"cyberscope-xml\"`. | [optional]
88
**component** | **str** | The name of the component for a CyberScope report. Only used when the format is `\"cyberscope-xml\"`. | [optional]
99
**database** | [**ReportConfigDatabaseResource**](ReportConfigDatabaseResource.md) | Configuration for database export. Only used when the format is `\"database-export\"`. | [optional]

docs/ReportStorage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**location** | **str** | The location to storage an additional copy of the report. This is a sub-path post-fixed to `$(install_dir)/nsc/reports/$(user)/`. | [optional]
6+
**location** | **str** | The location to storage an additional copy of the report. This is a sub-path post-fixed to `$(install_dir)/nsc/reports/$(user)/`. Variables such as `$(report_name)`, `$(date)`, and `$(time)` may be used to generate the directory structure. | [optional]
77
**path** | **str** | The full path to the additional copy storage location. | [optional]
88

99
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/ScanSchedule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
1212
**on_scan_repeat** | **str** | Specifies the desired behavior of a repeating scheduled scan when the previous scan was paused due to reaching is maximum duration. The following table describes each supported value: | Value | Description | | ---------- | ---------------- | | restart-scan | Stops the previously-paused scan and launches a new scan if the previous scan did not complete within the specified duration. If the previous scheduled scan was not paused, then a new scan is launched. | | resume-scan | Resumes the previously-paused scan if the previous scan did not complete within the specified duration. If the previous scheduled scan was not paused, then a new scan is launched. | |
1313
**repeat** | [**ReportRepeat**](ReportRepeat.md) | Settings for repeating a scheduled task. | [optional]
1414
**scan_engine_id** | **int** | The identifier of the scan engine to be used for this scan schedule. If not set, the site's assigned scan engine will be used. | [optional]
15-
**scan_name** | **str** | A user-defined name for the scan launched by the schedule. If not explicitly set in the schedule, the scan name will be generated prior to the scan launching. Names must be unique. | [optional]
15+
**scan_name** | **str** | A user-defined name for the scan launched by the schedule. If not explicitly set in the schedule, the scan name will be generated prior to the scan launching. Scan names must be unique within the site's scan schedules. | [optional]
1616
**scan_template_id** | **str** | The identifier of the scan template to be used for this scan schedule. If not set, the site's assigned scan template will be used. | [optional]
1717
**start** | **str** | The scheduled start date and time. Date is represented in ISO 8601 format. Repeating schedules will determine the next schedule to begin based on this date and time. |
1818

docs/Settings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
77
**authentication** | [**AuthenticationSettings**](AuthenticationSettings.md) | Details the authentication settings. | [optional]
88
**database** | [**DatabaseSettings**](DatabaseSettings.md) | Details the database settings. | [optional]
99
**directory** | **str** | The root directory of the console. | [optional]
10-
**insight_platform** | **bool** | Whether the usage of the Insight Platform is enabled. | [optional]
11-
**insight_platform_region** | **str** | The region used for the Insight Platform, if enabled. | [optional]
10+
**insight_platform** | **bool** | Whether the usage of the Insight platform is enabled. | [optional]
11+
**insight_platform_region** | **str** | The region used for the Insight platform, if enabled. | [optional]
1212
**links** | [**list[Link]**](Link.md) | Hypermedia links to corresponding or related resources. | [optional]
1313
**risk** | [**RiskSettings**](RiskSettings.md) | Details risk configuration and settings. | [optional]
1414
**scan** | [**ScanSettings**](ScanSettings.md) | Details the global settings for scanning. | [optional]

docs/SharedCredential.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/SharedCredentialAccount.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
1515
**pem_key** | **str** | | [optional]
1616
**permission_elevation** | **str** | | [optional]
1717
**permission_elevation_password** | **str** | | [optional]
18-
**permission_elevation_user_name** | **str** | | [optional]
18+
**permission_elevation_username** | **str** | | [optional]
1919
**privacy_password** | **str** | | [optional]
2020
**privacy_type** | **str** | | [optional]
2121
**private_key_password** | **str** | | [optional]

docs/SiteCredential.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/UserApi.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Method | HTTP request | Description
88
[**add_user_site**](UserApi.md#add_user_site) | **PUT** /api/3/users/{id}/sites/{siteId} | Site Access
99
[**create_user**](UserApi.md#create_user) | **POST** /api/3/users | Users
1010
[**delete_role**](UserApi.md#delete_role) | **DELETE** /api/3/roles/{id} | Role
11+
[**delete_user**](UserApi.md#delete_user) | **DELETE** /api/3/users/{id} | User
1112
[**get_authentication_source**](UserApi.md#get_authentication_source) | **GET** /api/3/authentication_sources/{id} | Authentication Source
1213
[**get_authentication_source_users**](UserApi.md#get_authentication_source_users) | **GET** /api/3/authentication_sources/{id}/users | Authentication Source Users
1314
[**get_authentication_sources**](UserApi.md#get_authentication_sources) | **GET** /api/3/authentication_sources | Authentication Sources
@@ -233,6 +234,54 @@ No authorization required
233234

234235
[[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)
235236

237+
# **delete_user**
238+
> Links delete_user(id)
239+
240+
User
241+
242+
Deletes a user account.<span class=\"authorization\">Global Administrator</span>
243+
244+
### Example
245+
```python
246+
from __future__ import print_function
247+
import time
248+
import rapid7vmconsole
249+
from rapid7vmconsole.rest import ApiException
250+
from pprint import pprint
251+
252+
# create an instance of the API class
253+
api_instance = rapid7vmconsole.UserApi()
254+
id = 56 # int | The identifier of the user.
255+
256+
try:
257+
# User
258+
api_response = api_instance.delete_user(id)
259+
pprint(api_response)
260+
except ApiException as e:
261+
print("Exception when calling UserApi->delete_user: %s\n" % e)
262+
```
263+
264+
### Parameters
265+
266+
Name | Type | Description | Notes
267+
------------- | ------------- | ------------- | -------------
268+
**id** | **int**| The identifier of the user. |
269+
270+
### Return type
271+
272+
[**Links**](Links.md)
273+
274+
### Authorization
275+
276+
No authorization required
277+
278+
### HTTP request headers
279+
280+
- **Content-Type**: application/json
281+
- **Accept**: application/json;charset=UTF-8
282+
283+
[[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)
284+
236285
# **get_authentication_source**
237286
> AuthenticationSource get_authentication_source(id)
238287

git_push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then
1818
fi
1919

2020
if [ "$release_note" = "" ]; then
21-
release_note="Update generated library to version: 6.5.10"
21+
release_note="Update generated library to version: 0.0.1-6.5.19"
2222
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
2323
fi
2424

rapid7vmconsole/api/user_api.py

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,105 @@ def delete_role_with_http_info(self, id, **kwargs): # noqa: E501
441441
_request_timeout=params.get('_request_timeout'),
442442
collection_formats=collection_formats)
443443

444+
def delete_user(self, id, **kwargs): # noqa: E501
445+
"""User # noqa: E501
446+
447+
Deletes a user account.<span class=\"authorization\">Global Administrator</span> # noqa: E501
448+
This method makes a synchronous HTTP request by default. To make an
449+
asynchronous HTTP request, please pass async=True
450+
>>> thread = api.delete_user(id, async=True)
451+
>>> result = thread.get()
452+
453+
:param async bool
454+
:param int id: The identifier of the user. (required)
455+
:return: Links
456+
If the method is called asynchronously,
457+
returns the request thread.
458+
"""
459+
kwargs['_return_http_data_only'] = True
460+
if kwargs.get('async'):
461+
return self.delete_user_with_http_info(id, **kwargs) # noqa: E501
462+
else:
463+
(data) = self.delete_user_with_http_info(id, **kwargs) # noqa: E501
464+
return data
465+
466+
def delete_user_with_http_info(self, id, **kwargs): # noqa: E501
467+
"""User # noqa: E501
468+
469+
Deletes a user account.<span class=\"authorization\">Global Administrator</span> # noqa: E501
470+
This method makes a synchronous HTTP request by default. To make an
471+
asynchronous HTTP request, please pass async=True
472+
>>> thread = api.delete_user_with_http_info(id, async=True)
473+
>>> result = thread.get()
474+
475+
:param async bool
476+
:param int id: The identifier of the user. (required)
477+
:return: Links
478+
If the method is called asynchronously,
479+
returns the request thread.
480+
"""
481+
482+
all_params = ['id'] # noqa: E501
483+
all_params.append('async')
484+
all_params.append('_return_http_data_only')
485+
all_params.append('_preload_content')
486+
all_params.append('_request_timeout')
487+
488+
params = locals()
489+
for key, val in six.iteritems(params['kwargs']):
490+
if key not in all_params:
491+
raise TypeError(
492+
"Got an unexpected keyword argument '%s'"
493+
" to method delete_user" % key
494+
)
495+
params[key] = val
496+
del params['kwargs']
497+
# verify the required parameter 'id' is set
498+
if ('id' not in params or
499+
params['id'] is None):
500+
raise ValueError("Missing the required parameter `id` when calling `delete_user`") # noqa: E501
501+
502+
collection_formats = {}
503+
504+
path_params = {}
505+
if 'id' in params:
506+
path_params['id'] = params['id'] # noqa: E501
507+
508+
query_params = []
509+
510+
header_params = {}
511+
512+
form_params = []
513+
local_var_files = {}
514+
515+
body_params = None
516+
# HTTP header `Accept`
517+
header_params['Accept'] = self.api_client.select_header_accept(
518+
['application/json;charset=UTF-8']) # noqa: E501
519+
520+
# HTTP header `Content-Type`
521+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
522+
['application/json']) # noqa: E501
523+
524+
# Authentication setting
525+
auth_settings = [] # noqa: E501
526+
527+
return self.api_client.call_api(
528+
'/api/3/users/{id}', 'DELETE',
529+
path_params,
530+
query_params,
531+
header_params,
532+
body=body_params,
533+
post_params=form_params,
534+
files=local_var_files,
535+
response_type='Links', # noqa: E501
536+
auth_settings=auth_settings,
537+
async=params.get('async'),
538+
_return_http_data_only=params.get('_return_http_data_only'),
539+
_preload_content=params.get('_preload_content', True),
540+
_request_timeout=params.get('_request_timeout'),
541+
collection_formats=collection_formats)
542+
444543
def get_authentication_source(self, id, **kwargs): # noqa: E501
445544
"""Authentication Source # noqa: E501
446545

rapid7vmconsole/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7373
self.default_headers[header_name] = header_value
7474
self.cookie = cookie
7575
# Set default User-Agent.
76-
self.user_agent = 'Swagger-Codegen/0.0.1-6.5.10/python'
76+
self.user_agent = 'Swagger-Codegen/0.0.1-6.5.19/python'
7777

7878
def __del__(self):
7979
self.pool.close()

rapid7vmconsole/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,5 +243,5 @@ def to_debug_report(self):
243243
"OS: {env}\n"\
244244
"Python Version: {pyversion}\n"\
245245
"Version of the API: 3\n"\
246-
"SDK Package Version: 0.0.1-6.5.10".\
246+
"SDK Package Version: 0.0.1-6.5.19".\
247247
format(env=sys.platform, pyversion=sys.version)

rapid7vmconsole/models/authentication_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def type(self, type):
181181
:param type: The type of this AuthenticationSource. # noqa: E501
182182
:type: str
183183
"""
184-
allowed_values = ["normal", "kerberos", "ldap", "admin"] # noqa: E501
184+
allowed_values = ["normal", "kerberos", "ldap", "saml", "admin"] # noqa: E501
185185
if type not in allowed_values:
186186
raise ValueError(
187187
"Invalid value for `type` ({0}), must be one of {1}" # noqa: E501

rapid7vmconsole/models/exception_scope.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(self, id=None, key=None, links=None, port=None, type=None, vulnerab
7878
def id(self):
7979
"""Gets the id of this ExceptionScope. # noqa: E501
8080
81-
The identifier of the vulnerability to which the exception applies. # noqa: E501
81+
The identifier of the scope type to which the exception applies. For example in a site scoped vulnerability exception this is the site id, in an asset group vulnerability exception this is the asset group id. # noqa: E501
8282
8383
:return: The id of this ExceptionScope. # noqa: E501
8484
:rtype: int
@@ -89,7 +89,7 @@ def id(self):
8989
def id(self, id):
9090
"""Sets the id of this ExceptionScope.
9191
92-
The identifier of the vulnerability to which the exception applies. # noqa: E501
92+
The identifier of the scope type to which the exception applies. For example in a site scoped vulnerability exception this is the site id, in an asset group vulnerability exception this is the asset group id. # noqa: E501
9393
9494
:param id: The id of this ExceptionScope. # noqa: E501
9595
:type: int

rapid7vmconsole/models/features.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def engine_pool(self, engine_pool):
229229
def insight_platform(self):
230230
"""Gets the insight_platform of this Features. # noqa: E501
231231
232-
Whether the usage of the Insight Platform is allowed. # noqa: E501
232+
Whether the usage of the Insight platform is allowed. # noqa: E501
233233
234234
:return: The insight_platform of this Features. # noqa: E501
235235
:rtype: bool
@@ -240,7 +240,7 @@ def insight_platform(self):
240240
def insight_platform(self, insight_platform):
241241
"""Sets the insight_platform of this Features.
242242
243-
Whether the usage of the Insight Platform is allowed. # noqa: E501
243+
Whether the usage of the Insight platform is allowed. # noqa: E501
244244
245245
:param insight_platform: The insight_platform of this Features. # noqa: E501
246246
:type: bool

rapid7vmconsole/models/report.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def __init__(self, baseline=None, bureau=None, component=None, database=None, em
192192
def baseline(self):
193193
"""Gets the baseline of this Report. # noqa: E501
194194
195-
If the template is `baseline-comparison` or `executive-overview` the baseline scan to compare against. This can be the `first` scan, the `previous` scan, or a scan as of a specified date. # noqa: E501
195+
If the template is `baseline-comparison` or `executive-overview` the baseline scan to compare against. This can be the `first` scan, the `previous` scan, or a scan as of a specified date. Defaults to `previous`. # noqa: E501
196196
197197
:return: The baseline of this Report. # noqa: E501
198198
:rtype: object
@@ -203,7 +203,7 @@ def baseline(self):
203203
def baseline(self, baseline):
204204
"""Sets the baseline of this Report.
205205
206-
If the template is `baseline-comparison` or `executive-overview` the baseline scan to compare against. This can be the `first` scan, the `previous` scan, or a scan as of a specified date. # noqa: E501
206+
If the template is `baseline-comparison` or `executive-overview` the baseline scan to compare against. This can be the `first` scan, the `previous` scan, or a scan as of a specified date. Defaults to `previous`. # noqa: E501
207207
208208
:param baseline: The baseline of this Report. # noqa: E501
209209
:type: object

rapid7vmconsole/models/report_storage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, location=None, path=None): # noqa: E501
5656
def location(self):
5757
"""Gets the location of this ReportStorage. # noqa: E501
5858
59-
The location to storage an additional copy of the report. This is a sub-path post-fixed to `$(install_dir)/nsc/reports/$(user)/`. # noqa: E501
59+
The location to storage an additional copy of the report. This is a sub-path post-fixed to `$(install_dir)/nsc/reports/$(user)/`. Variables such as `$(report_name)`, `$(date)`, and `$(time)` may be used to generate the directory structure. # noqa: E501
6060
6161
:return: The location of this ReportStorage. # noqa: E501
6262
:rtype: str
@@ -67,7 +67,7 @@ def location(self):
6767
def location(self, location):
6868
"""Sets the location of this ReportStorage.
6969
70-
The location to storage an additional copy of the report. This is a sub-path post-fixed to `$(install_dir)/nsc/reports/$(user)/`. # noqa: E501
70+
The location to storage an additional copy of the report. This is a sub-path post-fixed to `$(install_dir)/nsc/reports/$(user)/`. Variables such as `$(report_name)`, `$(date)`, and `$(time)` may be used to generate the directory structure. # noqa: E501
7171
7272
:param location: The location of this ReportStorage. # noqa: E501
7373
:type: str

0 commit comments

Comments
 (0)