Skip to content

Commit 2b22fe7

Browse files
author
liyan.90210
committed
feat auto update sdk
1 parent 269307b commit 2b22fe7

File tree

59 files changed

+7437
-703
lines changed

Some content is hidden

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

59 files changed

+7437
-703
lines changed

Changelog

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

3+
2025-01-09 Bumped to version v1.0.201
4+
- Updated apis for livesaas/vikingDB/vod
5+
36
2025-01-02 Bumped to version v1.0.200
47
- Updated apis for cdn/vikingDB
58

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Code generated by protoc-gen-volcengine-sdk
2+
// source: getCallbackRecord
3+
// DO NOT EDIT!
4+
5+
package com.volcengine.example.vod.callback;
6+
7+
import com.volcengine.service.vod.IVodService;
8+
import com.volcengine.service.vod.impl.VodServiceImpl;
9+
public class VodGetCallbackRecordDemo {
10+
11+
public static void main(String[] args) throws Exception {
12+
// Create a VOD instance in the specified region.
13+
// IVodService vodService = VodServiceImpl.getInstance("cn-north-1");
14+
IVodService vodService = VodServiceImpl.getInstance();
15+
16+
// Configure your Access Key ID (AK) and Secret Access Key (SK) in the environment variables or in the local ~/.volc/config file. For detailed instructions, see https://www.volcengine.com/docs/4/65641.
17+
// The SDK will automatically fetch the AK and SK from the environment variables or the ~/.volc/config file as needed.
18+
// During testing, you may use the following code snippet. However, do not store the AK and SK directly in your project code to prevent potential leakage and safeguard the security of all resources associated with your account.
19+
// vodService.setAccessKey("your ak");
20+
// vodService.setSecretKey("your sk");
21+
22+
try {
23+
com.volcengine.service.vod.model.request.GetCallbackRecordRequest.Builder reqBuilder = com.volcengine.service.vod.model.request.GetCallbackRecordRequest.newBuilder();
24+
reqBuilder.setSpaceName("your SpaceName");
25+
reqBuilder.setVID("your VID");
26+
reqBuilder.setStatus("your Status");
27+
reqBuilder.setStartTime(0);
28+
reqBuilder.setEndTime(0);
29+
reqBuilder.setLimit(0);
30+
reqBuilder.setOffset(0);
31+
reqBuilder.setEventType("your EventType");
32+
33+
com.volcengine.service.vod.model.response.GetCallbackRecordResponse resp = vodService.getCallbackRecord(reqBuilder.build());
34+
if (resp.getResponseMetadata().hasError()) {
35+
System.out.println(resp.getResponseMetadata().getError());
36+
System.exit(-1);
37+
}
38+
System.out.println(resp);
39+
} catch (Exception e) {
40+
e.printStackTrace();
41+
}
42+
}
43+
}

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.200</version>
7+
<version>1.0.201</version>
88
<artifactId>volc-sdk-java</artifactId>
99

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

