Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Catapult REST Endpoints
* OpenAPI Specification of catapult-rest 1.1.2
*
* The version of the OpenAPI document: 0.9.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.nem.symbol.sdk.openapi.okhttp_gson.api;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ApiCallback;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ApiClient;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ApiException;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ApiResponse;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.Configuration;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.Pair;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ProgressRequestBody;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ProgressResponseBody;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.AccountIds;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.AccountsNamesDTO;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.ModelError;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.MosaicIds;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.MosaicsNamesDTO;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.NamespaceIds;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.NamespaceInfoDTO;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.NamespaceNameDTO;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.NamespacesInfoDTO;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class NamespaceRoutesApi {
private ApiClient localVarApiClient;
public NamespaceRoutesApi() {
this(Configuration.getDefaultApiClient());
}
public NamespaceRoutesApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
/**
* Build call for getAccountsNames
* @param accountIds (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
success
-
400
InvalidContent
-
409
InvalidArgument
-
*/
public okhttp3.Call getAccountsNamesCall(AccountIds accountIds, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = accountIds;
// create path and map variables
String localVarPath = "/account/names";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getAccountsNamesValidateBeforeCall(AccountIds accountIds, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getAccountsNamesCall(accountIds, _callback);
return localVarCall;
}
/**
* Get readable names for a set of accountIds
* Returns friendly names for accounts.
* @param accountIds (optional)
* @return AccountsNamesDTO
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
success
-
400
InvalidContent
-
409
InvalidArgument
-
*/
public AccountsNamesDTO getAccountsNames(AccountIds accountIds) throws ApiException {
ApiResponse localVarResp = getAccountsNamesWithHttpInfo(accountIds);
return localVarResp.getData();
}
/**
* Get readable names for a set of accountIds
* Returns friendly names for accounts.
* @param accountIds (optional)
* @return ApiResponse<AccountsNamesDTO>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
success
-
400
InvalidContent
-
409
InvalidArgument
-
*/
public ApiResponse getAccountsNamesWithHttpInfo(AccountIds accountIds) throws ApiException {
okhttp3.Call localVarCall = getAccountsNamesValidateBeforeCall(accountIds, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Get readable names for a set of accountIds (asynchronously)
* Returns friendly names for accounts.
* @param accountIds (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
success
-
400
InvalidContent
-
409
InvalidArgument
-
*/
public okhttp3.Call getAccountsNamesAsync(AccountIds accountIds, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getAccountsNamesValidateBeforeCall(accountIds, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getMosaicsNames
* @param mosaicIds (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
success
-
400
InvalidContent
-
409
InvalidArgument
-
*/
public okhttp3.Call getMosaicsNamesCall(MosaicIds mosaicIds, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = mosaicIds;
// create path and map variables
String localVarPath = "/mosaic/names";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getMosaicsNamesValidateBeforeCall(MosaicIds mosaicIds, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'mosaicIds' is set
if (mosaicIds == null) {
throw new ApiException("Missing the required parameter 'mosaicIds' when calling getMosaicsNames(Async)");
}
okhttp3.Call localVarCall = getMosaicsNamesCall(mosaicIds, _callback);
return localVarCall;
}
/**
* Get readable names for a set of mosaics
* Returns friendly names for mosaics.
* @param mosaicIds (required)
* @return MosaicsNamesDTO
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
success
-
400
InvalidContent
-
409
InvalidArgument
-
*/
public MosaicsNamesDTO getMosaicsNames(MosaicIds mosaicIds) throws ApiException {
ApiResponse localVarResp = getMosaicsNamesWithHttpInfo(mosaicIds);
return localVarResp.getData();
}
/**
* Get readable names for a set of mosaics
* Returns friendly names for mosaics.
* @param mosaicIds (required)
* @return ApiResponse<MosaicsNamesDTO>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
success
-
400
InvalidContent
-
409
InvalidArgument
-
*/
public ApiResponse getMosaicsNamesWithHttpInfo(MosaicIds mosaicIds) throws ApiException {
okhttp3.Call localVarCall = getMosaicsNamesValidateBeforeCall(mosaicIds, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Get readable names for a set of mosaics (asynchronously)
* Returns friendly names for mosaics.
* @param mosaicIds (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
success
-
400
InvalidContent
-
409
InvalidArgument
-
*/
public okhttp3.Call getMosaicsNamesAsync(MosaicIds mosaicIds, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getMosaicsNamesValidateBeforeCall(mosaicIds, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getNamespace
* @param namespaceId Namespace identifier. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
success
-
404
ResourceNotFound
-
409
InvalidArgument
-
*/
public okhttp3.Call getNamespaceCall(String namespaceId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/namespace/{namespaceId}"
.replaceAll("\\{" + "namespaceId" + "\\}", localVarApiClient.escapeString(namespaceId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getNamespaceValidateBeforeCall(String namespaceId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'namespaceId' is set
if (namespaceId == null) {
throw new ApiException("Missing the required parameter 'namespaceId' when calling getNamespace(Async)");
}
okhttp3.Call localVarCall = getNamespaceCall(namespaceId, _callback);
return localVarCall;
}
/**
* Get namespace information
* Gets the namespace for a given namespace identifier.
* @param namespaceId Namespace identifier. (required)
* @return NamespaceInfoDTO
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
success
-
404
ResourceNotFound
-
409
InvalidArgument
-
*/
public NamespaceInfoDTO getNamespace(String namespaceId) throws ApiException {
ApiResponse localVarResp = getNamespaceWithHttpInfo(namespaceId);
return localVarResp.getData();
}
/**
* Get namespace information
* Gets the namespace for a given namespace identifier.
* @param namespaceId Namespace identifier. (required)
* @return ApiResponse<NamespaceInfoDTO>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
success
-
404
ResourceNotFound
-
409
InvalidArgument
-
*/
public ApiResponse getNamespaceWithHttpInfo(String namespaceId) throws ApiException {
okhttp3.Call localVarCall = getNamespaceValidateBeforeCall(namespaceId, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Get namespace information (asynchronously)
* Gets the namespace for a given namespace identifier.
* @param namespaceId Namespace identifier. (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
success
-
404
ResourceNotFound
-
409
InvalidArgument
-
*/
public okhttp3.Call getNamespaceAsync(String namespaceId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getNamespaceValidateBeforeCall(namespaceId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getNamespacesFromAccount
* @param accountId Account public key or address enconded using a 32-character set. (required)
* @param pageSize Select the number of entries to return. (optional, default to 10)
* @param id Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
success
-
404
ResourceNotFound
-
409
InvalidArgument
-
*/
public okhttp3.Call getNamespacesFromAccountCall(String accountId, Integer pageSize, String id, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/account/{accountId}/namespaces"
.replaceAll("\\{" + "accountId" + "\\}", localVarApiClient.escapeString(accountId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (pageSize != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize));
}
if (id != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getNamespacesFromAccountValidateBeforeCall(String accountId, Integer pageSize, String id, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'accountId' is set
if (accountId == null) {
throw new ApiException("Missing the required parameter 'accountId' when calling getNamespacesFromAccount(Async)");
}
okhttp3.Call localVarCall = getNamespacesFromAccountCall(accountId, pageSize, id, _callback);
return localVarCall;
}
/**
* Get namespaces created by an account
* Gets an array of namespaces for a given account address.
* @param accountId Account public key or address enconded using a 32-character set. (required)
* @param pageSize Select the number of entries to return. (optional, default to 10)
* @param id Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional)
* @return NamespacesInfoDTO
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
success
-
404
ResourceNotFound
-
409
InvalidArgument
-
*/
public NamespacesInfoDTO getNamespacesFromAccount(String accountId, Integer pageSize, String id) throws ApiException {
ApiResponse localVarResp = getNamespacesFromAccountWithHttpInfo(accountId, pageSize, id);
return localVarResp.getData();
}
/**
* Get namespaces created by an account
* Gets an array of namespaces for a given account address.
* @param accountId Account public key or address enconded using a 32-character set. (required)
* @param pageSize Select the number of entries to return. (optional, default to 10)
* @param id Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional)
* @return ApiResponse<NamespacesInfoDTO>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
success
-
404
ResourceNotFound
-
409
InvalidArgument
-
*/
public ApiResponse getNamespacesFromAccountWithHttpInfo(String accountId, Integer pageSize, String id) throws ApiException {
okhttp3.Call localVarCall = getNamespacesFromAccountValidateBeforeCall(accountId, pageSize, id, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Get namespaces created by an account (asynchronously)
* Gets an array of namespaces for a given account address.
* @param accountId Account public key or address enconded using a 32-character set. (required)
* @param pageSize Select the number of entries to return. (optional, default to 10)
* @param id Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
success
-
404
ResourceNotFound
-
409
InvalidArgument
-
*/
public okhttp3.Call getNamespacesFromAccountAsync(String accountId, Integer pageSize, String id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getNamespacesFromAccountValidateBeforeCall(accountId, pageSize, id, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getNamespacesFromAccounts
* @param accountIds (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
success
-
400
InvalidContent
-
409
InvalidArgument
-
*/
public okhttp3.Call getNamespacesFromAccountsCall(AccountIds accountIds, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = accountIds;
// create path and map variables
String localVarPath = "/account/namespaces";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getNamespacesFromAccountsValidateBeforeCall(AccountIds accountIds, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getNamespacesFromAccountsCall(accountIds, _callback);
return localVarCall;
}
/**
* Get namespaces for given array of addresses
* Gets namespaces for a given array of addresses.
* @param accountIds (optional)
* @return NamespacesInfoDTO
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
success
-
400
InvalidContent
-
409
InvalidArgument
-
*/
public NamespacesInfoDTO getNamespacesFromAccounts(AccountIds accountIds) throws ApiException {
ApiResponse localVarResp = getNamespacesFromAccountsWithHttpInfo(accountIds);
return localVarResp.getData();
}
/**
* Get namespaces for given array of addresses
* Gets namespaces for a given array of addresses.
* @param accountIds (optional)
* @return ApiResponse<NamespacesInfoDTO>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
success
-
400
InvalidContent
-
409
InvalidArgument
-
*/
public ApiResponse getNamespacesFromAccountsWithHttpInfo(AccountIds accountIds) throws ApiException {
okhttp3.Call localVarCall = getNamespacesFromAccountsValidateBeforeCall(accountIds, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Get namespaces for given array of addresses (asynchronously)
* Gets namespaces for a given array of addresses.
* @param accountIds (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
success
-
400
InvalidContent
-
409
InvalidArgument
-
*/
public okhttp3.Call getNamespacesFromAccountsAsync(AccountIds accountIds, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getNamespacesFromAccountsValidateBeforeCall(accountIds, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getNamespacesNames
* @param namespaceIds (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
success
-
400
InvalidContent
-
409
InvalidArgument
-
*/
public okhttp3.Call getNamespacesNamesCall(NamespaceIds namespaceIds, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = namespaceIds;
// create path and map variables
String localVarPath = "/namespace/names";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getNamespacesNamesValidateBeforeCall(NamespaceIds namespaceIds, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'namespaceIds' is set
if (namespaceIds == null) {
throw new ApiException("Missing the required parameter 'namespaceIds' when calling getNamespacesNames(Async)");
}
okhttp3.Call localVarCall = getNamespacesNamesCall(namespaceIds, _callback);
return localVarCall;
}
/**
* Get readable names for a set of namespaces
* Returns friendly names for namespaces.
* @param namespaceIds (required)
* @return List<NamespaceNameDTO>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
success
-
400
InvalidContent
-
409
InvalidArgument
-
*/
public List getNamespacesNames(NamespaceIds namespaceIds) throws ApiException {
ApiResponse> localVarResp = getNamespacesNamesWithHttpInfo(namespaceIds);
return localVarResp.getData();
}
/**
* Get readable names for a set of namespaces
* Returns friendly names for namespaces.
* @param namespaceIds (required)
* @return ApiResponse<List<NamespaceNameDTO>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
success
-
400
InvalidContent
-
409
InvalidArgument
-
*/
public ApiResponse> getNamespacesNamesWithHttpInfo(NamespaceIds namespaceIds) throws ApiException {
okhttp3.Call localVarCall = getNamespacesNamesValidateBeforeCall(namespaceIds, null);
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Get readable names for a set of namespaces (asynchronously)
* Returns friendly names for namespaces.
* @param namespaceIds (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
success
-
400
InvalidContent
-
409
InvalidArgument
-
*/
public okhttp3.Call getNamespacesNamesAsync(NamespaceIds namespaceIds, final ApiCallback> _callback) throws ApiException {
okhttp3.Call localVarCall = getNamespacesNamesValidateBeforeCall(namespaceIds, _callback);
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
}