@@ 5229-5270 (lines=42) @@ | ||
5226 | ||
5227 | return self._send_xml_command(cmd) |
|
5228 | ||
5229 | def get_reports( |
|
5230 | self, |
|
5231 | *, |
|
5232 | filter: Optional[str] = None, |
|
5233 | filter_id: Optional[str] = None, |
|
5234 | note_details: Optional[bool] = None, |
|
5235 | override_details: Optional[bool] = None, |
|
5236 | details: Optional[bool] = None, |
|
5237 | ) -> Any: |
|
5238 | """Request a list of reports |
|
5239 | ||
5240 | Arguments: |
|
5241 | filter: Filter term to use for the query |
|
5242 | filter_id: UUID of an existing filter to use for the query |
|
5243 | note_details: If notes are included, whether to include note details |
|
5244 | override_details: If overrides are included, whether to include |
|
5245 | override details |
|
5246 | details: Whether to exclude results |
|
5247 | ||
5248 | Returns: |
|
5249 | The response. See :py:meth:`send_command` for details. |
|
5250 | """ |
|
5251 | cmd = XmlCommand("get_reports") |
|
5252 | ||
5253 | if filter: |
|
5254 | cmd.set_attribute("report_filter", filter) |
|
5255 | ||
5256 | if filter_id: |
|
5257 | cmd.set_attribute("report_filt_id", filter_id) |
|
5258 | ||
5259 | if note_details is not None: |
|
5260 | cmd.set_attribute("note_details", _to_bool(note_details)) |
|
5261 | ||
5262 | if override_details is not None: |
|
5263 | cmd.set_attribute("override_details", _to_bool(override_details)) |
|
5264 | ||
5265 | if details is not None: |
|
5266 | cmd.set_attribute("details", _to_bool(details)) |
|
5267 | ||
5268 | cmd.set_attribute("ignore_pagination", "1") |
|
5269 | ||
5270 | return self._send_xml_command(cmd) |
|
5271 | ||
5272 | def get_report( |
|
5273 | self, |
|
@@ 5397-5437 (lines=41) @@ | ||
5394 | cmd.set_attribute("details", "1") |
|
5395 | return self._send_xml_command(cmd) |
|
5396 | ||
5397 | def get_results( |
|
5398 | self, |
|
5399 | *, |
|
5400 | filter: Optional[str] = None, |
|
5401 | filter_id: Optional[str] = None, |
|
5402 | task_id: Optional[str] = None, |
|
5403 | note_details: Optional[bool] = None, |
|
5404 | override_details: Optional[bool] = None, |
|
5405 | details: Optional[bool] = None, |
|
5406 | ) -> Any: |
|
5407 | """Request a list of results |
|
5408 | ||
5409 | Arguments: |
|
5410 | filter: Filter term to use for the query |
|
5411 | filter_id: UUID of an existing filter to use for the query |
|
5412 | task_id: UUID of task for note and override handling |
|
5413 | note_details: If notes are included, whether to include note details |
|
5414 | override_details: If overrides are included, whether to include |
|
5415 | override details |
|
5416 | details: Whether to include additional details of the results |
|
5417 | ||
5418 | Returns: |
|
5419 | The response. See :py:meth:`send_command` for details. |
|
5420 | """ |
|
5421 | cmd = XmlCommand("get_results") |
|
5422 | ||
5423 | _add_filter(cmd, filter, filter_id) |
|
5424 | ||
5425 | if task_id: |
|
5426 | cmd.set_attribute("task_id", task_id) |
|
5427 | ||
5428 | if details is not None: |
|
5429 | cmd.set_attribute("details", _to_bool(details)) |
|
5430 | ||
5431 | if note_details is not None: |
|
5432 | cmd.set_attribute("note_details", _to_bool(note_details)) |
|
5433 | ||
5434 | if override_details is not None: |
|
5435 | cmd.set_attribute("override_details", _to_bool(override_details)) |
|
5436 | ||
5437 | return self._send_xml_command(cmd) |
|
5438 | ||
5439 | def get_result(self, result_id: str) -> Any: |
|
5440 | """Request a single result |