// Path: swagger-client-todo/src/main/java/io/swagger/client/auth/HttpBasicAuth.java
// public class HttpBasicAuth implements Authentication {
//   private String username;
//   private String password;
// 
//   public String getUsername() {
//     return username;
//   }
// 
//   public void setUsername(String username) {
//     this.username = username;
//   }
// 
//   public String getPassword() {
//     return password;
//   }
// 
//   public void setPassword(String password) {
//     this.password = password;
//   }
// 
//   @Override
//   public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams) {
//     String str = (username == null ? "" : username) + ":" + (password == null ? "" : password);
//     try {
//       headerParams.put("Authorization", "Basic " + DatatypeConverter.printBase64Binary(str.getBytes("UTF-8")));
//     } catch (UnsupportedEncodingException e) {
//       throw new RuntimeException(e);
//     }
//   }
// }
// 
// Path: swagger-client-todo/src/main/java/io/swagger/client/auth/ApiKeyAuth.java
// public class ApiKeyAuth implements Authentication {
//   private final String location;
//   private final String paramName;
// 
//   private String apiKey;
//   private String apiKeyPrefix;
// 
//   public ApiKeyAuth(String location, String paramName) {
//     this.location = location;
//     this.paramName = paramName;
//   }
// 
//   public String getLocation() {
//     return location;
//   }
// 
//   public String getParamName() {
//     return paramName;
//   }
// 
//   public String getApiKey() {
//     return apiKey;
//   }
// 
//   public void setApiKey(String apiKey) {
//     this.apiKey = apiKey;
//   }
// 
//   public String getApiKeyPrefix() {
//     return apiKeyPrefix;
//   }
// 
//   public void setApiKeyPrefix(String apiKeyPrefix) {
//     this.apiKeyPrefix = apiKeyPrefix;
//   }
// 
//   @Override
//   public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams) {
//     String value;
//     if (apiKeyPrefix != null) {
//       value = apiKeyPrefix + " " + apiKey;
//     } else {
//       value = apiKey;
//     }
//     if (location == "query") {
//       queryParams.add(new Pair(paramName, value));
//     } else if (location == "header") {
//       headerParams.put(paramName, value);
//     }
//   }
// }
// 
// Path: swagger-client-todo/src/main/java/io/swagger/client/auth/OAuth.java
// public class OAuth implements Authentication {
//   @Override
//   public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams) {
//     // TODO: support oauth
//   }
// }


