Skip to content

Commit

Permalink
release 3.1.56 source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaweicloud-SDK committed Oct 26, 2023
1 parent 573c309 commit ac299c1
Show file tree
Hide file tree
Showing 167 changed files with 18,679 additions and 29 deletions.
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
# 3.1.56 2023-10-26

### HuaweiCloud SDK CDN

- _Features_
- Support the following interfaces:
- `CreateRefreshTasks`
- `CreatePreheatingTasks`
- `ShowHistoryTasks`
- `ShowHistoryTaskDetails`
- `ShowUrlTaskInfo`
- _Bug Fix_
- None
- _Change_
- **CreateRefreshTasks**
- changes of request param
- `+ refresh_task.zh_url_encode`
- **CreatePreheatingTasks**
- changes of request param
- `+ preheating_task.zh_url_encode`

### HuaweiCloud SDK OCR

- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **RecognizeGeneralTable**
- changes of request param
- `+ with_borders`

### HuaweiCloud SDK RDS

- _Features_
- Support the interfaces `ListInstanceDiagnosis`, `ListInstancesInfoDiagnosis`
- _Bug Fix_
- None
- _Change_
- None

# 3.1.55 2023-10-19

### HuaweiCloud SDK CBR
Expand Down
41 changes: 41 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
# 3.1.56 2023-10-26

### HuaweiCloud SDK CDN

- _新增特性_
- 支持以下接口:
- `CreateRefreshTasks`
- `CreatePreheatingTasks`
- `ShowHistoryTasks`
- `ShowHistoryTaskDetails`
- `ShowUrlTaskInfo`
- _解决问题_
-
- _特性变更_
- **CreateRefreshTasks**
- 请求参数变更
- `+ refresh_task.zh_url_encode`
- **CreatePreheatingTasks**
- 请求参数变更
- `+ preheating_task.zh_url_encode`

### HuaweiCloud SDK OCR

- _新增特性_
-
- _解决问题_
-
- _特性变更_
- **RecognizeGeneralTable**
- 请求参数变更
- `+ with_borders`

### HuaweiCloud SDK RDS

- _新增特性_
- 支持接口`ListInstanceDiagnosis``ListInstancesInfoDiagnosis`
- _解决问题_
-
- _特性变更_
-

# 3.1.55 2023-10-19

### HuaweiCloud SDK CBR
Expand Down
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ if(ENABLE_BSON)
add_definitions(-DHUAWEICLOUD_SDK_BSON_)
endif()

SET(BUILD_SERVICE kvs)
SET(BUILD_SERVICE antiddos)
SET(SERVICE_VERSION v1)

if(BUILD_SERVICE STREQUAL "all" OR BUILD_SERVICE STREQUAL "")
# USE MULTIPLE SERVICES(EXAMPLE: USE VPC ECS AND EIP)
add_subdirectory(core)
#add_subdirectory(tms/src/v1)
#add_subdirectory(eps/src/v1)
add_subdirectory(smn/src/v2)
#add_subdirectory(smn/src/v2)
add_subdirectory(antiddos/src/v1)
message(STATUS "Build all Services")
else()
# USE SINGLE SERVICE(EXAMPLE: USE VPC ECS AND EIP)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.55
3.1.56
228 changes: 228 additions & 0 deletions antiddos/include/huaweicloud/antiddos/v1/AntiDDoSClient.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,228 @@
#ifndef HUAWEICLOUD_SDK_ANTIDDOS_V1_AntiDDoSClient_H_
#define HUAWEICLOUD_SDK_ANTIDDOS_V1_AntiDDoSClient_H_

#include <huaweicloud/antiddos/v1/AntiDDoSExport.h>
#include <huaweicloud/core/Client.h>
#include <huaweicloud/core/ClientBuilder.h>


#include <huaweicloud/antiddos/v1/model/CreateDefaultConfigRequest.h>
#include <huaweicloud/antiddos/v1/model/CreateDefaultConfigResponse.h>
#include <huaweicloud/antiddos/v1/model/DdosConfig.h>
#include <huaweicloud/antiddos/v1/model/DeleteDefaultConfigRequest.h>
#include <huaweicloud/antiddos/v1/model/DeleteDefaultConfigResponse.h>
#include <huaweicloud/antiddos/v1/model/ShowAlertConfigRequest.h>
#include <huaweicloud/antiddos/v1/model/ShowAlertConfigResponse.h>
#include <huaweicloud/antiddos/v1/model/ShowDefaultConfigRequest.h>
#include <huaweicloud/antiddos/v1/model/ShowDefaultConfigResponse.h>
#include <huaweicloud/antiddos/v1/model/UpdateAlertConfigRequest.h>
#include <huaweicloud/antiddos/v1/model/UpdateAlertConfigRequestBody.h>
#include <huaweicloud/antiddos/v1/model/UpdateAlertConfigResponse.h>

