def _remove_system_by_id(self, system_id): if system_id is None: raise DeleteError("Cannot delete a system without an id") response = self.client.delete_system(system_id) if response.ok: return True else: self._handle_response_failure(response, default_exc=DeleteError)
def remove_instance(self, instance_id): """Remove an instance :param instance_id: The ID of the instance :return: The response """ if instance_id is None: raise DeleteError("Cannot delete an instance without an id") response = self.client.delete_instance(instance_id) if response.ok: return True else: self._handle_response_failure(response, default_exc=DeleteError)
def remove_instance(self, instance_id): """Remove an Instance Args: instance_id (str): The Instance ID Returns: bool: True if the remove was successful """ if instance_id is None: raise DeleteError("Cannot delete an instance without an id") return self.client.delete_instance(instance_id)
def _remove_system_by_id(self, system_id): if system_id is None: raise DeleteError("Cannot delete a system without an id") return self.client.delete_system(system_id)