Skip to content

Commit 503295b

Browse files
committed
feat: auto generate for vke-2.5
1 parent 8e7abb6 commit 503295b

File tree

125 files changed

+1605
-122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+1605
-122
lines changed

volcengine-java-sdk-vke/src/main/java/com/volcengine/vke/VkeApi.java

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
import com.volcengine.vke.model.DeleteNodePoolResponse;
4646
import com.volcengine.vke.model.DeleteNodesRequest;
4747
import com.volcengine.vke.model.DeleteNodesResponse;
48+
import com.volcengine.vke.model.ForwardKubernetesApiRequest;
49+
import com.volcengine.vke.model.ForwardKubernetesApiResponse;
4850
import com.volcengine.vke.model.ListAddonsRequest;
4951
import com.volcengine.vke.model.ListAddonsResponse;
5052
import com.volcengine.vke.model.ListClustersRequest;
@@ -1207,6 +1209,130 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
12071209
apiClient.executeAsync(call, localVarReturnType, callback);
12081210
return call;
12091211
}
1212+
/**
1213+
* Build call for forwardKubernetesApi
1214+
* @param body (required)
1215+
* @param progressListener Progress listener
1216+
* @param progressRequestListener Progress request listener
1217+
* @return Call to execute
1218+
* @throws ApiException If fail to serialize the request body object
1219+
*/
1220+
public com.squareup.okhttp.Call forwardKubernetesApiCall(ForwardKubernetesApiRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
1221+
Object localVarPostBody = body;
1222+
1223+
// create path and map variables
1224+
String localVarPath = "/ForwardKubernetesApi/2022-05-12/vke/post/";
1225+
1226+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
1227+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
1228+
1229+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
1230+
1231+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
1232+
1233+
final String[] localVarAccepts = {
1234+
"application/json"
1235+
};
1236+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
1237+
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
1238+
1239+
final String[] localVarContentTypes = {
1240+
"application/json"
1241+
};
1242+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
1243+
localVarHeaderParams.put("Content-Type", localVarContentType);
1244+
1245+
if(progressListener != null) {
1246+
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
1247+
@Override
1248+
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
1249+
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
1250+
return originalResponse.newBuilder()
1251+
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
1252+
.build();
1253+
}
1254+
});
1255+
}
1256+
1257+
String[] localVarAuthNames = new String[] { "volcengineSign" };
1258+
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
1259+
}
1260+
1261+
@SuppressWarnings("rawtypes")
1262+
private com.squareup.okhttp.Call forwardKubernetesApiValidateBeforeCall(ForwardKubernetesApiRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
1263+
// verify the required parameter 'body' is set
1264+
if (body == null) {
1265+
throw new ApiException("Missing the required parameter 'body' when calling forwardKubernetesApi(Async)");
1266+
}
1267+
1268+
com.squareup.okhttp.Call call = forwardKubernetesApiCall(body, progressListener, progressRequestListener);
1269+
return call;
1270+
1271+
1272+
1273+
1274+
1275+
}
1276+
1277+
/**
1278+
*
1279+
*
1280+
* @param body (required)
1281+
* @return ForwardKubernetesApiResponse
1282+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
1283+
*/
1284+
public ForwardKubernetesApiResponse forwardKubernetesApi(ForwardKubernetesApiRequest body) throws ApiException {
1285+
ApiResponse<ForwardKubernetesApiResponse> resp = forwardKubernetesApiWithHttpInfo(body);
1286+
return resp.getData();
1287+
}
1288+
1289+
/**
1290+
*
1291+
*
1292+
* @param body (required)
1293+
* @return ApiResponse&lt;ForwardKubernetesApiResponse&gt;
1294+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
1295+
*/
1296+
public ApiResponse<ForwardKubernetesApiResponse> forwardKubernetesApiWithHttpInfo( @NotNull ForwardKubernetesApiRequest body) throws ApiException {
1297+
com.squareup.okhttp.Call call = forwardKubernetesApiValidateBeforeCall(body, null, null);
1298+
Type localVarReturnType = new TypeToken<ForwardKubernetesApiResponse>(){}.getType();
1299+
return apiClient.execute(call, localVarReturnType);
1300+
}
1301+
1302+
/**
1303+
* (asynchronously)
1304+
*
1305+
* @param body (required)
1306+
* @param callback The callback to be executed when the API call finishes
1307+
* @return The request call
1308+
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
1309+
*/
1310+
public com.squareup.okhttp.Call forwardKubernetesApiAsync(ForwardKubernetesApiRequest body, final ApiCallback<ForwardKubernetesApiResponse> callback) throws ApiException {
1311+
1312+
ProgressResponseBody.ProgressListener progressListener = null;
1313+
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
1314+
1315+
if (callback != null) {
1316+
progressListener = new ProgressResponseBody.ProgressListener() {
1317+
@Override
1318+
public void update(long bytesRead, long contentLength, boolean done) {
1319+
callback.onDownloadProgress(bytesRead, contentLength, done);
1320+
}
1321+
};
1322+
1323+
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
1324+
@Override
1325+
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
1326+
callback.onUploadProgress(bytesWritten, contentLength, done);
1327+
}
1328+
};
1329+
}
1330+
1331+
com.squareup.okhttp.Call call = forwardKubernetesApiValidateBeforeCall(body, progressListener, progressRequestListener);
1332+
Type localVarReturnType = new TypeToken<ForwardKubernetesApiResponse>(){}.getType();
1333+
apiClient.executeAsync(call, localVarReturnType, callback);
1334+
return call;
1335+
}
12101336
/**
12111337
* Build call for listAddons
12121338
* @param body (required)

volcengine-java-sdk-vke/src/main/java/com/volcengine/vke/model/ApiServerEndpointsForListClustersOutput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* ApiServerEndpointsForListClustersOutput
3030
*/
3131