#include <huaweicloud/antiddos/v1/model/ListDDosStatusRequest.h>
#include <huaweicloud/antiddos/v1/model/ListDDosStatusResponse.h>
#include <huaweicloud/antiddos/v1/model/ListDailyLogRequest.h>
#include <huaweicloud/antiddos/v1/model/ListDailyLogResponse.h>
#include <huaweicloud/antiddos/v1/model/ListDailyReportRequest.h>
#include <huaweicloud/antiddos/v1/model/ListDailyReportResponse.h>
#include <huaweicloud/antiddos/v1/model/ListNewConfigsRequest.h>
#include <huaweicloud/antiddos/v1/model/ListNewConfigsResponse.h>
#include <huaweicloud/antiddos/v1/model/ListWeeklyReportsRequest.h>
#include <huaweicloud/antiddos/v1/model/ListWeeklyReportsResponse.h>
#include <huaweicloud/antiddos/v1/model/ShowDDosRequest.h>
#include <huaweicloud/antiddos/v1/model/ShowDDosResponse.h>
#include <huaweicloud/antiddos/v1/model/ShowDDosStatusRequest.h>
#include <huaweicloud/antiddos/v1/model/ShowDDosStatusResponse.h>
#include <huaweicloud/antiddos/v1/model/ShowNewTaskStatusRequest.h>
#include <huaweicloud/antiddos/v1/model/ShowNewTaskStatusResponse.h>
#include <huaweicloud/antiddos/v1/model/UpdateAntiDDosServiceRequestBody.h>
#include <huaweicloud/antiddos/v1/model/UpdateDDosRequest.h>
#include <huaweicloud/antiddos/v1/model/UpdateDDosResponse.h>
#include <string>

#include <cpprest/details/basic_types.h>
#include <huaweicloud/core/utils/ModelBase.h>
#include <huaweicloud/core/utils/Object.h>
#undef U
#include <boost/optional.hpp>

namespace HuaweiCloud {
namespace Sdk {
namespace Antiddos {
namespace V1 {

using namespace HuaweiCloud::Sdk::Core;
using namespace HuaweiCloud::Sdk::Antiddos::V1::Model;

class HUAWEICLOUD_ANTIDDOS_V1_EXPORT AntiDDoSClient : public Client
{
public:

AntiDDoSClient();

virtual ~AntiDDoSClient();

static ClientBuilder<AntiDDoSClient> newBuilder();

// 配置Anti-DDoS默认防护策略
//
// 配置用户的默认防护策略。配置防护策略后,新购买的资源在自动开启防护时,会按照该默认防护策略进行配置。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<CreateDefaultConfigResponse> createDefaultConfig(
CreateDefaultConfigRequest &request
);
// 删除Ani-DDoS默认防护策略
//
// 删除用户配置的默认防护策略。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<DeleteDefaultConfigResponse> deleteDefaultConfig(
DeleteDefaultConfigRequest &request
);
// 查询告警配置信息
//
// 查询用户配置信息,用户可以通过此接口查询是否接收某类告警,同时可以配置是手机短信还是电子邮件接收告警信息。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ShowAlertConfigResponse> showAlertConfig(
ShowAlertConfigRequest &request
);
// 查询Ani-DDoS默认防护策略
//
// 查询用户配置的默认防护策略。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ShowDefaultConfigResponse> showDefaultConfig(
ShowDefaultConfigRequest &request
);
// 更新告警配置信息
//
// 更新用户配置信息,用户可以通过此接口更新是否接收某类告警,同时可以配置是手机短信还是电子邮件接收告警信息。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<UpdateAlertConfigResponse> updateAlertConfig(
UpdateAlertConfigRequest &request
);

// 查询EIP防护状态列表
//
// 查询用户所有EIP的Anti-DDoS防护状态信息,用户的EIP无论是否绑定到云服务器,都可以进行查询。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ListDDosStatusResponse> listDDosStatus(
ListDDosStatusRequest &request
);
// 查询指定EIP异常事件
//
// 查询指定EIP在过去24小时之内的异常事件信息,异常事件包括清洗事件和黑洞事件,查询延迟在5分钟之内。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ListDailyLogResponse> listDailyLog(
ListDailyLogRequest &request
);
// 查询指定EIP防护流量
//
// 查询指定EIP在过去24小时之内的防护流量信息,流量的间隔时间单位为5分钟。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ListDailyReportResponse> listDailyReport(
ListDailyReportRequest &request
);
// 查询Anti-DDoS配置可选范围
//
// 查询系统支持的Anti-DDoS防护策略配置的可选范围,用户根据范围列表选择适合自已业务的防护策略进行Anti-DDoS流量清洗。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ListNewConfigsResponse> listNewConfigs(
ListNewConfigsRequest &request
);
// 查询周防护统计情况
//
// 查询用户所有Anti-DDoS防护周统计情况,包括一周内DDoS拦截次数和攻击次数、以及按照被攻击次数进行的排名信息等统计数据。系统支持当前时间之前四周的周统计数据查询,超过这个时间的请求是查询不到统计数据的。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ListWeeklyReportsResponse> listWeeklyReports(
ListWeeklyReportsRequest &request
);
// 查询Anti-DDoS服务
//
// 查询配置的Anti-DDoS防护策略,用户可以查询指定EIP的Anti-DDoS防护策略。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ShowDDosResponse> showDDos(
ShowDDosRequest &request
);
// 查询指定EIP防护状态
//
// 查询指定EIP的Anti-DDoS防护状态。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ShowDDosStatusResponse> showDDosStatus(
ShowDDosStatusRequest &request
);
// 查询Anti-DDoS任务
//
// 用户查询指定的Anti-DDoS防护配置任务,得到任务当前执行的状态。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<ShowNewTaskStatusResponse> showNewTaskStatus(
ShowNewTaskStatusRequest &request
);
// 更新Anti-DDoS服务
//
// 更新指定EIP的Anti-DDoS防护策略配置。调用成功,只是说明服务节点收到了关闭更新配置请求,操作是否成功需要通过任务查询接口查询该任务的执行状态,具体请参考查询Anti-DDoS任务。
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<UpdateDDosResponse> updateDDos(
UpdateDDosRequest &request
);