volc-sdk-java/src/main/java/com/volcengine/helper/Const.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,14 @@ public class Const {
610610
public static final String ListWaitLinkAudience = "ListWaitLinkAudience";
611611
public static final String GetLinkUserAmount = "GetLinkUserAmount";
612612
public static final String GetInviterToken = "GetInviterToken";
613+
public static final String ListAreaConfig = "ListAreaConfig";
614+
public static final String CreateAreaConfig = "CreateAreaConfig";
615+
public static final String UpdateAreaConfig = "UpdateAreaConfig";
616+
public static final String DeleteAreaConfig = "DeleteAreaConfig";
617+
public static final String ListOfficeConfig = "ListOfficeConfig";
618+
public static final String CreateOfficeConfig = "CreateOfficeConfig";
619+
public static final String UpdateOfficeConfig = "UpdateOfficeConfig";
620+
public static final String DeleteOfficeConfig = "DeleteOfficeConfig";
613621

614622
// translate
615623
public static final String LangDetect = "LangDetect";
@@ -1079,4 +1087,8 @@ public class Const {
10791087
public static final String ReportVersion = "2024-01-01";
10801088

10811089
public static final String ListActivityUsers = "ListActivityUsers";
1090+
1091+
public static final String UpdateProductReminderInfo = "UpdateProductReminderInfo";
1092+
1093+
public static final String SendProductOrderMessage = "SendProductOrderMessage";
10821094
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package com.volcengine.model.beans.livesaas;
2+
3+
import com.alibaba.fastjson.annotation.JSONField;
4+
import com.volcengine.model.livesaas.response.ListAreaConfigResponse;
5+
import lombok.Data;
6+
7+
import java.util.List;
8+
9+
@Data
10+
public class Area {
11+
@JSONField(name = "AreaId")
12+
String AreaId;
13+
@JSONField(name = "LBStrategy")
14+
String LBStrategy;
15+
@JSONField(name = "AreaIp")
16+
Ip AreaIp;
17+
@JSONField(name = "AreaName")
18+
String AreaName;
19+
@JSONField(name = "EnableExtranetUrl")
20+
Boolean EnableExtranetUrl;
21+
@JSONField(name = "EnableOfficeList")
22+
List<String> EnableOfficeList;
23+
@JSONField(name = "EnableStreamRouterList")
24+
List<String> EnableStreamRouterList;
25+
@JSONField(name = "CreateTime")
26+
Long CreateTime;
27+
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,8 @@ public class CommentConfig {
4141
Integer IsViewerDeleteCommentsEnable;
4242
@JSONField(name = "IsSendCommentEnable")
4343
Integer IsSendCommentEnable;
44+
@JSONField(name = "IsViewInPurchaseEnable")
45+
Integer IsViewInPurchaseEnable;
46+
@JSONField(name = "IsViewOrderEnable")
47+
Integer IsViewOrderEnable;
4448
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.volcengine.model.beans.livesaas;
2+
3+
import com.alibaba.fastjson.annotation.JSONField;
4+
import lombok.Data;
5+
6+
import java.util.List;
7+
8+
@Data
9+
public class Ip {
10+
@JSONField(name = "IP")
11+
List<String> IP;
12+
@JSONField(name = "NetworkSegment")
13+
List<String> NetworkSegment;
14+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package com.volcengine.model.beans.livesaas;
2+
3+
import com.alibaba.fastjson.annotation.JSONField;
4+
import lombok.Data;
5+
6+
import java.util.List;
7+
8+
@Data
9+
public class Office {
10+
@JSONField(name = "OfficeId")
11+
String OfficeId;
12+
@JSONField(name = "LBStrategy")
13+
String LBStrategy;
14+
@JSONField(name = "OfficeIp")
15+
Ip OfficeIp;
16+
@JSONField(name = "OfficeName")
17+
String OfficeName;
18+
@JSONField(name = "RecommendedSize")
19+
String RecommendedSize;
20+
@JSONField(name = "EnableExtranetUrl")
21+
Boolean EnableExtranetUrl;
22+
@JSONField(name = "AllowedSize")
23+
List<String> AllowedSize;
24+
@JSONField(name = "OfficeStatus")
25+
String OfficeStatus;
26+
@JSONField(name = "AreaId")
27+
String AreaId;
28+
@JSONField(name = "CreateTime")
29+
Long CreateTime;
30+
}

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,18 @@ public class ProductCardMsg {
3131
String Title;
3232
@JSONField(name = "RedirectImage")
3333
String RedirectImage;
34+
@JSONField(name = "SellingPointTag")
35+
String SellingPointTag;
36+
@JSONField(name = "ReminderType")
37+
Integer ReminderType;
38+
@JSONField(name = "HotSale")
39+
String HotSale;
40+
@JSONField(name = "Stock")
41+
String Stock;
42+
@JSONField(name = "PromotionTagUrl")
43+
String PromotionTagUrl;
44+
@JSONField(name = "PromotionTagType")
45+
Integer PromotionTagType;
46+
@JSONField(name = "IsOrderMsgEnable")
47+
Integer IsOrderMsgEnable;
3448
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.volcengine.model.livesaas.request;
2+
3+
import com.alibaba.fastjson.annotation.JSONField;
4+
import com.volcengine.model.beans.livesaas.Ip;
5+
import lombok.Data;
6+
7+
import java.util.List;
8+
9+
@Data
10+
public class CreateAreaConfigRequest {
11+
@JSONField(name = "LBStrategy")
12+
String LBStrategy;
13+
@JSONField(name = "AreaIp")
14+
Ip AreaIp;
15+
@JSONField(name = "AreaName")
16+
String AreaName;
17+
@JSONField(name = "EnableExtranetUrl")
18+
Boolean EnableExtranetUrl;
19+
}

0 commit comments

Comments
 (0)