Skip to content

Commit

Permalink
release 3.1.109 source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaweicloud-SDK committed Nov 7, 2024
1 parent f7f6d46 commit e5f1044
Show file tree
Hide file tree
Showing 41 changed files with 2,038 additions and 66 deletions.
72 changes: 72 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,75 @@
# 3.1.109 2024-11-07

### HuaweiCloud SDK AAD

- _API Version_
- V2
- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **UpgradeInstanceSpec**
- changes of request param
- `+ upgrade_data.elastic_service_bandwidth_type`
- `+ upgrade_data.elastic_service_bandwidth`

### HuaweiCloud SDK GaussDBforNoSQL

- _API Version_
- V3
- _Features_
- Support the API `BatchUpgradeDatabaseVersion`
- _Bug Fix_
- None
- _Change_
- None

### HuaweiCloud SDK KVS

- _API Version_
- V1
- _Features_
- Support the API `CheckHealth`
- _Bug Fix_
- None
- _Change_
- **CreateTable**
- changes of request param
- `+ ttl_options`
- **DescribeTable**
- changes of response param
- `+ ttl_options`

### HuaweiCloud SDK MPC

- _API Version_
- V1
- _Features_
- None
- _Bug Fix_
- None
- _Change_
- **CreateExtractTask**
- changes of request param
- `+ encryption`
- **CreateTranscodingTask**
- changes of request param
- `+ av_parameters.video.crf`
- `+ av_parameters.video.max_bitrate`
- **ListTranscodingTask**
- changes of response param
- `+ task_array.av_parameters.video.crf`
- `+ task_array.av_parameters.video.max_bitrate`
- **CreateEditingJob**
- changes of request param
- `+ concats.av_parameters.video.crf`
- `+ concats.av_parameters.video.max_bitrate`
- **ListEditingJob**
- changes of response param
- `+ jobs.edit_task_req.concats.av_parameters.video.crf`
- `+ jobs.edit_task_req.concats.av_parameters.video.max_bitrate`

# 3.1.108 2024-10-31

### HuaweiCloud SDK CFW
Expand Down
72 changes: 72 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,75 @@
# 3.1.109 2024-11-07

### HuaweiCloud SDK AAD

- _接口版本_
- V2
- _新增特性_
- 无
- _解决问题_
- 无
- _特性变更_
- **UpgradeInstanceSpec**
- 请求参数变更
- `+ upgrade_data.elastic_service_bandwidth_type`
- `+ upgrade_data.elastic_service_bandwidth`

### HuaweiCloud SDK GaussDBforNoSQL

- _接口版本_
- V3
- _新增特性_
- 支持接口`BatchUpgradeDatabaseVersion`
- _解决问题_
- 无
- _特性变更_
- 无

### HuaweiCloud SDK KVS

- _接口版本_
- V1
- _新增特性_
- 支持接口`CheckHealth`
- _解决问题_
- 无
- _特性变更_
- **CreateTable**
- 请求参数变更
- `+ ttl_options`
- **DescribeTable**
- 响应参数变更
- `+ ttl_options`

### HuaweiCloud SDK MPC

- _接口版本_
- V1
- _新增特性_
- 无
- _解决问题_
- 无
- _特性变更_
- **CreateExtractTask**
- 请求参数变更
- `+ encryption`
- **CreateTranscodingTask**
- 请求参数变更
- `+ av_parameters.video.crf`
- `+ av_parameters.video.max_bitrate`
- **ListTranscodingTask**
- 响应参数变更
- `+ task_array.av_parameters.video.crf`
- `+ task_array.av_parameters.video.max_bitrate`
- **CreateEditingJob**
- 请求参数变更
- `+ concats.av_parameters.video.crf`
- `+ concats.av_parameters.video.max_bitrate`
- **ListEditingJob**
- 响应参数变更
- `+ jobs.edit_task_req.concats.av_parameters.video.crf`
- `+ jobs.edit_task_req.concats.av_parameters.video.max_bitrate`

# 3.1.108 2024-10-31

### HuaweiCloud SDK CFW
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.108
3.1.109
26 changes: 12 additions & 14 deletions aad/include/huaweicloud/aad/v2/AadClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
#include <huaweicloud/aad/v2/model/CreateAadDomainRequestBody.h>
#include <huaweicloud/aad/v2/model/CreateDomainRequest.h>
#include <huaweicloud/aad/v2/model/CreateDomainResponse.h>
#include <huaweicloud/aad/v2/model/DeleteDomainRequest.h>
#include <huaweicloud/aad/v2/model/DeleteDomainResponse.h>
#include <huaweicloud/aad/v2/model/DeleteDomainV2RequestBody.h>
#include <huaweicloud/aad/v2/model/EmptyJsonResponse.h>
#include <huaweicloud/aad/v2/model/ListDDoSAttackEventRequest.h>
#include <huaweicloud/aad/v2/model/ListDDoSAttackEventRequestBody.h>
#include <huaweicloud/aad/v2/model/ListDDoSAttackEventResponse.h>
Expand Down Expand Up @@ -47,11 +51,6 @@
#include <huaweicloud/aad/v2/model/UpgradeInstanceSpecV2RequestBody.h>
#include <string>

