Skip to content

Commit cbcfd79

Browse files
committed
feat: auto generate for for_iaas_3.11.0
1 parent 2ae09e7 commit cbcfd79

File tree

101 files changed

+5934
-5976
lines changed

Some content is hidden

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

101 files changed

+5934
-5976
lines changed

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
@@ -37,6 +37,8 @@
3737
import com.volcengine.cen.model.CreateCenInterRegionBandwidthResponse;
3838
import com.volcengine.cen.model.CreateCenRequest;
3939
import com.volcengine.cen.model.CreateCenResponse;
40+
import com.volcengine.cen.model.CreateCenServiceRouteEntryRequest;
41+
import com.volcengine.cen.model.CreateCenServiceRouteEntryResponse;
4042
import com.volcengine.cen.model.DeleteCenBandwidthPackageRequest;
4143
import com.volcengine.cen.model.DeleteCenBandwidthPackageResponse;
4244
import com.volcengine.cen.model.DeleteCenInterRegionBandwidthRequest;
@@ -79,6 +81,8 @@
7981
import com.volcengine.cen.model.ModifyCenInterRegionBandwidthAttributesResponse;
8082
import com.volcengine.cen.model.RevokeInstanceFromCenRequest;
8183
import com.volcengine.cen.model.RevokeInstanceFromCenResponse;
84+
import com.volcengine.cen.model.TagResourcesRequest;
85+
import com.volcengine.cen.model.TagResourcesResponse;
8286

