org.finra.herd.sdk.api.PartitionKeyGroupApi Maven / Gradle / Ivy
/*
* herd-external
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 0.125.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.finra.herd.sdk.api;
import com.sun.jersey.api.client.GenericType;
import org.finra.herd.sdk.invoker.ApiException;
import org.finra.herd.sdk.invoker.ApiClient;
import org.finra.herd.sdk.invoker.Configuration;
import org.finra.herd.sdk.model.*;
import org.finra.herd.sdk.invoker.Pair;
import org.finra.herd.sdk.model.ErrorInformation;
import org.finra.herd.sdk.model.PartitionKeyGroup;
import org.finra.herd.sdk.model.PartitionKeyGroupKeys;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class PartitionKeyGroupApi {
private ApiClient apiClient;
public PartitionKeyGroupApi() {
this(Configuration.getDefaultApiClient());
}
public PartitionKeyGroupApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* getPartitionKeyGroup
* Gets an existing partition key group by name.
* @param partitionKeyGroupName the partition key group name (required)
* @return PartitionKeyGroup
* @throws ApiException if fails to make API call
*/
public PartitionKeyGroup partitionKeyGroupGetPartitionKeyGroup(String partitionKeyGroupName) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'partitionKeyGroupName' is set
if (partitionKeyGroupName == null) {
throw new ApiException(400, "Missing the required parameter 'partitionKeyGroupName' when calling partitionKeyGroupGetPartitionKeyGroup");
}
// create path and map variables
String localVarPath = "/partitionKeyGroups/{partitionKeyGroupName}"
.replaceAll("\\{" + "partitionKeyGroupName" + "\\}", apiClient.escapeString(partitionKeyGroupName.toString()));
// query params
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/xml", "application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* getPartitionKeyGroups
* Gets a list of all existing partition key groups.
* @return PartitionKeyGroupKeys
* @throws ApiException if fails to make API call
*/
public PartitionKeyGroupKeys partitionKeyGroupGetPartitionKeyGroups() throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/partitionKeyGroups";
// query params
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/xml", "application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
}