Skip to content

Commit e5f1044

Browse files
release 3.1.109 source code
1 parent f7f6d46 commit e5f1044

Some content is hidden

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

41 files changed

+2038
-66
lines changed

CHANGELOG.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,75 @@
1+
# 3.1.109 2024-11-07
2+
3+
### HuaweiCloud SDK AAD
4+
5+
- _API Version_
6+
- V2
7+
- _Features_
8+
- None
9+
- _Bug Fix_
10+
- None
11+
- _Change_
12+
- **UpgradeInstanceSpec**
13+
- changes of request param
14+
- `+ upgrade_data.elastic_service_bandwidth_type`
15+
- `+ upgrade_data.elastic_service_bandwidth`
16+
17+
### HuaweiCloud SDK GaussDBforNoSQL
18+
19+
- _API Version_
20+
- V3
21+
- _Features_
22+
- Support the API `BatchUpgradeDatabaseVersion`
23+
- _Bug Fix_
24+
- None
25+
- _Change_
26+
- None
27+
28+
### HuaweiCloud SDK KVS
29+
30+
- _API Version_
31+
- V1
32+
- _Features_
33+
- Support the API `CheckHealth`
34+
- _Bug Fix_
35+
- None
36+
- _Change_
37+
- **CreateTable**
38+
- changes of request param
39+
- `+ ttl_options`
40+
- **DescribeTable**
41+
- changes of response param
42+
- `+ ttl_options`
43+
44+
### HuaweiCloud SDK MPC
45+
46+
- _API Version_
47+
- V1
48+
- _Features_
49+
- None
50+
- _Bug Fix_
51+
- None
52+
- _Change_
53+
- **CreateExtractTask**
54+
- changes of request param
55+
- `+ encryption`
56+
- **CreateTranscodingTask**
57+
- changes of request param
58+
- `+ av_parameters.video.crf`
59+
- `+ av_parameters.video.max_bitrate`
60+
- **ListTranscodingTask**
61+
- changes of response param
62+
- `+ task_array.av_parameters.video.crf`
63+
- `+ task_array.av_parameters.video.max_bitrate`
64+
- **CreateEditingJob**
65+
- changes of request param
66+
- `+ concats.av_parameters.video.crf`
67+
- `+ concats.av_parameters.video.max_bitrate`
68+
- **ListEditingJob**
69+
- changes of response param
70+
- `+ jobs.edit_task_req.concats.av_parameters.video.crf`
71+
- `+ jobs.edit_task_req.concats.av_parameters.video.max_bitrate`
72+
173
# 3.1.108 2024-10-31
274

375
### HuaweiCloud SDK CFW

CHANGELOG_CN.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,75 @@
1+
# 3.1.109 2024-11-07
2+
3+
### HuaweiCloud SDK AAD
4+
5+
- _接口版本_
6+
- V2
7+
- _新增特性_
8+
-
9+
- _解决问题_
10+
-
11+
- _特性变更_
12+
- **UpgradeInstanceSpec**
13+
- 请求参数变更
14+
- `+ upgrade_data.elastic_service_bandwidth_type`
15+
- `+ upgrade_data.elastic_service_bandwidth`
16+
17+
### HuaweiCloud SDK GaussDBforNoSQL
18+
19+
- _接口版本_
20+
- V3
21+
- _新增特性_
22+
- 支持接口`BatchUpgradeDatabaseVersion`
23+
- _解决问题_
24+
-
25+
- _特性变更_
26+
-
27+
28+
### HuaweiCloud SDK KVS
29+
30+
- _接口版本_
31+
- V1
32+
- _新增特性_
33+
- 支持接口`CheckHealth`
34+
- _解决问题_
35+
-
36+
- _特性变更_
37+
- **CreateTable**
38+
- 请求参数变更
39+
- `+ ttl_options`
40+
- **DescribeTable**
41+
- 响应参数变更
42+
- `+ ttl_options`
43+
44+
### HuaweiCloud SDK MPC
45+
46+
- _接口版本_
47+
- V1
48+
- _新增特性_
49+
-
50+
- _解决问题_
51+
-
52+
- _特性变更_
53+
- **CreateExtractTask**
54+
- 请求参数变更
55+
- `+ encryption`
56+
- **CreateTranscodingTask**
57+
- 请求参数变更
58+
- `+ av_parameters.video.crf`
59+
- `+ av_parameters.video.max_bitrate`
60+
- **ListTranscodingTask**
61+
- 响应参数变更
62+
- `+ task_array.av_parameters.video.crf`
63+
- `+ task_array.av_parameters.video.max_bitrate`
64+
- **CreateEditingJob**
65+
- 请求参数变更
66+
- `+ concats.av_parameters.video.crf`
67+
- `+ concats.av_parameters.video.max_bitrate`
68+
- **ListEditingJob**
69+
- 响应参数变更
70+
- `+ jobs.edit_task_req.concats.av_parameters.video.crf`
71+
- `+ jobs.edit_task_req.concats.av_parameters.video.max_bitrate`
72+
173
# 3.1.108 2024-10-31
274