#include <huaweicloud/aad/v2/model/DeleteDomainRequest.h>
#include <huaweicloud/aad/v2/model/DeleteDomainResponse.h>
#include <huaweicloud/aad/v2/model/DeleteDomainV2RequestBody.h>
#include <huaweicloud/aad/v2/model/EmptyJsonResponse.h>

#include <cpprest/details/basic_types.h>
#include <huaweicloud/core/utils/ModelBase.h>
#include <huaweicloud/core/utils/Object.h>
Expand Down Expand Up @@ -84,6 +83,14 @@ class HUAWEICLOUD_AAD_V2_EXPORT AadClient : public Client
std::shared_ptr<CreateDomainResponse> createDomain(
CreateDomainRequest &request
);
// 删除防护域名
//
// 删除防护域名
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<DeleteDomainResponse> deleteDomain(
DeleteDomainRequest &request
);
// 查询DDoS攻击事件列表
//
// 查询DDoS攻击事件列表
Expand Down Expand Up @@ -221,15 +228,6 @@ class HUAWEICLOUD_AAD_V2_EXPORT AadClient : public Client
UpgradeInstanceSpecRequest &request
);

// 删除防护域名
//
// 删除防护域名
//
// Please refer to HUAWEI cloud API Explorer for details.
std::shared_ptr<DeleteDomainResponse> deleteDomain(
DeleteDomainRequest &request
);


private:
#if defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER)
Expand Down
2 changes: 1 addition & 1 deletion aad/include/huaweicloud/aad/v2/AadMeta.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ using namespace HuaweiCloud::Sdk::Core::Http;
class HUAWEICLOUD_AAD_V2_EXPORT AadMeta {
public:
static HttpRequestDef genRequestDefForCreateDomain();
static HttpRequestDef genRequestDefForDeleteDomain();
static HttpRequestDef genRequestDefForListDDoSAttackEvent();
static HttpRequestDef genRequestDefForListDDoSConnectionNumber();
static HttpRequestDef genRequestDefForListDDoSFlow();
Expand All @@ -31,7 +32,6 @@ class HUAWEICLOUD_AAD_V2_EXPORT AadMeta {
static HttpRequestDef genRequestDefForShowWafPolicy();
static HttpRequestDef genRequestDefForShowWafQps();
static HttpRequestDef genRequestDefForUpgradeInstanceSpec();
static HttpRequestDef genRequestDefForDeleteDomain();
};

}
Expand Down
22 changes: 22 additions & 0 deletions aad/include/huaweicloud/aad/v2/model/UpgradeInstanceData.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,24 @@ class HUAWEICLOUD_AAD_V2_EXPORT UpgradeInstanceData
void unsetbindDomainNum();
void setBindDomainNum(int32_t value);

/// <summary>
/// 弹性业务带宽,0-关闭,3-月95
/// </summary>

int32_t getElasticServiceBandwidthType() const;
bool elasticServiceBandwidthTypeIsSet() const;
void unsetelasticServiceBandwidthType();
void setElasticServiceBandwidthType(int32_t value);

/// <summary>
/// 弹性业务带宽增加值
/// </summary>

int32_t getElasticServiceBandwidth() const;
bool elasticServiceBandwidthIsSet() const;
void unsetelasticServiceBandwidth();
void setElasticServiceBandwidth(int32_t value);


protected:
std::string basicBandwidth_;
Expand All @@ -95,6 +113,10 @@ class HUAWEICLOUD_AAD_V2_EXPORT UpgradeInstanceData
bool portNumIsSet_;
int32_t bindDomainNum_;
bool bindDomainNumIsSet_;
int32_t elasticServiceBandwidthType_;
bool elasticServiceBandwidthTypeIsSet_;
int32_t elasticServiceBandwidth_;
bool elasticServiceBandwidthIsSet_;

};