8387
import java.lang.reflect.Type;
8488
import java.util.ArrayList;
@@ -725,6 +729,130 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
725729
apiClient.executeAsync(call, localVarReturnType, callback);
726730
return call;
727731
}
732+
/**
733+
* Build call for createCenServiceRouteEntry
734+
* @param body (required)
735+
* @param progressListener Progress listener
736+
* @param progressRequestListener Progress request listener
737+
* @return Call to execute
738+
* @throws ApiException If fail to serialize the request body object
739+
*/
740+
public com.squareup.okhttp.Call createCenServiceRouteEntryCall(CreateCenServiceRouteEntryRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
741+
Object localVarPostBody = body;
742+
743+
// create path and map variables
744+
String localVarPath = "/CreateCenServiceRouteEntry/2020-04-01/cen/get/";
745+
746+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
747+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
748+
749+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
750+
751+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
752+
753+
final String[] localVarAccepts = {
754+
"application/json"
755+
};
756+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
757+
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
758+
759+
final String[] localVarContentTypes = {
760+
"text/plain"
761+
};
762+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
763+
localVarHeaderParams.put("Content-Type", localVarContentType);
764+
765+
if(progressListener != null) {
766+
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
767+
@Override
768+
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
769+
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
770+
return originalResponse.newBuilder()
771+
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
772+
.build();
773+
}
774+
});
775+
}
776+
777+
String[] localVarAuthNames = new String[] { "volcengineSign" };
778+
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
779+
}
780+
781+
@SuppressWarnings("rawtypes")
782+
private com.squareup.okhttp.Call createCenServiceRouteEntryValidateBeforeCall(CreateCenServiceRouteEntryRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
783+
// verify the required parameter 'body' is set
784+
if (body == null) {
785+
throw new ApiException("Missing the required parameter 'body' when calling createCenServiceRouteEntry(Async)");
786+
}
787+
788+
com.squareup.okhttp.Call call = createCenServiceRouteEntryCall(body, progressListener, progressRequestListener);
789+
return call;
790+
791+
792+
793+
794+
795+
}
796+
797+
/**
798+
*
799+
*
800+
* @param body (required)
801+
* @return CreateCenServiceRouteEntryResponse
802+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
803+
*/
804+
public CreateCenServiceRouteEntryResponse createCenServiceRouteEntry(CreateCenServiceRouteEntryRequest body) throws ApiException {
805+
ApiResponse<CreateCenServiceRouteEntryResponse> resp = createCenServiceRouteEntryWithHttpInfo(body);
806+
return resp.getData();
807+
}
808+
809+
/**
810+
*
811+
*
812+
* @param body (required)
813+
* @return ApiResponse&lt;CreateCenServiceRouteEntryResponse&gt;
814+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
815+
*/
816+
public ApiResponse<CreateCenServiceRouteEntryResponse> createCenServiceRouteEntryWithHttpInfo( @NotNull CreateCenServiceRouteEntryRequest body) throws ApiException {
817+
com.squareup.okhttp.Call call = createCenServiceRouteEntryValidateBeforeCall(body, null, null);
818+
Type localVarReturnType = new TypeToken<CreateCenServiceRouteEntryResponse>(){}.getType();
819+
return apiClient.execute(call, localVarReturnType);
820+
}
821+
822+
/**
823+
* (asynchronously)
824+
*
825+
* @param body (required)
826+
* @param callback The callback to be executed when the API call finishes
827+
* @return The request call
828+
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
829+
*/
830+
public com.squareup.okhttp.Call createCenServiceRouteEntryAsync(CreateCenServiceRouteEntryRequest body, final ApiCallback<CreateCenServiceRouteEntryResponse> callback) throws ApiException {
831+
832+
ProgressResponseBody.ProgressListener progressListener = null;
833+
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
834+
835+
if (callback != null) {
836+
progressListener = new ProgressResponseBody.ProgressListener() {
837+
@Override
838+
public void update(long bytesRead, long contentLength, boolean done) {
839+
callback.onDownloadProgress(bytesRead, contentLength, done);
840+
}
841+
};
842+
843+
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
844+
@Override
845+
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
846+
callback.onUploadProgress(bytesWritten, contentLength, done);
847+
}
848+
};
849+
}
850+
851+
com.squareup.okhttp.Call call = createCenServiceRouteEntryValidateBeforeCall(body, progressListener, progressRequestListener);
852+
Type localVarReturnType = new TypeToken<CreateCenServiceRouteEntryResponse>(){}.getType();
853+
apiClient.executeAsync(call, localVarReturnType, callback);
854+
return call;
855+
}
728856
/**
729857
* Build call for deleteCen
730858
* @param body (required)
@@ -3329,4 +3457,128 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
33293457
apiClient.executeAsync(call, localVarReturnType, callback);
33303458
return call;
33313459
}
3460+
/**
3461+
* Build call for tagResources
3462+
* @param body (required)
3463+
* @param progressListener Progress listener
3464+
* @param progressRequestListener Progress request listener
3465+
* @return Call to execute
3466+
* @throws ApiException If fail to serialize the request body object
3467+
*/
3468+
public com.squareup.okhttp.Call tagResourcesCall(TagResourcesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
3469+
Object localVarPostBody = body;
3470+
3471+
// create path and map variables
3472+
String localVarPath = "/TagResources/2020-04-01/cen/get/";
3473+
3474+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
3475+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
3476+
3477+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
3478+
3479+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
3480+
3481+
final String[] localVarAccepts = {
3482+
"application/json"
3483+
};
3484+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
3485+
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
3486+
3487+
final String[] localVarContentTypes = {
3488+
"text/plain"
3489+
};
3490+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
3491+
localVarHeaderParams.put("Content-Type", localVarContentType);
3492+
3493+
if(progressListener != null) {
3494+
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
3495+
@Override
3496+
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
3497+
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
3498+
return originalResponse.newBuilder()
3499+
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
3500+
.build();
3501+
}
3502+
});
3503+
}
3504+
3505+
String[] localVarAuthNames = new String[] { "volcengineSign" };
3506+
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
3507+
}
3508+
3509+
@SuppressWarnings("rawtypes")
3510+
private com.squareup.okhttp.Call tagResourcesValidateBeforeCall(TagResourcesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
3511+
// verify the required parameter 'body' is set
3512+
if (body == null) {
3513+
throw new ApiException("Missing the required parameter 'body' when calling tagResources(Async)");
3514+
}
3515+
3516+
com.squareup.okhttp.Call call = tagResourcesCall(body, progressListener, progressRequestListener);
3517+
return call;
3518+
3519+
3520+
3521+
3522+
3523+
}
3524+
3525+
/**
3526+
*
3527+
*
3528+
* @param body (required)
3529+
* @return TagResourcesResponse
3530+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
3531+
*/
3532+
public TagResourcesResponse tagResources(TagResourcesRequest body) throws ApiException {
3533+
ApiResponse<TagResourcesResponse> resp = tagResourcesWithHttpInfo(body);
3534+
return resp.getData();
3535+
}
3536+
3537+
/**
3538+
*
3539+
*
3540+
* @param body (required)
3541+
* @return ApiResponse&lt;TagResourcesResponse&gt;
3542+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
3543+
*/
3544+
public ApiResponse<TagResourcesResponse> tagResourcesWithHttpInfo( @NotNull TagResourcesRequest body) throws ApiException {
3545+
com.squareup.okhttp.Call call = tagResourcesValidateBeforeCall(body, null, null);
3546+
Type localVarReturnType = new TypeToken<TagResourcesResponse>(){}.getType();
3547+
return apiClient.execute(call, localVarReturnType);
3548+
}
3549+
3550+
/**
3551+
* (asynchronously)
3552+
*
3553+
* @param body (required)
3554+
* @param callback The callback to be executed when the API call finishes
3555+
* @return The request call
3556+
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
3557+
*/
3558+
public com.squareup.okhttp.Call tagResourcesAsync(TagResourcesRequest body, final ApiCallback<TagResourcesResponse> callback) throws ApiException {
3559+
3560+
ProgressResponseBody.ProgressListener progressListener = null;
3561+
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
3562+
3563+
if (callback != null) {
3564+
progressListener = new ProgressResponseBody.ProgressListener() {
3565+
@Override
3566+
public void update(long bytesRead, long contentLength, boolean done) {
3567+
callback.onDownloadProgress(bytesRead, contentLength, done);
3568+
}
3569+
};
3570+
3571+
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
3572+
@Override
3573+
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
3574+
callback.onUploadProgress(bytesWritten, contentLength, done);
3575+
}
3576+
};
3577+
}
3578+
3579+
com.squareup.okhttp.Call call = tagResourcesValidateBeforeCall(body, progressListener, progressRequestListener);
3580+
Type localVarReturnType = new TypeToken<TagResourcesResponse>(){}.getType();
3581+
apiClient.executeAsync(call, localVarReturnType, callback);
3582+
return call;
3583+
}
33323584
}

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

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import com.google.gson.annotations.SerializedName;
2020
import com.google.gson.stream.JsonReader;
2121
import com.google.gson.stream.JsonWriter;
22+
import com.volcengine.cen.model.TagForDescribeCenBandwidthPackagesOutput;
2223
import io.swagger.v3.oas.annotations.media.Schema;
2324
import java.io.IOException;
2425
import java.util.ArrayList;
@@ -67,12 +68,18 @@ public class CenBandwidthPackageForDescribeCenBandwidthPackagesOutput {
6768
@SerializedName("PeerGeographicRegionSetId")
6869
private String peerGeographicRegionSetId = null;
6970

71+
@SerializedName("ProjectName")
72+
private String projectName = null;
73+
7074
@SerializedName("RemainingBandwidth")
7175
private Integer remainingBandwidth = null;
7276

7377
@SerializedName("Status")
7478
private String status = null;
7579

80+
@SerializedName("Tags")
81+
private List<TagForDescribeCenBandwidthPackagesOutput> tags = null;
82+
7683
public CenBandwidthPackageForDescribeCenBandwidthPackagesOutput accountId(String accountId) {
7784
this.accountId = accountId;
7885
return this;
@@ -297,6 +304,24 @@ public void setPeerGeographicRegionSetId(String peerGeographicRegionSetId) {
297304
this.peerGeographicRegionSetId = peerGeographicRegionSetId;
298305
}
299306

307+
public CenBandwidthPackageForDescribeCenBandwidthPackagesOutput projectName(String projectName) {
308+
this.projectName = projectName;
309+
return this;
310+
}
311+
312+
/**
313+
* Get projectName
314+
* @return projectName
315+
**/
316+
@Schema(description = "")
317+
public String getProjectName() {
318+
return projectName;
319+
}
320+
321+
public void setProjectName(String projectName) {
322+
this.projectName = projectName;
323+
}
324+
300325
public CenBandwidthPackageForDescribeCenBandwidthPackagesOutput remainingBandwidth(Integer remainingBandwidth) {
301326
this.remainingBandwidth = remainingBandwidth;
302327
return this;
@@ -333,6 +358,33 @@ public void setStatus(String status) {
333358
this.status = status;
334359
}
335360

361+
public CenBandwidthPackageForDescribeCenBandwidthPackagesOutput tags(List<TagForDescribeCenBandwidthPackagesOutput> tags) {
362+
this.tags = tags;
363+
return this;
364+
}
365+
366+
public CenBandwidthPackageForDescribeCenBandwidthPackagesOutput addTagsItem(TagForDescribeCenBandwidthPackagesOutput tagsItem) {
367+
if (this.tags == null) {
368+
this.tags = new ArrayList<TagForDescribeCenBandwidthPackagesOutput>();
369+
}
370+
this.tags.add(tagsItem);
371+
return this;
372+
}
373+
374+
/**
375+
* Get tags
376+
* @return tags
377+
**/
378+
@Valid
379+
@Schema(description = "")
380+
public List<TagForDescribeCenBandwidthPackagesOutput> getTags() {
381+
return tags;
382+
}
383+
384+
public void setTags(List<TagForDescribeCenBandwidthPackagesOutput> tags) {
385+
this.tags = tags;
386+
}
387+
336388

337389
@Override
338390
public boolean equals(java.lang.Object o) {
@@ -355,13 +407,15 @@ public boolean equals(java.lang.Object o) {
355407
Objects.equals(this.expiredTime, cenBandwidthPackageForDescribeCenBandwidthPackagesOutput.expiredTime) &&
356408
Objects.equals(this.localGeographicRegionSetId, cenBandwidthPackageForDescribeCenBandwidthPackagesOutput.localGeographicRegionSetId) &&
357409
Objects.equals(this.peerGeographicRegionSetId, cenBandwidthPackageForDescribeCenBandwidthPackagesOutput.peerGeographicRegionSetId) &&
410+
Objects.equals(this.projectName, cenBandwidthPackageForDescribeCenBandwidthPackagesOutput.projectName) &&
358411
Objects.equals(this.remainingBandwidth, cenBandwidthPackageForDescribeCenBandwidthPackagesOutput.remainingBandwidth) &&
359-
Objects.equals(this.status, cenBandwidthPackageForDescribeCenBandwidthPackagesOutput.status);
412+
Objects.equals(this.status, cenBandwidthPackageForDescribeCenBandwidthPackagesOutput.status) &&
413+
Objects.equals(this.tags, cenBandwidthPackageForDescribeCenBandwidthPackagesOutput.tags);
360414
}
361415

362416
@Override
363417
public int hashCode() {
364-
return Objects.hash(accountId, bandwidth, billingType, cenBandwidthPackageId, cenBandwidthPackageName, cenIds, creationTime, deletedTime, description, expiredTime, localGeographicRegionSetId, peerGeographicRegionSetId, remainingBandwidth, status);
418+
return Objects.hash(accountId, bandwidth, billingType, cenBandwidthPackageId, cenBandwidthPackageName, cenIds, creationTime, deletedTime, description, expiredTime, localGeographicRegionSetId, peerGeographicRegionSetId, projectName, remainingBandwidth, status, tags);
365419
}
366420

367421

@@ -382,8 +436,10 @@ public String toString() {
382436
sb.append(" expiredTime: ").append(toIndentedString(expiredTime)).append("\n");
383437
sb.append(" localGeographicRegionSetId: ").append(toIndentedString(localGeographicRegionSetId)).append("\n");
384438
sb.append(" peerGeographicRegionSetId: ").append(toIndentedString(peerGeographicRegionSetId)).append("\n");
439+
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
385440
sb.append(" remainingBandwidth: ").append(toIndentedString(remainingBandwidth)).append("\n");
386441
sb.append(" status: ").append(toIndentedString(status)).append("\n");
442+
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
387443
sb.append("}");
388444
return sb.toString();
389445
}

0 commit comments

Comments
 (0)