|
@@ 852-884 (lines=33) @@
|
| 849 |
|
|
| 850 |
|
return self._send_xml_command(cmd) |
| 851 |
|
|
| 852 |
|
def get_tls_certificates( |
| 853 |
|
self, |
| 854 |
|
*, |
| 855 |
|
filter: Optional[str] = None, |
| 856 |
|
filter_id: Optional[str] = None, |
| 857 |
|
include_certificate_data: Optional[bool] = None, |
| 858 |
|
details: Optional[bool] = None, |
| 859 |
|
) -> Any: |
| 860 |
|
"""Request a list of TLS certificates |
| 861 |
|
|
| 862 |
|
Arguments: |
| 863 |
|
filter: Filter term to use for the query |
| 864 |
|
filter_id: UUID of an existing filter to use for the query |
| 865 |
|
include_certificate_data: Whether to include the certificate data in |
| 866 |
|
the response |
| 867 |
|
|
| 868 |
|
Returns: |
| 869 |
|
The response. See :py:meth:`send_command` for details. |
| 870 |
|
""" |
| 871 |
|
|
| 872 |
|
cmd = XmlCommand("get_tls_certificates") |
| 873 |
|
|
| 874 |
|
add_filter(cmd, filter, filter_id) |
| 875 |
|
|
| 876 |
|
if details is not None: |
| 877 |
|
cmd.set_attribute("details", to_bool(details)) |
| 878 |
|
|
| 879 |
|
if include_certificate_data is not None: |
| 880 |
|
cmd.set_attribute( |
| 881 |
|
"include_certificate_data", to_bool(include_certificate_data) |
| 882 |
|
) |
| 883 |
|
|
| 884 |
|
return self._send_xml_command(cmd) |
| 885 |
|
|
| 886 |
|
def get_tls_certificate(self, tls_certificate_id: str) -> Any: |
| 887 |
|
"""Request a single TLS certificate |
|
@@ 4472-4501 (lines=30) @@
|
| 4469 |
|
|
| 4470 |
|
return self._send_xml_command(cmd) |
| 4471 |
|
|
| 4472 |
|
def get_overrides( |
| 4473 |
|
self, |
| 4474 |
|
*, |
| 4475 |
|
filter: Optional[str] = None, |
| 4476 |
|
filter_id: Optional[str] = None, |
| 4477 |
|
details: Optional[bool] = None, |
| 4478 |
|
result: Optional[bool] = None, |
| 4479 |
|
) -> Any: |
| 4480 |
|
"""Request a list of overrides |
| 4481 |
|
|
| 4482 |
|
Arguments: |
| 4483 |
|
filter: Filter term to use for the query |
| 4484 |
|
filter_id: UUID of an existing filter to use for the query |
| 4485 |
|
details: Whether to include full details |
| 4486 |
|
result: Whether to include results using the override |
| 4487 |
|
|
| 4488 |
|
Returns: |
| 4489 |
|
The response. See :py:meth:`send_command` for details. |
| 4490 |
|
""" |
| 4491 |
|
cmd = XmlCommand("get_overrides") |
| 4492 |
|
|
| 4493 |
|
add_filter(cmd, filter, filter_id) |
| 4494 |
|
|
| 4495 |
|
if details is not None: |
| 4496 |
|
cmd.set_attribute("details", to_bool(details)) |
| 4497 |
|
|
| 4498 |
|
if result is not None: |
| 4499 |
|
cmd.set_attribute("result", to_bool(result)) |
| 4500 |
|
|
| 4501 |
|
return self._send_xml_command(cmd) |
| 4502 |
|
|
| 4503 |
|
def get_override(self, override_id: str) -> Any: |
| 4504 |
|
"""Request a single override |
|
@@ 4319-4348 (lines=30) @@
|
| 4316 |
|
cmd.set_attribute("group_id", group_id) |
| 4317 |
|
return self._send_xml_command(cmd) |
| 4318 |
|
|
| 4319 |
|
def get_notes( |
| 4320 |
|
self, |
| 4321 |
|
*, |
| 4322 |
|
filter: Optional[str] = None, |
| 4323 |
|
filter_id: Optional[str] = None, |
| 4324 |
|
details: Optional[bool] = None, |
| 4325 |
|
result: Optional[bool] = None, |
| 4326 |
|
) -> Any: |
| 4327 |
|
"""Request a list of notes |
| 4328 |
|
|
| 4329 |
|
Arguments: |
| 4330 |
|
filter: Filter term to use for the query |
| 4331 |
|
filter_id: UUID of an existing filter to use for the query |
| 4332 |
|
details: Add info about connected results and tasks |
| 4333 |
|
result: Return the details of possible connected results. |
| 4334 |
|
|
| 4335 |
|
Returns: |
| 4336 |
|
The response. See :py:meth:`send_command` for details. |
| 4337 |
|
""" |
| 4338 |
|
cmd = XmlCommand("get_notes") |
| 4339 |
|
|
| 4340 |
|
add_filter(cmd, filter, filter_id) |
| 4341 |
|
|
| 4342 |
|
if details is not None: |
| 4343 |
|
cmd.set_attribute("details", to_bool(details)) |
| 4344 |
|
|
| 4345 |
|
if result is not None: |
| 4346 |
|
cmd.set_attribute("result", to_bool(result)) |
| 4347 |
|
|
| 4348 |
|
return self._send_xml_command(cmd) |
| 4349 |
|
|
| 4350 |
|
def get_note(self, note_id: str) -> Any: |
| 4351 |
|
"""Request a single note |
|
@@ 4745-4775 (lines=31) @@
|
| 4742 |
|
cmd.set_attribute("role_id", role_id) |
| 4743 |
|
return self._send_xml_command(cmd) |
| 4744 |
|
|
| 4745 |
|
def get_scanners( |
| 4746 |
|
self, |
| 4747 |
|
*, |
| 4748 |
|
filter: Optional[str] = None, |
| 4749 |
|
filter_id: Optional[str] = None, |
| 4750 |
|
trash: Optional[bool] = None, |
| 4751 |
|
details: Optional[bool] = None, |
| 4752 |
|
) -> Any: |
| 4753 |
|
"""Request a list of scanners |
| 4754 |
|
|
| 4755 |
|
Arguments: |
| 4756 |
|
filter: Filter term to use for the query |
| 4757 |
|
filter_id: UUID of an existing filter to use for the query |
| 4758 |
|
trash: Whether to get the trashcan scanners instead |
| 4759 |
|
details: Whether to include extra details like tasks using this |
| 4760 |
|
scanner |
| 4761 |
|
|
| 4762 |
|
Returns: |
| 4763 |
|
The response. See :py:meth:`send_command` for details. |
| 4764 |
|
""" |
| 4765 |
|
cmd = XmlCommand("get_scanners") |
| 4766 |
|
|
| 4767 |
|
add_filter(cmd, filter, filter_id) |
| 4768 |
|
|
| 4769 |
|
if trash is not None: |
| 4770 |
|
cmd.set_attribute("trash", to_bool(trash)) |
| 4771 |
|
|
| 4772 |
|
if details is not None: |
| 4773 |
|
cmd.set_attribute("details", to_bool(details)) |
| 4774 |
|
|
| 4775 |
|
return self._send_xml_command(cmd) |
| 4776 |
|
|
| 4777 |
|
def get_scanner(self, scanner_id: str) -> Any: |
| 4778 |
|
"""Request a single scanner |