mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 11:32:44 +00:00
[Okhttp] fix warnings and better docstrings for constructors (#10859)
* surpress serial warning * better docstrings in api client java class
This commit is contained in:
@@ -132,6 +132,8 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Constructor for ApiClient to support access token retry on 401/403 configured with client ID
|
||||
*
|
||||
* @param clientId client ID
|
||||
*/
|
||||
public ApiClient(String clientId) {
|
||||
this(clientId, null, null);
|
||||
@@ -139,6 +141,9 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Constructor for ApiClient to support access token retry on 401/403 configured with client ID and additional parameters
|
||||
*
|
||||
* @param clientId client ID
|
||||
* @param parameters a {@link java.util.Map} of parameters
|
||||
*/
|
||||
public ApiClient(String clientId, Map<String, String> parameters) {
|
||||
this(clientId, null, parameters);
|
||||
@@ -146,6 +151,10 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Constructor for ApiClient to support access token retry on 401/403 configured with client ID, secret, and additional parameters
|
||||
*
|
||||
* @param clientId client ID
|
||||
* @param clientSecret client secret
|
||||
* @param parameters a {@link java.util.Map} of parameters
|
||||
*/
|
||||
public ApiClient(String clientId, String clientSecret, Map<String, String> parameters) {
|
||||
this(null, clientId, clientSecret, parameters);
|
||||
@@ -153,6 +162,11 @@ public class ApiClient {
|
||||
|
||||
/**
|
||||
* Constructor for ApiClient to support access token retry on 401/403 configured with base path, client ID, secret, and additional parameters
|
||||
*
|
||||
* @param basePath base path
|
||||
* @param clientId client ID
|
||||
* @param clientSecret client secret
|
||||
* @param parameters a {@link java.util.Map} of parameters
|
||||
*/
|
||||
public ApiClient(String basePath, String clientId, String clientSecret, Map<String, String> parameters) {
|
||||
init();
|
||||
@@ -1330,6 +1344,9 @@ public class ApiClient {
|
||||
* @param queryParams List of query parameters
|
||||
* @param headerParams Map of header parameters
|
||||
* @param cookieParams Map of cookie parameters
|
||||
* @param payload HTTP request body
|
||||
* @param method HTTP method
|
||||
* @param uri URI
|
||||
*/
|
||||
public void updateParamsForAuth(String[] authNames, List<Pair> queryParams, Map<String, String> headerParams,
|
||||
Map<String, String> cookieParams, String payload, String method, URI uri) throws ApiException {
|
||||
|
||||
@@ -19,6 +19,7 @@ import java.util.List;
|
||||
/**
|
||||
* <p>ApiException class.</p>
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ApiException extends Exception {
|
||||
private int code = 0;
|
||||
|
||||
Reference in New Issue
Block a user