Skip to content

Commit

Permalink
feat: auto generate for for_iaas_3.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyaming0800 committed Aug 10, 2022
1 parent 979d69b commit 7201461
Show file tree
Hide file tree
Showing 136 changed files with 447 additions and 135 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<dependency>
<groupId>com.volcengine</groupId>
<artifactId>volcengine-java-sdk-bom</artifactId>
<version>0.1.7</version>
<version>0.1.8</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -67,12 +67,12 @@
<dependency>
<groupId>com.volcengine</groupId>
<artifactId>volcengine-java-sdk-vpc</artifactId>
<version>0.1.7</version>
<version>0.1.8</version>
</dependency>
<dependency>
<groupId>com.volcengine</groupId>
<artifactId>volcengine-java-sdk-ecs</artifactId>
<version>0.1.7</version>
<version>0.1.8</version>
</dependency>
</dependencies>
```
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.volcengine</groupId>
<artifactId>volcengine-java-sdk</artifactId>
<packaging>pom</packaging>
<version>0.1.7</version>
<version>0.1.8</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.source.version>1.7</java.source.version>
Expand Down
2 changes: 1 addition & 1 deletion volcengine-java-sdk-alb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>volcengine-java-sdk</artifactId>
<groupId>com.volcengine</groupId>
<version>0.1.7</version>
<version>0.1.8</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion volcengine-java-sdk-autoscaling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>volcengine-java-sdk</artifactId>
<groupId>com.volcengine</groupId>
<version>0.1.7</version>
<version>0.1.8</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion volcengine-java-sdk-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>volcengine-java-sdk</artifactId>
<groupId>com.volcengine</groupId>
<version>0.1.7</version>
<version>0.1.8</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion volcengine-java-sdk-cen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>volcengine-java-sdk</artifactId>
<groupId>com.volcengine</groupId>
<version>0.1.7</version>
<version>0.1.8</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion volcengine-java-sdk-clb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>volcengine-java-sdk</artifactId>
<groupId>com.volcengine</groupId>
<version>0.1.7</version>
<version>0.1.8</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion volcengine-java-sdk-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.volcengine</groupId>
<artifactId>volcengine-java-sdk</artifactId>
<version>0.1.7</version>
<version>0.1.8</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.volcengine.version;

public class Version {
public final static String SDK_VERSION = "0.1.7";
public final static String SDK_VERSION = "0.1.8";
public final static String SDK_NAME = "volcengine-java-sdk";
}
2 changes: 1 addition & 1 deletion volcengine-java-sdk-ecs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>volcengine-java-sdk</artifactId>
<groupId>com.volcengine</groupId>
<version>0.1.7</version>
<version>0.1.8</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
126 changes: 126 additions & 0 deletions volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/EcsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
import com.volcengine.ecs.model.DescribeImageSharePermissionResponse;
import com.volcengine.ecs.model.DescribeImagesRequest;
import com.volcengine.ecs.model.DescribeImagesResponse;
import com.volcengine.ecs.model.DescribeInstanceECSTerminalUrlRequest;
import com.volcengine.ecs.model.DescribeInstanceECSTerminalUrlResponse;
import com.volcengine.ecs.model.DescribeInstanceTypeFamiliesRequest;
import com.volcengine.ecs.model.DescribeInstanceTypeFamiliesResponse;
import com.volcengine.ecs.model.DescribeInstanceTypesRequest;
Expand Down Expand Up @@ -1369,6 +1371,130 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for describeInstanceECSTerminalUrl
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call describeInstanceECSTerminalUrlCall(DescribeInstanceECSTerminalUrlRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;

// create path and map variables
String localVarPath = "/DescribeInstanceECSTerminalUrl/2020-04-01/ecs/get/";

List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();

Map<String, String> localVarHeaderParams = new HashMap<String, String>();

Map<String, Object> localVarFormParams = new HashMap<String, Object>();

final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);

final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);

if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}

String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}

@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call describeInstanceECSTerminalUrlValidateBeforeCall(DescribeInstanceECSTerminalUrlRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling describeInstanceECSTerminalUrl(Async)");
}

com.squareup.okhttp.Call call = describeInstanceECSTerminalUrlCall(body, progressListener, progressRequestListener);
return call;





}

/**
*
*
* @param body (required)
* @return DescribeInstanceECSTerminalUrlResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public DescribeInstanceECSTerminalUrlResponse describeInstanceECSTerminalUrl(DescribeInstanceECSTerminalUrlRequest body) throws ApiException {
ApiResponse<DescribeInstanceECSTerminalUrlResponse> resp = describeInstanceECSTerminalUrlWithHttpInfo(body);
return resp.getData();
}

/**
*
*
* @param body (required)
* @return ApiResponse&lt;DescribeInstanceECSTerminalUrlResponse&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<DescribeInstanceECSTerminalUrlResponse> describeInstanceECSTerminalUrlWithHttpInfo( @NotNull DescribeInstanceECSTerminalUrlRequest body) throws ApiException {
com.squareup.okhttp.Call call = describeInstanceECSTerminalUrlValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<DescribeInstanceECSTerminalUrlResponse>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}

/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call describeInstanceECSTerminalUrlAsync(DescribeInstanceECSTerminalUrlRequest body, final ApiCallback<DescribeInstanceECSTerminalUrlResponse> callback) throws ApiException {

ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;

if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};

progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}

com.squareup.okhttp.Call call = describeInstanceECSTerminalUrlValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<DescribeInstanceECSTerminalUrlResponse>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for describeInstanceTypeFamilies
* @param body (required)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* AccountForDescribeImageSharePermissionOutput
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class AccountForDescribeImageSharePermissionOutput {
@SerializedName("AccountId")
private String accountId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* AttachKeyPairRequest
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class AttachKeyPairRequest {
@SerializedName("InstanceIds")
private List<String> instanceIds = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* AttachKeyPairResponse
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class AttachKeyPairResponse {
@SerializedName("OperationDetails")
private List<OperationDetailForAttachKeyPairOutput> operationDetails = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* AvailableResourceForDescribeAvailableResourceOutput
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class AvailableResourceForDescribeAvailableResourceOutput {
@SerializedName("SupportedResources")
private List<SupportedResourceForDescribeAvailableResourceOutput> supportedResources = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* AvailableZoneForDescribeAvailableResourceOutput
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class AvailableZoneForDescribeAvailableResourceOutput {
@SerializedName("AvailableResources")
private List<AvailableResourceForDescribeAvailableResourceOutput> availableResources = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* CreateImageRequest
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class CreateImageRequest {
@SerializedName("Description")
private String description = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* CreateImageResponse
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class CreateImageResponse {
@SerializedName("ImageId")
private String imageId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* CreateKeyPairRequest
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class CreateKeyPairRequest {
@SerializedName("Description")
private String description = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* CreateKeyPairResponse
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class CreateKeyPairResponse {
@SerializedName("FingerPrint")
private String fingerPrint = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* DeleteImagesRequest
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class DeleteImagesRequest {
@SerializedName("ImageIds")
private List<String> imageIds = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* DeleteImagesResponse
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class DeleteImagesResponse {
@SerializedName("OperationDetails")
private List<OperationDetailForDeleteImagesOutput> operationDetails = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* DeleteInstanceRequest
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class DeleteInstanceRequest {
@SerializedName("InstanceId")
private String instanceId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* DeleteInstanceResponse
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class DeleteInstanceResponse {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* DeleteInstancesRequest
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class DeleteInstancesRequest {
@SerializedName("InstanceIds")
private List<String> instanceIds = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* DeleteInstancesResponse
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class DeleteInstancesResponse {
@SerializedName("OperationDetails")
private List<OperationDetailForDeleteInstancesOutput> operationDetails = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* DeleteKeyPairsRequest
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class DeleteKeyPairsRequest {
@SerializedName("KeyPairNames")
private List<String> keyPairNames = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* DeleteKeyPairsResponse
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-01T17:18:25.441969+08:00[Asia/Shanghai]")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-08-10T10:51:36.170610+08:00[Asia/Shanghai]")
public class DeleteKeyPairsResponse {
@SerializedName("OperationDetails")
private List<OperationDetailForDeleteKeyPairsOutput> operationDetails = null;
Expand Down
Loading

0 comments on commit 7201461

Please sign in to comment.