private:
#if defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER)
std::string parameterToString(utility::string_t value);
#endif
std::string parameterToString(std::string value);
std::string parameterToString(int32_t value);
std::string parameterToString(int64_t value);
std::string parameterToString(float value);
std::string parameterToString(double value);
std::string parameterToString(const Object& obj);
std::string parameterToString(const utility::datetime &value);

template<class T>
std::string parameterToString(const std::vector<T> &value)
{
std::stringstream ss;
for( size_t i = 0; i < value.size(); i++)
{
if (i > 0) {
ss << ", ";
}
ss << parameterToString(value[i]);
}

return ss.str();
}

template<class T>
std::string parameterToString(const std::shared_ptr<T> &value)
{
return parameterToString(*value.get());
}

#ifdef RTTR_FLAG
RTTR_ENABLE()
#endif
};

}
}
}
}

template class HUAWEICLOUD_ANTIDDOS_V1_EXPORT ::HuaweiCloud::Sdk::Core::ClientBuilder<::HuaweiCloud::Sdk::Antiddos::V1::AntiDDoSClient>;

#endif // HUAWEICLOUD_SDK_ANTIDDOS_V1_AntiDDoSClient_H_

16 changes: 16 additions & 0 deletions antiddos/include/huaweicloud/antiddos/v1/AntiDDoSExport.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ifndef HUAWEICLOUD_SDK_ANTIDDOS_V1_AntiDDoSExport_H_
#define HUAWEICLOUD_SDK_ANTIDDOS_V1_AntiDDoSExport_H_

#include <huaweicloud/core/EXPORT.h>

#if defined(HUAWEICLOUD_SHARED)
# if defined(HUAWEICLOUD_ANTIDDOS_V1_SHARED)
# define HUAWEICLOUD_ANTIDDOS_V1_EXPORT HUAWEICLOUD_EXPORT
# else
# define HUAWEICLOUD_ANTIDDOS_V1_EXPORT HUAWEICLOUD_IMPORT
# endif
#else
# define HUAWEICLOUD_ANTIDDOS_V1_EXPORT
#endif

#endif // !HUAWEICLOUD_SDK_ANTIDDOS_V1_AntiDDoSExport_H_
37 changes: 37 additions & 0 deletions antiddos/include/huaweicloud/antiddos/v1/AntiDDoSMeta.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#ifndef HUAWEICLOUD_SDK_ANTIDDOS_V1_AntiDDoSMeta_H_
#define HUAWEICLOUD_SDK_ANTIDDOS_V1_AntiDDoSMeta_H_

#include <huaweicloud/core/http/HttpRequestDef.h>
#include <huaweicloud/antiddos/v1/AntiDDoSExport.h>

namespace HuaweiCloud {
namespace Sdk {
namespace Antiddos {
namespace V1 {

using namespace HuaweiCloud::Sdk::Core::Http;

class HUAWEICLOUD_ANTIDDOS_V1_EXPORT AntiDDoSMeta {
public:
static HttpRequestDef genRequestDefForCreateDefaultConfig();
static HttpRequestDef genRequestDefForDeleteDefaultConfig();
static HttpRequestDef genRequestDefForShowAlertConfig();
static HttpRequestDef genRequestDefForShowDefaultConfig();
static HttpRequestDef genRequestDefForUpdateAlertConfig();
static HttpRequestDef genRequestDefForListDDosStatus();
static HttpRequestDef genRequestDefForListDailyLog();
static HttpRequestDef genRequestDefForListDailyReport();
static HttpRequestDef genRequestDefForListNewConfigs();
static HttpRequestDef genRequestDefForListWeeklyReports();
static HttpRequestDef genRequestDefForShowDDos();
static HttpRequestDef genRequestDefForShowDDosStatus();
static HttpRequestDef genRequestDefForShowNewTaskStatus();
static HttpRequestDef genRequestDefForUpdateDDos();
};

}
}
}
}

#endif // HUAWEICLOUD_SDK_ANTIDDOS_V1_AntiDDoSMeta_H_
Loading

0 comments on commit ac299c1

Please sign in to comment.