| @@ 6075-6098 (lines=24) @@ | ||
| 6072 | ||
| 6073 | return self._send_xml_command(cmd) |
|
| 6074 | ||
| 6075 | def modify_config_set_name(self, config_id: str, name: str) -> Any: |
|
| 6076 | """Modifies the name of an existing scan config |
|
| 6077 | ||
| 6078 | Arguments: |
|
| 6079 | config_id: UUID of scan config to modify. |
|
| 6080 | name: New name for the config. |
|
| 6081 | """ |
|
| 6082 | if not config_id: |
|
| 6083 | raise RequiredArgument( |
|
| 6084 | function=self.modify_config_set_name.__name__, |
|
| 6085 | argument='config_id', |
|
| 6086 | ) |
|
| 6087 | ||
| 6088 | if not name: |
|
| 6089 | raise RequiredArgument( |
|
| 6090 | function=self.modify_config_set_name.__name__, argument='name' |
|
| 6091 | ) |
|
| 6092 | ||
| 6093 | cmd = XmlCommand("modify_config") |
|
| 6094 | cmd.set_attribute("config_id", str(config_id)) |
|
| 6095 | ||
| 6096 | cmd.add_element("name", name) |
|
| 6097 | ||
| 6098 | return self._send_xml_command(cmd) |
|
| 6099 | ||
| 6100 | def modify_config_set_comment( |
|
| 6101 | self, config_id: str, comment: Optional[str] = "" |
|
| @@ 4641-4664 (lines=24) @@ | ||
| 4638 | ||
| 4639 | return self._send_xml_command(cmd) |
|
| 4640 | ||
| 4641 | def modify_config_set_name(self, config_id: str, name: str) -> Any: |
|
| 4642 | """Modifies the name of an existing scan config |
|
| 4643 | ||
| 4644 | Arguments: |
|
| 4645 | config_id: UUID of scan config to modify. |
|
| 4646 | name: New name for the config. |
|
| 4647 | """ |
|
| 4648 | if not config_id: |
|
| 4649 | raise RequiredArgument( |
|
| 4650 | function=self.modify_config_set_name.__name__, |
|
| 4651 | argument='config_id', |
|
| 4652 | ) |
|
| 4653 | ||
| 4654 | if not name: |
|
| 4655 | raise RequiredArgument( |
|
| 4656 | function=self.modify_config_set_name.__name__, argument='name' |
|
| 4657 | ) |
|
| 4658 | ||
| 4659 | cmd = XmlCommand("modify_config") |
|
| 4660 | cmd.set_attribute("config_id", str(config_id)) |
|
| 4661 | ||
| 4662 | cmd.add_element("name", name) |
|
| 4663 | ||
| 4664 | return self._send_xml_command(cmd) |
|
| 4665 | ||
| 4666 | def modify_config_set_comment( |
|
| 4667 | self, config_id: str, comment: Optional[str] = "" |
|