| 422 | Invalid request parameters | - |
*/
- public okhttp3.Call getCollectionCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable Boolean includeTags, @javax.annotation.Nullable Boolean includeBinaries, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getCollectionCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable Boolean includeTags, @javax.annotation.Nullable Boolean includeBinaries, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable Integer pageNumber, @javax.annotation.Nullable String binarySearchStr, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -395,6 +398,18 @@ public okhttp3.Call getCollectionCall(@javax.annotation.Nonnull Integer collecti
localVarQueryParams.addAll(localVarApiClient.parameterToPair("include_binaries", includeBinaries));
}
+ if (pageSize != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("page_size", pageSize));
+ }
+
+ if (pageNumber != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("page_number", pageNumber));
+ }
+
+ if (binarySearchStr != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("binary_search_str", binarySearchStr));
+ }
+
final String[] localVarAccepts = {
"application/json"
};
@@ -415,13 +430,13 @@ public okhttp3.Call getCollectionCall(@javax.annotation.Nonnull Integer collecti
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getCollectionValidateBeforeCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable Boolean includeTags, @javax.annotation.Nullable Boolean includeBinaries, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call getCollectionValidateBeforeCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable Boolean includeTags, @javax.annotation.Nullable Boolean includeBinaries, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable Integer pageNumber, @javax.annotation.Nullable String binarySearchStr, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'collectionId' is set
if (collectionId == null) {
throw new ApiException("Missing the required parameter 'collectionId' when calling getCollection(Async)");
}
- return getCollectionCall(collectionId, includeTags, includeBinaries, _callback);
+ return getCollectionCall(collectionId, includeTags, includeBinaries, pageSize, pageNumber, binarySearchStr, _callback);
}
@@ -431,6 +446,9 @@ private okhttp3.Call getCollectionValidateBeforeCall(@javax.annotation.Nonnull I
* @param collectionId (required)
* @param includeTags (optional, default to false)
* @param includeBinaries (optional, default to false)
+ * @param pageSize (optional, default to 10)
+ * @param pageNumber (optional, default to 1)
+ * @param binarySearchStr (optional)
* @return BaseResponseCollectionResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -441,8 +459,8 @@ private okhttp3.Call getCollectionValidateBeforeCall(@javax.annotation.Nonnull I