Compare commits
15 Commits
Green-patc
...
fnf-patch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aca0a3efa8 | ||
|
|
98c36e9bab | ||
|
|
b84d1c59fa | ||
|
|
c2dc12f92b | ||
|
|
efb0804bf2 | ||
|
|
0e778cd17c | ||
|
|
78d79a3d5b | ||
|
|
5a1415f6e3 | ||
|
|
7f24d410fd | ||
|
|
de9c7e0bd2 | ||
|
|
9d2395215f | ||
|
|
757d3d8922 | ||
|
|
a0af363375 | ||
|
|
a76d21c518 | ||
|
|
b04b7f6033 |
44
CHANGELOG
44
CHANGELOG
@@ -1,3 +1,47 @@
|
||||
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.
|
||||
|
||||
2020-11-18 Version: patch
|
||||
- DescribeInstance support coldStorageSize.
|
||||
|
||||
2020-11-18 Version: patch
|
||||
- Update DescribeDedicatedClusterInstanceList InstanceStatus type.
|
||||
|
||||
2020-11-18 Version: patch
|
||||
- Generated 2018-01-11 for `rtc`.
|
||||
|
||||
2020-11-18 Version: patch
|
||||
- Supported webpage scan.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -14,41 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULEREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeMAURuleRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeMAURuleRequest();
|
||||
~DescribeMAURuleRequest();
|
||||
OpenAlimtServiceRequest();
|
||||
~OpenAlimtServiceRequest();
|
||||
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
|
||||
private:
|
||||
std::string showLog_;
|
||||
long ownerId_;
|
||||
std::string appId_;
|
||||
std::string type_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_CREATEMAURULERESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_CREATEMAURULERESULT_H_
|
||||
#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/rtc/RtcExport.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT CreateMAURuleResult : public ServiceResult
|
||||
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateMAURuleResult();
|
||||
explicit CreateMAURuleResult(const std::string &payload);
|
||||
~CreateMAURuleResult();
|
||||
long getRuleId()const;
|
||||
OpenAlimtServiceResult();
|
||||
explicit OpenAlimtServiceResult(const std::string &payload);
|
||||
~OpenAlimtServiceResult();
|
||||
std::string getOrderId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long ruleId_;
|
||||
std::string orderId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_CREATEMAURULERESULT_H_
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICERESULT_H_
|
||||
@@ -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();
|
||||
|
||||
51
alimt/src/model/OpenAlimtServiceRequest.cc
Normal file
51
alimt/src/model/OpenAlimtServiceRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/CreateMAURuleResult.h>
|
||||
#include <alibabacloud/alimt/model/OpenAlimtServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
CreateMAURuleResult::CreateMAURuleResult() :
|
||||
OpenAlimtServiceResult::OpenAlimtServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMAURuleResult::CreateMAURuleResult(const std::string &payload) :
|
||||
OpenAlimtServiceResult::OpenAlimtServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMAURuleResult::~CreateMAURuleResult()
|
||||
OpenAlimtServiceResult::~OpenAlimtServiceResult()
|
||||
{}
|
||||
|
||||
void CreateMAURuleResult::parse(const std::string &payload)
|
||||
void OpenAlimtServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RuleId"].isNull())
|
||||
ruleId_ = std::stol(value["RuleId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
long CreateMAURuleResult::getRuleId()const
|
||||
std::string OpenAlimtServiceResult::getOrderId()const
|
||||
{
|
||||
return ruleId_;
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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"];
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -45,12 +45,14 @@ 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;
|
||||
void setPageSize(int pageSize);
|
||||
int getInstanceStatus()const;
|
||||
void setInstanceStatus(int instanceStatus);
|
||||
std::string getInstanceStatus()const;
|
||||
void setInstanceStatus(const std::string& instanceStatus);
|
||||
std::string getDedicatedHostName()const;
|
||||
void setDedicatedHostName(const std::string& dedicatedHostName);
|
||||
std::string getResourceOwnerAccount()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,9 +78,10 @@ namespace AlibabaCloud
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
std::string engine_;
|
||||
int pageSize_;
|
||||
int instanceStatus_;
|
||||
std::string instanceStatus_;
|
||||
std::string dedicatedHostName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
@@ -82,6 +89,8 @@ namespace AlibabaCloud
|
||||
std::string clusterId_;
|
||||
long ownerId_;
|
||||
std::string instanceId_;
|
||||
std::string zoneId_;
|
||||
std::string region_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace AlibabaCloud
|
||||
std::string instanceId;
|
||||
std::string createTime;
|
||||
std::string instanceClass;
|
||||
int characterType;
|
||||
std::string characterType;
|
||||
std::string vswitchId;
|
||||
std::string instanceName;
|
||||
std::string connectionDomain;
|
||||
|
||||
@@ -41,20 +41,26 @@ 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 getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string zoneId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -45,42 +45,42 @@ void DescribeAvailableResourceResult::parse(const std::string &payload)
|
||||
SupportedDBType supportedDBTypesObject;
|
||||
if(!valueSupportedDBTypesSupportedDBType["DbType"].isNull())
|
||||
supportedDBTypesObject.dbType = valueSupportedDBTypesSupportedDBType["DbType"].asString();
|
||||
auto allAvailableZonesNode = allSupportedDBTypesNode["AvailableZones"]["AvailableZone"];
|
||||
for (auto allSupportedDBTypesNodeAvailableZonesAvailableZone : allAvailableZonesNode)
|
||||
auto allAvailableZonesNode = valueSupportedDBTypesSupportedDBType["AvailableZones"]["AvailableZone"];
|
||||
for (auto valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZone : allAvailableZonesNode)
|
||||
{
|
||||
SupportedDBType::AvailableZone availableZonesObject;
|
||||
if(!allSupportedDBTypesNodeAvailableZonesAvailableZone["RegionId"].isNull())
|
||||
availableZonesObject.regionId = allSupportedDBTypesNodeAvailableZonesAvailableZone["RegionId"].asString();
|
||||
if(!allSupportedDBTypesNodeAvailableZonesAvailableZone["ZoneId"].isNull())
|
||||
availableZonesObject.zoneId = allSupportedDBTypesNodeAvailableZonesAvailableZone["ZoneId"].asString();
|
||||
auto allSupportedEngineVersionsNode = allAvailableZonesNode["SupportedEngineVersions"]["SupportedEngineVersion"];
|
||||
for (auto allAvailableZonesNodeSupportedEngineVersionsSupportedEngineVersion : allSupportedEngineVersionsNode)
|
||||
if(!valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZone["RegionId"].isNull())
|
||||
availableZonesObject.regionId = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZone["RegionId"].asString();
|
||||
if(!valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZone["ZoneId"].isNull())
|
||||
availableZonesObject.zoneId = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZone["ZoneId"].asString();
|
||||
auto allSupportedEngineVersionsNode = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZone["SupportedEngineVersions"]["SupportedEngineVersion"];
|
||||
for (auto valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersion : allSupportedEngineVersionsNode)
|
||||
{
|
||||
SupportedDBType::AvailableZone::SupportedEngineVersion supportedEngineVersionsObject;
|
||||
if(!allAvailableZonesNodeSupportedEngineVersionsSupportedEngineVersion["Version"].isNull())
|
||||
supportedEngineVersionsObject.version = allAvailableZonesNodeSupportedEngineVersionsSupportedEngineVersion["Version"].asString();
|
||||
auto allSupportedEnginesNode = allSupportedEngineVersionsNode["SupportedEngines"]["SupportedEngine"];
|
||||
for (auto allSupportedEngineVersionsNodeSupportedEnginesSupportedEngine : allSupportedEnginesNode)
|
||||
if(!valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersion["Version"].isNull())
|
||||
supportedEngineVersionsObject.version = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersion["Version"].asString();
|
||||
auto allSupportedEnginesNode = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersion["SupportedEngines"]["SupportedEngine"];
|
||||
for (auto valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngine : allSupportedEnginesNode)
|
||||
{
|
||||
SupportedDBType::AvailableZone::SupportedEngineVersion::SupportedEngine supportedEnginesObject;
|
||||
if(!allSupportedEngineVersionsNodeSupportedEnginesSupportedEngine["Engine"].isNull())
|
||||
supportedEnginesObject.engine = allSupportedEngineVersionsNodeSupportedEnginesSupportedEngine["Engine"].asString();
|
||||
auto allSupportedNodeTypesNode = allSupportedEnginesNode["SupportedNodeTypes"]["SupportedNodeType"];
|
||||
for (auto allSupportedEnginesNodeSupportedNodeTypesSupportedNodeType : allSupportedNodeTypesNode)
|
||||
if(!valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngine["Engine"].isNull())
|
||||
supportedEnginesObject.engine = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngine["Engine"].asString();
|
||||
auto allSupportedNodeTypesNode = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngine["SupportedNodeTypes"]["SupportedNodeType"];
|
||||
for (auto valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeType : allSupportedNodeTypesNode)
|
||||
{
|
||||
SupportedDBType::AvailableZone::SupportedEngineVersion::SupportedEngine::SupportedNodeType supportedNodeTypesObject;
|
||||
if(!allSupportedEnginesNodeSupportedNodeTypesSupportedNodeType["NodeType"].isNull())
|
||||
supportedNodeTypesObject.nodeType = allSupportedEnginesNodeSupportedNodeTypesSupportedNodeType["NodeType"].asString();
|
||||
if(!allSupportedEnginesNodeSupportedNodeTypesSupportedNodeType["NetworkTypes"].isNull())
|
||||
supportedNodeTypesObject.networkTypes = allSupportedEnginesNodeSupportedNodeTypesSupportedNodeType["NetworkTypes"].asString();
|
||||
auto allAvailableResourcesNode = allSupportedNodeTypesNode["AvailableResources"]["AvailableResource"];
|
||||
for (auto allSupportedNodeTypesNodeAvailableResourcesAvailableResource : allAvailableResourcesNode)
|
||||
if(!valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeType["NodeType"].isNull())
|
||||
supportedNodeTypesObject.nodeType = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeType["NodeType"].asString();
|
||||
if(!valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeType["NetworkTypes"].isNull())
|
||||
supportedNodeTypesObject.networkTypes = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeType["NetworkTypes"].asString();
|
||||
auto allAvailableResourcesNode = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeType["AvailableResources"]["AvailableResource"];
|
||||
for (auto valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeTypeAvailableResourcesAvailableResource : allAvailableResourcesNode)
|
||||
{
|
||||
SupportedDBType::AvailableZone::SupportedEngineVersion::SupportedEngine::SupportedNodeType::AvailableResource availableResourcesObject;
|
||||
if(!allSupportedNodeTypesNodeAvailableResourcesAvailableResource["InstanceClass"].isNull())
|
||||
availableResourcesObject.instanceClass = allSupportedNodeTypesNodeAvailableResourcesAvailableResource["InstanceClass"].asString();
|
||||
if(!allSupportedNodeTypesNodeAvailableResourcesAvailableResource["InstanceClassRemark"].isNull())
|
||||
availableResourcesObject.instanceClassRemark = allSupportedNodeTypesNodeAvailableResourcesAvailableResource["InstanceClassRemark"].asString();
|
||||
if(!valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeTypeAvailableResourcesAvailableResource["InstanceClass"].isNull())
|
||||
availableResourcesObject.instanceClass = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeTypeAvailableResourcesAvailableResource["InstanceClass"].asString();
|
||||
if(!valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeTypeAvailableResourcesAvailableResource["InstanceClassRemark"].isNull())
|
||||
availableResourcesObject.instanceClassRemark = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeTypeAvailableResourcesAvailableResource["InstanceClassRemark"].asString();
|
||||
supportedNodeTypesObject.availableResources.push_back(availableResourcesObject);
|
||||
}
|
||||
supportedEnginesObject.supportedNodeTypes.push_back(supportedNodeTypesObject);
|
||||
|
||||
@@ -111,104 +111,104 @@ void DescribeDBInstanceAttributeResult::parse(const std::string &payload)
|
||||
dBInstancesObject.vpcAuthMode = valueDBInstancesDBInstance["VpcAuthMode"].asString();
|
||||
if(!valueDBInstancesDBInstance["DBInstanceReleaseProtection"].isNull())
|
||||
dBInstancesObject.dBInstanceReleaseProtection = valueDBInstancesDBInstance["DBInstanceReleaseProtection"].asString() == "true";
|
||||
auto allMongosListNode = allDBInstancesNode["MongosList"]["MongosAttribute"];
|
||||
for (auto allDBInstancesNodeMongosListMongosAttribute : allMongosListNode)
|
||||
auto allMongosListNode = valueDBInstancesDBInstance["MongosList"]["MongosAttribute"];
|
||||
for (auto valueDBInstancesDBInstanceMongosListMongosAttribute : allMongosListNode)
|
||||
{
|
||||
DBInstance::MongosAttribute mongosListObject;
|
||||
if(!allDBInstancesNodeMongosListMongosAttribute["NodeId"].isNull())
|
||||
mongosListObject.nodeId = allDBInstancesNodeMongosListMongosAttribute["NodeId"].asString();
|
||||
if(!allDBInstancesNodeMongosListMongosAttribute["NodeDescription"].isNull())
|
||||
mongosListObject.nodeDescription = allDBInstancesNodeMongosListMongosAttribute["NodeDescription"].asString();
|
||||
if(!allDBInstancesNodeMongosListMongosAttribute["NodeClass"].isNull())
|
||||
mongosListObject.nodeClass = allDBInstancesNodeMongosListMongosAttribute["NodeClass"].asString();
|
||||
if(!allDBInstancesNodeMongosListMongosAttribute["ConnectSting"].isNull())
|
||||
mongosListObject.connectSting = allDBInstancesNodeMongosListMongosAttribute["ConnectSting"].asString();
|
||||
if(!allDBInstancesNodeMongosListMongosAttribute["MaxIOPS"].isNull())
|
||||
mongosListObject.maxIOPS = std::stoi(allDBInstancesNodeMongosListMongosAttribute["MaxIOPS"].asString());
|
||||
if(!allDBInstancesNodeMongosListMongosAttribute["MaxConnections"].isNull())
|
||||
mongosListObject.maxConnections = std::stoi(allDBInstancesNodeMongosListMongosAttribute["MaxConnections"].asString());
|
||||
if(!allDBInstancesNodeMongosListMongosAttribute["Port"].isNull())
|
||||
mongosListObject.port = std::stoi(allDBInstancesNodeMongosListMongosAttribute["Port"].asString());
|
||||
if(!allDBInstancesNodeMongosListMongosAttribute["VpcCloudInstanceId"].isNull())
|
||||
mongosListObject.vpcCloudInstanceId = allDBInstancesNodeMongosListMongosAttribute["VpcCloudInstanceId"].asString();
|
||||
if(!allDBInstancesNodeMongosListMongosAttribute["VPCId"].isNull())
|
||||
mongosListObject.vPCId = allDBInstancesNodeMongosListMongosAttribute["VPCId"].asString();
|
||||
if(!allDBInstancesNodeMongosListMongosAttribute["VSwitchId"].isNull())
|
||||
mongosListObject.vSwitchId = allDBInstancesNodeMongosListMongosAttribute["VSwitchId"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeId"].isNull())
|
||||
mongosListObject.nodeId = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeId"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeDescription"].isNull())
|
||||
mongosListObject.nodeDescription = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeDescription"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeClass"].isNull())
|
||||
mongosListObject.nodeClass = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeClass"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["ConnectSting"].isNull())
|
||||
mongosListObject.connectSting = valueDBInstancesDBInstanceMongosListMongosAttribute["ConnectSting"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["MaxIOPS"].isNull())
|
||||
mongosListObject.maxIOPS = std::stoi(valueDBInstancesDBInstanceMongosListMongosAttribute["MaxIOPS"].asString());
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["MaxConnections"].isNull())
|
||||
mongosListObject.maxConnections = std::stoi(valueDBInstancesDBInstanceMongosListMongosAttribute["MaxConnections"].asString());
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["Port"].isNull())
|
||||
mongosListObject.port = std::stoi(valueDBInstancesDBInstanceMongosListMongosAttribute["Port"].asString());
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["VpcCloudInstanceId"].isNull())
|
||||
mongosListObject.vpcCloudInstanceId = valueDBInstancesDBInstanceMongosListMongosAttribute["VpcCloudInstanceId"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["VPCId"].isNull())
|
||||
mongosListObject.vPCId = valueDBInstancesDBInstanceMongosListMongosAttribute["VPCId"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["VSwitchId"].isNull())
|
||||
mongosListObject.vSwitchId = valueDBInstancesDBInstanceMongosListMongosAttribute["VSwitchId"].asString();
|
||||
dBInstancesObject.mongosList.push_back(mongosListObject);
|
||||
}
|
||||
auto allShardListNode = allDBInstancesNode["ShardList"]["ShardAttribute"];
|
||||
for (auto allDBInstancesNodeShardListShardAttribute : allShardListNode)
|
||||
auto allShardListNode = valueDBInstancesDBInstance["ShardList"]["ShardAttribute"];
|
||||
for (auto valueDBInstancesDBInstanceShardListShardAttribute : allShardListNode)
|
||||
{
|
||||
DBInstance::ShardAttribute shardListObject;
|
||||
if(!allDBInstancesNodeShardListShardAttribute["NodeId"].isNull())
|
||||
shardListObject.nodeId = allDBInstancesNodeShardListShardAttribute["NodeId"].asString();
|
||||
if(!allDBInstancesNodeShardListShardAttribute["NodeDescription"].isNull())
|
||||
shardListObject.nodeDescription = allDBInstancesNodeShardListShardAttribute["NodeDescription"].asString();
|
||||
if(!allDBInstancesNodeShardListShardAttribute["NodeClass"].isNull())
|
||||
shardListObject.nodeClass = allDBInstancesNodeShardListShardAttribute["NodeClass"].asString();
|
||||
if(!allDBInstancesNodeShardListShardAttribute["NodeStorage"].isNull())
|
||||
shardListObject.nodeStorage = std::stoi(allDBInstancesNodeShardListShardAttribute["NodeStorage"].asString());
|
||||
if(!allDBInstancesNodeShardListShardAttribute["MaxIOPS"].isNull())
|
||||
shardListObject.maxIOPS = std::stoi(allDBInstancesNodeShardListShardAttribute["MaxIOPS"].asString());
|
||||
if(!allDBInstancesNodeShardListShardAttribute["MaxConnections"].isNull())
|
||||
shardListObject.maxConnections = std::stoi(allDBInstancesNodeShardListShardAttribute["MaxConnections"].asString());
|
||||
if(!allDBInstancesNodeShardListShardAttribute["ConnectString"].isNull())
|
||||
shardListObject.connectString = allDBInstancesNodeShardListShardAttribute["ConnectString"].asString();
|
||||
if(!allDBInstancesNodeShardListShardAttribute["Port"].isNull())
|
||||
shardListObject.port = std::stoi(allDBInstancesNodeShardListShardAttribute["Port"].asString());
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeId"].isNull())
|
||||
shardListObject.nodeId = valueDBInstancesDBInstanceShardListShardAttribute["NodeId"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeDescription"].isNull())
|
||||
shardListObject.nodeDescription = valueDBInstancesDBInstanceShardListShardAttribute["NodeDescription"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeClass"].isNull())
|
||||
shardListObject.nodeClass = valueDBInstancesDBInstanceShardListShardAttribute["NodeClass"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeStorage"].isNull())
|
||||
shardListObject.nodeStorage = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["NodeStorage"].asString());
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["MaxIOPS"].isNull())
|
||||
shardListObject.maxIOPS = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["MaxIOPS"].asString());
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["MaxConnections"].isNull())
|
||||
shardListObject.maxConnections = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["MaxConnections"].asString());
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["ConnectString"].isNull())
|
||||
shardListObject.connectString = valueDBInstancesDBInstanceShardListShardAttribute["ConnectString"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["Port"].isNull())
|
||||
shardListObject.port = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["Port"].asString());
|
||||
dBInstancesObject.shardList.push_back(shardListObject);
|
||||
}
|
||||
auto allConfigserverListNode = allDBInstancesNode["ConfigserverList"]["ConfigserverAttribute"];
|
||||
for (auto allDBInstancesNodeConfigserverListConfigserverAttribute : allConfigserverListNode)
|
||||
auto allConfigserverListNode = valueDBInstancesDBInstance["ConfigserverList"]["ConfigserverAttribute"];
|
||||
for (auto valueDBInstancesDBInstanceConfigserverListConfigserverAttribute : allConfigserverListNode)
|
||||
{
|
||||
DBInstance::ConfigserverAttribute configserverListObject;
|
||||
if(!allDBInstancesNodeConfigserverListConfigserverAttribute["NodeId"].isNull())
|
||||
configserverListObject.nodeId = allDBInstancesNodeConfigserverListConfigserverAttribute["NodeId"].asString();
|
||||
if(!allDBInstancesNodeConfigserverListConfigserverAttribute["NodeDescription"].isNull())
|
||||
configserverListObject.nodeDescription = allDBInstancesNodeConfigserverListConfigserverAttribute["NodeDescription"].asString();
|
||||
if(!allDBInstancesNodeConfigserverListConfigserverAttribute["NodeClass"].isNull())
|
||||
configserverListObject.nodeClass = allDBInstancesNodeConfigserverListConfigserverAttribute["NodeClass"].asString();
|
||||
if(!allDBInstancesNodeConfigserverListConfigserverAttribute["NodeStorage"].isNull())
|
||||
configserverListObject.nodeStorage = std::stoi(allDBInstancesNodeConfigserverListConfigserverAttribute["NodeStorage"].asString());
|
||||
if(!allDBInstancesNodeConfigserverListConfigserverAttribute["MaxIOPS"].isNull())
|
||||
configserverListObject.maxIOPS = std::stoi(allDBInstancesNodeConfigserverListConfigserverAttribute["MaxIOPS"].asString());
|
||||
if(!allDBInstancesNodeConfigserverListConfigserverAttribute["MaxConnections"].isNull())
|
||||
configserverListObject.maxConnections = std::stoi(allDBInstancesNodeConfigserverListConfigserverAttribute["MaxConnections"].asString());
|
||||
if(!allDBInstancesNodeConfigserverListConfigserverAttribute["ConnectString"].isNull())
|
||||
configserverListObject.connectString = allDBInstancesNodeConfigserverListConfigserverAttribute["ConnectString"].asString();
|
||||
if(!allDBInstancesNodeConfigserverListConfigserverAttribute["Port"].isNull())
|
||||
configserverListObject.port = std::stoi(allDBInstancesNodeConfigserverListConfigserverAttribute["Port"].asString());
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeId"].isNull())
|
||||
configserverListObject.nodeId = valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeId"].asString();
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeDescription"].isNull())
|
||||
configserverListObject.nodeDescription = valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeDescription"].asString();
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeClass"].isNull())
|
||||
configserverListObject.nodeClass = valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeClass"].asString();
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeStorage"].isNull())
|
||||
configserverListObject.nodeStorage = std::stoi(valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeStorage"].asString());
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["MaxIOPS"].isNull())
|
||||
configserverListObject.maxIOPS = std::stoi(valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["MaxIOPS"].asString());
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["MaxConnections"].isNull())
|
||||
configserverListObject.maxConnections = std::stoi(valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["MaxConnections"].asString());
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["ConnectString"].isNull())
|
||||
configserverListObject.connectString = valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["ConnectString"].asString();
|
||||
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["Port"].isNull())
|
||||
configserverListObject.port = std::stoi(valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["Port"].asString());
|
||||
dBInstancesObject.configserverList.push_back(configserverListObject);
|
||||
}
|
||||
auto allReplicaSetsNode = allDBInstancesNode["ReplicaSets"]["ReplicaSet"];
|
||||
for (auto allDBInstancesNodeReplicaSetsReplicaSet : allReplicaSetsNode)
|
||||
auto allReplicaSetsNode = valueDBInstancesDBInstance["ReplicaSets"]["ReplicaSet"];
|
||||
for (auto valueDBInstancesDBInstanceReplicaSetsReplicaSet : allReplicaSetsNode)
|
||||
{
|
||||
DBInstance::ReplicaSet replicaSetsObject;
|
||||
if(!allDBInstancesNodeReplicaSetsReplicaSet["ReplicaSetRole"].isNull())
|
||||
replicaSetsObject.replicaSetRole = allDBInstancesNodeReplicaSetsReplicaSet["ReplicaSetRole"].asString();
|
||||
if(!allDBInstancesNodeReplicaSetsReplicaSet["ConnectionDomain"].isNull())
|
||||
replicaSetsObject.connectionDomain = allDBInstancesNodeReplicaSetsReplicaSet["ConnectionDomain"].asString();
|
||||
if(!allDBInstancesNodeReplicaSetsReplicaSet["ConnectionPort"].isNull())
|
||||
replicaSetsObject.connectionPort = allDBInstancesNodeReplicaSetsReplicaSet["ConnectionPort"].asString();
|
||||
if(!allDBInstancesNodeReplicaSetsReplicaSet["VPCCloudInstanceId"].isNull())
|
||||
replicaSetsObject.vPCCloudInstanceId = allDBInstancesNodeReplicaSetsReplicaSet["VPCCloudInstanceId"].asString();
|
||||
if(!allDBInstancesNodeReplicaSetsReplicaSet["VPCId"].isNull())
|
||||
replicaSetsObject.vPCId = allDBInstancesNodeReplicaSetsReplicaSet["VPCId"].asString();
|
||||
if(!allDBInstancesNodeReplicaSetsReplicaSet["VSwitchId"].isNull())
|
||||
replicaSetsObject.vSwitchId = allDBInstancesNodeReplicaSetsReplicaSet["VSwitchId"].asString();
|
||||
if(!allDBInstancesNodeReplicaSetsReplicaSet["NetworkType"].isNull())
|
||||
replicaSetsObject.networkType = allDBInstancesNodeReplicaSetsReplicaSet["NetworkType"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["ReplicaSetRole"].isNull())
|
||||
replicaSetsObject.replicaSetRole = valueDBInstancesDBInstanceReplicaSetsReplicaSet["ReplicaSetRole"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["ConnectionDomain"].isNull())
|
||||
replicaSetsObject.connectionDomain = valueDBInstancesDBInstanceReplicaSetsReplicaSet["ConnectionDomain"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["ConnectionPort"].isNull())
|
||||
replicaSetsObject.connectionPort = valueDBInstancesDBInstanceReplicaSetsReplicaSet["ConnectionPort"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["VPCCloudInstanceId"].isNull())
|
||||
replicaSetsObject.vPCCloudInstanceId = valueDBInstancesDBInstanceReplicaSetsReplicaSet["VPCCloudInstanceId"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["VPCId"].isNull())
|
||||
replicaSetsObject.vPCId = valueDBInstancesDBInstanceReplicaSetsReplicaSet["VPCId"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["VSwitchId"].isNull())
|
||||
replicaSetsObject.vSwitchId = valueDBInstancesDBInstanceReplicaSetsReplicaSet["VSwitchId"].asString();
|
||||
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["NetworkType"].isNull())
|
||||
replicaSetsObject.networkType = valueDBInstancesDBInstanceReplicaSetsReplicaSet["NetworkType"].asString();
|
||||
dBInstancesObject.replicaSets.push_back(replicaSetsObject);
|
||||
}
|
||||
auto allTagsNode = allDBInstancesNode["Tags"]["Tag"];
|
||||
for (auto allDBInstancesNodeTagsTag : allTagsNode)
|
||||
auto allTagsNode = valueDBInstancesDBInstance["Tags"]["Tag"];
|
||||
for (auto valueDBInstancesDBInstanceTagsTag : allTagsNode)
|
||||
{
|
||||
DBInstance::Tag tagsObject;
|
||||
if(!allDBInstancesNodeTagsTag["Key"].isNull())
|
||||
tagsObject.key = allDBInstancesNodeTagsTag["Key"].asString();
|
||||
if(!allDBInstancesNodeTagsTag["Value"].isNull())
|
||||
tagsObject.value = allDBInstancesNodeTagsTag["Value"].asString();
|
||||
if(!valueDBInstancesDBInstanceTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueDBInstancesDBInstanceTagsTag["Key"].asString();
|
||||
if(!valueDBInstancesDBInstanceTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueDBInstancesDBInstanceTagsTag["Value"].asString();
|
||||
dBInstancesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
dBInstances_.push_back(dBInstancesObject);
|
||||
|
||||
@@ -49,14 +49,14 @@ void DescribeDBInstancePerformanceResult::parse(const std::string &payload)
|
||||
performanceKeysObject.unit = valuePerformanceKeysPerformanceKey["Unit"].asString();
|
||||
if(!valuePerformanceKeysPerformanceKey["ValueFormat"].isNull())
|
||||
performanceKeysObject.valueFormat = valuePerformanceKeysPerformanceKey["ValueFormat"].asString();
|
||||
auto allPerformanceValuesNode = allPerformanceKeysNode["PerformanceValues"]["PerformanceValue"];
|
||||
for (auto allPerformanceKeysNodePerformanceValuesPerformanceValue : allPerformanceValuesNode)
|
||||
auto allPerformanceValuesNode = valuePerformanceKeysPerformanceKey["PerformanceValues"]["PerformanceValue"];
|
||||
for (auto valuePerformanceKeysPerformanceKeyPerformanceValuesPerformanceValue : allPerformanceValuesNode)
|
||||
{
|
||||
PerformanceKey::PerformanceValue performanceValuesObject;
|
||||
if(!allPerformanceKeysNodePerformanceValuesPerformanceValue["Value"].isNull())
|
||||
performanceValuesObject.value = allPerformanceKeysNodePerformanceValuesPerformanceValue["Value"].asString();
|
||||
if(!allPerformanceKeysNodePerformanceValuesPerformanceValue["Date"].isNull())
|
||||
performanceValuesObject.date = allPerformanceKeysNodePerformanceValuesPerformanceValue["Date"].asString();
|
||||
if(!valuePerformanceKeysPerformanceKeyPerformanceValuesPerformanceValue["Value"].isNull())
|
||||
performanceValuesObject.value = valuePerformanceKeysPerformanceKeyPerformanceValuesPerformanceValue["Value"].asString();
|
||||
if(!valuePerformanceKeysPerformanceKeyPerformanceValuesPerformanceValue["Date"].isNull())
|
||||
performanceValuesObject.date = valuePerformanceKeysPerformanceKeyPerformanceValuesPerformanceValue["Date"].asString();
|
||||
performanceKeysObject.performanceValues.push_back(performanceValuesObject);
|
||||
}
|
||||
performanceKeys_.push_back(performanceKeysObject);
|
||||
|
||||
@@ -85,40 +85,40 @@ void DescribeDBInstancesResult::parse(const std::string &payload)
|
||||
dBInstancesObject.destroyTime = valueDBInstancesDBInstance["DestroyTime"].asString();
|
||||
if(!valueDBInstancesDBInstance["VpcAuthMode"].isNull())
|
||||
dBInstancesObject.vpcAuthMode = valueDBInstancesDBInstance["VpcAuthMode"].asString();
|
||||
auto allMongosListNode = allDBInstancesNode["MongosList"]["MongosAttribute"];
|
||||
for (auto allDBInstancesNodeMongosListMongosAttribute : allMongosListNode)
|
||||
auto allMongosListNode = valueDBInstancesDBInstance["MongosList"]["MongosAttribute"];
|
||||
for (auto valueDBInstancesDBInstanceMongosListMongosAttribute : allMongosListNode)
|
||||
{
|
||||
DBInstance::MongosAttribute mongosListObject;
|
||||
if(!allDBInstancesNodeMongosListMongosAttribute["NodeId"].isNull())
|
||||
mongosListObject.nodeId = allDBInstancesNodeMongosListMongosAttribute["NodeId"].asString();
|
||||
if(!allDBInstancesNodeMongosListMongosAttribute["NodeDescription"].isNull())
|
||||
mongosListObject.nodeDescription = allDBInstancesNodeMongosListMongosAttribute["NodeDescription"].asString();
|
||||
if(!allDBInstancesNodeMongosListMongosAttribute["NodeClass"].isNull())
|
||||
mongosListObject.nodeClass = allDBInstancesNodeMongosListMongosAttribute["NodeClass"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeId"].isNull())
|
||||
mongosListObject.nodeId = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeId"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeDescription"].isNull())
|
||||
mongosListObject.nodeDescription = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeDescription"].asString();
|
||||
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeClass"].isNull())
|
||||
mongosListObject.nodeClass = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeClass"].asString();
|
||||
dBInstancesObject.mongosList.push_back(mongosListObject);
|
||||
}
|
||||
auto allShardListNode = allDBInstancesNode["ShardList"]["ShardAttribute"];
|
||||
for (auto allDBInstancesNodeShardListShardAttribute : allShardListNode)
|
||||
auto allShardListNode = valueDBInstancesDBInstance["ShardList"]["ShardAttribute"];
|
||||
for (auto valueDBInstancesDBInstanceShardListShardAttribute : allShardListNode)
|
||||
{
|
||||
DBInstance::ShardAttribute shardListObject;
|
||||
if(!allDBInstancesNodeShardListShardAttribute["NodeId"].isNull())
|
||||
shardListObject.nodeId = allDBInstancesNodeShardListShardAttribute["NodeId"].asString();
|
||||
if(!allDBInstancesNodeShardListShardAttribute["NodeDescription"].isNull())
|
||||
shardListObject.nodeDescription = allDBInstancesNodeShardListShardAttribute["NodeDescription"].asString();
|
||||
if(!allDBInstancesNodeShardListShardAttribute["NodeClass"].isNull())
|
||||
shardListObject.nodeClass = allDBInstancesNodeShardListShardAttribute["NodeClass"].asString();
|
||||
if(!allDBInstancesNodeShardListShardAttribute["NodeStorage"].isNull())
|
||||
shardListObject.nodeStorage = std::stoi(allDBInstancesNodeShardListShardAttribute["NodeStorage"].asString());
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeId"].isNull())
|
||||
shardListObject.nodeId = valueDBInstancesDBInstanceShardListShardAttribute["NodeId"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeDescription"].isNull())
|
||||
shardListObject.nodeDescription = valueDBInstancesDBInstanceShardListShardAttribute["NodeDescription"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeClass"].isNull())
|
||||
shardListObject.nodeClass = valueDBInstancesDBInstanceShardListShardAttribute["NodeClass"].asString();
|
||||
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeStorage"].isNull())
|
||||
shardListObject.nodeStorage = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["NodeStorage"].asString());
|
||||
dBInstancesObject.shardList.push_back(shardListObject);
|
||||
}
|
||||
auto allTagsNode = allDBInstancesNode["Tags"]["Tag"];
|
||||
for (auto allDBInstancesNodeTagsTag : allTagsNode)
|
||||
auto allTagsNode = valueDBInstancesDBInstance["Tags"]["Tag"];
|
||||
for (auto valueDBInstancesDBInstanceTagsTag : allTagsNode)
|
||||
{
|
||||
DBInstance::Tag tagsObject;
|
||||
if(!allDBInstancesNodeTagsTag["Key"].isNull())
|
||||
tagsObject.key = allDBInstancesNodeTagsTag["Key"].asString();
|
||||
if(!allDBInstancesNodeTagsTag["Value"].isNull())
|
||||
tagsObject.value = allDBInstancesNodeTagsTag["Value"].asString();
|
||||
if(!valueDBInstancesDBInstanceTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueDBInstancesDBInstanceTagsTag["Key"].asString();
|
||||
if(!valueDBInstancesDBInstanceTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueDBInstancesDBInstanceTagsTag["Value"].asString();
|
||||
dBInstancesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
dBInstances_.push_back(dBInstancesObject);
|
||||
|
||||
@@ -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_;
|
||||
@@ -104,15 +115,15 @@ void DescribeDedicatedClusterInstanceListRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeDedicatedClusterInstanceListRequest::getInstanceStatus()const
|
||||
std::string DescribeDedicatedClusterInstanceListRequest::getInstanceStatus()const
|
||||
{
|
||||
return instanceStatus_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedClusterInstanceListRequest::setInstanceStatus(int instanceStatus)
|
||||
void DescribeDedicatedClusterInstanceListRequest::setInstanceStatus(const std::string& instanceStatus)
|
||||
{
|
||||
instanceStatus_ = instanceStatus;
|
||||
setParameter("InstanceStatus", std::to_string(instanceStatus));
|
||||
setParameter("InstanceStatus", instanceStatus);
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedClusterInstanceListRequest::getDedicatedHostName()const
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ void DescribeDedicatedClusterInstanceListResult::parse(const std::string &payloa
|
||||
if(!valueInstancesdbInstance["EngineVersion"].isNull())
|
||||
instancesObject.engineVersion = valueInstancesdbInstance["EngineVersion"].asString();
|
||||
if(!valueInstancesdbInstance["CharacterType"].isNull())
|
||||
instancesObject.characterType = std::stoi(valueInstancesdbInstance["CharacterType"].asString());
|
||||
instancesObject.characterType = valueInstancesdbInstance["CharacterType"].asString();
|
||||
if(!valueInstancesdbInstance["MaintainStartTime"].isNull())
|
||||
instancesObject.maintainStartTime = valueInstancesdbInstance["MaintainStartTime"].asString();
|
||||
if(!valueInstancesdbInstance["MaintainEndTime"].isNull())
|
||||
@@ -83,26 +83,26 @@ void DescribeDedicatedClusterInstanceListResult::parse(const std::string &payloa
|
||||
instancesObject.connectionDomain = valueInstancesdbInstance["ConnectionDomain"].asString();
|
||||
if(!valueInstancesdbInstance["CreateTime"].isNull())
|
||||
instancesObject.createTime = valueInstancesdbInstance["CreateTime"].asString();
|
||||
auto allInstanceNodeListNode = allInstancesNode["InstanceNodeList"]["InstanceNodes"];
|
||||
for (auto allInstancesNodeInstanceNodeListInstanceNodes : allInstanceNodeListNode)
|
||||
auto allInstanceNodeListNode = valueInstancesdbInstance["InstanceNodeList"]["InstanceNodes"];
|
||||
for (auto valueInstancesdbInstanceInstanceNodeListInstanceNodes : allInstanceNodeListNode)
|
||||
{
|
||||
DbInstance::InstanceNodes instanceNodeListObject;
|
||||
if(!allInstancesNodeInstanceNodeListInstanceNodes["InsName"].isNull())
|
||||
instanceNodeListObject.insName = allInstancesNodeInstanceNodeListInstanceNodes["InsName"].asString();
|
||||
if(!allInstancesNodeInstanceNodeListInstanceNodes["Role"].isNull())
|
||||
instanceNodeListObject.role = allInstancesNodeInstanceNodeListInstanceNodes["Role"].asString();
|
||||
if(!allInstancesNodeInstanceNodeListInstanceNodes["NodeId"].isNull())
|
||||
instanceNodeListObject.nodeId = std::stoi(allInstancesNodeInstanceNodeListInstanceNodes["NodeId"].asString());
|
||||
if(!allInstancesNodeInstanceNodeListInstanceNodes["NodeType"].isNull())
|
||||
instanceNodeListObject.nodeType = allInstancesNodeInstanceNodeListInstanceNodes["NodeType"].asString();
|
||||
if(!allInstancesNodeInstanceNodeListInstanceNodes["NodeIp"].isNull())
|
||||
instanceNodeListObject.nodeIp = allInstancesNodeInstanceNodeListInstanceNodes["NodeIp"].asString();
|
||||
if(!allInstancesNodeInstanceNodeListInstanceNodes["Port"].isNull())
|
||||
instanceNodeListObject.port = std::stoi(allInstancesNodeInstanceNodeListInstanceNodes["Port"].asString());
|
||||
if(!allInstancesNodeInstanceNodeListInstanceNodes["ZoneId"].isNull())
|
||||
instanceNodeListObject.zoneId = allInstancesNodeInstanceNodeListInstanceNodes["ZoneId"].asString();
|
||||
if(!allInstancesNodeInstanceNodeListInstanceNodes["DedicatedHostName"].isNull())
|
||||
instanceNodeListObject.dedicatedHostName = allInstancesNodeInstanceNodeListInstanceNodes["DedicatedHostName"].asString();
|
||||
if(!valueInstancesdbInstanceInstanceNodeListInstanceNodes["InsName"].isNull())
|
||||
instanceNodeListObject.insName = valueInstancesdbInstanceInstanceNodeListInstanceNodes["InsName"].asString();
|
||||
if(!valueInstancesdbInstanceInstanceNodeListInstanceNodes["Role"].isNull())
|
||||
instanceNodeListObject.role = valueInstancesdbInstanceInstanceNodeListInstanceNodes["Role"].asString();
|
||||
if(!valueInstancesdbInstanceInstanceNodeListInstanceNodes["NodeId"].isNull())
|
||||
instanceNodeListObject.nodeId = std::stoi(valueInstancesdbInstanceInstanceNodeListInstanceNodes["NodeId"].asString());
|
||||
if(!valueInstancesdbInstanceInstanceNodeListInstanceNodes["NodeType"].isNull())
|
||||
instanceNodeListObject.nodeType = valueInstancesdbInstanceInstanceNodeListInstanceNodes["NodeType"].asString();
|
||||
if(!valueInstancesdbInstanceInstanceNodeListInstanceNodes["NodeIp"].isNull())
|
||||
instanceNodeListObject.nodeIp = valueInstancesdbInstanceInstanceNodeListInstanceNodes["NodeIp"].asString();
|
||||
if(!valueInstancesdbInstanceInstanceNodeListInstanceNodes["Port"].isNull())
|
||||
instanceNodeListObject.port = std::stoi(valueInstancesdbInstanceInstanceNodeListInstanceNodes["Port"].asString());
|
||||
if(!valueInstancesdbInstanceInstanceNodeListInstanceNodes["ZoneId"].isNull())
|
||||
instanceNodeListObject.zoneId = valueInstancesdbInstanceInstanceNodeListInstanceNodes["ZoneId"].asString();
|
||||
if(!valueInstancesdbInstanceInstanceNodeListInstanceNodes["DedicatedHostName"].isNull())
|
||||
instanceNodeListObject.dedicatedHostName = valueInstancesdbInstanceInstanceNodeListInstanceNodes["DedicatedHostName"].asString();
|
||||
instancesObject.instanceNodeList.push_back(instanceNodeListObject);
|
||||
}
|
||||
instances_.push_back(instancesObject);
|
||||
|
||||
@@ -71,14 +71,14 @@ void DescribeIndexRecommendationResult::parse(const std::string &payload)
|
||||
analyzationsObject.lastExecutionTime = valueAnalyzationsAnalyzation["LastExecutionTime"].asString();
|
||||
if(!valueAnalyzationsAnalyzation["ExecutionPlan"].isNull())
|
||||
analyzationsObject.executionPlan = valueAnalyzationsAnalyzation["ExecutionPlan"].asString();
|
||||
auto allIndexRecommendationsNode = allAnalyzationsNode["IndexRecommendations"]["Recommendation"];
|
||||
for (auto allAnalyzationsNodeIndexRecommendationsRecommendation : allIndexRecommendationsNode)
|
||||
auto allIndexRecommendationsNode = valueAnalyzationsAnalyzation["IndexRecommendations"]["Recommendation"];
|
||||
for (auto valueAnalyzationsAnalyzationIndexRecommendationsRecommendation : allIndexRecommendationsNode)
|
||||
{
|
||||
Analyzation::Recommendation indexRecommendationsObject;
|
||||
if(!allAnalyzationsNodeIndexRecommendationsRecommendation["RecmdType"].isNull())
|
||||
indexRecommendationsObject.recmdType = allAnalyzationsNodeIndexRecommendationsRecommendation["RecmdType"].asString();
|
||||
if(!allAnalyzationsNodeIndexRecommendationsRecommendation["Content"].isNull())
|
||||
indexRecommendationsObject.content = allAnalyzationsNodeIndexRecommendationsRecommendation["Content"].asString();
|
||||
if(!valueAnalyzationsAnalyzationIndexRecommendationsRecommendation["RecmdType"].isNull())
|
||||
indexRecommendationsObject.recmdType = valueAnalyzationsAnalyzationIndexRecommendationsRecommendation["RecmdType"].asString();
|
||||
if(!valueAnalyzationsAnalyzationIndexRecommendationsRecommendation["Content"].isNull())
|
||||
indexRecommendationsObject.content = valueAnalyzationsAnalyzationIndexRecommendationsRecommendation["Content"].asString();
|
||||
analyzationsObject.indexRecommendations.push_back(indexRecommendationsObject);
|
||||
}
|
||||
auto allIndexCombines = value["IndexCombines"]["IndexCombine"];
|
||||
|
||||
@@ -60,6 +60,17 @@ void DescribeRegionsRequest::setSecurityToken(const std::string& securityToken)
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRegionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeRegionsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
@@ -93,3 +104,14 @@ void DescribeRegionsRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRegionsRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
|
||||
@@ -47,16 +47,16 @@ void DescribeRegionsResult::parse(const std::string &payload)
|
||||
regionsObject.regionId = valueRegionsDdsRegion["RegionId"].asString();
|
||||
if(!valueRegionsDdsRegion["ZoneIds"].isNull())
|
||||
regionsObject.zoneIds = valueRegionsDdsRegion["ZoneIds"].asString();
|
||||
auto allZonesNode = allRegionsNode["Zones"]["Zone"];
|
||||
for (auto allRegionsNodeZonesZone : allZonesNode)
|
||||
auto allZonesNode = valueRegionsDdsRegion["Zones"]["Zone"];
|
||||
for (auto valueRegionsDdsRegionZonesZone : allZonesNode)
|
||||
{
|
||||
DdsRegion::Zone zonesObject;
|
||||
if(!allRegionsNodeZonesZone["ZoneId"].isNull())
|
||||
zonesObject.zoneId = allRegionsNodeZonesZone["ZoneId"].asString();
|
||||
if(!allRegionsNodeZonesZone["VpcEnabled"].isNull())
|
||||
zonesObject.vpcEnabled = allRegionsNodeZonesZone["VpcEnabled"].asString() == "true";
|
||||
if(!allRegionsNodeZonesZone["ZoneName"].isNull())
|
||||
zonesObject.zoneName = allRegionsNodeZonesZone["ZoneName"].asString();
|
||||
if(!valueRegionsDdsRegionZonesZone["ZoneId"].isNull())
|
||||
zonesObject.zoneId = valueRegionsDdsRegionZonesZone["ZoneId"].asString();
|
||||
if(!valueRegionsDdsRegionZonesZone["VpcEnabled"].isNull())
|
||||
zonesObject.vpcEnabled = valueRegionsDdsRegionZonesZone["VpcEnabled"].asString() == "true";
|
||||
if(!valueRegionsDdsRegionZonesZone["ZoneName"].isNull())
|
||||
zonesObject.zoneName = valueRegionsDdsRegionZonesZone["ZoneName"].asString();
|
||||
regionsObject.zones.push_back(zonesObject);
|
||||
}
|
||||
regions_.push_back(regionsObject);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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_;
|
||||
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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_;
|
||||
|
||||
};
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -155,6 +155,8 @@ set(hbase_public_header_model
|
||||
include/alibabacloud/hbase/model/TagResourcesResult.h
|
||||
include/alibabacloud/hbase/model/UnTagResourcesRequest.h
|
||||
include/alibabacloud/hbase/model/UnTagResourcesResult.h
|
||||
include/alibabacloud/hbase/model/UpgradeMinorVersionRequest.h
|
||||
include/alibabacloud/hbase/model/UpgradeMinorVersionResult.h
|
||||
include/alibabacloud/hbase/model/UpgradeMultiZoneClusterRequest.h
|
||||
include/alibabacloud/hbase/model/UpgradeMultiZoneClusterResult.h
|
||||
include/alibabacloud/hbase/model/XpackRelateDBRequest.h
|
||||
@@ -296,6 +298,8 @@ set(hbase_src
|
||||
src/model/TagResourcesResult.cc
|
||||
src/model/UnTagResourcesRequest.cc
|
||||
src/model/UnTagResourcesResult.cc
|
||||
src/model/UpgradeMinorVersionRequest.cc
|
||||
src/model/UpgradeMinorVersionResult.cc
|
||||
src/model/UpgradeMultiZoneClusterRequest.cc
|
||||
src/model/UpgradeMultiZoneClusterResult.cc
|
||||
src/model/XpackRelateDBRequest.cc
|
||||
|
||||
@@ -156,6 +156,8 @@
|
||||
#include "model/TagResourcesResult.h"
|
||||
#include "model/UnTagResourcesRequest.h"
|
||||
#include "model/UnTagResourcesResult.h"
|
||||
#include "model/UpgradeMinorVersionRequest.h"
|
||||
#include "model/UpgradeMinorVersionResult.h"
|
||||
#include "model/UpgradeMultiZoneClusterRequest.h"
|
||||
#include "model/UpgradeMultiZoneClusterResult.h"
|
||||
#include "model/XpackRelateDBRequest.h"
|
||||
@@ -370,6 +372,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UnTagResourcesResult> UnTagResourcesOutcome;
|
||||
typedef std::future<UnTagResourcesOutcome> UnTagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::UnTagResourcesRequest&, const UnTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnTagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpgradeMinorVersionResult> UpgradeMinorVersionOutcome;
|
||||
typedef std::future<UpgradeMinorVersionOutcome> UpgradeMinorVersionOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::UpgradeMinorVersionRequest&, const UpgradeMinorVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeMinorVersionAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpgradeMultiZoneClusterResult> UpgradeMultiZoneClusterOutcome;
|
||||
typedef std::future<UpgradeMultiZoneClusterOutcome> UpgradeMultiZoneClusterOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::UpgradeMultiZoneClusterRequest&, const UpgradeMultiZoneClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeMultiZoneClusterAsyncHandler;
|
||||
@@ -582,6 +587,9 @@ namespace AlibabaCloud
|
||||
UnTagResourcesOutcome unTagResources(const Model::UnTagResourcesRequest &request)const;
|
||||
void unTagResourcesAsync(const Model::UnTagResourcesRequest& request, const UnTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnTagResourcesOutcomeCallable unTagResourcesCallable(const Model::UnTagResourcesRequest& request) const;
|
||||
UpgradeMinorVersionOutcome upgradeMinorVersion(const Model::UpgradeMinorVersionRequest &request)const;
|
||||
void upgradeMinorVersionAsync(const Model::UpgradeMinorVersionRequest& request, const UpgradeMinorVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpgradeMinorVersionOutcomeCallable upgradeMinorVersionCallable(const Model::UpgradeMinorVersionRequest& request) const;
|
||||
UpgradeMultiZoneClusterOutcome upgradeMultiZoneCluster(const Model::UpgradeMultiZoneClusterRequest &request)const;
|
||||
void upgradeMultiZoneClusterAsync(const Model::UpgradeMultiZoneClusterRequest& request, const UpgradeMultiZoneClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpgradeMultiZoneClusterOutcomeCallable upgradeMultiZoneClusterCallable(const Model::UpgradeMultiZoneClusterRequest& request) const;
|
||||
|
||||
@@ -37,11 +37,14 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getExtInfo()const;
|
||||
void setExtInfo(const std::string& extInfo);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string extInfo_;
|
||||
std::string clientToken_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
CreateHbaseHaSlbRequest();
|
||||
~CreateHbaseHaSlbRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getHaTypes()const;
|
||||
void setHaTypes(const std::string& haTypes);
|
||||
std::string getHbaseType()const;
|
||||
@@ -45,6 +47,7 @@ namespace AlibabaCloud
|
||||
void setHaId(const std::string& haId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string haTypes_;
|
||||
std::string hbaseType_;
|
||||
std::string bdsId_;
|
||||
|
||||
@@ -61,6 +61,7 @@ namespace AlibabaCloud
|
||||
std::string getMajorVersion()const;
|
||||
std::string getCoreDiskCount()const;
|
||||
std::string getParentId()const;
|
||||
int getColdStorageSize()const;
|
||||
int getMasterDiskSize()const;
|
||||
std::string getExpireTimeUTC()const;
|
||||
std::string getZoneId()const;
|
||||
@@ -107,6 +108,7 @@ namespace AlibabaCloud
|
||||
std::string majorVersion_;
|
||||
std::string coreDiskCount_;
|
||||
std::string parentId_;
|
||||
int coldStorageSize_;
|
||||
int masterDiskSize_;
|
||||
std::string expireTimeUTC_;
|
||||
std::string zoneId_;
|
||||
|
||||
@@ -14,44 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_ENABLEMAURULEREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_ENABLEMAURULEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_HBASE_MODEL_UPGRADEMINORVERSIONREQUEST_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_UPGRADEMINORVERSIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT EnableMAURuleRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_HBASE_EXPORT UpgradeMinorVersionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
EnableMAURuleRequest();
|
||||
~EnableMAURuleRequest();
|
||||
UpgradeMinorVersionRequest();
|
||||
~UpgradeMinorVersionRequest();
|
||||
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
long getRuleId()const;
|
||||
void setRuleId(long ruleId);
|
||||
std::string getComponents()const;
|
||||
void setComponents(const std::string& components);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string showLog_;
|
||||
long ownerId_;
|
||||
std::string appId_;
|
||||
long ruleId_;
|
||||
std::string components_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_ENABLEMAURULEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_UPGRADEMINORVERSIONREQUEST_H_
|
||||
@@ -14,36 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_ENABLEMAURULERESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_ENABLEMAURULERESULT_H_
|
||||
#ifndef ALIBABACLOUD_HBASE_MODEL_UPGRADEMINORVERSIONRESULT_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_UPGRADEMINORVERSIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT EnableMAURuleResult : public ServiceResult
|
||||
class ALIBABACLOUD_HBASE_EXPORT UpgradeMinorVersionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
EnableMAURuleResult();
|
||||
explicit EnableMAURuleResult(const std::string &payload);
|
||||
~EnableMAURuleResult();
|
||||
UpgradeMinorVersionResult();
|
||||
explicit UpgradeMinorVersionResult(const std::string &payload);
|
||||
~UpgradeMinorVersionResult();
|
||||
std::string getUpgradingComponents()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string upgradingComponents_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_ENABLEMAURULERESULT_H_
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_UPGRADEMINORVERSIONRESULT_H_
|
||||
@@ -2463,6 +2463,42 @@ HBaseClient::UnTagResourcesOutcomeCallable HBaseClient::unTagResourcesCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::UpgradeMinorVersionOutcome HBaseClient::upgradeMinorVersion(const UpgradeMinorVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpgradeMinorVersionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpgradeMinorVersionOutcome(UpgradeMinorVersionResult(outcome.result()));
|
||||
else
|
||||
return UpgradeMinorVersionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::upgradeMinorVersionAsync(const UpgradeMinorVersionRequest& request, const UpgradeMinorVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, upgradeMinorVersion(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::UpgradeMinorVersionOutcomeCallable HBaseClient::upgradeMinorVersionCallable(const UpgradeMinorVersionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpgradeMinorVersionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->upgradeMinorVersion(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::UpgradeMultiZoneClusterOutcome HBaseClient::upgradeMultiZoneCluster(const UpgradeMultiZoneClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -38,6 +38,17 @@ void AddUserHdfsInfoRequest::setExtInfo(const std::string& extInfo)
|
||||
setParameter("ExtInfo", extInfo);
|
||||
}
|
||||
|
||||
std::string AddUserHdfsInfoRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AddUserHdfsInfoRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string AddUserHdfsInfoRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
|
||||
@@ -27,6 +27,17 @@ CreateHbaseHaSlbRequest::CreateHbaseHaSlbRequest() :
|
||||
CreateHbaseHaSlbRequest::~CreateHbaseHaSlbRequest()
|
||||
{}
|
||||
|
||||
std::string CreateHbaseHaSlbRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateHbaseHaSlbRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateHbaseHaSlbRequest::getHaTypes()const
|
||||
{
|
||||
return haTypes_;
|
||||
|
||||
@@ -47,38 +47,38 @@ void DescribeAvailableResourceResult::parse(const std::string &payload)
|
||||
availableZonesObject.regionId = valueAvailableZonesAvailableZone["RegionId"].asString();
|
||||
if(!valueAvailableZonesAvailableZone["ZoneId"].isNull())
|
||||
availableZonesObject.zoneId = valueAvailableZonesAvailableZone["ZoneId"].asString();
|
||||
auto allSupportedEnginesNode = allAvailableZonesNode["SupportedEngines"]["SupportedEngine"];
|
||||
for (auto allAvailableZonesNodeSupportedEnginesSupportedEngine : allSupportedEnginesNode)
|
||||
auto allSupportedEnginesNode = valueAvailableZonesAvailableZone["SupportedEngines"]["SupportedEngine"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine : allSupportedEnginesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine supportedEnginesObject;
|
||||
if(!allAvailableZonesNodeSupportedEnginesSupportedEngine["Engine"].isNull())
|
||||
supportedEnginesObject.engine = allAvailableZonesNodeSupportedEnginesSupportedEngine["Engine"].asString();
|
||||
auto allSupportedEngineVersionsNode = allSupportedEnginesNode["SupportedEngineVersions"]["SupportedEngineVersion"];
|
||||
for (auto allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion : allSupportedEngineVersionsNode)
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine["Engine"].isNull())
|
||||
supportedEnginesObject.engine = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine["Engine"].asString();
|
||||
auto allSupportedEngineVersionsNode = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine["SupportedEngineVersions"]["SupportedEngineVersion"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersion : allSupportedEngineVersionsNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion supportedEngineVersionsObject;
|
||||
if(!allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion["Version"].isNull())
|
||||
supportedEngineVersionsObject.version = allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion["Version"].asString();
|
||||
auto allSupportedCategoriesNode = allSupportedEngineVersionsNode["SupportedCategories"]["SupportedCategoriesItem"];
|
||||
for (auto allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem : allSupportedCategoriesNode)
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersion["Version"].isNull())
|
||||
supportedEngineVersionsObject.version = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersion["Version"].asString();
|
||||
auto allSupportedCategoriesNode = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersion["SupportedCategories"]["SupportedCategoriesItem"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItem : allSupportedCategoriesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem supportedCategoriesObject;
|
||||
if(!allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem["Category"].isNull())
|
||||
supportedCategoriesObject.category = allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem["Category"].asString();
|
||||
auto allSupportedStorageTypesNode = allSupportedCategoriesNode["SupportedStorageTypes"]["SupportedStorageType"];
|
||||
for (auto allSupportedCategoriesNodeSupportedStorageTypesSupportedStorageType : allSupportedStorageTypesNode)
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItem["Category"].isNull())
|
||||
supportedCategoriesObject.category = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItem["Category"].asString();
|
||||
auto allSupportedStorageTypesNode = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItem["SupportedStorageTypes"]["SupportedStorageType"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageType : allSupportedStorageTypesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem::SupportedStorageType supportedStorageTypesObject;
|
||||
if(!allSupportedCategoriesNodeSupportedStorageTypesSupportedStorageType["StorageType"].isNull())
|
||||
supportedStorageTypesObject.storageType = allSupportedCategoriesNodeSupportedStorageTypesSupportedStorageType["StorageType"].asString();
|
||||
auto allCoreResourcesNode = allSupportedStorageTypesNode["CoreResources"]["CoreResource"];
|
||||
for (auto allSupportedStorageTypesNodeCoreResourcesCoreResource : allCoreResourcesNode)
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageType["StorageType"].isNull())
|
||||
supportedStorageTypesObject.storageType = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageType["StorageType"].asString();
|
||||
auto allCoreResourcesNode = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageType["CoreResources"]["CoreResource"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource : allCoreResourcesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem::SupportedStorageType::CoreResource coreResourcesObject;
|
||||
if(!allSupportedStorageTypesNodeCoreResourcesCoreResource["InstanceType"].isNull())
|
||||
coreResourcesObject.instanceType = allSupportedStorageTypesNodeCoreResourcesCoreResource["InstanceType"].asString();
|
||||
if(!allSupportedStorageTypesNodeCoreResourcesCoreResource["MaxCoreCount"].isNull())
|
||||
coreResourcesObject.maxCoreCount = std::stoi(allSupportedStorageTypesNodeCoreResourcesCoreResource["MaxCoreCount"].asString());
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource["InstanceType"].isNull())
|
||||
coreResourcesObject.instanceType = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource["InstanceType"].asString();
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource["MaxCoreCount"].isNull())
|
||||
coreResourcesObject.maxCoreCount = std::stoi(valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource["MaxCoreCount"].asString());
|
||||
auto dBInstanceStorageRangeNode = value["DBInstanceStorageRange"];
|
||||
if(!dBInstanceStorageRangeNode["MaxSize"].isNull())
|
||||
coreResourcesObject.dBInstanceStorageRange.maxSize = std::stoi(dBInstanceStorageRangeNode["MaxSize"].asString());
|
||||
@@ -101,12 +101,12 @@ void DescribeAvailableResourceResult::parse(const std::string &payload)
|
||||
}
|
||||
availableZonesObject.supportedEngines.push_back(supportedEnginesObject);
|
||||
}
|
||||
auto allMasterResourcesNode = allAvailableZonesNode["MasterResources"]["MasterResource"];
|
||||
for (auto allAvailableZonesNodeMasterResourcesMasterResource : allMasterResourcesNode)
|
||||
auto allMasterResourcesNode = valueAvailableZonesAvailableZone["MasterResources"]["MasterResource"];
|
||||
for (auto valueAvailableZonesAvailableZoneMasterResourcesMasterResource : allMasterResourcesNode)
|
||||
{
|
||||
AvailableZone::MasterResource masterResourcesObject;
|
||||
if(!allAvailableZonesNodeMasterResourcesMasterResource["InstanceType"].isNull())
|
||||
masterResourcesObject.instanceType = allAvailableZonesNodeMasterResourcesMasterResource["InstanceType"].asString();
|
||||
if(!valueAvailableZonesAvailableZoneMasterResourcesMasterResource["InstanceType"].isNull())
|
||||
masterResourcesObject.instanceType = valueAvailableZonesAvailableZoneMasterResourcesMasterResource["InstanceType"].asString();
|
||||
auto instanceTypeDetail1Node = value["InstanceTypeDetail"];
|
||||
if(!instanceTypeDetail1Node["Cpu"].isNull())
|
||||
masterResourcesObject.instanceTypeDetail1.cpu = std::stoi(instanceTypeDetail1Node["Cpu"].asString());
|
||||
|
||||
@@ -131,6 +131,8 @@ void DescribeInstanceResult::parse(const std::string &payload)
|
||||
autoRenewal_ = value["AutoRenewal"].asString() == "true";
|
||||
if(!value["Duration"].isNull())
|
||||
duration_ = std::stoi(value["Duration"].asString());
|
||||
if(!value["ColdStorageSize"].isNull())
|
||||
coldStorageSize_ = std::stoi(value["ColdStorageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -229,6 +231,11 @@ std::string DescribeInstanceResult::getParentId()const
|
||||
return parentId_;
|
||||
}
|
||||
|
||||
int DescribeInstanceResult::getColdStorageSize()const
|
||||
{
|
||||
return coldStorageSize_;
|
||||
}
|
||||
|
||||
int DescribeInstanceResult::getMasterDiskSize()const
|
||||
{
|
||||
return masterDiskSize_;
|
||||
|
||||
@@ -115,14 +115,14 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.autoRenewal = valueInstancesInstance["AutoRenewal"].asString() == "true";
|
||||
if(!valueInstancesInstance["Duration"].isNull())
|
||||
instancesObject.duration = std::stoi(valueInstancesInstance["Duration"].asString());
|
||||
auto allTagsNode = allInstancesNode["Tags"]["Tag"];
|
||||
for (auto allInstancesNodeTagsTag : allTagsNode)
|
||||
auto allTagsNode = valueInstancesInstance["Tags"]["Tag"];
|
||||
for (auto valueInstancesInstanceTagsTag : allTagsNode)
|
||||
{
|
||||
Instance::Tag tagsObject;
|
||||
if(!allInstancesNodeTagsTag["Key"].isNull())
|
||||
tagsObject.key = allInstancesNodeTagsTag["Key"].asString();
|
||||
if(!allInstancesNodeTagsTag["Value"].isNull())
|
||||
tagsObject.value = allInstancesNodeTagsTag["Value"].asString();
|
||||
if(!valueInstancesInstanceTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueInstancesInstanceTagsTag["Key"].asString();
|
||||
if(!valueInstancesInstanceTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueInstancesInstanceTagsTag["Value"].asString();
|
||||
instancesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
instances_.push_back(instancesObject);
|
||||
|
||||
@@ -49,12 +49,12 @@ void DescribeMultiZoneAvailableRegionsResult::parse(const std::string &payload)
|
||||
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
|
||||
if(!valueRegionsRegion["RegionId"].isNull())
|
||||
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
|
||||
auto allAvailableCombinesNode = allRegionsNode["AvailableCombines"]["AvailableCombine"];
|
||||
for (auto allRegionsNodeAvailableCombinesAvailableCombine : allAvailableCombinesNode)
|
||||
auto allAvailableCombinesNode = valueRegionsRegion["AvailableCombines"]["AvailableCombine"];
|
||||
for (auto valueRegionsRegionAvailableCombinesAvailableCombine : allAvailableCombinesNode)
|
||||
{
|
||||
Region::AvailableCombine availableCombinesObject;
|
||||
if(!allRegionsNodeAvailableCombinesAvailableCombine["Id"].isNull())
|
||||
availableCombinesObject.id = allRegionsNodeAvailableCombinesAvailableCombine["Id"].asString();
|
||||
if(!valueRegionsRegionAvailableCombinesAvailableCombine["Id"].isNull())
|
||||
availableCombinesObject.id = valueRegionsRegionAvailableCombinesAvailableCombine["Id"].asString();
|
||||
auto allZones = value["Zones"]["Zone"];
|
||||
for (auto value : allZones)
|
||||
availableCombinesObject.zones.push_back(value.asString());
|
||||
|
||||
@@ -47,12 +47,12 @@ void DescribeMultiZoneAvailableResourceResult::parse(const std::string &payload)
|
||||
availableZonesObject.regionId = valueAvailableZonesAvailableZone["RegionId"].asString();
|
||||
if(!valueAvailableZonesAvailableZone["ZoneCombination"].isNull())
|
||||
availableZonesObject.zoneCombination = valueAvailableZonesAvailableZone["ZoneCombination"].asString();
|
||||
auto allMasterResourcesNode = allAvailableZonesNode["MasterResources"]["MasterResource"];
|
||||
for (auto allAvailableZonesNodeMasterResourcesMasterResource : allMasterResourcesNode)
|
||||
auto allMasterResourcesNode = valueAvailableZonesAvailableZone["MasterResources"]["MasterResource"];
|
||||
for (auto valueAvailableZonesAvailableZoneMasterResourcesMasterResource : allMasterResourcesNode)
|
||||
{
|
||||
AvailableZone::MasterResource masterResourcesObject;
|
||||
if(!allAvailableZonesNodeMasterResourcesMasterResource["InstanceType"].isNull())
|
||||
masterResourcesObject.instanceType = allAvailableZonesNodeMasterResourcesMasterResource["InstanceType"].asString();
|
||||
if(!valueAvailableZonesAvailableZoneMasterResourcesMasterResource["InstanceType"].isNull())
|
||||
masterResourcesObject.instanceType = valueAvailableZonesAvailableZoneMasterResourcesMasterResource["InstanceType"].asString();
|
||||
auto instanceTypeDetailNode = value["InstanceTypeDetail"];
|
||||
if(!instanceTypeDetailNode["Cpu"].isNull())
|
||||
masterResourcesObject.instanceTypeDetail.cpu = std::stoi(instanceTypeDetailNode["Cpu"].asString());
|
||||
@@ -60,38 +60,38 @@ void DescribeMultiZoneAvailableResourceResult::parse(const std::string &payload)
|
||||
masterResourcesObject.instanceTypeDetail.mem = std::stoi(instanceTypeDetailNode["Mem"].asString());
|
||||
availableZonesObject.masterResources.push_back(masterResourcesObject);
|
||||
}
|
||||
auto allSupportedEnginesNode = allAvailableZonesNode["SupportedEngines"]["SupportedEngine"];
|
||||
for (auto allAvailableZonesNodeSupportedEnginesSupportedEngine : allSupportedEnginesNode)
|
||||
auto allSupportedEnginesNode = valueAvailableZonesAvailableZone["SupportedEngines"]["SupportedEngine"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine : allSupportedEnginesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine supportedEnginesObject;
|
||||
if(!allAvailableZonesNodeSupportedEnginesSupportedEngine["Engine"].isNull())
|
||||
supportedEnginesObject.engine = allAvailableZonesNodeSupportedEnginesSupportedEngine["Engine"].asString();
|
||||
auto allSupportedEngineVersionsNode = allSupportedEnginesNode["SupportedEngineVersions"]["SupportedEngineVersion"];
|
||||
for (auto allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion : allSupportedEngineVersionsNode)
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine["Engine"].isNull())
|
||||
supportedEnginesObject.engine = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine["Engine"].asString();
|
||||
auto allSupportedEngineVersionsNode = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine["SupportedEngineVersions"]["SupportedEngineVersion"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersion : allSupportedEngineVersionsNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion supportedEngineVersionsObject;
|
||||
if(!allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion["Version"].isNull())
|
||||
supportedEngineVersionsObject.version = allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion["Version"].asString();
|
||||
auto allSupportedCategoriesNode = allSupportedEngineVersionsNode["SupportedCategories"]["SupportedCategoriesItem"];
|
||||
for (auto allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem : allSupportedCategoriesNode)
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersion["Version"].isNull())
|
||||
supportedEngineVersionsObject.version = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersion["Version"].asString();
|
||||
auto allSupportedCategoriesNode = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersion["SupportedCategories"]["SupportedCategoriesItem"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItem : allSupportedCategoriesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem supportedCategoriesObject;
|
||||
if(!allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem["Category"].isNull())
|
||||
supportedCategoriesObject.category = allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem["Category"].asString();
|
||||
auto allSupportedStorageTypesNode = allSupportedCategoriesNode["SupportedStorageTypes"]["SupportedStorageType"];
|
||||
for (auto allSupportedCategoriesNodeSupportedStorageTypesSupportedStorageType : allSupportedStorageTypesNode)
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItem["Category"].isNull())
|
||||
supportedCategoriesObject.category = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItem["Category"].asString();
|
||||
auto allSupportedStorageTypesNode = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItem["SupportedStorageTypes"]["SupportedStorageType"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageType : allSupportedStorageTypesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem::SupportedStorageType supportedStorageTypesObject;
|
||||
if(!allSupportedCategoriesNodeSupportedStorageTypesSupportedStorageType["StorageType"].isNull())
|
||||
supportedStorageTypesObject.storageType = allSupportedCategoriesNodeSupportedStorageTypesSupportedStorageType["StorageType"].asString();
|
||||
auto allCoreResourcesNode = allSupportedStorageTypesNode["CoreResources"]["CoreResource"];
|
||||
for (auto allSupportedStorageTypesNodeCoreResourcesCoreResource : allCoreResourcesNode)
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageType["StorageType"].isNull())
|
||||
supportedStorageTypesObject.storageType = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageType["StorageType"].asString();
|
||||
auto allCoreResourcesNode = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageType["CoreResources"]["CoreResource"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource : allCoreResourcesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem::SupportedStorageType::CoreResource coreResourcesObject;
|
||||
if(!allSupportedStorageTypesNodeCoreResourcesCoreResource["InstanceType"].isNull())
|
||||
coreResourcesObject.instanceType = allSupportedStorageTypesNodeCoreResourcesCoreResource["InstanceType"].asString();
|
||||
if(!allSupportedStorageTypesNodeCoreResourcesCoreResource["MaxCoreCount"].isNull())
|
||||
coreResourcesObject.maxCoreCount = std::stoi(allSupportedStorageTypesNodeCoreResourcesCoreResource["MaxCoreCount"].asString());
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource["InstanceType"].isNull())
|
||||
coreResourcesObject.instanceType = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource["InstanceType"].asString();
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource["MaxCoreCount"].isNull())
|
||||
coreResourcesObject.maxCoreCount = std::stoi(valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource["MaxCoreCount"].asString());
|
||||
auto dBInstanceStorageRangeNode = value["DBInstanceStorageRange"];
|
||||
if(!dBInstanceStorageRangeNode["MaxSize"].isNull())
|
||||
coreResourcesObject.dBInstanceStorageRange.maxSize = std::stoi(dBInstanceStorageRangeNode["MaxSize"].asString());
|
||||
|
||||
@@ -49,12 +49,12 @@ void DescribeRegionsResult::parse(const std::string &payload)
|
||||
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
|
||||
if(!valueRegionsRegion["RegionEndpoint"].isNull())
|
||||
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
|
||||
auto allZonesNode = allRegionsNode["Zones"]["Zone"];
|
||||
for (auto allRegionsNodeZonesZone : allZonesNode)
|
||||
auto allZonesNode = valueRegionsRegion["Zones"]["Zone"];
|
||||
for (auto valueRegionsRegionZonesZone : allZonesNode)
|
||||
{
|
||||
Region::Zone zonesObject;
|
||||
if(!allRegionsNodeZonesZone["Id"].isNull())
|
||||
zonesObject.id = allRegionsNodeZonesZone["Id"].asString();
|
||||
if(!valueRegionsRegionZonesZone["Id"].isNull())
|
||||
zonesObject.id = valueRegionsRegionZonesZone["Id"].asString();
|
||||
regionsObject.zones.push_back(zonesObject);
|
||||
}
|
||||
regions_.push_back(regionsObject);
|
||||
|
||||
@@ -51,16 +51,16 @@ void QueryHBaseHaDBResult::parse(const std::string &payload)
|
||||
clusterListObject.activeName = valueClusterListCluster["ActiveName"].asString();
|
||||
if(!valueClusterListCluster["StandbyName"].isNull())
|
||||
clusterListObject.standbyName = valueClusterListCluster["StandbyName"].asString();
|
||||
auto allHaSlbConnListNode = allClusterListNode["HaSlbConnList"]["HaSlbConn"];
|
||||
for (auto allClusterListNodeHaSlbConnListHaSlbConn : allHaSlbConnListNode)
|
||||
auto allHaSlbConnListNode = valueClusterListCluster["HaSlbConnList"]["HaSlbConn"];
|
||||
for (auto valueClusterListClusterHaSlbConnListHaSlbConn : allHaSlbConnListNode)
|
||||
{
|
||||
Cluster::HaSlbConn haSlbConnListObject;
|
||||
if(!allClusterListNodeHaSlbConnListHaSlbConn["SlbType"].isNull())
|
||||
haSlbConnListObject.slbType = allClusterListNodeHaSlbConnListHaSlbConn["SlbType"].asString();
|
||||
if(!allClusterListNodeHaSlbConnListHaSlbConn["SlbConnAddr"].isNull())
|
||||
haSlbConnListObject.slbConnAddr = allClusterListNodeHaSlbConnListHaSlbConn["SlbConnAddr"].asString();
|
||||
if(!allClusterListNodeHaSlbConnListHaSlbConn["HbaseType"].isNull())
|
||||
haSlbConnListObject.hbaseType = allClusterListNodeHaSlbConnListHaSlbConn["HbaseType"].asString();
|
||||
if(!valueClusterListClusterHaSlbConnListHaSlbConn["SlbType"].isNull())
|
||||
haSlbConnListObject.slbType = valueClusterListClusterHaSlbConnListHaSlbConn["SlbType"].asString();
|
||||
if(!valueClusterListClusterHaSlbConnListHaSlbConn["SlbConnAddr"].isNull())
|
||||
haSlbConnListObject.slbConnAddr = valueClusterListClusterHaSlbConnListHaSlbConn["SlbConnAddr"].asString();
|
||||
if(!valueClusterListClusterHaSlbConnListHaSlbConn["HbaseType"].isNull())
|
||||
haSlbConnListObject.hbaseType = valueClusterListClusterHaSlbConnListHaSlbConn["HbaseType"].asString();
|
||||
clusterListObject.haSlbConnList.push_back(haSlbConnListObject);
|
||||
}
|
||||
clusterList_.push_back(clusterListObject);
|
||||
|
||||
51
hbase/src/model/UpgradeMinorVersionRequest.cc
Normal file
51
hbase/src/model/UpgradeMinorVersionRequest.cc
Normal 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/hbase/model/UpgradeMinorVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::UpgradeMinorVersionRequest;
|
||||
|
||||
UpgradeMinorVersionRequest::UpgradeMinorVersionRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "UpgradeMinorVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpgradeMinorVersionRequest::~UpgradeMinorVersionRequest()
|
||||
{}
|
||||
|
||||
std::string UpgradeMinorVersionRequest::getComponents()const
|
||||
{
|
||||
return components_;
|
||||
}
|
||||
|
||||
void UpgradeMinorVersionRequest::setComponents(const std::string& components)
|
||||
{
|
||||
components_ = components;
|
||||
setParameter("Components", components);
|
||||
}
|
||||
|
||||
std::string UpgradeMinorVersionRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void UpgradeMinorVersionRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
@@ -14,31 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/EnableMAURuleResult.h>
|
||||
#include <alibabacloud/hbase/model/UpgradeMinorVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
EnableMAURuleResult::EnableMAURuleResult() :
|
||||
UpgradeMinorVersionResult::UpgradeMinorVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableMAURuleResult::EnableMAURuleResult(const std::string &payload) :
|
||||
UpgradeMinorVersionResult::UpgradeMinorVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableMAURuleResult::~EnableMAURuleResult()
|
||||
UpgradeMinorVersionResult::~UpgradeMinorVersionResult()
|
||||
{}
|
||||
|
||||
void EnableMAURuleResult::parse(const std::string &payload)
|
||||
void UpgradeMinorVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["UpgradingComponents"].isNull())
|
||||
upgradingComponents_ = value["UpgradingComponents"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpgradeMinorVersionResult::getUpgradingComponents()const
|
||||
{
|
||||
return upgradingComponents_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace AlibabaCloud
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
long messageId_;
|
||||
unsigned long long messageId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -27,8 +27,6 @@ set(rtc_public_header_model
|
||||
include/alibabacloud/rtc/model/CreateChannelResult.h
|
||||
include/alibabacloud/rtc/model/CreateConferenceRequest.h
|
||||
include/alibabacloud/rtc/model/CreateConferenceResult.h
|
||||
include/alibabacloud/rtc/model/CreateMAURuleRequest.h
|
||||
include/alibabacloud/rtc/model/CreateMAURuleResult.h
|
||||
include/alibabacloud/rtc/model/CreateMPULayoutRequest.h
|
||||
include/alibabacloud/rtc/model/CreateMPULayoutResult.h
|
||||
include/alibabacloud/rtc/model/CreateMPURuleRequest.h
|
||||
@@ -39,8 +37,6 @@ set(rtc_public_header_model
|
||||
include/alibabacloud/rtc/model/DeleteChannelResult.h
|
||||
include/alibabacloud/rtc/model/DeleteConferenceRequest.h
|
||||
include/alibabacloud/rtc/model/DeleteConferenceResult.h
|
||||
include/alibabacloud/rtc/model/DeleteMAURuleRequest.h
|
||||
include/alibabacloud/rtc/model/DeleteMAURuleResult.h
|
||||
include/alibabacloud/rtc/model/DeleteMPULayoutRequest.h
|
||||
include/alibabacloud/rtc/model/DeleteMPULayoutResult.h
|
||||
include/alibabacloud/rtc/model/DeleteMPURuleRequest.h
|
||||
@@ -55,8 +51,6 @@ set(rtc_public_header_model
|
||||
include/alibabacloud/rtc/model/DescribeChannelUsersResult.h
|
||||
include/alibabacloud/rtc/model/DescribeConferenceAuthInfoRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeConferenceAuthInfoResult.h
|
||||
include/alibabacloud/rtc/model/DescribeMAURuleRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeMAURuleResult.h
|
||||
include/alibabacloud/rtc/model/DescribeMPULayoutInfoRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeMPULayoutInfoResult.h
|
||||
include/alibabacloud/rtc/model/DescribeMPULayoutInfoListRequest.h
|
||||
@@ -67,16 +61,26 @@ set(rtc_public_header_model
|
||||
include/alibabacloud/rtc/model/DescribeMPURuleResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRTCAppKeyRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRTCAppKeyResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRecordFilesRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRecordFilesResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRecordTasksRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRecordTasksResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRecordTemplatesRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRecordTemplatesResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelCntDataRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelCntDataResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelDetailRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelDetailResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelListRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelListResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelMetricRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelMetricResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelMetricsRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelMetricsResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelUserListRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelUserListResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelsRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcChannelsResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcDurationDataRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcDurationDataResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcPeakChannelCntDataRequest.h
|
||||
@@ -87,16 +91,14 @@ set(rtc_public_header_model
|
||||
include/alibabacloud/rtc/model/DescribeRtcQualityMetricResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcUserCntDataRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcUserCntDataResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcUserEventsRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcUserEventsResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcUserListRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRtcUserListResult.h
|
||||
include/alibabacloud/rtc/model/DescribeUserInfoInChannelRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeUserInfoInChannelResult.h
|
||||
include/alibabacloud/rtc/model/DisableMAURuleRequest.h
|
||||
include/alibabacloud/rtc/model/DisableMAURuleResult.h
|
||||
include/alibabacloud/rtc/model/DisableMPURuleRequest.h
|
||||
include/alibabacloud/rtc/model/DisableMPURuleResult.h
|
||||
include/alibabacloud/rtc/model/EnableMAURuleRequest.h
|
||||
include/alibabacloud/rtc/model/EnableMAURuleResult.h
|
||||
include/alibabacloud/rtc/model/EnableMPURuleRequest.h
|
||||
include/alibabacloud/rtc/model/EnableMPURuleResult.h
|
||||
include/alibabacloud/rtc/model/GetMPUTaskStatusRequest.h
|
||||
@@ -137,6 +139,8 @@ set(rtc_public_header_model
|
||||
include/alibabacloud/rtc/model/UpdateChannelResult.h
|
||||
include/alibabacloud/rtc/model/UpdateMPULayoutRequest.h
|
||||
include/alibabacloud/rtc/model/UpdateMPULayoutResult.h
|
||||
include/alibabacloud/rtc/model/UpdateRecordTaskRequest.h
|
||||
include/alibabacloud/rtc/model/UpdateRecordTaskResult.h
|
||||
include/alibabacloud/rtc/model/UpdateRecordTemplateRequest.h
|
||||
include/alibabacloud/rtc/model/UpdateRecordTemplateResult.h )
|
||||
|
||||
@@ -148,8 +152,6 @@ set(rtc_src
|
||||
src/model/CreateChannelResult.cc
|
||||
src/model/CreateConferenceRequest.cc
|
||||
src/model/CreateConferenceResult.cc
|
||||
src/model/CreateMAURuleRequest.cc
|
||||
src/model/CreateMAURuleResult.cc
|
||||
src/model/CreateMPULayoutRequest.cc
|
||||
src/model/CreateMPULayoutResult.cc
|
||||
src/model/CreateMPURuleRequest.cc
|
||||
@@ -160,8 +162,6 @@ set(rtc_src
|
||||
src/model/DeleteChannelResult.cc
|
||||
src/model/DeleteConferenceRequest.cc
|
||||
src/model/DeleteConferenceResult.cc
|
||||
src/model/DeleteMAURuleRequest.cc
|
||||
src/model/DeleteMAURuleResult.cc
|
||||
src/model/DeleteMPULayoutRequest.cc
|
||||
src/model/DeleteMPULayoutResult.cc
|
||||
src/model/DeleteMPURuleRequest.cc
|
||||
@@ -176,8 +176,6 @@ set(rtc_src
|
||||
src/model/DescribeChannelUsersResult.cc
|
||||
src/model/DescribeConferenceAuthInfoRequest.cc
|
||||
src/model/DescribeConferenceAuthInfoResult.cc
|
||||
src/model/DescribeMAURuleRequest.cc
|
||||
src/model/DescribeMAURuleResult.cc
|
||||
src/model/DescribeMPULayoutInfoRequest.cc
|
||||
src/model/DescribeMPULayoutInfoResult.cc
|
||||
src/model/DescribeMPULayoutInfoListRequest.cc
|
||||
@@ -188,16 +186,26 @@ set(rtc_src
|
||||
src/model/DescribeMPURuleResult.cc
|
||||
src/model/DescribeRTCAppKeyRequest.cc
|
||||
src/model/DescribeRTCAppKeyResult.cc
|
||||
src/model/DescribeRecordFilesRequest.cc
|
||||
src/model/DescribeRecordFilesResult.cc
|
||||
src/model/DescribeRecordTasksRequest.cc
|
||||
src/model/DescribeRecordTasksResult.cc
|
||||
src/model/DescribeRecordTemplatesRequest.cc
|
||||
src/model/DescribeRecordTemplatesResult.cc
|
||||
src/model/DescribeRtcChannelCntDataRequest.cc
|
||||
src/model/DescribeRtcChannelCntDataResult.cc
|
||||
src/model/DescribeRtcChannelDetailRequest.cc
|
||||
src/model/DescribeRtcChannelDetailResult.cc
|
||||
src/model/DescribeRtcChannelListRequest.cc
|
||||
src/model/DescribeRtcChannelListResult.cc
|
||||
src/model/DescribeRtcChannelMetricRequest.cc
|
||||
src/model/DescribeRtcChannelMetricResult.cc
|
||||
src/model/DescribeRtcChannelMetricsRequest.cc
|
||||
src/model/DescribeRtcChannelMetricsResult.cc
|
||||
src/model/DescribeRtcChannelUserListRequest.cc
|
||||
src/model/DescribeRtcChannelUserListResult.cc
|
||||
src/model/DescribeRtcChannelsRequest.cc
|
||||
src/model/DescribeRtcChannelsResult.cc
|
||||
src/model/DescribeRtcDurationDataRequest.cc
|
||||
src/model/DescribeRtcDurationDataResult.cc
|
||||
src/model/DescribeRtcPeakChannelCntDataRequest.cc
|
||||
@@ -208,16 +216,14 @@ set(rtc_src
|
||||
src/model/DescribeRtcQualityMetricResult.cc
|
||||
src/model/DescribeRtcUserCntDataRequest.cc
|
||||
src/model/DescribeRtcUserCntDataResult.cc
|
||||
src/model/DescribeRtcUserEventsRequest.cc
|
||||
src/model/DescribeRtcUserEventsResult.cc
|
||||
src/model/DescribeRtcUserListRequest.cc
|
||||
src/model/DescribeRtcUserListResult.cc
|
||||
src/model/DescribeUserInfoInChannelRequest.cc
|
||||
src/model/DescribeUserInfoInChannelResult.cc
|
||||
src/model/DisableMAURuleRequest.cc
|
||||
src/model/DisableMAURuleResult.cc
|
||||
src/model/DisableMPURuleRequest.cc
|
||||
src/model/DisableMPURuleResult.cc
|
||||
src/model/EnableMAURuleRequest.cc
|
||||
src/model/EnableMAURuleResult.cc
|
||||
src/model/EnableMPURuleRequest.cc
|
||||
src/model/EnableMPURuleResult.cc
|
||||
src/model/GetMPUTaskStatusRequest.cc
|
||||
@@ -258,6 +264,8 @@ set(rtc_src
|
||||
src/model/UpdateChannelResult.cc
|
||||
src/model/UpdateMPULayoutRequest.cc
|
||||
src/model/UpdateMPULayoutResult.cc
|
||||
src/model/UpdateRecordTaskRequest.cc
|
||||
src/model/UpdateRecordTaskResult.cc
|
||||
src/model/UpdateRecordTemplateRequest.cc
|
||||
src/model/UpdateRecordTemplateResult.cc )
|
||||
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
#include "model/CreateChannelResult.h"
|
||||
#include "model/CreateConferenceRequest.h"
|
||||
#include "model/CreateConferenceResult.h"
|
||||
#include "model/CreateMAURuleRequest.h"
|
||||
#include "model/CreateMAURuleResult.h"
|
||||
#include "model/CreateMPULayoutRequest.h"
|
||||
#include "model/CreateMPULayoutResult.h"
|
||||
#include "model/CreateMPURuleRequest.h"
|
||||
@@ -40,8 +38,6 @@
|
||||
#include "model/DeleteChannelResult.h"
|
||||
#include "model/DeleteConferenceRequest.h"
|
||||
#include "model/DeleteConferenceResult.h"
|
||||
#include "model/DeleteMAURuleRequest.h"
|
||||
#include "model/DeleteMAURuleResult.h"
|
||||
#include "model/DeleteMPULayoutRequest.h"
|
||||
#include "model/DeleteMPULayoutResult.h"
|
||||
#include "model/DeleteMPURuleRequest.h"
|
||||
@@ -56,8 +52,6 @@
|
||||
#include "model/DescribeChannelUsersResult.h"
|
||||
#include "model/DescribeConferenceAuthInfoRequest.h"
|
||||
#include "model/DescribeConferenceAuthInfoResult.h"
|
||||
#include "model/DescribeMAURuleRequest.h"
|
||||
#include "model/DescribeMAURuleResult.h"
|
||||
#include "model/DescribeMPULayoutInfoRequest.h"
|
||||
#include "model/DescribeMPULayoutInfoResult.h"
|
||||
#include "model/DescribeMPULayoutInfoListRequest.h"
|
||||
@@ -68,16 +62,26 @@
|
||||
#include "model/DescribeMPURuleResult.h"
|
||||
#include "model/DescribeRTCAppKeyRequest.h"
|
||||
#include "model/DescribeRTCAppKeyResult.h"
|
||||
#include "model/DescribeRecordFilesRequest.h"
|
||||
#include "model/DescribeRecordFilesResult.h"
|
||||
#include "model/DescribeRecordTasksRequest.h"
|
||||
#include "model/DescribeRecordTasksResult.h"
|
||||
#include "model/DescribeRecordTemplatesRequest.h"
|
||||
#include "model/DescribeRecordTemplatesResult.h"
|
||||
#include "model/DescribeRtcChannelCntDataRequest.h"
|
||||
#include "model/DescribeRtcChannelCntDataResult.h"
|
||||
#include "model/DescribeRtcChannelDetailRequest.h"
|
||||
#include "model/DescribeRtcChannelDetailResult.h"
|
||||
#include "model/DescribeRtcChannelListRequest.h"
|
||||
#include "model/DescribeRtcChannelListResult.h"
|
||||
#include "model/DescribeRtcChannelMetricRequest.h"
|
||||
#include "model/DescribeRtcChannelMetricResult.h"
|
||||
#include "model/DescribeRtcChannelMetricsRequest.h"
|
||||
#include "model/DescribeRtcChannelMetricsResult.h"
|
||||
#include "model/DescribeRtcChannelUserListRequest.h"
|
||||
#include "model/DescribeRtcChannelUserListResult.h"
|
||||
#include "model/DescribeRtcChannelsRequest.h"
|
||||
#include "model/DescribeRtcChannelsResult.h"
|
||||
#include "model/DescribeRtcDurationDataRequest.h"
|
||||
#include "model/DescribeRtcDurationDataResult.h"
|
||||
#include "model/DescribeRtcPeakChannelCntDataRequest.h"
|
||||
@@ -88,16 +92,14 @@
|
||||
#include "model/DescribeRtcQualityMetricResult.h"
|
||||
#include "model/DescribeRtcUserCntDataRequest.h"
|
||||
#include "model/DescribeRtcUserCntDataResult.h"
|
||||
#include "model/DescribeRtcUserEventsRequest.h"
|
||||
#include "model/DescribeRtcUserEventsResult.h"
|
||||
#include "model/DescribeRtcUserListRequest.h"
|
||||
#include "model/DescribeRtcUserListResult.h"
|
||||
#include "model/DescribeUserInfoInChannelRequest.h"
|
||||
#include "model/DescribeUserInfoInChannelResult.h"
|
||||
#include "model/DisableMAURuleRequest.h"
|
||||
#include "model/DisableMAURuleResult.h"
|
||||
#include "model/DisableMPURuleRequest.h"
|
||||
#include "model/DisableMPURuleResult.h"
|
||||
#include "model/EnableMAURuleRequest.h"
|
||||
#include "model/EnableMAURuleResult.h"
|
||||
#include "model/EnableMPURuleRequest.h"
|
||||
#include "model/EnableMPURuleResult.h"
|
||||
#include "model/GetMPUTaskStatusRequest.h"
|
||||
@@ -138,6 +140,8 @@
|
||||
#include "model/UpdateChannelResult.h"
|
||||
#include "model/UpdateMPULayoutRequest.h"
|
||||
#include "model/UpdateMPULayoutResult.h"
|
||||
#include "model/UpdateRecordTaskRequest.h"
|
||||
#include "model/UpdateRecordTaskResult.h"
|
||||
#include "model/UpdateRecordTemplateRequest.h"
|
||||
#include "model/UpdateRecordTemplateResult.h"
|
||||
|
||||
@@ -158,9 +162,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateConferenceResult> CreateConferenceOutcome;
|
||||
typedef std::future<CreateConferenceOutcome> CreateConferenceOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::CreateConferenceRequest&, const CreateConferenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateConferenceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateMAURuleResult> CreateMAURuleOutcome;
|
||||
typedef std::future<CreateMAURuleOutcome> CreateMAURuleOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::CreateMAURuleRequest&, const CreateMAURuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMAURuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateMPULayoutResult> CreateMPULayoutOutcome;
|
||||
typedef std::future<CreateMPULayoutOutcome> CreateMPULayoutOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::CreateMPULayoutRequest&, const CreateMPULayoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMPULayoutAsyncHandler;
|
||||
@@ -176,9 +177,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteConferenceResult> DeleteConferenceOutcome;
|
||||
typedef std::future<DeleteConferenceOutcome> DeleteConferenceOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DeleteConferenceRequest&, const DeleteConferenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteConferenceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteMAURuleResult> DeleteMAURuleOutcome;
|
||||
typedef std::future<DeleteMAURuleOutcome> DeleteMAURuleOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DeleteMAURuleRequest&, const DeleteMAURuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMAURuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteMPULayoutResult> DeleteMPULayoutOutcome;
|
||||
typedef std::future<DeleteMPULayoutOutcome> DeleteMPULayoutOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DeleteMPULayoutRequest&, const DeleteMPULayoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMPULayoutAsyncHandler;
|
||||
@@ -200,9 +198,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeConferenceAuthInfoResult> DescribeConferenceAuthInfoOutcome;
|
||||
typedef std::future<DescribeConferenceAuthInfoOutcome> DescribeConferenceAuthInfoOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeConferenceAuthInfoRequest&, const DescribeConferenceAuthInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeConferenceAuthInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeMAURuleResult> DescribeMAURuleOutcome;
|
||||
typedef std::future<DescribeMAURuleOutcome> DescribeMAURuleOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeMAURuleRequest&, const DescribeMAURuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMAURuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeMPULayoutInfoResult> DescribeMPULayoutInfoOutcome;
|
||||
typedef std::future<DescribeMPULayoutInfoOutcome> DescribeMPULayoutInfoOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeMPULayoutInfoRequest&, const DescribeMPULayoutInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMPULayoutInfoAsyncHandler;
|
||||
@@ -218,21 +213,36 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeRTCAppKeyResult> DescribeRTCAppKeyOutcome;
|
||||
typedef std::future<DescribeRTCAppKeyOutcome> DescribeRTCAppKeyOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRTCAppKeyRequest&, const DescribeRTCAppKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRTCAppKeyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRecordFilesResult> DescribeRecordFilesOutcome;
|
||||
typedef std::future<DescribeRecordFilesOutcome> DescribeRecordFilesOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRecordFilesRequest&, const DescribeRecordFilesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRecordFilesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRecordTasksResult> DescribeRecordTasksOutcome;
|
||||
typedef std::future<DescribeRecordTasksOutcome> DescribeRecordTasksOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRecordTasksRequest&, const DescribeRecordTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRecordTasksAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRecordTemplatesResult> DescribeRecordTemplatesOutcome;
|
||||
typedef std::future<DescribeRecordTemplatesOutcome> DescribeRecordTemplatesOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRecordTemplatesRequest&, const DescribeRecordTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRecordTemplatesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRtcChannelCntDataResult> DescribeRtcChannelCntDataOutcome;
|
||||
typedef std::future<DescribeRtcChannelCntDataOutcome> DescribeRtcChannelCntDataOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRtcChannelCntDataRequest&, const DescribeRtcChannelCntDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRtcChannelCntDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRtcChannelDetailResult> DescribeRtcChannelDetailOutcome;
|
||||
typedef std::future<DescribeRtcChannelDetailOutcome> DescribeRtcChannelDetailOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRtcChannelDetailRequest&, const DescribeRtcChannelDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRtcChannelDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRtcChannelListResult> DescribeRtcChannelListOutcome;
|
||||
typedef std::future<DescribeRtcChannelListOutcome> DescribeRtcChannelListOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRtcChannelListRequest&, const DescribeRtcChannelListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRtcChannelListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRtcChannelMetricResult> DescribeRtcChannelMetricOutcome;
|
||||
typedef std::future<DescribeRtcChannelMetricOutcome> DescribeRtcChannelMetricOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRtcChannelMetricRequest&, const DescribeRtcChannelMetricOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRtcChannelMetricAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRtcChannelMetricsResult> DescribeRtcChannelMetricsOutcome;
|
||||
typedef std::future<DescribeRtcChannelMetricsOutcome> DescribeRtcChannelMetricsOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRtcChannelMetricsRequest&, const DescribeRtcChannelMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRtcChannelMetricsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRtcChannelUserListResult> DescribeRtcChannelUserListOutcome;
|
||||
typedef std::future<DescribeRtcChannelUserListOutcome> DescribeRtcChannelUserListOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRtcChannelUserListRequest&, const DescribeRtcChannelUserListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRtcChannelUserListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRtcChannelsResult> DescribeRtcChannelsOutcome;
|
||||
typedef std::future<DescribeRtcChannelsOutcome> DescribeRtcChannelsOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRtcChannelsRequest&, const DescribeRtcChannelsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRtcChannelsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRtcDurationDataResult> DescribeRtcDurationDataOutcome;
|
||||
typedef std::future<DescribeRtcDurationDataOutcome> DescribeRtcDurationDataOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRtcDurationDataRequest&, const DescribeRtcDurationDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRtcDurationDataAsyncHandler;
|
||||
@@ -248,21 +258,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeRtcUserCntDataResult> DescribeRtcUserCntDataOutcome;
|
||||
typedef std::future<DescribeRtcUserCntDataOutcome> DescribeRtcUserCntDataOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRtcUserCntDataRequest&, const DescribeRtcUserCntDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRtcUserCntDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRtcUserEventsResult> DescribeRtcUserEventsOutcome;
|
||||
typedef std::future<DescribeRtcUserEventsOutcome> DescribeRtcUserEventsOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRtcUserEventsRequest&, const DescribeRtcUserEventsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRtcUserEventsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRtcUserListResult> DescribeRtcUserListOutcome;
|
||||
typedef std::future<DescribeRtcUserListOutcome> DescribeRtcUserListOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRtcUserListRequest&, const DescribeRtcUserListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRtcUserListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeUserInfoInChannelResult> DescribeUserInfoInChannelOutcome;
|
||||
typedef std::future<DescribeUserInfoInChannelOutcome> DescribeUserInfoInChannelOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeUserInfoInChannelRequest&, const DescribeUserInfoInChannelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserInfoInChannelAsyncHandler;
|
||||
typedef Outcome<Error, Model::DisableMAURuleResult> DisableMAURuleOutcome;
|
||||
typedef std::future<DisableMAURuleOutcome> DisableMAURuleOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DisableMAURuleRequest&, const DisableMAURuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableMAURuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DisableMPURuleResult> DisableMPURuleOutcome;
|
||||
typedef std::future<DisableMPURuleOutcome> DisableMPURuleOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DisableMPURuleRequest&, const DisableMPURuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableMPURuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableMAURuleResult> EnableMAURuleOutcome;
|
||||
typedef std::future<EnableMAURuleOutcome> EnableMAURuleOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::EnableMAURuleRequest&, const EnableMAURuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableMAURuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableMPURuleResult> EnableMPURuleOutcome;
|
||||
typedef std::future<EnableMPURuleOutcome> EnableMPURuleOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::EnableMPURuleRequest&, const EnableMPURuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableMPURuleAsyncHandler;
|
||||
@@ -323,6 +330,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateMPULayoutResult> UpdateMPULayoutOutcome;
|
||||
typedef std::future<UpdateMPULayoutOutcome> UpdateMPULayoutOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::UpdateMPULayoutRequest&, const UpdateMPULayoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateMPULayoutAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateRecordTaskResult> UpdateRecordTaskOutcome;
|
||||
typedef std::future<UpdateRecordTaskOutcome> UpdateRecordTaskOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::UpdateRecordTaskRequest&, const UpdateRecordTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateRecordTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateRecordTemplateResult> UpdateRecordTemplateOutcome;
|
||||
typedef std::future<UpdateRecordTemplateOutcome> UpdateRecordTemplateOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::UpdateRecordTemplateRequest&, const UpdateRecordTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateRecordTemplateAsyncHandler;
|
||||
@@ -340,9 +350,6 @@ namespace AlibabaCloud
|
||||
CreateConferenceOutcome createConference(const Model::CreateConferenceRequest &request)const;
|
||||
void createConferenceAsync(const Model::CreateConferenceRequest& request, const CreateConferenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateConferenceOutcomeCallable createConferenceCallable(const Model::CreateConferenceRequest& request) const;
|
||||
CreateMAURuleOutcome createMAURule(const Model::CreateMAURuleRequest &request)const;
|
||||
void createMAURuleAsync(const Model::CreateMAURuleRequest& request, const CreateMAURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMAURuleOutcomeCallable createMAURuleCallable(const Model::CreateMAURuleRequest& request) const;
|
||||
CreateMPULayoutOutcome createMPULayout(const Model::CreateMPULayoutRequest &request)const;
|
||||
void createMPULayoutAsync(const Model::CreateMPULayoutRequest& request, const CreateMPULayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMPULayoutOutcomeCallable createMPULayoutCallable(const Model::CreateMPULayoutRequest& request) const;
|
||||
@@ -358,9 +365,6 @@ namespace AlibabaCloud
|
||||
DeleteConferenceOutcome deleteConference(const Model::DeleteConferenceRequest &request)const;
|
||||
void deleteConferenceAsync(const Model::DeleteConferenceRequest& request, const DeleteConferenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteConferenceOutcomeCallable deleteConferenceCallable(const Model::DeleteConferenceRequest& request) const;
|
||||
DeleteMAURuleOutcome deleteMAURule(const Model::DeleteMAURuleRequest &request)const;
|
||||
void deleteMAURuleAsync(const Model::DeleteMAURuleRequest& request, const DeleteMAURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteMAURuleOutcomeCallable deleteMAURuleCallable(const Model::DeleteMAURuleRequest& request) const;
|
||||
DeleteMPULayoutOutcome deleteMPULayout(const Model::DeleteMPULayoutRequest &request)const;
|
||||
void deleteMPULayoutAsync(const Model::DeleteMPULayoutRequest& request, const DeleteMPULayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteMPULayoutOutcomeCallable deleteMPULayoutCallable(const Model::DeleteMPULayoutRequest& request) const;
|
||||
@@ -382,9 +386,6 @@ namespace AlibabaCloud
|
||||
DescribeConferenceAuthInfoOutcome describeConferenceAuthInfo(const Model::DescribeConferenceAuthInfoRequest &request)const;
|
||||
void describeConferenceAuthInfoAsync(const Model::DescribeConferenceAuthInfoRequest& request, const DescribeConferenceAuthInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeConferenceAuthInfoOutcomeCallable describeConferenceAuthInfoCallable(const Model::DescribeConferenceAuthInfoRequest& request) const;
|
||||
DescribeMAURuleOutcome describeMAURule(const Model::DescribeMAURuleRequest &request)const;
|
||||
void describeMAURuleAsync(const Model::DescribeMAURuleRequest& request, const DescribeMAURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeMAURuleOutcomeCallable describeMAURuleCallable(const Model::DescribeMAURuleRequest& request) const;
|
||||
DescribeMPULayoutInfoOutcome describeMPULayoutInfo(const Model::DescribeMPULayoutInfoRequest &request)const;
|
||||
void describeMPULayoutInfoAsync(const Model::DescribeMPULayoutInfoRequest& request, const DescribeMPULayoutInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeMPULayoutInfoOutcomeCallable describeMPULayoutInfoCallable(const Model::DescribeMPULayoutInfoRequest& request) const;
|
||||
@@ -400,21 +401,36 @@ namespace AlibabaCloud
|
||||
DescribeRTCAppKeyOutcome describeRTCAppKey(const Model::DescribeRTCAppKeyRequest &request)const;
|
||||
void describeRTCAppKeyAsync(const Model::DescribeRTCAppKeyRequest& request, const DescribeRTCAppKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRTCAppKeyOutcomeCallable describeRTCAppKeyCallable(const Model::DescribeRTCAppKeyRequest& request) const;
|
||||
DescribeRecordFilesOutcome describeRecordFiles(const Model::DescribeRecordFilesRequest &request)const;
|
||||
void describeRecordFilesAsync(const Model::DescribeRecordFilesRequest& request, const DescribeRecordFilesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRecordFilesOutcomeCallable describeRecordFilesCallable(const Model::DescribeRecordFilesRequest& request) const;
|
||||
DescribeRecordTasksOutcome describeRecordTasks(const Model::DescribeRecordTasksRequest &request)const;
|
||||
void describeRecordTasksAsync(const Model::DescribeRecordTasksRequest& request, const DescribeRecordTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRecordTasksOutcomeCallable describeRecordTasksCallable(const Model::DescribeRecordTasksRequest& request) const;
|
||||
DescribeRecordTemplatesOutcome describeRecordTemplates(const Model::DescribeRecordTemplatesRequest &request)const;
|
||||
void describeRecordTemplatesAsync(const Model::DescribeRecordTemplatesRequest& request, const DescribeRecordTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRecordTemplatesOutcomeCallable describeRecordTemplatesCallable(const Model::DescribeRecordTemplatesRequest& request) const;
|
||||
DescribeRtcChannelCntDataOutcome describeRtcChannelCntData(const Model::DescribeRtcChannelCntDataRequest &request)const;
|
||||
void describeRtcChannelCntDataAsync(const Model::DescribeRtcChannelCntDataRequest& request, const DescribeRtcChannelCntDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRtcChannelCntDataOutcomeCallable describeRtcChannelCntDataCallable(const Model::DescribeRtcChannelCntDataRequest& request) const;
|
||||
DescribeRtcChannelDetailOutcome describeRtcChannelDetail(const Model::DescribeRtcChannelDetailRequest &request)const;
|
||||
void describeRtcChannelDetailAsync(const Model::DescribeRtcChannelDetailRequest& request, const DescribeRtcChannelDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRtcChannelDetailOutcomeCallable describeRtcChannelDetailCallable(const Model::DescribeRtcChannelDetailRequest& request) const;
|
||||
DescribeRtcChannelListOutcome describeRtcChannelList(const Model::DescribeRtcChannelListRequest &request)const;
|
||||
void describeRtcChannelListAsync(const Model::DescribeRtcChannelListRequest& request, const DescribeRtcChannelListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRtcChannelListOutcomeCallable describeRtcChannelListCallable(const Model::DescribeRtcChannelListRequest& request) const;
|
||||
DescribeRtcChannelMetricOutcome describeRtcChannelMetric(const Model::DescribeRtcChannelMetricRequest &request)const;
|
||||
void describeRtcChannelMetricAsync(const Model::DescribeRtcChannelMetricRequest& request, const DescribeRtcChannelMetricAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRtcChannelMetricOutcomeCallable describeRtcChannelMetricCallable(const Model::DescribeRtcChannelMetricRequest& request) const;
|
||||
DescribeRtcChannelMetricsOutcome describeRtcChannelMetrics(const Model::DescribeRtcChannelMetricsRequest &request)const;
|
||||
void describeRtcChannelMetricsAsync(const Model::DescribeRtcChannelMetricsRequest& request, const DescribeRtcChannelMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRtcChannelMetricsOutcomeCallable describeRtcChannelMetricsCallable(const Model::DescribeRtcChannelMetricsRequest& request) const;
|
||||
DescribeRtcChannelUserListOutcome describeRtcChannelUserList(const Model::DescribeRtcChannelUserListRequest &request)const;
|
||||
void describeRtcChannelUserListAsync(const Model::DescribeRtcChannelUserListRequest& request, const DescribeRtcChannelUserListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRtcChannelUserListOutcomeCallable describeRtcChannelUserListCallable(const Model::DescribeRtcChannelUserListRequest& request) const;
|
||||
DescribeRtcChannelsOutcome describeRtcChannels(const Model::DescribeRtcChannelsRequest &request)const;
|
||||
void describeRtcChannelsAsync(const Model::DescribeRtcChannelsRequest& request, const DescribeRtcChannelsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRtcChannelsOutcomeCallable describeRtcChannelsCallable(const Model::DescribeRtcChannelsRequest& request) const;
|
||||
DescribeRtcDurationDataOutcome describeRtcDurationData(const Model::DescribeRtcDurationDataRequest &request)const;
|
||||
void describeRtcDurationDataAsync(const Model::DescribeRtcDurationDataRequest& request, const DescribeRtcDurationDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRtcDurationDataOutcomeCallable describeRtcDurationDataCallable(const Model::DescribeRtcDurationDataRequest& request) const;
|
||||
@@ -430,21 +446,18 @@ namespace AlibabaCloud
|
||||
DescribeRtcUserCntDataOutcome describeRtcUserCntData(const Model::DescribeRtcUserCntDataRequest &request)const;
|
||||
void describeRtcUserCntDataAsync(const Model::DescribeRtcUserCntDataRequest& request, const DescribeRtcUserCntDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRtcUserCntDataOutcomeCallable describeRtcUserCntDataCallable(const Model::DescribeRtcUserCntDataRequest& request) const;
|
||||
DescribeRtcUserEventsOutcome describeRtcUserEvents(const Model::DescribeRtcUserEventsRequest &request)const;
|
||||
void describeRtcUserEventsAsync(const Model::DescribeRtcUserEventsRequest& request, const DescribeRtcUserEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRtcUserEventsOutcomeCallable describeRtcUserEventsCallable(const Model::DescribeRtcUserEventsRequest& request) const;
|
||||
DescribeRtcUserListOutcome describeRtcUserList(const Model::DescribeRtcUserListRequest &request)const;
|
||||
void describeRtcUserListAsync(const Model::DescribeRtcUserListRequest& request, const DescribeRtcUserListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRtcUserListOutcomeCallable describeRtcUserListCallable(const Model::DescribeRtcUserListRequest& request) const;
|
||||
DescribeUserInfoInChannelOutcome describeUserInfoInChannel(const Model::DescribeUserInfoInChannelRequest &request)const;
|
||||
void describeUserInfoInChannelAsync(const Model::DescribeUserInfoInChannelRequest& request, const DescribeUserInfoInChannelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeUserInfoInChannelOutcomeCallable describeUserInfoInChannelCallable(const Model::DescribeUserInfoInChannelRequest& request) const;
|
||||
DisableMAURuleOutcome disableMAURule(const Model::DisableMAURuleRequest &request)const;
|
||||
void disableMAURuleAsync(const Model::DisableMAURuleRequest& request, const DisableMAURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableMAURuleOutcomeCallable disableMAURuleCallable(const Model::DisableMAURuleRequest& request) const;
|
||||
DisableMPURuleOutcome disableMPURule(const Model::DisableMPURuleRequest &request)const;
|
||||
void disableMPURuleAsync(const Model::DisableMPURuleRequest& request, const DisableMPURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableMPURuleOutcomeCallable disableMPURuleCallable(const Model::DisableMPURuleRequest& request) const;
|
||||
EnableMAURuleOutcome enableMAURule(const Model::EnableMAURuleRequest &request)const;
|
||||
void enableMAURuleAsync(const Model::EnableMAURuleRequest& request, const EnableMAURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableMAURuleOutcomeCallable enableMAURuleCallable(const Model::EnableMAURuleRequest& request) const;
|
||||
EnableMPURuleOutcome enableMPURule(const Model::EnableMPURuleRequest &request)const;
|
||||
void enableMPURuleAsync(const Model::EnableMPURuleRequest& request, const EnableMPURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableMPURuleOutcomeCallable enableMPURuleCallable(const Model::EnableMPURuleRequest& request) const;
|
||||
@@ -505,6 +518,9 @@ namespace AlibabaCloud
|
||||
UpdateMPULayoutOutcome updateMPULayout(const Model::UpdateMPULayoutRequest &request)const;
|
||||
void updateMPULayoutAsync(const Model::UpdateMPULayoutRequest& request, const UpdateMPULayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateMPULayoutOutcomeCallable updateMPULayoutCallable(const Model::UpdateMPULayoutRequest& request) const;
|
||||
UpdateRecordTaskOutcome updateRecordTask(const Model::UpdateRecordTaskRequest &request)const;
|
||||
void updateRecordTaskAsync(const Model::UpdateRecordTaskRequest& request, const UpdateRecordTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateRecordTaskOutcomeCallable updateRecordTaskCallable(const Model::UpdateRecordTaskRequest& request) const;
|
||||
UpdateRecordTemplateOutcome updateRecordTemplate(const Model::UpdateRecordTemplateRequest &request)const;
|
||||
void updateRecordTemplateAsync(const Model::UpdateRecordTemplateRequest& request, const UpdateRecordTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateRecordTemplateOutcomeCallable updateRecordTemplateCallable(const Model::UpdateRecordTemplateRequest& request) const;
|
||||
|
||||
@@ -30,6 +30,28 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT AddRecordTemplateRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Watermarks
|
||||
{
|
||||
std::string url;
|
||||
float alpha;
|
||||
int display;
|
||||
float x;
|
||||
float y;
|
||||
float width;
|
||||
float height;
|
||||
int zOrder;
|
||||
};
|
||||
struct Backgrounds
|
||||
{
|
||||
std::string url;
|
||||
int display;
|
||||
float x;
|
||||
float y;
|
||||
float width;
|
||||
float height;
|
||||
int zOrder;
|
||||
};
|
||||
|
||||
public:
|
||||
AddRecordTemplateRequest();
|
||||
@@ -49,14 +71,22 @@ namespace AlibabaCloud
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getOssBucket()const;
|
||||
void setOssBucket(const std::string& ossBucket);
|
||||
std::string getMnsQueue()const;
|
||||
void setMnsQueue(const std::string& mnsQueue);
|
||||
int getDelayStopTime()const;
|
||||
void setDelayStopTime(int delayStopTime);
|
||||
int getFileSplitInterval()const;
|
||||
void setFileSplitInterval(int fileSplitInterval);
|
||||
std::string getMnsQueue()const;
|
||||
void setMnsQueue(const std::string& mnsQueue);
|
||||
std::string getHttpCallbackUrl()const;
|
||||
void setHttpCallbackUrl(const std::string& httpCallbackUrl);
|
||||
std::vector<Watermarks> getWatermarks()const;
|
||||
void setWatermarks(const std::vector<Watermarks>& watermarks);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
std::vector<Backgrounds> getBackgrounds()const;
|
||||
void setBackgrounds(const std::vector<Backgrounds>& backgrounds);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
int getMediaEncode()const;
|
||||
@@ -70,10 +100,14 @@ namespace AlibabaCloud
|
||||
std::vector<long> layoutIds_;
|
||||
std::string showLog_;
|
||||
std::string ossBucket_;
|
||||
std::string mnsQueue_;
|
||||
int delayStopTime_;
|
||||
int fileSplitInterval_;
|
||||
std::string mnsQueue_;
|
||||
std::string httpCallbackUrl_;
|
||||
std::vector<Watermarks> watermarks_;
|
||||
long ownerId_;
|
||||
std::string appId_;
|
||||
std::vector<Backgrounds> backgrounds_;
|
||||
std::string name_;
|
||||
int mediaEncode_;
|
||||
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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_RTC_MODEL_DESCRIBERECORDFILESREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDFILESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeRecordFilesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRecordFilesRequest();
|
||||
~DescribeRecordFilesRequest();
|
||||
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::vector<std::string> getTaskIds()const;
|
||||
void setTaskIds(const std::vector<std::string>& taskIds);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
std::string getChannelId()const;
|
||||
void setChannelId(const std::string& channelId);
|
||||
|
||||
private:
|
||||
std::string startTime_;
|
||||
int pageNum_;
|
||||
std::vector<std::string> taskIds_;
|
||||
int pageSize_;
|
||||
std::string showLog_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
std::string appId_;
|
||||
std::string channelId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDFILESREQUEST_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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_RTC_MODEL_DESCRIBERECORDFILESRESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDFILESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeRecordFilesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RecordFile
|
||||
{
|
||||
std::string taskId;
|
||||
std::string appId;
|
||||
std::string createTime;
|
||||
std::string startTime;
|
||||
float duration;
|
||||
std::string channelId;
|
||||
std::string url;
|
||||
std::string stopTime;
|
||||
};
|
||||
|
||||
|
||||
DescribeRecordFilesResult();
|
||||
explicit DescribeRecordFilesResult(const std::string &payload);
|
||||
~DescribeRecordFilesResult();
|
||||
long getTotalNum()const;
|
||||
long getTotalPage()const;
|
||||
std::vector<RecordFile> getRecordFiles()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long totalNum_;
|
||||
long totalPage_;
|
||||
std::vector<RecordFile> recordFiles_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDFILESRESULT_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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_RTC_MODEL_DESCRIBERECORDTASKSREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeRecordTasksRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRecordTasksRequest();
|
||||
~DescribeRecordTasksRequest();
|
||||
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::vector<std::string> getTaskIds()const;
|
||||
void setTaskIds(const std::vector<std::string>& taskIds);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
std::string getChannelId()const;
|
||||
void setChannelId(const std::string& channelId);
|
||||
std::string getStatus()const;
|
||||
void setStatus(const std::string& status);
|
||||
|
||||
private:
|
||||
std::string startTime_;
|
||||
std::vector<std::string> taskIds_;
|
||||
int pageNum_;
|
||||
int pageSize_;
|
||||
std::string showLog_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
std::string appId_;
|
||||
std::string channelId_;
|
||||
std::string status_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSREQUEST_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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_RTC_MODEL_DESCRIBERECORDTASKSRESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeRecordTasksResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RecordTask
|
||||
{
|
||||
struct UserPanesItem
|
||||
{
|
||||
std::string userId;
|
||||
int paneId;
|
||||
std::string source;
|
||||
};
|
||||
int status;
|
||||
std::vector<RecordTask::UserPanesItem> userPanes;
|
||||
std::string taskId;
|
||||
std::string appId;
|
||||
std::vector<std::string> subSpecUsers;
|
||||
std::string createTime;
|
||||
std::string channelId;
|
||||
std::string templateId;
|
||||
};
|
||||
|
||||
|
||||
DescribeRecordTasksResult();
|
||||
explicit DescribeRecordTasksResult(const std::string &payload);
|
||||
~DescribeRecordTasksResult();
|
||||
std::vector<RecordTask> getRecordTasks()const;
|
||||
long getTotalNum()const;
|
||||
long getTotalPage()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<RecordTask> recordTasks_;
|
||||
long totalNum_;
|
||||
long totalPage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_DISABLEMAURULEREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DISABLEMAURULEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELDETAILREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,30 +28,42 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DisableMAURuleRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelDetailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DisableMAURuleRequest();
|
||||
~DisableMAURuleRequest();
|
||||
DescribeRtcChannelDetailRequest();
|
||||
~DescribeRtcChannelDetailRequest();
|
||||
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
int getPageNo()const;
|
||||
void setPageNo(int pageNo);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
long getRuleId()const;
|
||||
void setRuleId(long ruleId);
|
||||
std::string getChannelId()const;
|
||||
void setChannelId(const std::string& channelId);
|
||||
|
||||
private:
|
||||
std::string startTime_;
|
||||
int pageSize_;
|
||||
std::string showLog_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
int pageNo_;
|
||||
std::string appId_;
|
||||
long ruleId_;
|
||||
std::string channelId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DISABLEMAURULEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELDETAILREQUEST_H_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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_RTC_MODEL_DESCRIBERTCCHANNELDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELDETAILRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Detail
|
||||
{
|
||||
std::string uid;
|
||||
std::string deviceType;
|
||||
std::string leaveTime;
|
||||
std::string platform;
|
||||
std::string oS;
|
||||
std::string sdkVersion;
|
||||
std::string joinTime;
|
||||
std::string sid;
|
||||
};
|
||||
|
||||
|
||||
DescribeRtcChannelDetailResult();
|
||||
explicit DescribeRtcChannelDetailResult(const std::string &payload);
|
||||
~DescribeRtcChannelDetailResult();
|
||||
long getPageSize()const;
|
||||
long getTotalCnt()const;
|
||||
std::vector<Detail> getChannelInfo()const;
|
||||
long getPageNo()const;
|
||||
std::string getChannelId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long pageSize_;
|
||||
long totalCnt_;
|
||||
std::vector<Detail> channelInfo_;
|
||||
long pageNo_;
|
||||
std::string channelId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELDETAILRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_RTC_MODEL_DESCRIBERTCCHANNELMETRICSREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelMetricsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRtcChannelMetricsRequest();
|
||||
~DescribeRtcChannelMetricsRequest();
|
||||
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getSubUid()const;
|
||||
void setSubUid(const std::string& subUid);
|
||||
std::string getPubUid()const;
|
||||
void setPubUid(const std::string& pubUid);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
std::string getChannelId()const;
|
||||
void setChannelId(const std::string& channelId);
|
||||
|
||||
private:
|
||||
std::string startTime_;
|
||||
std::string subUid_;
|
||||
std::string pubUid_;
|
||||
std::string showLog_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
std::string appId_;
|
||||
std::string channelId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICSREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULERESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULERESULT_H_
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICSRESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,32 +29,29 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeMAURuleResult : public ServiceResult
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelMetricsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Rule
|
||||
struct Metric
|
||||
{
|
||||
std::string channelPrefix;
|
||||
int isEnable;
|
||||
std::string callBack;
|
||||
long ruleId;
|
||||
std::string useridPrefix;
|
||||
long templateId;
|
||||
std::string uid;
|
||||
std::string mid;
|
||||
std::vector<std::string> kVs;
|
||||
};
|
||||
|
||||
|
||||
DescribeMAURuleResult();
|
||||
explicit DescribeMAURuleResult(const std::string &payload);
|
||||
~DescribeMAURuleResult();
|
||||
std::vector<Rule> getRules()const;
|
||||
DescribeRtcChannelMetricsResult();
|
||||
explicit DescribeRtcChannelMetricsResult(const std::string &payload);
|
||||
~DescribeRtcChannelMetricsResult();
|
||||
std::vector<Metric> getMetrics()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Rule> rules_;
|
||||
std::vector<Metric> metrics_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULERESULT_H_
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELMETRICSRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_DELETEMAURULEREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DELETEMAURULEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELSREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,30 +28,42 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DeleteMAURuleRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteMAURuleRequest();
|
||||
~DeleteMAURuleRequest();
|
||||
DescribeRtcChannelsRequest();
|
||||
~DescribeRtcChannelsRequest();
|
||||
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
int getPageNo()const;
|
||||
void setPageNo(int pageNo);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
long getRuleId()const;
|
||||
void setRuleId(long ruleId);
|
||||
std::string getChannelId()const;
|
||||
void setChannelId(const std::string& channelId);
|
||||
|
||||
private:
|
||||
std::string startTime_;
|
||||
int pageSize_;
|
||||
std::string showLog_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
int pageNo_;
|
||||
std::string appId_;
|
||||
long ruleId_;
|
||||
std::string channelId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DELETEMAURULEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELSREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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_RTC_MODEL_DESCRIBERTCCHANNELSRESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeRtcChannelsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Channel
|
||||
{
|
||||
bool finished;
|
||||
std::string endTime;
|
||||
std::string startTime;
|
||||
std::string channelId;
|
||||
};
|
||||
|
||||
|
||||
DescribeRtcChannelsResult();
|
||||
explicit DescribeRtcChannelsResult(const std::string &payload);
|
||||
~DescribeRtcChannelsResult();
|
||||
long getPageSize()const;
|
||||
long getTotalCnt()const;
|
||||
long getPageNo()const;
|
||||
std::vector<Channel> getChannels()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long pageSize_;
|
||||
long totalCnt_;
|
||||
long pageNo_;
|
||||
std::vector<Channel> channels_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCCHANNELSRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_CREATEMAURULEREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_CREATEMAURULEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSEREVENTSREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSEREVENTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,39 +28,39 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT CreateMAURuleRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeRtcUserEventsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateMAURuleRequest();
|
||||
~CreateMAURuleRequest();
|
||||
DescribeRtcUserEventsRequest();
|
||||
~DescribeRtcUserEventsRequest();
|
||||
|
||||
std::string getUseridPrefix()const;
|
||||
void setUseridPrefix(const std::string& useridPrefix);
|
||||
std::string getChannelPrefix()const;
|
||||
void setChannelPrefix(const std::string& channelPrefix);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getUid()const;
|
||||
void setUid(const std::string& uid);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
long getMauTemplateId()const;
|
||||
void setMauTemplateId(long mauTemplateId);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
std::string getCallBack()const;
|
||||
void setCallBack(const std::string& callBack);
|
||||
std::string getChannelId()const;
|
||||
void setChannelId(const std::string& channelId);
|
||||
|
||||
private:
|
||||
std::string useridPrefix_;
|
||||
std::string channelPrefix_;
|
||||
std::string startTime_;
|
||||
std::string uid_;
|
||||
std::string showLog_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
long mauTemplateId_;
|
||||
std::string appId_;
|
||||
std::string callBack_;
|
||||
std::string channelId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_CREATEMAURULEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSEREVENTSREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_DELETEMAURULERESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DELETEMAURULERESULT_H_
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSEREVENTSRESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSEREVENTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,21 +29,29 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DeleteMAURuleResult : public ServiceResult
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeRtcUserEventsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Event
|
||||
{
|
||||
std::string category;
|
||||
long eventTime;
|
||||
std::string eventId;
|
||||
};
|
||||
|
||||
|
||||
DeleteMAURuleResult();
|
||||
explicit DeleteMAURuleResult(const std::string &payload);
|
||||
~DeleteMAURuleResult();
|
||||
DescribeRtcUserEventsResult();
|
||||
explicit DescribeRtcUserEventsResult(const std::string &payload);
|
||||
~DescribeRtcUserEventsResult();
|
||||
std::vector<Event> getEvents()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Event> events_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DELETEMAURULERESULT_H_
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERTCUSEREVENTSRESULT_H_
|
||||
@@ -36,6 +36,28 @@ namespace AlibabaCloud
|
||||
int paneId;
|
||||
std::string userId;
|
||||
std::string sourceType;
|
||||
struct Images
|
||||
{
|
||||
std::string url;
|
||||
int display;
|
||||
float x;
|
||||
float y;
|
||||
float width;
|
||||
float height;
|
||||
int zOrder;
|
||||
};
|
||||
std::vector<Images> images;
|
||||
struct Texts
|
||||
{
|
||||
std::string text;
|
||||
float x;
|
||||
float y;
|
||||
int fontType;
|
||||
int fontSize;
|
||||
int fontColor;
|
||||
int zOrder;
|
||||
};
|
||||
std::vector<Texts> texts;
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
98
rtc/include/alibabacloud/rtc/model/UpdateRecordTaskRequest.h
Normal file
98
rtc/include/alibabacloud/rtc/model/UpdateRecordTaskRequest.h
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* 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_RTC_MODEL_UPDATERECORDTASKREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_UPDATERECORDTASKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT UpdateRecordTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct UserPanes
|
||||
{
|
||||
int paneId;
|
||||
std::string userId;
|
||||
std::string sourceType;
|
||||
struct Images
|
||||
{
|
||||
std::string url;
|
||||
int display;
|
||||
float x;
|
||||
float y;
|
||||
float width;
|
||||
float height;
|
||||
int zOrder;
|
||||
};
|
||||
std::vector<Images> images;
|
||||
struct Texts
|
||||
{
|
||||
std::string text;
|
||||
float x;
|
||||
float y;
|
||||
int fontType;
|
||||
int fontSize;
|
||||
int fontColor;
|
||||
int zOrder;
|
||||
};
|
||||
std::vector<Texts> texts;
|
||||
};
|
||||
|
||||
public:
|
||||
UpdateRecordTaskRequest();
|
||||
~UpdateRecordTaskRequest();
|
||||
|
||||
std::vector<UserPanes> getUserPanes()const;
|
||||
void setUserPanes(const std::vector<UserPanes>& userPanes);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
std::string getShowLog()const;
|
||||
void setShowLog(const std::string& showLog);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getTemplateId()const;
|
||||
void setTemplateId(const std::string& templateId);
|
||||
std::vector<std::string> getSubSpecUsers()const;
|
||||
void setSubSpecUsers(const std::vector<std::string>& subSpecUsers);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
std::string getChannelId()const;
|
||||
void setChannelId(const std::string& channelId);
|
||||
|
||||
private:
|
||||
std::vector<UserPanes> userPanes_;
|
||||
std::string taskId_;
|
||||
std::string showLog_;
|
||||
long ownerId_;
|
||||
std::string templateId_;
|
||||
std::vector<std::string> subSpecUsers_;
|
||||
std::string appId_;
|
||||
std::string channelId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_UPDATERECORDTASKREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_DISABLEMAURULERESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DISABLEMAURULERESULT_H_
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_UPDATERECORDTASKRESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_UPDATERECORDTASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,14 +29,14 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DisableMAURuleResult : public ServiceResult
|
||||
class ALIBABACLOUD_RTC_EXPORT UpdateRecordTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DisableMAURuleResult();
|
||||
explicit DisableMAURuleResult(const std::string &payload);
|
||||
~DisableMAURuleResult();
|
||||
UpdateRecordTaskResult();
|
||||
explicit UpdateRecordTaskResult(const std::string &payload);
|
||||
~UpdateRecordTaskResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -46,4 +46,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DISABLEMAURULERESULT_H_
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_UPDATERECORDTASKRESULT_H_
|
||||
@@ -30,6 +30,28 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT UpdateRecordTemplateRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Watermarks
|
||||
{
|
||||
std::string url;
|
||||
float alpha;
|
||||
int display;
|
||||
float x;
|
||||
float y;
|
||||
float width;
|
||||
float height;
|
||||
int zOrder;
|
||||
};
|
||||
struct Backgrounds
|
||||
{
|
||||
std::string url;
|
||||
int display;
|
||||
float x;
|
||||
float y;
|
||||
float width;
|
||||
float height;
|
||||
int zOrder;
|
||||
};
|
||||
|
||||
public:
|
||||
UpdateRecordTemplateRequest();
|
||||
@@ -53,12 +75,18 @@ namespace AlibabaCloud
|
||||
void setMnsQueue(const std::string& mnsQueue);
|
||||
int getFileSplitInterval()const;
|
||||
void setFileSplitInterval(int fileSplitInterval);
|
||||
std::string getHttpCallbackUrl()const;
|
||||
void setHttpCallbackUrl(const std::string& httpCallbackUrl);
|
||||
std::vector<Watermarks> getWatermarks()const;
|
||||
void setWatermarks(const std::vector<Watermarks>& watermarks);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getTemplateId()const;
|
||||
void setTemplateId(const std::string& templateId);
|
||||
std::string getAppId()const;
|
||||
void setAppId(const std::string& appId);
|
||||
std::vector<Backgrounds> getBackgrounds()const;
|
||||
void setBackgrounds(const std::vector<Backgrounds>& backgrounds);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
int getMediaEncode()const;
|
||||
@@ -74,9 +102,12 @@ namespace AlibabaCloud
|
||||
std::string ossBucket_;
|
||||
std::string mnsQueue_;
|
||||
int fileSplitInterval_;
|
||||
std::string httpCallbackUrl_;
|
||||
std::vector<Watermarks> watermarks_;
|
||||
long ownerId_;
|
||||
std::string templateId_;
|
||||
std::string appId_;
|
||||
std::vector<Backgrounds> backgrounds_;
|
||||
std::string name_;
|
||||
int mediaEncode_;
|
||||
|
||||
|
||||
@@ -159,42 +159,6 @@ RtcClient::CreateConferenceOutcomeCallable RtcClient::createConferenceCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::CreateMAURuleOutcome RtcClient::createMAURule(const CreateMAURuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateMAURuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateMAURuleOutcome(CreateMAURuleResult(outcome.result()));
|
||||
else
|
||||
return CreateMAURuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::createMAURuleAsync(const CreateMAURuleRequest& request, const CreateMAURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createMAURule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::CreateMAURuleOutcomeCallable RtcClient::createMAURuleCallable(const CreateMAURuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateMAURuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createMAURule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::CreateMPULayoutOutcome RtcClient::createMPULayout(const CreateMPULayoutRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,42 +339,6 @@ RtcClient::DeleteConferenceOutcomeCallable RtcClient::deleteConferenceCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DeleteMAURuleOutcome RtcClient::deleteMAURule(const DeleteMAURuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteMAURuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteMAURuleOutcome(DeleteMAURuleResult(outcome.result()));
|
||||
else
|
||||
return DeleteMAURuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::deleteMAURuleAsync(const DeleteMAURuleRequest& request, const DeleteMAURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteMAURule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DeleteMAURuleOutcomeCallable RtcClient::deleteMAURuleCallable(const DeleteMAURuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteMAURuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteMAURule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DeleteMPULayoutOutcome RtcClient::deleteMPULayout(const DeleteMPULayoutRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -663,42 +591,6 @@ RtcClient::DescribeConferenceAuthInfoOutcomeCallable RtcClient::describeConferen
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeMAURuleOutcome RtcClient::describeMAURule(const DescribeMAURuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeMAURuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeMAURuleOutcome(DescribeMAURuleResult(outcome.result()));
|
||||
else
|
||||
return DescribeMAURuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeMAURuleAsync(const DescribeMAURuleRequest& request, const DescribeMAURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeMAURule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeMAURuleOutcomeCallable RtcClient::describeMAURuleCallable(const DescribeMAURuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeMAURuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeMAURule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeMPULayoutInfoOutcome RtcClient::describeMPULayoutInfo(const DescribeMPULayoutInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -879,6 +771,78 @@ RtcClient::DescribeRTCAppKeyOutcomeCallable RtcClient::describeRTCAppKeyCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRecordFilesOutcome RtcClient::describeRecordFiles(const DescribeRecordFilesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRecordFilesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRecordFilesOutcome(DescribeRecordFilesResult(outcome.result()));
|
||||
else
|
||||
return DescribeRecordFilesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeRecordFilesAsync(const DescribeRecordFilesRequest& request, const DescribeRecordFilesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRecordFiles(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeRecordFilesOutcomeCallable RtcClient::describeRecordFilesCallable(const DescribeRecordFilesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRecordFilesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRecordFiles(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRecordTasksOutcome RtcClient::describeRecordTasks(const DescribeRecordTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRecordTasksOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRecordTasksOutcome(DescribeRecordTasksResult(outcome.result()));
|
||||
else
|
||||
return DescribeRecordTasksOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeRecordTasksAsync(const DescribeRecordTasksRequest& request, const DescribeRecordTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRecordTasks(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeRecordTasksOutcomeCallable RtcClient::describeRecordTasksCallable(const DescribeRecordTasksRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRecordTasksOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRecordTasks(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRecordTemplatesOutcome RtcClient::describeRecordTemplates(const DescribeRecordTemplatesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -951,6 +915,42 @@ RtcClient::DescribeRtcChannelCntDataOutcomeCallable RtcClient::describeRtcChanne
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRtcChannelDetailOutcome RtcClient::describeRtcChannelDetail(const DescribeRtcChannelDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRtcChannelDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRtcChannelDetailOutcome(DescribeRtcChannelDetailResult(outcome.result()));
|
||||
else
|
||||
return DescribeRtcChannelDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeRtcChannelDetailAsync(const DescribeRtcChannelDetailRequest& request, const DescribeRtcChannelDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRtcChannelDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeRtcChannelDetailOutcomeCallable RtcClient::describeRtcChannelDetailCallable(const DescribeRtcChannelDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRtcChannelDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRtcChannelDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRtcChannelListOutcome RtcClient::describeRtcChannelList(const DescribeRtcChannelListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1023,6 +1023,42 @@ RtcClient::DescribeRtcChannelMetricOutcomeCallable RtcClient::describeRtcChannel
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRtcChannelMetricsOutcome RtcClient::describeRtcChannelMetrics(const DescribeRtcChannelMetricsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRtcChannelMetricsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRtcChannelMetricsOutcome(DescribeRtcChannelMetricsResult(outcome.result()));
|
||||
else
|
||||
return DescribeRtcChannelMetricsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeRtcChannelMetricsAsync(const DescribeRtcChannelMetricsRequest& request, const DescribeRtcChannelMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRtcChannelMetrics(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeRtcChannelMetricsOutcomeCallable RtcClient::describeRtcChannelMetricsCallable(const DescribeRtcChannelMetricsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRtcChannelMetricsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRtcChannelMetrics(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRtcChannelUserListOutcome RtcClient::describeRtcChannelUserList(const DescribeRtcChannelUserListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,6 +1095,42 @@ RtcClient::DescribeRtcChannelUserListOutcomeCallable RtcClient::describeRtcChann
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRtcChannelsOutcome RtcClient::describeRtcChannels(const DescribeRtcChannelsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRtcChannelsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRtcChannelsOutcome(DescribeRtcChannelsResult(outcome.result()));
|
||||
else
|
||||
return DescribeRtcChannelsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeRtcChannelsAsync(const DescribeRtcChannelsRequest& request, const DescribeRtcChannelsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRtcChannels(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeRtcChannelsOutcomeCallable RtcClient::describeRtcChannelsCallable(const DescribeRtcChannelsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRtcChannelsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRtcChannels(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRtcDurationDataOutcome RtcClient::describeRtcDurationData(const DescribeRtcDurationDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1239,6 +1311,42 @@ RtcClient::DescribeRtcUserCntDataOutcomeCallable RtcClient::describeRtcUserCntDa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRtcUserEventsOutcome RtcClient::describeRtcUserEvents(const DescribeRtcUserEventsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRtcUserEventsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRtcUserEventsOutcome(DescribeRtcUserEventsResult(outcome.result()));
|
||||
else
|
||||
return DescribeRtcUserEventsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeRtcUserEventsAsync(const DescribeRtcUserEventsRequest& request, const DescribeRtcUserEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRtcUserEvents(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeRtcUserEventsOutcomeCallable RtcClient::describeRtcUserEventsCallable(const DescribeRtcUserEventsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRtcUserEventsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRtcUserEvents(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRtcUserListOutcome RtcClient::describeRtcUserList(const DescribeRtcUserListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1311,42 +1419,6 @@ RtcClient::DescribeUserInfoInChannelOutcomeCallable RtcClient::describeUserInfoI
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DisableMAURuleOutcome RtcClient::disableMAURule(const DisableMAURuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DisableMAURuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DisableMAURuleOutcome(DisableMAURuleResult(outcome.result()));
|
||||
else
|
||||
return DisableMAURuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::disableMAURuleAsync(const DisableMAURuleRequest& request, const DisableMAURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, disableMAURule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DisableMAURuleOutcomeCallable RtcClient::disableMAURuleCallable(const DisableMAURuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DisableMAURuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->disableMAURule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DisableMPURuleOutcome RtcClient::disableMPURule(const DisableMPURuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1383,42 +1455,6 @@ RtcClient::DisableMPURuleOutcomeCallable RtcClient::disableMPURuleCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::EnableMAURuleOutcome RtcClient::enableMAURule(const EnableMAURuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableMAURuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableMAURuleOutcome(EnableMAURuleResult(outcome.result()));
|
||||
else
|
||||
return EnableMAURuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::enableMAURuleAsync(const EnableMAURuleRequest& request, const EnableMAURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableMAURule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::EnableMAURuleOutcomeCallable RtcClient::enableMAURuleCallable(const EnableMAURuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableMAURuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableMAURule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::EnableMPURuleOutcome RtcClient::enableMPURule(const EnableMPURuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2139,6 +2175,42 @@ RtcClient::UpdateMPULayoutOutcomeCallable RtcClient::updateMPULayoutCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::UpdateRecordTaskOutcome RtcClient::updateRecordTask(const UpdateRecordTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateRecordTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateRecordTaskOutcome(UpdateRecordTaskResult(outcome.result()));
|
||||
else
|
||||
return UpdateRecordTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::updateRecordTaskAsync(const UpdateRecordTaskRequest& request, const UpdateRecordTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateRecordTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::UpdateRecordTaskOutcomeCallable RtcClient::updateRecordTaskCallable(const UpdateRecordTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateRecordTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateRecordTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::UpdateRecordTemplateOutcome RtcClient::updateRecordTemplate(const UpdateRecordTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -108,15 +108,15 @@ void AddRecordTemplateRequest::setOssBucket(const std::string& ossBucket)
|
||||
setParameter("OssBucket", ossBucket);
|
||||
}
|
||||
|
||||
std::string AddRecordTemplateRequest::getMnsQueue()const
|
||||
int AddRecordTemplateRequest::getDelayStopTime()const
|
||||
{
|
||||
return mnsQueue_;
|
||||
return delayStopTime_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setMnsQueue(const std::string& mnsQueue)
|
||||
void AddRecordTemplateRequest::setDelayStopTime(int delayStopTime)
|
||||
{
|
||||
mnsQueue_ = mnsQueue;
|
||||
setParameter("MnsQueue", mnsQueue);
|
||||
delayStopTime_ = delayStopTime;
|
||||
setParameter("DelayStopTime", std::to_string(delayStopTime));
|
||||
}
|
||||
|
||||
int AddRecordTemplateRequest::getFileSplitInterval()const
|
||||
@@ -130,6 +130,50 @@ void AddRecordTemplateRequest::setFileSplitInterval(int fileSplitInterval)
|
||||
setParameter("FileSplitInterval", std::to_string(fileSplitInterval));
|
||||
}
|
||||
|
||||
std::string AddRecordTemplateRequest::getMnsQueue()const
|
||||
{
|
||||
return mnsQueue_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setMnsQueue(const std::string& mnsQueue)
|
||||
{
|
||||
mnsQueue_ = mnsQueue;
|
||||
setParameter("MnsQueue", mnsQueue);
|
||||
}
|
||||
|
||||
std::string AddRecordTemplateRequest::getHttpCallbackUrl()const
|
||||
{
|
||||
return httpCallbackUrl_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setHttpCallbackUrl(const std::string& httpCallbackUrl)
|
||||
{
|
||||
httpCallbackUrl_ = httpCallbackUrl;
|
||||
setParameter("HttpCallbackUrl", httpCallbackUrl);
|
||||
}
|
||||
|
||||
std::vector<AddRecordTemplateRequest::Watermarks> AddRecordTemplateRequest::getWatermarks()const
|
||||
{
|
||||
return watermarks_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setWatermarks(const std::vector<Watermarks>& watermarks)
|
||||
{
|
||||
watermarks_ = watermarks;
|
||||
for(int dep1 = 0; dep1!= watermarks.size(); dep1++) {
|
||||
auto watermarksObj = watermarks.at(dep1);
|
||||
std::string watermarksObjStr = "Watermarks." + std::to_string(dep1 + 1);
|
||||
setParameter(watermarksObjStr + ".Url", watermarksObj.url);
|
||||
setParameter(watermarksObjStr + ".Alpha", std::to_string(watermarksObj.alpha));
|
||||
setParameter(watermarksObjStr + ".Display", std::to_string(watermarksObj.display));
|
||||
setParameter(watermarksObjStr + ".X", std::to_string(watermarksObj.x));
|
||||
setParameter(watermarksObjStr + ".Y", std::to_string(watermarksObj.y));
|
||||
setParameter(watermarksObjStr + ".Width", std::to_string(watermarksObj.width));
|
||||
setParameter(watermarksObjStr + ".Height", std::to_string(watermarksObj.height));
|
||||
setParameter(watermarksObjStr + ".ZOrder", std::to_string(watermarksObj.zOrder));
|
||||
}
|
||||
}
|
||||
|
||||
long AddRecordTemplateRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -152,6 +196,27 @@ void AddRecordTemplateRequest::setAppId(const std::string& appId)
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::vector<AddRecordTemplateRequest::Backgrounds> AddRecordTemplateRequest::getBackgrounds()const
|
||||
{
|
||||
return backgrounds_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setBackgrounds(const std::vector<Backgrounds>& backgrounds)
|
||||
{
|
||||
backgrounds_ = backgrounds;
|
||||
for(int dep1 = 0; dep1!= backgrounds.size(); dep1++) {
|
||||
auto backgroundsObj = backgrounds.at(dep1);
|
||||
std::string backgroundsObjStr = "Backgrounds." + std::to_string(dep1 + 1);
|
||||
setParameter(backgroundsObjStr + ".Url", backgroundsObj.url);
|
||||
setParameter(backgroundsObjStr + ".Display", std::to_string(backgroundsObj.display));
|
||||
setParameter(backgroundsObjStr + ".X", std::to_string(backgroundsObj.x));
|
||||
setParameter(backgroundsObjStr + ".Y", std::to_string(backgroundsObj.y));
|
||||
setParameter(backgroundsObjStr + ".Width", std::to_string(backgroundsObj.width));
|
||||
setParameter(backgroundsObjStr + ".Height", std::to_string(backgroundsObj.height));
|
||||
setParameter(backgroundsObjStr + ".ZOrder", std::to_string(backgroundsObj.zOrder));
|
||||
}
|
||||
}
|
||||
|
||||
std::string AddRecordTemplateRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
|
||||
@@ -1,106 +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/rtc/model/CreateMAURuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::CreateMAURuleRequest;
|
||||
|
||||
CreateMAURuleRequest::CreateMAURuleRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "CreateMAURule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMAURuleRequest::~CreateMAURuleRequest()
|
||||
{}
|
||||
|
||||
std::string CreateMAURuleRequest::getUseridPrefix()const
|
||||
{
|
||||
return useridPrefix_;
|
||||
}
|
||||
|
||||
void CreateMAURuleRequest::setUseridPrefix(const std::string& useridPrefix)
|
||||
{
|
||||
useridPrefix_ = useridPrefix;
|
||||
setParameter("UseridPrefix", useridPrefix);
|
||||
}
|
||||
|
||||
std::string CreateMAURuleRequest::getChannelPrefix()const
|
||||
{
|
||||
return channelPrefix_;
|
||||
}
|
||||
|
||||
void CreateMAURuleRequest::setChannelPrefix(const std::string& channelPrefix)
|
||||
{
|
||||
channelPrefix_ = channelPrefix;
|
||||
setParameter("ChannelPrefix", channelPrefix);
|
||||
}
|
||||
|
||||
std::string CreateMAURuleRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateMAURuleRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long CreateMAURuleRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateMAURuleRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long CreateMAURuleRequest::getMauTemplateId()const
|
||||
{
|
||||
return mauTemplateId_;
|
||||
}
|
||||
|
||||
void CreateMAURuleRequest::setMauTemplateId(long mauTemplateId)
|
||||
{
|
||||
mauTemplateId_ = mauTemplateId;
|
||||
setParameter("MauTemplateId", std::to_string(mauTemplateId));
|
||||
}
|
||||
|
||||
std::string CreateMAURuleRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void CreateMAURuleRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string CreateMAURuleRequest::getCallBack()const
|
||||
{
|
||||
return callBack_;
|
||||
}
|
||||
|
||||
void CreateMAURuleRequest::setCallBack(const std::string& callBack)
|
||||
{
|
||||
callBack_ = callBack;
|
||||
setParameter("CallBack", callBack);
|
||||
}
|
||||
|
||||
@@ -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/rtc/model/DeleteMAURuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DeleteMAURuleRequest;
|
||||
|
||||
DeleteMAURuleRequest::DeleteMAURuleRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DeleteMAURule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMAURuleRequest::~DeleteMAURuleRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteMAURuleRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteMAURuleRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DeleteMAURuleRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteMAURuleRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteMAURuleRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteMAURuleRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
long DeleteMAURuleRequest::getRuleId()const
|
||||
{
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void DeleteMAURuleRequest::setRuleId(long ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setParameter("RuleId", std::to_string(ruleId));
|
||||
}
|
||||
|
||||
@@ -1,44 +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/rtc/model/DeleteMAURuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DeleteMAURuleResult::DeleteMAURuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteMAURuleResult::DeleteMAURuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteMAURuleResult::~DeleteMAURuleResult()
|
||||
{}
|
||||
|
||||
void DeleteMAURuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,62 +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/rtc/model/DescribeMAURuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeMAURuleRequest;
|
||||
|
||||
DescribeMAURuleRequest::DescribeMAURuleRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeMAURule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMAURuleRequest::~DescribeMAURuleRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeMAURuleRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeMAURuleRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeMAURuleRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeMAURuleRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeMAURuleRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeMAURuleRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
@@ -1,67 +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/rtc/model/DescribeMAURuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeMAURuleResult::DescribeMAURuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMAURuleResult::DescribeMAURuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMAURuleResult::~DescribeMAURuleResult()
|
||||
{}
|
||||
|
||||
void DescribeMAURuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRulesNode = value["Rules"]["Rule"];
|
||||
for (auto valueRulesRule : allRulesNode)
|
||||
{
|
||||
Rule rulesObject;
|
||||
if(!valueRulesRule["RuleId"].isNull())
|
||||
rulesObject.ruleId = std::stol(valueRulesRule["RuleId"].asString());
|
||||
if(!valueRulesRule["ChannelPrefix"].isNull())
|
||||
rulesObject.channelPrefix = valueRulesRule["ChannelPrefix"].asString();
|
||||
if(!valueRulesRule["UseridPrefix"].isNull())
|
||||
rulesObject.useridPrefix = valueRulesRule["UseridPrefix"].asString();
|
||||
if(!valueRulesRule["TemplateId"].isNull())
|
||||
rulesObject.templateId = std::stol(valueRulesRule["TemplateId"].asString());
|
||||
if(!valueRulesRule["CallBack"].isNull())
|
||||
rulesObject.callBack = valueRulesRule["CallBack"].asString();
|
||||
if(!valueRulesRule["IsEnable"].isNull())
|
||||
rulesObject.isEnable = std::stoi(valueRulesRule["IsEnable"].asString());
|
||||
rules_.push_back(rulesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeMAURuleResult::Rule> DescribeMAURuleResult::getRules()const
|
||||
{
|
||||
return rules_;
|
||||
}
|
||||
|
||||
@@ -49,24 +49,24 @@ void DescribeMPULayoutInfoListResult::parse(const std::string &payload)
|
||||
layoutsObject.name = valueLayoutsLayout["Name"].asString();
|
||||
if(!valueLayoutsLayout["AudioMixCount"].isNull())
|
||||
layoutsObject.audioMixCount = std::stoi(valueLayoutsLayout["AudioMixCount"].asString());
|
||||
auto allPanesNode = allLayoutsNode["Panes"]["PanesItem"];
|
||||
for (auto allLayoutsNodePanesPanesItem : allPanesNode)
|
||||
auto allPanesNode = valueLayoutsLayout["Panes"]["PanesItem"];
|
||||
for (auto valueLayoutsLayoutPanesPanesItem : allPanesNode)
|
||||
{
|
||||
Layout::PanesItem panesObject;
|
||||
if(!allLayoutsNodePanesPanesItem["PaneId"].isNull())
|
||||
panesObject.paneId = std::stoi(allLayoutsNodePanesPanesItem["PaneId"].asString());
|
||||
if(!allLayoutsNodePanesPanesItem["MajorPane"].isNull())
|
||||
panesObject.majorPane = std::stoi(allLayoutsNodePanesPanesItem["MajorPane"].asString());
|
||||
if(!allLayoutsNodePanesPanesItem["X"].isNull())
|
||||
panesObject.x = std::stof(allLayoutsNodePanesPanesItem["X"].asString());
|
||||
if(!allLayoutsNodePanesPanesItem["Y"].isNull())
|
||||
panesObject.y = std::stof(allLayoutsNodePanesPanesItem["Y"].asString());
|
||||
if(!allLayoutsNodePanesPanesItem["Width"].isNull())
|
||||
panesObject.width = std::stof(allLayoutsNodePanesPanesItem["Width"].asString());
|
||||
if(!allLayoutsNodePanesPanesItem["Height"].isNull())
|
||||
panesObject.height = std::stof(allLayoutsNodePanesPanesItem["Height"].asString());
|
||||
if(!allLayoutsNodePanesPanesItem["ZOrder"].isNull())
|
||||
panesObject.zOrder = std::stoi(allLayoutsNodePanesPanesItem["ZOrder"].asString());
|
||||
if(!valueLayoutsLayoutPanesPanesItem["PaneId"].isNull())
|
||||
panesObject.paneId = std::stoi(valueLayoutsLayoutPanesPanesItem["PaneId"].asString());
|
||||
if(!valueLayoutsLayoutPanesPanesItem["MajorPane"].isNull())
|
||||
panesObject.majorPane = std::stoi(valueLayoutsLayoutPanesPanesItem["MajorPane"].asString());
|
||||
if(!valueLayoutsLayoutPanesPanesItem["X"].isNull())
|
||||
panesObject.x = std::stof(valueLayoutsLayoutPanesPanesItem["X"].asString());
|
||||
if(!valueLayoutsLayoutPanesPanesItem["Y"].isNull())
|
||||
panesObject.y = std::stof(valueLayoutsLayoutPanesPanesItem["Y"].asString());
|
||||
if(!valueLayoutsLayoutPanesPanesItem["Width"].isNull())
|
||||
panesObject.width = std::stof(valueLayoutsLayoutPanesPanesItem["Width"].asString());
|
||||
if(!valueLayoutsLayoutPanesPanesItem["Height"].isNull())
|
||||
panesObject.height = std::stof(valueLayoutsLayoutPanesPanesItem["Height"].asString());
|
||||
if(!valueLayoutsLayoutPanesPanesItem["ZOrder"].isNull())
|
||||
panesObject.zOrder = std::stoi(valueLayoutsLayoutPanesPanesItem["ZOrder"].asString());
|
||||
layoutsObject.panes.push_back(panesObject);
|
||||
}
|
||||
layouts_.push_back(layoutsObject);
|
||||
|
||||
130
rtc/src/model/DescribeRecordFilesRequest.cc
Normal file
130
rtc/src/model/DescribeRecordFilesRequest.cc
Normal file
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRecordFilesRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeRecordFilesRequest;
|
||||
|
||||
DescribeRecordFilesRequest::DescribeRecordFilesRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeRecordFiles")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRecordFilesRequest::~DescribeRecordFilesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRecordFilesRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeRecordFilesRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
int DescribeRecordFilesRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void DescribeRecordFilesRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeRecordFilesRequest::getTaskIds()const
|
||||
{
|
||||
return taskIds_;
|
||||
}
|
||||
|
||||
void DescribeRecordFilesRequest::setTaskIds(const std::vector<std::string>& taskIds)
|
||||
{
|
||||
taskIds_ = taskIds;
|
||||
for(int dep1 = 0; dep1!= taskIds.size(); dep1++) {
|
||||
setParameter("TaskIds."+ std::to_string(dep1), taskIds.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
int DescribeRecordFilesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRecordFilesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRecordFilesRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeRecordFilesRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeRecordFilesRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeRecordFilesRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeRecordFilesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRecordFilesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRecordFilesRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeRecordFilesRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeRecordFilesRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void DescribeRecordFilesRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
85
rtc/src/model/DescribeRecordFilesResult.cc
Normal file
85
rtc/src/model/DescribeRecordFilesResult.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRecordFilesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeRecordFilesResult::DescribeRecordFilesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRecordFilesResult::DescribeRecordFilesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRecordFilesResult::~DescribeRecordFilesResult()
|
||||
{}
|
||||
|
||||
void DescribeRecordFilesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRecordFilesNode = value["RecordFiles"]["RecordFile"];
|
||||
for (auto valueRecordFilesRecordFile : allRecordFilesNode)
|
||||
{
|
||||
RecordFile recordFilesObject;
|
||||
if(!valueRecordFilesRecordFile["CreateTime"].isNull())
|
||||
recordFilesObject.createTime = valueRecordFilesRecordFile["CreateTime"].asString();
|
||||
if(!valueRecordFilesRecordFile["AppId"].isNull())
|
||||
recordFilesObject.appId = valueRecordFilesRecordFile["AppId"].asString();
|
||||
if(!valueRecordFilesRecordFile["ChannelId"].isNull())
|
||||
recordFilesObject.channelId = valueRecordFilesRecordFile["ChannelId"].asString();
|
||||
if(!valueRecordFilesRecordFile["TaskId"].isNull())
|
||||
recordFilesObject.taskId = valueRecordFilesRecordFile["TaskId"].asString();
|
||||
if(!valueRecordFilesRecordFile["StartTime"].isNull())
|
||||
recordFilesObject.startTime = valueRecordFilesRecordFile["StartTime"].asString();
|
||||
if(!valueRecordFilesRecordFile["StopTime"].isNull())
|
||||
recordFilesObject.stopTime = valueRecordFilesRecordFile["StopTime"].asString();
|
||||
if(!valueRecordFilesRecordFile["Url"].isNull())
|
||||
recordFilesObject.url = valueRecordFilesRecordFile["Url"].asString();
|
||||
if(!valueRecordFilesRecordFile["Duration"].isNull())
|
||||
recordFilesObject.duration = std::stof(valueRecordFilesRecordFile["Duration"].asString());
|
||||
recordFiles_.push_back(recordFilesObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stol(value["TotalNum"].asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stol(value["TotalPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeRecordFilesResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
long DescribeRecordFilesResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRecordFilesResult::RecordFile> DescribeRecordFilesResult::getRecordFiles()const
|
||||
{
|
||||
return recordFiles_;
|
||||
}
|
||||
|
||||
141
rtc/src/model/DescribeRecordTasksRequest.cc
Normal file
141
rtc/src/model/DescribeRecordTasksRequest.cc
Normal file
@@ -0,0 +1,141 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRecordTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeRecordTasksRequest;
|
||||
|
||||
DescribeRecordTasksRequest::DescribeRecordTasksRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeRecordTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRecordTasksRequest::~DescribeRecordTasksRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRecordTasksRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeRecordTasksRequest::getTaskIds()const
|
||||
{
|
||||
return taskIds_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setTaskIds(const std::vector<std::string>& taskIds)
|
||||
{
|
||||
taskIds_ = taskIds;
|
||||
for(int dep1 = 0; dep1!= taskIds.size(); dep1++) {
|
||||
setParameter("TaskIds."+ std::to_string(dep1), taskIds.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
int DescribeRecordTasksRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
int DescribeRecordTasksRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRecordTasksRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeRecordTasksRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeRecordTasksRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRecordTasksRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeRecordTasksRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
std::string DescribeRecordTasksRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
96
rtc/src/model/DescribeRecordTasksResult.cc
Normal file
96
rtc/src/model/DescribeRecordTasksResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRecordTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeRecordTasksResult::DescribeRecordTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRecordTasksResult::DescribeRecordTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRecordTasksResult::~DescribeRecordTasksResult()
|
||||
{}
|
||||
|
||||
void DescribeRecordTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRecordTasksNode = value["RecordTasks"]["RecordTask"];
|
||||
for (auto valueRecordTasksRecordTask : allRecordTasksNode)
|
||||
{
|
||||
RecordTask recordTasksObject;
|
||||
if(!valueRecordTasksRecordTask["CreateTime"].isNull())
|
||||
recordTasksObject.createTime = valueRecordTasksRecordTask["CreateTime"].asString();
|
||||
if(!valueRecordTasksRecordTask["AppId"].isNull())
|
||||
recordTasksObject.appId = valueRecordTasksRecordTask["AppId"].asString();
|
||||
if(!valueRecordTasksRecordTask["ChannelId"].isNull())
|
||||
recordTasksObject.channelId = valueRecordTasksRecordTask["ChannelId"].asString();
|
||||
if(!valueRecordTasksRecordTask["TaskId"].isNull())
|
||||
recordTasksObject.taskId = valueRecordTasksRecordTask["TaskId"].asString();
|
||||
if(!valueRecordTasksRecordTask["TemplateId"].isNull())
|
||||
recordTasksObject.templateId = valueRecordTasksRecordTask["TemplateId"].asString();
|
||||
if(!valueRecordTasksRecordTask["Status"].isNull())
|
||||
recordTasksObject.status = std::stoi(valueRecordTasksRecordTask["Status"].asString());
|
||||
auto allUserPanesNode = valueRecordTasksRecordTask["UserPanes"]["UserPanesItem"];
|
||||
for (auto valueRecordTasksRecordTaskUserPanesUserPanesItem : allUserPanesNode)
|
||||
{
|
||||
RecordTask::UserPanesItem userPanesObject;
|
||||
if(!valueRecordTasksRecordTaskUserPanesUserPanesItem["PaneId"].isNull())
|
||||
userPanesObject.paneId = std::stoi(valueRecordTasksRecordTaskUserPanesUserPanesItem["PaneId"].asString());
|
||||
if(!valueRecordTasksRecordTaskUserPanesUserPanesItem["UserId"].isNull())
|
||||
userPanesObject.userId = valueRecordTasksRecordTaskUserPanesUserPanesItem["UserId"].asString();
|
||||
if(!valueRecordTasksRecordTaskUserPanesUserPanesItem["Source"].isNull())
|
||||
userPanesObject.source = valueRecordTasksRecordTaskUserPanesUserPanesItem["Source"].asString();
|
||||
recordTasksObject.userPanes.push_back(userPanesObject);
|
||||
}
|
||||
auto allSubSpecUsers = value["SubSpecUsers"]["SubSpecUser"];
|
||||
for (auto value : allSubSpecUsers)
|
||||
recordTasksObject.subSpecUsers.push_back(value.asString());
|
||||
recordTasks_.push_back(recordTasksObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stol(value["TotalNum"].asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stol(value["TotalPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRecordTasksResult::RecordTask> DescribeRecordTasksResult::getRecordTasks()const
|
||||
{
|
||||
return recordTasks_;
|
||||
}
|
||||
|
||||
long DescribeRecordTasksResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
long DescribeRecordTasksResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user