@@ 4543-4562 (lines=20) @@ | ||
4540 | ||
4541 | return self._send_xml_command(cmd) |
|
4542 | ||
4543 | def modify_asset(self, asset_id: str, comment: Optional[str] = "") -> Any: |
|
4544 | """Modifies an existing asset. |
|
4545 | ||
4546 | Arguments: |
|
4547 | asset_id: UUID of the asset to be modified. |
|
4548 | comment: Comment for the asset. |
|
4549 | ||
4550 | Returns: |
|
4551 | The response. See :py:meth:`send_command` for details. |
|
4552 | """ |
|
4553 | if not asset_id: |
|
4554 | raise RequiredArgument( |
|
4555 | function=self.modify_asset.__name__, argument='asset_id' |
|
4556 | ) |
|
4557 | ||
4558 | cmd = XmlCommand("modify_asset") |
|
4559 | cmd.set_attribute("asset_id", asset_id) |
|
4560 | cmd.add_element("comment", comment) |
|
4561 | ||
4562 | return self._send_xml_command(cmd) |
|
4563 | ||
4564 | def modify_auth(self, group_name: str, auth_conf_settings: dict) -> Any: |
|
4565 | """Modifies an existing auth. |
@@ 6009-6028 (lines=20) @@ | ||
6006 | ||
6007 | return self._send_xml_command(cmd) |
|
6008 | ||
6009 | def modify_asset(self, asset_id: str, comment: Optional[str] = "") -> Any: |
|
6010 | """Modifies an existing asset. |
|
6011 | ||
6012 | Arguments: |
|
6013 | asset_id: UUID of the asset to be modified. |
|
6014 | comment: Comment for the asset. |
|
6015 | ||
6016 | Returns: |
|
6017 | The response. See :py:meth:`send_command` for details. |
|
6018 | """ |
|
6019 | if not asset_id: |
|
6020 | raise RequiredArgument( |
|
6021 | function=self.modify_asset.__name__, argument='asset_id' |
|
6022 | ) |
|
6023 | ||
6024 | cmd = XmlCommand("modify_asset") |
|
6025 | cmd.set_attribute("asset_id", asset_id) |
|
6026 | cmd.add_element("comment", comment) |
|
6027 | ||
6028 | return self._send_xml_command(cmd) |
|
6029 | ||
6030 | def modify_auth(self, group_name: str, auth_conf_settings: dict) -> Any: |
|
6031 | """Modifies an existing auth. |