32-
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-09-19T12:20:19.967862+08:00[Asia/Shanghai]")
32+
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-10-22T17:04:04.290377+08:00[Asia/Shanghai]")
3333
public class ApiServerEndpointsForListClustersOutput {
3434
@SerializedName("PrivateIp")
3535
private PrivateIpForListClustersOutput privateIp = null;

volcengine-java-sdk-vke/src/main/java/com/volcengine/vke/model/ApiServerPublicAccessConfigForCreateClusterInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* ApiServerPublicAccessConfigForCreateClusterInput
2929
*/
3030

31-
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-09-19T12:20:19.967862+08:00[Asia/Shanghai]")
31+
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-10-22T17:04:04.290377+08:00[Asia/Shanghai]")
3232
public class ApiServerPublicAccessConfigForCreateClusterInput {
3333
@SerializedName("PublicAccessNetworkConfig")
3434
private PublicAccessNetworkConfigForCreateClusterInput publicAccessNetworkConfig = null;

volcengine-java-sdk-vke/src/main/java/com/volcengine/vke/model/ApiServerPublicAccessConfigForListClustersOutput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* ApiServerPublicAccessConfigForListClustersOutput
3131
*/
3232

33-
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-09-19T12:20:19.967862+08:00[Asia/Shanghai]")
33+
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-10-22T17:04:04.290377+08:00[Asia/Shanghai]")
3434
public class ApiServerPublicAccessConfigForListClustersOutput {
3535
@SerializedName("AccessSourceIpsv4")
3636
private List<String> accessSourceIpsv4 = null;

volcengine-java-sdk-vke/src/main/java/com/volcengine/vke/model/ApiServerPublicAccessConfigForUpdateClusterConfigInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* ApiServerPublicAccessConfigForUpdateClusterConfigInput
2929
*/
3030

31-
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-09-19T12:20:19.967862+08:00[Asia/Shanghai]")
31+
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-10-22T17:04:04.290377+08:00[Asia/Shanghai]")
3232
public class ApiServerPublicAccessConfigForUpdateClusterConfigInput {
3333
@SerializedName("PublicAccessNetworkConfig")
3434
private PublicAccessNetworkConfigForUpdateClusterConfigInput publicAccessNetworkConfig = null;

volcengine-java-sdk-vke/src/main/java/com/volcengine/vke/model/AutoScalingForCreateNodePoolInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* AutoScalingForCreateNodePoolInput
2828
*/
2929

30-
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-09-19T12:20:19.967862+08:00[Asia/Shanghai]")
30+
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-10-22T17:04:04.290377+08:00[Asia/Shanghai]")
3131
public class AutoScalingForCreateNodePoolInput {
3232
@SerializedName("DesiredReplicas")
3333
private Integer desiredReplicas = null;

volcengine-java-sdk-vke/src/main/java/com/volcengine/vke/model/AutoScalingForListNodePoolsOutput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* AutoScalingForListNodePoolsOutput
2828
*/
2929

30-
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-09-19T12:20:19.967862+08:00[Asia/Shanghai]")
30+
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-10-22T17:04:04.290377+08:00[Asia/Shanghai]")
3131
public class AutoScalingForListNodePoolsOutput {
3232
@SerializedName("DesiredReplicas")
3333
private Integer desiredReplicas = null;

volcengine-java-sdk-vke/src/main/java/com/volcengine/vke/model/AutoScalingForUpdateNodePoolConfigInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* AutoScalingForUpdateNodePoolConfigInput
2828
*/
2929

30-
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-09-19T12:20:19.967862+08:00[Asia/Shanghai]")
30+
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-10-22T17:04:04.290377+08:00[Asia/Shanghai]")
3131
public class AutoScalingForUpdateNodePoolConfigInput {
3232
@SerializedName("DesiredReplicas")
3333
private Integer desiredReplicas = null;

volcengine-java-sdk-vke/src/main/java/com/volcengine/vke/model/ClusterConfigForCreateClusterInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* ClusterConfigForCreateClusterInput
3131
*/
3232

33-
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-09-19T12:20:19.967862+08:00[Asia/Shanghai]")
33+
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-10-22T17:04:04.290377+08:00[Asia/Shanghai]")
3434
public class ClusterConfigForCreateClusterInput {
3535
@SerializedName("ApiServerPublicAccessConfig")
3636
private ApiServerPublicAccessConfigForCreateClusterInput apiServerPublicAccessConfig = null;

volcengine-java-sdk-vke/src/main/java/com/volcengine/vke/model/ClusterConfigForListClustersOutput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* ClusterConfigForListClustersOutput
3232
*/
3333

34-
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-09-19T12:20:19.967862+08:00[Asia/Shanghai]")
34+
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-10-22T17:04:04.290377+08:00[Asia/Shanghai]")
3535
public class ClusterConfigForListClustersOutput {
3636
@SerializedName("ApiServerEndpoints")
3737
private ApiServerEndpointsForListClustersOutput apiServerEndpoints = null;

0 commit comments

Comments
 (0)