| @@ 4387-4415 (lines=29) @@ | ||
| 4384 | ||
| 4385 | return self._send_xml_command(cmd) |
|
| 4386 | ||
| 4387 | def delete_report_format( |
|
| 4388 | self, |
|
| 4389 | report_format_id: Optional[Union[str, ReportFormatType]] = None, |
|
| 4390 | *, |
|
| 4391 | ultimate: Optional[bool] = False, |
|
| 4392 | ) -> Any: |
|
| 4393 | """Deletes an existing report format |
|
| 4394 | ||
| 4395 | Arguments: |
|
| 4396 | report_format_id: UUID of the report format to be deleted. |
|
| 4397 | or ReportFormatType (enum) |
|
| 4398 | ultimate: Whether to remove entirely, or to the trashcan. |
|
| 4399 | """ |
|
| 4400 | if not report_format_id: |
|
| 4401 | raise RequiredArgument( |
|
| 4402 | function=self.delete_report_format.__name__, |
|
| 4403 | argument='report_format_id', |
|
| 4404 | ) |
|
| 4405 | ||
| 4406 | cmd = XmlCommand("delete_report_format") |
|
| 4407 | ||
| 4408 | if isinstance(report_format_id, ReportFormatType): |
|
| 4409 | report_format_id = report_format_id.value |
|
| 4410 | ||
| 4411 | cmd.set_attribute("report_format_id", report_format_id) |
|
| 4412 | ||
| 4413 | cmd.set_attribute("ultimate", _to_bool(ultimate)) |
|
| 4414 | ||
| 4415 | return self._send_xml_command(cmd) |
|
| 4416 | ||
| 4417 | def delete_role( |
|
| 4418 | self, role_id: str, *, ultimate: Optional[bool] = False |
|
| @@ 2510-2538 (lines=29) @@ | ||
| 2507 | ||
| 2508 | return self._send_xml_command(cmd) |
|
| 2509 | ||
| 2510 | def delete_report_format( |
|
| 2511 | self, |
|
| 2512 | report_format_id: Optional[Union[str, ReportFormatType]] = None, |
|
| 2513 | *, |
|
| 2514 | ultimate: Optional[bool] = False, |
|
| 2515 | ) -> Any: |
|
| 2516 | """Deletes an existing report format |
|
| 2517 | ||
| 2518 | Arguments: |
|
| 2519 | report_format_id: UUID of the report format to be deleted. |
|
| 2520 | or ReportFormatType (enum) |
|
| 2521 | ultimate: Whether to remove entirely, or to the trashcan. |
|
| 2522 | """ |
|
| 2523 | if not report_format_id: |
|
| 2524 | raise RequiredArgument( |
|
| 2525 | function=self.delete_report_format.__name__, |
|
| 2526 | argument='report_format_id', |
|
| 2527 | ) |
|
| 2528 | ||
| 2529 | cmd = XmlCommand("delete_report_format") |
|
| 2530 | ||
| 2531 | if isinstance(report_format_id, ReportFormatType): |
|
| 2532 | report_format_id = report_format_id.value |
|
| 2533 | ||
| 2534 | cmd.set_attribute("report_format_id", report_format_id) |
|
| 2535 | ||
| 2536 | cmd.set_attribute("ultimate", _to_bool(ultimate)) |
|
| 2537 | ||
| 2538 | return self._send_xml_command(cmd) |
|
| 2539 | ||
| 2540 | def delete_role( |
|
| 2541 | self, role_id: str, *, ultimate: Optional[bool] = False |
|