Compare commits

...

11 Commits

Author SHA1 Message Date
sdk-team
aca0a3efa8 Support ListExecutions with filter functionality. 2020-11-20 11:02:53 +00:00
sdk-team
98c36e9bab Public beta version. 2020-11-20 08:36:57 +00:00
sdk-team
b84d1c59fa Update DetectFace. 2020-11-20 06:18:11 +00:00
sdk-team
c2dc12f92b Add a new interface for asynchronous image translation. 2020-11-20 06:16:26 +00:00
wb-hx510875
efb0804bf2 fix: RRpcResult messageId type
fix #119
2020-11-20 10:49:28 +08:00
sdk-team
0e778cd17c Generated 2019-09-10 for waf-openapi. 2020-11-20 02:15:46 +00:00
sdk-team
78d79a3d5b Update DescribeDedicatedClusterInstanceList return data. 2020-11-19 10:07:52 +00:00
sdk-team
5a1415f6e3 Update data API. 2020-11-19 07:38:26 +00:00
sdk-team
7f24d410fd Update data API. 2020-11-19 07:31:39 +00:00
sdk-team
de9c7e0bd2 Update GenerateHumanAnimeStyle. 2020-11-19 02:10:10 +00:00
sdk-team
9d2395215f Update SegmentBody. 2020-11-19 02:08:36 +00:00
64 changed files with 1010 additions and 332 deletions

View File

@@ -1,3 +1,35 @@
2020-11-20 Version: patch
- Support ListExecutions with filter functionality.
2020-11-20 Version: patch
- Public beta version.
- Add Api Overseas.
2020-11-20 Version: patch
- Update DetectFace.
- Update RecognizeFace.
2020-11-20 Version: patch
- Add a new interface for asynchronous image translation.
2020-11-20 Version: patch
- Generated 2019-09-10 for `waf-openapi`.
2020-11-19 Version: patch
- Update DescribeDedicatedClusterInstanceList return data.
2020-11-19 Version: patch
- Update data API.
2020-11-19 Version: patch
- Update data API.
2020-11-19 Version: patch
- Update GenerateHumanAnimeStyle.
2020-11-19 Version: patch
- Update SegmentBody.
2020-11-19 Version: patch
- Supported backend interface for ICBU.

View File

@@ -41,6 +41,8 @@ set(alimt_public_header_model
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
include/alibabacloud/alimt/model/GetTitleIntelligenceResult.h
include/alibabacloud/alimt/model/OpenAlimtServiceRequest.h
include/alibabacloud/alimt/model/OpenAlimtServiceResult.h
include/alibabacloud/alimt/model/TranslateRequest.h
include/alibabacloud/alimt/model/TranslateResult.h
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
@@ -72,6 +74,8 @@ set(alimt_src
src/model/GetTitleGenerateResult.cc
src/model/GetTitleIntelligenceRequest.cc
src/model/GetTitleIntelligenceResult.cc
src/model/OpenAlimtServiceRequest.cc
src/model/OpenAlimtServiceResult.cc
src/model/TranslateRequest.cc
src/model/TranslateResult.cc
src/model/TranslateCertificateRequest.cc

View File

@@ -42,6 +42,8 @@
#include "model/GetTitleGenerateResult.h"
#include "model/GetTitleIntelligenceRequest.h"
#include "model/GetTitleIntelligenceResult.h"
#include "model/OpenAlimtServiceRequest.h"
#include "model/OpenAlimtServiceResult.h"
#include "model/TranslateRequest.h"
#include "model/TranslateResult.h"
#include "model/TranslateCertificateRequest.h"
@@ -89,6 +91,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetTitleIntelligenceResult> GetTitleIntelligenceOutcome;
typedef std::future<GetTitleIntelligenceOutcome> GetTitleIntelligenceOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetTitleIntelligenceRequest&, const GetTitleIntelligenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleIntelligenceAsyncHandler;
typedef Outcome<Error, Model::OpenAlimtServiceResult> OpenAlimtServiceOutcome;
typedef std::future<OpenAlimtServiceOutcome> OpenAlimtServiceOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::OpenAlimtServiceRequest&, const OpenAlimtServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenAlimtServiceAsyncHandler;
typedef Outcome<Error, Model::TranslateResult> TranslateOutcome;
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::TranslateRequest&, const TranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateAsyncHandler;
@@ -136,6 +141,9 @@ namespace AlibabaCloud
GetTitleIntelligenceOutcome getTitleIntelligence(const Model::GetTitleIntelligenceRequest &request)const;
void getTitleIntelligenceAsync(const Model::GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTitleIntelligenceOutcomeCallable getTitleIntelligenceCallable(const Model::GetTitleIntelligenceRequest& request) const;
OpenAlimtServiceOutcome openAlimtService(const Model::OpenAlimtServiceRequest &request)const;
void openAlimtServiceAsync(const Model::OpenAlimtServiceRequest& request, const OpenAlimtServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
OpenAlimtServiceOutcomeCallable openAlimtServiceCallable(const Model::OpenAlimtServiceRequest& request) const;
TranslateOutcome translate(const Model::TranslateRequest &request)const;
void translateAsync(const Model::TranslateRequest& request, const TranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TranslateOutcomeCallable translateCallable(const Model::TranslateRequest& request) const;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceRequest : public RpcServiceRequest
{
public:
OpenAlimtServiceRequest();
~OpenAlimtServiceRequest();
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getType()const;
void setType(const std::string& type);
private:
long ownerId_;
std::string type_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICERESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceResult : public ServiceResult
{
public:
OpenAlimtServiceResult();
explicit OpenAlimtServiceResult(const std::string &payload);
~OpenAlimtServiceResult();
std::string getOrderId()const;
protected:
void parse(const std::string &payload);
private:
std::string orderId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICERESULT_H_

View File

@@ -411,6 +411,42 @@ AlimtClient::GetTitleIntelligenceOutcomeCallable AlimtClient::getTitleIntelligen
return task->get_future();
}
AlimtClient::OpenAlimtServiceOutcome AlimtClient::openAlimtService(const OpenAlimtServiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return OpenAlimtServiceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return OpenAlimtServiceOutcome(OpenAlimtServiceResult(outcome.result()));
else
return OpenAlimtServiceOutcome(outcome.error());
}
void AlimtClient::openAlimtServiceAsync(const OpenAlimtServiceRequest& request, const OpenAlimtServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, openAlimtService(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::OpenAlimtServiceOutcomeCallable AlimtClient::openAlimtServiceCallable(const OpenAlimtServiceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<OpenAlimtServiceOutcome()>>(
[this, request]()
{
return this->openAlimtService(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlimtClient::TranslateOutcome AlimtClient::translate(const TranslateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alimt/model/OpenAlimtServiceRequest.h>
using AlibabaCloud::Alimt::Model::OpenAlimtServiceRequest;
OpenAlimtServiceRequest::OpenAlimtServiceRequest() :
RpcServiceRequest("alimt", "2018-10-12", "OpenAlimtService")
{
setMethod(HttpRequest::Method::Post);
}
OpenAlimtServiceRequest::~OpenAlimtServiceRequest()
{}
long OpenAlimtServiceRequest::getOwnerId()const
{
return ownerId_;
}
void OpenAlimtServiceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string OpenAlimtServiceRequest::getType()const
{
return type_;
}
void OpenAlimtServiceRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alimt/model/OpenAlimtServiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alimt;
using namespace AlibabaCloud::Alimt::Model;
OpenAlimtServiceResult::OpenAlimtServiceResult() :
ServiceResult()
{}
OpenAlimtServiceResult::OpenAlimtServiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
OpenAlimtServiceResult::~OpenAlimtServiceResult()
{}
void OpenAlimtServiceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
}
std::string OpenAlimtServiceResult::getOrderId()const
{
return orderId_;
}

View File

@@ -38,6 +38,7 @@ namespace AlibabaCloud
explicit DescribeRefreshQuotaResult(const std::string &payload);
~DescribeRefreshQuotaResult();
std::string getUrlRemain()const;
std::string getPreloadEdgeRemain()const;
std::string getPreloadRemain()const;
std::string getBlockRemain()const;
std::string getRegexRemain()const;
@@ -47,11 +48,13 @@ namespace AlibabaCloud
std::string getUrlQuota()const;
std::string getDirQuota()const;
std::string getPreloadQuota()const;
std::string getPreloadEdgeQuota()const;
protected:
void parse(const std::string &payload);
private:
std::string urlRemain_;
std::string preloadEdgeRemain_;
std::string preloadRemain_;
std::string blockRemain_;
std::string regexRemain_;
@@ -61,6 +64,7 @@ namespace AlibabaCloud
std::string urlQuota_;
std::string dirQuota_;
std::string preloadQuota_;
std::string preloadEdgeQuota_;
};
}

View File

@@ -49,14 +49,14 @@ void DescribeCdnDomainConfigsResult::parse(const std::string &payload)
domainConfigsObject.configId = valueDomainConfigsDomainConfig["ConfigId"].asString();
if(!valueDomainConfigsDomainConfig["Status"].isNull())
domainConfigsObject.status = valueDomainConfigsDomainConfig["Status"].asString();
auto allFunctionArgsNode = allDomainConfigsNode["FunctionArgs"]["FunctionArg"];
for (auto allDomainConfigsNodeFunctionArgsFunctionArg : allFunctionArgsNode)
auto allFunctionArgsNode = valueDomainConfigsDomainConfig["FunctionArgs"]["FunctionArg"];
for (auto valueDomainConfigsDomainConfigFunctionArgsFunctionArg : allFunctionArgsNode)
{
DomainConfig::FunctionArg functionArgsObject;
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].isNull())
functionArgsObject.argName = allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].asString();
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].isNull())
functionArgsObject.argValue = allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].asString();
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].isNull())
functionArgsObject.argName = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].asString();
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].isNull())
functionArgsObject.argValue = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].asString();
domainConfigsObject.functionArgs.push_back(functionArgsObject);
}
domainConfigs_.push_back(domainConfigsObject);

View File

