Skip to content

Commit 2c77fc6

Browse files
committed
feat(endpoint): 添加 livesaas 服务的默认和标准端点配置
1 parent 5263c6c commit 2c77fc6

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

volcengine-java-sdk-core/src/main/java/com/volcengine/endpoint/DefaultEndpointProvider.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,14 @@ public class DefaultEndpointProvider implements EndpointResolver {
722722
ENDPOINT,
723723
createRegionEndpointMap()
724724
));
725+
726+
DEFAULT_ENDPOINT_MAP.put("livesaas", new ServiceEndpointInfo(
727+
"livesaas",
728+
true,
729+
"",
730+
ENDPOINT,
731+
createRegionEndpointMap()
732+
));
725733
}
726734

727735
// 创建区域端点映射的辅助方法

volcengine-java-sdk-core/src/main/java/com/volcengine/endpoint/StandardEndpointProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ private static String renderTemplate(String format, Variables v) {
255255
SERVICE_INFOS.put("vms", new ServiceInfo("vms", false));
256256
SERVICE_INFOS.put("eco_partner", new ServiceInfo("eco_partner", true));
257257
SERVICE_INFOS.put("smc", new ServiceInfo("smc", true));
258+
SERVICE_INFOS.put("livesaas", new ServiceInfo("livesaas", true));
258259

259260
// -------- Region 匹配器(白名单 + 正则) --------
260261
Map<String, RegionInfo> white = new HashMap<>();

0 commit comments

Comments
 (0)