Files
community.general/lib/ansible/module_utils
Ricardo Carrillo Cruz f9079274e7 Checkpoint httpapi plugin (#49929)
* Add checkpoint httpapi plugin and access rule facts module

* WIP checkpoint_access_rule module

* Add publish and install policy, plus fix empty json object request for publish

* Refactor publish and install_policy onto module_utils

* Add update resource logic

* Add checkpoint_host_facts module

* Return code and response on get_acess_rule function

* Add checkpoint_host module

* Add checkpoint_run_script module

* Add checkpoint_task_facts module

* Show all tasks if no task id is passed

Note, this is only available on v1.3 of Checkpoint WS API

* Add update logic to checkpoint host

* Add full details on get task call

* Add checkpoint httpapi plugin

* Fix pep8

* Use auth instead of sid property and return False on handle_httperror method

* Fix version in docstring

* Remove constructor

* Remove Accept from base headers

* Do not override http error handler and assign Checkpoint sid to connection _auth

There is scaffolding in the base class to autoappend the token, given
it is assigned to connection _send

* Use new connection queue message method instead of display

* Remove unused display

* Catch ValueError, since it's a parent of JSONDecodeError

* Make static methods that are not used outside the class regular methods

* Add missing self to previously static methods

* Fix logout

Was carrying copy pasta from ftd plugin

* Remove send_auth_request

* Use BASE_HEADERS constant

* Simplify copyright header on httpapi plugin

* Remove access rule module

* Remove unused imports

* Add unit test

* Fix pep8

* Add test

* Add test

* Fix pep8
2019-01-07 14:02:29 +01:00
..
2018-11-02 12:14:57 -04:00
2018-12-26 13:26:46 +00:00
2019-01-03 16:21:09 -08:00
2017-06-02 12:14:11 +01:00
2017-06-02 12:14:11 +01:00
2018-08-21 16:32:37 +02:00
2018-11-16 12:39:05 +00:00
2018-09-24 21:03:50 +02:00
2018-11-15 11:06:54 +10:00
2017-09-13 01:53:08 -07:00
2018-07-31 13:23:05 -04:00
2017-06-02 12:14:11 +01:00