@@ 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 |
@@ 6132-6152 (lines=21) @@ | ||
6129 | ||
6130 | return self._send_xml_command(cmd) |
|
6131 | ||
6132 | def modify_config_set_comment( |
|
6133 | self, config_id: str, comment: Optional[str] = "" |
|
6134 | ) -> Any: |
|
6135 | """Modifies the comment of an existing scan config |
|
6136 | ||
6137 | Arguments: |
|
6138 | config_id: UUID of scan config to modify. |
|
6139 | comment: Comment to set on a config. Default: '' |
|
6140 | """ |
|
6141 | if not config_id: |
|
6142 | raise RequiredArgument( |
|
6143 | function=self.modify_config_set_comment.__name__, |
|
6144 | argument='config_id argument', |
|
6145 | ) |
|
6146 | ||
6147 | cmd = XmlCommand("modify_config") |
|
6148 | cmd.set_attribute("config_id", str(config_id)) |
|
6149 | ||
6150 | cmd.add_element("comment", comment) |
|
6151 | ||
6152 | return self._send_xml_command(cmd) |
|
6153 | ||
6154 | def modify_config_set_scanner_preference( |
|
6155 | self, config_id: str, name: str, *, value: Optional[str] = None |