def METHOD_NAME(self, machine_id: MachineID, services: NetworkServices):
    machine = self.get_machine_by_id(machine_id)
    try:
        machine.network_services.update(services)
        self.upsert_machine(machine)
    except Exception as err:
        raise StorageError("Failed upserting the machine or adding services") from err