@@ -47,32 +47,32 @@ void DescribeCdnDomainLogsResult::parse(const std::string &payload)
domainLogDetailsObject.domainName = valueDomainLogDetailsDomainLogDetail["DomainName"].asString();
if(!valueDomainLogDetailsDomainLogDetail["LogCount"].isNull())
domainLogDetailsObject.logCount = std::stol(valueDomainLogDetailsDomainLogDetail["LogCount"].asString());
auto allPageInfosNode = allDomainLogDetailsNode["PageInfos"]["PageInfoDetail"];
for (auto allDomainLogDetailsNodePageInfosPageInfoDetail : allPageInfosNode)
auto allPageInfosNode = valueDomainLogDetailsDomainLogDetail["PageInfos"]["PageInfoDetail"];
for (auto valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail : allPageInfosNode)
{
DomainLogDetail::PageInfoDetail pageInfosObject;
if(!allDomainLogDetailsNodePageInfosPageInfoDetail["PageIndex"].isNull())
pageInfosObject.pageIndex = std::stol(allDomainLogDetailsNodePageInfosPageInfoDetail["PageIndex"].asString());
if(!allDomainLogDetailsNodePageInfosPageInfoDetail["PageSize"].isNull())
pageInfosObject.pageSize = std::stol(allDomainLogDetailsNodePageInfosPageInfoDetail["PageSize"].asString());
if(!allDomainLogDetailsNodePageInfosPageInfoDetail["Total"].isNull())
pageInfosObject.total = std::stol(allDomainLogDetailsNodePageInfosPageInfoDetail["Total"].asString());
if(!valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["PageIndex"].isNull())
pageInfosObject.pageIndex = std::stol(valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["PageIndex"].asString());
if(!valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["PageSize"].isNull())
pageInfosObject.pageSize = std::stol(valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["PageSize"].asString());
if(!valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["Total"].isNull())
pageInfosObject.total = std::stol(valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["Total"].asString());
domainLogDetailsObject.pageInfos.push_back(pageInfosObject);
}
auto allLogInfosNode = allDomainLogDetailsNode["LogInfos"]["LogInfoDetail"];
for (auto allDomainLogDetailsNodeLogInfosLogInfoDetail : allLogInfosNode)
auto allLogInfosNode = valueDomainLogDetailsDomainLogDetail["LogInfos"]["LogInfoDetail"];
for (auto valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail : allLogInfosNode)
{
DomainLogDetail::LogInfoDetail logInfosObject;
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["LogName"].isNull())
logInfosObject.logName = allDomainLogDetailsNodeLogInfosLogInfoDetail["LogName"].asString();
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["LogPath"].isNull())
logInfosObject.logPath = allDomainLogDetailsNodeLogInfosLogInfoDetail["LogPath"].asString();
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["LogSize"].isNull())
logInfosObject.logSize = std::stol(allDomainLogDetailsNodeLogInfosLogInfoDetail["LogSize"].asString());
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["StartTime"].isNull())
logInfosObject.startTime = allDomainLogDetailsNodeLogInfosLogInfoDetail["StartTime"].asString();
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["EndTime"].isNull())
logInfosObject.endTime = allDomainLogDetailsNodeLogInfosLogInfoDetail["EndTime"].asString();
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogName"].isNull())
logInfosObject.logName = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogName"].asString();
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogPath"].isNull())
logInfosObject.logPath = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogPath"].asString();
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogSize"].isNull())
logInfosObject.logSize = std::stol(valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogSize"].asString());
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["StartTime"].isNull())
logInfosObject.startTime = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["StartTime"].asString();
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["EndTime"].isNull())
logInfosObject.endTime = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["EndTime"].asString();
domainLogDetailsObject.logInfos.push_back(logInfosObject);
}
domainLogDetails_.push_back(domainLogDetailsObject);

View File

@@ -49,14 +49,14 @@ void DescribeCdnDomainStagingConfigResult::parse(const std::string &payload)
domainConfigsObject.configId = valueDomainConfigsDomainConfig["ConfigId"].asString();
if(!valueDomainConfigsDomainConfig["Status"].isNull())
domainConfigsObject.status = valueDomainConfigsDomainConfig["Status"].asString();
auto allFunctionArgsNode = allDomainConfigsNode["FunctionArgs"]["FunctionArg"];
for (auto allDomainConfigsNodeFunctionArgsFunctionArg : allFunctionArgsNode)
auto allFunctionArgsNode = valueDomainConfigsDomainConfig["FunctionArgs"]["FunctionArg"];
for (auto valueDomainConfigsDomainConfigFunctionArgsFunctionArg : allFunctionArgsNode)
{
DomainConfig::FunctionArg functionArgsObject;
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].isNull())
functionArgsObject.argName = allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].asString();
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].isNull())
functionArgsObject.argValue = allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].asString();
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].isNull())
functionArgsObject.argName = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].asString();
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].isNull())
functionArgsObject.argValue = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].asString();
domainConfigsObject.functionArgs.push_back(functionArgsObject);
}
domainConfigs_.push_back(domainConfigsObject);

View File

