@@ 6100-6120 (lines=21) @@ | ||
6097 | ||
6098 | return self._send_xml_command(cmd) |
|
6099 | ||
6100 | def modify_config_set_comment( |
|
6101 | self, config_id: str, comment: Optional[str] = "" |
|
6102 | ) -> Any: |
|
6103 | """Modifies the comment of an existing scan config |
|
6104 | ||
6105 | Arguments: |
|
6106 | config_id: UUID of scan config to modify. |
|
6107 | comment: Comment to set on a config. Default: '' |
|
6108 | """ |
|
6109 | if not config_id: |
|
6110 | raise RequiredArgument( |
|
6111 | function=self.modify_config_set_comment.__name__, |
|
6112 | argument='config_id argument', |
|
6113 | ) |
|
6114 | ||
6115 | cmd = XmlCommand("modify_config") |
|
6116 | cmd.set_attribute("config_id", str(config_id)) |
|
6117 | ||
6118 | cmd.add_element("comment", comment) |
|
6119 | ||
6120 | return self._send_xml_command(cmd) |
|
6121 | ||
6122 | def modify_config_set_scanner_preference( |
|
6123 | self, config_id: str, name: str, *, value: Optional[str] = None |
@@ 4666-4686 (lines=21) @@ | ||
4663 | ||
4664 | return self._send_xml_command(cmd) |
|
4665 | ||
4666 | def modify_config_set_comment( |
|
4667 | self, config_id: str, comment: Optional[str] = "" |
|
4668 | ) -> Any: |
|
4669 | """Modifies the comment of an existing scan config |
|
4670 | ||
4671 | Arguments: |
|
4672 | config_id: UUID of scan config to modify. |
|
4673 | comment: Comment to set on a config. Default: '' |
|
4674 | """ |
|
4675 | if not config_id: |
|
4676 | raise RequiredArgument( |
|
4677 | function=self.modify_config_set_comment.__name__, |
|
4678 | argument='config_id argument', |
|
4679 | ) |
|
4680 | ||
4681 | cmd = XmlCommand("modify_config") |
|
4682 | cmd.set_attribute("config_id", str(config_id)) |
|
4683 | ||
4684 | cmd.add_element("comment", comment) |
|
4685 | ||
4686 | return self._send_xml_command(cmd) |
|
4687 | ||
4688 | def modify_config_set_scanner_preference( |
|
4689 | self, config_id: str, name: str, *, value: Optional[str] = None |