Skip to content

Commit

Permalink
sdk: rolling update for 1.2.10-release (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucloud-bot authored Jun 8, 2023
1 parent 81cb7dd commit 416c707
Show file tree
Hide file tree
Showing 1,343 changed files with 117,979 additions and 59,639 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.9-release
1.2.10-release
4 changes: 2 additions & 2 deletions examples/generic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>ucloud-sdk-java</artifactId>
<groupId>cn.ucloud</groupId>
<version>1.2.9-release</version>
<version>1.2.10-release</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand All @@ -18,7 +18,7 @@
<dependency>
<groupId>cn.ucloud</groupId>
<artifactId>ucloud-sdk-java-common</artifactId>
<version>1.2.9-release</version>
<version>1.2.10-release</version>
</dependency>
</dependencies>
</project>
1 change: 0 additions & 1 deletion examples/generic/src/main/java/cn/ucloud/example/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import cn.ucloud.common.exception.ValidatorException;
import cn.ucloud.common.request.Request;
import cn.ucloud.common.response.Response;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
4 changes: 2 additions & 2 deletions examples/uhost/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>ucloud-sdk-java</artifactId>
<groupId>cn.ucloud</groupId>
<version>1.2.9-release</version>
<version>1.2.10-release</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand All @@ -18,7 +18,7 @@
<dependency>
<groupId>cn.ucloud</groupId>
<artifactId>ucloud-sdk-java-uhost</artifactId>
<version>1.2.9-release</version>
<version>1.2.10-release</version>
</dependency>
</dependencies>
</project>
6 changes: 2 additions & 4 deletions examples/uhost/src/main/java/cn/ucloud/example/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@
import cn.ucloud.common.exception.UCloudException;
import cn.ucloud.uhost.client.UHostClient;
import cn.ucloud.uhost.models.*;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Base64;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Main {
private static final Logger logger = LoggerFactory.getLogger(Main.class);
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
<groupId>cn.ucloud</groupId>
<artifactId>ucloud-sdk-java</artifactId>
<packaging>pom</packaging>
<version>1.2.9-release</version>
<version>1.2.10-release</version>
<modules>
<module>ucloud-sdk-java-common</module>
<module>ucloud-sdk-java-cube</module>
<module>ucloud-sdk-java-ipsecvpn</module>
<module>ucloud-sdk-java-pathx</module>
<module>ucloud-sdk-java-uaccount</module>
Expand Down
4 changes: 2 additions & 2 deletions ucloud-sdk-java-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<parent>
<artifactId>ucloud-sdk-java</artifactId>
<groupId>cn.ucloud</groupId>
<version>1.2.9-release</version>
<version>1.2.10-release</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>ucloud-sdk-java-common</artifactId>
<version>1.2.9-release</version>
<version>1.2.10-release</version>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import cn.ucloud.common.transport.DefaultTransport;
import cn.ucloud.common.transport.Transport;

import java.io.Closeable;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.apache.commons.codec.digest.DigestUtils;

import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.security.NoSuchAlgorithmException;
import java.text.DecimalFormat;
import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
import cn.ucloud.common.middleware.Middleware;
import cn.ucloud.common.request.Request;
import cn.ucloud.common.response.Response;

import com.google.gson.Gson;

import org.slf4j.Logger;

/** LogMiddleware is the middleware to print logs */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import cn.ucloud.common.annotation.UCloudParam;
import cn.ucloud.common.exception.UCloudException;
import cn.ucloud.common.exception.ValidatorException;

import java.lang.reflect.Field;
import java.util.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
import cn.ucloud.common.exception.UCloudException;
import cn.ucloud.common.request.Request;
import cn.ucloud.common.response.Response;

import com.google.gson.Gson;

import java.io.Closeable;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.StatusLine;
import org.apache.http.client.methods.CloseableHttpResponse;
Expand All @@ -31,10 +34,6 @@
import org.apache.http.protocol.HTTP;
import org.apache.http.util.EntityUtils;

import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Map;

/** DefaultTransport is the default implementation of transport */
public class DefaultTransport implements Transport {

Expand Down Expand Up @@ -82,9 +81,9 @@ public Response invoke(Request request, Class<? extends Response> clazz)
StatusLine httpStatus = httpResponse.getStatusLine();
if (httpStatus.getStatusCode() >= 400) {
throw new UCloudException(
String.format(
"http error, status code %d %s",
httpStatus.getStatusCode(), httpStatus.getReasonPhrase()));
String.format(
"http error, status code %d %s",
httpStatus.getStatusCode(), httpStatus.getReasonPhrase()));
}

// decode response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import cn.ucloud.common.config.Config;
import cn.ucloud.common.exception.RetCodeException;
import cn.ucloud.common.exception.ValidatorException;

import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
import cn.ucloud.common.annotation.UCloudParam;
import cn.ucloud.common.request.Request;
import cn.ucloud.common.response.Response;

import java.util.*;
import org.junit.Assert;
import org.junit.Test;

import java.util.*;

class DemoRequest extends Request {

@UCloudParam("Name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import cn.ucloud.common.request.Request;
import cn.ucloud.common.response.Response;
import cn.ucloud.common.transport.DefaultTransport;

import org.apache.http.*;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.CloseableHttpClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ public void verifyAc() throws UCloudException {
}

static class DoubleRequest extends Request {
DoubleRequest() {
super();
}
DoubleRequest() { super(); }

@UCloudParam("Proportion")
private Double proportion;
Expand Down
48 changes: 48 additions & 0 deletions ucloud-sdk-java-cube/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<artifactId>ucloud-sdk-java</artifactId>
<groupId>cn.ucloud</groupId>
<version>1.2.10-release</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>ucloud-sdk-java-cube</artifactId>
<version>1.2.10-release</version>

<dependencies>
<dependency>
<groupId>cn.ucloud</groupId>
<artifactId>ucloud-sdk-java-common</artifactId>
<version>1.2.10-release</version>
</dependency>

<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>

<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
Loading

0 comments on commit 416c707

Please sign in to comment.