GeezerVison is showing github.com — 调整pom依赖,移除common中的JSONComparator,更新DescribeUDdisk · ucloud/ucloud-sdk-java@bfcf14c
File treeExpand file treeCollapse file tree Open diff view settings main/java/cn/ucloud/pathx/model test/java/cn/ucloud/pathx/client
src/test/java/cn/ucloud/udb/client
main/java/cn/ucloud/udisk/model test/java/cn/ucloud/udisk/client
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: pom.xml +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 75 | 75 | <lang.version>3.8</lang.version> | 76 | 76 | <codec.version>1.9</codec.version> | 77 | 77 | <slf4j.version>1.7.25</slf4j.version> | | 78 | + <jsonassert.version>1.5.0</jsonassert.version> | 78 | 79 | </properties> | 79 | 80 |
| 80 | 81 | <dependencyManagement> | | 90 | 91 | <dependency> | 91 | 92 | <groupId>org.skyscreamer</groupId> | 92 | 93 | <artifactId>jsonassert</artifactId> | 93 | | - <version>1.5.0</version> | | 94 | + <version>${jsonassert.version}</version> | 94 | 95 | <scope>test</scope> | 95 | 96 | </dependency> | 96 | 97 |
| |
Collapse file Copy file name to clipboardExpand all lines: ucloud-sdk-java-common/pom.xml +13-13Lines changed: 13 additions & 13 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 13 | 13 | <version>0.6.3.1-release</version> | 14 | 14 |
| 15 | 15 | <dependencies> | 16 | | - <dependency> | 17 | | - <groupId>junit</groupId> | 18 | | - <artifactId>junit</artifactId> | 19 | | - <scope>provided</scope> | 20 | | - </dependency> | 21 | 16 |
| 22 | 17 | <dependency> | 23 | 18 | <groupId>org.hibernate</groupId> | | 34 | 29 | <artifactId>slf4j-api</artifactId> | 35 | 30 | </dependency> | 36 | 31 |
| 37 | | - <dependency> | 38 | | - <groupId>org.slf4j</groupId> | 39 | | - <artifactId>slf4j-simple</artifactId> | 40 | | - <scope>provided</scope> | 41 | | - </dependency> | 42 | | - | 43 | 32 | <dependency> | 44 | 33 | <groupId>org.apache.httpcomponents</groupId> | 45 | 34 | <artifactId>httpclient</artifactId> | | 56 | 45 | </dependency> | 57 | 46 |
| 58 | 47 | <dependency> | 59 | | - <groupId>org.skyscreamer</groupId> | 60 | | - <artifactId>jsonassert</artifactId> | | 48 | + <groupId>junit</groupId> | | 49 | + <artifactId>junit</artifactId> | | 50 | + <scope>test</scope> | | 51 | + </dependency> | | 52 | + | | 53 | + <dependency> | | 54 | + <groupId>org.slf4j</groupId> | | 55 | + <artifactId>slf4j-simple</artifactId> | 61 | 56 | <scope>provided</scope> | 62 | 57 | </dependency> | 63 | 58 |
| | 59 | + <dependency> | | 60 | + <groupId>org.skyscreamer</groupId> | | 61 | + <artifactId>jsonassert</artifactId> | | 62 | + <scope>test</scope> | | 63 | + </dependency> | 64 | 64 | </dependencies> | 65 | 65 |
| 66 | 66 | </project> |
Collapse file Copy file name to clipboardExpand all lines: ucloud-sdk-java-pathx/pom.xml +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 31 | 31 | <dependency> | 32 | 32 | <groupId>junit</groupId> | 33 | 33 | <artifactId>junit</artifactId> | 34 | | - <scope>provided</scope> | | 34 | + <scope>test</scope> | 35 | 35 | </dependency> | 36 | 36 |
| 37 | 37 | <dependency> | | 48 | 48 | <dependency> | 49 | 49 | <groupId>org.skyscreamer</groupId> | 50 | 50 | <artifactId>jsonassert</artifactId> | | 51 | + <scope>test</scope> | 51 | 52 | </dependency> | 52 | 53 | </dependencies> | 53 | 54 |
| |
Collapse file Copy file name to clipboardExpand all lines: ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/model/GetGlobalSSHMetricResult.java +11Lines changed: 11 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 3 | 3 | import cn.ucloud.common.pojo.BaseResponseResult; | 4 | 4 | import com.google.gson.annotations.SerializedName; | 5 | 5 |
| | 6 | +import java.util.List; | | 7 | + | 6 | 8 |
| 7 | 9 | /** | 8 | 10 | * @Description : 获取GlobalSSH出入带宽数据 结果类 | @@ -14,4 +16,13 @@ public class GetGlobalSSHMetricResult extends BaseResponseResult { | 14 | 16 | * 相关指标,如带宽等 | 15 | 17 | */ | 16 | 18 | @SerializedName("Metrics") | | 19 | + private List<GlobalSSHMetric> metrics; | | 20 | + | | 21 | + public List<GlobalSSHMetric> getMetrics() { | | 22 | + return metrics; | | 23 | + } | | 24 | + | | 25 | + public void setMetrics(List<GlobalSSHMetric> metrics) { | | 26 | + this.metrics = metrics; | | 27 | + } | 17 | 28 | } |
Collapse file Copy file name to clipboardExpand all lines: ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/model/GetGlobalSSHPriceResult.java +9Lines changed: 9 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -14,4 +14,13 @@ public class GetGlobalSSHPriceResult extends BaseResponseResult { | 14 | 14 | * 价格,返回单位为元 | 15 | 15 | */ | 16 | 16 | @SerializedName("Price") | | 17 | + private Double price; | | 18 | + | | 19 | + public Double getPrice() { | | 20 | + return price; | | 21 | + } | | 22 | + | | 23 | + public void setPrice(Double price) { | | 24 | + this.price = price; | | 25 | + } | 17 | 26 | } |
Collapse file Copy file name to clipboardExpand all lines: ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/model/GlobalSSHMetric.java +14Lines changed: 14 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -22,5 +22,19 @@ public class GlobalSSHMetric { | 22 | 22 | @SerializedName("NetworkIn") | 23 | 23 | private List<MatricPoint> networkIn; | 24 | 24 |
| | 25 | + public List<MatricPoint> getNetworkOut() { | | 26 | + return networkOut; | | 27 | + } | 25 | 28 |
| | 29 | + public void setNetworkOut(List<MatricPoint> networkOut) { | | 30 | + this.networkOut = networkOut; | | 31 | + } | | 32 | + | | 33 | + public List<MatricPoint> getNetworkIn() { | | 34 | + return networkIn; | | 35 | + } | | 36 | + | | 37 | + public void setNetworkIn(List<MatricPoint> networkIn) { | | 38 | + this.networkIn = networkIn; | | 39 | + } | 26 | 40 | } |
Collapse file Copy file name to clipboardExpand all lines: ucloud-sdk-java-pathx/src/test/java/cn/ucloud/pathx/client/BindPathXSSLTest.java +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 9 | 9 | import org.junit.Before; | 10 | 10 | import org.junit.Test; | 11 | 11 |
| | 12 | +import java.util.ArrayList; | | 13 | +import java.util.List; | | 14 | + | 12 | 15 | import static org.junit.Assert.assertNull; | 13 | 16 |
| 14 | 17 |
| @@ -31,7 +34,8 @@ public void setUp() throws Exception { | 31 | 34 | System.getenv("UcloudPublicKey")))); | 32 | 35 | String sSLId = "cn-sh2"; | 33 | 36 | String uGAId = "cn-sh2"; | 34 | | - param = new BindPathXSSLParam(sSLId, uGAId); | | 37 | + List<Integer> ports = new ArrayList<>(); | | 38 | + param = new BindPathXSSLParam(sSLId, uGAId,ports); | 35 | 39 | param.setProjectId("org-izug1m"); | 36 | 40 | } | 37 | 41 |
| |
Collapse file Copy file name to clipboardExpand all lines: ucloud-sdk-java-pathx/src/test/java/cn/ucloud/pathx/client/GetPathXMetricTest.java +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -35,7 +35,8 @@ public void setUp() throws Exception { | 35 | 35 | Integer endTime = 1; | 36 | 36 | String resourceType = "cn-sh2"; | 37 | 37 | String lineId = "cn-sh2"; | 38 | | - param = new GetPathXMetricParam(projectId, resourceId, beginTime, endTime, resourceType, lineId); | | 38 | + String metricNames= ""; | | 39 | + param = new GetPathXMetricParam(projectId, resourceId, beginTime, endTime, resourceType, lineId,metricNames); | 39 | 40 | param.setProjectId("org-izug1m"); | 40 | 41 | } | 41 | 42 |
| |
Collapse file Copy file name to clipboardExpand all lines: ucloud-sdk-java-pathx/src/test/java/cn/ucloud/pathx/client/InsertPathXWhitelistTest.java +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 9 | 9 | import org.junit.Before; | 10 | 10 | import org.junit.Test; | 11 | 11 |
| | 12 | +import java.util.ArrayList; | | 13 | +import java.util.List; | | 14 | + | 12 | 15 | import static org.junit.Assert.assertNull; | 13 | 16 |
| 14 | 17 |
| @@ -31,7 +34,8 @@ public void setUp() throws Exception { | 31 | 34 | System.getenv("UcloudPublicKey")))); | 32 | 35 | String projectId = "cn-sh2"; | 33 | 36 | String instanceId = "cn-sh2"; | 34 | | - param = new InsertPathXWhitelistParam(projectId, instanceId); | | 37 | + List<String> whiteList = new ArrayList<>(); | | 38 | + param = new InsertPathXWhitelistParam(projectId, instanceId,whiteList); | 35 | 39 | param.setProjectId("org-izug1m"); | 36 | 40 | } | 37 | 41 |
| |
Collapse file Copy file name to clipboardExpand all lines: ucloud-sdk-java-pathx/src/test/java/cn/ucloud/pathx/client/UnBindPathXSSLTest.java +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 9 | 9 | import org.junit.Before; | 10 | 10 | import org.junit.Test; | 11 | 11 |
| | 12 | +import java.util.ArrayList; | | 13 | +import java.util.List; | | 14 | + | 12 | 15 | import static org.junit.Assert.assertNull; | 13 | 16 |
| 14 | 17 |
| @@ -31,7 +34,8 @@ public void setUp() throws Exception { | 31 | 34 | System.getenv("UcloudPublicKey")))); | 32 | 35 | String uGAId = "cn-sh2"; | 33 | 36 | String sSLId = "cn-sh2"; | 34 | | - param = new UnBindPathXSSLParam(uGAId, sSLId); | | 37 | + List<Integer> ports = new ArrayList<>(); | | 38 | + param = new UnBindPathXSSLParam(uGAId, sSLId,ports); | 35 | 39 | param.setProjectId("org-izug1m"); | 36 | 40 | } | 37 | 41 |
| |
|