375
### HuaweiCloud SDK CFW

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.108
1+
3.1.109

aad/include/huaweicloud/aad/v2/AadClient.h

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
#include <huaweicloud/aad/v2/model/CreateAadDomainRequestBody.h>
1010
#include <huaweicloud/aad/v2/model/CreateDomainRequest.h>
1111
#include <huaweicloud/aad/v2/model/CreateDomainResponse.h>
12+
#include <huaweicloud/aad/v2/model/DeleteDomainRequest.h>
13+
#include <huaweicloud/aad/v2/model/DeleteDomainResponse.h>
14+
#include <huaweicloud/aad/v2/model/DeleteDomainV2RequestBody.h>
15+
#include <huaweicloud/aad/v2/model/EmptyJsonResponse.h>
1216
#include <huaweicloud/aad/v2/model/ListDDoSAttackEventRequest.h>
1317
#include <huaweicloud/aad/v2/model/ListDDoSAttackEventRequestBody.h>
1418
#include <huaweicloud/aad/v2/model/ListDDoSAttackEventResponse.h>
@@ -47,11 +51,6 @@
4751
#include <huaweicloud/aad/v2/model/UpgradeInstanceSpecV2RequestBody.h>
4852
#include <string>
4953

50-
#include <huaweicloud/aad/v2/model/DeleteDomainRequest.h>
51-
#include <huaweicloud/aad/v2/model/DeleteDomainResponse.h>
52-
#include <huaweicloud/aad/v2/model/DeleteDomainV2RequestBody.h>
53-
#include <huaweicloud/aad/v2/model/EmptyJsonResponse.h>
54-
5554
#include <cpprest/details/basic_types.h>
5655
#include <huaweicloud/core/utils/ModelBase.h>
5756
#include <huaweicloud/core/utils/Object.h>
@@ -84,6 +83,14 @@ class HUAWEICLOUD_AAD_V2_EXPORT AadClient : public Client
8483
std::shared_ptr<CreateDomainResponse> createDomain(
8584
CreateDomainRequest &request
8685
);
86+
// 删除防护域名
87+
//
88+
// 删除防护域名
89+
//
90+
// Please refer to HUAWEI cloud API Explorer for details.
91+
std::shared_ptr<DeleteDomainResponse> deleteDomain(
92+
DeleteDomainRequest &request
93+
);
8794
// 查询DDoS攻击事件列表
8895
//
8996
// 查询DDoS攻击事件列表
@@ -221,15 +228,6 @@ class HUAWEICLOUD_AAD_V2_EXPORT AadClient : public Client
221228
UpgradeInstanceSpecRequest &request
222229
);
223230

224-
// 删除防护域名
225-
//
226-
// 删除防护域名
227-
//
228-
// Please refer to HUAWEI cloud API Explorer for details.
229-
std::shared_ptr<DeleteDomainResponse> deleteDomain(
230-
DeleteDomainRequest &request
231-
);
232-
233231

234232
private:
235233
#if defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER)

