Skip to content

Commit a6db68c

Browse files
authored
Merge pull request #58 from volcengine/release_2.6.17
2.6.17 support notify callback and delete object with if-match
2 parents f89212f + 02dc5b3 commit a6db68c

22 files changed

+156
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Release Note
22

3+
### 2025.8.4 Version 2.6.17
4+
- 支持 deleteObject 接口携带 if-match
5+
- 支持事件通知回调
6+
37
### 2025.6.23 Version 2.6.16
48
- 支持 请求指定请求头域
59

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.1)
22

33
project(ve-tos-cpp-sdk
4-
VERSION 2.6.16
4+
VERSION 2.6.17
55
LANGUAGES CXX)
66

77
# project settings

example/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.1)
22
project(ve-tos-cpp-sdk-example
3-
VERSION 2.6.16
3+
VERSION 2.6.17
44
LANGUAGES CXX)
55

66
add_executable(${PROJECT_NAME} example.cc)

sdk/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.1)
22
project(ve-tos-cpp-sdk-lib
3-
VERSION 2.6.16
3+
VERSION 2.6.17
44
LANGUAGES CXX)
55
set(SDK_HEADER
66
include/auth/Credential.h

sdk/include/TosClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
#include "model/object/ModifyObjectInput.h"
5858
#include "model/object/ModifyObjectOutput.h"
5959
namespace VolcengineTos {
60-
static const char* TOS_SDK_VERSION = "v2.6.16";
60+
static const char* TOS_SDK_VERSION = "v2.6.17";
6161
#ifdef WIN32
6262
static const char* PLATFORM_NAME = "windows";
6363
#elif __linux__

sdk/include/common/Common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static const char* HEADER_TRAFFIC_LIMIT = "X-Tos-Traffic-Limit";
9595
static const char* HEADER_COMPLETE_ALL = "X-Tos-Complete-All";
9696
static const char* HEADER_CALLBACK = "X-Tos-Callback";
9797
static const char* HEADER_CALLBACK_VAR = "X-Tos-Callback-Var";
98-
98+
static const char* HEADER_NOTIFY_CUSTOM_PARAM = "X-Tos-Notification-Custom-Parameters";
9999
// HNS
100100
static const char* HEADER_DIRECTORY = "X-Tos-Directory";
101101
static const char* HEADER_BUCKET_TYPE = "X-Tos-Bucket-Type";

sdk/include/model/object/AppendObjectV2Input.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ class AppendObjectV2Input : public GenericInput {
151151
void setTrafficLimit(int64_t trafficLimit) {
152152
trafficLimit_ = trafficLimit;
153153
}
154+
const std::string& getNotificationCustomParameters() const {
155+
return notificationCustomParameters_;
156+
}
157+
void setNotificationCustomParameters(const std::string& notificationCustomParameters) {
158+
notificationCustomParameters_ = notificationCustomParameters;
159+
}
154160

155161
private:
156162
std::string bucket_;
@@ -180,5 +186,7 @@ class AppendObjectV2Input : public GenericInput {
180186
uint64_t preHashCrc64ecma_ = 0; // 与初始化参数 EnableCRC 配套使用,代表上一次调用 AppendObjectOutput 返回的
181187
// HashCrc64ecma,第一次请求时为 0
182188
int64_t trafficLimit_ = 0;
189+
190+
std::string notificationCustomParameters_;
183191
};
184192
} // namespace VolcengineTos

sdk/include/model/object/CompleteMultipartUploadV2Input.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ class CompleteMultipartUploadV2Input : public GenericInput {
6464
void setCallBackVar(const std::string& callBackVar) {
6565
callBackVar_ = callBackVar;
6666
}
67+
const std::string& getNotificationCustomParameters() const {
68+
return notificationCustomParameters_;
69+
}
70+
void setNotificationCustomParameters(const std::string& notificationCustomParameters) {
71+
notificationCustomParameters_ = notificationCustomParameters;
72+
}
6773
std::string toJsonString() const;
6874

6975
private:
@@ -74,6 +80,7 @@ class CompleteMultipartUploadV2Input : public GenericInput {
7480
bool completeAll_ = false;
7581
std::string callBack_;
7682
std::string callBackVar_;
83+
std::string notificationCustomParameters_;
7784
};
7885

7986
} // namespace VolcengineTos

sdk/include/model/object/CopyObjectV2Input.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ class CopyObjectV2Input : public GenericInput {
208208
void setTrafficLimit(int64_t trafficLimit) {
209209
trafficLimit_ = trafficLimit;
210210
}
211+
const std::string& getNotificationCustomParameters() const {
212+
return notificationCustomParameters_;
213+
}
214+
void setNotificationCustomParameters(const std::string& notificationCustomParameters) {
215+
notificationCustomParameters_ = notificationCustomParameters;
216+
}
211217

212218
private:
213219
std::string bucket_;
@@ -249,5 +255,7 @@ class CopyObjectV2Input : public GenericInput {
249255
std::string websiteRedirectLocation_;
250256
StorageClassType storageClass_ = StorageClassType::NotSet;
251257
int64_t trafficLimit_ = 0;
258+
259+
std::string notificationCustomParameters_;
252260
};
253261
} // namespace VolcengineTos

sdk/include/model/object/DeleteMultiObjectsInput.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,22 @@ class DeleteMultiObjectsInput : public GenericInput {
4141
bool getSkipTrash() const {
4242
return skipTrash_;
4343
}
44-
4544
void setSkipTrash(bool skipTrash) {
4645
skipTrash_ = skipTrash;
4746
}
47+
const std::string& getNotificationCustomParameters() const {
48+
return notificationCustomParameters_;
49+
}
50+
void setNotificationCustomParameters(const std::string& notificationCustomParameters) {
51+
notificationCustomParameters_ = notificationCustomParameters;
52+
}
4853

4954
private:
5055
std::vector<ObjectTobeDeleted> objectTobeDeleteds_;
5156
bool quiet_;
5257
std::string bucket_;
5358
bool recursive_ = false;
5459
bool skipTrash_ = false;
60+
std::string notificationCustomParameters_;
5561
};
5662
} // namespace VolcengineTos

0 commit comments

Comments
 (0)