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

Commit

Permalink
Update generated library to version: 6.6.22
Browse files Browse the repository at this point in the history
  • Loading branch information
tschmidtke-r7 committed May 26, 2020
1 parent 914abd6 commit b213e13
Show file tree
Hide file tree
Showing 13 changed files with 635 additions and 593 deletions.
2 changes: 1 addition & 1 deletion api-files/console-swagger.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/AssetGroupApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All URIs are relative to *https://localhost:3780*

Method | HTTP request | Description
------------- | ------------- | -------------
[**add_asset_group_tag**](AssetGroupApi.md#add_asset_group_tag) | **PUT** /api/3/asset_groups/{id}/tags/{tagId} | Asset Group Tag
[**add_asset_group_tag**](AssetGroupApi.md#add_asset_group_tag) | **PUT** /api/3/asset_groups/{id}/tags/{tagId} | Resources and operations for managing asset groups.
[**add_asset_group_user**](AssetGroupApi.md#add_asset_group_user) | **PUT** /api/3/asset_groups/{id}/users/{userId} | Asset Group User
[**add_asset_to_asset_group**](AssetGroupApi.md#add_asset_to_asset_group) | **PUT** /api/3/asset_groups/{id}/assets/{assetId} | Asset Group Asset
[**create_asset_group**](AssetGroupApi.md#create_asset_group) | **POST** /api/3/asset_groups | Asset Groups
Expand All @@ -19,7 +19,7 @@ Method | HTTP request | Description
[**remove_all_asset_group_tags**](AssetGroupApi.md#remove_all_asset_group_tags) | **DELETE** /api/3/asset_groups/{id}/tags | Asset Group Tags
[**remove_all_assets_from_asset_group**](AssetGroupApi.md#remove_all_assets_from_asset_group) | **DELETE** /api/3/asset_groups/{id}/assets | Asset Group Assets
[**remove_asset_from_asset_group**](AssetGroupApi.md#remove_asset_from_asset_group) | **DELETE** /api/3/asset_groups/{id}/assets/{assetId} | Asset Group Asset
[**remove_asset_group_tag**](AssetGroupApi.md#remove_asset_group_tag) | **DELETE** /api/3/asset_groups/{id}/tags/{tagId} | Asset Group Tag
[**remove_asset_group_tag**](AssetGroupApi.md#remove_asset_group_tag) | **DELETE** /api/3/asset_groups/{id}/tags/{tagId} | Resources and operations for managing asset groups.
[**remove_asset_group_user**](AssetGroupApi.md#remove_asset_group_user) | **DELETE** /api/3/asset_groups/{id}/users/{userId} | Asset Group User
[**set_asset_group_search_criteria**](AssetGroupApi.md#set_asset_group_search_criteria) | **PUT** /api/3/asset_groups/{id}/search_criteria | Asset Group Search Criteria
[**set_asset_group_tags**](AssetGroupApi.md#set_asset_group_tags) | **PUT** /api/3/asset_groups/{id}/tags | Asset Group Tags
Expand All @@ -31,7 +31,7 @@ Method | HTTP request | Description
# **add_asset_group_tag**
> Links add_asset_group_tag(id, tag_id)
Asset Group Tag
Resources and operations for managing asset groups.

Adds a tag to an asset group.

Expand All @@ -49,7 +49,7 @@ id = 56 # int | The identifier of the asset group.
tag_id = 56 # int | The identifier of the tag.

try:
# Asset Group Tag
# Resources and operations for managing asset groups.
api_response = api_instance.add_asset_group_tag(id, tag_id)
pprint(api_response)
except ApiException as e:
Expand Down Expand Up @@ -771,7 +771,7 @@ No authorization required
# **remove_asset_group_tag**
> Links remove_asset_group_tag(id, tag_id)
Asset Group Tag
Resources and operations for managing asset groups.

Removes a tag from an asset group.

Expand All @@ -789,7 +789,7 @@ id = 56 # int | The identifier of the asset group.
tag_id = 56 # int | The identifier of the tag.

try:
# Asset Group Tag
# Resources and operations for managing asset groups.
api_response = api_instance.remove_asset_group_tag(id, tag_id)
pprint(api_response)
except ApiException as e:
Expand Down
206 changes: 205 additions & 1 deletion docs/SiteApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All URIs are relative to *https://localhost:3780*

Method | HTTP request | Description
------------- | ------------- | -------------
[**add_excluded_targets**](SiteApi.md#add_excluded_targets) | **POST** /api/3/sites/{id}/excluded_targets | Site Excluded Targets
[**add_included_targets**](SiteApi.md#add_included_targets) | **POST** /api/3/sites/{id}/included_targets | Site Included Targets
[**add_site_tag**](SiteApi.md#add_site_tag) | **PUT** /api/3/sites/{id}/tags/{tagId} | Site Tag
[**add_site_user**](SiteApi.md#add_site_user) | **POST** /api/3/sites/{id}/users | Site Users Access
[**create_site**](SiteApi.md#create_site) | **POST** /api/3/sites | Sites
Expand Down Expand Up @@ -58,7 +60,9 @@ Method | HTTP request | Description
[**remove_all_included_asset_groups**](SiteApi.md#remove_all_included_asset_groups) | **DELETE** /api/3/sites/{id}/included_asset_groups | Site Included Asset Groups
[**remove_asset_from_site**](SiteApi.md#remove_asset_from_site) | **DELETE** /api/3/sites/{id}/assets/{assetId} | Site Asset
[**remove_excluded_asset_group**](SiteApi.md#remove_excluded_asset_group) | **DELETE** /api/3/sites/{id}/excluded_asset_groups/{assetGroupId} | Site Excluded Asset Group
[**remove_excluded_targets**](SiteApi.md#remove_excluded_targets) | **DELETE** /api/3/sites/{id}/excluded_targets | Site Excluded Targets
[**remove_included_asset_group**](SiteApi.md#remove_included_asset_group) | **DELETE** /api/3/sites/{id}/included_asset_groups/{assetGroupId} | Site Included Asset Group
[**remove_included_targets**](SiteApi.md#remove_included_targets) | **DELETE** /api/3/sites/{id}/included_targets | Site Included Targets
[**remove_site_assets**](SiteApi.md#remove_site_assets) | **DELETE** /api/3/sites/{id}/assets | Site Assets
[**remove_site_tag**](SiteApi.md#remove_site_tag) | **DELETE** /api/3/sites/{id}/tags/{tagId} | Site Tag
[**remove_site_user**](SiteApi.md#remove_site_user) | **DELETE** /api/3/sites/{id}/users/{userId} | Site User Access
Expand Down Expand Up @@ -86,6 +90,106 @@ Method | HTTP request | Description
[**update_site_syslog_alert**](SiteApi.md#update_site_syslog_alert) | **PUT** /api/3/sites/{id}/alerts/syslog/{alertId} | Site Syslog Alert


# **add_excluded_targets**
> ReferenceWithSiteIDLink add_excluded_targets(id, scan_targets_to_add=scan_targets_to_add)
Site Excluded Targets

Adds one or more addresses to the site's list of excluded scan targets.

### Example
```python
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = rapid7vmconsole.SiteApi()
id = 56 # int | The identifier of the site.
scan_targets_to_add = [rapid7vmconsole.list[str]()] # list[str] | List of addresses to add to the site's excluded scan targets. Each address is a string that can represent either a hostname, ipv4 address, ipv4 address range, ipv6 address, or CIDR notation. (optional)

try:
# Site Excluded Targets
api_response = api_instance.add_excluded_targets(id, scan_targets_to_add=scan_targets_to_add)
pprint(api_response)
except ApiException as e:
print("Exception when calling SiteApi->add_excluded_targets: %s\n" % e)
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| The identifier of the site. |
**scan_targets_to_add** | **list[str]**| List of addresses to add to the site's excluded scan targets. Each address is a string that can represent either a hostname, ipv4 address, ipv4 address range, ipv6 address, or CIDR notation. | [optional]

### Return type

[**ReferenceWithSiteIDLink**](ReferenceWithSiteIDLink.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json;charset=UTF-8

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

# **add_included_targets**
> ReferenceWithSiteIDLink add_included_targets(id, scan_targets_to_add=scan_targets_to_add)
Site Included Targets

Adds one or more addresses to the site's list of included scan targets.

### Example
```python
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = rapid7vmconsole.SiteApi()
id = 56 # int | The identifier of the site.
scan_targets_to_add = [rapid7vmconsole.list[str]()] # list[str] | List of addresses to add to the site's included scan targets. Each address is a string that can represent either a hostname, ipv4 address, ipv4 address range, ipv6 address, or CIDR notation. (optional)

try:
# Site Included Targets
api_response = api_instance.add_included_targets(id, scan_targets_to_add=scan_targets_to_add)
pprint(api_response)
except ApiException as e:
print("Exception when calling SiteApi->add_included_targets: %s\n" % e)
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| The identifier of the site. |
**scan_targets_to_add** | **list[str]**| List of addresses to add to the site's included scan targets. Each address is a string that can represent either a hostname, ipv4 address, ipv4 address range, ipv6 address, or CIDR notation. | [optional]

### Return type

[**ReferenceWithSiteIDLink**](ReferenceWithSiteIDLink.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json;charset=UTF-8

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

# **add_site_tag**
> Links add_site_tag(id, tag_id)
Expand Down Expand Up @@ -777,7 +881,7 @@ No authorization required
Site

site.delete.description
Deletes the site with the specified identifier.

### Example
```python
Expand Down Expand Up @@ -2734,6 +2838,56 @@ No authorization required

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

# **remove_excluded_targets**
> Links remove_excluded_targets(id, scan_targets_to_remove=scan_targets_to_remove)
Site Excluded Targets

Removes one or more addresses from the site's list of excluded scan targets.

### Example
```python
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = rapid7vmconsole.SiteApi()
id = 56 # int | The identifier of the site.
scan_targets_to_remove = [rapid7vmconsole.list[str]()] # list[str] | List of address to remove from the sites excluded scan targets. Each address is a string that can represent either a hostname, ipv4 address, ipv4 address range, ipv6 address, or CIDR notation. (optional)

try:
# Site Excluded Targets
api_response = api_instance.remove_excluded_targets(id, scan_targets_to_remove=scan_targets_to_remove)
pprint(api_response)
except ApiException as e:
print("Exception when calling SiteApi->remove_excluded_targets: %s\n" % e)
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| The identifier of the site. |
**scan_targets_to_remove** | **list[str]**| List of address to remove from the sites excluded scan targets. Each address is a string that can represent either a hostname, ipv4 address, ipv4 address range, ipv6 address, or CIDR notation. | [optional]

### Return type

[**Links**](Links.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json;charset=UTF-8

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

# **remove_included_asset_group**
> Links remove_included_asset_group(id, asset_group_id)
Expand Down Expand Up @@ -2784,6 +2938,56 @@ No authorization required

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

# **remove_included_targets**
> Links remove_included_targets(id, scan_targets_to_remove=scan_targets_to_remove)
Site Included Targets

Removes one or more addresses from the site's list of included scan targets.

### Example
```python
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = rapid7vmconsole.SiteApi()
id = 56 # int | The identifier of the site.
scan_targets_to_remove = [rapid7vmconsole.list[str]()] # list[str] | List of address to remove from the sites included scan targets. Each address is a string that can represent either a hostname, ipv4 address, ipv4 address range, ipv6 address, or CIDR notation. (optional)

try:
# Site Included Targets
api_response = api_instance.remove_included_targets(id, scan_targets_to_remove=scan_targets_to_remove)
pprint(api_response)
except ApiException as e:
print("Exception when calling SiteApi->remove_included_targets: %s\n" % e)
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| The identifier of the site. |
**scan_targets_to_remove** | **list[str]**| List of address to remove from the sites included scan targets. Each address is a string that can represent either a hostname, ipv4 address, ipv4 address range, ipv6 address, or CIDR notation. | [optional]

### Return type

[**Links**](Links.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json;charset=UTF-8

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

# **remove_site_assets**
> Links remove_site_assets(id)
Expand Down
2 changes: 1 addition & 1 deletion git_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then
fi

if [ "$release_note" = "" ]; then
release_note="Update generated library to version: 6.6.10"
release_note="Update generated library to version: 6.6.22"
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
fi

Expand Down
8 changes: 4 additions & 4 deletions rapid7vmconsole/api/asset_group_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, api_client=None):
self.api_client = api_client

def add_asset_group_tag(self, id, tag_id, **kwargs): # noqa: E501
"""Asset Group Tag # noqa: E501
"""Resources and operations for managing asset groups. # noqa: E501
Adds a tag to an asset group. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand All @@ -55,7 +55,7 @@ def add_asset_group_tag(self, id, tag_id, **kwargs): # noqa: E501
return data

def add_asset_group_tag_with_http_info(self, id, tag_id, **kwargs): # noqa: E501
"""Asset Group Tag # noqa: E501
"""Resources and operations for managing asset groups. # noqa: E501
Adds a tag to an asset group. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down Expand Up @@ -1563,7 +1563,7 @@ def remove_asset_from_asset_group_with_http_info(self, id, asset_id, **kwargs):
collection_formats=collection_formats)

def remove_asset_group_tag(self, id, tag_id, **kwargs): # noqa: E501
"""Asset Group Tag # noqa: E501
"""Resources and operations for managing asset groups. # noqa: E501
Removes a tag from an asset group. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand All @@ -1586,7 +1586,7 @@ def remove_asset_group_tag(self, id, tag_id, **kwargs): # noqa: E501
return data

def remove_asset_group_tag_with_http_info(self, id, tag_id, **kwargs): # noqa: E501
"""Asset Group Tag # noqa: E501
"""Resources and operations for managing asset groups. # noqa: E501
Removes a tag from an asset group. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down
Loading

0 comments on commit b213e13

Please sign in to comment.