aad/include/huaweicloud/aad/v2/AadMeta.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ using namespace HuaweiCloud::Sdk::Core::Http;
1414
class HUAWEICLOUD_AAD_V2_EXPORT AadMeta {
1515
public:
1616
static HttpRequestDef genRequestDefForCreateDomain();
17+
static HttpRequestDef genRequestDefForDeleteDomain();
1718
static HttpRequestDef genRequestDefForListDDoSAttackEvent();
1819
static HttpRequestDef genRequestDefForListDDoSConnectionNumber();
1920
static HttpRequestDef genRequestDefForListDDoSFlow();
@@ -31,7 +32,6 @@ class HUAWEICLOUD_AAD_V2_EXPORT AadMeta {
3132
static HttpRequestDef genRequestDefForShowWafPolicy();
3233
static HttpRequestDef genRequestDefForShowWafQps();
3334
static HttpRequestDef genRequestDefForUpgradeInstanceSpec();
34-
static HttpRequestDef genRequestDefForDeleteDomain();
3535
};
3636

3737
}

aad/include/huaweicloud/aad/v2/model/UpgradeInstanceData.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,24 @@ class HUAWEICLOUD_AAD_V2_EXPORT UpgradeInstanceData
8383
void unsetbindDomainNum();
8484
void setBindDomainNum(int32_t value);
8585

86+
/// <summary>
87+
/// 弹性业务带宽,0-关闭,3-月95
88+
/// </summary>
89+
90+
int32_t getElasticServiceBandwidthType() const;
91+
bool elasticServiceBandwidthTypeIsSet() const;
92+
void unsetelasticServiceBandwidthType();
93+
void setElasticServiceBandwidthType(int32_t value);
94+
95+
/// <summary>
96+
/// 弹性业务带宽增加值
97+
/// </summary>
98+
99+
int32_t getElasticServiceBandwidth() const;
100+
bool elasticServiceBandwidthIsSet() const;
101+
void unsetelasticServiceBandwidth();
102+
void setElasticServiceBandwidth(int32_t value);
103+
86104

87105
protected:
88106
std::string basicBandwidth_;
@@ -95,6 +113,10 @@ class HUAWEICLOUD_AAD_V2_EXPORT UpgradeInstanceData
95113
bool portNumIsSet_;
96114
int32_t bindDomainNum_;
97115
bool bindDomainNumIsSet_;
116+
int32_t elasticServiceBandwidthType_;
117+
bool elasticServiceBandwidthTypeIsSet_;
118+
int32_t elasticServiceBandwidth_;
119+
bool elasticServiceBandwidthIsSet_;
98120

99121
};
100122

