code: public DeviceSharingEnvelope getAllSharesForDevice(String deviceId, Integer count, Integer offset) throws ApiException {
          ApiResponse<DeviceSharingEnvelope> resp = getAllSharesForDeviceWithHttpInfo(deviceId, count, offset);
          return resp.getData();
      }
docs: List all shares for the given device id
  List all shares for the given device id
  @param deviceId Device ID. (required)
  @param count Desired count of items in the result set. (optional)
  @param offset Offset for pagination. (optional)
  @return DeviceSharingEnvelope
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body