Skip to content

Commit 7d22138

Browse files
committed
init import
0 parents  commit 7d22138

File tree

146 files changed

+30321
-0
lines changed

Some content is hidden

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

146 files changed

+30321
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.idea/
2+
bin/
3+
vendor/
4+
output_result
5+
*.log
6+
*.class

pom.xml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>com.volcengine.volcstack</groupId>
8+
<artifactId>volcstack-java-sdk</artifactId>
9+
<packaging>pom</packaging>
10+
<version>0.1.0-SNAPSHOT</version>
11+
<modules>
12+
<module>volcstack-java-sdk-core</module>
13+
<module>volcstack-java-sdk-vpc</module>
14+
</modules>
15+
16+
<properties>
17+
<maven.compiler.source>7</maven.compiler.source>
18+
<maven.compiler.target>7</maven.compiler.target>
19+
<swagger-core-version>2.0.0</swagger-core-version>
20+
<okhttp-version>2.7.5</okhttp-version>
21+
<gson-version>2.8.1</gson-version>
22+
<gson-fire-version>1.8.3</gson-fire-version>
23+
<threetenbp-version>1.3.5</threetenbp-version>
24+
<common-lang-version>2.6</common-lang-version>
25+
<javax.annotation-version>1.3.2</javax.annotation-version>
26+
</properties>
27+
28+
<dependencyManagement>
29+
<dependencies>
30+
<dependency>
31+
<groupId>io.swagger.core.v3</groupId>
32+
<artifactId>swagger-annotations</artifactId>
33+
<version>${swagger-core-version}</version>
34+
</dependency>
35+
<dependency>
36+
<groupId>com.squareup.okhttp</groupId>
37+
<artifactId>okhttp</artifactId>
38+
<version>${okhttp-version}</version>
39+
</dependency>
40+
<dependency>
41+
<groupId>com.squareup.okhttp</groupId>
42+
<artifactId>logging-interceptor</artifactId>
43+
<version>${okhttp-version}</version>
44+
</dependency>
45+
<dependency>
46+
<groupId>com.google.code.gson</groupId>
47+
<artifactId>gson</artifactId>
48+
<version>${gson-version}</version>
49+
</dependency>
50+
<dependency>
51+
<groupId>io.gsonfire</groupId>
52+
<artifactId>gson-fire</artifactId>
53+
<version>${gson-fire-version}</version>
54+
</dependency>
55+
<dependency>
56+
<groupId>org.threeten</groupId>
57+
<artifactId>threetenbp</artifactId>
58+
<version>${threetenbp-version}</version>
59+
</dependency>
60+
<dependency>
61+
<groupId>commons-lang</groupId>
62+
<artifactId>commons-lang</artifactId>
63+
<version>${common-lang-version}</version>
64+
</dependency>
65+
<dependency>
66+
<groupId>javax.annotation</groupId>
67+
<artifactId>javax.annotation-api</artifactId>
68+
<version>${javax.annotation-version}</version>
69+
</dependency>
70+
</dependencies>
71+
</dependencyManagement>
72+
73+
</project>

volcstack-java-sdk-core/pom.xml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<groupId>com.volcengine.volcstack</groupId>
7+
<artifactId>volcstack-java-sdk</artifactId>
8+
<version>0.1.0-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>volcstack-java-sdk-core</artifactId>
13+
14+
<dependencies>
15+
<dependency>
16+
<groupId>io.swagger.core.v3</groupId>
17+
<artifactId>swagger-annotations</artifactId>
18+
</dependency>
19+
<dependency>
20+
<groupId>com.squareup.okhttp</groupId>
21+
<artifactId>okhttp</artifactId>
22+
</dependency>
23+
<dependency>
24+
<groupId>com.squareup.okhttp</groupId>
25+
<artifactId>logging-interceptor</artifactId>
26+
</dependency>
27+
<dependency>
28+
<groupId>com.google.code.gson</groupId>
29+
<artifactId>gson</artifactId>
30+
</dependency>
31+
<dependency>
32+
<groupId>io.gsonfire</groupId>
33+
<artifactId>gson-fire</artifactId>
34+
</dependency>
35+
<dependency>
36+
<groupId>org.threeten</groupId>
37+
<artifactId>threetenbp</artifactId>
38+
</dependency>
39+
<dependency>
40+
<groupId>commons-lang</groupId>
41+
<artifactId>commons-lang</artifactId>
42+
</dependency>
43+
<dependency>
44+
<groupId>javax.annotation</groupId>
45+
<artifactId>javax.annotation-api</artifactId>
46+
<scope>compile</scope>
47+
</dependency>
48+
</dependencies>
49+
50+
</project>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/*
2+
* VPC OpenAPI
3+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4+
*
5+
* OpenAPI spec version: v3.7.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
package com.volcengine.volcstack;
14+
15+
import java.util.List;
16+
import java.util.Map;
17+
18+
/**
19+
* Callback for asynchronous API call.
20+
*
21+
* @param <T> The return type
22+
*/
23+
public interface ApiCallback<T> {
24+
/**
25+
* This is called when the API call fails.
26+
*
27+
* @param e The exception causing the failure
28+
* @param statusCode Status code of the response if available, otherwise it would be 0
29+
* @param responseHeaders Headers of the response if available, otherwise it would be null
30+
*/
31+
void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders);
32+
33+
/**
34+
* This is called when the API call succeeded.
35+
*
36+
* @param result The result deserialized from response
37+
* @param statusCode Status code of the response
38+
* @param responseHeaders Headers of the response
39+
*/
40+
void onSuccess(T result, int statusCode, Map<String, List<String>> responseHeaders);
41+
42+
/**
43+
* This is called when the API upload processing.
44+
*
45+
* @param bytesWritten bytes Written
46+
* @param contentLength content length of request body
47+
* @param done write end
48+
*/
49+
void onUploadProgress(long bytesWritten, long contentLength, boolean done);
50+
51+
/**
52+
* This is called when the API downlond processing.
53+
*
54+
* @param bytesRead bytes Read
55+
* @param contentLength content lenngth of the response
56+
* @param done Read end
57+
*/
58+
void onDownloadProgress(long bytesRead, long contentLength, boolean done);
59+
}

0 commit comments

Comments
 (0)