@@ -49,20 +49,20 @@ void DescribeCdnUserBillHistoryResult::parse(const std::string &payload)
billHistoryDataObject.billType = valueBillHistoryDataBillHistoryDataItem["BillType"].asString();
if(!valueBillHistoryDataBillHistoryDataItem["BillTime"].isNull())
billHistoryDataObject.billTime = valueBillHistoryDataBillHistoryDataItem["BillTime"].asString();
auto allBillingDataNode = allBillHistoryDataNode["BillingData"]["BillingDataItem"];
for (auto allBillHistoryDataNodeBillingDataBillingDataItem : allBillingDataNode)
auto allBillingDataNode = valueBillHistoryDataBillHistoryDataItem["BillingData"]["BillingDataItem"];
for (auto valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem : allBillingDataNode)
{
BillHistoryDataItem::BillingDataItem billingDataObject;
if(!allBillHistoryDataNodeBillingDataBillingDataItem["ChargeType"].isNull())
billingDataObject.chargeType = allBillHistoryDataNodeBillingDataBillingDataItem["ChargeType"].asString();
if(!allBillHistoryDataNodeBillingDataBillingDataItem["CdnRegion"].isNull())
billingDataObject.cdnRegion = allBillHistoryDataNodeBillingDataBillingDataItem["CdnRegion"].asString();
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Bandwidth"].isNull())
billingDataObject.bandwidth = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Bandwidth"].asString());
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Flow"].isNull())
billingDataObject.flow = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Flow"].asString());
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Count"].isNull())
billingDataObject.count = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Count"].asString());
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["ChargeType"].isNull())
billingDataObject.chargeType = valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["ChargeType"].asString();
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["CdnRegion"].isNull())
billingDataObject.cdnRegion = valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["CdnRegion"].asString();
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Bandwidth"].isNull())
billingDataObject.bandwidth = std::stof(valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Bandwidth"].asString());
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Flow"].isNull())
billingDataObject.flow = std::stof(valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Flow"].asString());
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Count"].isNull())
billingDataObject.count = std::stof(valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Count"].asString());
billHistoryDataObject.billingData.push_back(billingDataObject);
}
billHistoryData_.push_back(billHistoryDataObject);

View File

@@ -63,20 +63,20 @@ void DescribeCdnUserDomainsByFuncResult::parse(const std::string &payload)
domainsObject.resourceGroupId = valueDomainsPageData["ResourceGroupId"].asString();
if(!valueDomainsPageData["Sandbox"].isNull())
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
auto allSourcesNode = allDomainsNode["Sources"]["Source"];
for (auto allDomainsNodeSourcesSource : allSourcesNode)
auto allSourcesNode = valueDomainsPageData["Sources"]["Source"];
for (auto valueDomainsPageDataSourcesSource : allSourcesNode)
{
PageData::Source sourcesObject;
if(!allDomainsNodeSourcesSource["Type"].isNull())
sourcesObject.type = allDomainsNodeSourcesSource["Type"].asString();
if(!allDomainsNodeSourcesSource["Content"].isNull())
sourcesObject.content = allDomainsNodeSourcesSource["Content"].asString();
if(!allDomainsNodeSourcesSource["Port"].isNull())
sourcesObject.port = std::stoi(allDomainsNodeSourcesSource["Port"].asString());
if(!allDomainsNodeSourcesSource["Priority"].isNull())
sourcesObject.priority = allDomainsNodeSourcesSource["Priority"].asString();
if(!allDomainsNodeSourcesSource["Weight"].isNull())
sourcesObject.weight = allDomainsNodeSourcesSource["Weight"].asString();
if(!valueDomainsPageDataSourcesSource["Type"].isNull())
sourcesObject.type = valueDomainsPageDataSourcesSource["Type"].asString();
if(!valueDomainsPageDataSourcesSource["Content"].isNull())
sourcesObject.content = valueDomainsPageDataSourcesSource["Content"].asString();
if(!valueDomainsPageDataSourcesSource["Port"].isNull())
sourcesObject.port = std::stoi(valueDomainsPageDataSourcesSource["Port"].asString());
if(!valueDomainsPageDataSourcesSource["Priority"].isNull())
sourcesObject.priority = valueDomainsPageDataSourcesSource["Priority"].asString();
if(!valueDomainsPageDataSourcesSource["Weight"].isNull())
sourcesObject.weight = valueDomainsPageDataSourcesSource["Weight"].asString();
domainsObject.sources.push_back(sourcesObject);
}
domains_.push_back(domainsObject);

View File

@@ -49,14 +49,14 @@ void DescribeConfigOfVersionResult::parse(const std::string &payload)
versionConfigsObject.configId = valueVersionConfigsVersionConfig["ConfigId"].asString();
if(!valueVersionConfigsVersionConfig["FunctionName"].isNull())
versionConfigsObject.functionName = valueVersionConfigsVersionConfig["FunctionName"].asString();
auto allFunctionArgsNode = allVersionConfigsNode["FunctionArgs"]["FunctionArg"];
for (auto allVersionConfigsNodeFunctionArgsFunctionArg : allFunctionArgsNode)
auto allFunctionArgsNode = valueVersionConfigsVersionConfig["FunctionArgs"]["FunctionArg"];
for (auto valueVersionConfigsVersionConfigFunctionArgsFunctionArg : allFunctionArgsNode)
{
VersionConfig::FunctionArg functionArgsObject;
if(!allVersionConfigsNodeFunctionArgsFunctionArg["ArgName"].isNull())
functionArgsObject.argName = allVersionConfigsNodeFunctionArgsFunctionArg["ArgName"].asString();
if(!allVersionConfigsNodeFunctionArgsFunctionArg["ArgValue"].isNull())
functionArgsObject.argValue = allVersionConfigsNodeFunctionArgsFunctionArg["ArgValue"].asString();
if(!valueVersionConfigsVersionConfigFunctionArgsFunctionArg["ArgName"].isNull())
functionArgsObject.argName = valueVersionConfigsVersionConfigFunctionArgsFunctionArg["ArgName"].asString();
if(!valueVersionConfigsVersionConfigFunctionArgsFunctionArg["ArgValue"].isNull())
functionArgsObject.argValue = valueVersionConfigsVersionConfigFunctionArgsFunctionArg["ArgValue"].asString();
versionConfigsObject.functionArgs.push_back(functionArgsObject);
}
versionConfigs_.push_back(versionConfigsObject);

View File

@@ -45,14 +45,14 @@ void DescribeDomainFileSizeProportionDataResult::parse(const std::string &payloa
UsageData fileSizeProportionDataIntervalObject;
if(!valueFileSizeProportionDataIntervalUsageData["TimeStamp"].isNull())
fileSizeProportionDataIntervalObject.timeStamp = valueFileSizeProportionDataIntervalUsageData["TimeStamp"].asString();
auto allValueNode = allFileSizeProportionDataIntervalNode["Value"]["FileSizeProportionData"];
for (auto allFileSizeProportionDataIntervalNodeValueFileSizeProportionData : allValueNode)
auto allValueNode = valueFileSizeProportionDataIntervalUsageData["Value"]["FileSizeProportionData"];
for (auto valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData : allValueNode)
{
UsageData::FileSizeProportionData valueObject;
if(!allFileSizeProportionDataIntervalNodeValueFileSizeProportionData["FileSize"].isNull())
valueObject.fileSize = allFileSizeProportionDataIntervalNodeValueFileSizeProportionData["FileSize"].asString();
if(!allFileSizeProportionDataIntervalNodeValueFileSizeProportionData["Proportion"].isNull())
valueObject.proportion = allFileSizeProportionDataIntervalNodeValueFileSizeProportionData["Proportion"].asString();
if(!valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData["FileSize"].isNull())
valueObject.fileSize = valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData["FileSize"].asString();
if(!valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData["Proportion"].isNull())
valueObject.proportion = valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData["Proportion"].asString();
fileSizeProportionDataIntervalObject.value.push_back(valueObject);
}
fileSizeProportionDataInterval_.push_back(fileSizeProportionDataIntervalObject);

View File

@@ -45,16 +45,16 @@ void DescribeDomainHttpCodeDataResult::parse(const std::string &payload)
UsageData httpCodeDataObject;
if(!valueHttpCodeDataUsageData["TimeStamp"].isNull())
httpCodeDataObject.timeStamp = valueHttpCodeDataUsageData["TimeStamp"].asString();
auto allValueNode = allHttpCodeDataNode["Value"]["CodeProportionData"];
for (auto allHttpCodeDataNodeValueCodeProportionData : allValueNode)
auto allValueNode = valueHttpCodeDataUsageData["Value"]["CodeProportionData"];
for (auto valueHttpCodeDataUsageDataValueCodeProportionData : allValueNode)
{
UsageData::CodeProportionData valueObject;
if(!allHttpCodeDataNodeValueCodeProportionData["Code"].isNull())
valueObject.code = allHttpCodeDataNodeValueCodeProportionData["Code"].asString();
if(!allHttpCodeDataNodeValueCodeProportionData["Proportion"].isNull())
valueObject.proportion = allHttpCodeDataNodeValueCodeProportionData["Proportion"].asString();
if(!allHttpCodeDataNodeValueCodeProportionData["Count"].isNull())
valueObject.count = allHttpCodeDataNodeValueCodeProportionData["Count"].asString();
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Code"].isNull())
valueObject.code = valueHttpCodeDataUsageDataValueCodeProportionData["Code"].asString();
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Proportion"].isNull())
valueObject.proportion = valueHttpCodeDataUsageDataValueCodeProportionData["Proportion"].asString();
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Count"].isNull())
valueObject.count = valueHttpCodeDataUsageDataValueCodeProportionData["Count"].asString();
httpCodeDataObject.value.push_back(valueObject);
}
httpCodeData_.push_back(httpCodeDataObject);

View File

@@ -45,16 +45,16 @@ void DescribeDomainRealTimeHttpCodeDataResult::parse(const std::string &payload)
UsageData realTimeHttpCodeDataObject;
if(!valueRealTimeHttpCodeDataUsageData["TimeStamp"].isNull())
realTimeHttpCodeDataObject.timeStamp = valueRealTimeHttpCodeDataUsageData["TimeStamp"].asString();
auto allValueNode = allRealTimeHttpCodeDataNode["Value"]["RealTimeCodeProportionData"];
for (auto allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData : allValueNode)
auto allValueNode = valueRealTimeHttpCodeDataUsageData["Value"]["RealTimeCodeProportionData"];
for (auto valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData : allValueNode)
{
UsageData::RealTimeCodeProportionData valueObject;
if(!allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Code"].isNull())
valueObject.code = allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Code"].asString();
if(!allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Proportion"].isNull())
valueObject.proportion = allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Proportion"].asString();
if(!allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Count"].isNull())
valueObject.count = allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Count"].asString();
if(!valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Code"].isNull())
valueObject.code = valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Code"].asString();
if(!valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Proportion"].isNull())
valueObject.proportion = valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Proportion"].asString();
if(!valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Count"].isNull())
valueObject.count = valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Count"].asString();
realTimeHttpCodeDataObject.value.push_back(valueObject);
}
realTimeHttpCodeData_.push_back(realTimeHttpCodeDataObject);

View File

@@ -45,16 +45,16 @@ void DescribeDomainRealTimeSrcHttpCodeDataResult::parse(const std::string &paylo
UsageData realTimeSrcHttpCodeDataObject;
if(!valueRealTimeSrcHttpCodeDataUsageData["TimeStamp"].isNull())
realTimeSrcHttpCodeDataObject.timeStamp = valueRealTimeSrcHttpCodeDataUsageData["TimeStamp"].asString();
auto allValueNode = allRealTimeSrcHttpCodeDataNode["Value"]["RealTimeSrcCodeProportionData"];
for (auto allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData : allValueNode)
auto allValueNode = valueRealTimeSrcHttpCodeDataUsageData["Value"]["RealTimeSrcCodeProportionData"];
for (auto valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData : allValueNode)
{
UsageData::RealTimeSrcCodeProportionData valueObject;
if(!allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Code"].isNull())
valueObject.code = allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Code"].asString();
if(!allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Proportion"].isNull())
valueObject.proportion = allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Proportion"].asString();
if(!allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Count"].isNull())
valueObject.count = allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Count"].asString();
if(!valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Code"].isNull())
valueObject.code = valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Code"].asString();
if(!valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Proportion"].isNull())
valueObject.proportion = valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Proportion"].asString();
if(!valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Count"].isNull())
valueObject.count = valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Count"].asString();
realTimeSrcHttpCodeDataObject.value.push_back(valueObject);
}
realTimeSrcHttpCodeData_.push_back(realTimeSrcHttpCodeDataObject);

View File

@@ -45,16 +45,16 @@ void DescribeDomainSrcHttpCodeDataResult::parse(const std::string &payload)
UsageData httpCodeDataObject;
if(!valueHttpCodeDataUsageData["TimeStamp"].isNull())
httpCodeDataObject.timeStamp = valueHttpCodeDataUsageData["TimeStamp"].asString();
auto allValueNode = allHttpCodeDataNode["Value"]["CodeProportionData"];
for (auto allHttpCodeDataNodeValueCodeProportionData : allValueNode)
auto allValueNode = valueHttpCodeDataUsageData["Value"]["CodeProportionData"];
for (auto valueHttpCodeDataUsageDataValueCodeProportionData : allValueNode)
{
UsageData::CodeProportionData valueObject;
if(!allHttpCodeDataNodeValueCodeProportionData["Code"].isNull())
valueObject.code = allHttpCodeDataNodeValueCodeProportionData["Code"].asString();
if(!allHttpCodeDataNodeValueCodeProportionData["Proportion"].isNull())
valueObject.proportion = allHttpCodeDataNodeValueCodeProportionData["Proportion"].asString();
if(!allHttpCodeDataNodeValueCodeProportionData["Count"].isNull())
valueObject.count = allHttpCodeDataNodeValueCodeProportionData["Count"].asString();
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Code"].isNull())
valueObject.code = valueHttpCodeDataUsageDataValueCodeProportionData["Code"].asString();
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Proportion"].isNull())
valueObject.proportion = valueHttpCodeDataUsageDataValueCodeProportionData["Proportion"].asString();
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Count"].isNull())
valueObject.count = valueHttpCodeDataUsageDataValueCodeProportionData["Count"].asString();
httpCodeDataObject.value.push_back(valueObject);
}
httpCodeData_.push_back(httpCodeDataObject);

View File

@@ -45,20 +45,20 @@ void DescribeDomainsBySourceResult::parse(const std::string &payload)
DomainsData domainsListObject;
if(!valueDomainsListDomainsData["Source"].isNull())
domainsListObject.source = valueDomainsListDomainsData["Source"].asString();
auto allDomainInfosNode = allDomainsListNode["DomainInfos"]["domainInfo"];
for (auto allDomainsListNodeDomainInfosdomainInfo : allDomainInfosNode)
auto allDomainInfosNode = valueDomainsListDomainsData["DomainInfos"]["domainInfo"];
for (auto valueDomainsListDomainsDataDomainInfosdomainInfo : allDomainInfosNode)
{
DomainsData::DomainInfo domainInfosObject;
if(!allDomainsListNodeDomainInfosdomainInfo["DomainName"].isNull())
domainInfosObject.domainName = allDomainsListNodeDomainInfosdomainInfo["DomainName"].asString();
if(!allDomainsListNodeDomainInfosdomainInfo["DomainCname"].isNull())
domainInfosObject.domainCname = allDomainsListNodeDomainInfosdomainInfo["DomainCname"].asString();
if(!allDomainsListNodeDomainInfosdomainInfo["CreateTime"].isNull())
domainInfosObject.createTime = allDomainsListNodeDomainInfosdomainInfo["CreateTime"].asString();
if(!allDomainsListNodeDomainInfosdomainInfo["UpdateTime"].isNull())
domainInfosObject.updateTime = allDomainsListNodeDomainInfosdomainInfo["UpdateTime"].asString();
if(!allDomainsListNodeDomainInfosdomainInfo["Status"].isNull())
domainInfosObject.status = allDomainsListNodeDomainInfosdomainInfo["Status"].asString();
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["DomainName"].isNull())
domainInfosObject.domainName = valueDomainsListDomainsDataDomainInfosdomainInfo["DomainName"].asString();
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["DomainCname"].isNull())
domainInfosObject.domainCname = valueDomainsListDomainsDataDomainInfosdomainInfo["DomainCname"].asString();
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["CreateTime"].isNull())
domainInfosObject.createTime = valueDomainsListDomainsDataDomainInfosdomainInfo["CreateTime"].asString();
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["UpdateTime"].isNull())
domainInfosObject.updateTime = valueDomainsListDomainsDataDomainInfosdomainInfo["UpdateTime"].asString();
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["Status"].isNull())
domainInfosObject.status = valueDomainsListDomainsDataDomainInfosdomainInfo["Status"].asString();
domainsListObject.domainInfos.push_back(domainInfosObject);
}
auto allDomains = value["Domains"]["domainNames"];

View File

@@ -59,6 +59,10 @@ void DescribeRefreshQuotaResult::parse(const std::string &payload)
regexQuota_ = value["RegexQuota"].asString();
if(!value["RegexRemain"].isNull())
regexRemain_ = value["RegexRemain"].asString();
if(!value["PreloadEdgeQuota"].isNull())
preloadEdgeQuota_ = value["PreloadEdgeQuota"].asString();
if(!value["PreloadEdgeRemain"].isNull())
preloadEdgeRemain_ = value["PreloadEdgeRemain"].asString();
}
@@ -67,6 +71,11 @@ std::string DescribeRefreshQuotaResult::getUrlRemain()const
return urlRemain_;
}
std::string DescribeRefreshQuotaResult::getPreloadEdgeRemain()const
{
return preloadEdgeRemain_;
}
std::string DescribeRefreshQuotaResult::getPreloadRemain()const
{
return preloadRemain_;
@@ -112,3 +121,8 @@ std::string DescribeRefreshQuotaResult::getPreloadQuota()const
return preloadQuota_;
}
std::string DescribeRefreshQuotaResult::getPreloadEdgeQuota()const
{
return preloadEdgeQuota_;
}

View File

@@ -45,14 +45,14 @@ void DescribeTagResourcesResult::parse(const std::string &payload)
TagResource tagResourcesObject;
if(!valueTagResourcesTagResource["ResourceId"].isNull())
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
auto allTagNode = allTagResourcesNode["Tag"]["TagItem"];
for (auto allTagResourcesNodeTagTagItem : allTagNode)
auto allTagNode = valueTagResourcesTagResource["Tag"]["TagItem"];
for (auto valueTagResourcesTagResourceTagTagItem : allTagNode)
{
TagResource::TagItem tagObject;
if(!allTagResourcesNodeTagTagItem["Key"].isNull())
tagObject.key = allTagResourcesNodeTagTagItem["Key"].asString();
if(!allTagResourcesNodeTagTagItem["Value"].isNull())
tagObject.value = allTagResourcesNodeTagTagItem["Value"].asString();
if(!valueTagResourcesTagResourceTagTagItem["Key"].isNull())
tagObject.key = valueTagResourcesTagResourceTagTagItem["Key"].asString();
if(!valueTagResourcesTagResourceTagTagItem["Value"].isNull())
tagObject.value = valueTagResourcesTagResourceTagTagItem["Value"].asString();
tagResourcesObject.tag.push_back(tagObject);
}
tagResources_.push_back(tagResourcesObject);

View File

@@ -65,20 +65,20 @@ void DescribeUserDomainsResult::parse(const std::string &payload)
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
if(!valueDomainsPageData["Coverage"].isNull())
domainsObject.coverage = valueDomainsPageData["Coverage"].asString();
auto allSourcesNode = allDomainsNode["Sources"]["Source"];
for (auto allDomainsNodeSourcesSource : allSourcesNode)
auto allSourcesNode = valueDomainsPageData["Sources"]["Source"];
for (auto valueDomainsPageDataSourcesSource : allSourcesNode)
{
PageData::Source sourcesObject;
if(!allDomainsNodeSourcesSource["Type"].isNull())
sourcesObject.type = allDomainsNodeSourcesSource["Type"].asString();
if(!allDomainsNodeSourcesSource["Content"].isNull())
sourcesObject.content = allDomainsNodeSourcesSource["Content"].asString();
if(!allDomainsNodeSourcesSource["Port"].isNull())
sourcesObject.port = std::stoi(allDomainsNodeSourcesSource["Port"].asString());
if(!allDomainsNodeSourcesSource["Priority"].isNull())
sourcesObject.priority = allDomainsNodeSourcesSource["Priority"].asString();
if(!allDomainsNodeSourcesSource["Weight"].isNull())
sourcesObject.weight = allDomainsNodeSourcesSource["Weight"].asString();
if(!valueDomainsPageDataSourcesSource["Type"].isNull())
sourcesObject.type = valueDomainsPageDataSourcesSource["Type"].asString();
if(!valueDomainsPageDataSourcesSource["Content"].isNull())
sourcesObject.content = valueDomainsPageDataSourcesSource["Content"].asString();
if(!valueDomainsPageDataSourcesSource["Port"].isNull())
sourcesObject.port = std::stoi(valueDomainsPageDataSourcesSource["Port"].asString());
if(!valueDomainsPageDataSourcesSource["Priority"].isNull())
sourcesObject.priority = valueDomainsPageDataSourcesSource["Priority"].asString();
if(!valueDomainsPageDataSourcesSource["Weight"].isNull())
sourcesObject.weight = valueDomainsPageDataSourcesSource["Weight"].asString();
domainsObject.sources.push_back(sourcesObject);
}
domains_.push_back(domainsObject);

View File

@@ -45,6 +45,8 @@ namespace AlibabaCloud
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getEngine()const;
void setEngine(const std::string& engine);
int getPageSize()const;
@@ -65,6 +67,10 @@ namespace AlibabaCloud
void setOwnerId(long ownerId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getRegion()const;
void setRegion(const std::string& region);
private:
long resourceOwnerId_;
@@ -72,6 +78,7 @@ namespace AlibabaCloud
int pageNumber_;
std::string accessKeyId_;
std::string securityToken_;
std::string regionId_;
std::string engine_;
int pageSize_;
std::string instanceStatus_;
@@ -82,6 +89,8 @@ namespace AlibabaCloud
std::string clusterId_;
long ownerId_;
std::string instanceId_;
std::string zoneId_;
std::string region_;
};
}

View File

@@ -82,6 +82,17 @@ void DescribeDedicatedClusterInstanceListRequest::setSecurityToken(const std::st
setParameter("SecurityToken", securityToken);
}
std::string DescribeDedicatedClusterInstanceListRequest::getRegionId()const
{
return regionId_;
}
void DescribeDedicatedClusterInstanceListRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeDedicatedClusterInstanceListRequest::getEngine()const
{
return engine_;
@@ -192,3 +203,25 @@ void DescribeDedicatedClusterInstanceListRequest::setInstanceId(const std::strin
setParameter("InstanceId", instanceId);
}
std::string DescribeDedicatedClusterInstanceListRequest::getZoneId()const
{
return zoneId_;
}
void DescribeDedicatedClusterInstanceListRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string DescribeDedicatedClusterInstanceListRequest::getRegion()const
{
return region_;
}
void DescribeDedicatedClusterInstanceListRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}

View File

@@ -34,10 +34,22 @@ namespace AlibabaCloud
public:
struct Data
{
struct Qualities
{
std::vector<std::string> noiseList;
std::vector<std::string> scoreList;
std::vector<std::string> blurList;
std::vector<std::string> maskList;
std::vector<std::string> glassList;
std::vector<std::string> fnfList;
std::vector<std::string> poseList1;
std::vector<std::string> illuList;
};
std::vector<std::string> faceProbabilityList;
int landmarkCount;
std::vector<std::string> faceRectangles;
std::vector<std::string> landmarks;
Qualities qualities;
int faceCount;
std::vector<std::string> poseList;
std::vector<std::string> pupils;

View File

@@ -35,10 +35,13 @@ namespace AlibabaCloud
GenerateHumanAnimeStyleRequest();
~GenerateHumanAnimeStyleRequest();
std::string getAlgoType()const;
void setAlgoType(const std::string& algoType);
std::string getImageURL()const;
void setImageURL(const std::string& imageURL);
private:
std::string algoType_;
std::string imageURL_;
};

View File

@@ -34,13 +34,27 @@ namespace AlibabaCloud
public:
struct Data
{
struct Qualities
{
std::vector<std::string> noiseList;
std::vector<std::string> scoreList;
std::vector<std::string> blurList;
std::vector<std::string> maskList;
std::vector<std::string> glassList;
std::vector<std::string> fnfList;
std::vector<std::string> poseList1;
std::vector<std::string> illuList;
};
std::vector<std::string> beuatyList;
std::vector<std::string> faceRectangles;
Qualities qualities;
int denseFeatureLength;
std::vector<std::string> poseList;
std::vector<std::string> pupils;
std::vector<std::string> genderList;
std::vector<std::string> pupils;
std::vector<std::string> denseFeatures;
std::vector<std::string> faceProbabilityList;
std::vector<std::string> hatList;
int landmarkCount;
std::vector<std::string> ageList;
std::vector<std::string> glasses;

View File

@@ -40,22 +40,47 @@ void DetectFaceResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["FaceCount"].isNull())
data_.faceCount = std::stoi(dataNode["FaceCount"].asString());
if(!dataNode["LandmarkCount"].isNull())
data_.landmarkCount = std::stoi(dataNode["LandmarkCount"].asString());
auto allFaceRectangles = dataNode["FaceRectangles"]["FaceRectangle"];
for (auto value : allFaceRectangles)
data_.faceRectangles.push_back(value.asString());
if(!dataNode["FaceCount"].isNull())
data_.faceCount = std::stoi(dataNode["FaceCount"].asString());
auto qualitiesNode = dataNode["Qualities"];
auto allNoiseList = qualitiesNode["NoiseList"]["Noise"];
for (auto value : allNoiseList)
data_.qualities.noiseList.push_back(value.asString());
auto allScoreList = qualitiesNode["ScoreList"]["Score"];
for (auto value : allScoreList)
data_.qualities.scoreList.push_back(value.asString());
auto allBlurList = qualitiesNode["BlurList"]["Blur"];
for (auto value : allBlurList)
data_.qualities.blurList.push_back(value.asString());
auto allMaskList = qualitiesNode["MaskList"]["Mask"];
for (auto value : allMaskList)
data_.qualities.maskList.push_back(value.asString());
auto allGlassList = qualitiesNode["GlassList"]["Glass"];
for (auto value : allGlassList)
data_.qualities.glassList.push_back(value.asString());
auto allFnfList = qualitiesNode["FnfList"]["Fnf"];
for (auto value : allFnfList)
data_.qualities.fnfList.push_back(value.asString());
auto allPoseList1 = qualitiesNode["PoseList"]["Pose"];
for (auto value : allPoseList1)
data_.qualities.poseList1.push_back(value.asString());
auto allIlluList = qualitiesNode["IlluList"]["Illu"];
for (auto value : allIlluList)
data_.qualities.illuList.push_back(value.asString());
auto allFaceProbabilityList = dataNode["FaceProbabilityList"]["FaceProbability"];
for (auto value : allFaceProbabilityList)
data_.faceProbabilityList.push_back(value.asString());
auto allPoseList = dataNode["PoseList"]["Pose"];
for (auto value : allPoseList)
data_.poseList.push_back(value.asString());
auto allFaceRectangles = dataNode["FaceRectangles"]["FaceRectangle"];
for (auto value : allFaceRectangles)
data_.faceRectangles.push_back(value.asString());
auto allLandmarks = dataNode["Landmarks"]["Landmark"];
for (auto value : allLandmarks)
data_.landmarks.push_back(value.asString());
auto allPoseList = dataNode["PoseList"]["Pose"];
for (auto value : allPoseList)
data_.poseList.push_back(value.asString());
auto allPupils = dataNode["Pupils"]["Pupil"];
for (auto value : allPupils)
data_.pupils.push_back(value.asString());

View File

@@ -40,10 +40,10 @@ void DetectPedestrianResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Width"].isNull())
data_.width = std::stoi(dataNode["Width"].asString());
if(!dataNode["Height"].isNull())
data_.height = std::stoi(dataNode["Height"].asString());
if(!dataNode["Width"].isNull())
data_.width = std::stoi(dataNode["Width"].asString());
auto allElementsNode = dataNode["Elements"]["Element"];
for (auto dataNodeElementsElement : allElementsNode)
{

View File

@@ -27,6 +27,17 @@ GenerateHumanAnimeStyleRequest::GenerateHumanAnimeStyleRequest() :
GenerateHumanAnimeStyleRequest::~GenerateHumanAnimeStyleRequest()
{}
std::string GenerateHumanAnimeStyleRequest::getAlgoType()const
{
return algoType_;
}
void GenerateHumanAnimeStyleRequest::setAlgoType(const std::string& algoType)
{
algoType_ = algoType;
setParameter("AlgoType", algoType);
}
std::string GenerateHumanAnimeStyleRequest::getImageURL()const
{
return imageURL_;
@@ -35,6 +46,6 @@ std::string GenerateHumanAnimeStyleRequest::getImageURL()const
void GenerateHumanAnimeStyleRequest::setImageURL(const std::string& imageURL)
{
imageURL_ = imageURL;
setBodyParameter("ImageURL", imageURL);
setParameter("ImageURL", imageURL);
}

View File

@@ -40,42 +40,73 @@ void RecognizeFaceResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["FaceCount"].isNull())
data_.faceCount = std::stoi(dataNode["FaceCount"].asString());
if(!dataNode["LandmarkCount"].isNull())
data_.landmarkCount = std::stoi(dataNode["LandmarkCount"].asString());
if(!dataNode["DenseFeatureLength"].isNull())
data_.denseFeatureLength = std::stoi(dataNode["DenseFeatureLength"].asString());
auto allFaceRectangles = dataNode["FaceRectangles"]["FaceRectangle"];
for (auto value : allFaceRectangles)
data_.faceRectangles.push_back(value.asString());
auto allFaceProbabilityList = dataNode["FaceProbabilityList"]["FaceProbability"];
for (auto value : allFaceProbabilityList)
data_.faceProbabilityList.push_back(value.asString());
auto allPoseList = dataNode["PoseList"]["Pose"];
for (auto value : allPoseList)
data_.poseList.push_back(value.asString());
auto allLandmarks = dataNode["Landmarks"]["Landmark"];
for (auto value : allLandmarks)
data_.landmarks.push_back(value.asString());
auto allPupils = dataNode["Pupils"]["Pupil"];
for (auto value : allPupils)
data_.pupils.push_back(value.asString());
auto allGenderList = dataNode["GenderList"]["Gender"];
for (auto value : allGenderList)
data_.genderList.push_back(value.asString());
auto allAgeList = dataNode["AgeList"]["Age"];
for (auto value : allAgeList)
data_.ageList.push_back(value.asString());
auto allExpressions = dataNode["Expressions"]["Expression"];
for (auto value : allExpressions)
data_.expressions.push_back(value.asString());
auto allGlasses = dataNode["Glasses"]["Glass"];
for (auto value : allGlasses)
data_.glasses.push_back(value.asString());
if(!dataNode["FaceCount"].isNull())
data_.faceCount = std::stoi(dataNode["FaceCount"].asString());
auto qualitiesNode = dataNode["Qualities"];
auto allNoiseList = qualitiesNode["NoiseList"]["Noise"];
for (auto value : allNoiseList)
data_.qualities.noiseList.push_back(value.asString());
auto allScoreList = qualitiesNode["ScoreList"]["Score"];
for (auto value : allScoreList)
data_.qualities.scoreList.push_back(value.asString());
auto allBlurList = qualitiesNode["BlurList"]["Blur"];
for (auto value : allBlurList)
data_.qualities.blurList.push_back(value.asString());
auto allMaskList = qualitiesNode["MaskList"]["Mask"];
for (auto value : allMaskList)
data_.qualities.maskList.push_back(value.asString());
auto allGlassList = qualitiesNode["GlassList"]["Glass"];
for (auto value : allGlassList)
data_.qualities.glassList.push_back(value.asString());
auto allFnfList = qualitiesNode["FnfList"]["Fnf"];
for (auto value : allFnfList)
data_.qualities.fnfList.push_back(value.asString());
auto allPoseList1 = qualitiesNode["PoseList"]["Pose"];
for (auto value : allPoseList1)
data_.qualities.poseList1.push_back(value.asString());
auto allIlluList = qualitiesNode["IlluList"]["Illu"];
for (auto value : allIlluList)
data_.qualities.illuList.push_back(value.asString());
auto allDenseFeatures = dataNode["DenseFeatures"]["DenseFeature"];
for (auto value : allDenseFeatures)
data_.denseFeatures.push_back(value.asString());
auto allFaceProbabilityList = dataNode["FaceProbabilityList"]["FaceProbability"];
for (auto value : allFaceProbabilityList)
data_.faceProbabilityList.push_back(value.asString());
auto allHatList = dataNode["HatList"]["Hat"];
for (auto value : allHatList)
data_.hatList.push_back(value.asString());
auto allAgeList = dataNode["AgeList"]["Age"];
for (auto value : allAgeList)
data_.ageList.push_back(value.asString());
auto allBeuatyList = dataNode["BeuatyList"]["Beauty"];
for (auto value : allBeuatyList)
data_.beuatyList.push_back(value.asString());
auto allFaceRectangles = dataNode["FaceRectangles"]["FaceRectangle"];
for (auto value : allFaceRectangles)
data_.faceRectangles.push_back(value.asString());
auto allGlasses = dataNode["Glasses"]["Glass"];
for (auto value : allGlasses)
data_.glasses.push_back(value.asString());
auto allLandmarks = dataNode["Landmarks"]["Landmark"];
for (auto value : allLandmarks)
data_.landmarks.push_back(value.asString());
auto allExpressions = dataNode["Expressions"]["Expression"];
for (auto value : allExpressions)
data_.expressions.push_back(value.asString());
auto allPoseList = dataNode["PoseList"]["Pose"];
for (auto value : allPoseList)
data_.poseList.push_back(value.asString());
auto allGenderList = dataNode["GenderList"]["Gender"];
for (auto value : allGenderList)
data_.genderList.push_back(value.asString());
auto allPupils = dataNode["Pupils"]["Pupil"];
for (auto value : allPupils)
data_.pupils.push_back(value.asString());
}

View File

@@ -35,6 +35,10 @@ namespace AlibabaCloud
ListExecutionsRequest();
~ListExecutionsRequest();
std::string getStartedTimeBegin()const;
void setStartedTimeBegin(const std::string& startedTimeBegin);
std::string getExecutionNamePrefix()const;
void setExecutionNamePrefix(const std::string& executionNamePrefix);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
std::string getRequestId()const;
@@ -43,14 +47,19 @@ namespace AlibabaCloud
void setLimit(int limit);
std::string getFlowName()const;
void setFlowName(const std::string& flowName);
std::string getStartedTimeEnd()const;
void setStartedTimeEnd(const std::string& startedTimeEnd);
std::string getStatus()const;
void setStatus(const std::string& status);
private:
std::string startedTimeBegin_;
std::string executionNamePrefix_;
std::string nextToken_;
std::string requestId_;
int limit_;
std::string flowName_;
std::string startedTimeEnd_;
std::string status_;
};

View File

@@ -31,21 +31,21 @@ FnfClient::FnfClient(const Credentials &credentials, const ClientConfiguration &
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "fnf");
}
FnfClient::FnfClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "fnf");
}
FnfClient::FnfClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "fnf");
}
FnfClient::~FnfClient()

View File

@@ -27,6 +27,28 @@ ListExecutionsRequest::ListExecutionsRequest() :
ListExecutionsRequest::~ListExecutionsRequest()
{}
std::string ListExecutionsRequest::getStartedTimeBegin()const
{
return startedTimeBegin_;
}
void ListExecutionsRequest::setStartedTimeBegin(const std::string& startedTimeBegin)
{
startedTimeBegin_ = startedTimeBegin;
setParameter("StartedTimeBegin", startedTimeBegin);
}
std::string ListExecutionsRequest::getExecutionNamePrefix()const
{
return executionNamePrefix_;
}
void ListExecutionsRequest::setExecutionNamePrefix(const std::string& executionNamePrefix)
{
executionNamePrefix_ = executionNamePrefix;
setParameter("ExecutionNamePrefix", executionNamePrefix);
}
std::string ListExecutionsRequest::getNextToken()const
{
return nextToken_;
@@ -71,6 +93,17 @@ void ListExecutionsRequest::setFlowName(const std::string& flowName)
setParameter("FlowName", flowName);
}
std::string ListExecutionsRequest::getStartedTimeEnd()const
{
return startedTimeEnd_;
}
void ListExecutionsRequest::setStartedTimeEnd(const std::string& startedTimeEnd)
{
startedTimeEnd_ = startedTimeEnd;
setParameter("StartedTimeEnd", startedTimeEnd);
}
std::string ListExecutionsRequest::getStatus()const
{
return status_;

View File

@@ -35,12 +35,15 @@ namespace AlibabaCloud
SegmentBodyRequest();
~SegmentBodyRequest();
std::string getReturnForm()const;
void setReturnForm(const std::string& returnForm);
bool getAsync()const;
void setAsync(bool async);
std::string getImageURL()const;
void setImageURL(const std::string& imageURL);
private:
std::string returnForm_;
bool async_;
std::string imageURL_;

View File

@@ -27,6 +27,17 @@ SegmentBodyRequest::SegmentBodyRequest() :
SegmentBodyRequest::~SegmentBodyRequest()
{}
std::string SegmentBodyRequest::getReturnForm()const
{
return returnForm_;
}
void SegmentBodyRequest::setReturnForm(const std::string& returnForm)
{
returnForm_ = returnForm;
setParameter("ReturnForm", returnForm);
}
bool SegmentBodyRequest::getAsync()const
{
return async_;

View File

@@ -52,7 +52,7 @@ namespace AlibabaCloud
std::string errorMessage_;
std::string code_;
bool success_;
long messageId_;
unsigned long long messageId_;
};
}

View File

@@ -50,7 +50,7 @@ void RRpcResult::parse(const std::string &payload)
if(!value["PayloadBase64Byte"].isNull())
payloadBase64Byte_ = value["PayloadBase64Byte"].asString();
if(!value["MessageId"].isNull())
messageId_ = std::stol(value["MessageId"].asString());
messageId_ = std::stoull(value["MessageId"].asString());
}

View File

@@ -33,6 +33,8 @@ set(waf-openapi_public_header_model
include/alibabacloud/waf-openapi/model/DeleteDomainResult.h
include/alibabacloud/waf-openapi/model/DeleteInstanceRequest.h
include/alibabacloud/waf-openapi/model/DeleteInstanceResult.h
include/alibabacloud/waf-openapi/model/DeleteProtectionModuleRuleRequest.h
include/alibabacloud/waf-openapi/model/DeleteProtectionModuleRuleResult.h
include/alibabacloud/waf-openapi/model/DescribeCertMatchStatusRequest.h
include/alibabacloud/waf-openapi/model/DescribeCertMatchStatusResult.h
include/alibabacloud/waf-openapi/model/DescribeCertificatesRequest.h
@@ -61,8 +63,6 @@ set(waf-openapi_public_header_model
include/alibabacloud/waf-openapi/model/DescribeProtectionModuleStatusResult.h
include/alibabacloud/waf-openapi/model/ModifyDomainRequest.h
include/alibabacloud/waf-openapi/model/ModifyDomainResult.h
include/alibabacloud/waf-openapi/model/ModifyDomainClusterTypeRequest.h
include/alibabacloud/waf-openapi/model/ModifyDomainClusterTypeResult.h
include/alibabacloud/waf-openapi/model/ModifyDomainIpv6StatusRequest.h
include/alibabacloud/waf-openapi/model/ModifyDomainIpv6StatusResult.h
include/alibabacloud/waf-openapi/model/ModifyLogRetrievalStatusRequest.h
@@ -96,6 +96,8 @@ set(waf-openapi_src
src/model/DeleteDomainResult.cc
src/model/DeleteInstanceRequest.cc
src/model/DeleteInstanceResult.cc
src/model/DeleteProtectionModuleRuleRequest.cc
src/model/DeleteProtectionModuleRuleResult.cc
src/model/DescribeCertMatchStatusRequest.cc
src/model/DescribeCertMatchStatusResult.cc
src/model/DescribeCertificatesRequest.cc
@@ -124,8 +126,6 @@ set(waf-openapi_src
src/model/DescribeProtectionModuleStatusResult.cc
src/model/ModifyDomainRequest.cc
src/model/ModifyDomainResult.cc
src/model/ModifyDomainClusterTypeRequest.cc
src/model/ModifyDomainClusterTypeResult.cc
src/model/ModifyDomainIpv6StatusRequest.cc
src/model/ModifyDomainIpv6StatusResult.cc
src/model/ModifyLogRetrievalStatusRequest.cc

View File

@@ -34,6 +34,8 @@
#include "model/DeleteDomainResult.h"
#include "model/DeleteInstanceRequest.h"
#include "model/DeleteInstanceResult.h"
#include "model/DeleteProtectionModuleRuleRequest.h"
#include "model/DeleteProtectionModuleRuleResult.h"
#include "model/DescribeCertMatchStatusRequest.h"
#include "model/DescribeCertMatchStatusResult.h"
#include "model/DescribeCertificatesRequest.h"
@@ -62,8 +64,6 @@
#include "model/DescribeProtectionModuleStatusResult.h"
#include "model/ModifyDomainRequest.h"
#include "model/ModifyDomainResult.h"
#include "model/ModifyDomainClusterTypeRequest.h"
#include "model/ModifyDomainClusterTypeResult.h"
#include "model/ModifyDomainIpv6StatusRequest.h"
#include "model/ModifyDomainIpv6StatusResult.h"
#include "model/ModifyLogRetrievalStatusRequest.h"
@@ -109,6 +109,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteInstanceResult> DeleteInstanceOutcome;
typedef std::future<DeleteInstanceOutcome> DeleteInstanceOutcomeCallable;
typedef std::function<void(const Waf_openapiClient*, const Model::DeleteInstanceRequest&, const DeleteInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteInstanceAsyncHandler;
typedef Outcome<Error, Model::DeleteProtectionModuleRuleResult> DeleteProtectionModuleRuleOutcome;
typedef std::future<DeleteProtectionModuleRuleOutcome> DeleteProtectionModuleRuleOutcomeCallable;
typedef std::function<void(const Waf_openapiClient*, const Model::DeleteProtectionModuleRuleRequest&, const DeleteProtectionModuleRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteProtectionModuleRuleAsyncHandler;
typedef Outcome<Error, Model::DescribeCertMatchStatusResult> DescribeCertMatchStatusOutcome;
typedef std::future<DescribeCertMatchStatusOutcome> DescribeCertMatchStatusOutcomeCallable;
typedef std::function<void(const Waf_openapiClient*, const Model::DescribeCertMatchStatusRequest&, const DescribeCertMatchStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCertMatchStatusAsyncHandler;
@@ -151,9 +154,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyDomainResult> ModifyDomainOutcome;
typedef std::future<ModifyDomainOutcome> ModifyDomainOutcomeCallable;
typedef std::function<void(const Waf_openapiClient*, const Model::ModifyDomainRequest&, const ModifyDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDomainAsyncHandler;
typedef Outcome<Error, Model::ModifyDomainClusterTypeResult> ModifyDomainClusterTypeOutcome;
typedef std::future<ModifyDomainClusterTypeOutcome> ModifyDomainClusterTypeOutcomeCallable;
typedef std::function<void(const Waf_openapiClient*, const Model::ModifyDomainClusterTypeRequest&, const ModifyDomainClusterTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDomainClusterTypeAsyncHandler;
typedef Outcome<Error, Model::ModifyDomainIpv6StatusResult> ModifyDomainIpv6StatusOutcome;
typedef std::future<ModifyDomainIpv6StatusOutcome> ModifyDomainIpv6StatusOutcomeCallable;
typedef std::function<void(const Waf_openapiClient*, const Model::ModifyDomainIpv6StatusRequest&, const ModifyDomainIpv6StatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDomainIpv6StatusAsyncHandler;
@@ -204,6 +204,9 @@ namespace AlibabaCloud
DeleteInstanceOutcome deleteInstance(const Model::DeleteInstanceRequest &request)const;
void deleteInstanceAsync(const Model::DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteInstanceOutcomeCallable deleteInstanceCallable(const Model::DeleteInstanceRequest& request) const;
DeleteProtectionModuleRuleOutcome deleteProtectionModuleRule(const Model::DeleteProtectionModuleRuleRequest &request)const;
void deleteProtectionModuleRuleAsync(const Model::DeleteProtectionModuleRuleRequest& request, const DeleteProtectionModuleRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteProtectionModuleRuleOutcomeCallable deleteProtectionModuleRuleCallable(const Model::DeleteProtectionModuleRuleRequest& request) const;
DescribeCertMatchStatusOutcome describeCertMatchStatus(const Model::DescribeCertMatchStatusRequest &request)const;
void describeCertMatchStatusAsync(const Model::DescribeCertMatchStatusRequest& request, const DescribeCertMatchStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCertMatchStatusOutcomeCallable describeCertMatchStatusCallable(const Model::DescribeCertMatchStatusRequest& request) const;
@@ -246,9 +249,6 @@ namespace AlibabaCloud
ModifyDomainOutcome modifyDomain(const Model::ModifyDomainRequest &request)const;
void modifyDomainAsync(const Model::ModifyDomainRequest& request, const ModifyDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDomainOutcomeCallable modifyDomainCallable(const Model::ModifyDomainRequest& request) const;
ModifyDomainClusterTypeOutcome modifyDomainClusterType(const Model::ModifyDomainClusterTypeRequest &request)const;
void modifyDomainClusterTypeAsync(const Model::ModifyDomainClusterTypeRequest& request, const ModifyDomainClusterTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDomainClusterTypeOutcomeCallable modifyDomainClusterTypeCallable(const Model::ModifyDomainClusterTypeRequest& request) const;
ModifyDomainIpv6StatusOutcome modifyDomainIpv6Status(const Model::ModifyDomainIpv6StatusRequest &request)const;
void modifyDomainIpv6StatusAsync(const Model::ModifyDomainIpv6StatusRequest& request, const ModifyDomainIpv6StatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDomainIpv6StatusOutcomeCallable modifyDomainIpv6StatusCallable(const Model::ModifyDomainIpv6StatusRequest& request) const;

View File

@@ -49,8 +49,6 @@ namespace AlibabaCloud
void setDomain(const std::string& domain);
std::string getCertificateName()const;
void setCertificateName(const std::string& certificateName);
long getHttpsCertId()const;
void setHttpsCertId(long httpsCertId);
private:
std::string certificate_;
@@ -60,7 +58,6 @@ namespace AlibabaCloud
std::string instanceId_;
std::string domain_;
std::string certificateName_;
long httpsCertId_;
};
}

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
CreateDomainRequest();
~CreateDomainRequest();
int getIpFollowStatus()const;
void setIpFollowStatus(int ipFollowStatus);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getSourceIp()const;
@@ -47,12 +49,16 @@ namespace AlibabaCloud
void setWriteTime(int writeTime);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getAccessType()const;
void setAccessType(const std::string& accessType);
std::string getLogHeaders()const;
void setLogHeaders(const std::string& logHeaders);
int getConnectionTime()const;
void setConnectionTime(int connectionTime);
int getClusterType()const;
void setClusterType(int clusterType);
std::string getCloudNativeInstances()const;
void setCloudNativeInstances(const std::string& cloudNativeInstances);
int getHttpsRedirect()const;
void setHttpsRedirect(int httpsRedirect);
std::string getInstanceId()const;
@@ -73,15 +79,18 @@ namespace AlibabaCloud
void setHttpToUserIp(int httpToUserIp);
private:
int ipFollowStatus_;
std::string resourceGroupId_;
std::string sourceIp_;
std::string httpPort_;
std::string http2Port_;
int writeTime_;
std::string lang_;
std::string accessType_;
std::string logHeaders_;
int connectionTime_;
int clusterType_;
std::string cloudNativeInstances_;
int httpsRedirect_;
std::string instanceId_;
std::string sourceIps_;

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_WAF_OPENAPI_MODEL_MODIFYDOMAINCLUSTERTYPEREQUEST_H_
#define ALIBABACLOUD_WAF_OPENAPI_MODEL_MODIFYDOMAINCLUSTERTYPEREQUEST_H_
#ifndef ALIBABACLOUD_WAF_OPENAPI_MODEL_DELETEPROTECTIONMODULERULEREQUEST_H_
#define ALIBABACLOUD_WAF_OPENAPI_MODEL_DELETEPROTECTIONMODULERULEREQUEST_H_
#include <string>
#include <vector>
@@ -28,30 +28,36 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_WAF_OPENAPI_EXPORT ModifyDomainClusterTypeRequest : public RpcServiceRequest
class ALIBABACLOUD_WAF_OPENAPI_EXPORT DeleteProtectionModuleRuleRequest : public RpcServiceRequest
{
public:
ModifyDomainClusterTypeRequest();
~ModifyDomainClusterTypeRequest();
DeleteProtectionModuleRuleRequest();
~DeleteProtectionModuleRuleRequest();
int getClusterType()const;
void setClusterType(int clusterType);
std::string getDefenseType()const;
void setDefenseType(const std::string& defenseType);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getDomain()const;
void setDomain(const std::string& domain);
std::string getLang()const;
void setLang(const std::string& lang);
long getRuleId()const;
void setRuleId(long ruleId);
private:
int clusterType_;
std::string defenseType_;
std::string instanceId_;
std::string sourceIp_;
std::string domain_;
std::string lang_;
long ruleId_;
};
}
}
}
#endif // !ALIBABACLOUD_WAF_OPENAPI_MODEL_MODIFYDOMAINCLUSTERTYPEREQUEST_H_
#endif // !ALIBABACLOUD_WAF_OPENAPI_MODEL_DELETEPROTECTIONMODULERULEREQUEST_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_WAF_OPENAPI_MODEL_MODIFYDOMAINCLUSTERTYPERESULT_H_
#define ALIBABACLOUD_WAF_OPENAPI_MODEL_MODIFYDOMAINCLUSTERTYPERESULT_H_
#ifndef ALIBABACLOUD_WAF_OPENAPI_MODEL_DELETEPROTECTIONMODULERULERESULT_H_
#define ALIBABACLOUD_WAF_OPENAPI_MODEL_DELETEPROTECTIONMODULERULERESULT_H_
#include <string>
#include <vector>
@@ -29,14 +29,14 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_WAF_OPENAPI_EXPORT ModifyDomainClusterTypeResult : public ServiceResult
class ALIBABACLOUD_WAF_OPENAPI_EXPORT DeleteProtectionModuleRuleResult : public ServiceResult
{
public:
ModifyDomainClusterTypeResult();
explicit ModifyDomainClusterTypeResult(const std::string &payload);
~ModifyDomainClusterTypeResult();
DeleteProtectionModuleRuleResult();
explicit DeleteProtectionModuleRuleResult(const std::string &payload);
~DeleteProtectionModuleRuleResult();
protected:
void parse(const std::string &payload);
@@ -46,4 +46,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_WAF_OPENAPI_MODEL_MODIFYDOMAINCLUSTERTYPERESULT_H_
#endif // !ALIBABACLOUD_WAF_OPENAPI_MODEL_DELETEPROTECTIONMODULERULERESULT_H_

View File

@@ -45,6 +45,10 @@ namespace AlibabaCloud
void setPageSize(int pageSize);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getAccessType()const;
void setAccessType(const std::string& accessType);
int getCloudNativeProductId()const;
void setCloudNativeProductId(int cloudNativeProductId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getDomainKey()const;
@@ -56,6 +60,8 @@ namespace AlibabaCloud
std::string sourceIp_;
int pageSize_;
std::string lang_;
std::string accessType_;
int cloudNativeProductId_;
std::string instanceId_;
std::string domainKey_;

View File

@@ -42,6 +42,7 @@ namespace AlibabaCloud
int wafMode;
int wafStatus;
std::string domain;
std::string accessType;
int ccMode;
};

View File

@@ -39,12 +39,25 @@ namespace AlibabaCloud
std::string v;
std::string k;
};
struct CloudNativeInstancesItem
{
struct ProtocolPortConfigsItem
{
std::string ports;
std::string protocol;
};
std::vector<CloudNativeInstancesItem::ProtocolPortConfigsItem> protocolPortConfigs;
std::string instanceId;
std::string iPAddressList;
std::string cloudNativeProductName;
};
int httpToUserIp;
std::vector<std::string> httpPort;
int isAccessProduct;
std::string resourceGroupId;
int readTime;
std::vector<std::string> sourceIps;
int ipFollowStatus;
int clusterType;
int loadBalancing;
std::string cname;
@@ -54,6 +67,8 @@ namespace AlibabaCloud
long version;
int httpsRedirect;
int connectionTime;
std::vector<CloudNativeInstancesItem> cloudNativeInstances;
std::string accessType;
std::vector<std::string> httpsPort;
};

View File

@@ -38,6 +38,7 @@ namespace AlibabaCloud
std::string subscriptionType;
int trial;
std::string instanceId;
std::string version;
int inDebt;
std::string region;
int remainDay;

View File

@@ -37,11 +37,13 @@ namespace AlibabaCloud
DescribeProtectionModuleModeResult();
explicit DescribeProtectionModuleModeResult(const std::string &payload);
~DescribeProtectionModuleModeResult();
int getLearnStatus()const;
int getMode()const;
protected:
void parse(const std::string &payload);
private:
int learnStatus_;
int mode_;
};

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
ModifyDomainRequest();
~ModifyDomainRequest();
int getIpFollowStatus()const;
void setIpFollowStatus(int ipFollowStatus);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
int getXffHeaderMode()const;
@@ -49,6 +51,8 @@ namespace AlibabaCloud
void setLang(const std::string& lang);
std::string getXffHeaders()const;
void setXffHeaders(const std::string& xffHeaders);
std::string getAccessType()const;
void setAccessType(const std::string& accessType);
int getBindingIpv6()const;
void setBindingIpv6(int bindingIpv6);
std::string getLogHeaders()const;
@@ -57,6 +61,8 @@ namespace AlibabaCloud
void setConnectionTime(int connectionTime);
int getClusterType()const;
void setClusterType(int clusterType);
std::string getCloudNativeInstances()const;
void setCloudNativeInstances(const std::string& cloudNativeInstances);
int getHttpsRedirect()const;
void setHttpsRedirect(int httpsRedirect);
std::string getInstanceId()const;
@@ -77,6 +83,7 @@ namespace AlibabaCloud
void setHttpToUserIp(int httpToUserIp);
private:
int ipFollowStatus_;
std::string sourceIp_;
int xffHeaderMode_;
std::string httpPort_;
@@ -84,10 +91,12 @@ namespace AlibabaCloud
int writeTime_;
std::string lang_;
std::string xffHeaders_;
std::string accessType_;
int bindingIpv6_;
std::string logHeaders_;
int connectionTime_;
int clusterType_;
std::string cloudNativeInstances_;
int httpsRedirect_;
std::string instanceId_;
std::string sourceIps_;

View File

@@ -267,6 +267,42 @@ Waf_openapiClient::DeleteInstanceOutcomeCallable Waf_openapiClient::deleteInstan
return task->get_future();
}
Waf_openapiClient::DeleteProtectionModuleRuleOutcome Waf_openapiClient::deleteProtectionModuleRule(const DeleteProtectionModuleRuleRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteProtectionModuleRuleOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteProtectionModuleRuleOutcome(DeleteProtectionModuleRuleResult(outcome.result()));
else
return DeleteProtectionModuleRuleOutcome(outcome.error());
}
void Waf_openapiClient::deleteProtectionModuleRuleAsync(const DeleteProtectionModuleRuleRequest& request, const DeleteProtectionModuleRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteProtectionModuleRule(request), context);
};
asyncExecute(new Runnable(fn));
}
Waf_openapiClient::DeleteProtectionModuleRuleOutcomeCallable Waf_openapiClient::deleteProtectionModuleRuleCallable(const DeleteProtectionModuleRuleRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteProtectionModuleRuleOutcome()>>(
[this, request]()
{
return this->deleteProtectionModuleRule(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Waf_openapiClient::DescribeCertMatchStatusOutcome Waf_openapiClient::describeCertMatchStatus(const DescribeCertMatchStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -771,42 +807,6 @@ Waf_openapiClient::ModifyDomainOutcomeCallable Waf_openapiClient::modifyDomainCa
return task->get_future();
}
Waf_openapiClient::ModifyDomainClusterTypeOutcome Waf_openapiClient::modifyDomainClusterType(const ModifyDomainClusterTypeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyDomainClusterTypeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyDomainClusterTypeOutcome(ModifyDomainClusterTypeResult(outcome.result()));
else
return ModifyDomainClusterTypeOutcome(outcome.error());
}
void Waf_openapiClient::modifyDomainClusterTypeAsync(const ModifyDomainClusterTypeRequest& request, const ModifyDomainClusterTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyDomainClusterType(request), context);
};
asyncExecute(new Runnable(fn));
}
Waf_openapiClient::ModifyDomainClusterTypeOutcomeCallable Waf_openapiClient::modifyDomainClusterTypeCallable(const ModifyDomainClusterTypeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyDomainClusterTypeOutcome()>>(
[this, request]()
{
return this->modifyDomainClusterType(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Waf_openapiClient::ModifyDomainIpv6StatusOutcome Waf_openapiClient::modifyDomainIpv6Status(const ModifyDomainIpv6StatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -104,14 +104,3 @@ void CreateCertificateRequest::setCertificateName(const std::string& certificate
setParameter("CertificateName", certificateName);
}
long CreateCertificateRequest::getHttpsCertId()const
{
return httpsCertId_;
}
void CreateCertificateRequest::setHttpsCertId(long httpsCertId)
{
httpsCertId_ = httpsCertId;
setParameter("HttpsCertId", std::to_string(httpsCertId));
}

View File

@@ -27,6 +27,17 @@ CreateDomainRequest::CreateDomainRequest() :
CreateDomainRequest::~CreateDomainRequest()
{}
int CreateDomainRequest::getIpFollowStatus()const
{
return ipFollowStatus_;
}
void CreateDomainRequest::setIpFollowStatus(int ipFollowStatus)
{
ipFollowStatus_ = ipFollowStatus;
setParameter("IpFollowStatus", std::to_string(ipFollowStatus));
}
std::string CreateDomainRequest::getResourceGroupId()const
{
return resourceGroupId_;
@@ -93,6 +104,17 @@ void CreateDomainRequest::setLang(const std::string& lang)
setParameter("Lang", lang);
}
std::string CreateDomainRequest::getAccessType()const
{
return accessType_;
}
void CreateDomainRequest::setAccessType(const std::string& accessType)
{
accessType_ = accessType;
setParameter("AccessType", accessType);
}
std::string CreateDomainRequest::getLogHeaders()const
{
return logHeaders_;
@@ -126,6 +148,17 @@ void CreateDomainRequest::setClusterType(int clusterType)
setParameter("ClusterType", std::to_string(clusterType));
}
std::string CreateDomainRequest::getCloudNativeInstances()const
{
return cloudNativeInstances_;
}
void CreateDomainRequest::setCloudNativeInstances(const std::string& cloudNativeInstances)
{
cloudNativeInstances_ = cloudNativeInstances;
setParameter("CloudNativeInstances", cloudNativeInstances);
}
int CreateDomainRequest::getHttpsRedirect()const
{
return httpsRedirect_;

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DeleteProtectionModuleRuleRequest.h>
using AlibabaCloud::Waf_openapi::Model::DeleteProtectionModuleRuleRequest;
DeleteProtectionModuleRuleRequest::DeleteProtectionModuleRuleRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DeleteProtectionModuleRule")
{
setMethod(HttpRequest::Method::Post);
}
DeleteProtectionModuleRuleRequest::~DeleteProtectionModuleRuleRequest()
{}
std::string DeleteProtectionModuleRuleRequest::getDefenseType()const
{
return defenseType_;
}
void DeleteProtectionModuleRuleRequest::setDefenseType(const std::string& defenseType)
{
defenseType_ = defenseType;
setParameter("DefenseType", defenseType);
}
std::string DeleteProtectionModuleRuleRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteProtectionModuleRuleRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DeleteProtectionModuleRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteProtectionModuleRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DeleteProtectionModuleRuleRequest::getDomain()const
{
return domain_;
}
void DeleteProtectionModuleRuleRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string DeleteProtectionModuleRuleRequest::getLang()const
{
return lang_;
}
void DeleteProtectionModuleRuleRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
long DeleteProtectionModuleRuleRequest::getRuleId()const
{
return ruleId_;
}
void DeleteProtectionModuleRuleRequest::setRuleId(long ruleId)
{
ruleId_ = ruleId;
setParameter("RuleId", std::to_string(ruleId));
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/ModifyDomainClusterTypeResult.h>
#include <alibabacloud/waf-openapi/model/DeleteProtectionModuleRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Waf_openapi;
using namespace AlibabaCloud::Waf_openapi::Model;
ModifyDomainClusterTypeResult::ModifyDomainClusterTypeResult() :
DeleteProtectionModuleRuleResult::DeleteProtectionModuleRuleResult() :
ServiceResult()
{}
ModifyDomainClusterTypeResult::ModifyDomainClusterTypeResult(const std::string &payload) :
DeleteProtectionModuleRuleResult::DeleteProtectionModuleRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDomainClusterTypeResult::~ModifyDomainClusterTypeResult()
DeleteProtectionModuleRuleResult::~DeleteProtectionModuleRuleResult()
{}
void ModifyDomainClusterTypeResult::parse(const std::string &payload)
void DeleteProtectionModuleRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;

View File

@@ -82,6 +82,28 @@ void DescribeDomainBasicConfigsRequest::setLang(const std::string& lang)
setParameter("Lang", lang);
}
std::string DescribeDomainBasicConfigsRequest::getAccessType()const
{
return accessType_;
}
void DescribeDomainBasicConfigsRequest::setAccessType(const std::string& accessType)
{
accessType_ = accessType;
setParameter("AccessType", accessType);
}
int DescribeDomainBasicConfigsRequest::getCloudNativeProductId()const
{
return cloudNativeProductId_;
}
void DescribeDomainBasicConfigsRequest::setCloudNativeProductId(int cloudNativeProductId)
{
cloudNativeProductId_ = cloudNativeProductId;
setParameter("CloudNativeProductId", std::to_string(cloudNativeProductId));
}
std::string DescribeDomainBasicConfigsRequest::getInstanceId()const
{
return instanceId_;

View File

@@ -61,6 +61,8 @@ void DescribeDomainBasicConfigsResult::parse(const std::string &payload)
domainConfigsObject.domain = valueDomainConfigsDomainConfig["Domain"].asString();
if(!valueDomainConfigsDomainConfig["Status"].isNull())
domainConfigsObject.status = std::stoi(valueDomainConfigsDomainConfig["Status"].asString());
if(!valueDomainConfigsDomainConfig["AccessType"].isNull())
domainConfigsObject.accessType = valueDomainConfigsDomainConfig["AccessType"].asString();
domainConfigs_.push_back(domainConfigsObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -40,6 +40,8 @@ void DescribeDomainResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto domainNode = value["Domain"];
if(!domainNode["IpFollowStatus"].isNull())
domain_.ipFollowStatus = std::stoi(domainNode["IpFollowStatus"].asString());
if(!domainNode["HttpToUserIp"].isNull())
domain_.httpToUserIp = std::stoi(domainNode["HttpToUserIp"].asString());
if(!domainNode["HttpsRedirect"].isNull())
@@ -62,6 +64,8 @@ void DescribeDomainResult::parse(const std::string &payload)
domain_.writeTime = std::stoi(domainNode["WriteTime"].asString());
if(!domainNode["ResourceGroupId"].isNull())
domain_.resourceGroupId = domainNode["ResourceGroupId"].asString();
if(!domainNode["AccessType"].isNull())
domain_.accessType = domainNode["AccessType"].asString();
auto allLogHeadersNode = domainNode["LogHeaders"]["LogHeader"];
for (auto domainNodeLogHeadersLogHeader : allLogHeadersNode)
{
@@ -71,6 +75,28 @@ void DescribeDomainResult::parse(const std::string &payload)
if(!domainNodeLogHeadersLogHeader["k"].isNull())
logHeaderObject.k = domainNodeLogHeadersLogHeader["k"].asString();
domain_.logHeaders.push_back(logHeaderObject);
}
auto allCloudNativeInstancesNode = domainNode["CloudNativeInstances"]["CloudNativeInstancesItem"];
for (auto domainNodeCloudNativeInstancesCloudNativeInstancesItem : allCloudNativeInstancesNode)
{
Domain::CloudNativeInstancesItem cloudNativeInstancesItemObject;
if(!domainNodeCloudNativeInstancesCloudNativeInstancesItem["CloudNativeProductName"].isNull())
cloudNativeInstancesItemObject.cloudNativeProductName = domainNodeCloudNativeInstancesCloudNativeInstancesItem["CloudNativeProductName"].asString();
if(!domainNodeCloudNativeInstancesCloudNativeInstancesItem["InstanceId"].isNull())
cloudNativeInstancesItemObject.instanceId = domainNodeCloudNativeInstancesCloudNativeInstancesItem["InstanceId"].asString();
if(!domainNodeCloudNativeInstancesCloudNativeInstancesItem["IPAddressList"].isNull())
cloudNativeInstancesItemObject.iPAddressList = domainNodeCloudNativeInstancesCloudNativeInstancesItem["IPAddressList"].asString();
auto allProtocolPortConfigsNode = domainNodeCloudNativeInstancesCloudNativeInstancesItem["ProtocolPortConfigs"]["ProtocolPortConfigsItem"];
for (auto domainNodeCloudNativeInstancesCloudNativeInstancesItemProtocolPortConfigsProtocolPortConfigsItem : allProtocolPortConfigsNode)
{
Domain::CloudNativeInstancesItem::ProtocolPortConfigsItem protocolPortConfigsObject;
if(!domainNodeCloudNativeInstancesCloudNativeInstancesItemProtocolPortConfigsProtocolPortConfigsItem["Protocol"].isNull())
protocolPortConfigsObject.protocol = domainNodeCloudNativeInstancesCloudNativeInstancesItemProtocolPortConfigsProtocolPortConfigsItem["Protocol"].asString();
if(!domainNodeCloudNativeInstancesCloudNativeInstancesItemProtocolPortConfigsProtocolPortConfigsItem["Ports"].isNull())
protocolPortConfigsObject.ports = domainNodeCloudNativeInstancesCloudNativeInstancesItemProtocolPortConfigsProtocolPortConfigsItem["Ports"].asString();
cloudNativeInstancesItemObject.protocolPortConfigs.push_back(protocolPortConfigsObject);
}
domain_.cloudNativeInstances.push_back(cloudNativeInstancesItemObject);
}
auto allSourceIps = domainNode["SourceIps"]["SourceIp"];
for (auto value : allSourceIps)

View File

@@ -58,6 +58,8 @@ void DescribeInstanceInfoResult::parse(const std::string &payload)
instanceInfo_.status = std::stoi(instanceInfoNode["Status"].asString());
if(!instanceInfoNode["SubscriptionType"].isNull())
instanceInfo_.subscriptionType = instanceInfoNode["SubscriptionType"].asString();
if(!instanceInfoNode["Version"].isNull())
instanceInfo_.version = instanceInfoNode["Version"].asString();
}

View File

@@ -41,9 +41,16 @@ void DescribeProtectionModuleModeResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["Mode"].isNull())
mode_ = std::stoi(value["Mode"].asString());
if(!value["LearnStatus"].isNull())
learnStatus_ = std::stoi(value["LearnStatus"].asString());
}
int DescribeProtectionModuleModeResult::getLearnStatus()const
{
return learnStatus_;
}
int DescribeProtectionModuleModeResult::getMode()const
{
return mode_;

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/ModifyDomainClusterTypeRequest.h>
using AlibabaCloud::Waf_openapi::Model::ModifyDomainClusterTypeRequest;
ModifyDomainClusterTypeRequest::ModifyDomainClusterTypeRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "ModifyDomainClusterType")
{
setMethod(HttpRequest::Method::Post);
}
ModifyDomainClusterTypeRequest::~ModifyDomainClusterTypeRequest()
{}
int ModifyDomainClusterTypeRequest::getClusterType()const
{
return clusterType_;
}
void ModifyDomainClusterTypeRequest::setClusterType(int clusterType)
{
clusterType_ = clusterType;
setParameter("ClusterType", std::to_string(clusterType));
}
std::string ModifyDomainClusterTypeRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyDomainClusterTypeRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ModifyDomainClusterTypeRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyDomainClusterTypeRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string ModifyDomainClusterTypeRequest::getDomain()const
{
return domain_;
}
void ModifyDomainClusterTypeRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

View File

@@ -27,6 +27,17 @@ ModifyDomainRequest::ModifyDomainRequest() :
ModifyDomainRequest::~ModifyDomainRequest()
{}
int ModifyDomainRequest::getIpFollowStatus()const
{
return ipFollowStatus_;
}
void ModifyDomainRequest::setIpFollowStatus(int ipFollowStatus)
{
ipFollowStatus_ = ipFollowStatus;
setParameter("IpFollowStatus", std::to_string(ipFollowStatus));
}
std::string ModifyDomainRequest::getSourceIp()const
{
return sourceIp_;
@@ -104,6 +115,17 @@ void ModifyDomainRequest::setXffHeaders(const std::string& xffHeaders)
setParameter("XffHeaders", xffHeaders);
}
std::string ModifyDomainRequest::getAccessType()const
{
return accessType_;
}
void ModifyDomainRequest::setAccessType(const std::string& accessType)
{
accessType_ = accessType;
setParameter("AccessType", accessType);
}
int ModifyDomainRequest::getBindingIpv6()const
{
return bindingIpv6_;
@@ -148,6 +170,17 @@ void ModifyDomainRequest::setClusterType(int clusterType)
setParameter("ClusterType", std::to_string(clusterType));
}
std::string ModifyDomainRequest::getCloudNativeInstances()const
{
return cloudNativeInstances_;
}
void ModifyDomainRequest::setCloudNativeInstances(const std::string& cloudNativeInstances)
{
cloudNativeInstances_ = cloudNativeInstances;
setParameter("CloudNativeInstances", cloudNativeInstances);
}
int ModifyDomainRequest::getHttpsRedirect()const
{
return httpsRedirect_;