code: public ApiResponse<DeviceSharingEnvelope> getAllSharesForDeviceWithHttpInfo(String deviceId, Integer count, Integer offset) throws ApiException {
          com.squareup.okhttp.Call call = getAllSharesForDeviceValidateBeforeCall(deviceId, count, offset, null, null);
          Type localVarReturnType = new TypeToken<DeviceSharingEnvelope>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
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 ApiResponse&lt;DeviceSharingEnvelope&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body