Skip to content

Commit 5c5698b

Browse files
author
liyan.90210
committed
feat auto update sdk
1 parent eadaa7b commit 5c5698b

238 files changed

Lines changed: 10541 additions & 376 deletions

File tree

Some content is hidden

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

Changelog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Change log
22

3+
2026-01-08 Bumped to version v1.0.256
4+
- Updated apis for businessSecurity/tls
5+
36
2025-12-25 Bumped to version v1.0.255
47
- Updated apis for businessSecurity/tls/vms/vod
58

README.EN.MD

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
English | [中文](README.md)
2+
3+
<h1 align="center"><img src="https://iam.volccdn.com/obj/volcengine-public/pic/volcengine-icon.png"></h1>
4+
<h1 align="center">Volcengine SDK for Java</h1>
5+
6+
Welcome to Volcengine SDK for Java. This document explains how to obtain and use the SDK.
7+
8+
## Prerequisites
9+
10+
### Enable the service
11+
12+
Make sure the service you want to access is enabled. Go to the [Volcengine Console](https://console.volcengine.com/), select the service from the left navigation (or search it from the top bar), and complete the activation process in the service console.
13+
14+
### Obtain security credentials
15+
16+
Access Key is the credential used to access Volcengine services. It consists of Access Key ID (AK) and Secret Access Key (SK).
17+
18+
Log in to the [Volcengine Console](https://console.volcengine.com/), then go to [IAM](https://console.volcengine.com/iam) -> [Access Keys](https://console.volcengine.com/iam/keymanage/) to create and manage your Access Keys. For more information, see the [Access Key documentation](https://www.volcengine.com/docs/6291/65568).
19+
20+
## Install
21+
22+
We recommend using Maven dependencies to integrate Volcengine SDK for Java.
23+
24+
[![maven](https://img.shields.io/maven-central/v/com.volcengine/volc-sdk-java)](https://search.maven.org/artifact/com.volcengine/volc-sdk-java)
25+
26+
```xml
27+
<dependency>
28+
<groupId>com.volcengine</groupId>
29+
<artifactId>volc-sdk-java</artifactId>
30+
<version>latest</version>
31+
</dependency>
32+
```
33+
34+
If your Java version is **Java 9 or later**, add `javax.annotation-api` because it was removed from JDK 9+.
35+
36+
```xml
37+
<dependency>
38+
<groupId>javax.annotation</groupId>
39+
<artifactId>javax.annotation-api</artifactId>
40+
<version>1.3.2</version>
41+
</dependency>
42+
```
43+
44+
### SNAPSHOT release notes
45+
46+
[Version: 2.0.1-SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/com/volcengine/volc-sdk-java)
47+
48+
*Note: SNAPSHOT versions may have potential issues. The source branch is `2.0.0-SNAPSHOT`. If you need support, please submit a [ticket](https://console.volcengine.com/workorder/create) and select the corresponding product.*
49+
50+
#### Changes
51+
52+
1. Use OkHttp as the underlying HTTP component (Android compatible)
53+
2. Fix potential thread leaks when using many credentials
54+
3. Abstract some network-related models to avoid conflicts
55+
4. Business packages are mostly unaffected, so migration should be smooth
56+
57+
How to use the SNAPSHOT version:
58+
59+
1. Add the SNAPSHOT Maven repository (SNAPSHOT policy settings are up to you)
60+
61+
```xml
62+
<repository>
63+
<id>snapshots-repo</id>
64+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
65+
</repository>
66+
```
67+
68+
2. Add dependency
69+
70+
```xml
71+
<dependency>
72+
<groupId>com.volcengine</groupId>
73+
<artifactId>volc-sdk-java</artifactId>
74+
<version>2.0.1-SNAPSHOT</version>
75+
</dependency>
76+
```
77+
78+
## Configuration
79+
80+
### Credential configuration
81+
82+
Volcengine SDK for Java supports the following credential loading methods.
83+
84+
*Note: Replace `Your AK` and `Your SK` in the code with your actual AK and SK.*
85+
86+
**Method 1**: Specify AK/SK explicitly on the client **(recommended)**
87+
88+
```java
89+
iamService.setAccessKey("Your AK");
90+
iamService.setSecretKey("Your SK");
91+
```
92+
93+
**Method 2**: Load AK/SK from environment variables
94+
95+
```bash
96+
VOLC_ACCESSKEY="Your AK"
97+
VOLC_SECRETKEY="Your SK"
98+
```
99+
100+
**Method 3**: Load AK/SK from a file under HOME
101+
102+
Add the following content to `~/.volc/config`:
103+
104+
```json
105+
{
106+
"ak": "Your AK",
107+
"sk": "Your SK"
108+
}
109+
```
110+
111+
### Release resources
112+
113+
After calling APIs, explicitly call `destroy()` to release daemon threads.
114+
115+
```java
116+
iamService.destroy()
117+
```
118+
119+
## Other resources
120+
121+
Examples are available under [example](./example)

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
中文 | [English](README.EN.MD)
2+
13
<h1 align="center"><img src="https://iam.volccdn.com/obj/volcengine-public/pic/volcengine-icon.png"></h1>
24
<h1 align="center">火山引擎SDK for Java</h1>
35
欢迎使用火山引擎SDK for Java,本文档为您介绍如何获取及调用SDK。
@@ -96,4 +98,3 @@ iamService.destroy()
9698
##其它资源
9799
示例参见[example](./example)
98100

99-

com/volcengine/service/tls/TLSLogClient.java

Lines changed: 0 additions & 9 deletions
This file was deleted.

com/volcengine/service/tls/impl/TLSLogClientImpl.java

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/main/java/com/volcengine/model/tls/request/.gitkeep

Whitespace-only changes.

src/main/java/com/volcengine/model/tls/response/.gitkeep

Whitespace-only changes.

volc-sdk-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.volcengine</groupId>
7-
<version>1.0.255</version>
7+
<version>1.0.256</version>
88
<artifactId>volc-sdk-java</artifactId>
99

1010
<name>volc-sdk-java</name>

volc-sdk-java/src/main/java/com/volcengine/model/beans/livesaas/ActivityCoupon.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ public class ActivityCoupon {
3939
Integer IsViewerLevelLimit;
4040
@JSONField(name = "ViewerLevelConfigMetas")
4141
List<ViewerLevelConfigMetas> ViewerLevelConfigMetas;
42+
@JSONField(name = "SendCouponType")
43+
Integer SendCouponType;
44+
@JSONField(name = "AutoSendTime")
45+
Integer AutoSendTime;
4246
@Data
4347
public static class ViewerLevelConfigMetas {
4448
@JSONField(name = "ViewerLevelConfigId")

volc-sdk-java/src/main/java/com/volcengine/model/beans/livesaas/AwardUserInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ public class AwardUserInfo {
1313
String UserTel;
1414
@JSONField(name = "ExternalUserId")
1515
String ExternalUserId;
16-
}
16+
}

0 commit comments

Comments
 (0)