aad/src/v2/AadClient.cpp

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,47 @@ std::shared_ptr<CreateDomainResponse> AadClient::createDomain(CreateDomainReques
7373

7474
return localVarResult;
7575
}
76+
std::shared_ptr<DeleteDomainResponse> AadClient::deleteDomain(DeleteDomainRequest &request)
77+
{
78+
std::string localVarPath = "/v2/aad/domains";
79+
80+
std::map<std::string, std::string> localVarQueryParams;
81+
std::map<std::string, std::string> localVarHeaderParams;
82+
std::map<std::string, std::string> localVarFormParams;
83+
std::map<std::string, std::string> localVarPathParams;
84+
85+
86+
bool isJson = false;
87+
bool isMultiPart = false;
88+
bool isBson = false;
89+
std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson);
90+
localVarHeaderParams["Content-Type"] = contentType;
91+
92+
93+
std::string localVarHttpBody;
94+
if (isJson) {
95+
// handle json input
96+
web::json::value localVarJson;
97+
localVarJson = ModelBase::toJson(request.getBody());
98+
localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize());
99+
}
100+
101+
std::unique_ptr<HttpResponse> res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams,
102+
localVarHeaderParams, localVarHttpBody, AadMeta::genRequestDefForDeleteDomain());
103+
104+
std::shared_ptr<DeleteDomainResponse> localVarResult = std::make_shared<DeleteDomainResponse>();
105+
localVarResult->setStatusCode(res->getStatusCode());
106+
localVarResult->setHeaderParams(res->getHeaderParams());
107+
localVarResult->setHttpBody(res->getHttpBody());
108+
if (!res->getHttpBody().empty()) {
109+
spdlog::info("parse json format response");
110+
utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody());
111+
web::json::value localVarJson = web::json::value::parse(localVarResponse);
112+
localVarResult->fromJson(localVarJson);
113+
}
114+
115+
return localVarResult;
116+
}
76117
std::shared_ptr<ListDDoSAttackEventResponse> AadClient::listDDoSAttackEvent(ListDDoSAttackEventRequest &request)
77118
{
78119
std::string localVarPath = "/v2/aad/instances/{instance_id}/ddos-info/attack/events";
@@ -727,47 +768,6 @@ std::shared_ptr<UpgradeInstanceSpecResponse> AadClient::upgradeInstanceSpec(Upgr
727768

728769
return localVarResult;
729770
}
730-
std::shared_ptr<DeleteDomainResponse> AadClient::deleteDomain(DeleteDomainRequest &request)
731-
{
732-
std::string localVarPath = "/v2/aad/domains";
733-
734-
std::map<std::string, std::string> localVarQueryParams;
735-
std::map<std::string, std::string> localVarHeaderParams;
736-
std::map<std::string, std::string> localVarFormParams;
737-
std::map<std::string, std::string> localVarPathParams;
738-
739-
740-
bool isJson = false;
741-
bool isMultiPart = false;
742-
bool isBson = false;
743-
std::string contentType = getContentType("application/json", isJson, isMultiPart, isBson);
744-
localVarHeaderParams["Content-Type"] = contentType;
745-
746-
747-
std::string localVarHttpBody;
748-
if (isJson) {
749-
// handle json input
750-
web::json::value localVarJson;
751-
localVarJson = ModelBase::toJson(request.getBody());
752-
localVarHttpBody = utility::conversions::to_utf8string(localVarJson.serialize());
753-
}
754-
755-
std::unique_ptr<HttpResponse> res = callApi("DELETE", localVarPath, localVarPathParams, localVarQueryParams,
756-
localVarHeaderParams, localVarHttpBody, AadMeta::genRequestDefForDeleteDomain());
757-
758-
std::shared_ptr<DeleteDomainResponse> localVarResult = std::make_shared<DeleteDomainResponse>();
759-
localVarResult->setStatusCode(res->getStatusCode());
760-
localVarResult->setHeaderParams(res->getHeaderParams());
761-
localVarResult->setHttpBody(res->getHttpBody());
762-
if (!res->getHttpBody().empty()) {
763-
spdlog::info("parse json format response");
764-
utility::string_t localVarResponse = utility::conversions::to_string_t(res->getHttpBody());
765-
web::json::value localVarJson = web::json::value::parse(localVarResponse);
766-
localVarResult->fromJson(localVarJson);
767-
}
768-
769-
return localVarResult;
770-
}
771771
#if defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER)
772772
std::string AadClient::parameterToString(utility::string_t value)
773773
{

aad/src/v2/AadMeta.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ HttpRequestDef AadMeta::genRequestDefForCreateDomain() {
1717
return reqDefBuilder;
1818
}
1919

20+
HttpRequestDef AadMeta::genRequestDefForDeleteDomain() {
21+
HttpRequestDef reqDefBuilder;
22+
FieldDef bodyParam;
23+
reqDefBuilder.withRequestField(bodyParam.
24+
withName("Body").
25+
withLocationType(Body_));
26+
return reqDefBuilder;
27+
}
28+
2029
HttpRequestDef AadMeta::genRequestDefForListDDoSAttackEvent() {
2130
HttpRequestDef reqDefBuilder;
2231
FieldDef bodyParam;
@@ -242,15 +251,6 @@ HttpRequestDef AadMeta::genRequestDefForUpgradeInstanceSpec() {
242251
return reqDefBuilder;
243252
}
244253

245-
HttpRequestDef AadMeta::genRequestDefForDeleteDomain() {
246-
HttpRequestDef reqDefBuilder;
247-
FieldDef bodyParam;
248-
reqDefBuilder.withRequestField(bodyParam.
249-
withName("Body").
250-
withLocationType(Body_));
251-
return reqDefBuilder;
252-
}
253-
254254

255255
}
256256
}

0 commit comments

Comments
 (0)