Skip to content

Commit

Permalink
release 3.0.11-beta source code for java
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaweicloud-SDK committed Sep 9, 2020
1 parent c953203 commit be49e3f
Show file tree
Hide file tree
Showing 4,081 changed files with 17,828 additions and 11,321 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# 3.0.11-beta 2020-09-09
## HuaweiCloud SDK Core
- ### Features
- None
- ### Bug Fix
- None
- ### Change
- Enhance the security of dynamic enumerated types.

## HuaweiCloud SDK Meeting
- ### Features
- Support more APIs: Meeting Control / Meeting Management.
- ### Bug Fix
- None
- ### Change
- None

## HuaweiCloud SDK VPC
- ### Features
- None
- ### Bug Fix
- Fix the problem that security group related interfaces have wrong data type.
- ### Change
- None


# 3.0.10-beta 2020-09-04
## HuaweiCloud SDK Core
- ### Features
Expand All @@ -9,6 +35,22 @@
- ### Change
- Modify User Agent of Http Request header.

## HuaweiCloud SDK DevStar
- ### Features
- Support more APIs: DownloadApplicationCode
- ### Bug Fix
- None
- ### Change
- None

## HuaweiCloud SDK DMS
- ### Features
- Support Distributed Message Services, provide Kafka premium instances and RabbitMQ premium instances with dedicated resources.
- ### Bug Fix
- None
- ### Change
- None


# 3.0.9-beta 2020-08-28
## HuaweiCloud SDK CloudPipeline
Expand Down
28 changes: 27 additions & 1 deletion CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# 3.0.11-beta 2020-09-09
## HuaweiCloud SDK Core
- ### 新增特性
-
- ### 解决问题
-
- ### 特性变更
- 加强动态枚举类型的安全性

## HuaweiCloud SDK Meeting
- ### 新增特性
- 新增支持接口:会议控制/会议管理
- ### 解决问题
-
- ### 特性变更
-

## HuaweiCloud SDK VPC
- ### 新增特性
-
- ### 解决问题
- 修复安全组相关接口类型错误的问题
- ### 特性变更
-


# 3.0.10-beta 2020-09-04
## HuaweiCloud SDK Core
- ### 新增特性
Expand All @@ -23,7 +49,7 @@
- ### 解决问题
-
- ### 特性变更
-
-


# 3.0.9-beta 2020-08-28
Expand Down
4 changes: 2 additions & 2 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

<parent>
<groupId>com.huaweicloud.sdk</groupId>
<version>3.0.10-beta</version>
<version>3.0.11-beta</version>
<artifactId>huaweicloud-sdk</artifactId>
</parent>

<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
<artifactId>huaweicloud-sdk-core</artifactId>
<version>3.0.10-beta</version>
<version>3.0.11-beta</version>
<name>Huaweicloud SDK for Java Core</name>
<description>Core code for Huaweicloud SDK for Java</description>
<url>https://github.com/huaweicloud/huaweicloud-sdk-java-v3</url>
Expand Down
31 changes: 14 additions & 17 deletions core/src/test/java/com/huaweicloud/sdk/core/TestEnumClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
import org.junit.Assert;
import org.junit.Test;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public class TestEnumClass {

public static class VolumetypeEnum {
public static final class VolumetypeEnum {

public static final VolumetypeEnum SATA = new VolumetypeEnum("SATA");

Expand All @@ -21,14 +22,15 @@ public static class VolumetypeEnum {

private String value;

public static Map<String, VolumetypeEnum> staticFields =
new HashMap<String, VolumetypeEnum>() {
{
put("SATA", SATA);
put("SAS", SAS);
put("SSD", SSD);
}
};
private static final Map<String, VolumetypeEnum> STATIC_FIELDS = createStaticFields();

private static Map<String, VolumetypeEnum> createStaticFields() {
Map<String, VolumetypeEnum> map = new HashMap<>();
map.put("SATA", SATA);
map.put("SAS", SAS);
map.put("SSD", SSD);
return Collections.unmodifiableMap(map);
}

VolumetypeEnum(String value) {
this.value = value;
Expand All @@ -46,12 +48,9 @@ public static VolumetypeEnum fromValue(String value) {
if (value == null) {
return null;
}
VolumetypeEnum result = staticFields.get(value);
VolumetypeEnum result = STATIC_FIELDS.get(value);
if (result == null) {
result = staticFields.putIfAbsent(value, new VolumetypeEnum(value));
if (result == null) {
result = staticFields.get(value);
}
result = new VolumetypeEnum(value);
}
return result;
}
Expand All @@ -60,7 +59,7 @@ public static VolumetypeEnum valueOf(String value) {
if (value == null) {
return null;
}
VolumetypeEnum result = staticFields.get(value);
VolumetypeEnum result = STATIC_FIELDS.get(value);
if (result != null) {
return result;
}
Expand Down Expand Up @@ -113,8 +112,6 @@ public void testEnumType() {
System.out.println(enumClassC.getVolumetypeEnum());
Assert.assertEquals(atype, enumClassA.getVolumetypeEnum());
Assert.assertEquals(btype, enumClassB.getVolumetypeEnum());
Assert.assertEquals(btype == enumClassB.getVolumetypeEnum(), true);
Assert.assertEquals(atype == enumClassA.getVolumetypeEnum(), true);
Assert.assertEquals(atype.hashCode(), "SATA".hashCode());
}

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<packaging>pom</packaging>
<groupId>com.huaweicloud.sdk</groupId>
<artifactId>huaweicloud-sdk</artifactId>
<version>3.0.10-beta</version>
<version>3.0.11-beta</version>
<name>Huaweicloud SDK for Java</name>
<description>Huaweicloud SDK for Java</description>
<url>https://github.com/huaweicloud/huaweicloud-sdk-java-v3</url>
Expand Down Expand Up @@ -48,7 +48,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<revision>3.0.10-beta</revision>
<revision>3.0.11-beta</revision>
<jackson.version>2.11.1</jackson.version>
<validation-api.version>2.0.1.Final</validation-api.version>
<okhttp.version>3.14.2</okhttp.version>
Expand Down
4 changes: 2 additions & 2 deletions services/apig/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.huaweicloud.sdk</groupId>
<version>3.0.10-beta</version>
<version>3.0.11-beta</version>
<artifactId>huaweicloud-sdk-services</artifactId>
<relativePath>..</relativePath>
</parent>
<groupId>com.huaweicloud.sdk</groupId>
<artifactId>huaweicloud-sdk-apig</artifactId>
<version>3.0.10-beta</version>
<version>3.0.11-beta</version>
<name>huaweicloud sdk apig</name>

<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@




import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
Expand Down
Loading

0 comments on commit be49e3f

Please sign in to comment.