Skip to content

Commit

Permalink
Merge pull request #223 from bjoernricks/audit-and-policy-support-in-…
Browse files Browse the repository at this point in the history
…gmpv9

Audit and policy support in gmpv9
  • Loading branch information
bjoernricks authored Apr 30, 2020
2 parents 7300a29 + acdbc65 commit 9e6edc5
Show file tree
Hide file tree
Showing 19 changed files with 1,277 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

* Add full support for audits and policies. Add `get_policy`, `get_policies`,
`clone_policy`, `delete_policy`, `get_audit`, `get_audits`, `clone_audit` and
`delete_audit` methods to GMPv9 class. Also do not return policies for config
requests and audits for task requests [#223](https://github.com/greenbone/python-gvm/pull/223)

### Changed

* If it isn't possible to connect to a Unix Domain Socket a GvmError is raised
Expand Down Expand Up @@ -121,7 +126,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Added Gmpv8 version of modify_tag with resource_action parameter,
resource_filter parameter, plural resource_ids parameter [#115](https://github.com/greenbone/python-gvm/pull/115)
* Added no_details argument to `get_reports` method [#129](https://github.com/greenbone/python-gvm/pull/129)
* Added `get_vulnerabilites` method [#132](https://github.com/greenbone/python-gvm/pull/132)
* Added `get_vulnerabilities` method [#132](https://github.com/greenbone/python-gvm/pull/132)
* Added `get_ticket`, `get_tickets`, `create_ticket`, `clone_ticket`, `modify_ticket` and `delete_ticket`
APIs to GMPv8 [#132](https://github.com/greenbone/python-gvm/pull/132)
* Added filter types for `host`, `operating system`, `ticket` and `vulnerability`
Expand Down
6 changes: 3 additions & 3 deletions gvm/protocols/gmpv7/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2030,7 +2030,7 @@ def create_task(
if not _is_list_like(observers):
raise InvalidArgumentType(
function=self.create_task.__name__,
argument='obeservers',
argument='observers',
arg_type='list',
)

Expand Down Expand Up @@ -3613,7 +3613,7 @@ def get_report(
report_format_id: UUID of report format to use
ignore_pagination: Whether to ignore the filter terms "first" and
"rows".
details: Request addititional report information details
details: Request additional report information details
Returns:
The response. See :py:meth:`send_command` for details.
Expand Down Expand Up @@ -5838,7 +5838,7 @@ def modify_task(
if not _is_list_like(observers):
raise InvalidArgumentType(
function=self.modify_task.__name__,
argument='obeservers',
argument='observers',
arg_type='list',
)

Expand Down
Loading

0 comments on commit 9e6edc5

Please sign in to comment.