Expand Down
82 changes: 41 additions & 41 deletions aad/src/v2/AadClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,47 @@ std::shared_ptr<CreateDomainResponse> AadClient::createDomain(CreateDomainReques

return localVarResult;
}
std::shared_ptr<DeleteDomainResponse> AadClient::deleteDomain(DeleteDomainRequest &request)
{
std::string localVarPath = "/v2/aad/domains";

std::map<std::string, std::string> localVarQueryParams;
std::map<std::string, std::string> localVarHeaderParams;
std::map<std::string, std::string> localVarFormParams;
std::map<std::string, std::string> localVarPathParams;


bool isJson = false;
bool isMultiPart = false;
bool isBson = false;
std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson);
localVarHeaderParams["Content-Type"] = contentType;


std::string localVarHttpBody;
if (isJson) {
// handle json input
web::json::value localVarJson;
localVarJson = ModelBase::toJson(request.getBody());
localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize());
}

std::unique_ptr<HttpResponse> res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams,
localVarHeaderParams, localVarHttpBody, AadMeta::genRequestDefForDeleteDomain());

std::shared_ptr<DeleteDomainResponse> localVarResult = std::make_shared<DeleteDomainResponse>();
localVarResult->setStatusCode(res->getStatusCode());
localVarResult->setHeaderParams(res->getHeaderParams());
localVarResult->setHttpBody(res->getHttpBody());
if (!res->getHttpBody().empty()) {
spdlog::info("parse json format response");
utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody());
web::json::value localVarJson = web::json::value::parse(localVarResponse);
localVarResult->fromJson(localVarJson);
}

return localVarResult;
}
std::shared_ptr<ListDDoSAttackEventResponse> AadClient::listDDoSAttackEvent(ListDDoSAttackEventRequest &request)
{
std::string localVarPath = "/v2/aad/instances/{instance_id}/ddos-info/attack/events";
Expand Down Expand Up @@ -727,47 +768,6 @@ std::shared_ptr<UpgradeInstanceSpecResponse> AadClient::upgradeInstanceSpec(Upgr

return localVarResult;
}
std::shared_ptr<DeleteDomainResponse> AadClient::deleteDomain(DeleteDomainRequest &request)
{
std::string localVarPath = "/v2/aad/domains";

std::map<std::string, std::string> localVarQueryParams;
std::map<std::string, std::string> localVarHeaderParams;
std::map<std::string, std::string> localVarFormParams;
std::map<std::string, std::string> localVarPathParams;


bool isJson = false;
bool isMultiPart = false;
bool isBson = false;
std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson);
localVarHeaderParams["Content-Type"] = contentType;


std::string localVarHttpBody;
if (isJson) {
// handle json input
web::json::value localVarJson;
localVarJson = ModelBase::toJson(request.getBody());
localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize());
}

std::unique_ptr<HttpResponse> res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams,
localVarHeaderParams, localVarHttpBody, AadMeta::genRequestDefForDeleteDomain());

std::shared_ptr<DeleteDomainResponse> localVarResult = std::make_shared<DeleteDomainResponse>();
localVarResult->setStatusCode(res->getStatusCode());
localVarResult->setHeaderParams(res->getHeaderParams());
localVarResult->setHttpBody(res->getHttpBody());
if (!res->getHttpBody().empty()) {
spdlog::info("parse json format response");
utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody());
web::json::value localVarJson = web::json::value::parse(localVarResponse);
localVarResult->fromJson(localVarJson);
}

return localVarResult;
}
#if defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER)
std::string AadClient::parameterToString(utility::string_t value)
{
Expand Down
18 changes: 9 additions & 9 deletions aad/src/v2/AadMeta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ HttpRequestDef AadMeta::genRequestDefForCreateDomain() {
return reqDefBuilder;
}

HttpRequestDef AadMeta::genRequestDefForDeleteDomain() {
HttpRequestDef reqDefBuilder;
FieldDef bodyParam;
reqDefBuilder.withRequestField(bodyParam.
withName("Body").
withLocationType(Body_));
return reqDefBuilder;
}

HttpRequestDef AadMeta::genRequestDefForListDDoSAttackEvent() {
HttpRequestDef reqDefBuilder;
FieldDef bodyParam;
Expand Down Expand Up @@ -242,15 +251,6 @@ HttpRequestDef AadMeta::genRequestDefForUpgradeInstanceSpec() {
return reqDefBuilder;
}

HttpRequestDef AadMeta::genRequestDefForDeleteDomain() {
HttpRequestDef reqDefBuilder;
FieldDef bodyParam;
reqDefBuilder.withRequestField(bodyParam.
withName("Body").
withLocationType(Body_));
return reqDefBuilder;
}


}
}
Expand Down
Loading

0 comments on commit e5f1044

Please sign in to comment.