<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def interface_type(self):
 """The interface type of the resource as a number. """

        return self.visalib.parse_resource(self._resource_manager.session,
                                           self.resource_name)[0].interface_type