Skip to content

Commit e995c40

Browse files
author
ci_volc_sdk_gen
committed
feat: auto generate for feat/update_network_sdk
1 parent e8ff899 commit e995c40

File tree

106 files changed

+7132
-157
lines changed

Some content is hidden

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

106 files changed

+7132
-157
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<dependency>
5555
<groupId>com.volcengine</groupId>
5656
<artifactId>volcengine-java-sdk-bom</artifactId>
57-
<version>0.1.33</version>
57+
<version>0.1.34</version>
5858
<type>pom</type>
5959
<scope>import</scope>
6060
</dependency>
@@ -70,12 +70,12 @@
7070
<dependency>
7171
<groupId>com.volcengine</groupId>
7272
<artifactId>volcengine-java-sdk-vpc</artifactId>
73-
<version>0.1.33</version>
73+
<version>0.1.34</version>
7474
</dependency>
7575
<dependency>
7676
<groupId>com.volcengine</groupId>
7777
<artifactId>volcengine-java-sdk-ecs</artifactId>
78-
<version>0.1.33</version>
78+
<version>0.1.34</version>
7979
</dependency>
8080
</dependencies>
8181
```

pom.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
43
<modelVersion>4.0.0</modelVersion>
54
<groupId>com.volcengine</groupId>
65
<artifactId>volcengine-java-sdk</artifactId>
76
<packaging>pom</packaging>
8-
<version>0.1.33</version>
7+
<version>0.1.34</version>
98
<name>volcengine-java-sdk</name>
109
<url>https://open.volcengineapi.com</url>
1110
<description>The Java SDK For Volcengine</description>
@@ -94,7 +93,6 @@
9493
</dependency>
9594
</dependencies>
9695
</dependencyManagement>
97-
9896
<profiles>
9997
<profile>
10098
<id>public</id>
@@ -176,7 +174,6 @@
176174
</distributionManagement>
177175
</profile>
178176
</profiles>
179-
180177
<build>
181178
<plugins>
182179
<plugin>

volcengine-java-sdk-alb/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>volcengine-java-sdk</artifactId>
55
<groupId>com.volcengine</groupId>
6-
<version>0.1.33</version>
6+
<version>0.1.34</version>
77
<relativePath>../pom.xml</relativePath>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>

volcengine-java-sdk-autoscaling/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>volcengine-java-sdk</artifactId>
55
<groupId>com.volcengine</groupId>
6-
<version>0.1.33</version>
6+
<version>0.1.34</version>
77
<relativePath>../pom.xml</relativePath>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>

volcengine-java-sdk-bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>volcengine-java-sdk</artifactId>
55
<groupId>com.volcengine</groupId>
6-
<version>0.1.33</version>
6+
<version>0.1.34</version>
77
<relativePath>../pom.xml</relativePath>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>

volcengine-java-sdk-cen/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>volcengine-java-sdk</artifactId>
55
<groupId>com.volcengine</groupId>
6-
<version>0.1.33</version>
6+
<version>0.1.34</version>
77
<relativePath>../pom.xml</relativePath>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>

volcengine-java-sdk-cen/src/main/java/com/volcengine/cen/CenApi.java

Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373
import com.volcengine.cen.model.DisassociateCenBandwidthPackageResponse;
7474
import com.volcengine.cen.model.GrantInstanceToCenRequest;
7575
import com.volcengine.cen.model.GrantInstanceToCenResponse;
76+
import com.volcengine.cen.model.ListTagsForResourcesRequest;
77+
import com.volcengine.cen.model.ListTagsForResourcesResponse;
7678
import com.volcengine.cen.model.ModifyCenAttributesRequest;
7779
import com.volcengine.cen.model.ModifyCenAttributesResponse;
7880
import com.volcengine.cen.model.ModifyCenBandwidthPackageAttributesRequest;
@@ -83,6 +85,8 @@
8385
import com.volcengine.cen.model.RevokeInstanceFromCenResponse;
8486
import com.volcengine.cen.model.TagResourcesRequest;
8587
import com.volcengine.cen.model.TagResourcesResponse;
88+
import com.volcengine.cen.model.UntagResourcesRequest;
89+
import com.volcengine.cen.model.UntagResourcesResponse;
8690

8791
import java.lang.reflect.Type;
8892
import java.util.ArrayList;
@@ -2961,6 +2965,130 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
29612965
apiClient.executeAsync(call, localVarReturnType, callback);
29622966
return call;
29632967
}
2968+
/**
2969+
* Build call for listTagsForResources
2970+
* @param body (required)
2971+
* @param progressListener Progress listener
2972+
* @param progressRequestListener Progress request listener
2973+
* @return Call to execute
2974+
* @throws ApiException If fail to serialize the request body object
2975+
*/
2976+
public com.squareup.okhttp.Call listTagsForResourcesCall(ListTagsForResourcesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
2977+
Object localVarPostBody = body;
2978+
2979+
// create path and map variables
2980+
String localVarPath = "/ListTagsForResources/2020-04-01/cen/get/";
2981+
2982+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
2983+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
2984+
2985+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
2986+
2987+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
2988+
2989+
final String[] localVarAccepts = {
2990+
"application/json"
2991+
};
2992+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
2993+
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
2994+
2995+
final String[] localVarContentTypes = {
2996+
"text/plain"
2997+
};
2998+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
2999+
localVarHeaderParams.put("Content-Type", localVarContentType);
3000+
3001+
if(progressListener != null) {
3002+
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
3003+
@Override
3004+
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
3005+
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
3006+
return originalResponse.newBuilder()
3007+
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
3008+
.build();
3009+
}
3010+
});
3011+
}
3012+
3013+
String[] localVarAuthNames = new String[] { "volcengineSign" };
3014+
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
3015+
}
3016+
3017+
@SuppressWarnings("rawtypes")
3018+
private com.squareup.okhttp.Call listTagsForResourcesValidateBeforeCall(ListTagsForResourcesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
3019+
// verify the required parameter 'body' is set
3020+
if (body == null) {
3021+
throw new ApiException("Missing the required parameter 'body' when calling listTagsForResources(Async)");
3022+
}
3023+
3024+
com.squareup.okhttp.Call call = listTagsForResourcesCall(body, progressListener, progressRequestListener);
3025+
return call;
3026+
3027+
3028+
3029+
3030+
3031+
}
3032+
3033+
/**
3034+
*
3035+
*
3036+
* @param body (required)
3037+
* @return ListTagsForResourcesResponse
3038+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
3039+
*/
3040+
public ListTagsForResourcesResponse listTagsForResources(ListTagsForResourcesRequest body) throws ApiException {
3041+
ApiResponse<ListTagsForResourcesResponse> resp = listTagsForResourcesWithHttpInfo(body);
3042+
return resp.getData();
3043+
}
3044+
3045+
/**
3046+
*
3047+
*
3048+
* @param body (required)
3049+
* @return ApiResponse&lt;ListTagsForResourcesResponse&gt;
3050+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
3051+
*/
3052+
public ApiResponse<ListTagsForResourcesResponse> listTagsForResourcesWithHttpInfo( @NotNull ListTagsForResourcesRequest body) throws ApiException {
3053+
com.squareup.okhttp.Call call = listTagsForResourcesValidateBeforeCall(body, null, null);
3054+
Type localVarReturnType = new TypeToken<ListTagsForResourcesResponse>(){}.getType();
3055+
return apiClient.execute(call, localVarReturnType);
3056+
}
3057+
3058+
/**
3059+
* (asynchronously)
3060+
*
3061+
* @param body (required)
3062+
* @param callback The callback to be executed when the API call finishes
3063+
* @return The request call
3064+
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
3065+
*/
3066+
public com.squareup.okhttp.Call listTagsForResourcesAsync(ListTagsForResourcesRequest body, final ApiCallback<ListTagsForResourcesResponse> callback) throws ApiException {
3067+
3068+
ProgressResponseBody.ProgressListener progressListener = null;
3069+
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
3070+
3071+
if (callback != null) {
3072+
progressListener = new ProgressResponseBody.ProgressListener() {
3073+
@Override
3074+
public void update(long bytesRead, long contentLength, boolean done) {
3075+
callback.onDownloadProgress(bytesRead, contentLength, done);
3076+
}
3077+
};
3078+
3079+
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
3080+
@Override
3081+
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
3082+
callback.onUploadProgress(bytesWritten, contentLength, done);
3083+
}
3084+
};
3085+
}
3086+
3087+
com.squareup.okhttp.Call call = listTagsForResourcesValidateBeforeCall(body, progressListener, progressRequestListener);
3088+
Type localVarReturnType = new TypeToken<ListTagsForResourcesResponse>(){}.getType();
3089+
apiClient.executeAsync(call, localVarReturnType, callback);
3090+
return call;
3091+
}
29643092
/**
29653093
* Build call for modifyCenAttributes
29663094
* @param body (required)
@@ -3581,4 +3709,128 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
35813709
apiClient.executeAsync(call, localVarReturnType, callback);
35823710
return call;
35833711
}
3712+
/**
3713+
* Build call for untagResources
3714+
* @param body (required)
3715+
* @param progressListener Progress listener
3716+
* @param progressRequestListener Progress request listener
3717+
* @return Call to execute
3718+
* @throws ApiException If fail to serialize the request body object
3719+
*/
3720+
public com.squareup.okhttp.Call untagResourcesCall(UntagResourcesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
3721+
Object localVarPostBody = body;
3722+
3723+
// create path and map variables
3724+
String localVarPath = "/UntagResources/2020-04-01/cen/get/";
3725+
3726+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
3727+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
3728+
3729+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
3730+
3731+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
3732+
3733+
final String[] localVarAccepts = {
3734+
"application/json"
3735+
};
3736+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
3737+
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
3738+
3739+
final String[] localVarContentTypes = {
3740+
"text/plain"
3741+
};
3742+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
3743+
localVarHeaderParams.put("Content-Type", localVarContentType);
3744+
3745+
if(progressListener != null) {
3746+
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
3747+
@Override
3748+
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
3749+
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
3750+
return originalResponse.newBuilder()
3751+
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
3752+
.build();
3753+
}
3754+
});
3755+
}
3756+
3757+
String[] localVarAuthNames = new String[] { "volcengineSign" };
3758+
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
3759+
}
3760+
3761+
@SuppressWarnings("rawtypes")
3762+
private com.squareup.okhttp.Call untagResourcesValidateBeforeCall(UntagResourcesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
3763+
// verify the required parameter 'body' is set
3764+
if (body == null) {
3765+
throw new ApiException("Missing the required parameter 'body' when calling untagResources(Async)");
3766+
}
3767+
3768+
com.squareup.okhttp.Call call = untagResourcesCall(body, progressListener, progressRequestListener);
3769+
return call;
3770+
3771+
3772+
3773+
3774+
3775+
}
3776+
3777+
/**
3778+
*
3779+
*
3780+
* @param body (required)
3781+
* @return UntagResourcesResponse
3782+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
3783+
*/
3784+
public UntagResourcesResponse untagResources(UntagResourcesRequest body) throws ApiException {
3785+
ApiResponse<UntagResourcesResponse> resp = untagResourcesWithHttpInfo(body);
3786+
return resp.getData();
3787+
}
3788+
3789+
/**
3790+
*
3791+
*
3792+
* @param body (required)
3793+
* @return ApiResponse&lt;UntagResourcesResponse&gt;
3794+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
3795+
*/
3796+
public ApiResponse<UntagResourcesResponse> untagResourcesWithHttpInfo( @NotNull UntagResourcesRequest body) throws ApiException {
3797+
com.squareup.okhttp.Call call = untagResourcesValidateBeforeCall(body, null, null);
3798+
Type localVarReturnType = new TypeToken<UntagResourcesResponse>(){}.getType();
3799+
return apiClient.execute(call, localVarReturnType);
3800+
}
3801+
3802+
/**
3803+
* (asynchronously)
3804+
*
3805+
* @param body (required)
3806+
* @param callback The callback to be executed when the API call finishes
3807+
* @return The request call
3808+
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
3809+
*/
3810+
public com.squareup.okhttp.Call untagResourcesAsync(UntagResourcesRequest body, final ApiCallback<UntagResourcesResponse> callback) throws ApiException {
3811+
3812+
ProgressResponseBody.ProgressListener progressListener = null;
3813+
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
3814+
3815+
if (callback != null) {
3816+
progressListener = new ProgressResponseBody.ProgressListener() {
3817+
@Override
3818+
public void update(long bytesRead, long contentLength, boolean done) {
3819+
callback.onDownloadProgress(bytesRead, contentLength, done);
3820+
}
3821+
};
3822+
3823+
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
3824+
@Override
3825+
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
3826+
callback.onUploadProgress(bytesWritten, contentLength, done);
3827+
}
3828+
};
3829+
}
3830+
3831+
com.squareup.okhttp.Call call = untagResourcesValidateBeforeCall(body, progressListener, progressRequestListener);
3832+
Type localVarReturnType = new TypeToken<UntagResourcesResponse>(){}.getType();
3833+
apiClient.executeAsync(call, localVarReturnType, callback);
3834+
return call;
3835+
}
35843836
}

volcengine-java-sdk-cen/src/main/java/com/volcengine/cen/model/CreateCenBandwidthPackageRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ public CreateCenBandwidthPackageRequest billingType(Integer billingType) {
135135
/**
136136
* Get billingType
137137
* minimum: 1
138-
* maximum: 1
138+
* maximum: 4
139139
* @return billingType
140140
**/
141-
@Min(1) @Max(1) @Schema(description = "")
141+
@Min(1) @Max(4) @Schema(description = "")
142142
public Integer getBillingType() {
143143
return billingType;
144144
}

0 commit comments

Comments
 (0)