import com.fasterxml.jackson.core.JsonGenerator.Feature;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.config.ClientConfig;
import com.sun.jersey.api.client.config.DefaultClientConfig;
import com.sun.jersey.api.client.filter.LoggingFilter;
import com.sun.jersey.api.client.WebResource.Builder;
import com.sun.jersey.multipart.FormDataMultiPart;
import javax.ws.rs.core.Response.Status.Family;
import javax.ws.rs.core.MediaType;
import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.Map.Entry;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import java.util.Date;
import java.util.TimeZone;
import java.net.URLEncoder;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.text.ParseException;
import io.swagger.client.auth.Authentication;
import io.swagger.client.auth.HttpBasicAuth;
import io.swagger.client.auth.ApiKeyAuth;
import io.swagger.client.auth.OAuth;
   * Helper method to set username for the first HTTP basic authentication.
   */
  public void setUsername(String username) {
    for (Authentication auth : authentications.values()) {
      if (auth instanceof HttpBasicAuth) {
        ((HttpBasicAuth) auth).setUsername(username);
        return;
      }
    }
    throw new RuntimeException("No HTTP basic authentication configured!");
  }

  /**
   * Helper method to set password for the first HTTP basic authentication.
   */
  public void setPassword(String password) {
    for (Authentication auth : authentications.values()) {
      if (auth instanceof HttpBasicAuth) {
        ((HttpBasicAuth) auth).setPassword(password);
        return;
      }
    }
    throw new RuntimeException("No HTTP basic authentication configured!");
  }

  /**
   * Helper method to set API key value for the first API key authentication.
   */
  public void setApiKey(String apiKey) {
    for (Authentication auth : authentications.values()) {
// Path: swagger-client-todo/src/main/java/io/swagger/client/auth/HttpBasicAuth.java
// public class HttpBasicAuth implements Authentication {
//   private String username;
//   private String password;
// 
//   public String getUsername() {
//     return username;
//   }
// 
//   public void setUsername(String username) {
//     this.username = username;
//   }
// 
//   public String getPassword() {
//     return password;
//   }
// 
//   public void setPassword(String password) {
//     this.password = password;
//   }
// 
//   @Override
//   public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams) {
//     String str = (username == null ? "" : username) + ":" + (password == null ? "" : password);
//     try {
//       headerParams.put("Authorization", "Basic " + DatatypeConverter.printBase64Binary(str.getBytes("UTF-8")));
//     } catch (UnsupportedEncodingException e) {
//       throw new RuntimeException(e);
//     }
//   }
// }
// 
// Path: swagger-client-todo/src/main/java/io/swagger/client/auth/ApiKeyAuth.java
// public class ApiKeyAuth implements Authentication {
//   private final String location;
//   private final String paramName;
// 
//   private String apiKey;
//   private String apiKeyPrefix;
// 
//   public ApiKeyAuth(String location, String paramName) {
//     this.location = location;
//     this.paramName = paramName;
//   }
// 
//   public String getLocation() {
//     return location;
//   }
// 
//   public String getParamName() {
//     return paramName;
//   }
// 
//   public String getApiKey() {
//     return apiKey;
//   }
// 
//   public void setApiKey(String apiKey) {
//     this.apiKey = apiKey;
//   }
// 
//   public String getApiKeyPrefix() {
//     return apiKeyPrefix;
//   }
// 
//   public void setApiKeyPrefix(String apiKeyPrefix) {
//     this.apiKeyPrefix = apiKeyPrefix;
//   }
// 
//   @Override
//   public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams) {
//     String value;
//     if (apiKeyPrefix != null) {
//       value = apiKeyPrefix + " " + apiKey;
//     } else {
//       value = apiKey;
//     }
//     if (location == "query") {
//       queryParams.add(new Pair(paramName, value));
//     } else if (location == "header") {
//       headerParams.put(paramName, value);
//     }
//   }
// }
// 
// Path: swagger-client-todo/src/main/java/io/swagger/client/auth/OAuth.java
// public class OAuth implements Authentication {
//   @Override
//   public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams) {
//     // TODO: support oauth
//   }
// }


// Path: swagger-client-todo/src/main/java/io/swagger/client/ApiClient.java
import com.fasterxml.jackson.core.JsonGenerator.Feature;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.config.ClientConfig;
import com.sun.jersey.api.client.config.DefaultClientConfig;
import com.sun.jersey.api.client.filter.LoggingFilter;
import com.sun.jersey.api.client.WebResource.Builder;
import com.sun.jersey.multipart.FormDataMultiPart;
import javax.ws.rs.core.Response.Status.Family;
import javax.ws.rs.core.MediaType;
import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.Map.Entry;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import java.util.Date;
import java.util.TimeZone;
import java.net.URLEncoder;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.text.ParseException;
import io.swagger.client.auth.Authentication;
import io.swagger.client.auth.HttpBasicAuth;
import io.swagger.client.auth.ApiKeyAuth;
import io.swagger.client.auth.OAuth;

   * Helper method to set username for the first HTTP basic authentication.
   */
  public void setUsername(String username) {
    for (Authentication auth : authentications.values()) {
      if (auth instanceof HttpBasicAuth) {
        ((HttpBasicAuth) auth).setUsername(username);
        return;
      }
    }
    throw new RuntimeException("No HTTP basic authentication configured!");
  }

  /**
   * Helper method to set password for the first HTTP basic authentication.
   */
  public void setPassword(String password) {
    for (Authentication auth : authentications.values()) {
      if (auth instanceof HttpBasicAuth) {
        ((HttpBasicAuth) auth).setPassword(password);
        return;
      }
    }
    throw new RuntimeException("No HTTP basic authentication configured!");
  }

  /**
   * Helper method to set API key value for the first API key authentication.
   */
  public void setApiKey(String apiKey) {
    for (Authentication auth : authentications.values()) {
      if (auth instanceof ApiKeyAuth) {