Compare commits
15 Commits
Config-pat
...
aliyuncvc-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98c36e9bab | ||
|
|
b84d1c59fa | ||
|
|
c2dc12f92b | ||
|
|
efb0804bf2 | ||
|
|
0e778cd17c | ||
|
|
78d79a3d5b | ||
|
|
5a1415f6e3 | ||
|
|
7f24d410fd | ||
|
|
de9c7e0bd2 | ||
|
|
9d2395215f | ||
|
|
757d3d8922 | ||
|
|
a0af363375 | ||
|
|
a76d21c518 | ||
|
|
b04b7f6033 | ||
|
|
a3f2125666 |
44
CHANGELOG
44
CHANGELOG
@@ -1,3 +1,47 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2020-11-17 Version: patch
|
2020-11-17 Version: patch
|
||||||
- Support event type in timeline of resource properties.
|
- Support event type in timeline of resource properties.
|
||||||
- Support resourceOwnerId in evaluation result.
|
- Support resourceOwnerId in evaluation result.
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ set(alimt_public_header_model
|
|||||||
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
|
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
|
||||||
include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
|
include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
|
||||||
include/alibabacloud/alimt/model/GetTitleIntelligenceResult.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/TranslateRequest.h
|
||||||
include/alibabacloud/alimt/model/TranslateResult.h
|
include/alibabacloud/alimt/model/TranslateResult.h
|
||||||
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
|
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
|
||||||
@@ -72,6 +74,8 @@ set(alimt_src
|
|||||||
src/model/GetTitleGenerateResult.cc
|
src/model/GetTitleGenerateResult.cc
|
||||||
src/model/GetTitleIntelligenceRequest.cc
|
src/model/GetTitleIntelligenceRequest.cc
|
||||||
src/model/GetTitleIntelligenceResult.cc
|
src/model/GetTitleIntelligenceResult.cc
|
||||||
|
src/model/OpenAlimtServiceRequest.cc
|
||||||
|
src/model/OpenAlimtServiceResult.cc
|
||||||
src/model/TranslateRequest.cc
|
src/model/TranslateRequest.cc
|
||||||
src/model/TranslateResult.cc
|
src/model/TranslateResult.cc
|
||||||
src/model/TranslateCertificateRequest.cc
|
src/model/TranslateCertificateRequest.cc
|
||||||
|
|||||||
@@ -42,6 +42,8 @@
|
|||||||
#include "model/GetTitleGenerateResult.h"
|
#include "model/GetTitleGenerateResult.h"
|
||||||
#include "model/GetTitleIntelligenceRequest.h"
|
#include "model/GetTitleIntelligenceRequest.h"
|
||||||
#include "model/GetTitleIntelligenceResult.h"
|
#include "model/GetTitleIntelligenceResult.h"
|
||||||
|
#include "model/OpenAlimtServiceRequest.h"
|
||||||
|
#include "model/OpenAlimtServiceResult.h"
|
||||||
#include "model/TranslateRequest.h"
|
#include "model/TranslateRequest.h"
|
||||||
#include "model/TranslateResult.h"
|
#include "model/TranslateResult.h"
|
||||||
#include "model/TranslateCertificateRequest.h"
|
#include "model/TranslateCertificateRequest.h"
|
||||||
@@ -89,6 +91,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::GetTitleIntelligenceResult> GetTitleIntelligenceOutcome;
|
typedef Outcome<Error, Model::GetTitleIntelligenceResult> GetTitleIntelligenceOutcome;
|
||||||
typedef std::future<GetTitleIntelligenceOutcome> GetTitleIntelligenceOutcomeCallable;
|
typedef std::future<GetTitleIntelligenceOutcome> GetTitleIntelligenceOutcomeCallable;
|
||||||
typedef std::function<void(const AlimtClient*, const Model::GetTitleIntelligenceRequest&, const GetTitleIntelligenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleIntelligenceAsyncHandler;
|
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 Outcome<Error, Model::TranslateResult> TranslateOutcome;
|
||||||
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
|
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
|
||||||
typedef std::function<void(const AlimtClient*, const Model::TranslateRequest&, const TranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateAsyncHandler;
|
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;
|
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;
|
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;
|
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;
|
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;
|
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;
|
TranslateOutcomeCallable translateCallable(const Model::TranslateRequest& request) const;
|
||||||
|
|||||||
@@ -14,41 +14,38 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULEREQUEST_H_
|
#ifndef ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
|
||||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULEREQUEST_H_
|
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/rtc/RtcExport.h>
|
#include <alibabacloud/alimt/AlimtExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Rtc
|
namespace Alimt
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_RTC_EXPORT DescribeMAURuleRequest : public RpcServiceRequest
|
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DescribeMAURuleRequest();
|
OpenAlimtServiceRequest();
|
||||||
~DescribeMAURuleRequest();
|
~OpenAlimtServiceRequest();
|
||||||
|
|
||||||
std::string getShowLog()const;
|
|
||||||
void setShowLog(const std::string& showLog);
|
|
||||||
long getOwnerId()const;
|
long getOwnerId()const;
|
||||||
void setOwnerId(long ownerId);
|
void setOwnerId(long ownerId);
|
||||||
std::string getAppId()const;
|
std::string getType()const;
|
||||||
void setAppId(const std::string& appId);
|
void setType(const std::string& type);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string showLog_;
|
|
||||||
long ownerId_;
|
long ownerId_;
|
||||||
std::string appId_;
|
std::string type_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBEMAURULEREQUEST_H_
|
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICERESULT_H_
|
||||||
|
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/alimt/AlimtExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Alimt
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
OpenAlimtServiceResult();
|
||||||
|
explicit OpenAlimtServiceResult(const std::string &payload);
|
||||||
|
~OpenAlimtServiceResult();
|
||||||
|
std::string getOrderId()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string orderId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICERESULT_H_
|
||||||
@@ -411,6 +411,42 @@ AlimtClient::GetTitleIntelligenceOutcomeCallable AlimtClient::getTitleIntelligen
|
|||||||
return task->get_future();
|
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
|
AlimtClient::TranslateOutcome AlimtClient::translate(const TranslateRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
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.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/rtc/model/CreateMAURuleResult.h>
|
#include <alibabacloud/alimt/model/OpenAlimtServiceResult.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
using namespace AlibabaCloud::Rtc;
|
using namespace AlibabaCloud::Alimt;
|
||||||
using namespace AlibabaCloud::Rtc::Model;
|
using namespace AlibabaCloud::Alimt::Model;
|
||||||
|
|
||||||
CreateMAURuleResult::CreateMAURuleResult() :
|
OpenAlimtServiceResult::OpenAlimtServiceResult() :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
CreateMAURuleResult::CreateMAURuleResult(const std::string &payload) :
|
OpenAlimtServiceResult::OpenAlimtServiceResult(const std::string &payload) :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{
|
{
|
||||||
parse(payload);
|
parse(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
CreateMAURuleResult::~CreateMAURuleResult()
|
OpenAlimtServiceResult::~OpenAlimtServiceResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void CreateMAURuleResult::parse(const std::string &payload)
|
void OpenAlimtServiceResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::Reader reader;
|
Json::Reader reader;
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
if(!value["RuleId"].isNull())
|
if(!value["OrderId"].isNull())
|
||||||
ruleId_ = std::stol(value["RuleId"].asString());
|
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);
|
explicit DescribeRefreshQuotaResult(const std::string &payload);
|
||||||
~DescribeRefreshQuotaResult();
|
~DescribeRefreshQuotaResult();
|
||||||
std::string getUrlRemain()const;
|
std::string getUrlRemain()const;
|
||||||
|
std::string getPreloadEdgeRemain()const;
|
||||||
std::string getPreloadRemain()const;
|
std::string getPreloadRemain()const;
|
||||||
std::string getBlockRemain()const;
|
std::string getBlockRemain()const;
|
||||||
std::string getRegexRemain()const;
|
std::string getRegexRemain()const;
|
||||||
@@ -47,11 +48,13 @@ namespace AlibabaCloud
|
|||||||
std::string getUrlQuota()const;
|
std::string getUrlQuota()const;
|
||||||
std::string getDirQuota()const;
|
std::string getDirQuota()const;
|
||||||
std::string getPreloadQuota()const;
|
std::string getPreloadQuota()const;
|
||||||
|
std::string getPreloadEdgeQuota()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string urlRemain_;
|
std::string urlRemain_;
|
||||||
|
std::string preloadEdgeRemain_;
|
||||||
std::string preloadRemain_;
|
std::string preloadRemain_;
|
||||||
std::string blockRemain_;
|
std::string blockRemain_;
|
||||||
std::string regexRemain_;
|
std::string regexRemain_;
|
||||||
@@ -61,6 +64,7 @@ namespace AlibabaCloud
|
|||||||
std::string urlQuota_;
|
std::string urlQuota_;
|
||||||
std::string dirQuota_;
|
std::string dirQuota_;
|
||||||
std::string preloadQuota_;
|
std::string preloadQuota_;
|
||||||
|
std::string preloadEdgeQuota_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,14 +49,14 @@ void DescribeCdnDomainConfigsResult::parse(const std::string &payload)
|
|||||||
domainConfigsObject.configId = valueDomainConfigsDomainConfig["ConfigId"].asString();
|
domainConfigsObject.configId = valueDomainConfigsDomainConfig["ConfigId"].asString();
|
||||||
if(!valueDomainConfigsDomainConfig["Status"].isNull())
|
if(!valueDomainConfigsDomainConfig["Status"].isNull())
|
||||||
domainConfigsObject.status = valueDomainConfigsDomainConfig["Status"].asString();
|
domainConfigsObject.status = valueDomainConfigsDomainConfig["Status"].asString();
|
||||||
auto allFunctionArgsNode = allDomainConfigsNode["FunctionArgs"]["FunctionArg"];
|
auto allFunctionArgsNode = valueDomainConfigsDomainConfig["FunctionArgs"]["FunctionArg"];
|
||||||
for (auto allDomainConfigsNodeFunctionArgsFunctionArg : allFunctionArgsNode)
|
for (auto valueDomainConfigsDomainConfigFunctionArgsFunctionArg : allFunctionArgsNode)
|
||||||
{
|
{
|
||||||
DomainConfig::FunctionArg functionArgsObject;
|
DomainConfig::FunctionArg functionArgsObject;
|
||||||
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].isNull())
|
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].isNull())
|
||||||
functionArgsObject.argName = allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].asString();
|
functionArgsObject.argName = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].asString();
|
||||||
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].isNull())
|
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].isNull())
|
||||||
functionArgsObject.argValue = allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].asString();
|
functionArgsObject.argValue = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].asString();
|
||||||
domainConfigsObject.functionArgs.push_back(functionArgsObject);
|
domainConfigsObject.functionArgs.push_back(functionArgsObject);
|
||||||
}
|
}
|
||||||
domainConfigs_.push_back(domainConfigsObject);
|
domainConfigs_.push_back(domainConfigsObject);
|
||||||
|
|||||||
@@ -47,32 +47,32 @@ void DescribeCdnDomainLogsResult::parse(const std::string &payload)
|
|||||||
domainLogDetailsObject.domainName = valueDomainLogDetailsDomainLogDetail["DomainName"].asString();
|
domainLogDetailsObject.domainName = valueDomainLogDetailsDomainLogDetail["DomainName"].asString();
|
||||||
if(!valueDomainLogDetailsDomainLogDetail["LogCount"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetail["LogCount"].isNull())
|
||||||
domainLogDetailsObject.logCount = std::stol(valueDomainLogDetailsDomainLogDetail["LogCount"].asString());
|
domainLogDetailsObject.logCount = std::stol(valueDomainLogDetailsDomainLogDetail["LogCount"].asString());
|
||||||
auto allPageInfosNode = allDomainLogDetailsNode["PageInfos"]["PageInfoDetail"];
|
auto allPageInfosNode = valueDomainLogDetailsDomainLogDetail["PageInfos"]["PageInfoDetail"];
|
||||||
for (auto allDomainLogDetailsNodePageInfosPageInfoDetail : allPageInfosNode)
|
for (auto valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail : allPageInfosNode)
|
||||||
{
|
{
|
||||||
DomainLogDetail::PageInfoDetail pageInfosObject;
|
DomainLogDetail::PageInfoDetail pageInfosObject;
|
||||||
if(!allDomainLogDetailsNodePageInfosPageInfoDetail["PageIndex"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["PageIndex"].isNull())
|
||||||
pageInfosObject.pageIndex = std::stol(allDomainLogDetailsNodePageInfosPageInfoDetail["PageIndex"].asString());
|
pageInfosObject.pageIndex = std::stol(valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["PageIndex"].asString());
|
||||||
if(!allDomainLogDetailsNodePageInfosPageInfoDetail["PageSize"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["PageSize"].isNull())
|
||||||
pageInfosObject.pageSize = std::stol(allDomainLogDetailsNodePageInfosPageInfoDetail["PageSize"].asString());
|
pageInfosObject.pageSize = std::stol(valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["PageSize"].asString());
|
||||||
if(!allDomainLogDetailsNodePageInfosPageInfoDetail["Total"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["Total"].isNull())
|
||||||
pageInfosObject.total = std::stol(allDomainLogDetailsNodePageInfosPageInfoDetail["Total"].asString());
|
pageInfosObject.total = std::stol(valueDomainLogDetailsDomainLogDetailPageInfosPageInfoDetail["Total"].asString());
|
||||||
domainLogDetailsObject.pageInfos.push_back(pageInfosObject);
|
domainLogDetailsObject.pageInfos.push_back(pageInfosObject);
|
||||||
}
|
}
|
||||||
auto allLogInfosNode = allDomainLogDetailsNode["LogInfos"]["LogInfoDetail"];
|
auto allLogInfosNode = valueDomainLogDetailsDomainLogDetail["LogInfos"]["LogInfoDetail"];
|
||||||
for (auto allDomainLogDetailsNodeLogInfosLogInfoDetail : allLogInfosNode)
|
for (auto valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail : allLogInfosNode)
|
||||||
{
|
{
|
||||||
DomainLogDetail::LogInfoDetail logInfosObject;
|
DomainLogDetail::LogInfoDetail logInfosObject;
|
||||||
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["LogName"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogName"].isNull())
|
||||||
logInfosObject.logName = allDomainLogDetailsNodeLogInfosLogInfoDetail["LogName"].asString();
|
logInfosObject.logName = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogName"].asString();
|
||||||
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["LogPath"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogPath"].isNull())
|
||||||
logInfosObject.logPath = allDomainLogDetailsNodeLogInfosLogInfoDetail["LogPath"].asString();
|
logInfosObject.logPath = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogPath"].asString();
|
||||||
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["LogSize"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogSize"].isNull())
|
||||||
logInfosObject.logSize = std::stol(allDomainLogDetailsNodeLogInfosLogInfoDetail["LogSize"].asString());
|
logInfosObject.logSize = std::stol(valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogSize"].asString());
|
||||||
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["StartTime"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["StartTime"].isNull())
|
||||||
logInfosObject.startTime = allDomainLogDetailsNodeLogInfosLogInfoDetail["StartTime"].asString();
|
logInfosObject.startTime = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["StartTime"].asString();
|
||||||
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["EndTime"].isNull())
|
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["EndTime"].isNull())
|
||||||
logInfosObject.endTime = allDomainLogDetailsNodeLogInfosLogInfoDetail["EndTime"].asString();
|
logInfosObject.endTime = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["EndTime"].asString();
|
||||||
domainLogDetailsObject.logInfos.push_back(logInfosObject);
|
domainLogDetailsObject.logInfos.push_back(logInfosObject);
|
||||||
}
|
}
|
||||||
domainLogDetails_.push_back(domainLogDetailsObject);
|
domainLogDetails_.push_back(domainLogDetailsObject);
|
||||||
|
|||||||
@@ -49,14 +49,14 @@ void DescribeCdnDomainStagingConfigResult::parse(const std::string &payload)
|
|||||||
domainConfigsObject.configId = valueDomainConfigsDomainConfig["ConfigId"].asString();
|
domainConfigsObject.configId = valueDomainConfigsDomainConfig["ConfigId"].asString();
|
||||||
if(!valueDomainConfigsDomainConfig["Status"].isNull())
|
if(!valueDomainConfigsDomainConfig["Status"].isNull())
|
||||||
domainConfigsObject.status = valueDomainConfigsDomainConfig["Status"].asString();
|
domainConfigsObject.status = valueDomainConfigsDomainConfig["Status"].asString();
|
||||||
auto allFunctionArgsNode = allDomainConfigsNode["FunctionArgs"]["FunctionArg"];
|
auto allFunctionArgsNode = valueDomainConfigsDomainConfig["FunctionArgs"]["FunctionArg"];
|
||||||
for (auto allDomainConfigsNodeFunctionArgsFunctionArg : allFunctionArgsNode)
|
for (auto valueDomainConfigsDomainConfigFunctionArgsFunctionArg : allFunctionArgsNode)
|
||||||
{
|
{
|
||||||
DomainConfig::FunctionArg functionArgsObject;
|
DomainConfig::FunctionArg functionArgsObject;
|
||||||
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].isNull())
|
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].isNull())
|
||||||
functionArgsObject.argName = allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].asString();
|
functionArgsObject.argName = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].asString();
|
||||||
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].isNull())
|
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].isNull())
|
||||||
functionArgsObject.argValue = allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].asString();
|
functionArgsObject.argValue = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].asString();
|
||||||
domainConfigsObject.functionArgs.push_back(functionArgsObject);
|
domainConfigsObject.functionArgs.push_back(functionArgsObject);
|
||||||
}
|
}
|
||||||
domainConfigs_.push_back(domainConfigsObject);
|
domainConfigs_.push_back(domainConfigsObject);
|
||||||
|
|||||||
@@ -49,20 +49,20 @@ void DescribeCdnUserBillHistoryResult::parse(const std::string &payload)
|
|||||||
billHistoryDataObject.billType = valueBillHistoryDataBillHistoryDataItem["BillType"].asString();
|
billHistoryDataObject.billType = valueBillHistoryDataBillHistoryDataItem["BillType"].asString();
|
||||||
if(!valueBillHistoryDataBillHistoryDataItem["BillTime"].isNull())
|
if(!valueBillHistoryDataBillHistoryDataItem["BillTime"].isNull())
|
||||||
billHistoryDataObject.billTime = valueBillHistoryDataBillHistoryDataItem["BillTime"].asString();
|
billHistoryDataObject.billTime = valueBillHistoryDataBillHistoryDataItem["BillTime"].asString();
|
||||||
auto allBillingDataNode = allBillHistoryDataNode["BillingData"]["BillingDataItem"];
|
auto allBillingDataNode = valueBillHistoryDataBillHistoryDataItem["BillingData"]["BillingDataItem"];
|
||||||
for (auto allBillHistoryDataNodeBillingDataBillingDataItem : allBillingDataNode)
|
for (auto valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem : allBillingDataNode)
|
||||||
{
|
{
|
||||||
BillHistoryDataItem::BillingDataItem billingDataObject;
|
BillHistoryDataItem::BillingDataItem billingDataObject;
|
||||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["ChargeType"].isNull())
|
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["ChargeType"].isNull())
|
||||||
billingDataObject.chargeType = allBillHistoryDataNodeBillingDataBillingDataItem["ChargeType"].asString();
|
billingDataObject.chargeType = valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["ChargeType"].asString();
|
||||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["CdnRegion"].isNull())
|
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["CdnRegion"].isNull())
|
||||||
billingDataObject.cdnRegion = allBillHistoryDataNodeBillingDataBillingDataItem["CdnRegion"].asString();
|
billingDataObject.cdnRegion = valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["CdnRegion"].asString();
|
||||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Bandwidth"].isNull())
|
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Bandwidth"].isNull())
|
||||||
billingDataObject.bandwidth = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Bandwidth"].asString());
|
billingDataObject.bandwidth = std::stof(valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Bandwidth"].asString());
|
||||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Flow"].isNull())
|
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Flow"].isNull())
|
||||||
billingDataObject.flow = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Flow"].asString());
|
billingDataObject.flow = std::stof(valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Flow"].asString());
|
||||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Count"].isNull())
|
if(!valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Count"].isNull())
|
||||||
billingDataObject.count = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Count"].asString());
|
billingDataObject.count = std::stof(valueBillHistoryDataBillHistoryDataItemBillingDataBillingDataItem["Count"].asString());
|
||||||
billHistoryDataObject.billingData.push_back(billingDataObject);
|
billHistoryDataObject.billingData.push_back(billingDataObject);
|
||||||
}
|
}
|
||||||
billHistoryData_.push_back(billHistoryDataObject);
|
billHistoryData_.push_back(billHistoryDataObject);
|
||||||
|
|||||||
@@ -63,20 +63,20 @@ void DescribeCdnUserDomainsByFuncResult::parse(const std::string &payload)
|
|||||||
domainsObject.resourceGroupId = valueDomainsPageData["ResourceGroupId"].asString();
|
domainsObject.resourceGroupId = valueDomainsPageData["ResourceGroupId"].asString();
|
||||||
if(!valueDomainsPageData["Sandbox"].isNull())
|
if(!valueDomainsPageData["Sandbox"].isNull())
|
||||||
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
|
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
|
||||||
auto allSourcesNode = allDomainsNode["Sources"]["Source"];
|
auto allSourcesNode = valueDomainsPageData["Sources"]["Source"];
|
||||||
for (auto allDomainsNodeSourcesSource : allSourcesNode)
|
for (auto valueDomainsPageDataSourcesSource : allSourcesNode)
|
||||||
{
|
{
|
||||||
PageData::Source sourcesObject;
|
PageData::Source sourcesObject;
|
||||||
if(!allDomainsNodeSourcesSource["Type"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Type"].isNull())
|
||||||
sourcesObject.type = allDomainsNodeSourcesSource["Type"].asString();
|
sourcesObject.type = valueDomainsPageDataSourcesSource["Type"].asString();
|
||||||
if(!allDomainsNodeSourcesSource["Content"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Content"].isNull())
|
||||||
sourcesObject.content = allDomainsNodeSourcesSource["Content"].asString();
|
sourcesObject.content = valueDomainsPageDataSourcesSource["Content"].asString();
|
||||||
if(!allDomainsNodeSourcesSource["Port"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Port"].isNull())
|
||||||
sourcesObject.port = std::stoi(allDomainsNodeSourcesSource["Port"].asString());
|
sourcesObject.port = std::stoi(valueDomainsPageDataSourcesSource["Port"].asString());
|
||||||
if(!allDomainsNodeSourcesSource["Priority"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Priority"].isNull())
|
||||||
sourcesObject.priority = allDomainsNodeSourcesSource["Priority"].asString();
|
sourcesObject.priority = valueDomainsPageDataSourcesSource["Priority"].asString();
|
||||||
if(!allDomainsNodeSourcesSource["Weight"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Weight"].isNull())
|
||||||
sourcesObject.weight = allDomainsNodeSourcesSource["Weight"].asString();
|
sourcesObject.weight = valueDomainsPageDataSourcesSource["Weight"].asString();
|
||||||
domainsObject.sources.push_back(sourcesObject);
|
domainsObject.sources.push_back(sourcesObject);
|
||||||
}
|
}
|
||||||
domains_.push_back(domainsObject);
|
domains_.push_back(domainsObject);
|
||||||
|
|||||||
@@ -49,14 +49,14 @@ void DescribeConfigOfVersionResult::parse(const std::string &payload)
|
|||||||
versionConfigsObject.configId = valueVersionConfigsVersionConfig["ConfigId"].asString();
|
versionConfigsObject.configId = valueVersionConfigsVersionConfig["ConfigId"].asString();
|
||||||
if(!valueVersionConfigsVersionConfig["FunctionName"].isNull())
|
if(!valueVersionConfigsVersionConfig["FunctionName"].isNull())
|
||||||
versionConfigsObject.functionName = valueVersionConfigsVersionConfig["FunctionName"].asString();
|
versionConfigsObject.functionName = valueVersionConfigsVersionConfig["FunctionName"].asString();
|
||||||
auto allFunctionArgsNode = allVersionConfigsNode["FunctionArgs"]["FunctionArg"];
|
auto allFunctionArgsNode = valueVersionConfigsVersionConfig["FunctionArgs"]["FunctionArg"];
|
||||||
for (auto allVersionConfigsNodeFunctionArgsFunctionArg : allFunctionArgsNode)
|
for (auto valueVersionConfigsVersionConfigFunctionArgsFunctionArg : allFunctionArgsNode)
|
||||||
{
|
{
|
||||||
VersionConfig::FunctionArg functionArgsObject;
|
VersionConfig::FunctionArg functionArgsObject;
|
||||||
if(!allVersionConfigsNodeFunctionArgsFunctionArg["ArgName"].isNull())
|
if(!valueVersionConfigsVersionConfigFunctionArgsFunctionArg["ArgName"].isNull())
|
||||||
functionArgsObject.argName = allVersionConfigsNodeFunctionArgsFunctionArg["ArgName"].asString();
|
functionArgsObject.argName = valueVersionConfigsVersionConfigFunctionArgsFunctionArg["ArgName"].asString();
|
||||||
if(!allVersionConfigsNodeFunctionArgsFunctionArg["ArgValue"].isNull())
|
if(!valueVersionConfigsVersionConfigFunctionArgsFunctionArg["ArgValue"].isNull())
|
||||||
functionArgsObject.argValue = allVersionConfigsNodeFunctionArgsFunctionArg["ArgValue"].asString();
|
functionArgsObject.argValue = valueVersionConfigsVersionConfigFunctionArgsFunctionArg["ArgValue"].asString();
|
||||||
versionConfigsObject.functionArgs.push_back(functionArgsObject);
|
versionConfigsObject.functionArgs.push_back(functionArgsObject);
|
||||||
}
|
}
|
||||||
versionConfigs_.push_back(versionConfigsObject);
|
versionConfigs_.push_back(versionConfigsObject);
|
||||||
|
|||||||
@@ -45,14 +45,14 @@ void DescribeDomainFileSizeProportionDataResult::parse(const std::string &payloa
|
|||||||
UsageData fileSizeProportionDataIntervalObject;
|
UsageData fileSizeProportionDataIntervalObject;
|
||||||
if(!valueFileSizeProportionDataIntervalUsageData["TimeStamp"].isNull())
|
if(!valueFileSizeProportionDataIntervalUsageData["TimeStamp"].isNull())
|
||||||
fileSizeProportionDataIntervalObject.timeStamp = valueFileSizeProportionDataIntervalUsageData["TimeStamp"].asString();
|
fileSizeProportionDataIntervalObject.timeStamp = valueFileSizeProportionDataIntervalUsageData["TimeStamp"].asString();
|
||||||
auto allValueNode = allFileSizeProportionDataIntervalNode["Value"]["FileSizeProportionData"];
|
auto allValueNode = valueFileSizeProportionDataIntervalUsageData["Value"]["FileSizeProportionData"];
|
||||||
for (auto allFileSizeProportionDataIntervalNodeValueFileSizeProportionData : allValueNode)
|
for (auto valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData : allValueNode)
|
||||||
{
|
{
|
||||||
UsageData::FileSizeProportionData valueObject;
|
UsageData::FileSizeProportionData valueObject;
|
||||||
if(!allFileSizeProportionDataIntervalNodeValueFileSizeProportionData["FileSize"].isNull())
|
if(!valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData["FileSize"].isNull())
|
||||||
valueObject.fileSize = allFileSizeProportionDataIntervalNodeValueFileSizeProportionData["FileSize"].asString();
|
valueObject.fileSize = valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData["FileSize"].asString();
|
||||||
if(!allFileSizeProportionDataIntervalNodeValueFileSizeProportionData["Proportion"].isNull())
|
if(!valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData["Proportion"].isNull())
|
||||||
valueObject.proportion = allFileSizeProportionDataIntervalNodeValueFileSizeProportionData["Proportion"].asString();
|
valueObject.proportion = valueFileSizeProportionDataIntervalUsageDataValueFileSizeProportionData["Proportion"].asString();
|
||||||
fileSizeProportionDataIntervalObject.value.push_back(valueObject);
|
fileSizeProportionDataIntervalObject.value.push_back(valueObject);
|
||||||
}
|
}
|
||||||
fileSizeProportionDataInterval_.push_back(fileSizeProportionDataIntervalObject);
|
fileSizeProportionDataInterval_.push_back(fileSizeProportionDataIntervalObject);
|
||||||
|
|||||||
@@ -45,16 +45,16 @@ void DescribeDomainHttpCodeDataResult::parse(const std::string &payload)
|
|||||||
UsageData httpCodeDataObject;
|
UsageData httpCodeDataObject;
|
||||||
if(!valueHttpCodeDataUsageData["TimeStamp"].isNull())
|
if(!valueHttpCodeDataUsageData["TimeStamp"].isNull())
|
||||||
httpCodeDataObject.timeStamp = valueHttpCodeDataUsageData["TimeStamp"].asString();
|
httpCodeDataObject.timeStamp = valueHttpCodeDataUsageData["TimeStamp"].asString();
|
||||||
auto allValueNode = allHttpCodeDataNode["Value"]["CodeProportionData"];
|
auto allValueNode = valueHttpCodeDataUsageData["Value"]["CodeProportionData"];
|
||||||
for (auto allHttpCodeDataNodeValueCodeProportionData : allValueNode)
|
for (auto valueHttpCodeDataUsageDataValueCodeProportionData : allValueNode)
|
||||||
{
|
{
|
||||||
UsageData::CodeProportionData valueObject;
|
UsageData::CodeProportionData valueObject;
|
||||||
if(!allHttpCodeDataNodeValueCodeProportionData["Code"].isNull())
|
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Code"].isNull())
|
||||||
valueObject.code = allHttpCodeDataNodeValueCodeProportionData["Code"].asString();
|
valueObject.code = valueHttpCodeDataUsageDataValueCodeProportionData["Code"].asString();
|
||||||
if(!allHttpCodeDataNodeValueCodeProportionData["Proportion"].isNull())
|
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Proportion"].isNull())
|
||||||
valueObject.proportion = allHttpCodeDataNodeValueCodeProportionData["Proportion"].asString();
|
valueObject.proportion = valueHttpCodeDataUsageDataValueCodeProportionData["Proportion"].asString();
|
||||||
if(!allHttpCodeDataNodeValueCodeProportionData["Count"].isNull())
|
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Count"].isNull())
|
||||||
valueObject.count = allHttpCodeDataNodeValueCodeProportionData["Count"].asString();
|
valueObject.count = valueHttpCodeDataUsageDataValueCodeProportionData["Count"].asString();
|
||||||
httpCodeDataObject.value.push_back(valueObject);
|
httpCodeDataObject.value.push_back(valueObject);
|
||||||
}
|
}
|
||||||
httpCodeData_.push_back(httpCodeDataObject);
|
httpCodeData_.push_back(httpCodeDataObject);
|
||||||
|
|||||||
@@ -45,16 +45,16 @@ void DescribeDomainRealTimeHttpCodeDataResult::parse(const std::string &payload)
|
|||||||
UsageData realTimeHttpCodeDataObject;
|
UsageData realTimeHttpCodeDataObject;
|
||||||
if(!valueRealTimeHttpCodeDataUsageData["TimeStamp"].isNull())
|
if(!valueRealTimeHttpCodeDataUsageData["TimeStamp"].isNull())
|
||||||
realTimeHttpCodeDataObject.timeStamp = valueRealTimeHttpCodeDataUsageData["TimeStamp"].asString();
|
realTimeHttpCodeDataObject.timeStamp = valueRealTimeHttpCodeDataUsageData["TimeStamp"].asString();
|
||||||
auto allValueNode = allRealTimeHttpCodeDataNode["Value"]["RealTimeCodeProportionData"];
|
auto allValueNode = valueRealTimeHttpCodeDataUsageData["Value"]["RealTimeCodeProportionData"];
|
||||||
for (auto allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData : allValueNode)
|
for (auto valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData : allValueNode)
|
||||||
{
|
{
|
||||||
UsageData::RealTimeCodeProportionData valueObject;
|
UsageData::RealTimeCodeProportionData valueObject;
|
||||||
if(!allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Code"].isNull())
|
if(!valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Code"].isNull())
|
||||||
valueObject.code = allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Code"].asString();
|
valueObject.code = valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Code"].asString();
|
||||||
if(!allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Proportion"].isNull())
|
if(!valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Proportion"].isNull())
|
||||||
valueObject.proportion = allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Proportion"].asString();
|
valueObject.proportion = valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Proportion"].asString();
|
||||||
if(!allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Count"].isNull())
|
if(!valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Count"].isNull())
|
||||||
valueObject.count = allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Count"].asString();
|
valueObject.count = valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Count"].asString();
|
||||||
realTimeHttpCodeDataObject.value.push_back(valueObject);
|
realTimeHttpCodeDataObject.value.push_back(valueObject);
|
||||||
}
|
}
|
||||||
realTimeHttpCodeData_.push_back(realTimeHttpCodeDataObject);
|
realTimeHttpCodeData_.push_back(realTimeHttpCodeDataObject);
|
||||||
|
|||||||
@@ -45,16 +45,16 @@ void DescribeDomainRealTimeSrcHttpCodeDataResult::parse(const std::string &paylo
|
|||||||
UsageData realTimeSrcHttpCodeDataObject;
|
UsageData realTimeSrcHttpCodeDataObject;
|
||||||
if(!valueRealTimeSrcHttpCodeDataUsageData["TimeStamp"].isNull())
|
if(!valueRealTimeSrcHttpCodeDataUsageData["TimeStamp"].isNull())
|
||||||
realTimeSrcHttpCodeDataObject.timeStamp = valueRealTimeSrcHttpCodeDataUsageData["TimeStamp"].asString();
|
realTimeSrcHttpCodeDataObject.timeStamp = valueRealTimeSrcHttpCodeDataUsageData["TimeStamp"].asString();
|
||||||
auto allValueNode = allRealTimeSrcHttpCodeDataNode["Value"]["RealTimeSrcCodeProportionData"];
|
auto allValueNode = valueRealTimeSrcHttpCodeDataUsageData["Value"]["RealTimeSrcCodeProportionData"];
|
||||||
for (auto allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData : allValueNode)
|
for (auto valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData : allValueNode)
|
||||||
{
|
{
|
||||||
UsageData::RealTimeSrcCodeProportionData valueObject;
|
UsageData::RealTimeSrcCodeProportionData valueObject;
|
||||||
if(!allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Code"].isNull())
|
if(!valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Code"].isNull())
|
||||||
valueObject.code = allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Code"].asString();
|
valueObject.code = valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Code"].asString();
|
||||||
if(!allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Proportion"].isNull())
|
if(!valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Proportion"].isNull())
|
||||||
valueObject.proportion = allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Proportion"].asString();
|
valueObject.proportion = valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Proportion"].asString();
|
||||||
if(!allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Count"].isNull())
|
if(!valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Count"].isNull())
|
||||||
valueObject.count = allRealTimeSrcHttpCodeDataNodeValueRealTimeSrcCodeProportionData["Count"].asString();
|
valueObject.count = valueRealTimeSrcHttpCodeDataUsageDataValueRealTimeSrcCodeProportionData["Count"].asString();
|
||||||
realTimeSrcHttpCodeDataObject.value.push_back(valueObject);
|
realTimeSrcHttpCodeDataObject.value.push_back(valueObject);
|
||||||
}
|
}
|
||||||
realTimeSrcHttpCodeData_.push_back(realTimeSrcHttpCodeDataObject);
|
realTimeSrcHttpCodeData_.push_back(realTimeSrcHttpCodeDataObject);
|
||||||
|
|||||||
@@ -45,16 +45,16 @@ void DescribeDomainSrcHttpCodeDataResult::parse(const std::string &payload)
|
|||||||
UsageData httpCodeDataObject;
|
UsageData httpCodeDataObject;
|
||||||
if(!valueHttpCodeDataUsageData["TimeStamp"].isNull())
|
if(!valueHttpCodeDataUsageData["TimeStamp"].isNull())
|
||||||
httpCodeDataObject.timeStamp = valueHttpCodeDataUsageData["TimeStamp"].asString();
|
httpCodeDataObject.timeStamp = valueHttpCodeDataUsageData["TimeStamp"].asString();
|
||||||
auto allValueNode = allHttpCodeDataNode["Value"]["CodeProportionData"];
|
auto allValueNode = valueHttpCodeDataUsageData["Value"]["CodeProportionData"];
|
||||||
for (auto allHttpCodeDataNodeValueCodeProportionData : allValueNode)
|
for (auto valueHttpCodeDataUsageDataValueCodeProportionData : allValueNode)
|
||||||
{
|
{
|
||||||
UsageData::CodeProportionData valueObject;
|
UsageData::CodeProportionData valueObject;
|
||||||
if(!allHttpCodeDataNodeValueCodeProportionData["Code"].isNull())
|
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Code"].isNull())
|
||||||
valueObject.code = allHttpCodeDataNodeValueCodeProportionData["Code"].asString();
|
valueObject.code = valueHttpCodeDataUsageDataValueCodeProportionData["Code"].asString();
|
||||||
if(!allHttpCodeDataNodeValueCodeProportionData["Proportion"].isNull())
|
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Proportion"].isNull())
|
||||||
valueObject.proportion = allHttpCodeDataNodeValueCodeProportionData["Proportion"].asString();
|
valueObject.proportion = valueHttpCodeDataUsageDataValueCodeProportionData["Proportion"].asString();
|
||||||
if(!allHttpCodeDataNodeValueCodeProportionData["Count"].isNull())
|
if(!valueHttpCodeDataUsageDataValueCodeProportionData["Count"].isNull())
|
||||||
valueObject.count = allHttpCodeDataNodeValueCodeProportionData["Count"].asString();
|
valueObject.count = valueHttpCodeDataUsageDataValueCodeProportionData["Count"].asString();
|
||||||
httpCodeDataObject.value.push_back(valueObject);
|
httpCodeDataObject.value.push_back(valueObject);
|
||||||
}
|
}
|
||||||
httpCodeData_.push_back(httpCodeDataObject);
|
httpCodeData_.push_back(httpCodeDataObject);
|
||||||
|
|||||||
@@ -45,20 +45,20 @@ void DescribeDomainsBySourceResult::parse(const std::string &payload)
|
|||||||
DomainsData domainsListObject;
|
DomainsData domainsListObject;
|
||||||
if(!valueDomainsListDomainsData["Source"].isNull())
|
if(!valueDomainsListDomainsData["Source"].isNull())
|
||||||
domainsListObject.source = valueDomainsListDomainsData["Source"].asString();
|
domainsListObject.source = valueDomainsListDomainsData["Source"].asString();
|
||||||
auto allDomainInfosNode = allDomainsListNode["DomainInfos"]["domainInfo"];
|
auto allDomainInfosNode = valueDomainsListDomainsData["DomainInfos"]["domainInfo"];
|
||||||
for (auto allDomainsListNodeDomainInfosdomainInfo : allDomainInfosNode)
|
for (auto valueDomainsListDomainsDataDomainInfosdomainInfo : allDomainInfosNode)
|
||||||
{
|
{
|
||||||
DomainsData::DomainInfo domainInfosObject;
|
DomainsData::DomainInfo domainInfosObject;
|
||||||
if(!allDomainsListNodeDomainInfosdomainInfo["DomainName"].isNull())
|
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["DomainName"].isNull())
|
||||||
domainInfosObject.domainName = allDomainsListNodeDomainInfosdomainInfo["DomainName"].asString();
|
domainInfosObject.domainName = valueDomainsListDomainsDataDomainInfosdomainInfo["DomainName"].asString();
|
||||||
if(!allDomainsListNodeDomainInfosdomainInfo["DomainCname"].isNull())
|
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["DomainCname"].isNull())
|
||||||
domainInfosObject.domainCname = allDomainsListNodeDomainInfosdomainInfo["DomainCname"].asString();
|
domainInfosObject.domainCname = valueDomainsListDomainsDataDomainInfosdomainInfo["DomainCname"].asString();
|
||||||
if(!allDomainsListNodeDomainInfosdomainInfo["CreateTime"].isNull())
|
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["CreateTime"].isNull())
|
||||||
domainInfosObject.createTime = allDomainsListNodeDomainInfosdomainInfo["CreateTime"].asString();
|
domainInfosObject.createTime = valueDomainsListDomainsDataDomainInfosdomainInfo["CreateTime"].asString();
|
||||||
if(!allDomainsListNodeDomainInfosdomainInfo["UpdateTime"].isNull())
|
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["UpdateTime"].isNull())
|
||||||
domainInfosObject.updateTime = allDomainsListNodeDomainInfosdomainInfo["UpdateTime"].asString();
|
domainInfosObject.updateTime = valueDomainsListDomainsDataDomainInfosdomainInfo["UpdateTime"].asString();
|
||||||
if(!allDomainsListNodeDomainInfosdomainInfo["Status"].isNull())
|
if(!valueDomainsListDomainsDataDomainInfosdomainInfo["Status"].isNull())
|
||||||
domainInfosObject.status = allDomainsListNodeDomainInfosdomainInfo["Status"].asString();
|
domainInfosObject.status = valueDomainsListDomainsDataDomainInfosdomainInfo["Status"].asString();
|
||||||
domainsListObject.domainInfos.push_back(domainInfosObject);
|
domainsListObject.domainInfos.push_back(domainInfosObject);
|
||||||
}
|
}
|
||||||
auto allDomains = value["Domains"]["domainNames"];
|
auto allDomains = value["Domains"]["domainNames"];
|
||||||
|
|||||||
@@ -59,6 +59,10 @@ void DescribeRefreshQuotaResult::parse(const std::string &payload)
|
|||||||
regexQuota_ = value["RegexQuota"].asString();
|
regexQuota_ = value["RegexQuota"].asString();
|
||||||
if(!value["RegexRemain"].isNull())
|
if(!value["RegexRemain"].isNull())
|
||||||
regexRemain_ = value["RegexRemain"].asString();
|
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_;
|
return urlRemain_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string DescribeRefreshQuotaResult::getPreloadEdgeRemain()const
|
||||||
|
{
|
||||||
|
return preloadEdgeRemain_;
|
||||||
|
}
|
||||||
|
|
||||||
std::string DescribeRefreshQuotaResult::getPreloadRemain()const
|
std::string DescribeRefreshQuotaResult::getPreloadRemain()const
|
||||||
{
|
{
|
||||||
return preloadRemain_;
|
return preloadRemain_;
|
||||||
@@ -112,3 +121,8 @@ std::string DescribeRefreshQuotaResult::getPreloadQuota()const
|
|||||||
return preloadQuota_;
|
return preloadQuota_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string DescribeRefreshQuotaResult::getPreloadEdgeQuota()const
|
||||||
|
{
|
||||||
|
return preloadEdgeQuota_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,14 +45,14 @@ void DescribeTagResourcesResult::parse(const std::string &payload)
|
|||||||
TagResource tagResourcesObject;
|
TagResource tagResourcesObject;
|
||||||
if(!valueTagResourcesTagResource["ResourceId"].isNull())
|
if(!valueTagResourcesTagResource["ResourceId"].isNull())
|
||||||
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
||||||
auto allTagNode = allTagResourcesNode["Tag"]["TagItem"];
|
auto allTagNode = valueTagResourcesTagResource["Tag"]["TagItem"];
|
||||||
for (auto allTagResourcesNodeTagTagItem : allTagNode)
|
for (auto valueTagResourcesTagResourceTagTagItem : allTagNode)
|
||||||
{
|
{
|
||||||
TagResource::TagItem tagObject;
|
TagResource::TagItem tagObject;
|
||||||
if(!allTagResourcesNodeTagTagItem["Key"].isNull())
|
if(!valueTagResourcesTagResourceTagTagItem["Key"].isNull())
|
||||||
tagObject.key = allTagResourcesNodeTagTagItem["Key"].asString();
|
tagObject.key = valueTagResourcesTagResourceTagTagItem["Key"].asString();
|
||||||
if(!allTagResourcesNodeTagTagItem["Value"].isNull())
|
if(!valueTagResourcesTagResourceTagTagItem["Value"].isNull())
|
||||||
tagObject.value = allTagResourcesNodeTagTagItem["Value"].asString();
|
tagObject.value = valueTagResourcesTagResourceTagTagItem["Value"].asString();
|
||||||
tagResourcesObject.tag.push_back(tagObject);
|
tagResourcesObject.tag.push_back(tagObject);
|
||||||
}
|
}
|
||||||
tagResources_.push_back(tagResourcesObject);
|
tagResources_.push_back(tagResourcesObject);
|
||||||
|
|||||||
@@ -65,20 +65,20 @@ void DescribeUserDomainsResult::parse(const std::string &payload)
|
|||||||
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
|
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
|
||||||
if(!valueDomainsPageData["Coverage"].isNull())
|
if(!valueDomainsPageData["Coverage"].isNull())
|
||||||
domainsObject.coverage = valueDomainsPageData["Coverage"].asString();
|
domainsObject.coverage = valueDomainsPageData["Coverage"].asString();
|
||||||
auto allSourcesNode = allDomainsNode["Sources"]["Source"];
|
auto allSourcesNode = valueDomainsPageData["Sources"]["Source"];
|
||||||
for (auto allDomainsNodeSourcesSource : allSourcesNode)
|
for (auto valueDomainsPageDataSourcesSource : allSourcesNode)
|
||||||
{
|
{
|
||||||
PageData::Source sourcesObject;
|
PageData::Source sourcesObject;
|
||||||
if(!allDomainsNodeSourcesSource["Type"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Type"].isNull())
|
||||||
sourcesObject.type = allDomainsNodeSourcesSource["Type"].asString();
|
sourcesObject.type = valueDomainsPageDataSourcesSource["Type"].asString();
|
||||||
if(!allDomainsNodeSourcesSource["Content"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Content"].isNull())
|
||||||
sourcesObject.content = allDomainsNodeSourcesSource["Content"].asString();
|
sourcesObject.content = valueDomainsPageDataSourcesSource["Content"].asString();
|
||||||
if(!allDomainsNodeSourcesSource["Port"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Port"].isNull())
|
||||||
sourcesObject.port = std::stoi(allDomainsNodeSourcesSource["Port"].asString());
|
sourcesObject.port = std::stoi(valueDomainsPageDataSourcesSource["Port"].asString());
|
||||||
if(!allDomainsNodeSourcesSource["Priority"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Priority"].isNull())
|
||||||
sourcesObject.priority = allDomainsNodeSourcesSource["Priority"].asString();
|
sourcesObject.priority = valueDomainsPageDataSourcesSource["Priority"].asString();
|
||||||
if(!allDomainsNodeSourcesSource["Weight"].isNull())
|
if(!valueDomainsPageDataSourcesSource["Weight"].isNull())
|
||||||
sourcesObject.weight = allDomainsNodeSourcesSource["Weight"].asString();
|
sourcesObject.weight = valueDomainsPageDataSourcesSource["Weight"].asString();
|
||||||
domainsObject.sources.push_back(sourcesObject);
|
domainsObject.sources.push_back(sourcesObject);
|
||||||
}
|
}
|
||||||
domains_.push_back(domainsObject);
|
domains_.push_back(domainsObject);
|
||||||
|
|||||||
@@ -45,12 +45,14 @@ namespace AlibabaCloud
|
|||||||
void setAccessKeyId(const std::string& accessKeyId);
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
std::string getSecurityToken()const;
|
std::string getSecurityToken()const;
|
||||||
void setSecurityToken(const std::string& securityToken);
|
void setSecurityToken(const std::string& securityToken);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getEngine()const;
|
std::string getEngine()const;
|
||||||
void setEngine(const std::string& engine);
|
void setEngine(const std::string& engine);
|
||||||
int getPageSize()const;
|
int getPageSize()const;
|
||||||
void setPageSize(int pageSize);
|
void setPageSize(int pageSize);
|
||||||
int getInstanceStatus()const;
|
std::string getInstanceStatus()const;
|
||||||
void setInstanceStatus(int instanceStatus);
|
void setInstanceStatus(const std::string& instanceStatus);
|
||||||
std::string getDedicatedHostName()const;
|
std::string getDedicatedHostName()const;
|
||||||
void setDedicatedHostName(const std::string& dedicatedHostName);
|
void setDedicatedHostName(const std::string& dedicatedHostName);
|
||||||
std::string getResourceOwnerAccount()const;
|
std::string getResourceOwnerAccount()const;
|
||||||
@@ -65,6 +67,10 @@ namespace AlibabaCloud
|
|||||||
void setOwnerId(long ownerId);
|
void setOwnerId(long ownerId);
|
||||||
std::string getInstanceId()const;
|
std::string getInstanceId()const;
|
||||||
void setInstanceId(const std::string& instanceId);
|
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:
|
private:
|
||||||
long resourceOwnerId_;
|
long resourceOwnerId_;
|
||||||
@@ -72,9 +78,10 @@ namespace AlibabaCloud
|
|||||||
int pageNumber_;
|
int pageNumber_;
|
||||||
std::string accessKeyId_;
|
std::string accessKeyId_;
|
||||||
std::string securityToken_;
|
std::string securityToken_;
|
||||||
|
std::string regionId_;
|
||||||
std::string engine_;
|
std::string engine_;
|
||||||
int pageSize_;
|
int pageSize_;
|
||||||
int instanceStatus_;
|
std::string instanceStatus_;
|
||||||
std::string dedicatedHostName_;
|
std::string dedicatedHostName_;
|
||||||
std::string resourceOwnerAccount_;
|
std::string resourceOwnerAccount_;
|
||||||
std::string ownerAccount_;
|
std::string ownerAccount_;
|
||||||
@@ -82,6 +89,8 @@ namespace AlibabaCloud
|
|||||||
std::string clusterId_;
|
std::string clusterId_;
|
||||||
long ownerId_;
|
long ownerId_;
|
||||||
std::string instanceId_;
|
std::string instanceId_;
|
||||||
|
std::string zoneId_;
|
||||||
|
std::string region_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ namespace AlibabaCloud
|
|||||||
std::string instanceId;
|
std::string instanceId;
|
||||||
std::string createTime;
|
std::string createTime;
|
||||||
std::string instanceClass;
|
std::string instanceClass;
|
||||||
int characterType;
|
std::string characterType;
|
||||||
std::string vswitchId;
|
std::string vswitchId;
|
||||||
std::string instanceName;
|
std::string instanceName;
|
||||||
std::string connectionDomain;
|
std::string connectionDomain;
|
||||||
|
|||||||
@@ -41,20 +41,26 @@ namespace AlibabaCloud
|
|||||||
void setAccessKeyId(const std::string& accessKeyId);
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
std::string getSecurityToken()const;
|
std::string getSecurityToken()const;
|
||||||
void setSecurityToken(const std::string& securityToken);
|
void setSecurityToken(const std::string& securityToken);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getResourceOwnerAccount()const;
|
std::string getResourceOwnerAccount()const;
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||||
std::string getOwnerAccount()const;
|
std::string getOwnerAccount()const;
|
||||||
void setOwnerAccount(const std::string& ownerAccount);
|
void setOwnerAccount(const std::string& ownerAccount);
|
||||||
long getOwnerId()const;
|
long getOwnerId()const;
|
||||||
void setOwnerId(long ownerId);
|
void setOwnerId(long ownerId);
|
||||||
|
std::string getZoneId()const;
|
||||||
|
void setZoneId(const std::string& zoneId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long resourceOwnerId_;
|
long resourceOwnerId_;
|
||||||
std::string accessKeyId_;
|
std::string accessKeyId_;
|
||||||
std::string securityToken_;
|
std::string securityToken_;
|
||||||
|
std::string regionId_;
|
||||||
std::string resourceOwnerAccount_;
|
std::string resourceOwnerAccount_;
|
||||||
std::string ownerAccount_;
|
std::string ownerAccount_;
|
||||||
long ownerId_;
|
long ownerId_;
|
||||||
|
std::string zoneId_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,42 +45,42 @@ void DescribeAvailableResourceResult::parse(const std::string &payload)
|
|||||||
SupportedDBType supportedDBTypesObject;
|
SupportedDBType supportedDBTypesObject;
|
||||||
if(!valueSupportedDBTypesSupportedDBType["DbType"].isNull())
|
if(!valueSupportedDBTypesSupportedDBType["DbType"].isNull())
|
||||||
supportedDBTypesObject.dbType = valueSupportedDBTypesSupportedDBType["DbType"].asString();
|
supportedDBTypesObject.dbType = valueSupportedDBTypesSupportedDBType["DbType"].asString();
|
||||||
auto allAvailableZonesNode = allSupportedDBTypesNode["AvailableZones"]["AvailableZone"];
|
auto allAvailableZonesNode = valueSupportedDBTypesSupportedDBType["AvailableZones"]["AvailableZone"];
|
||||||
for (auto allSupportedDBTypesNodeAvailableZonesAvailableZone : allAvailableZonesNode)
|
for (auto valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZone : allAvailableZonesNode)
|
||||||
{
|
{
|
||||||
SupportedDBType::AvailableZone availableZonesObject;
|
SupportedDBType::AvailableZone availableZonesObject;
|
||||||
if(!allSupportedDBTypesNodeAvailableZonesAvailableZone["RegionId"].isNull())
|
if(!valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZone["RegionId"].isNull())
|
||||||
availableZonesObject.regionId = allSupportedDBTypesNodeAvailableZonesAvailableZone["RegionId"].asString();
|
availableZonesObject.regionId = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZone["RegionId"].asString();
|
||||||
if(!allSupportedDBTypesNodeAvailableZonesAvailableZone["ZoneId"].isNull())
|
if(!valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZone["ZoneId"].isNull())
|
||||||
availableZonesObject.zoneId = allSupportedDBTypesNodeAvailableZonesAvailableZone["ZoneId"].asString();
|
availableZonesObject.zoneId = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZone["ZoneId"].asString();
|
||||||
auto allSupportedEngineVersionsNode = allAvailableZonesNode["SupportedEngineVersions"]["SupportedEngineVersion"];
|
auto allSupportedEngineVersionsNode = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZone["SupportedEngineVersions"]["SupportedEngineVersion"];
|
||||||
for (auto allAvailableZonesNodeSupportedEngineVersionsSupportedEngineVersion : allSupportedEngineVersionsNode)
|
for (auto valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersion : allSupportedEngineVersionsNode)
|
||||||
{
|
{
|
||||||
SupportedDBType::AvailableZone::SupportedEngineVersion supportedEngineVersionsObject;
|
SupportedDBType::AvailableZone::SupportedEngineVersion supportedEngineVersionsObject;
|
||||||
if(!allAvailableZonesNodeSupportedEngineVersionsSupportedEngineVersion["Version"].isNull())
|
if(!valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersion["Version"].isNull())
|
||||||
supportedEngineVersionsObject.version = allAvailableZonesNodeSupportedEngineVersionsSupportedEngineVersion["Version"].asString();
|
supportedEngineVersionsObject.version = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersion["Version"].asString();
|
||||||
auto allSupportedEnginesNode = allSupportedEngineVersionsNode["SupportedEngines"]["SupportedEngine"];
|
auto allSupportedEnginesNode = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersion["SupportedEngines"]["SupportedEngine"];
|
||||||
for (auto allSupportedEngineVersionsNodeSupportedEnginesSupportedEngine : allSupportedEnginesNode)
|
for (auto valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngine : allSupportedEnginesNode)
|
||||||
{
|
{
|
||||||
SupportedDBType::AvailableZone::SupportedEngineVersion::SupportedEngine supportedEnginesObject;
|
SupportedDBType::AvailableZone::SupportedEngineVersion::SupportedEngine supportedEnginesObject;
|
||||||
if(!allSupportedEngineVersionsNodeSupportedEnginesSupportedEngine["Engine"].isNull())
|
if(!valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngine["Engine"].isNull())
|
||||||
supportedEnginesObject.engine = allSupportedEngineVersionsNodeSupportedEnginesSupportedEngine["Engine"].asString();
|
supportedEnginesObject.engine = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngine["Engine"].asString();
|
||||||
auto allSupportedNodeTypesNode = allSupportedEnginesNode["SupportedNodeTypes"]["SupportedNodeType"];
|
auto allSupportedNodeTypesNode = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngine["SupportedNodeTypes"]["SupportedNodeType"];
|
||||||
for (auto allSupportedEnginesNodeSupportedNodeTypesSupportedNodeType : allSupportedNodeTypesNode)
|
for (auto valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeType : allSupportedNodeTypesNode)
|
||||||
{
|
{
|
||||||
SupportedDBType::AvailableZone::SupportedEngineVersion::SupportedEngine::SupportedNodeType supportedNodeTypesObject;
|
SupportedDBType::AvailableZone::SupportedEngineVersion::SupportedEngine::SupportedNodeType supportedNodeTypesObject;
|
||||||
if(!allSupportedEnginesNodeSupportedNodeTypesSupportedNodeType["NodeType"].isNull())
|
if(!valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeType["NodeType"].isNull())
|
||||||
supportedNodeTypesObject.nodeType = allSupportedEnginesNodeSupportedNodeTypesSupportedNodeType["NodeType"].asString();
|
supportedNodeTypesObject.nodeType = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeType["NodeType"].asString();
|
||||||
if(!allSupportedEnginesNodeSupportedNodeTypesSupportedNodeType["NetworkTypes"].isNull())
|
if(!valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeType["NetworkTypes"].isNull())
|
||||||
supportedNodeTypesObject.networkTypes = allSupportedEnginesNodeSupportedNodeTypesSupportedNodeType["NetworkTypes"].asString();
|
supportedNodeTypesObject.networkTypes = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeType["NetworkTypes"].asString();
|
||||||
auto allAvailableResourcesNode = allSupportedNodeTypesNode["AvailableResources"]["AvailableResource"];
|
auto allAvailableResourcesNode = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeType["AvailableResources"]["AvailableResource"];
|
||||||
for (auto allSupportedNodeTypesNodeAvailableResourcesAvailableResource : allAvailableResourcesNode)
|
for (auto valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeTypeAvailableResourcesAvailableResource : allAvailableResourcesNode)
|
||||||
{
|
{
|
||||||
SupportedDBType::AvailableZone::SupportedEngineVersion::SupportedEngine::SupportedNodeType::AvailableResource availableResourcesObject;
|
SupportedDBType::AvailableZone::SupportedEngineVersion::SupportedEngine::SupportedNodeType::AvailableResource availableResourcesObject;
|
||||||
if(!allSupportedNodeTypesNodeAvailableResourcesAvailableResource["InstanceClass"].isNull())
|
if(!valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeTypeAvailableResourcesAvailableResource["InstanceClass"].isNull())
|
||||||
availableResourcesObject.instanceClass = allSupportedNodeTypesNodeAvailableResourcesAvailableResource["InstanceClass"].asString();
|
availableResourcesObject.instanceClass = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeTypeAvailableResourcesAvailableResource["InstanceClass"].asString();
|
||||||
if(!allSupportedNodeTypesNodeAvailableResourcesAvailableResource["InstanceClassRemark"].isNull())
|
if(!valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeTypeAvailableResourcesAvailableResource["InstanceClassRemark"].isNull())
|
||||||
availableResourcesObject.instanceClassRemark = allSupportedNodeTypesNodeAvailableResourcesAvailableResource["InstanceClassRemark"].asString();
|
availableResourcesObject.instanceClassRemark = valueSupportedDBTypesSupportedDBTypeAvailableZonesAvailableZoneSupportedEngineVersionsSupportedEngineVersionSupportedEnginesSupportedEngineSupportedNodeTypesSupportedNodeTypeAvailableResourcesAvailableResource["InstanceClassRemark"].asString();
|
||||||
supportedNodeTypesObject.availableResources.push_back(availableResourcesObject);
|
supportedNodeTypesObject.availableResources.push_back(availableResourcesObject);
|
||||||
}
|
}
|
||||||
supportedEnginesObject.supportedNodeTypes.push_back(supportedNodeTypesObject);
|
supportedEnginesObject.supportedNodeTypes.push_back(supportedNodeTypesObject);
|
||||||
|
|||||||
@@ -111,104 +111,104 @@ void DescribeDBInstanceAttributeResult::parse(const std::string &payload)
|
|||||||
dBInstancesObject.vpcAuthMode = valueDBInstancesDBInstance["VpcAuthMode"].asString();
|
dBInstancesObject.vpcAuthMode = valueDBInstancesDBInstance["VpcAuthMode"].asString();
|
||||||
if(!valueDBInstancesDBInstance["DBInstanceReleaseProtection"].isNull())
|
if(!valueDBInstancesDBInstance["DBInstanceReleaseProtection"].isNull())
|
||||||
dBInstancesObject.dBInstanceReleaseProtection = valueDBInstancesDBInstance["DBInstanceReleaseProtection"].asString() == "true";
|
dBInstancesObject.dBInstanceReleaseProtection = valueDBInstancesDBInstance["DBInstanceReleaseProtection"].asString() == "true";
|
||||||
auto allMongosListNode = allDBInstancesNode["MongosList"]["MongosAttribute"];
|
auto allMongosListNode = valueDBInstancesDBInstance["MongosList"]["MongosAttribute"];
|
||||||
for (auto allDBInstancesNodeMongosListMongosAttribute : allMongosListNode)
|
for (auto valueDBInstancesDBInstanceMongosListMongosAttribute : allMongosListNode)
|
||||||
{
|
{
|
||||||
DBInstance::MongosAttribute mongosListObject;
|
DBInstance::MongosAttribute mongosListObject;
|
||||||
if(!allDBInstancesNodeMongosListMongosAttribute["NodeId"].isNull())
|
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeId"].isNull())
|
||||||
mongosListObject.nodeId = allDBInstancesNodeMongosListMongosAttribute["NodeId"].asString();
|
mongosListObject.nodeId = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeId"].asString();
|
||||||
if(!allDBInstancesNodeMongosListMongosAttribute["NodeDescription"].isNull())
|
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeDescription"].isNull())
|
||||||
mongosListObject.nodeDescription = allDBInstancesNodeMongosListMongosAttribute["NodeDescription"].asString();
|
mongosListObject.nodeDescription = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeDescription"].asString();
|
||||||
if(!allDBInstancesNodeMongosListMongosAttribute["NodeClass"].isNull())
|
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeClass"].isNull())
|
||||||
mongosListObject.nodeClass = allDBInstancesNodeMongosListMongosAttribute["NodeClass"].asString();
|
mongosListObject.nodeClass = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeClass"].asString();
|
||||||
if(!allDBInstancesNodeMongosListMongosAttribute["ConnectSting"].isNull())
|
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["ConnectSting"].isNull())
|
||||||
mongosListObject.connectSting = allDBInstancesNodeMongosListMongosAttribute["ConnectSting"].asString();
|
mongosListObject.connectSting = valueDBInstancesDBInstanceMongosListMongosAttribute["ConnectSting"].asString();
|
||||||
if(!allDBInstancesNodeMongosListMongosAttribute["MaxIOPS"].isNull())
|
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["MaxIOPS"].isNull())
|
||||||
mongosListObject.maxIOPS = std::stoi(allDBInstancesNodeMongosListMongosAttribute["MaxIOPS"].asString());
|
mongosListObject.maxIOPS = std::stoi(valueDBInstancesDBInstanceMongosListMongosAttribute["MaxIOPS"].asString());
|
||||||
if(!allDBInstancesNodeMongosListMongosAttribute["MaxConnections"].isNull())
|
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["MaxConnections"].isNull())
|
||||||
mongosListObject.maxConnections = std::stoi(allDBInstancesNodeMongosListMongosAttribute["MaxConnections"].asString());
|
mongosListObject.maxConnections = std::stoi(valueDBInstancesDBInstanceMongosListMongosAttribute["MaxConnections"].asString());
|
||||||
if(!allDBInstancesNodeMongosListMongosAttribute["Port"].isNull())
|
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["Port"].isNull())
|
||||||
mongosListObject.port = std::stoi(allDBInstancesNodeMongosListMongosAttribute["Port"].asString());
|
mongosListObject.port = std::stoi(valueDBInstancesDBInstanceMongosListMongosAttribute["Port"].asString());
|
||||||
if(!allDBInstancesNodeMongosListMongosAttribute["VpcCloudInstanceId"].isNull())
|
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["VpcCloudInstanceId"].isNull())
|
||||||
mongosListObject.vpcCloudInstanceId = allDBInstancesNodeMongosListMongosAttribute["VpcCloudInstanceId"].asString();
|
mongosListObject.vpcCloudInstanceId = valueDBInstancesDBInstanceMongosListMongosAttribute["VpcCloudInstanceId"].asString();
|
||||||
if(!allDBInstancesNodeMongosListMongosAttribute["VPCId"].isNull())
|
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["VPCId"].isNull())
|
||||||
mongosListObject.vPCId = allDBInstancesNodeMongosListMongosAttribute["VPCId"].asString();
|
mongosListObject.vPCId = valueDBInstancesDBInstanceMongosListMongosAttribute["VPCId"].asString();
|
||||||
if(!allDBInstancesNodeMongosListMongosAttribute["VSwitchId"].isNull())
|
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["VSwitchId"].isNull())
|
||||||
mongosListObject.vSwitchId = allDBInstancesNodeMongosListMongosAttribute["VSwitchId"].asString();
|
mongosListObject.vSwitchId = valueDBInstancesDBInstanceMongosListMongosAttribute["VSwitchId"].asString();
|
||||||
dBInstancesObject.mongosList.push_back(mongosListObject);
|
dBInstancesObject.mongosList.push_back(mongosListObject);
|
||||||
}
|
}
|
||||||
auto allShardListNode = allDBInstancesNode["ShardList"]["ShardAttribute"];
|
auto allShardListNode = valueDBInstancesDBInstance["ShardList"]["ShardAttribute"];
|
||||||
for (auto allDBInstancesNodeShardListShardAttribute : allShardListNode)
|
for (auto valueDBInstancesDBInstanceShardListShardAttribute : allShardListNode)
|
||||||
{
|
{
|
||||||
DBInstance::ShardAttribute shardListObject;
|
DBInstance::ShardAttribute shardListObject;
|
||||||
if(!allDBInstancesNodeShardListShardAttribute["NodeId"].isNull())
|
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeId"].isNull())
|
||||||
shardListObject.nodeId = allDBInstancesNodeShardListShardAttribute["NodeId"].asString();
|
shardListObject.nodeId = valueDBInstancesDBInstanceShardListShardAttribute["NodeId"].asString();
|
||||||
if(!allDBInstancesNodeShardListShardAttribute["NodeDescription"].isNull())
|
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeDescription"].isNull())
|
||||||
shardListObject.nodeDescription = allDBInstancesNodeShardListShardAttribute["NodeDescription"].asString();
|
shardListObject.nodeDescription = valueDBInstancesDBInstanceShardListShardAttribute["NodeDescription"].asString();
|
||||||
if(!allDBInstancesNodeShardListShardAttribute["NodeClass"].isNull())
|
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeClass"].isNull())
|
||||||
shardListObject.nodeClass = allDBInstancesNodeShardListShardAttribute["NodeClass"].asString();
|
shardListObject.nodeClass = valueDBInstancesDBInstanceShardListShardAttribute["NodeClass"].asString();
|
||||||
if(!allDBInstancesNodeShardListShardAttribute["NodeStorage"].isNull())
|
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeStorage"].isNull())
|
||||||
shardListObject.nodeStorage = std::stoi(allDBInstancesNodeShardListShardAttribute["NodeStorage"].asString());
|
shardListObject.nodeStorage = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["NodeStorage"].asString());
|
||||||
if(!allDBInstancesNodeShardListShardAttribute["MaxIOPS"].isNull())
|
if(!valueDBInstancesDBInstanceShardListShardAttribute["MaxIOPS"].isNull())
|
||||||
shardListObject.maxIOPS = std::stoi(allDBInstancesNodeShardListShardAttribute["MaxIOPS"].asString());
|
shardListObject.maxIOPS = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["MaxIOPS"].asString());
|
||||||
if(!allDBInstancesNodeShardListShardAttribute["MaxConnections"].isNull())
|
if(!valueDBInstancesDBInstanceShardListShardAttribute["MaxConnections"].isNull())
|
||||||
shardListObject.maxConnections = std::stoi(allDBInstancesNodeShardListShardAttribute["MaxConnections"].asString());
|
shardListObject.maxConnections = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["MaxConnections"].asString());
|
||||||
if(!allDBInstancesNodeShardListShardAttribute["ConnectString"].isNull())
|
if(!valueDBInstancesDBInstanceShardListShardAttribute["ConnectString"].isNull())
|
||||||
shardListObject.connectString = allDBInstancesNodeShardListShardAttribute["ConnectString"].asString();
|
shardListObject.connectString = valueDBInstancesDBInstanceShardListShardAttribute["ConnectString"].asString();
|
||||||
if(!allDBInstancesNodeShardListShardAttribute["Port"].isNull())
|
if(!valueDBInstancesDBInstanceShardListShardAttribute["Port"].isNull())
|
||||||
shardListObject.port = std::stoi(allDBInstancesNodeShardListShardAttribute["Port"].asString());
|
shardListObject.port = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["Port"].asString());
|
||||||
dBInstancesObject.shardList.push_back(shardListObject);
|
dBInstancesObject.shardList.push_back(shardListObject);
|
||||||
}
|
}
|
||||||
auto allConfigserverListNode = allDBInstancesNode["ConfigserverList"]["ConfigserverAttribute"];
|
auto allConfigserverListNode = valueDBInstancesDBInstance["ConfigserverList"]["ConfigserverAttribute"];
|
||||||
for (auto allDBInstancesNodeConfigserverListConfigserverAttribute : allConfigserverListNode)
|
for (auto valueDBInstancesDBInstanceConfigserverListConfigserverAttribute : allConfigserverListNode)
|
||||||
{
|
{
|
||||||
DBInstance::ConfigserverAttribute configserverListObject;
|
DBInstance::ConfigserverAttribute configserverListObject;
|
||||||
if(!allDBInstancesNodeConfigserverListConfigserverAttribute["NodeId"].isNull())
|
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeId"].isNull())
|
||||||
configserverListObject.nodeId = allDBInstancesNodeConfigserverListConfigserverAttribute["NodeId"].asString();
|
configserverListObject.nodeId = valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeId"].asString();
|
||||||
if(!allDBInstancesNodeConfigserverListConfigserverAttribute["NodeDescription"].isNull())
|
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeDescription"].isNull())
|
||||||
configserverListObject.nodeDescription = allDBInstancesNodeConfigserverListConfigserverAttribute["NodeDescription"].asString();
|
configserverListObject.nodeDescription = valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeDescription"].asString();
|
||||||
if(!allDBInstancesNodeConfigserverListConfigserverAttribute["NodeClass"].isNull())
|
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeClass"].isNull())
|
||||||
configserverListObject.nodeClass = allDBInstancesNodeConfigserverListConfigserverAttribute["NodeClass"].asString();
|
configserverListObject.nodeClass = valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeClass"].asString();
|
||||||
if(!allDBInstancesNodeConfigserverListConfigserverAttribute["NodeStorage"].isNull())
|
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeStorage"].isNull())
|
||||||
configserverListObject.nodeStorage = std::stoi(allDBInstancesNodeConfigserverListConfigserverAttribute["NodeStorage"].asString());
|
configserverListObject.nodeStorage = std::stoi(valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["NodeStorage"].asString());
|
||||||
if(!allDBInstancesNodeConfigserverListConfigserverAttribute["MaxIOPS"].isNull())
|
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["MaxIOPS"].isNull())
|
||||||
configserverListObject.maxIOPS = std::stoi(allDBInstancesNodeConfigserverListConfigserverAttribute["MaxIOPS"].asString());
|
configserverListObject.maxIOPS = std::stoi(valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["MaxIOPS"].asString());
|
||||||
if(!allDBInstancesNodeConfigserverListConfigserverAttribute["MaxConnections"].isNull())
|
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["MaxConnections"].isNull())
|
||||||
configserverListObject.maxConnections = std::stoi(allDBInstancesNodeConfigserverListConfigserverAttribute["MaxConnections"].asString());
|
configserverListObject.maxConnections = std::stoi(valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["MaxConnections"].asString());
|
||||||
if(!allDBInstancesNodeConfigserverListConfigserverAttribute["ConnectString"].isNull())
|
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["ConnectString"].isNull())
|
||||||
configserverListObject.connectString = allDBInstancesNodeConfigserverListConfigserverAttribute["ConnectString"].asString();
|
configserverListObject.connectString = valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["ConnectString"].asString();
|
||||||
if(!allDBInstancesNodeConfigserverListConfigserverAttribute["Port"].isNull())
|
if(!valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["Port"].isNull())
|
||||||
configserverListObject.port = std::stoi(allDBInstancesNodeConfigserverListConfigserverAttribute["Port"].asString());
|
configserverListObject.port = std::stoi(valueDBInstancesDBInstanceConfigserverListConfigserverAttribute["Port"].asString());
|
||||||
dBInstancesObject.configserverList.push_back(configserverListObject);
|
dBInstancesObject.configserverList.push_back(configserverListObject);
|
||||||
}
|
}
|
||||||
auto allReplicaSetsNode = allDBInstancesNode["ReplicaSets"]["ReplicaSet"];
|
auto allReplicaSetsNode = valueDBInstancesDBInstance["ReplicaSets"]["ReplicaSet"];
|
||||||
for (auto allDBInstancesNodeReplicaSetsReplicaSet : allReplicaSetsNode)
|
for (auto valueDBInstancesDBInstanceReplicaSetsReplicaSet : allReplicaSetsNode)
|
||||||
{
|
{
|
||||||
DBInstance::ReplicaSet replicaSetsObject;
|
DBInstance::ReplicaSet replicaSetsObject;
|
||||||
if(!allDBInstancesNodeReplicaSetsReplicaSet["ReplicaSetRole"].isNull())
|
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["ReplicaSetRole"].isNull())
|
||||||
replicaSetsObject.replicaSetRole = allDBInstancesNodeReplicaSetsReplicaSet["ReplicaSetRole"].asString();
|
replicaSetsObject.replicaSetRole = valueDBInstancesDBInstanceReplicaSetsReplicaSet["ReplicaSetRole"].asString();
|
||||||
if(!allDBInstancesNodeReplicaSetsReplicaSet["ConnectionDomain"].isNull())
|
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["ConnectionDomain"].isNull())
|
||||||
replicaSetsObject.connectionDomain = allDBInstancesNodeReplicaSetsReplicaSet["ConnectionDomain"].asString();
|
replicaSetsObject.connectionDomain = valueDBInstancesDBInstanceReplicaSetsReplicaSet["ConnectionDomain"].asString();
|
||||||
if(!allDBInstancesNodeReplicaSetsReplicaSet["ConnectionPort"].isNull())
|
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["ConnectionPort"].isNull())
|
||||||
replicaSetsObject.connectionPort = allDBInstancesNodeReplicaSetsReplicaSet["ConnectionPort"].asString();
|
replicaSetsObject.connectionPort = valueDBInstancesDBInstanceReplicaSetsReplicaSet["ConnectionPort"].asString();
|
||||||
if(!allDBInstancesNodeReplicaSetsReplicaSet["VPCCloudInstanceId"].isNull())
|
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["VPCCloudInstanceId"].isNull())
|
||||||
replicaSetsObject.vPCCloudInstanceId = allDBInstancesNodeReplicaSetsReplicaSet["VPCCloudInstanceId"].asString();
|
replicaSetsObject.vPCCloudInstanceId = valueDBInstancesDBInstanceReplicaSetsReplicaSet["VPCCloudInstanceId"].asString();
|
||||||
if(!allDBInstancesNodeReplicaSetsReplicaSet["VPCId"].isNull())
|
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["VPCId"].isNull())
|
||||||
replicaSetsObject.vPCId = allDBInstancesNodeReplicaSetsReplicaSet["VPCId"].asString();
|
replicaSetsObject.vPCId = valueDBInstancesDBInstanceReplicaSetsReplicaSet["VPCId"].asString();
|
||||||
if(!allDBInstancesNodeReplicaSetsReplicaSet["VSwitchId"].isNull())
|
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["VSwitchId"].isNull())
|
||||||
replicaSetsObject.vSwitchId = allDBInstancesNodeReplicaSetsReplicaSet["VSwitchId"].asString();
|
replicaSetsObject.vSwitchId = valueDBInstancesDBInstanceReplicaSetsReplicaSet["VSwitchId"].asString();
|
||||||
if(!allDBInstancesNodeReplicaSetsReplicaSet["NetworkType"].isNull())
|
if(!valueDBInstancesDBInstanceReplicaSetsReplicaSet["NetworkType"].isNull())
|
||||||
replicaSetsObject.networkType = allDBInstancesNodeReplicaSetsReplicaSet["NetworkType"].asString();
|
replicaSetsObject.networkType = valueDBInstancesDBInstanceReplicaSetsReplicaSet["NetworkType"].asString();
|
||||||
dBInstancesObject.replicaSets.push_back(replicaSetsObject);
|
dBInstancesObject.replicaSets.push_back(replicaSetsObject);
|
||||||
}
|
}
|
||||||
auto allTagsNode = allDBInstancesNode["Tags"]["Tag"];
|
auto allTagsNode = valueDBInstancesDBInstance["Tags"]["Tag"];
|
||||||
for (auto allDBInstancesNodeTagsTag : allTagsNode)
|
for (auto valueDBInstancesDBInstanceTagsTag : allTagsNode)
|
||||||
{
|
{
|
||||||
DBInstance::Tag tagsObject;
|
DBInstance::Tag tagsObject;
|
||||||
if(!allDBInstancesNodeTagsTag["Key"].isNull())
|
if(!valueDBInstancesDBInstanceTagsTag["Key"].isNull())
|
||||||
tagsObject.key = allDBInstancesNodeTagsTag["Key"].asString();
|
tagsObject.key = valueDBInstancesDBInstanceTagsTag["Key"].asString();
|
||||||
if(!allDBInstancesNodeTagsTag["Value"].isNull())
|
if(!valueDBInstancesDBInstanceTagsTag["Value"].isNull())
|
||||||
tagsObject.value = allDBInstancesNodeTagsTag["Value"].asString();
|
tagsObject.value = valueDBInstancesDBInstanceTagsTag["Value"].asString();
|
||||||
dBInstancesObject.tags.push_back(tagsObject);
|
dBInstancesObject.tags.push_back(tagsObject);
|
||||||
}
|
}
|
||||||
dBInstances_.push_back(dBInstancesObject);
|
dBInstances_.push_back(dBInstancesObject);
|
||||||
|
|||||||
@@ -49,14 +49,14 @@ void DescribeDBInstancePerformanceResult::parse(const std::string &payload)
|
|||||||
performanceKeysObject.unit = valuePerformanceKeysPerformanceKey["Unit"].asString();
|
performanceKeysObject.unit = valuePerformanceKeysPerformanceKey["Unit"].asString();
|
||||||
if(!valuePerformanceKeysPerformanceKey["ValueFormat"].isNull())
|
if(!valuePerformanceKeysPerformanceKey["ValueFormat"].isNull())
|
||||||
performanceKeysObject.valueFormat = valuePerformanceKeysPerformanceKey["ValueFormat"].asString();
|
performanceKeysObject.valueFormat = valuePerformanceKeysPerformanceKey["ValueFormat"].asString();
|
||||||
auto allPerformanceValuesNode = allPerformanceKeysNode["PerformanceValues"]["PerformanceValue"];
|
auto allPerformanceValuesNode = valuePerformanceKeysPerformanceKey["PerformanceValues"]["PerformanceValue"];
|
||||||
for (auto allPerformanceKeysNodePerformanceValuesPerformanceValue : allPerformanceValuesNode)
|
for (auto valuePerformanceKeysPerformanceKeyPerformanceValuesPerformanceValue : allPerformanceValuesNode)
|
||||||
{
|
{
|
||||||
PerformanceKey::PerformanceValue performanceValuesObject;
|
PerformanceKey::PerformanceValue performanceValuesObject;
|
||||||
if(!allPerformanceKeysNodePerformanceValuesPerformanceValue["Value"].isNull())
|
if(!valuePerformanceKeysPerformanceKeyPerformanceValuesPerformanceValue["Value"].isNull())
|
||||||
performanceValuesObject.value = allPerformanceKeysNodePerformanceValuesPerformanceValue["Value"].asString();
|
performanceValuesObject.value = valuePerformanceKeysPerformanceKeyPerformanceValuesPerformanceValue["Value"].asString();
|
||||||
if(!allPerformanceKeysNodePerformanceValuesPerformanceValue["Date"].isNull())
|
if(!valuePerformanceKeysPerformanceKeyPerformanceValuesPerformanceValue["Date"].isNull())
|
||||||
performanceValuesObject.date = allPerformanceKeysNodePerformanceValuesPerformanceValue["Date"].asString();
|
performanceValuesObject.date = valuePerformanceKeysPerformanceKeyPerformanceValuesPerformanceValue["Date"].asString();
|
||||||
performanceKeysObject.performanceValues.push_back(performanceValuesObject);
|
performanceKeysObject.performanceValues.push_back(performanceValuesObject);
|
||||||
}
|
}
|
||||||
performanceKeys_.push_back(performanceKeysObject);
|
performanceKeys_.push_back(performanceKeysObject);
|
||||||
|
|||||||
@@ -85,40 +85,40 @@ void DescribeDBInstancesResult::parse(const std::string &payload)
|
|||||||
dBInstancesObject.destroyTime = valueDBInstancesDBInstance["DestroyTime"].asString();
|
dBInstancesObject.destroyTime = valueDBInstancesDBInstance["DestroyTime"].asString();
|
||||||
if(!valueDBInstancesDBInstance["VpcAuthMode"].isNull())
|
if(!valueDBInstancesDBInstance["VpcAuthMode"].isNull())
|
||||||
dBInstancesObject.vpcAuthMode = valueDBInstancesDBInstance["VpcAuthMode"].asString();
|
dBInstancesObject.vpcAuthMode = valueDBInstancesDBInstance["VpcAuthMode"].asString();
|
||||||
auto allMongosListNode = allDBInstancesNode["MongosList"]["MongosAttribute"];
|
auto allMongosListNode = valueDBInstancesDBInstance["MongosList"]["MongosAttribute"];
|
||||||
for (auto allDBInstancesNodeMongosListMongosAttribute : allMongosListNode)
|
for (auto valueDBInstancesDBInstanceMongosListMongosAttribute : allMongosListNode)
|
||||||
{
|
{
|
||||||
DBInstance::MongosAttribute mongosListObject;
|
DBInstance::MongosAttribute mongosListObject;
|
||||||
if(!allDBInstancesNodeMongosListMongosAttribute["NodeId"].isNull())
|
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeId"].isNull())
|
||||||
mongosListObject.nodeId = allDBInstancesNodeMongosListMongosAttribute["NodeId"].asString();
|
mongosListObject.nodeId = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeId"].asString();
|
||||||
if(!allDBInstancesNodeMongosListMongosAttribute["NodeDescription"].isNull())
|
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeDescription"].isNull())
|
||||||
mongosListObject.nodeDescription = allDBInstancesNodeMongosListMongosAttribute["NodeDescription"].asString();
|
mongosListObject.nodeDescription = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeDescription"].asString();
|
||||||
if(!allDBInstancesNodeMongosListMongosAttribute["NodeClass"].isNull())
|
if(!valueDBInstancesDBInstanceMongosListMongosAttribute["NodeClass"].isNull())
|
||||||
mongosListObject.nodeClass = allDBInstancesNodeMongosListMongosAttribute["NodeClass"].asString();
|
mongosListObject.nodeClass = valueDBInstancesDBInstanceMongosListMongosAttribute["NodeClass"].asString();
|
||||||
dBInstancesObject.mongosList.push_back(mongosListObject);
|
dBInstancesObject.mongosList.push_back(mongosListObject);
|
||||||
}
|
}
|
||||||
auto allShardListNode = allDBInstancesNode["ShardList"]["ShardAttribute"];
|
auto allShardListNode = valueDBInstancesDBInstance["ShardList"]["ShardAttribute"];
|
||||||
for (auto allDBInstancesNodeShardListShardAttribute : allShardListNode)
|
for (auto valueDBInstancesDBInstanceShardListShardAttribute : allShardListNode)
|
||||||
{
|
{
|
||||||
DBInstance::ShardAttribute shardListObject;
|
DBInstance::ShardAttribute shardListObject;
|
||||||
if(!allDBInstancesNodeShardListShardAttribute["NodeId"].isNull())
|
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeId"].isNull())
|
||||||
shardListObject.nodeId = allDBInstancesNodeShardListShardAttribute["NodeId"].asString();
|
shardListObject.nodeId = valueDBInstancesDBInstanceShardListShardAttribute["NodeId"].asString();
|
||||||
if(!allDBInstancesNodeShardListShardAttribute["NodeDescription"].isNull())
|
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeDescription"].isNull())
|
||||||
shardListObject.nodeDescription = allDBInstancesNodeShardListShardAttribute["NodeDescription"].asString();
|
shardListObject.nodeDescription = valueDBInstancesDBInstanceShardListShardAttribute["NodeDescription"].asString();
|
||||||
if(!allDBInstancesNodeShardListShardAttribute["NodeClass"].isNull())
|
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeClass"].isNull())
|
||||||
shardListObject.nodeClass = allDBInstancesNodeShardListShardAttribute["NodeClass"].asString();
|
shardListObject.nodeClass = valueDBInstancesDBInstanceShardListShardAttribute["NodeClass"].asString();
|
||||||
if(!allDBInstancesNodeShardListShardAttribute["NodeStorage"].isNull())
|
if(!valueDBInstancesDBInstanceShardListShardAttribute["NodeStorage"].isNull())
|
||||||
shardListObject.nodeStorage = std::stoi(allDBInstancesNodeShardListShardAttribute["NodeStorage"].asString());
|
shardListObject.nodeStorage = std::stoi(valueDBInstancesDBInstanceShardListShardAttribute["NodeStorage"].asString());
|
||||||
dBInstancesObject.shardList.push_back(shardListObject);
|
dBInstancesObject.shardList.push_back(shardListObject);
|
||||||
}
|
}
|
||||||
auto allTagsNode = allDBInstancesNode["Tags"]["Tag"];
|
auto allTagsNode = valueDBInstancesDBInstance["Tags"]["Tag"];
|
||||||
for (auto allDBInstancesNodeTagsTag : allTagsNode)
|
for (auto valueDBInstancesDBInstanceTagsTag : allTagsNode)
|
||||||
{
|
{
|
||||||
DBInstance::Tag tagsObject;
|
DBInstance::Tag tagsObject;
|
||||||
if(!allDBInstancesNodeTagsTag["Key"].isNull())
|
if(!valueDBInstancesDBInstanceTagsTag["Key"].isNull())
|
||||||
tagsObject.key = allDBInstancesNodeTagsTag["Key"].asString();
|
tagsObject.key = valueDBInstancesDBInstanceTagsTag["Key"].asString();
|
||||||
if(!allDBInstancesNodeTagsTag["Value"].isNull())
|
if(!valueDBInstancesDBInstanceTagsTag["Value"].isNull())
|
||||||
tagsObject.value = allDBInstancesNodeTagsTag["Value"].asString();
|
tagsObject.value = valueDBInstancesDBInstanceTagsTag["Value"].asString();
|
||||||
dBInstancesObject.tags.push_back(tagsObject);
|
dBInstancesObject.tags.push_back(tagsObject);
|
||||||
}
|
}
|
||||||
dBInstances_.push_back(dBInstancesObject);
|
dBInstances_.push_back(dBInstancesObject);
|
||||||
|
|||||||
@@ -82,6 +82,17 @@ void DescribeDedicatedClusterInstanceListRequest::setSecurityToken(const std::st
|
|||||||
setParameter("SecurityToken", securityToken);
|
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
|
std::string DescribeDedicatedClusterInstanceListRequest::getEngine()const
|
||||||
{
|
{
|
||||||
return engine_;
|
return engine_;
|
||||||
@@ -104,15 +115,15 @@ void DescribeDedicatedClusterInstanceListRequest::setPageSize(int pageSize)
|
|||||||
setParameter("PageSize", std::to_string(pageSize));
|
setParameter("PageSize", std::to_string(pageSize));
|
||||||
}
|
}
|
||||||
|
|
||||||
int DescribeDedicatedClusterInstanceListRequest::getInstanceStatus()const
|
std::string DescribeDedicatedClusterInstanceListRequest::getInstanceStatus()const
|
||||||
{
|
{
|
||||||
return instanceStatus_;
|
return instanceStatus_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DescribeDedicatedClusterInstanceListRequest::setInstanceStatus(int instanceStatus)
|
void DescribeDedicatedClusterInstanceListRequest::setInstanceStatus(const std::string& instanceStatus)
|
||||||
{
|
{
|
||||||
instanceStatus_ = instanceStatus;
|
instanceStatus_ = instanceStatus;
|
||||||
setParameter("InstanceStatus", std::to_string(instanceStatus));
|
setParameter("InstanceStatus", instanceStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string DescribeDedicatedClusterInstanceListRequest::getDedicatedHostName()const
|
std::string DescribeDedicatedClusterInstanceListRequest::getDedicatedHostName()const
|
||||||
@@ -192,3 +203,25 @@ void DescribeDedicatedClusterInstanceListRequest::setInstanceId(const std::strin
|
|||||||
setParameter("InstanceId", instanceId);
|
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())
|
if(!valueInstancesdbInstance["EngineVersion"].isNull())
|
||||||
instancesObject.engineVersion = valueInstancesdbInstance["EngineVersion"].asString();
|
instancesObject.engineVersion = valueInstancesdbInstance["EngineVersion"].asString();
|
||||||
if(!valueInstancesdbInstance["CharacterType"].isNull())
|
if(!valueInstancesdbInstance["CharacterType"].isNull())
|
||||||
instancesObject.characterType = std::stoi(valueInstancesdbInstance["CharacterType"].asString());
|
instancesObject.characterType = valueInstancesdbInstance["CharacterType"].asString();
|
||||||
if(!valueInstancesdbInstance["MaintainStartTime"].isNull())
|
if(!valueInstancesdbInstance["MaintainStartTime"].isNull())
|
||||||
instancesObject.maintainStartTime = valueInstancesdbInstance["MaintainStartTime"].asString();
|
instancesObject.maintainStartTime = valueInstancesdbInstance["MaintainStartTime"].asString();
|
||||||
if(!valueInstancesdbInstance["MaintainEndTime"].isNull())
|
if(!valueInstancesdbInstance["MaintainEndTime"].isNull())
|
||||||
@@ -83,26 +83,26 @@ void DescribeDedicatedClusterInstanceListResult::parse(const std::string &payloa
|
|||||||
instancesObject.connectionDomain = valueInstancesdbInstance["ConnectionDomain"].asString();
|
instancesObject.connectionDomain = valueInstancesdbInstance["ConnectionDomain"].asString();
|
||||||
if(!valueInstancesdbInstance["CreateTime"].isNull())
|
if(!valueInstancesdbInstance["CreateTime"].isNull())
|
||||||
instancesObject.createTime = valueInstancesdbInstance["CreateTime"].asString();
|
instancesObject.createTime = valueInstancesdbInstance["CreateTime"].asString();
|
||||||
auto allInstanceNodeListNode = allInstancesNode["InstanceNodeList"]["InstanceNodes"];
|
auto allInstanceNodeListNode = valueInstancesdbInstance["InstanceNodeList"]["InstanceNodes"];
|
||||||
for (auto allInstancesNodeInstanceNodeListInstanceNodes : allInstanceNodeListNode)
|
for (auto valueInstancesdbInstanceInstanceNodeListInstanceNodes : allInstanceNodeListNode)
|
||||||
{
|
{
|
||||||
DbInstance::InstanceNodes instanceNodeListObject;
|
DbInstance::InstanceNodes instanceNodeListObject;
|
||||||
if(!allInstancesNodeInstanceNodeListInstanceNodes["InsName"].isNull())
|
if(!valueInstancesdbInstanceInstanceNodeListInstanceNodes["InsName"].isNull())
|
||||||
instanceNodeListObject.insName = allInstancesNodeInstanceNodeListInstanceNodes["InsName"].asString();
|
instanceNodeListObject.insName = valueInstancesdbInstanceInstanceNodeListInstanceNodes["InsName"].asString();
|
||||||
if(!allInstancesNodeInstanceNodeListInstanceNodes["Role"].isNull())
|
if(!valueInstancesdbInstanceInstanceNodeListInstanceNodes["Role"].isNull())
|
||||||
instanceNodeListObject.role = allInstancesNodeInstanceNodeListInstanceNodes["Role"].asString();
|
instanceNodeListObject.role = valueInstancesdbInstanceInstanceNodeListInstanceNodes["Role"].asString();
|
||||||
if(!allInstancesNodeInstanceNodeListInstanceNodes["NodeId"].isNull())
|
if(!valueInstancesdbInstanceInstanceNodeListInstanceNodes["NodeId"].isNull())
|
||||||
instanceNodeListObject.nodeId = std::stoi(allInstancesNodeInstanceNodeListInstanceNodes["NodeId"].asString());
|
instanceNodeListObject.nodeId = std::stoi(valueInstancesdbInstanceInstanceNodeListInstanceNodes["NodeId"].asString());
|
||||||
if(!allInstancesNodeInstanceNodeListInstanceNodes["NodeType"].isNull())
|
if(!valueInstancesdbInstanceInstanceNodeListInstanceNodes["NodeType"].isNull())
|
||||||
instanceNodeListObject.nodeType = allInstancesNodeInstanceNodeListInstanceNodes["NodeType"].asString();
|
instanceNodeListObject.nodeType = valueInstancesdbInstanceInstanceNodeListInstanceNodes["NodeType"].asString();
|
||||||
if(!allInstancesNodeInstanceNodeListInstanceNodes["NodeIp"].isNull())
|
if(!valueInstancesdbInstanceInstanceNodeListInstanceNodes["NodeIp"].isNull())
|
||||||
instanceNodeListObject.nodeIp = allInstancesNodeInstanceNodeListInstanceNodes["NodeIp"].asString();
|
instanceNodeListObject.nodeIp = valueInstancesdbInstanceInstanceNodeListInstanceNodes["NodeIp"].asString();
|
||||||
if(!allInstancesNodeInstanceNodeListInstanceNodes["Port"].isNull())
|
if(!valueInstancesdbInstanceInstanceNodeListInstanceNodes["Port"].isNull())
|
||||||
instanceNodeListObject.port = std::stoi(allInstancesNodeInstanceNodeListInstanceNodes["Port"].asString());
|
instanceNodeListObject.port = std::stoi(valueInstancesdbInstanceInstanceNodeListInstanceNodes["Port"].asString());
|
||||||
if(!allInstancesNodeInstanceNodeListInstanceNodes["ZoneId"].isNull())
|
if(!valueInstancesdbInstanceInstanceNodeListInstanceNodes["ZoneId"].isNull())
|
||||||
instanceNodeListObject.zoneId = allInstancesNodeInstanceNodeListInstanceNodes["ZoneId"].asString();
|
instanceNodeListObject.zoneId = valueInstancesdbInstanceInstanceNodeListInstanceNodes["ZoneId"].asString();
|
||||||
if(!allInstancesNodeInstanceNodeListInstanceNodes["DedicatedHostName"].isNull())
|
if(!valueInstancesdbInstanceInstanceNodeListInstanceNodes["DedicatedHostName"].isNull())
|
||||||
instanceNodeListObject.dedicatedHostName = allInstancesNodeInstanceNodeListInstanceNodes["DedicatedHostName"].asString();
|
instanceNodeListObject.dedicatedHostName = valueInstancesdbInstanceInstanceNodeListInstanceNodes["DedicatedHostName"].asString();
|
||||||
instancesObject.instanceNodeList.push_back(instanceNodeListObject);
|
instancesObject.instanceNodeList.push_back(instanceNodeListObject);
|
||||||
}
|
}
|
||||||
instances_.push_back(instancesObject);
|
instances_.push_back(instancesObject);
|
||||||
|
|||||||
@@ -71,14 +71,14 @@ void DescribeIndexRecommendationResult::parse(const std::string &payload)
|
|||||||
analyzationsObject.lastExecutionTime = valueAnalyzationsAnalyzation["LastExecutionTime"].asString();
|
analyzationsObject.lastExecutionTime = valueAnalyzationsAnalyzation["LastExecutionTime"].asString();
|
||||||
if(!valueAnalyzationsAnalyzation["ExecutionPlan"].isNull())
|
if(!valueAnalyzationsAnalyzation["ExecutionPlan"].isNull())
|
||||||
analyzationsObject.executionPlan = valueAnalyzationsAnalyzation["ExecutionPlan"].asString();
|
analyzationsObject.executionPlan = valueAnalyzationsAnalyzation["ExecutionPlan"].asString();
|
||||||
auto allIndexRecommendationsNode = allAnalyzationsNode["IndexRecommendations"]["Recommendation"];
|
auto allIndexRecommendationsNode = valueAnalyzationsAnalyzation["IndexRecommendations"]["Recommendation"];
|
||||||
for (auto allAnalyzationsNodeIndexRecommendationsRecommendation : allIndexRecommendationsNode)
|
for (auto valueAnalyzationsAnalyzationIndexRecommendationsRecommendation : allIndexRecommendationsNode)
|
||||||
{
|
{
|
||||||
Analyzation::Recommendation indexRecommendationsObject;
|
Analyzation::Recommendation indexRecommendationsObject;
|
||||||
if(!allAnalyzationsNodeIndexRecommendationsRecommendation["RecmdType"].isNull())
|
if(!valueAnalyzationsAnalyzationIndexRecommendationsRecommendation["RecmdType"].isNull())
|
||||||
indexRecommendationsObject.recmdType = allAnalyzationsNodeIndexRecommendationsRecommendation["RecmdType"].asString();
|
indexRecommendationsObject.recmdType = valueAnalyzationsAnalyzationIndexRecommendationsRecommendation["RecmdType"].asString();
|
||||||
if(!allAnalyzationsNodeIndexRecommendationsRecommendation["Content"].isNull())
|
if(!valueAnalyzationsAnalyzationIndexRecommendationsRecommendation["Content"].isNull())
|
||||||
indexRecommendationsObject.content = allAnalyzationsNodeIndexRecommendationsRecommendation["Content"].asString();
|
indexRecommendationsObject.content = valueAnalyzationsAnalyzationIndexRecommendationsRecommendation["Content"].asString();
|
||||||
analyzationsObject.indexRecommendations.push_back(indexRecommendationsObject);
|
analyzationsObject.indexRecommendations.push_back(indexRecommendationsObject);
|
||||||
}
|
}
|
||||||
auto allIndexCombines = value["IndexCombines"]["IndexCombine"];
|
auto allIndexCombines = value["IndexCombines"]["IndexCombine"];
|
||||||
|
|||||||
@@ -60,6 +60,17 @@ void DescribeRegionsRequest::setSecurityToken(const std::string& securityToken)
|
|||||||
setParameter("SecurityToken", 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
|
std::string DescribeRegionsRequest::getResourceOwnerAccount()const
|
||||||
{
|
{
|
||||||
return resourceOwnerAccount_;
|
return resourceOwnerAccount_;
|
||||||
@@ -93,3 +104,14 @@ void DescribeRegionsRequest::setOwnerId(long ownerId)
|
|||||||
setParameter("OwnerId", std::to_string(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();
|
regionsObject.regionId = valueRegionsDdsRegion["RegionId"].asString();
|
||||||
if(!valueRegionsDdsRegion["ZoneIds"].isNull())
|
if(!valueRegionsDdsRegion["ZoneIds"].isNull())
|
||||||
regionsObject.zoneIds = valueRegionsDdsRegion["ZoneIds"].asString();
|
regionsObject.zoneIds = valueRegionsDdsRegion["ZoneIds"].asString();
|
||||||
auto allZonesNode = allRegionsNode["Zones"]["Zone"];
|
auto allZonesNode = valueRegionsDdsRegion["Zones"]["Zone"];
|
||||||
for (auto allRegionsNodeZonesZone : allZonesNode)
|
for (auto valueRegionsDdsRegionZonesZone : allZonesNode)
|
||||||
{
|
{
|
||||||
DdsRegion::Zone zonesObject;
|
DdsRegion::Zone zonesObject;
|
||||||
if(!allRegionsNodeZonesZone["ZoneId"].isNull())
|
if(!valueRegionsDdsRegionZonesZone["ZoneId"].isNull())
|
||||||
zonesObject.zoneId = allRegionsNodeZonesZone["ZoneId"].asString();
|
zonesObject.zoneId = valueRegionsDdsRegionZonesZone["ZoneId"].asString();
|
||||||
if(!allRegionsNodeZonesZone["VpcEnabled"].isNull())
|
if(!valueRegionsDdsRegionZonesZone["VpcEnabled"].isNull())
|
||||||
zonesObject.vpcEnabled = allRegionsNodeZonesZone["VpcEnabled"].asString() == "true";
|
zonesObject.vpcEnabled = valueRegionsDdsRegionZonesZone["VpcEnabled"].asString() == "true";
|
||||||
if(!allRegionsNodeZonesZone["ZoneName"].isNull())
|
if(!valueRegionsDdsRegionZonesZone["ZoneName"].isNull())
|
||||||
zonesObject.zoneName = allRegionsNodeZonesZone["ZoneName"].asString();
|
zonesObject.zoneName = valueRegionsDdsRegionZonesZone["ZoneName"].asString();
|
||||||
regionsObject.zones.push_back(zonesObject);
|
regionsObject.zones.push_back(zonesObject);
|
||||||
}
|
}
|
||||||
regions_.push_back(regionsObject);
|
regions_.push_back(regionsObject);
|
||||||
|
|||||||
@@ -34,10 +34,22 @@ namespace AlibabaCloud
|
|||||||
public:
|
public:
|
||||||
struct Data
|
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;
|
std::vector<std::string> faceProbabilityList;
|
||||||
int landmarkCount;
|
int landmarkCount;
|
||||||
std::vector<std::string> faceRectangles;
|
std::vector<std::string> faceRectangles;
|
||||||
std::vector<std::string> landmarks;
|
std::vector<std::string> landmarks;
|
||||||
|
Qualities qualities;
|
||||||
int faceCount;
|
int faceCount;
|
||||||
std::vector<std::string> poseList;
|
std::vector<std::string> poseList;
|
||||||
std::vector<std::string> pupils;
|
std::vector<std::string> pupils;
|
||||||
|
|||||||
@@ -35,10 +35,13 @@ namespace AlibabaCloud
|
|||||||
GenerateHumanAnimeStyleRequest();
|
GenerateHumanAnimeStyleRequest();
|
||||||
~GenerateHumanAnimeStyleRequest();
|
~GenerateHumanAnimeStyleRequest();
|
||||||
|
|
||||||
|
std::string getAlgoType()const;
|
||||||
|
void setAlgoType(const std::string& algoType);
|
||||||
std::string getImageURL()const;
|
std::string getImageURL()const;
|
||||||
void setImageURL(const std::string& imageURL);
|
void setImageURL(const std::string& imageURL);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
std::string algoType_;
|
||||||
std::string imageURL_;
|
std::string imageURL_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -34,13 +34,27 @@ namespace AlibabaCloud
|
|||||||
public:
|
public:
|
||||||
struct Data
|
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;
|
std::vector<std::string> faceRectangles;
|
||||||
|
Qualities qualities;
|
||||||
int denseFeatureLength;
|
int denseFeatureLength;
|
||||||
std::vector<std::string> poseList;
|
std::vector<std::string> poseList;
|
||||||
std::vector<std::string> pupils;
|
|
||||||
std::vector<std::string> genderList;
|
std::vector<std::string> genderList;
|
||||||
|
std::vector<std::string> pupils;
|
||||||
std::vector<std::string> denseFeatures;
|
std::vector<std::string> denseFeatures;
|
||||||
std::vector<std::string> faceProbabilityList;
|
std::vector<std::string> faceProbabilityList;
|
||||||
|
std::vector<std::string> hatList;
|
||||||
int landmarkCount;
|
int landmarkCount;
|
||||||
std::vector<std::string> ageList;
|
std::vector<std::string> ageList;
|
||||||
std::vector<std::string> glasses;
|
std::vector<std::string> glasses;
|
||||||
|
|||||||
@@ -40,22 +40,47 @@ void DetectFaceResult::parse(const std::string &payload)
|
|||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto dataNode = value["Data"];
|
auto dataNode = value["Data"];
|
||||||
if(!dataNode["FaceCount"].isNull())
|
|
||||||
data_.faceCount = std::stoi(dataNode["FaceCount"].asString());
|
|
||||||
if(!dataNode["LandmarkCount"].isNull())
|
if(!dataNode["LandmarkCount"].isNull())
|
||||||
data_.landmarkCount = std::stoi(dataNode["LandmarkCount"].asString());
|
data_.landmarkCount = std::stoi(dataNode["LandmarkCount"].asString());
|
||||||
auto allFaceRectangles = dataNode["FaceRectangles"]["FaceRectangle"];
|
if(!dataNode["FaceCount"].isNull())
|
||||||
for (auto value : allFaceRectangles)
|
data_.faceCount = std::stoi(dataNode["FaceCount"].asString());
|
||||||
data_.faceRectangles.push_back(value.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"];
|
auto allFaceProbabilityList = dataNode["FaceProbabilityList"]["FaceProbability"];
|
||||||
for (auto value : allFaceProbabilityList)
|
for (auto value : allFaceProbabilityList)
|
||||||
data_.faceProbabilityList.push_back(value.asString());
|
data_.faceProbabilityList.push_back(value.asString());
|
||||||
auto allPoseList = dataNode["PoseList"]["Pose"];
|
auto allFaceRectangles = dataNode["FaceRectangles"]["FaceRectangle"];
|
||||||
for (auto value : allPoseList)
|
for (auto value : allFaceRectangles)
|
||||||
data_.poseList.push_back(value.asString());
|
data_.faceRectangles.push_back(value.asString());
|
||||||
auto allLandmarks = dataNode["Landmarks"]["Landmark"];
|
auto allLandmarks = dataNode["Landmarks"]["Landmark"];
|
||||||
for (auto value : allLandmarks)
|
for (auto value : allLandmarks)
|
||||||
data_.landmarks.push_back(value.asString());
|
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"];
|
auto allPupils = dataNode["Pupils"]["Pupil"];
|
||||||
for (auto value : allPupils)
|
for (auto value : allPupils)
|
||||||
data_.pupils.push_back(value.asString());
|
data_.pupils.push_back(value.asString());
|
||||||
|
|||||||
@@ -40,10 +40,10 @@ void DetectPedestrianResult::parse(const std::string &payload)
|
|||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto dataNode = value["Data"];
|
auto dataNode = value["Data"];
|
||||||
if(!dataNode["Width"].isNull())
|
|
||||||
data_.width = std::stoi(dataNode["Width"].asString());
|
|
||||||
if(!dataNode["Height"].isNull())
|
if(!dataNode["Height"].isNull())
|
||||||
data_.height = std::stoi(dataNode["Height"].asString());
|
data_.height = std::stoi(dataNode["Height"].asString());
|
||||||
|
if(!dataNode["Width"].isNull())
|
||||||
|
data_.width = std::stoi(dataNode["Width"].asString());
|
||||||
auto allElementsNode = dataNode["Elements"]["Element"];
|
auto allElementsNode = dataNode["Elements"]["Element"];
|
||||||
for (auto dataNodeElementsElement : allElementsNode)
|
for (auto dataNodeElementsElement : allElementsNode)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -27,6 +27,17 @@ GenerateHumanAnimeStyleRequest::GenerateHumanAnimeStyleRequest() :
|
|||||||
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
|
std::string GenerateHumanAnimeStyleRequest::getImageURL()const
|
||||||
{
|
{
|
||||||
return imageURL_;
|
return imageURL_;
|
||||||
@@ -35,6 +46,6 @@ std::string GenerateHumanAnimeStyleRequest::getImageURL()const
|
|||||||
void GenerateHumanAnimeStyleRequest::setImageURL(const std::string& imageURL)
|
void GenerateHumanAnimeStyleRequest::setImageURL(const std::string& imageURL)
|
||||||
{
|
{
|
||||||
imageURL_ = imageURL;
|
imageURL_ = imageURL;
|
||||||
setBodyParameter("ImageURL", imageURL);
|
setParameter("ImageURL", imageURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,42 +40,73 @@ void RecognizeFaceResult::parse(const std::string &payload)
|
|||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto dataNode = value["Data"];
|
auto dataNode = value["Data"];
|
||||||
if(!dataNode["FaceCount"].isNull())
|
|
||||||
data_.faceCount = std::stoi(dataNode["FaceCount"].asString());
|
|
||||||
if(!dataNode["LandmarkCount"].isNull())
|
if(!dataNode["LandmarkCount"].isNull())
|
||||||
data_.landmarkCount = std::stoi(dataNode["LandmarkCount"].asString());
|
data_.landmarkCount = std::stoi(dataNode["LandmarkCount"].asString());
|
||||||
if(!dataNode["DenseFeatureLength"].isNull())
|
if(!dataNode["DenseFeatureLength"].isNull())
|
||||||
data_.denseFeatureLength = std::stoi(dataNode["DenseFeatureLength"].asString());
|
data_.denseFeatureLength = std::stoi(dataNode["DenseFeatureLength"].asString());
|
||||||
auto allFaceRectangles = dataNode["FaceRectangles"]["FaceRectangle"];
|
if(!dataNode["FaceCount"].isNull())
|
||||||
for (auto value : allFaceRectangles)
|
data_.faceCount = std::stoi(dataNode["FaceCount"].asString());
|
||||||
data_.faceRectangles.push_back(value.asString());
|
auto qualitiesNode = dataNode["Qualities"];
|
||||||
auto allFaceProbabilityList = dataNode["FaceProbabilityList"]["FaceProbability"];
|
auto allNoiseList = qualitiesNode["NoiseList"]["Noise"];
|
||||||
for (auto value : allFaceProbabilityList)
|
for (auto value : allNoiseList)
|
||||||
data_.faceProbabilityList.push_back(value.asString());
|
data_.qualities.noiseList.push_back(value.asString());
|
||||||
auto allPoseList = dataNode["PoseList"]["Pose"];
|
auto allScoreList = qualitiesNode["ScoreList"]["Score"];
|
||||||
for (auto value : allPoseList)
|
for (auto value : allScoreList)
|
||||||
data_.poseList.push_back(value.asString());
|
data_.qualities.scoreList.push_back(value.asString());
|
||||||
auto allLandmarks = dataNode["Landmarks"]["Landmark"];
|
auto allBlurList = qualitiesNode["BlurList"]["Blur"];
|
||||||
for (auto value : allLandmarks)
|
for (auto value : allBlurList)
|
||||||
data_.landmarks.push_back(value.asString());
|
data_.qualities.blurList.push_back(value.asString());
|
||||||
auto allPupils = dataNode["Pupils"]["Pupil"];
|
auto allMaskList = qualitiesNode["MaskList"]["Mask"];
|
||||||
for (auto value : allPupils)
|
for (auto value : allMaskList)
|
||||||
data_.pupils.push_back(value.asString());
|
data_.qualities.maskList.push_back(value.asString());
|
||||||
auto allGenderList = dataNode["GenderList"]["Gender"];
|
auto allGlassList = qualitiesNode["GlassList"]["Glass"];
|
||||||
for (auto value : allGenderList)
|
for (auto value : allGlassList)
|
||||||
data_.genderList.push_back(value.asString());
|
data_.qualities.glassList.push_back(value.asString());
|
||||||
auto allAgeList = dataNode["AgeList"]["Age"];
|
auto allFnfList = qualitiesNode["FnfList"]["Fnf"];
|
||||||
for (auto value : allAgeList)
|
for (auto value : allFnfList)
|
||||||
data_.ageList.push_back(value.asString());
|
data_.qualities.fnfList.push_back(value.asString());
|
||||||
auto allExpressions = dataNode["Expressions"]["Expression"];
|
auto allPoseList1 = qualitiesNode["PoseList"]["Pose"];
|
||||||
for (auto value : allExpressions)
|
for (auto value : allPoseList1)
|
||||||
data_.expressions.push_back(value.asString());
|
data_.qualities.poseList1.push_back(value.asString());
|
||||||
auto allGlasses = dataNode["Glasses"]["Glass"];
|
auto allIlluList = qualitiesNode["IlluList"]["Illu"];
|
||||||
for (auto value : allGlasses)
|
for (auto value : allIlluList)
|
||||||
data_.glasses.push_back(value.asString());
|
data_.qualities.illuList.push_back(value.asString());
|
||||||
auto allDenseFeatures = dataNode["DenseFeatures"]["DenseFeature"];
|
auto allDenseFeatures = dataNode["DenseFeatures"]["DenseFeature"];
|
||||||
for (auto value : allDenseFeatures)
|
for (auto value : allDenseFeatures)
|
||||||
data_.denseFeatures.push_back(value.asString());
|
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());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -111,6 +111,8 @@ set(green_public_header_model
|
|||||||
include/alibabacloud/green/model/DescribeKeywordLibResult.h
|
include/alibabacloud/green/model/DescribeKeywordLibResult.h
|
||||||
include/alibabacloud/green/model/DescribeNotificationSettingRequest.h
|
include/alibabacloud/green/model/DescribeNotificationSettingRequest.h
|
||||||
include/alibabacloud/green/model/DescribeNotificationSettingResult.h
|
include/alibabacloud/green/model/DescribeNotificationSettingResult.h
|
||||||
|
include/alibabacloud/green/model/DescribeOpenApiRcpStatsRequest.h
|
||||||
|
include/alibabacloud/green/model/DescribeOpenApiRcpStatsResult.h
|
||||||
include/alibabacloud/green/model/DescribeOpenApiUsageRequest.h
|
include/alibabacloud/green/model/DescribeOpenApiUsageRequest.h
|
||||||
include/alibabacloud/green/model/DescribeOpenApiUsageResult.h
|
include/alibabacloud/green/model/DescribeOpenApiUsageResult.h
|
||||||
include/alibabacloud/green/model/DescribeOssCallbackSettingRequest.h
|
include/alibabacloud/green/model/DescribeOssCallbackSettingRequest.h
|
||||||
@@ -159,6 +161,8 @@ set(green_public_header_model
|
|||||||
include/alibabacloud/green/model/DetectFaceResult.h
|
include/alibabacloud/green/model/DetectFaceResult.h
|
||||||
include/alibabacloud/green/model/ExportKeywordsRequest.h
|
include/alibabacloud/green/model/ExportKeywordsRequest.h
|
||||||
include/alibabacloud/green/model/ExportKeywordsResult.h
|
include/alibabacloud/green/model/ExportKeywordsResult.h
|
||||||
|
include/alibabacloud/green/model/ExportOpenApiRcpStatsRequest.h
|
||||||
|
include/alibabacloud/green/model/ExportOpenApiRcpStatsResult.h
|
||||||
include/alibabacloud/green/model/ExportOssResultRequest.h
|
include/alibabacloud/green/model/ExportOssResultRequest.h
|
||||||
include/alibabacloud/green/model/ExportOssResultResult.h
|
include/alibabacloud/green/model/ExportOssResultResult.h
|
||||||
include/alibabacloud/green/model/FileAsyncScanRequest.h
|
include/alibabacloud/green/model/FileAsyncScanRequest.h
|
||||||
@@ -199,6 +203,12 @@ set(green_public_header_model
|
|||||||
include/alibabacloud/green/model/ListSimilarityImagesResult.h
|
include/alibabacloud/green/model/ListSimilarityImagesResult.h
|
||||||
include/alibabacloud/green/model/ListSimilarityLibrariesRequest.h
|
include/alibabacloud/green/model/ListSimilarityLibrariesRequest.h
|
||||||
include/alibabacloud/green/model/ListSimilarityLibrariesResult.h
|
include/alibabacloud/green/model/ListSimilarityLibrariesResult.h
|
||||||
|
include/alibabacloud/green/model/LiveStreamAsyncScanRequest.h
|
||||||
|
include/alibabacloud/green/model/LiveStreamAsyncScanResult.h
|
||||||
|
include/alibabacloud/green/model/LiveStreamAsyncScanResultsRequest.h
|
||||||
|
include/alibabacloud/green/model/LiveStreamAsyncScanResultsResult.h
|
||||||
|
include/alibabacloud/green/model/LiveStreamCancelScanRequest.h
|
||||||
|
include/alibabacloud/green/model/LiveStreamCancelScanResult.h
|
||||||
include/alibabacloud/green/model/MarkAuditContentRequest.h
|
include/alibabacloud/green/model/MarkAuditContentRequest.h
|
||||||
include/alibabacloud/green/model/MarkAuditContentResult.h
|
include/alibabacloud/green/model/MarkAuditContentResult.h
|
||||||
include/alibabacloud/green/model/MarkAuditContentItemRequest.h
|
include/alibabacloud/green/model/MarkAuditContentItemRequest.h
|
||||||
@@ -291,6 +301,10 @@ set(green_public_header_model
|
|||||||
include/alibabacloud/green/model/VideoFeedbackResult.h
|
include/alibabacloud/green/model/VideoFeedbackResult.h
|
||||||
include/alibabacloud/green/model/VideoSyncScanRequest.h
|
include/alibabacloud/green/model/VideoSyncScanRequest.h
|
||||||
include/alibabacloud/green/model/VideoSyncScanResult.h
|
include/alibabacloud/green/model/VideoSyncScanResult.h
|
||||||
|
include/alibabacloud/green/model/VodAsyncScanRequest.h
|
||||||
|
include/alibabacloud/green/model/VodAsyncScanResult.h
|
||||||
|
include/alibabacloud/green/model/VodAsyncScanResultsRequest.h
|
||||||
|
include/alibabacloud/green/model/VodAsyncScanResultsResult.h
|
||||||
include/alibabacloud/green/model/VoiceAsyncScanRequest.h
|
include/alibabacloud/green/model/VoiceAsyncScanRequest.h
|
||||||
include/alibabacloud/green/model/VoiceAsyncScanResult.h
|
include/alibabacloud/green/model/VoiceAsyncScanResult.h
|
||||||
include/alibabacloud/green/model/VoiceAsyncScanResultsRequest.h
|
include/alibabacloud/green/model/VoiceAsyncScanResultsRequest.h
|
||||||
@@ -308,7 +322,13 @@ set(green_public_header_model
|
|||||||
include/alibabacloud/green/model/VoiceIdentityUnregisterRequest.h
|
include/alibabacloud/green/model/VoiceIdentityUnregisterRequest.h
|
||||||
include/alibabacloud/green/model/VoiceIdentityUnregisterResult.h
|
include/alibabacloud/green/model/VoiceIdentityUnregisterResult.h
|
||||||
include/alibabacloud/green/model/VoiceSyncScanRequest.h
|
include/alibabacloud/green/model/VoiceSyncScanRequest.h
|
||||||
include/alibabacloud/green/model/VoiceSyncScanResult.h )
|
include/alibabacloud/green/model/VoiceSyncScanResult.h
|
||||||
|
include/alibabacloud/green/model/WebpageAsyncScanRequest.h
|
||||||
|
include/alibabacloud/green/model/WebpageAsyncScanResult.h
|
||||||
|
include/alibabacloud/green/model/WebpageAsyncScanResultsRequest.h
|
||||||
|
include/alibabacloud/green/model/WebpageAsyncScanResultsResult.h
|
||||||
|
include/alibabacloud/green/model/WebpageSyncScanRequest.h
|
||||||
|
include/alibabacloud/green/model/WebpageSyncScanResult.h )
|
||||||
|
|
||||||
set(green_src
|
set(green_src
|
||||||
src/GreenClient.cc
|
src/GreenClient.cc
|
||||||
@@ -402,6 +422,8 @@ set(green_src
|
|||||||
src/model/DescribeKeywordLibResult.cc
|
src/model/DescribeKeywordLibResult.cc
|
||||||
src/model/DescribeNotificationSettingRequest.cc
|
src/model/DescribeNotificationSettingRequest.cc
|
||||||
src/model/DescribeNotificationSettingResult.cc
|
src/model/DescribeNotificationSettingResult.cc
|
||||||
|
src/model/DescribeOpenApiRcpStatsRequest.cc
|
||||||
|
src/model/DescribeOpenApiRcpStatsResult.cc
|
||||||
src/model/DescribeOpenApiUsageRequest.cc
|
src/model/DescribeOpenApiUsageRequest.cc
|
||||||
src/model/DescribeOpenApiUsageResult.cc
|
src/model/DescribeOpenApiUsageResult.cc
|
||||||
src/model/DescribeOssCallbackSettingRequest.cc
|
src/model/DescribeOssCallbackSettingRequest.cc
|
||||||
@@ -450,6 +472,8 @@ set(green_src
|
|||||||
src/model/DetectFaceResult.cc
|
src/model/DetectFaceResult.cc
|
||||||
src/model/ExportKeywordsRequest.cc
|
src/model/ExportKeywordsRequest.cc
|
||||||
src/model/ExportKeywordsResult.cc
|
src/model/ExportKeywordsResult.cc
|
||||||
|
src/model/ExportOpenApiRcpStatsRequest.cc
|
||||||
|
src/model/ExportOpenApiRcpStatsResult.cc
|
||||||
src/model/ExportOssResultRequest.cc
|
src/model/ExportOssResultRequest.cc
|
||||||
src/model/ExportOssResultResult.cc
|
src/model/ExportOssResultResult.cc
|
||||||
src/model/FileAsyncScanRequest.cc
|
src/model/FileAsyncScanRequest.cc
|
||||||
@@ -490,6 +514,12 @@ set(green_src
|
|||||||
src/model/ListSimilarityImagesResult.cc
|
src/model/ListSimilarityImagesResult.cc
|
||||||
src/model/ListSimilarityLibrariesRequest.cc
|
src/model/ListSimilarityLibrariesRequest.cc
|
||||||
src/model/ListSimilarityLibrariesResult.cc
|
src/model/ListSimilarityLibrariesResult.cc
|
||||||
|
src/model/LiveStreamAsyncScanRequest.cc
|
||||||
|
src/model/LiveStreamAsyncScanResult.cc
|
||||||
|
src/model/LiveStreamAsyncScanResultsRequest.cc
|
||||||
|
src/model/LiveStreamAsyncScanResultsResult.cc
|
||||||
|
src/model/LiveStreamCancelScanRequest.cc
|
||||||
|
src/model/LiveStreamCancelScanResult.cc
|
||||||
src/model/MarkAuditContentRequest.cc
|
src/model/MarkAuditContentRequest.cc
|
||||||
src/model/MarkAuditContentResult.cc
|
src/model/MarkAuditContentResult.cc
|
||||||
src/model/MarkAuditContentItemRequest.cc
|
src/model/MarkAuditContentItemRequest.cc
|
||||||
@@ -582,6 +612,10 @@ set(green_src
|
|||||||
src/model/VideoFeedbackResult.cc
|
src/model/VideoFeedbackResult.cc
|
||||||
src/model/VideoSyncScanRequest.cc
|
src/model/VideoSyncScanRequest.cc
|
||||||
src/model/VideoSyncScanResult.cc
|
src/model/VideoSyncScanResult.cc
|
||||||
|
src/model/VodAsyncScanRequest.cc
|
||||||
|
src/model/VodAsyncScanResult.cc
|
||||||
|
src/model/VodAsyncScanResultsRequest.cc
|
||||||
|
src/model/VodAsyncScanResultsResult.cc
|
||||||
src/model/VoiceAsyncScanRequest.cc
|
src/model/VoiceAsyncScanRequest.cc
|
||||||
src/model/VoiceAsyncScanResult.cc
|
src/model/VoiceAsyncScanResult.cc
|
||||||
src/model/VoiceAsyncScanResultsRequest.cc
|
src/model/VoiceAsyncScanResultsRequest.cc
|
||||||
@@ -599,7 +633,13 @@ set(green_src
|
|||||||
src/model/VoiceIdentityUnregisterRequest.cc
|
src/model/VoiceIdentityUnregisterRequest.cc
|
||||||
src/model/VoiceIdentityUnregisterResult.cc
|
src/model/VoiceIdentityUnregisterResult.cc
|
||||||
src/model/VoiceSyncScanRequest.cc
|
src/model/VoiceSyncScanRequest.cc
|
||||||
src/model/VoiceSyncScanResult.cc )
|
src/model/VoiceSyncScanResult.cc
|
||||||
|
src/model/WebpageAsyncScanRequest.cc
|
||||||
|
src/model/WebpageAsyncScanResult.cc
|
||||||
|
src/model/WebpageAsyncScanResultsRequest.cc
|
||||||
|
src/model/WebpageAsyncScanResultsResult.cc
|
||||||
|
src/model/WebpageSyncScanRequest.cc
|
||||||
|
src/model/WebpageSyncScanResult.cc )
|
||||||
|
|
||||||
add_library(green ${LIB_TYPE}
|
add_library(green ${LIB_TYPE}
|
||||||
${green_public_header}
|
${green_public_header}
|
||||||
|
|||||||
@@ -112,6 +112,8 @@
|
|||||||
#include "model/DescribeKeywordLibResult.h"
|
#include "model/DescribeKeywordLibResult.h"
|
||||||
#include "model/DescribeNotificationSettingRequest.h"
|
#include "model/DescribeNotificationSettingRequest.h"
|
||||||
#include "model/DescribeNotificationSettingResult.h"
|
#include "model/DescribeNotificationSettingResult.h"
|
||||||
|
#include "model/DescribeOpenApiRcpStatsRequest.h"
|
||||||
|
#include "model/DescribeOpenApiRcpStatsResult.h"
|
||||||
#include "model/DescribeOpenApiUsageRequest.h"
|
#include "model/DescribeOpenApiUsageRequest.h"
|
||||||
#include "model/DescribeOpenApiUsageResult.h"
|
#include "model/DescribeOpenApiUsageResult.h"
|
||||||
#include "model/DescribeOssCallbackSettingRequest.h"
|
#include "model/DescribeOssCallbackSettingRequest.h"
|
||||||
@@ -160,6 +162,8 @@
|
|||||||
#include "model/DetectFaceResult.h"
|
#include "model/DetectFaceResult.h"
|
||||||
#include "model/ExportKeywordsRequest.h"
|
#include "model/ExportKeywordsRequest.h"
|
||||||
#include "model/ExportKeywordsResult.h"
|
#include "model/ExportKeywordsResult.h"
|
||||||
|
#include "model/ExportOpenApiRcpStatsRequest.h"
|
||||||
|
#include "model/ExportOpenApiRcpStatsResult.h"
|
||||||
#include "model/ExportOssResultRequest.h"
|
#include "model/ExportOssResultRequest.h"
|
||||||
#include "model/ExportOssResultResult.h"
|
#include "model/ExportOssResultResult.h"
|
||||||
#include "model/FileAsyncScanRequest.h"
|
#include "model/FileAsyncScanRequest.h"
|
||||||
@@ -200,6 +204,12 @@
|
|||||||
#include "model/ListSimilarityImagesResult.h"
|
#include "model/ListSimilarityImagesResult.h"
|
||||||
#include "model/ListSimilarityLibrariesRequest.h"
|
#include "model/ListSimilarityLibrariesRequest.h"
|
||||||
#include "model/ListSimilarityLibrariesResult.h"
|
#include "model/ListSimilarityLibrariesResult.h"
|
||||||
|
#include "model/LiveStreamAsyncScanRequest.h"
|
||||||
|
#include "model/LiveStreamAsyncScanResult.h"
|
||||||
|
#include "model/LiveStreamAsyncScanResultsRequest.h"
|
||||||
|
#include "model/LiveStreamAsyncScanResultsResult.h"
|
||||||
|
#include "model/LiveStreamCancelScanRequest.h"
|
||||||
|
#include "model/LiveStreamCancelScanResult.h"
|
||||||
#include "model/MarkAuditContentRequest.h"
|
#include "model/MarkAuditContentRequest.h"
|
||||||
#include "model/MarkAuditContentResult.h"
|
#include "model/MarkAuditContentResult.h"
|
||||||
#include "model/MarkAuditContentItemRequest.h"
|
#include "model/MarkAuditContentItemRequest.h"
|
||||||
@@ -292,6 +302,10 @@
|
|||||||
#include "model/VideoFeedbackResult.h"
|
#include "model/VideoFeedbackResult.h"
|
||||||
#include "model/VideoSyncScanRequest.h"
|
#include "model/VideoSyncScanRequest.h"
|
||||||
#include "model/VideoSyncScanResult.h"
|
#include "model/VideoSyncScanResult.h"
|
||||||
|
#include "model/VodAsyncScanRequest.h"
|
||||||
|
#include "model/VodAsyncScanResult.h"
|
||||||
|
#include "model/VodAsyncScanResultsRequest.h"
|
||||||
|
#include "model/VodAsyncScanResultsResult.h"
|
||||||
#include "model/VoiceAsyncScanRequest.h"
|
#include "model/VoiceAsyncScanRequest.h"
|
||||||
#include "model/VoiceAsyncScanResult.h"
|
#include "model/VoiceAsyncScanResult.h"
|
||||||
#include "model/VoiceAsyncScanResultsRequest.h"
|
#include "model/VoiceAsyncScanResultsRequest.h"
|
||||||
@@ -310,6 +324,12 @@
|
|||||||
#include "model/VoiceIdentityUnregisterResult.h"
|
#include "model/VoiceIdentityUnregisterResult.h"
|
||||||
#include "model/VoiceSyncScanRequest.h"
|
#include "model/VoiceSyncScanRequest.h"
|
||||||
#include "model/VoiceSyncScanResult.h"
|
#include "model/VoiceSyncScanResult.h"
|
||||||
|
#include "model/WebpageAsyncScanRequest.h"
|
||||||
|
#include "model/WebpageAsyncScanResult.h"
|
||||||
|
#include "model/WebpageAsyncScanResultsRequest.h"
|
||||||
|
#include "model/WebpageAsyncScanResultsResult.h"
|
||||||
|
#include "model/WebpageSyncScanRequest.h"
|
||||||
|
#include "model/WebpageSyncScanResult.h"
|
||||||
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
@@ -454,6 +474,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::DescribeNotificationSettingResult> DescribeNotificationSettingOutcome;
|
typedef Outcome<Error, Model::DescribeNotificationSettingResult> DescribeNotificationSettingOutcome;
|
||||||
typedef std::future<DescribeNotificationSettingOutcome> DescribeNotificationSettingOutcomeCallable;
|
typedef std::future<DescribeNotificationSettingOutcome> DescribeNotificationSettingOutcomeCallable;
|
||||||
typedef std::function<void(const GreenClient*, const Model::DescribeNotificationSettingRequest&, const DescribeNotificationSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNotificationSettingAsyncHandler;
|
typedef std::function<void(const GreenClient*, const Model::DescribeNotificationSettingRequest&, const DescribeNotificationSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNotificationSettingAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DescribeOpenApiRcpStatsResult> DescribeOpenApiRcpStatsOutcome;
|
||||||
|
typedef std::future<DescribeOpenApiRcpStatsOutcome> DescribeOpenApiRcpStatsOutcomeCallable;
|
||||||
|
typedef std::function<void(const GreenClient*, const Model::DescribeOpenApiRcpStatsRequest&, const DescribeOpenApiRcpStatsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeOpenApiRcpStatsAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DescribeOpenApiUsageResult> DescribeOpenApiUsageOutcome;
|
typedef Outcome<Error, Model::DescribeOpenApiUsageResult> DescribeOpenApiUsageOutcome;
|
||||||
typedef std::future<DescribeOpenApiUsageOutcome> DescribeOpenApiUsageOutcomeCallable;
|
typedef std::future<DescribeOpenApiUsageOutcome> DescribeOpenApiUsageOutcomeCallable;
|
||||||
typedef std::function<void(const GreenClient*, const Model::DescribeOpenApiUsageRequest&, const DescribeOpenApiUsageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeOpenApiUsageAsyncHandler;
|
typedef std::function<void(const GreenClient*, const Model::DescribeOpenApiUsageRequest&, const DescribeOpenApiUsageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeOpenApiUsageAsyncHandler;
|
||||||
@@ -526,6 +549,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::ExportKeywordsResult> ExportKeywordsOutcome;
|
typedef Outcome<Error, Model::ExportKeywordsResult> ExportKeywordsOutcome;
|
||||||
typedef std::future<ExportKeywordsOutcome> ExportKeywordsOutcomeCallable;
|
typedef std::future<ExportKeywordsOutcome> ExportKeywordsOutcomeCallable;
|
||||||
typedef std::function<void(const GreenClient*, const Model::ExportKeywordsRequest&, const ExportKeywordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExportKeywordsAsyncHandler;
|
typedef std::function<void(const GreenClient*, const Model::ExportKeywordsRequest&, const ExportKeywordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExportKeywordsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ExportOpenApiRcpStatsResult> ExportOpenApiRcpStatsOutcome;
|
||||||
|
typedef std::future<ExportOpenApiRcpStatsOutcome> ExportOpenApiRcpStatsOutcomeCallable;
|
||||||
|
typedef std::function<void(const GreenClient*, const Model::ExportOpenApiRcpStatsRequest&, const ExportOpenApiRcpStatsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExportOpenApiRcpStatsAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ExportOssResultResult> ExportOssResultOutcome;
|
typedef Outcome<Error, Model::ExportOssResultResult> ExportOssResultOutcome;
|
||||||
typedef std::future<ExportOssResultOutcome> ExportOssResultOutcomeCallable;
|
typedef std::future<ExportOssResultOutcome> ExportOssResultOutcomeCallable;
|
||||||
typedef std::function<void(const GreenClient*, const Model::ExportOssResultRequest&, const ExportOssResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExportOssResultAsyncHandler;
|
typedef std::function<void(const GreenClient*, const Model::ExportOssResultRequest&, const ExportOssResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExportOssResultAsyncHandler;
|
||||||
@@ -586,6 +612,15 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::ListSimilarityLibrariesResult> ListSimilarityLibrariesOutcome;
|
typedef Outcome<Error, Model::ListSimilarityLibrariesResult> ListSimilarityLibrariesOutcome;
|
||||||
typedef std::future<ListSimilarityLibrariesOutcome> ListSimilarityLibrariesOutcomeCallable;
|
typedef std::future<ListSimilarityLibrariesOutcome> ListSimilarityLibrariesOutcomeCallable;
|
||||||
typedef std::function<void(const GreenClient*, const Model::ListSimilarityLibrariesRequest&, const ListSimilarityLibrariesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSimilarityLibrariesAsyncHandler;
|
typedef std::function<void(const GreenClient*, const Model::ListSimilarityLibrariesRequest&, const ListSimilarityLibrariesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSimilarityLibrariesAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::LiveStreamAsyncScanResult> LiveStreamAsyncScanOutcome;
|
||||||
|
typedef std::future<LiveStreamAsyncScanOutcome> LiveStreamAsyncScanOutcomeCallable;
|
||||||
|
typedef std::function<void(const GreenClient*, const Model::LiveStreamAsyncScanRequest&, const LiveStreamAsyncScanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LiveStreamAsyncScanAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::LiveStreamAsyncScanResultsResult> LiveStreamAsyncScanResultsOutcome;
|
||||||
|
typedef std::future<LiveStreamAsyncScanResultsOutcome> LiveStreamAsyncScanResultsOutcomeCallable;
|
||||||
|
typedef std::function<void(const GreenClient*, const Model::LiveStreamAsyncScanResultsRequest&, const LiveStreamAsyncScanResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LiveStreamAsyncScanResultsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::LiveStreamCancelScanResult> LiveStreamCancelScanOutcome;
|
||||||
|
typedef std::future<LiveStreamCancelScanOutcome> LiveStreamCancelScanOutcomeCallable;
|
||||||
|
typedef std::function<void(const GreenClient*, const Model::LiveStreamCancelScanRequest&, const LiveStreamCancelScanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LiveStreamCancelScanAsyncHandler;
|
||||||
typedef Outcome<Error, Model::MarkAuditContentResult> MarkAuditContentOutcome;
|
typedef Outcome<Error, Model::MarkAuditContentResult> MarkAuditContentOutcome;
|
||||||
typedef std::future<MarkAuditContentOutcome> MarkAuditContentOutcomeCallable;
|
typedef std::future<MarkAuditContentOutcome> MarkAuditContentOutcomeCallable;
|
||||||
typedef std::function<void(const GreenClient*, const Model::MarkAuditContentRequest&, const MarkAuditContentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MarkAuditContentAsyncHandler;
|
typedef std::function<void(const GreenClient*, const Model::MarkAuditContentRequest&, const MarkAuditContentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MarkAuditContentAsyncHandler;
|
||||||
@@ -724,6 +759,12 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::VideoSyncScanResult> VideoSyncScanOutcome;
|
typedef Outcome<Error, Model::VideoSyncScanResult> VideoSyncScanOutcome;
|
||||||
typedef std::future<VideoSyncScanOutcome> VideoSyncScanOutcomeCallable;
|
typedef std::future<VideoSyncScanOutcome> VideoSyncScanOutcomeCallable;
|
||||||
typedef std::function<void(const GreenClient*, const Model::VideoSyncScanRequest&, const VideoSyncScanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VideoSyncScanAsyncHandler;
|
typedef std::function<void(const GreenClient*, const Model::VideoSyncScanRequest&, const VideoSyncScanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VideoSyncScanAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::VodAsyncScanResult> VodAsyncScanOutcome;
|
||||||
|
typedef std::future<VodAsyncScanOutcome> VodAsyncScanOutcomeCallable;
|
||||||
|
typedef std::function<void(const GreenClient*, const Model::VodAsyncScanRequest&, const VodAsyncScanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VodAsyncScanAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::VodAsyncScanResultsResult> VodAsyncScanResultsOutcome;
|
||||||
|
typedef std::future<VodAsyncScanResultsOutcome> VodAsyncScanResultsOutcomeCallable;
|
||||||
|
typedef std::function<void(const GreenClient*, const Model::VodAsyncScanResultsRequest&, const VodAsyncScanResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VodAsyncScanResultsAsyncHandler;
|
||||||
typedef Outcome<Error, Model::VoiceAsyncScanResult> VoiceAsyncScanOutcome;
|
typedef Outcome<Error, Model::VoiceAsyncScanResult> VoiceAsyncScanOutcome;
|
||||||
typedef std::future<VoiceAsyncScanOutcome> VoiceAsyncScanOutcomeCallable;
|
typedef std::future<VoiceAsyncScanOutcome> VoiceAsyncScanOutcomeCallable;
|
||||||
typedef std::function<void(const GreenClient*, const Model::VoiceAsyncScanRequest&, const VoiceAsyncScanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VoiceAsyncScanAsyncHandler;
|
typedef std::function<void(const GreenClient*, const Model::VoiceAsyncScanRequest&, const VoiceAsyncScanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VoiceAsyncScanAsyncHandler;
|
||||||
@@ -751,6 +792,15 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::VoiceSyncScanResult> VoiceSyncScanOutcome;
|
typedef Outcome<Error, Model::VoiceSyncScanResult> VoiceSyncScanOutcome;
|
||||||
typedef std::future<VoiceSyncScanOutcome> VoiceSyncScanOutcomeCallable;
|
typedef std::future<VoiceSyncScanOutcome> VoiceSyncScanOutcomeCallable;
|
||||||
typedef std::function<void(const GreenClient*, const Model::VoiceSyncScanRequest&, const VoiceSyncScanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VoiceSyncScanAsyncHandler;
|
typedef std::function<void(const GreenClient*, const Model::VoiceSyncScanRequest&, const VoiceSyncScanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VoiceSyncScanAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::WebpageAsyncScanResult> WebpageAsyncScanOutcome;
|
||||||
|
typedef std::future<WebpageAsyncScanOutcome> WebpageAsyncScanOutcomeCallable;
|
||||||
|
typedef std::function<void(const GreenClient*, const Model::WebpageAsyncScanRequest&, const WebpageAsyncScanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> WebpageAsyncScanAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::WebpageAsyncScanResultsResult> WebpageAsyncScanResultsOutcome;
|
||||||
|
typedef std::future<WebpageAsyncScanResultsOutcome> WebpageAsyncScanResultsOutcomeCallable;
|
||||||
|
typedef std::function<void(const GreenClient*, const Model::WebpageAsyncScanResultsRequest&, const WebpageAsyncScanResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> WebpageAsyncScanResultsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::WebpageSyncScanResult> WebpageSyncScanOutcome;
|
||||||
|
typedef std::future<WebpageSyncScanOutcome> WebpageSyncScanOutcomeCallable;
|
||||||
|
typedef std::function<void(const GreenClient*, const Model::WebpageSyncScanRequest&, const WebpageSyncScanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> WebpageSyncScanAsyncHandler;
|
||||||
|
|
||||||
GreenClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
GreenClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||||
GreenClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
GreenClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||||
@@ -891,6 +941,9 @@ namespace AlibabaCloud
|
|||||||
DescribeNotificationSettingOutcome describeNotificationSetting(const Model::DescribeNotificationSettingRequest &request)const;
|
DescribeNotificationSettingOutcome describeNotificationSetting(const Model::DescribeNotificationSettingRequest &request)const;
|
||||||
void describeNotificationSettingAsync(const Model::DescribeNotificationSettingRequest& request, const DescribeNotificationSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeNotificationSettingAsync(const Model::DescribeNotificationSettingRequest& request, const DescribeNotificationSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeNotificationSettingOutcomeCallable describeNotificationSettingCallable(const Model::DescribeNotificationSettingRequest& request) const;
|
DescribeNotificationSettingOutcomeCallable describeNotificationSettingCallable(const Model::DescribeNotificationSettingRequest& request) const;
|
||||||
|
DescribeOpenApiRcpStatsOutcome describeOpenApiRcpStats(const Model::DescribeOpenApiRcpStatsRequest &request)const;
|
||||||
|
void describeOpenApiRcpStatsAsync(const Model::DescribeOpenApiRcpStatsRequest& request, const DescribeOpenApiRcpStatsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DescribeOpenApiRcpStatsOutcomeCallable describeOpenApiRcpStatsCallable(const Model::DescribeOpenApiRcpStatsRequest& request) const;
|
||||||
DescribeOpenApiUsageOutcome describeOpenApiUsage(const Model::DescribeOpenApiUsageRequest &request)const;
|
DescribeOpenApiUsageOutcome describeOpenApiUsage(const Model::DescribeOpenApiUsageRequest &request)const;
|
||||||
void describeOpenApiUsageAsync(const Model::DescribeOpenApiUsageRequest& request, const DescribeOpenApiUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeOpenApiUsageAsync(const Model::DescribeOpenApiUsageRequest& request, const DescribeOpenApiUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeOpenApiUsageOutcomeCallable describeOpenApiUsageCallable(const Model::DescribeOpenApiUsageRequest& request) const;
|
DescribeOpenApiUsageOutcomeCallable describeOpenApiUsageCallable(const Model::DescribeOpenApiUsageRequest& request) const;
|
||||||
@@ -963,6 +1016,9 @@ namespace AlibabaCloud
|
|||||||
ExportKeywordsOutcome exportKeywords(const Model::ExportKeywordsRequest &request)const;
|
ExportKeywordsOutcome exportKeywords(const Model::ExportKeywordsRequest &request)const;
|
||||||
void exportKeywordsAsync(const Model::ExportKeywordsRequest& request, const ExportKeywordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void exportKeywordsAsync(const Model::ExportKeywordsRequest& request, const ExportKeywordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ExportKeywordsOutcomeCallable exportKeywordsCallable(const Model::ExportKeywordsRequest& request) const;
|
ExportKeywordsOutcomeCallable exportKeywordsCallable(const Model::ExportKeywordsRequest& request) const;
|
||||||
|
ExportOpenApiRcpStatsOutcome exportOpenApiRcpStats(const Model::ExportOpenApiRcpStatsRequest &request)const;
|
||||||
|
void exportOpenApiRcpStatsAsync(const Model::ExportOpenApiRcpStatsRequest& request, const ExportOpenApiRcpStatsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ExportOpenApiRcpStatsOutcomeCallable exportOpenApiRcpStatsCallable(const Model::ExportOpenApiRcpStatsRequest& request) const;
|
||||||
ExportOssResultOutcome exportOssResult(const Model::ExportOssResultRequest &request)const;
|
ExportOssResultOutcome exportOssResult(const Model::ExportOssResultRequest &request)const;
|
||||||
void exportOssResultAsync(const Model::ExportOssResultRequest& request, const ExportOssResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void exportOssResultAsync(const Model::ExportOssResultRequest& request, const ExportOssResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ExportOssResultOutcomeCallable exportOssResultCallable(const Model::ExportOssResultRequest& request) const;
|
ExportOssResultOutcomeCallable exportOssResultCallable(const Model::ExportOssResultRequest& request) const;
|
||||||
@@ -1023,6 +1079,15 @@ namespace AlibabaCloud
|
|||||||
ListSimilarityLibrariesOutcome listSimilarityLibraries(const Model::ListSimilarityLibrariesRequest &request)const;
|
ListSimilarityLibrariesOutcome listSimilarityLibraries(const Model::ListSimilarityLibrariesRequest &request)const;
|
||||||
void listSimilarityLibrariesAsync(const Model::ListSimilarityLibrariesRequest& request, const ListSimilarityLibrariesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listSimilarityLibrariesAsync(const Model::ListSimilarityLibrariesRequest& request, const ListSimilarityLibrariesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListSimilarityLibrariesOutcomeCallable listSimilarityLibrariesCallable(const Model::ListSimilarityLibrariesRequest& request) const;
|
ListSimilarityLibrariesOutcomeCallable listSimilarityLibrariesCallable(const Model::ListSimilarityLibrariesRequest& request) const;
|
||||||
|
LiveStreamAsyncScanOutcome liveStreamAsyncScan(const Model::LiveStreamAsyncScanRequest &request)const;
|
||||||
|
void liveStreamAsyncScanAsync(const Model::LiveStreamAsyncScanRequest& request, const LiveStreamAsyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
LiveStreamAsyncScanOutcomeCallable liveStreamAsyncScanCallable(const Model::LiveStreamAsyncScanRequest& request) const;
|
||||||
|
LiveStreamAsyncScanResultsOutcome liveStreamAsyncScanResults(const Model::LiveStreamAsyncScanResultsRequest &request)const;
|
||||||
|
void liveStreamAsyncScanResultsAsync(const Model::LiveStreamAsyncScanResultsRequest& request, const LiveStreamAsyncScanResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
LiveStreamAsyncScanResultsOutcomeCallable liveStreamAsyncScanResultsCallable(const Model::LiveStreamAsyncScanResultsRequest& request) const;
|
||||||
|
LiveStreamCancelScanOutcome liveStreamCancelScan(const Model::LiveStreamCancelScanRequest &request)const;
|
||||||
|
void liveStreamCancelScanAsync(const Model::LiveStreamCancelScanRequest& request, const LiveStreamCancelScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
LiveStreamCancelScanOutcomeCallable liveStreamCancelScanCallable(const Model::LiveStreamCancelScanRequest& request) const;
|
||||||
MarkAuditContentOutcome markAuditContent(const Model::MarkAuditContentRequest &request)const;
|
MarkAuditContentOutcome markAuditContent(const Model::MarkAuditContentRequest &request)const;
|
||||||
void markAuditContentAsync(const Model::MarkAuditContentRequest& request, const MarkAuditContentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void markAuditContentAsync(const Model::MarkAuditContentRequest& request, const MarkAuditContentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
MarkAuditContentOutcomeCallable markAuditContentCallable(const Model::MarkAuditContentRequest& request) const;
|
MarkAuditContentOutcomeCallable markAuditContentCallable(const Model::MarkAuditContentRequest& request) const;
|
||||||
@@ -1161,6 +1226,12 @@ namespace AlibabaCloud
|
|||||||
VideoSyncScanOutcome videoSyncScan(const Model::VideoSyncScanRequest &request)const;
|
VideoSyncScanOutcome videoSyncScan(const Model::VideoSyncScanRequest &request)const;
|
||||||
void videoSyncScanAsync(const Model::VideoSyncScanRequest& request, const VideoSyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void videoSyncScanAsync(const Model::VideoSyncScanRequest& request, const VideoSyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
VideoSyncScanOutcomeCallable videoSyncScanCallable(const Model::VideoSyncScanRequest& request) const;
|
VideoSyncScanOutcomeCallable videoSyncScanCallable(const Model::VideoSyncScanRequest& request) const;
|
||||||
|
VodAsyncScanOutcome vodAsyncScan(const Model::VodAsyncScanRequest &request)const;
|
||||||
|
void vodAsyncScanAsync(const Model::VodAsyncScanRequest& request, const VodAsyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
VodAsyncScanOutcomeCallable vodAsyncScanCallable(const Model::VodAsyncScanRequest& request) const;
|
||||||
|
VodAsyncScanResultsOutcome vodAsyncScanResults(const Model::VodAsyncScanResultsRequest &request)const;
|
||||||
|
void vodAsyncScanResultsAsync(const Model::VodAsyncScanResultsRequest& request, const VodAsyncScanResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
VodAsyncScanResultsOutcomeCallable vodAsyncScanResultsCallable(const Model::VodAsyncScanResultsRequest& request) const;
|
||||||
VoiceAsyncScanOutcome voiceAsyncScan(const Model::VoiceAsyncScanRequest &request)const;
|
VoiceAsyncScanOutcome voiceAsyncScan(const Model::VoiceAsyncScanRequest &request)const;
|
||||||
void voiceAsyncScanAsync(const Model::VoiceAsyncScanRequest& request, const VoiceAsyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void voiceAsyncScanAsync(const Model::VoiceAsyncScanRequest& request, const VoiceAsyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
VoiceAsyncScanOutcomeCallable voiceAsyncScanCallable(const Model::VoiceAsyncScanRequest& request) const;
|
VoiceAsyncScanOutcomeCallable voiceAsyncScanCallable(const Model::VoiceAsyncScanRequest& request) const;
|
||||||
@@ -1188,6 +1259,15 @@ namespace AlibabaCloud
|
|||||||
VoiceSyncScanOutcome voiceSyncScan(const Model::VoiceSyncScanRequest &request)const;
|
VoiceSyncScanOutcome voiceSyncScan(const Model::VoiceSyncScanRequest &request)const;
|
||||||
void voiceSyncScanAsync(const Model::VoiceSyncScanRequest& request, const VoiceSyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void voiceSyncScanAsync(const Model::VoiceSyncScanRequest& request, const VoiceSyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
VoiceSyncScanOutcomeCallable voiceSyncScanCallable(const Model::VoiceSyncScanRequest& request) const;
|
VoiceSyncScanOutcomeCallable voiceSyncScanCallable(const Model::VoiceSyncScanRequest& request) const;
|
||||||
|
WebpageAsyncScanOutcome webpageAsyncScan(const Model::WebpageAsyncScanRequest &request)const;
|
||||||
|
void webpageAsyncScanAsync(const Model::WebpageAsyncScanRequest& request, const WebpageAsyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
WebpageAsyncScanOutcomeCallable webpageAsyncScanCallable(const Model::WebpageAsyncScanRequest& request) const;
|
||||||
|
WebpageAsyncScanResultsOutcome webpageAsyncScanResults(const Model::WebpageAsyncScanResultsRequest &request)const;
|
||||||
|
void webpageAsyncScanResultsAsync(const Model::WebpageAsyncScanResultsRequest& request, const WebpageAsyncScanResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
WebpageAsyncScanResultsOutcomeCallable webpageAsyncScanResultsCallable(const Model::WebpageAsyncScanResultsRequest& request) const;
|
||||||
|
WebpageSyncScanOutcome webpageSyncScan(const Model::WebpageSyncScanRequest &request)const;
|
||||||
|
void webpageSyncScanAsync(const Model::WebpageSyncScanRequest& request, const WebpageSyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
WebpageSyncScanOutcomeCallable webpageSyncScanCallable(const Model::WebpageSyncScanRequest& request) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||||
|
|||||||
@@ -0,0 +1,60 @@
|
|||||||
|
/*
|
||||||
|
* 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_GREEN_MODEL_DESCRIBEOPENAPIRCPSTATSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEOPENAPIRCPSTATSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT DescribeOpenApiRcpStatsRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
DescribeOpenApiRcpStatsRequest();
|
||||||
|
~DescribeOpenApiRcpStatsRequest();
|
||||||
|
|
||||||
|
std::string getStartDate()const;
|
||||||
|
void setStartDate(const std::string& startDate);
|
||||||
|
std::string getResourceType()const;
|
||||||
|
void setResourceType(const std::string& resourceType);
|
||||||
|
std::string getBizType()const;
|
||||||
|
void setBizType(const std::string& bizType);
|
||||||
|
std::string getEndDate()const;
|
||||||
|
void setEndDate(const std::string& endDate);
|
||||||
|
std::string getSourceIp()const;
|
||||||
|
void setSourceIp(const std::string& sourceIp);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string startDate_;
|
||||||
|
std::string resourceType_;
|
||||||
|
std::string bizType_;
|
||||||
|
std::string endDate_;
|
||||||
|
std::string sourceIp_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEOPENAPIRCPSTATSREQUEST_H_
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
/*
|
||||||
|
* 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_GREEN_MODEL_DESCRIBEOPENAPIRCPSTATSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEOPENAPIRCPSTATSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT DescribeOpenApiRcpStatsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Stat
|
||||||
|
{
|
||||||
|
int totalCount;
|
||||||
|
int blockCount;
|
||||||
|
std::string resourceType;
|
||||||
|
int passCount;
|
||||||
|
int reviewCount;
|
||||||
|
std::string date;
|
||||||
|
int totalDuration;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
DescribeOpenApiRcpStatsResult();
|
||||||
|
explicit DescribeOpenApiRcpStatsResult(const std::string &payload);
|
||||||
|
~DescribeOpenApiRcpStatsResult();
|
||||||
|
int getTotalCount()const;
|
||||||
|
std::vector<Stat> getStatList()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
int totalCount_;
|
||||||
|
std::vector<Stat> statList_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEOPENAPIRCPSTATSRESULT_H_
|
||||||
@@ -52,14 +52,16 @@ namespace AlibabaCloud
|
|||||||
explicit DescribeOssIncrementCheckSettingResult(const std::string &payload);
|
explicit DescribeOssIncrementCheckSettingResult(const std::string &payload);
|
||||||
~DescribeOssIncrementCheckSettingResult();
|
~DescribeOssIncrementCheckSettingResult();
|
||||||
std::vector<std::string> getVideoAutoFreezeSceneList()const;
|
std::vector<std::string> getVideoAutoFreezeSceneList()const;
|
||||||
std::vector<std::string> getVideoSceneList()const;
|
std::string getCallbackId()const;
|
||||||
bool getImageEnableLimit()const;
|
|
||||||
std::vector<std::string> getImageSceneList()const;
|
|
||||||
long getImageScanLimit()const;
|
long getImageScanLimit()const;
|
||||||
ImageAutoFreeze getImageAutoFreeze()const;
|
ImageAutoFreeze getImageAutoFreeze()const;
|
||||||
std::vector<BucketConfig> getBucketConfigList()const;
|
std::vector<BucketConfig> getBucketConfigList()const;
|
||||||
std::string getAutoFreezeType()const;
|
|
||||||
int getVideoFrameInterval()const;
|
int getVideoFrameInterval()const;
|
||||||
|
std::vector<std::string> getVideoSceneList()const;
|
||||||
|
bool getImageEnableLimit()const;
|
||||||
|
std::vector<std::string> getImageSceneList()const;
|
||||||
|
std::string getCallbackName()const;
|
||||||
|
std::string getAutoFreezeType()const;
|
||||||
int getVideoMaxFrames()const;
|
int getVideoMaxFrames()const;
|
||||||
int getVideoMaxSize()const;
|
int getVideoMaxSize()const;
|
||||||
|
|
||||||
@@ -67,14 +69,16 @@ namespace AlibabaCloud
|
|||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::vector<std::string> videoAutoFreezeSceneList_;
|
std::vector<std::string> videoAutoFreezeSceneList_;
|
||||||
std::vector<std::string> videoSceneList_;
|
std::string callbackId_;
|
||||||
bool imageEnableLimit_;
|
|
||||||
std::vector<std::string> imageSceneList_;
|
|
||||||
long imageScanLimit_;
|
long imageScanLimit_;
|
||||||
ImageAutoFreeze imageAutoFreeze_;
|
ImageAutoFreeze imageAutoFreeze_;
|
||||||
std::vector<BucketConfig> bucketConfigList_;
|
std::vector<BucketConfig> bucketConfigList_;
|
||||||
std::string autoFreezeType_;
|
|
||||||
int videoFrameInterval_;
|
int videoFrameInterval_;
|
||||||
|
std::vector<std::string> videoSceneList_;
|
||||||
|
bool imageEnableLimit_;
|
||||||
|
std::vector<std::string> imageSceneList_;
|
||||||
|
std::string callbackName_;
|
||||||
|
std::string autoFreezeType_;
|
||||||
int videoMaxFrames_;
|
int videoMaxFrames_;
|
||||||
int videoMaxSize_;
|
int videoMaxSize_;
|
||||||
|
|
||||||
|
|||||||
@@ -39,18 +39,24 @@ namespace AlibabaCloud
|
|||||||
~DescribeOssIncrementOverviewResult();
|
~DescribeOssIncrementOverviewResult();
|
||||||
int getImageCount()const;
|
int getImageCount()const;
|
||||||
int getVideoCount()const;
|
int getVideoCount()const;
|
||||||
|
int getVoiceAntispamUnhandleCount()const;
|
||||||
int getPornUnhandleCount()const;
|
int getPornUnhandleCount()const;
|
||||||
|
int getLiveUnhandleCount()const;
|
||||||
int getVideoFrameCount()const;
|
int getVideoFrameCount()const;
|
||||||
int getTerrorismUnhandleCount()const;
|
int getTerrorismUnhandleCount()const;
|
||||||
|
int getAdUnhandleCount()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
int imageCount_;
|
int imageCount_;
|
||||||
int videoCount_;
|
int videoCount_;
|
||||||
|
int voiceAntispamUnhandleCount_;
|
||||||
int pornUnhandleCount_;
|
int pornUnhandleCount_;
|
||||||
|
int liveUnhandleCount_;
|
||||||
int videoFrameCount_;
|
int videoFrameCount_;
|
||||||
int terrorismUnhandleCount_;
|
int terrorismUnhandleCount_;
|
||||||
|
int adUnhandleCount_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
|||||||
void setMinScore(float minScore);
|
void setMinScore(float minScore);
|
||||||
float getMaxScore()const;
|
float getMaxScore()const;
|
||||||
void setMaxScore(float maxScore);
|
void setMaxScore(float maxScore);
|
||||||
|
long getStockTaskId()const;
|
||||||
|
void setStockTaskId(long stockTaskId);
|
||||||
std::string getStartDate()const;
|
std::string getStartDate()const;
|
||||||
void setStartDate(const std::string& startDate);
|
void setStartDate(const std::string& startDate);
|
||||||
std::string getScene()const;
|
std::string getScene()const;
|
||||||
@@ -71,6 +73,7 @@ namespace AlibabaCloud
|
|||||||
private:
|
private:
|
||||||
float minScore_;
|
float minScore_;
|
||||||
float maxScore_;
|
float maxScore_;
|
||||||
|
long stockTaskId_;
|
||||||
std::string startDate_;
|
std::string startDate_;
|
||||||
std::string scene_;
|
std::string scene_;
|
||||||
std::string sourceIp_;
|
std::string sourceIp_;
|
||||||
|
|||||||
@@ -40,9 +40,17 @@ namespace AlibabaCloud
|
|||||||
std::string url;
|
std::string url;
|
||||||
int offset;
|
int offset;
|
||||||
};
|
};
|
||||||
|
struct VoiceSegmentAntispamResult
|
||||||
|
{
|
||||||
|
int endTime;
|
||||||
|
int startTime;
|
||||||
|
std::string label;
|
||||||
|
std::string text;
|
||||||
|
};
|
||||||
std::string taskId;
|
std::string taskId;
|
||||||
std::string createTime;
|
std::string createTime;
|
||||||
std::string requestTime;
|
std::string requestTime;
|
||||||
|
std::vector<ScanResult::VoiceSegmentAntispamResult> voiceSegmentAntispamResults;
|
||||||
std::string thumbnail;
|
std::string thumbnail;
|
||||||
std::string newUrl;
|
std::string newUrl;
|
||||||
std::string scanFinishedTime;
|
std::string scanFinishedTime;
|
||||||
@@ -52,6 +60,7 @@ namespace AlibabaCloud
|
|||||||
std::vector<ScanResult::FrameResult> frameResults;
|
std::vector<ScanResult::FrameResult> frameResults;
|
||||||
std::string bucket;
|
std::string bucket;
|
||||||
int handleStatus;
|
int handleStatus;
|
||||||
|
std::string content;
|
||||||
int resourceStatus;
|
int resourceStatus;
|
||||||
std::string object;
|
std::string object;
|
||||||
long id;
|
long id;
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ namespace AlibabaCloud
|
|||||||
void setAuditResult(const std::string& auditResult);
|
void setAuditResult(const std::string& auditResult);
|
||||||
int getPageSize()const;
|
int getPageSize()const;
|
||||||
void setPageSize(int pageSize);
|
void setPageSize(int pageSize);
|
||||||
|
std::string getKeyword()const;
|
||||||
|
void setKeyword(const std::string& keyword);
|
||||||
std::string getTaskId()const;
|
std::string getTaskId()const;
|
||||||
void setTaskId(const std::string& taskId);
|
void setTaskId(const std::string& taskId);
|
||||||
int getTotalCount()const;
|
int getTotalCount()const;
|
||||||
@@ -78,6 +80,7 @@ namespace AlibabaCloud
|
|||||||
std::string libType_;
|
std::string libType_;
|
||||||
std::string auditResult_;
|
std::string auditResult_;
|
||||||
int pageSize_;
|
int pageSize_;
|
||||||
|
std::string keyword_;
|
||||||
std::string taskId_;
|
std::string taskId_;
|
||||||
int totalCount_;
|
int totalCount_;
|
||||||
std::string keywordId_;
|
std::string keywordId_;
|
||||||
|
|||||||
@@ -0,0 +1,60 @@
|
|||||||
|
/*
|
||||||
|
* 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_GREEN_MODEL_EXPORTOPENAPIRCPSTATSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_EXPORTOPENAPIRCPSTATSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT ExportOpenApiRcpStatsRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ExportOpenApiRcpStatsRequest();
|
||||||
|
~ExportOpenApiRcpStatsRequest();
|
||||||
|
|
||||||
|
std::string getStartDate()const;
|
||||||
|
void setStartDate(const std::string& startDate);
|
||||||
|
std::string getResourceType()const;
|
||||||
|
void setResourceType(const std::string& resourceType);
|
||||||
|
std::string getBizType()const;
|
||||||
|
void setBizType(const std::string& bizType);
|
||||||
|
std::string getEndDate()const;
|
||||||
|
void setEndDate(const std::string& endDate);
|
||||||
|
std::string getSourceIp()const;
|
||||||
|
void setSourceIp(const std::string& sourceIp);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string startDate_;
|
||||||
|
std::string resourceType_;
|
||||||
|
std::string bizType_;
|
||||||
|
std::string endDate_;
|
||||||
|
std::string sourceIp_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_EXPORTOPENAPIRCPSTATSREQUEST_H_
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_GREEN_MODEL_EXPORTOPENAPIRCPSTATSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_EXPORTOPENAPIRCPSTATSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT ExportOpenApiRcpStatsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
ExportOpenApiRcpStatsResult();
|
||||||
|
explicit ExportOpenApiRcpStatsResult(const std::string &payload);
|
||||||
|
~ExportOpenApiRcpStatsResult();
|
||||||
|
std::string getDownloadUrl()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string downloadUrl_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_EXPORTOPENAPIRCPSTATSRESULT_H_
|
||||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
|||||||
void setMinScore(float minScore);
|
void setMinScore(float minScore);
|
||||||
float getMaxScore()const;
|
float getMaxScore()const;
|
||||||
void setMaxScore(float maxScore);
|
void setMaxScore(float maxScore);
|
||||||
|
long getStockTaskId()const;
|
||||||
|
void setStockTaskId(long stockTaskId);
|
||||||
std::string getStartDate()const;
|
std::string getStartDate()const;
|
||||||
void setStartDate(const std::string& startDate);
|
void setStartDate(const std::string& startDate);
|
||||||
std::string getScene()const;
|
std::string getScene()const;
|
||||||
@@ -67,6 +69,7 @@ namespace AlibabaCloud
|
|||||||
private:
|
private:
|
||||||
float minScore_;
|
float minScore_;
|
||||||
float maxScore_;
|
float maxScore_;
|
||||||
|
long stockTaskId_;
|
||||||
std::string startDate_;
|
std::string startDate_;
|
||||||
std::string scene_;
|
std::string scene_;
|
||||||
std::string sourceIp_;
|
std::string sourceIp_;
|
||||||
|
|||||||
@@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* 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_GREEN_MODEL_LIVESTREAMASYNCSCANREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT LiveStreamAsyncScanRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
LiveStreamAsyncScanRequest();
|
||||||
|
~LiveStreamAsyncScanRequest();
|
||||||
|
|
||||||
|
std::string getClientInfo()const;
|
||||||
|
void setClientInfo(const std::string& clientInfo);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string clientInfo_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANREQUEST_H_
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* 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_GREEN_MODEL_LIVESTREAMASYNCSCANRESULT_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT LiveStreamAsyncScanResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
LiveStreamAsyncScanResult();
|
||||||
|
explicit LiveStreamAsyncScanResult(const std::string &payload);
|
||||||
|
~LiveStreamAsyncScanResult();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANRESULT_H_
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* 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_GREEN_MODEL_LIVESTREAMASYNCSCANRESULTSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANRESULTSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT LiveStreamAsyncScanResultsRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
LiveStreamAsyncScanResultsRequest();
|
||||||
|
~LiveStreamAsyncScanResultsRequest();
|
||||||
|
|
||||||
|
std::string getClientInfo()const;
|
||||||
|
void setClientInfo(const std::string& clientInfo);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string clientInfo_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANRESULTSREQUEST_H_
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* 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_GREEN_MODEL_LIVESTREAMASYNCSCANRESULTSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANRESULTSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT LiveStreamAsyncScanResultsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
LiveStreamAsyncScanResultsResult();
|
||||||
|
explicit LiveStreamAsyncScanResultsResult(const std::string &payload);
|
||||||
|
~LiveStreamAsyncScanResultsResult();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANRESULTSRESULT_H_
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* 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_GREEN_MODEL_LIVESTREAMCANCELSCANREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_LIVESTREAMCANCELSCANREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT LiveStreamCancelScanRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
LiveStreamCancelScanRequest();
|
||||||
|
~LiveStreamCancelScanRequest();
|
||||||
|
|
||||||
|
std::string getClientInfo()const;
|
||||||
|
void setClientInfo(const std::string& clientInfo);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string clientInfo_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_LIVESTREAMCANCELSCANREQUEST_H_
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* 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_GREEN_MODEL_LIVESTREAMCANCELSCANRESULT_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_LIVESTREAMCANCELSCANRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT LiveStreamCancelScanResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
LiveStreamCancelScanResult();
|
||||||
|
explicit LiveStreamCancelScanResult(const std::string &payload);
|
||||||
|
~LiveStreamCancelScanResult();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_LIVESTREAMCANCELSCANRESULT_H_
|
||||||
@@ -43,6 +43,8 @@ namespace AlibabaCloud
|
|||||||
void setVideoFrameInterval(int videoFrameInterval);
|
void setVideoFrameInterval(int videoFrameInterval);
|
||||||
std::string getSourceIp()const;
|
std::string getSourceIp()const;
|
||||||
void setSourceIp(const std::string& sourceIp);
|
void setSourceIp(const std::string& sourceIp);
|
||||||
|
std::string getCallbackId()const;
|
||||||
|
void setCallbackId(const std::string& callbackId);
|
||||||
std::string getImageScanLimit()const;
|
std::string getImageScanLimit()const;
|
||||||
void setImageScanLimit(const std::string& imageScanLimit);
|
void setImageScanLimit(const std::string& imageScanLimit);
|
||||||
std::string getVideoAutoFreezeSceneList()const;
|
std::string getVideoAutoFreezeSceneList()const;
|
||||||
@@ -65,6 +67,7 @@ namespace AlibabaCloud
|
|||||||
std::string imageSceneList_;
|
std::string imageSceneList_;
|
||||||
int videoFrameInterval_;
|
int videoFrameInterval_;
|
||||||
std::string sourceIp_;
|
std::string sourceIp_;
|
||||||
|
std::string callbackId_;
|
||||||
std::string imageScanLimit_;
|
std::string imageScanLimit_;
|
||||||
std::string videoAutoFreezeSceneList_;
|
std::string videoAutoFreezeSceneList_;
|
||||||
std::string lang_;
|
std::string lang_;
|
||||||
|
|||||||
48
green/include/alibabacloud/green/model/VodAsyncScanRequest.h
Normal file
48
green/include/alibabacloud/green/model/VodAsyncScanRequest.h
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* 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_GREEN_MODEL_VODASYNCSCANREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT VodAsyncScanRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
VodAsyncScanRequest();
|
||||||
|
~VodAsyncScanRequest();
|
||||||
|
|
||||||
|
std::string getClientInfo()const;
|
||||||
|
void setClientInfo(const std::string& clientInfo);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string clientInfo_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANREQUEST_H_
|
||||||
@@ -14,29 +14,29 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_RTC_MODEL_ENABLEMAURULERESULT_H_
|
#ifndef ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANRESULT_H_
|
||||||
#define ALIBABACLOUD_RTC_MODEL_ENABLEMAURULERESULT_H_
|
#define ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
#include <alibabacloud/rtc/RtcExport.h>
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Rtc
|
namespace Green
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_RTC_EXPORT EnableMAURuleResult : public ServiceResult
|
class ALIBABACLOUD_GREEN_EXPORT VodAsyncScanResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
EnableMAURuleResult();
|
VodAsyncScanResult();
|
||||||
explicit EnableMAURuleResult(const std::string &payload);
|
explicit VodAsyncScanResult(const std::string &payload);
|
||||||
~EnableMAURuleResult();
|
~VodAsyncScanResult();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
@@ -46,4 +46,4 @@ namespace AlibabaCloud
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_RTC_MODEL_ENABLEMAURULERESULT_H_
|
#endif // !ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANRESULT_H_
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* 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_GREEN_MODEL_VODASYNCSCANRESULTSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANRESULTSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT VodAsyncScanResultsRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
VodAsyncScanResultsRequest();
|
||||||
|
~VodAsyncScanResultsRequest();
|
||||||
|
|
||||||
|
std::string getClientInfo()const;
|
||||||
|
void setClientInfo(const std::string& clientInfo);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string clientInfo_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANRESULTSREQUEST_H_
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* 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_GREEN_MODEL_VODASYNCSCANRESULTSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANRESULTSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT VodAsyncScanResultsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
VodAsyncScanResultsResult();
|
||||||
|
explicit VodAsyncScanResultsResult(const std::string &payload);
|
||||||
|
~VodAsyncScanResultsResult();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANRESULTSRESULT_H_
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* 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_GREEN_MODEL_WEBPAGEASYNCSCANREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT WebpageAsyncScanRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
WebpageAsyncScanRequest();
|
||||||
|
~WebpageAsyncScanRequest();
|
||||||
|
|
||||||
|
std::string getClientInfo()const;
|
||||||
|
void setClientInfo(const std::string& clientInfo);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string clientInfo_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANREQUEST_H_
|
||||||
@@ -14,38 +14,36 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_RTC_MODEL_CREATEMAURULERESULT_H_
|
#ifndef ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANRESULT_H_
|
||||||
#define ALIBABACLOUD_RTC_MODEL_CREATEMAURULERESULT_H_
|
#define ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
#include <alibabacloud/rtc/RtcExport.h>
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Rtc
|
namespace Green
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_RTC_EXPORT CreateMAURuleResult : public ServiceResult
|
class ALIBABACLOUD_GREEN_EXPORT WebpageAsyncScanResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
CreateMAURuleResult();
|
WebpageAsyncScanResult();
|
||||||
explicit CreateMAURuleResult(const std::string &payload);
|
explicit WebpageAsyncScanResult(const std::string &payload);
|
||||||
~CreateMAURuleResult();
|
~WebpageAsyncScanResult();
|
||||||
long getRuleId()const;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
long ruleId_;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_RTC_MODEL_CREATEMAURULERESULT_H_
|
#endif // !ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANRESULT_H_
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* 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_GREEN_MODEL_WEBPAGEASYNCSCANRESULTSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANRESULTSREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT WebpageAsyncScanResultsRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
WebpageAsyncScanResultsRequest();
|
||||||
|
~WebpageAsyncScanResultsRequest();
|
||||||
|
|
||||||
|
std::string getClientInfo()const;
|
||||||
|
void setClientInfo(const std::string& clientInfo);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string clientInfo_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANRESULTSREQUEST_H_
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* 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_GREEN_MODEL_WEBPAGEASYNCSCANRESULTSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANRESULTSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT WebpageAsyncScanResultsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
WebpageAsyncScanResultsResult();
|
||||||
|
explicit WebpageAsyncScanResultsResult(const std::string &payload);
|
||||||
|
~WebpageAsyncScanResultsResult();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANRESULTSRESULT_H_
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* 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_GREEN_MODEL_WEBPAGESYNCSCANREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_GREEN_MODEL_WEBPAGESYNCSCANREQUEST_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||||
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Green
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_GREEN_EXPORT WebpageSyncScanRequest : public RoaServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
WebpageSyncScanRequest();
|
||||||
|
~WebpageSyncScanRequest();
|
||||||
|
|
||||||
|
std::string getClientInfo()const;
|
||||||
|
void setClientInfo(const std::string& clientInfo);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string clientInfo_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_GREEN_MODEL_WEBPAGESYNCSCANREQUEST_H_
|
||||||
@@ -14,29 +14,29 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_RTC_MODEL_DELETEMAURULERESULT_H_
|
#ifndef ALIBABACLOUD_GREEN_MODEL_WEBPAGESYNCSCANRESULT_H_
|
||||||
#define ALIBABACLOUD_RTC_MODEL_DELETEMAURULERESULT_H_
|
#define ALIBABACLOUD_GREEN_MODEL_WEBPAGESYNCSCANRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
#include <alibabacloud/rtc/RtcExport.h>
|
#include <alibabacloud/green/GreenExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Rtc
|
namespace Green
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_RTC_EXPORT DeleteMAURuleResult : public ServiceResult
|
class ALIBABACLOUD_GREEN_EXPORT WebpageSyncScanResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
DeleteMAURuleResult();
|
WebpageSyncScanResult();
|
||||||
explicit DeleteMAURuleResult(const std::string &payload);
|
explicit WebpageSyncScanResult(const std::string &payload);
|
||||||
~DeleteMAURuleResult();
|
~WebpageSyncScanResult();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
@@ -46,4 +46,4 @@ namespace AlibabaCloud
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_RTC_MODEL_DELETEMAURULERESULT_H_
|
#endif // !ALIBABACLOUD_GREEN_MODEL_WEBPAGESYNCSCANRESULT_H_
|
||||||
@@ -1671,6 +1671,42 @@ GreenClient::DescribeNotificationSettingOutcomeCallable GreenClient::describeNot
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GreenClient::DescribeOpenApiRcpStatsOutcome GreenClient::describeOpenApiRcpStats(const DescribeOpenApiRcpStatsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DescribeOpenApiRcpStatsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DescribeOpenApiRcpStatsOutcome(DescribeOpenApiRcpStatsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DescribeOpenApiRcpStatsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void GreenClient::describeOpenApiRcpStatsAsync(const DescribeOpenApiRcpStatsRequest& request, const DescribeOpenApiRcpStatsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, describeOpenApiRcpStats(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
GreenClient::DescribeOpenApiRcpStatsOutcomeCallable GreenClient::describeOpenApiRcpStatsCallable(const DescribeOpenApiRcpStatsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DescribeOpenApiRcpStatsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->describeOpenApiRcpStats(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
GreenClient::DescribeOpenApiUsageOutcome GreenClient::describeOpenApiUsage(const DescribeOpenApiUsageRequest &request) const
|
GreenClient::DescribeOpenApiUsageOutcome GreenClient::describeOpenApiUsage(const DescribeOpenApiUsageRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -2535,6 +2571,42 @@ GreenClient::ExportKeywordsOutcomeCallable GreenClient::exportKeywordsCallable(c
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GreenClient::ExportOpenApiRcpStatsOutcome GreenClient::exportOpenApiRcpStats(const ExportOpenApiRcpStatsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ExportOpenApiRcpStatsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ExportOpenApiRcpStatsOutcome(ExportOpenApiRcpStatsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ExportOpenApiRcpStatsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void GreenClient::exportOpenApiRcpStatsAsync(const ExportOpenApiRcpStatsRequest& request, const ExportOpenApiRcpStatsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, exportOpenApiRcpStats(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
GreenClient::ExportOpenApiRcpStatsOutcomeCallable GreenClient::exportOpenApiRcpStatsCallable(const ExportOpenApiRcpStatsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ExportOpenApiRcpStatsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->exportOpenApiRcpStats(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
GreenClient::ExportOssResultOutcome GreenClient::exportOssResult(const ExportOssResultRequest &request) const
|
GreenClient::ExportOssResultOutcome GreenClient::exportOssResult(const ExportOssResultRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -3255,6 +3327,114 @@ GreenClient::ListSimilarityLibrariesOutcomeCallable GreenClient::listSimilarityL
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GreenClient::LiveStreamAsyncScanOutcome GreenClient::liveStreamAsyncScan(const LiveStreamAsyncScanRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return LiveStreamAsyncScanOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return LiveStreamAsyncScanOutcome(LiveStreamAsyncScanResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return LiveStreamAsyncScanOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void GreenClient::liveStreamAsyncScanAsync(const LiveStreamAsyncScanRequest& request, const LiveStreamAsyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, liveStreamAsyncScan(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
GreenClient::LiveStreamAsyncScanOutcomeCallable GreenClient::liveStreamAsyncScanCallable(const LiveStreamAsyncScanRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<LiveStreamAsyncScanOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->liveStreamAsyncScan(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
GreenClient::LiveStreamAsyncScanResultsOutcome GreenClient::liveStreamAsyncScanResults(const LiveStreamAsyncScanResultsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return LiveStreamAsyncScanResultsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return LiveStreamAsyncScanResultsOutcome(LiveStreamAsyncScanResultsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return LiveStreamAsyncScanResultsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void GreenClient::liveStreamAsyncScanResultsAsync(const LiveStreamAsyncScanResultsRequest& request, const LiveStreamAsyncScanResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, liveStreamAsyncScanResults(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
GreenClient::LiveStreamAsyncScanResultsOutcomeCallable GreenClient::liveStreamAsyncScanResultsCallable(const LiveStreamAsyncScanResultsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<LiveStreamAsyncScanResultsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->liveStreamAsyncScanResults(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
GreenClient::LiveStreamCancelScanOutcome GreenClient::liveStreamCancelScan(const LiveStreamCancelScanRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return LiveStreamCancelScanOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return LiveStreamCancelScanOutcome(LiveStreamCancelScanResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return LiveStreamCancelScanOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void GreenClient::liveStreamCancelScanAsync(const LiveStreamCancelScanRequest& request, const LiveStreamCancelScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, liveStreamCancelScan(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
GreenClient::LiveStreamCancelScanOutcomeCallable GreenClient::liveStreamCancelScanCallable(const LiveStreamCancelScanRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<LiveStreamCancelScanOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->liveStreamCancelScan(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
GreenClient::MarkAuditContentOutcome GreenClient::markAuditContent(const MarkAuditContentRequest &request) const
|
GreenClient::MarkAuditContentOutcome GreenClient::markAuditContent(const MarkAuditContentRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -4911,6 +5091,78 @@ GreenClient::VideoSyncScanOutcomeCallable GreenClient::videoSyncScanCallable(con
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GreenClient::VodAsyncScanOutcome GreenClient::vodAsyncScan(const VodAsyncScanRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return VodAsyncScanOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return VodAsyncScanOutcome(VodAsyncScanResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return VodAsyncScanOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void GreenClient::vodAsyncScanAsync(const VodAsyncScanRequest& request, const VodAsyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, vodAsyncScan(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
GreenClient::VodAsyncScanOutcomeCallable GreenClient::vodAsyncScanCallable(const VodAsyncScanRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<VodAsyncScanOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->vodAsyncScan(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
GreenClient::VodAsyncScanResultsOutcome GreenClient::vodAsyncScanResults(const VodAsyncScanResultsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return VodAsyncScanResultsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return VodAsyncScanResultsOutcome(VodAsyncScanResultsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return VodAsyncScanResultsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void GreenClient::vodAsyncScanResultsAsync(const VodAsyncScanResultsRequest& request, const VodAsyncScanResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, vodAsyncScanResults(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
GreenClient::VodAsyncScanResultsOutcomeCallable GreenClient::vodAsyncScanResultsCallable(const VodAsyncScanResultsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<VodAsyncScanResultsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->vodAsyncScanResults(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
GreenClient::VoiceAsyncScanOutcome GreenClient::voiceAsyncScan(const VoiceAsyncScanRequest &request) const
|
GreenClient::VoiceAsyncScanOutcome GreenClient::voiceAsyncScan(const VoiceAsyncScanRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -5235,3 +5487,111 @@ GreenClient::VoiceSyncScanOutcomeCallable GreenClient::voiceSyncScanCallable(con
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GreenClient::WebpageAsyncScanOutcome GreenClient::webpageAsyncScan(const WebpageAsyncScanRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return WebpageAsyncScanOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return WebpageAsyncScanOutcome(WebpageAsyncScanResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return WebpageAsyncScanOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void GreenClient::webpageAsyncScanAsync(const WebpageAsyncScanRequest& request, const WebpageAsyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, webpageAsyncScan(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
GreenClient::WebpageAsyncScanOutcomeCallable GreenClient::webpageAsyncScanCallable(const WebpageAsyncScanRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<WebpageAsyncScanOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->webpageAsyncScan(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
GreenClient::WebpageAsyncScanResultsOutcome GreenClient::webpageAsyncScanResults(const WebpageAsyncScanResultsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return WebpageAsyncScanResultsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return WebpageAsyncScanResultsOutcome(WebpageAsyncScanResultsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return WebpageAsyncScanResultsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void GreenClient::webpageAsyncScanResultsAsync(const WebpageAsyncScanResultsRequest& request, const WebpageAsyncScanResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, webpageAsyncScanResults(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
GreenClient::WebpageAsyncScanResultsOutcomeCallable GreenClient::webpageAsyncScanResultsCallable(const WebpageAsyncScanResultsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<WebpageAsyncScanResultsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->webpageAsyncScanResults(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
GreenClient::WebpageSyncScanOutcome GreenClient::webpageSyncScan(const WebpageSyncScanRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return WebpageSyncScanOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return WebpageSyncScanOutcome(WebpageSyncScanResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return WebpageSyncScanOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void GreenClient::webpageSyncScanAsync(const WebpageSyncScanRequest& request, const WebpageSyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, webpageSyncScan(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
GreenClient::WebpageSyncScanOutcomeCallable GreenClient::webpageSyncScanCallable(const WebpageSyncScanRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<WebpageSyncScanOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->webpageSyncScan(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -69,28 +69,28 @@ void DescribeAuditContentResult::parse(const std::string &payload)
|
|||||||
auditContentListObject.suggestion = valueAuditContentListAuditContent["Suggestion"].asString();
|
auditContentListObject.suggestion = valueAuditContentListAuditContent["Suggestion"].asString();
|
||||||
if(!valueAuditContentListAuditContent["Id"].isNull())
|
if(!valueAuditContentListAuditContent["Id"].isNull())
|
||||||
auditContentListObject.id = std::stol(valueAuditContentListAuditContent["Id"].asString());
|
auditContentListObject.id = std::stol(valueAuditContentListAuditContent["Id"].asString());
|
||||||
auto allResultsNode = allAuditContentListNode["Results"]["Result"];
|
auto allResultsNode = valueAuditContentListAuditContent["Results"]["Result"];
|
||||||
for (auto allAuditContentListNodeResultsResult : allResultsNode)
|
for (auto valueAuditContentListAuditContentResultsResult : allResultsNode)
|
||||||
{
|
{
|
||||||
AuditContent::Result resultsObject;
|
AuditContent::Result resultsObject;
|
||||||
if(!allAuditContentListNodeResultsResult["Suggestion"].isNull())
|
if(!valueAuditContentListAuditContentResultsResult["Suggestion"].isNull())
|
||||||
resultsObject.suggestion = allAuditContentListNodeResultsResult["Suggestion"].asString();
|
resultsObject.suggestion = valueAuditContentListAuditContentResultsResult["Suggestion"].asString();
|
||||||
if(!allAuditContentListNodeResultsResult["Label"].isNull())
|
if(!valueAuditContentListAuditContentResultsResult["Label"].isNull())
|
||||||
resultsObject.label = allAuditContentListNodeResultsResult["Label"].asString();
|
resultsObject.label = valueAuditContentListAuditContentResultsResult["Label"].asString();
|
||||||
if(!allAuditContentListNodeResultsResult["Scene"].isNull())
|
if(!valueAuditContentListAuditContentResultsResult["Scene"].isNull())
|
||||||
resultsObject.scene = allAuditContentListNodeResultsResult["Scene"].asString();
|
resultsObject.scene = valueAuditContentListAuditContentResultsResult["Scene"].asString();
|
||||||
auditContentListObject.results.push_back(resultsObject);
|
auditContentListObject.results.push_back(resultsObject);
|
||||||
}
|
}
|
||||||
auto allFrameResultsNode = allAuditContentListNode["FrameResults"]["frameResult"];
|
auto allFrameResultsNode = valueAuditContentListAuditContent["FrameResults"]["frameResult"];
|
||||||
for (auto allAuditContentListNodeFrameResultsframeResult : allFrameResultsNode)
|
for (auto valueAuditContentListAuditContentFrameResultsframeResult : allFrameResultsNode)
|
||||||
{
|
{
|
||||||
AuditContent::FrameResult frameResultsObject;
|
AuditContent::FrameResult frameResultsObject;
|
||||||
if(!allAuditContentListNodeFrameResultsframeResult["Url"].isNull())
|
if(!valueAuditContentListAuditContentFrameResultsframeResult["Url"].isNull())
|
||||||
frameResultsObject.url = allAuditContentListNodeFrameResultsframeResult["Url"].asString();
|
frameResultsObject.url = valueAuditContentListAuditContentFrameResultsframeResult["Url"].asString();
|
||||||
if(!allAuditContentListNodeFrameResultsframeResult["Offset"].isNull())
|
if(!valueAuditContentListAuditContentFrameResultsframeResult["Offset"].isNull())
|
||||||
frameResultsObject.offset = std::stoi(allAuditContentListNodeFrameResultsframeResult["Offset"].asString());
|
frameResultsObject.offset = std::stoi(valueAuditContentListAuditContentFrameResultsframeResult["Offset"].asString());
|
||||||
if(!allAuditContentListNodeFrameResultsframeResult["Label"].isNull())
|
if(!valueAuditContentListAuditContentFrameResultsframeResult["Label"].isNull())
|
||||||
frameResultsObject.label = allAuditContentListNodeFrameResultsframeResult["Label"].asString();
|
frameResultsObject.label = valueAuditContentListAuditContentFrameResultsframeResult["Label"].asString();
|
||||||
auditContentListObject.frameResults.push_back(frameResultsObject);
|
auditContentListObject.frameResults.push_back(frameResultsObject);
|
||||||
}
|
}
|
||||||
auto allAuditIllegalReasons = value["AuditIllegalReasons"]["StringItem"];
|
auto allAuditIllegalReasons = value["AuditIllegalReasons"]["StringItem"];
|
||||||
|
|||||||
@@ -51,36 +51,36 @@ void DescribeCustomOcrTemplateResult::parse(const std::string &payload)
|
|||||||
ocrTemplateListObject.imgUrl = valueOcrTemplateListOcrTemplate["ImgUrl"].asString();
|
ocrTemplateListObject.imgUrl = valueOcrTemplateListOcrTemplate["ImgUrl"].asString();
|
||||||
if(!valueOcrTemplateListOcrTemplate["Status"].isNull())
|
if(!valueOcrTemplateListOcrTemplate["Status"].isNull())
|
||||||
ocrTemplateListObject.status = std::stoi(valueOcrTemplateListOcrTemplate["Status"].asString());
|
ocrTemplateListObject.status = std::stoi(valueOcrTemplateListOcrTemplate["Status"].asString());
|
||||||
auto allReferAreaNode = allOcrTemplateListNode["ReferArea"]["item"];
|
auto allReferAreaNode = valueOcrTemplateListOcrTemplate["ReferArea"]["item"];
|
||||||
for (auto allOcrTemplateListNodeReferAreaitem : allReferAreaNode)
|
for (auto valueOcrTemplateListOcrTemplateReferAreaitem : allReferAreaNode)
|
||||||
{
|
{
|
||||||
OcrTemplate::Item referAreaObject;
|
OcrTemplate::Item referAreaObject;
|
||||||
if(!allOcrTemplateListNodeReferAreaitem["Name"].isNull())
|
if(!valueOcrTemplateListOcrTemplateReferAreaitem["Name"].isNull())
|
||||||
referAreaObject.name = allOcrTemplateListNodeReferAreaitem["Name"].asString();
|
referAreaObject.name = valueOcrTemplateListOcrTemplateReferAreaitem["Name"].asString();
|
||||||
if(!allOcrTemplateListNodeReferAreaitem["X"].isNull())
|
if(!valueOcrTemplateListOcrTemplateReferAreaitem["X"].isNull())
|
||||||
referAreaObject.x = std::stoi(allOcrTemplateListNodeReferAreaitem["X"].asString());
|
referAreaObject.x = std::stoi(valueOcrTemplateListOcrTemplateReferAreaitem["X"].asString());
|
||||||
if(!allOcrTemplateListNodeReferAreaitem["Y"].isNull())
|
if(!valueOcrTemplateListOcrTemplateReferAreaitem["Y"].isNull())
|
||||||
referAreaObject.y = std::stoi(allOcrTemplateListNodeReferAreaitem["Y"].asString());
|
referAreaObject.y = std::stoi(valueOcrTemplateListOcrTemplateReferAreaitem["Y"].asString());
|
||||||
if(!allOcrTemplateListNodeReferAreaitem["Width"].isNull())
|
if(!valueOcrTemplateListOcrTemplateReferAreaitem["Width"].isNull())
|
||||||
referAreaObject.width = std::stoi(allOcrTemplateListNodeReferAreaitem["Width"].asString());
|
referAreaObject.width = std::stoi(valueOcrTemplateListOcrTemplateReferAreaitem["Width"].asString());
|
||||||
if(!allOcrTemplateListNodeReferAreaitem["Height"].isNull())
|
if(!valueOcrTemplateListOcrTemplateReferAreaitem["Height"].isNull())
|
||||||
referAreaObject.height = std::stoi(allOcrTemplateListNodeReferAreaitem["Height"].asString());
|
referAreaObject.height = std::stoi(valueOcrTemplateListOcrTemplateReferAreaitem["Height"].asString());
|
||||||
ocrTemplateListObject.referArea.push_back(referAreaObject);
|
ocrTemplateListObject.referArea.push_back(referAreaObject);
|
||||||
}
|
}
|
||||||
auto allRecognizeAreaNode = allOcrTemplateListNode["RecognizeArea"]["item"];
|
auto allRecognizeAreaNode = valueOcrTemplateListOcrTemplate["RecognizeArea"]["item"];
|
||||||
for (auto allOcrTemplateListNodeRecognizeAreaitem : allRecognizeAreaNode)
|
for (auto valueOcrTemplateListOcrTemplateRecognizeAreaitem : allRecognizeAreaNode)
|
||||||
{
|
{
|
||||||
OcrTemplate::Item recognizeAreaObject;
|
OcrTemplate::Item recognizeAreaObject;
|
||||||
if(!allOcrTemplateListNodeRecognizeAreaitem["Name"].isNull())
|
if(!valueOcrTemplateListOcrTemplateRecognizeAreaitem["Name"].isNull())
|
||||||
recognizeAreaObject.name = allOcrTemplateListNodeRecognizeAreaitem["Name"].asString();
|
recognizeAreaObject.name = valueOcrTemplateListOcrTemplateRecognizeAreaitem["Name"].asString();
|
||||||
if(!allOcrTemplateListNodeRecognizeAreaitem["X"].isNull())
|
if(!valueOcrTemplateListOcrTemplateRecognizeAreaitem["X"].isNull())
|
||||||
recognizeAreaObject.x = std::stoi(allOcrTemplateListNodeRecognizeAreaitem["X"].asString());
|
recognizeAreaObject.x = std::stoi(valueOcrTemplateListOcrTemplateRecognizeAreaitem["X"].asString());
|
||||||
if(!allOcrTemplateListNodeRecognizeAreaitem["Y"].isNull())
|
if(!valueOcrTemplateListOcrTemplateRecognizeAreaitem["Y"].isNull())
|
||||||
recognizeAreaObject.y = std::stoi(allOcrTemplateListNodeRecognizeAreaitem["Y"].asString());
|
recognizeAreaObject.y = std::stoi(valueOcrTemplateListOcrTemplateRecognizeAreaitem["Y"].asString());
|
||||||
if(!allOcrTemplateListNodeRecognizeAreaitem["Width"].isNull())
|
if(!valueOcrTemplateListOcrTemplateRecognizeAreaitem["Width"].isNull())
|
||||||
recognizeAreaObject.width = std::stoi(allOcrTemplateListNodeRecognizeAreaitem["Width"].asString());
|
recognizeAreaObject.width = std::stoi(valueOcrTemplateListOcrTemplateRecognizeAreaitem["Width"].asString());
|
||||||
if(!allOcrTemplateListNodeRecognizeAreaitem["Height"].isNull())
|
if(!valueOcrTemplateListOcrTemplateRecognizeAreaitem["Height"].isNull())
|
||||||
recognizeAreaObject.height = std::stoi(allOcrTemplateListNodeRecognizeAreaitem["Height"].asString());
|
recognizeAreaObject.height = std::stoi(valueOcrTemplateListOcrTemplateRecognizeAreaitem["Height"].asString());
|
||||||
ocrTemplateListObject.recognizeArea.push_back(recognizeAreaObject);
|
ocrTemplateListObject.recognizeArea.push_back(recognizeAreaObject);
|
||||||
}
|
}
|
||||||
ocrTemplateList_.push_back(ocrTemplateListObject);
|
ocrTemplateList_.push_back(ocrTemplateListObject);
|
||||||
|
|||||||
84
green/src/model/DescribeOpenApiRcpStatsRequest.cc
Normal file
84
green/src/model/DescribeOpenApiRcpStatsRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
/*
|
||||||
|
* 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/green/model/DescribeOpenApiRcpStatsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Green::Model::DescribeOpenApiRcpStatsRequest;
|
||||||
|
|
||||||
|
DescribeOpenApiRcpStatsRequest::DescribeOpenApiRcpStatsRequest() :
|
||||||
|
RpcServiceRequest("green", "2017-08-23", "DescribeOpenApiRcpStats")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
DescribeOpenApiRcpStatsRequest::~DescribeOpenApiRcpStatsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string DescribeOpenApiRcpStatsRequest::getStartDate()const
|
||||||
|
{
|
||||||
|
return startDate_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeOpenApiRcpStatsRequest::setStartDate(const std::string& startDate)
|
||||||
|
{
|
||||||
|
startDate_ = startDate;
|
||||||
|
setParameter("StartDate", startDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DescribeOpenApiRcpStatsRequest::getResourceType()const
|
||||||
|
{
|
||||||
|
return resourceType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeOpenApiRcpStatsRequest::setResourceType(const std::string& resourceType)
|
||||||
|
{
|
||||||
|
resourceType_ = resourceType;
|
||||||
|
setParameter("ResourceType", resourceType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DescribeOpenApiRcpStatsRequest::getBizType()const
|
||||||
|
{
|
||||||
|
return bizType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeOpenApiRcpStatsRequest::setBizType(const std::string& bizType)
|
||||||
|
{
|
||||||
|
bizType_ = bizType;
|
||||||
|
setParameter("BizType", bizType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DescribeOpenApiRcpStatsRequest::getEndDate()const
|
||||||
|
{
|
||||||
|
return endDate_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeOpenApiRcpStatsRequest::setEndDate(const std::string& endDate)
|
||||||
|
{
|
||||||
|
endDate_ = endDate;
|
||||||
|
setParameter("EndDate", endDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DescribeOpenApiRcpStatsRequest::getSourceIp()const
|
||||||
|
{
|
||||||
|
return sourceIp_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeOpenApiRcpStatsRequest::setSourceIp(const std::string& sourceIp)
|
||||||
|
{
|
||||||
|
sourceIp_ = sourceIp;
|
||||||
|
setParameter("SourceIp", sourceIp);
|
||||||
|
}
|
||||||
|
|
||||||
76
green/src/model/DescribeOpenApiRcpStatsResult.cc
Normal file
76
green/src/model/DescribeOpenApiRcpStatsResult.cc
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
/*
|
||||||
|
* 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/green/model/DescribeOpenApiRcpStatsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Green;
|
||||||
|
using namespace AlibabaCloud::Green::Model;
|
||||||
|
|
||||||
|
DescribeOpenApiRcpStatsResult::DescribeOpenApiRcpStatsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DescribeOpenApiRcpStatsResult::DescribeOpenApiRcpStatsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DescribeOpenApiRcpStatsResult::~DescribeOpenApiRcpStatsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DescribeOpenApiRcpStatsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allStatListNode = value["StatList"]["stat"];
|
||||||
|
for (auto valueStatListstat : allStatListNode)
|
||||||
|
{
|
||||||
|
Stat statListObject;
|
||||||
|
if(!valueStatListstat["Date"].isNull())
|
||||||
|
statListObject.date = valueStatListstat["Date"].asString();
|
||||||
|
if(!valueStatListstat["ResourceType"].isNull())
|
||||||
|
statListObject.resourceType = valueStatListstat["ResourceType"].asString();
|
||||||
|
if(!valueStatListstat["TotalCount"].isNull())
|
||||||
|
statListObject.totalCount = std::stoi(valueStatListstat["TotalCount"].asString());
|
||||||
|
if(!valueStatListstat["PassCount"].isNull())
|
||||||
|
statListObject.passCount = std::stoi(valueStatListstat["PassCount"].asString());
|
||||||
|
if(!valueStatListstat["ReviewCount"].isNull())
|
||||||
|
statListObject.reviewCount = std::stoi(valueStatListstat["ReviewCount"].asString());
|
||||||
|
if(!valueStatListstat["BlockCount"].isNull())
|
||||||
|
statListObject.blockCount = std::stoi(valueStatListstat["BlockCount"].asString());
|
||||||
|
if(!valueStatListstat["TotalDuration"].isNull())
|
||||||
|
statListObject.totalDuration = std::stoi(valueStatListstat["TotalDuration"].asString());
|
||||||
|
statList_.push_back(statListObject);
|
||||||
|
}
|
||||||
|
if(!value["TotalCount"].isNull())
|
||||||
|
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int DescribeOpenApiRcpStatsResult::getTotalCount()const
|
||||||
|
{
|
||||||
|
return totalCount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<DescribeOpenApiRcpStatsResult::Stat> DescribeOpenApiRcpStatsResult::getStatList()const
|
||||||
|
{
|
||||||
|
return statList_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -84,6 +84,10 @@ void DescribeOssIncrementCheckSettingResult::parse(const std::string &payload)
|
|||||||
videoMaxSize_ = std::stoi(value["VideoMaxSize"].asString());
|
videoMaxSize_ = std::stoi(value["VideoMaxSize"].asString());
|
||||||
if(!value["AutoFreezeType"].isNull())
|
if(!value["AutoFreezeType"].isNull())
|
||||||
autoFreezeType_ = value["AutoFreezeType"].asString();
|
autoFreezeType_ = value["AutoFreezeType"].asString();
|
||||||
|
if(!value["CallbackId"].isNull())
|
||||||
|
callbackId_ = value["CallbackId"].asString();
|
||||||
|
if(!value["CallbackName"].isNull())
|
||||||
|
callbackName_ = value["CallbackName"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,19 +96,9 @@ std::vector<std::string> DescribeOssIncrementCheckSettingResult::getVideoAutoFre
|
|||||||
return videoAutoFreezeSceneList_;
|
return videoAutoFreezeSceneList_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::string> DescribeOssIncrementCheckSettingResult::getVideoSceneList()const
|
std::string DescribeOssIncrementCheckSettingResult::getCallbackId()const
|
||||||
{
|
{
|
||||||
return videoSceneList_;
|
return callbackId_;
|
||||||
}
|
|
||||||
|
|
||||||
bool DescribeOssIncrementCheckSettingResult::getImageEnableLimit()const
|
|
||||||
{
|
|
||||||
return imageEnableLimit_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<std::string> DescribeOssIncrementCheckSettingResult::getImageSceneList()const
|
|
||||||
{
|
|
||||||
return imageSceneList_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
long DescribeOssIncrementCheckSettingResult::getImageScanLimit()const
|
long DescribeOssIncrementCheckSettingResult::getImageScanLimit()const
|
||||||
@@ -122,16 +116,36 @@ DescribeOssIncrementCheckSettingResult::ImageAutoFreeze DescribeOssIncrementChec
|
|||||||
return imageAutoFreeze_;
|
return imageAutoFreeze_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string DescribeOssIncrementCheckSettingResult::getAutoFreezeType()const
|
|
||||||
{
|
|
||||||
return autoFreezeType_;
|
|
||||||
}
|
|
||||||
|
|
||||||
int DescribeOssIncrementCheckSettingResult::getVideoFrameInterval()const
|
int DescribeOssIncrementCheckSettingResult::getVideoFrameInterval()const
|
||||||
{
|
{
|
||||||
return videoFrameInterval_;
|
return videoFrameInterval_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> DescribeOssIncrementCheckSettingResult::getVideoSceneList()const
|
||||||
|
{
|
||||||
|
return videoSceneList_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool DescribeOssIncrementCheckSettingResult::getImageEnableLimit()const
|
||||||
|
{
|
||||||
|
return imageEnableLimit_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> DescribeOssIncrementCheckSettingResult::getImageSceneList()const
|
||||||
|
{
|
||||||
|
return imageSceneList_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DescribeOssIncrementCheckSettingResult::getCallbackName()const
|
||||||
|
{
|
||||||
|
return callbackName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DescribeOssIncrementCheckSettingResult::getAutoFreezeType()const
|
||||||
|
{
|
||||||
|
return autoFreezeType_;
|
||||||
|
}
|
||||||
|
|
||||||
int DescribeOssIncrementCheckSettingResult::getVideoMaxFrames()const
|
int DescribeOssIncrementCheckSettingResult::getVideoMaxFrames()const
|
||||||
{
|
{
|
||||||
return videoMaxFrames_;
|
return videoMaxFrames_;
|
||||||
|
|||||||
@@ -49,6 +49,12 @@ void DescribeOssIncrementOverviewResult::parse(const std::string &payload)
|
|||||||
pornUnhandleCount_ = std::stoi(value["PornUnhandleCount"].asString());
|
pornUnhandleCount_ = std::stoi(value["PornUnhandleCount"].asString());
|
||||||
if(!value["TerrorismUnhandleCount"].isNull())
|
if(!value["TerrorismUnhandleCount"].isNull())
|
||||||
terrorismUnhandleCount_ = std::stoi(value["TerrorismUnhandleCount"].asString());
|
terrorismUnhandleCount_ = std::stoi(value["TerrorismUnhandleCount"].asString());
|
||||||
|
if(!value["AdUnhandleCount"].isNull())
|
||||||
|
adUnhandleCount_ = std::stoi(value["AdUnhandleCount"].asString());
|
||||||
|
if(!value["LiveUnhandleCount"].isNull())
|
||||||
|
liveUnhandleCount_ = std::stoi(value["LiveUnhandleCount"].asString());
|
||||||
|
if(!value["VoiceAntispamUnhandleCount"].isNull())
|
||||||
|
voiceAntispamUnhandleCount_ = std::stoi(value["VoiceAntispamUnhandleCount"].asString());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,11 +68,21 @@ int DescribeOssIncrementOverviewResult::getVideoCount()const
|
|||||||
return videoCount_;
|
return videoCount_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int DescribeOssIncrementOverviewResult::getVoiceAntispamUnhandleCount()const
|
||||||
|
{
|
||||||
|
return voiceAntispamUnhandleCount_;
|
||||||
|
}
|
||||||
|
|
||||||
int DescribeOssIncrementOverviewResult::getPornUnhandleCount()const
|
int DescribeOssIncrementOverviewResult::getPornUnhandleCount()const
|
||||||
{
|
{
|
||||||
return pornUnhandleCount_;
|
return pornUnhandleCount_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int DescribeOssIncrementOverviewResult::getLiveUnhandleCount()const
|
||||||
|
{
|
||||||
|
return liveUnhandleCount_;
|
||||||
|
}
|
||||||
|
|
||||||
int DescribeOssIncrementOverviewResult::getVideoFrameCount()const
|
int DescribeOssIncrementOverviewResult::getVideoFrameCount()const
|
||||||
{
|
{
|
||||||
return videoFrameCount_;
|
return videoFrameCount_;
|
||||||
@@ -77,3 +93,8 @@ int DescribeOssIncrementOverviewResult::getTerrorismUnhandleCount()const
|
|||||||
return terrorismUnhandleCount_;
|
return terrorismUnhandleCount_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int DescribeOssIncrementOverviewResult::getAdUnhandleCount()const
|
||||||
|
{
|
||||||
|
return adUnhandleCount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,17 @@ void DescribeOssResultItemsRequest::setMaxScore(float maxScore)
|
|||||||
setParameter("MaxScore", std::to_string(maxScore));
|
setParameter("MaxScore", std::to_string(maxScore));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long DescribeOssResultItemsRequest::getStockTaskId()const
|
||||||
|
{
|
||||||
|
return stockTaskId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeOssResultItemsRequest::setStockTaskId(long stockTaskId)
|
||||||
|
{
|
||||||
|
stockTaskId_ = stockTaskId;
|
||||||
|
setParameter("StockTaskId", std::to_string(stockTaskId));
|
||||||
|
}
|
||||||
|
|
||||||
std::string DescribeOssResultItemsRequest::getStartDate()const
|
std::string DescribeOssResultItemsRequest::getStartDate()const
|
||||||
{
|
{
|
||||||
return startDate_;
|
return startDate_;
|
||||||
|
|||||||
@@ -71,18 +71,34 @@ void DescribeOssResultItemsResult::parse(const std::string &payload)
|
|||||||
scanResultListObject.handleStatus = std::stoi(valueScanResultListScanResult["HandleStatus"].asString());
|
scanResultListObject.handleStatus = std::stoi(valueScanResultListScanResult["HandleStatus"].asString());
|
||||||
if(!valueScanResultListScanResult["ResourceStatus"].isNull())
|
if(!valueScanResultListScanResult["ResourceStatus"].isNull())
|
||||||
scanResultListObject.resourceStatus = std::stoi(valueScanResultListScanResult["ResourceStatus"].asString());
|
scanResultListObject.resourceStatus = std::stoi(valueScanResultListScanResult["ResourceStatus"].asString());
|
||||||
auto allFrameResultsNode = allScanResultListNode["FrameResults"]["FrameResult"];
|
if(!valueScanResultListScanResult["Content"].isNull())
|
||||||
for (auto allScanResultListNodeFrameResultsFrameResult : allFrameResultsNode)
|
scanResultListObject.content = valueScanResultListScanResult["Content"].asString();
|
||||||
|
auto allFrameResultsNode = valueScanResultListScanResult["FrameResults"]["FrameResult"];
|
||||||
|
for (auto valueScanResultListScanResultFrameResultsFrameResult : allFrameResultsNode)
|
||||||
{
|
{
|
||||||
ScanResult::FrameResult frameResultsObject;
|
ScanResult::FrameResult frameResultsObject;
|
||||||
if(!allScanResultListNodeFrameResultsFrameResult["Thumbnail"].isNull())
|
if(!valueScanResultListScanResultFrameResultsFrameResult["Thumbnail"].isNull())
|
||||||
frameResultsObject.thumbnail = allScanResultListNodeFrameResultsFrameResult["Thumbnail"].asString();
|
frameResultsObject.thumbnail = valueScanResultListScanResultFrameResultsFrameResult["Thumbnail"].asString();
|
||||||
if(!allScanResultListNodeFrameResultsFrameResult["Offset"].isNull())
|
if(!valueScanResultListScanResultFrameResultsFrameResult["Offset"].isNull())
|
||||||
frameResultsObject.offset = std::stoi(allScanResultListNodeFrameResultsFrameResult["Offset"].asString());
|
frameResultsObject.offset = std::stoi(valueScanResultListScanResultFrameResultsFrameResult["Offset"].asString());
|
||||||
if(!allScanResultListNodeFrameResultsFrameResult["Url"].isNull())
|
if(!valueScanResultListScanResultFrameResultsFrameResult["Url"].isNull())
|
||||||
frameResultsObject.url = allScanResultListNodeFrameResultsFrameResult["Url"].asString();
|
frameResultsObject.url = valueScanResultListScanResultFrameResultsFrameResult["Url"].asString();
|
||||||
scanResultListObject.frameResults.push_back(frameResultsObject);
|
scanResultListObject.frameResults.push_back(frameResultsObject);
|
||||||
}
|
}
|
||||||
|
auto allVoiceSegmentAntispamResultsNode = valueScanResultListScanResult["VoiceSegmentAntispamResults"]["VoiceSegmentAntispamResult"];
|
||||||
|
for (auto valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult : allVoiceSegmentAntispamResultsNode)
|
||||||
|
{
|
||||||
|
ScanResult::VoiceSegmentAntispamResult voiceSegmentAntispamResultsObject;
|
||||||
|
if(!valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult["Text"].isNull())
|
||||||
|
voiceSegmentAntispamResultsObject.text = valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult["Text"].asString();
|
||||||
|
if(!valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult["EndTime"].isNull())
|
||||||
|
voiceSegmentAntispamResultsObject.endTime = std::stoi(valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult["EndTime"].asString());
|
||||||
|
if(!valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult["StartTime"].isNull())
|
||||||
|
voiceSegmentAntispamResultsObject.startTime = std::stoi(valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult["StartTime"].asString());
|
||||||
|
if(!valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult["Label"].isNull())
|
||||||
|
voiceSegmentAntispamResultsObject.label = valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult["Label"].asString();
|
||||||
|
scanResultListObject.voiceSegmentAntispamResults.push_back(voiceSegmentAntispamResultsObject);
|
||||||
|
}
|
||||||
scanResultList_.push_back(scanResultListObject);
|
scanResultList_.push_back(scanResultListObject);
|
||||||
}
|
}
|
||||||
if(!value["PageSize"].isNull())
|
if(!value["PageSize"].isNull())
|
||||||
|
|||||||
@@ -104,6 +104,17 @@ void DescribeViewContentRequest::setPageSize(int pageSize)
|
|||||||
setParameter("PageSize", std::to_string(pageSize));
|
setParameter("PageSize", std::to_string(pageSize));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string DescribeViewContentRequest::getKeyword()const
|
||||||
|
{
|
||||||
|
return keyword_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeViewContentRequest::setKeyword(const std::string& keyword)
|
||||||
|
{
|
||||||
|
keyword_ = keyword;
|
||||||
|
setParameter("Keyword", keyword);
|
||||||
|
}
|
||||||
|
|
||||||
std::string DescribeViewContentRequest::getTaskId()const
|
std::string DescribeViewContentRequest::getTaskId()const
|
||||||
{
|
{
|
||||||
return taskId_;
|
return taskId_;
|
||||||
|
|||||||
@@ -67,26 +67,26 @@ void DescribeViewContentResult::parse(const std::string &payload)
|
|||||||
viewContentListObject.id = std::stol(valueViewContentListViewContent["Id"].asString());
|
viewContentListObject.id = std::stol(valueViewContentListViewContent["Id"].asString());
|
||||||
if(!valueViewContentListViewContent["ScanResult"].isNull())
|
if(!valueViewContentListViewContent["ScanResult"].isNull())
|
||||||
viewContentListObject.scanResult = valueViewContentListViewContent["ScanResult"].asString();
|
viewContentListObject.scanResult = valueViewContentListViewContent["ScanResult"].asString();
|
||||||
auto allResultsNode = allViewContentListNode["Results"]["Result"];
|
auto allResultsNode = valueViewContentListViewContent["Results"]["Result"];
|
||||||
for (auto allViewContentListNodeResultsResult : allResultsNode)
|
for (auto valueViewContentListViewContentResultsResult : allResultsNode)
|
||||||
{
|
{
|
||||||
ViewContent::Result resultsObject;
|
ViewContent::Result resultsObject;
|
||||||
if(!allViewContentListNodeResultsResult["Suggestion"].isNull())
|
if(!valueViewContentListViewContentResultsResult["Suggestion"].isNull())
|
||||||
resultsObject.suggestion = allViewContentListNodeResultsResult["Suggestion"].asString();
|
resultsObject.suggestion = valueViewContentListViewContentResultsResult["Suggestion"].asString();
|
||||||
if(!allViewContentListNodeResultsResult["Label"].isNull())
|
if(!valueViewContentListViewContentResultsResult["Label"].isNull())
|
||||||
resultsObject.label = allViewContentListNodeResultsResult["Label"].asString();
|
resultsObject.label = valueViewContentListViewContentResultsResult["Label"].asString();
|
||||||
if(!allViewContentListNodeResultsResult["Scene"].isNull())
|
if(!valueViewContentListViewContentResultsResult["Scene"].isNull())
|
||||||
resultsObject.scene = allViewContentListNodeResultsResult["Scene"].asString();
|
resultsObject.scene = valueViewContentListViewContentResultsResult["Scene"].asString();
|
||||||
viewContentListObject.results.push_back(resultsObject);
|
viewContentListObject.results.push_back(resultsObject);
|
||||||
}
|
}
|
||||||
auto allFrameResultsNode = allViewContentListNode["FrameResults"]["frameResult"];
|
auto allFrameResultsNode = valueViewContentListViewContent["FrameResults"]["frameResult"];
|
||||||
for (auto allViewContentListNodeFrameResultsframeResult : allFrameResultsNode)
|
for (auto valueViewContentListViewContentFrameResultsframeResult : allFrameResultsNode)
|
||||||
{
|
{
|
||||||
ViewContent::FrameResult frameResultsObject;
|
ViewContent::FrameResult frameResultsObject;
|
||||||
if(!allViewContentListNodeFrameResultsframeResult["Url"].isNull())
|
if(!valueViewContentListViewContentFrameResultsframeResult["Url"].isNull())
|
||||||
frameResultsObject.url = allViewContentListNodeFrameResultsframeResult["Url"].asString();
|
frameResultsObject.url = valueViewContentListViewContentFrameResultsframeResult["Url"].asString();
|
||||||
if(!allViewContentListNodeFrameResultsframeResult["Offset"].isNull())
|
if(!valueViewContentListViewContentFrameResultsframeResult["Offset"].isNull())
|
||||||
frameResultsObject.offset = std::stoi(allViewContentListNodeFrameResultsframeResult["Offset"].asString());
|
frameResultsObject.offset = std::stoi(valueViewContentListViewContentFrameResultsframeResult["Offset"].asString());
|
||||||
viewContentListObject.frameResults.push_back(frameResultsObject);
|
viewContentListObject.frameResults.push_back(frameResultsObject);
|
||||||
}
|
}
|
||||||
viewContentList_.push_back(viewContentListObject);
|
viewContentList_.push_back(viewContentListObject);
|
||||||
|
|||||||
84
green/src/model/ExportOpenApiRcpStatsRequest.cc
Normal file
84
green/src/model/ExportOpenApiRcpStatsRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
/*
|
||||||
|
* 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/green/model/ExportOpenApiRcpStatsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Green::Model::ExportOpenApiRcpStatsRequest;
|
||||||
|
|
||||||
|
ExportOpenApiRcpStatsRequest::ExportOpenApiRcpStatsRequest() :
|
||||||
|
RpcServiceRequest("green", "2017-08-23", "ExportOpenApiRcpStats")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ExportOpenApiRcpStatsRequest::~ExportOpenApiRcpStatsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ExportOpenApiRcpStatsRequest::getStartDate()const
|
||||||
|
{
|
||||||
|
return startDate_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExportOpenApiRcpStatsRequest::setStartDate(const std::string& startDate)
|
||||||
|
{
|
||||||
|
startDate_ = startDate;
|
||||||
|
setParameter("StartDate", startDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ExportOpenApiRcpStatsRequest::getResourceType()const
|
||||||
|
{
|
||||||
|
return resourceType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExportOpenApiRcpStatsRequest::setResourceType(const std::string& resourceType)
|
||||||
|
{
|
||||||
|
resourceType_ = resourceType;
|
||||||
|
setParameter("ResourceType", resourceType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ExportOpenApiRcpStatsRequest::getBizType()const
|
||||||
|
{
|
||||||
|
return bizType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExportOpenApiRcpStatsRequest::setBizType(const std::string& bizType)
|
||||||
|
{
|
||||||
|
bizType_ = bizType;
|
||||||
|
setParameter("BizType", bizType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ExportOpenApiRcpStatsRequest::getEndDate()const
|
||||||
|
{
|
||||||
|
return endDate_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExportOpenApiRcpStatsRequest::setEndDate(const std::string& endDate)
|
||||||
|
{
|
||||||
|
endDate_ = endDate;
|
||||||
|
setParameter("EndDate", endDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ExportOpenApiRcpStatsRequest::getSourceIp()const
|
||||||
|
{
|
||||||
|
return sourceIp_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExportOpenApiRcpStatsRequest::setSourceIp(const std::string& sourceIp)
|
||||||
|
{
|
||||||
|
sourceIp_ = sourceIp;
|
||||||
|
setParameter("SourceIp", sourceIp);
|
||||||
|
}
|
||||||
|
|
||||||
51
green/src/model/ExportOpenApiRcpStatsResult.cc
Normal file
51
green/src/model/ExportOpenApiRcpStatsResult.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/green/model/ExportOpenApiRcpStatsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Green;
|
||||||
|
using namespace AlibabaCloud::Green::Model;
|
||||||
|
|
||||||
|
ExportOpenApiRcpStatsResult::ExportOpenApiRcpStatsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ExportOpenApiRcpStatsResult::ExportOpenApiRcpStatsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ExportOpenApiRcpStatsResult::~ExportOpenApiRcpStatsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ExportOpenApiRcpStatsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["DownloadUrl"].isNull())
|
||||||
|
downloadUrl_ = value["DownloadUrl"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ExportOpenApiRcpStatsResult::getDownloadUrl()const
|
||||||
|
{
|
||||||
|
return downloadUrl_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -49,6 +49,17 @@ void ExportOssResultRequest::setMaxScore(float maxScore)
|
|||||||
setParameter("MaxScore", std::to_string(maxScore));
|
setParameter("MaxScore", std::to_string(maxScore));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long ExportOssResultRequest::getStockTaskId()const
|
||||||
|
{
|
||||||
|
return stockTaskId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExportOssResultRequest::setStockTaskId(long stockTaskId)
|
||||||
|
{
|
||||||
|
stockTaskId_ = stockTaskId;
|
||||||
|
setParameter("StockTaskId", std::to_string(stockTaskId));
|
||||||
|
}
|
||||||
|
|
||||||
std::string ExportOssResultRequest::getStartDate()const
|
std::string ExportOssResultRequest::getStartDate()const
|
||||||
{
|
{
|
||||||
return startDate_;
|
return startDate_;
|
||||||
|
|||||||
41
green/src/model/LiveStreamAsyncScanRequest.cc
Normal file
41
green/src/model/LiveStreamAsyncScanRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
* 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/green/model/LiveStreamAsyncScanRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Green::Model::LiveStreamAsyncScanRequest;
|
||||||
|
|
||||||
|
LiveStreamAsyncScanRequest::LiveStreamAsyncScanRequest() :
|
||||||
|
RoaServiceRequest("green", "2018-05-09")
|
||||||
|
{
|
||||||
|
setResourcePath("/green/livestream/asyncscan");
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
LiveStreamAsyncScanRequest::~LiveStreamAsyncScanRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string LiveStreamAsyncScanRequest::getClientInfo()const
|
||||||
|
{
|
||||||
|
return clientInfo_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LiveStreamAsyncScanRequest::setClientInfo(const std::string& clientInfo)
|
||||||
|
{
|
||||||
|
clientInfo_ = clientInfo;
|
||||||
|
setParameter("ClientInfo", clientInfo);
|
||||||
|
}
|
||||||
|
|
||||||
44
green/src/model/LiveStreamAsyncScanResult.cc
Normal file
44
green/src/model/LiveStreamAsyncScanResult.cc
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* 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/green/model/LiveStreamAsyncScanResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Green;
|
||||||
|
using namespace AlibabaCloud::Green::Model;
|
||||||
|
|
||||||
|
LiveStreamAsyncScanResult::LiveStreamAsyncScanResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
LiveStreamAsyncScanResult::LiveStreamAsyncScanResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
LiveStreamAsyncScanResult::~LiveStreamAsyncScanResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void LiveStreamAsyncScanResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
41
green/src/model/LiveStreamAsyncScanResultsRequest.cc
Normal file
41
green/src/model/LiveStreamAsyncScanResultsRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
* 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/green/model/LiveStreamAsyncScanResultsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Green::Model::LiveStreamAsyncScanResultsRequest;
|
||||||
|
|
||||||
|
LiveStreamAsyncScanResultsRequest::LiveStreamAsyncScanResultsRequest() :
|
||||||
|
RoaServiceRequest("green", "2018-05-09")
|
||||||
|
{
|
||||||
|
setResourcePath("/green/livestream/results");
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
LiveStreamAsyncScanResultsRequest::~LiveStreamAsyncScanResultsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string LiveStreamAsyncScanResultsRequest::getClientInfo()const
|
||||||
|
{
|
||||||
|
return clientInfo_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LiveStreamAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo)
|
||||||
|
{
|
||||||
|
clientInfo_ = clientInfo;
|
||||||
|
setParameter("ClientInfo", clientInfo);
|
||||||
|
}
|
||||||
|
|
||||||
44
green/src/model/LiveStreamAsyncScanResultsResult.cc
Normal file
44
green/src/model/LiveStreamAsyncScanResultsResult.cc
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* 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/green/model/LiveStreamAsyncScanResultsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Green;
|
||||||
|
using namespace AlibabaCloud::Green::Model;
|
||||||
|
|
||||||
|
LiveStreamAsyncScanResultsResult::LiveStreamAsyncScanResultsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
LiveStreamAsyncScanResultsResult::LiveStreamAsyncScanResultsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
LiveStreamAsyncScanResultsResult::~LiveStreamAsyncScanResultsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void LiveStreamAsyncScanResultsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
41
green/src/model/LiveStreamCancelScanRequest.cc
Normal file
41
green/src/model/LiveStreamCancelScanRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
* 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/green/model/LiveStreamCancelScanRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Green::Model::LiveStreamCancelScanRequest;
|
||||||
|
|
||||||
|
LiveStreamCancelScanRequest::LiveStreamCancelScanRequest() :
|
||||||
|
RoaServiceRequest("green", "2018-05-09")
|
||||||
|
{
|
||||||
|
setResourcePath("/green/livestream/cancelscan");
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
LiveStreamCancelScanRequest::~LiveStreamCancelScanRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string LiveStreamCancelScanRequest::getClientInfo()const
|
||||||
|
{
|
||||||
|
return clientInfo_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LiveStreamCancelScanRequest::setClientInfo(const std::string& clientInfo)
|
||||||
|
{
|
||||||
|
clientInfo_ = clientInfo;
|
||||||
|
setParameter("ClientInfo", clientInfo);
|
||||||
|
}
|
||||||
|
|
||||||
44
green/src/model/LiveStreamCancelScanResult.cc
Normal file
44
green/src/model/LiveStreamCancelScanResult.cc
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* 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/green/model/LiveStreamCancelScanResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Green;
|
||||||
|
using namespace AlibabaCloud::Green::Model;
|
||||||
|
|
||||||
|
LiveStreamCancelScanResult::LiveStreamCancelScanResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
LiveStreamCancelScanResult::LiveStreamCancelScanResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
LiveStreamCancelScanResult::~LiveStreamCancelScanResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void LiveStreamCancelScanResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@@ -71,6 +71,17 @@ void UpdateOssIncrementCheckSettingRequest::setSourceIp(const std::string& sourc
|
|||||||
setParameter("SourceIp", sourceIp);
|
setParameter("SourceIp", sourceIp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string UpdateOssIncrementCheckSettingRequest::getCallbackId()const
|
||||||
|
{
|
||||||
|
return callbackId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateOssIncrementCheckSettingRequest::setCallbackId(const std::string& callbackId)
|
||||||
|
{
|
||||||
|
callbackId_ = callbackId;
|
||||||
|
setParameter("CallbackId", callbackId);
|
||||||
|
}
|
||||||
|
|
||||||
std::string UpdateOssIncrementCheckSettingRequest::getImageScanLimit()const
|
std::string UpdateOssIncrementCheckSettingRequest::getImageScanLimit()const
|
||||||
{
|
{
|
||||||
return imageScanLimit_;
|
return imageScanLimit_;
|
||||||
|
|||||||
41
green/src/model/VodAsyncScanRequest.cc
Normal file
41
green/src/model/VodAsyncScanRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
* 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/green/model/VodAsyncScanRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Green::Model::VodAsyncScanRequest;
|
||||||
|
|
||||||
|
VodAsyncScanRequest::VodAsyncScanRequest() :
|
||||||
|
RoaServiceRequest("green", "2018-05-09")
|
||||||
|
{
|
||||||
|
setResourcePath("/green/vod/asyncscan");
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
VodAsyncScanRequest::~VodAsyncScanRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string VodAsyncScanRequest::getClientInfo()const
|
||||||
|
{
|
||||||
|
return clientInfo_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VodAsyncScanRequest::setClientInfo(const std::string& clientInfo)
|
||||||
|
{
|
||||||
|
clientInfo_ = clientInfo;
|
||||||
|
setParameter("ClientInfo", clientInfo);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -14,26 +14,26 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/rtc/model/DeleteMAURuleResult.h>
|
#include <alibabacloud/green/model/VodAsyncScanResult.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
using namespace AlibabaCloud::Rtc;
|
using namespace AlibabaCloud::Green;
|
||||||
using namespace AlibabaCloud::Rtc::Model;
|
using namespace AlibabaCloud::Green::Model;
|
||||||
|
|
||||||
DeleteMAURuleResult::DeleteMAURuleResult() :
|
VodAsyncScanResult::VodAsyncScanResult() :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
DeleteMAURuleResult::DeleteMAURuleResult(const std::string &payload) :
|
VodAsyncScanResult::VodAsyncScanResult(const std::string &payload) :
|
||||||
ServiceResult()
|
ServiceResult()
|
||||||
{
|
{
|
||||||
parse(payload);
|
parse(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
DeleteMAURuleResult::~DeleteMAURuleResult()
|
VodAsyncScanResult::~VodAsyncScanResult()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void DeleteMAURuleResult::parse(const std::string &payload)
|
void VodAsyncScanResult::parse(const std::string &payload)
|
||||||
{
|
{
|
||||||
Json::Reader reader;
|
Json::Reader reader;
|
||||||
Json::Value value;
|
Json::Value value;
|
||||||
41
green/src/model/VodAsyncScanResultsRequest.cc
Normal file
41
green/src/model/VodAsyncScanResultsRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
* 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/green/model/VodAsyncScanResultsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Green::Model::VodAsyncScanResultsRequest;
|
||||||
|
|
||||||
|
VodAsyncScanResultsRequest::VodAsyncScanResultsRequest() :
|
||||||
|
RoaServiceRequest("green", "2018-05-09")
|
||||||
|
{
|
||||||
|
setResourcePath("/green/vod/results");
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
VodAsyncScanResultsRequest::~VodAsyncScanResultsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string VodAsyncScanResultsRequest::getClientInfo()const
|
||||||
|
{
|
||||||
|
return clientInfo_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VodAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo)
|
||||||
|
{
|
||||||
|
clientInfo_ = clientInfo;
|
||||||
|
setParameter("ClientInfo", clientInfo);
|
||||||
|
}
|
||||||
|
|
||||||
44
green/src/model/VodAsyncScanResultsResult.cc
Normal file
44
green/src/model/VodAsyncScanResultsResult.cc
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* 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/green/model/VodAsyncScanResultsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Green;
|
||||||
|
using namespace AlibabaCloud::Green::Model;
|
||||||
|
|
||||||
|
VodAsyncScanResultsResult::VodAsyncScanResultsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
VodAsyncScanResultsResult::VodAsyncScanResultsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
VodAsyncScanResultsResult::~VodAsyncScanResultsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void VodAsyncScanResultsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
41
green/src/model/WebpageAsyncScanRequest.cc
Normal file
41
green/src/model/WebpageAsyncScanRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
* 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/green/model/WebpageAsyncScanRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Green::Model::WebpageAsyncScanRequest;
|
||||||
|
|
||||||
|
WebpageAsyncScanRequest::WebpageAsyncScanRequest() :
|
||||||
|
RoaServiceRequest("green", "2018-05-09")
|
||||||
|
{
|
||||||
|
setResourcePath("/green/webpage/asyncscan");
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
WebpageAsyncScanRequest::~WebpageAsyncScanRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string WebpageAsyncScanRequest::getClientInfo()const
|
||||||
|
{
|
||||||
|
return clientInfo_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebpageAsyncScanRequest::setClientInfo(const std::string& clientInfo)
|
||||||
|
{
|
||||||
|
clientInfo_ = clientInfo;
|
||||||
|
setParameter("ClientInfo", clientInfo);
|
||||||
|
}
|
||||||
|
|
||||||
44
green/src/model/WebpageAsyncScanResult.cc
Normal file
44
green/src/model/WebpageAsyncScanResult.cc
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* 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/green/model/WebpageAsyncScanResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Green;
|
||||||
|
using namespace AlibabaCloud::Green::Model;
|
||||||
|
|
||||||
|
WebpageAsyncScanResult::WebpageAsyncScanResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
WebpageAsyncScanResult::WebpageAsyncScanResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
WebpageAsyncScanResult::~WebpageAsyncScanResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void WebpageAsyncScanResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
41
green/src/model/WebpageAsyncScanResultsRequest.cc
Normal file
41
green/src/model/WebpageAsyncScanResultsRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
* 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/green/model/WebpageAsyncScanResultsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Green::Model::WebpageAsyncScanResultsRequest;
|
||||||
|
|
||||||
|
WebpageAsyncScanResultsRequest::WebpageAsyncScanResultsRequest() :
|
||||||
|
RoaServiceRequest("green", "2018-05-09")
|
||||||
|
{
|
||||||
|
setResourcePath("/green/webpage/results");
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
WebpageAsyncScanResultsRequest::~WebpageAsyncScanResultsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string WebpageAsyncScanResultsRequest::getClientInfo()const
|
||||||
|
{
|
||||||
|
return clientInfo_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebpageAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo)
|
||||||
|
{
|
||||||
|
clientInfo_ = clientInfo;
|
||||||
|
setParameter("ClientInfo", clientInfo);
|
||||||
|
}
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user