Skip to content

Commit 1e291c8

Browse files
authored
auto code generation (#15)
1 parent e2968f6 commit 1e291c8

File tree

1,138 files changed

+4920
-3214
lines changed

Some content is hidden

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

1,138 files changed

+4920
-3214
lines changed

examples/generic/src/main/java/cn/ucloud/example/Main.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import cn.ucloud.common.exception.ValidatorException;
99
import cn.ucloud.common.request.Request;
1010
import cn.ucloud.common.response.Response;
11+
1112
import org.slf4j.Logger;
1213
import org.slf4j.LoggerFactory;
1314

examples/uhost/src/main/java/cn/ucloud/example/Main.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66
import cn.ucloud.common.exception.UCloudException;
77
import cn.ucloud.uhost.client.UHostClient;
88
import cn.ucloud.uhost.models.*;
9+
10+
import org.slf4j.Logger;
11+
import org.slf4j.LoggerFactory;
12+
913
import java.nio.charset.StandardCharsets;
1014
import java.util.ArrayList;
1115
import java.util.Base64;
1216
import java.util.List;
1317
import java.util.concurrent.TimeUnit;
14-
import org.slf4j.Logger;
15-
import org.slf4j.LoggerFactory;
1618

1719
public class Main {
1820
private static final Logger logger = LoggerFactory.getLogger(Main.class);

pom.xml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<module>ucloud-sdk-java-common</module>
1313

1414

15-
<module>ucloud-sdk-java-umem</module>
15+
<module>ucloud-sdk-java-ubill</module>
1616

1717

1818
<module>ucloud-sdk-java-udpn</module>
@@ -21,64 +21,64 @@
2121
<module>ucloud-sdk-java-uk8s</module>
2222

2323

24-
<module>ucloud-sdk-java-unet</module>
24+
<module>ucloud-sdk-java-ufs</module>
2525

2626

27-
<module>ucloud-sdk-java-udb</module>
27+
<module>ucloud-sdk-java-uhost</module>
2828

2929

30-
<module>ucloud-sdk-java-ipsecvpn</module>
30+
<module>ucloud-sdk-java-udisk</module>
3131

3232

33-
<module>ucloud-sdk-java-ucdn</module>
33+
<module>ucloud-sdk-java-ipsecvpn</module>
3434

3535

36-
<module>ucloud-sdk-java-uphost</module>
36+
<module>ucloud-sdk-java-ufile</module>
3737

3838

39-
<module>ucloud-sdk-java-udisk</module>
39+
<module>ucloud-sdk-java-pathx</module>
4040

4141

42-
<module>ucloud-sdk-java-uddb</module>
42+
<module>ucloud-sdk-java-cube</module>
4343

4444

45-
<module>ucloud-sdk-java-uvms</module>
45+
<module>ucloud-sdk-java-uddb</module>
4646

4747

48-
<module>ucloud-sdk-java-ulb</module>
48+
<module>ucloud-sdk-java-usms</module>
4949

5050

51-
<module>ucloud-sdk-java-uec</module>
51+
<module>ucloud-sdk-java-unet</module>
5252

5353

54-
<module>ucloud-sdk-java-usms</module>
54+
<module>ucloud-sdk-java-uaccount</module>
5555

5656

57-
<module>ucloud-sdk-java-vpc</module>
57+
<module>ucloud-sdk-java-ulb</module>
5858

5959

60-
<module>ucloud-sdk-java-ufile</module>
60+
<module>ucloud-sdk-java-umem</module>
6161

6262

63-
<module>ucloud-sdk-java-ufs</module>
63+
<module>ucloud-sdk-java-ucdn</module>
6464

6565

66-
<module>ucloud-sdk-java-uaccount</module>
66+
<module>ucloud-sdk-java-uphost</module>
6767

6868

69-
<module>ucloud-sdk-java-cube</module>
69+
<module>ucloud-sdk-java-uphone</module>
7070

7171

72-
<module>ucloud-sdk-java-uhost</module>
72+
<module>ucloud-sdk-java-uvms</module>
7373

7474

75-
<module>ucloud-sdk-java-pathx</module>
75+
<module>ucloud-sdk-java-vpc</module>
7676

7777

78-
<module>ucloud-sdk-java-ubill</module>
78+
<module>ucloud-sdk-java-udb</module>
7979

8080

81-
<module>ucloud-sdk-java-uphone</module>
81+
<module>ucloud-sdk-java-uec</module>
8282
</modules>
8383

8484
<name>ucloud-sdk-java</name>

ucloud-sdk-java-common/src/main/java/cn/ucloud/common/client/DefaultClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import cn.ucloud.common.response.Response;
2727
import cn.ucloud.common.transport.DefaultTransport;
2828
import cn.ucloud.common.transport.Transport;
29+
2930
import java.util.ArrayList;
3031
import java.util.List;
3132

ucloud-sdk-java-common/src/main/java/cn/ucloud/common/credential/Credential.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515

1616
import cn.ucloud.common.exception.UCloudException;
1717
import cn.ucloud.common.request.Request;
18+
19+
import org.apache.commons.codec.digest.DigestUtils;
20+
1821
import java.io.UnsupportedEncodingException;
1922
import java.security.NoSuchAlgorithmException;
2023
import java.util.Arrays;
2124
import java.util.Map;
22-
import org.apache.commons.codec.digest.DigestUtils;
2325

2426
/** Credential is an object to represent the credential information */
2527
public class Credential {

ucloud-sdk-java-common/src/main/java/cn/ucloud/common/middlewares/LogMiddleware.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
import cn.ucloud.common.middleware.Middleware;
2020
import cn.ucloud.common.request.Request;
2121
import cn.ucloud.common.response.Response;
22+
2223
import com.google.gson.Gson;
24+
2325
import org.slf4j.Logger;
2426

2527
/** LogMiddleware is the middleware to print logs */

ucloud-sdk-java-common/src/main/java/cn/ucloud/common/request/Request.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import cn.ucloud.common.annotation.UCloudParam;
1818
import cn.ucloud.common.exception.UCloudException;
1919
import cn.ucloud.common.exception.ValidatorException;
20+
2021
import java.lang.reflect.Field;
2122
import java.util.*;
2223

ucloud-sdk-java-common/src/main/java/cn/ucloud/common/transport/DefaultTransport.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@
1717
import cn.ucloud.common.exception.UCloudException;
1818
import cn.ucloud.common.request.Request;
1919
import cn.ucloud.common.response.Response;
20+
2021
import com.google.gson.Gson;
21-
import java.io.IOException;
22-
import java.nio.charset.StandardCharsets;
23-
import java.util.Map;
22+
2423
import org.apache.commons.lang3.StringUtils;
2524
import org.apache.http.StatusLine;
2625
import org.apache.http.client.methods.CloseableHttpResponse;
@@ -32,6 +31,10 @@
3231
import org.apache.http.protocol.HTTP;
3332
import org.apache.http.util.EntityUtils;
3433

34+
import java.io.IOException;
35+
import java.nio.charset.StandardCharsets;
36+
import java.util.Map;
37+
3538
/** DefaultTransport is the default implementation of transport */
3639
public class DefaultTransport implements Transport {
3740

ucloud-sdk-java-common/src/test/java/cn/ucloud/common/accessor/ConfigTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import cn.ucloud.common.config.Config;
44
import cn.ucloud.common.exception.RetCodeException;
55
import cn.ucloud.common.exception.ValidatorException;
6+
67
import org.junit.Assert;
78
import org.junit.Test;
89
import org.slf4j.Logger;

ucloud-sdk-java-common/src/test/java/cn/ucloud/common/accessor/RequestTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
import cn.ucloud.common.annotation.UCloudParam;
44
import cn.ucloud.common.request.Request;
55
import cn.ucloud.common.response.Response;
6-
import java.util.*;
6+
77
import org.junit.Assert;
88
import org.junit.Test;
99

10+
import java.util.*;
11+
1012
class DemoRequest extends Request {
1113

1214
@UCloudParam("Name")

0 commit comments

Comments
 (0)