code: def list_resources(self, device_id):
          
          api = self._get_api(mds.EndpointsApi)
          return [Resource(r) for r in api.get_endpoint_resources(device_id)]
docs: List all resources registered to a connected device.
  
          .. code-block:: python
  
              >>> for r in api.list_resources(device_id):
                      print(r.name, r.observable, r.uri)
              None,True,/3/0/1
              Update,False,/5/0/3
              ...
  
          :param str device_id: The ID of the device (Required)
          :returns: A list of :py:class:`Resource` objects for the device
          :rtype: list