Hidden ResumeBinding and StopBinding API.
This commit is contained in:
@@ -1923,42 +1923,6 @@ ImmClient::FuzzyQueryOutcomeCallable ImmClient::fuzzyQueryCallable(const FuzzyQu
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::GenerateDRMLicenseOutcome ImmClient::generateDRMLicense(const GenerateDRMLicenseRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GenerateDRMLicenseOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GenerateDRMLicenseOutcome(GenerateDRMLicenseResult(outcome.result()));
|
||||
else
|
||||
return GenerateDRMLicenseOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::generateDRMLicenseAsync(const GenerateDRMLicenseRequest& request, const GenerateDRMLicenseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, generateDRMLicense(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::GenerateDRMLicenseOutcomeCallable ImmClient::generateDRMLicenseCallable(const GenerateDRMLicenseRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GenerateDRMLicenseOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->generateDRMLicense(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::GenerateVideoPlaylistOutcome ImmClient::generateVideoPlaylist(const GenerateVideoPlaylistRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2103,42 +2067,6 @@ ImmClient::GetBindingOutcomeCallable ImmClient::getBindingCallable(const GetBind
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::GetDRMLicenseOutcome ImmClient::getDRMLicense(const GetDRMLicenseRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDRMLicenseOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDRMLicenseOutcome(GetDRMLicenseResult(outcome.result()));
|
||||
else
|
||||
return GetDRMLicenseOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::getDRMLicenseAsync(const GetDRMLicenseRequest& request, const GetDRMLicenseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDRMLicense(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::GetDRMLicenseOutcomeCallable ImmClient::getDRMLicenseCallable(const GetDRMLicenseRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDRMLicenseOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDRMLicense(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::GetDatasetOutcome ImmClient::getDataset(const GetDatasetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3111,42 +3039,6 @@ ImmClient::ResumeBatchOutcomeCallable ImmClient::resumeBatchCallable(const Resum
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::ResumeBindingOutcome ImmClient::resumeBinding(const ResumeBindingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ResumeBindingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ResumeBindingOutcome(ResumeBindingResult(outcome.result()));
|
||||
else
|
||||
return ResumeBindingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::resumeBindingAsync(const ResumeBindingRequest& request, const ResumeBindingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, resumeBinding(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::ResumeBindingOutcomeCallable ImmClient::resumeBindingCallable(const ResumeBindingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ResumeBindingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->resumeBinding(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::ResumeTriggerOutcome ImmClient::resumeTrigger(const ResumeTriggerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3291,42 +3183,6 @@ ImmClient::SimpleQueryOutcomeCallable ImmClient::simpleQueryCallable(const Simpl
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::StopBindingOutcome ImmClient::stopBinding(const StopBindingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopBindingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopBindingOutcome(StopBindingResult(outcome.result()));
|
||||
else
|
||||
return StopBindingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::stopBindingAsync(const StopBindingRequest& request, const StopBindingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopBinding(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::StopBindingOutcomeCallable ImmClient::stopBindingCallable(const StopBindingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopBindingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopBinding(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::SuspendBatchOutcome ImmClient::suspendBatch(const SuspendBatchRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -150,12 +150,10 @@ void BatchGetFigureClusterResult::parse(const std::string &payload)
|
||||
figureClustersObject.cover.language = coverNode["Language"].asString();
|
||||
if(!coverNode["Album"].isNull())
|
||||
figureClustersObject.cover.album = coverNode["Album"].asString();
|
||||
if(!coverNode["DocumentLanguage"].isNull())
|
||||
figureClustersObject.cover.documentLanguage = coverNode["DocumentLanguage"].asString();
|
||||
if(!coverNode["PageCount"].isNull())
|
||||
figureClustersObject.cover.pageCount = std::stol(coverNode["PageCount"].asString());
|
||||
if(!coverNode["DocumentContent"].isNull())
|
||||
figureClustersObject.cover.documentContent = coverNode["DocumentContent"].asString();
|
||||
if(!coverNode["DocumentText"].isNull())
|
||||
figureClustersObject.cover.documentText = coverNode["DocumentText"].asString();
|
||||
if(!coverNode["ETag"].isNull())
|
||||
figureClustersObject.cover.eTag = coverNode["ETag"].asString();
|
||||
if(!coverNode["CacheControl"].isNull())
|
||||
|
||||
@@ -113,12 +113,10 @@ void BatchGetFileMetaResult::parse(const std::string &payload)
|
||||
filesObject.language = valueFilesFilesItem["Language"].asString();
|
||||
if(!valueFilesFilesItem["Album"].isNull())
|
||||
filesObject.album = valueFilesFilesItem["Album"].asString();
|
||||
if(!valueFilesFilesItem["DocumentLanguage"].isNull())
|
||||
filesObject.documentLanguage = valueFilesFilesItem["DocumentLanguage"].asString();
|
||||
if(!valueFilesFilesItem["PageCount"].isNull())
|
||||
filesObject.pageCount = std::stol(valueFilesFilesItem["PageCount"].asString());
|
||||
if(!valueFilesFilesItem["DocumentContent"].isNull())
|
||||
filesObject.documentContent = valueFilesFilesItem["DocumentContent"].asString();
|
||||
if(!valueFilesFilesItem["DocumentText"].isNull())
|
||||
filesObject.documentText = valueFilesFilesItem["DocumentText"].asString();
|
||||
if(!valueFilesFilesItem["ETag"].isNull())
|
||||
filesObject.eTag = valueFilesFilesItem["ETag"].asString();
|
||||
if(!valueFilesFilesItem["CacheControl"].isNull())
|
||||
|
||||
@@ -32,6 +32,11 @@ CreateBatchRequest::Notification CreateBatchRequest::getNotification() const {
|
||||
void CreateBatchRequest::setNotification(const CreateBatchRequest::Notification ¬ification) {
|
||||
notification_ = notification;
|
||||
setBodyParameter(std::string("Notification") + ".Endpoint", notification.endpoint);
|
||||
setBodyParameter(std::string("Notification") + ".MNS.Endpoint", notification.mNS.endpoint);
|
||||
setBodyParameter(std::string("Notification") + ".MNS.TopicName", notification.mNS.topicName);
|
||||
setBodyParameter(std::string("Notification") + ".RocketMQ.Endpoint", notification.rocketMQ.endpoint);
|
||||
setBodyParameter(std::string("Notification") + ".RocketMQ.InstanceId", notification.rocketMQ.instanceId);
|
||||
setBodyParameter(std::string("Notification") + ".RocketMQ.TopicName", notification.rocketMQ.topicName);
|
||||
setBodyParameter(std::string("Notification") + ".Topic", notification.topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,11 @@ CreateTriggerRequest::Notification CreateTriggerRequest::getNotification() const
|
||||
void CreateTriggerRequest::setNotification(const CreateTriggerRequest::Notification ¬ification) {
|
||||
notification_ = notification;
|
||||
setBodyParameter(std::string("Notification") + ".Endpoint", notification.endpoint);
|
||||
setBodyParameter(std::string("Notification") + ".MNS.Endpoint", notification.mNS.endpoint);
|
||||
setBodyParameter(std::string("Notification") + ".MNS.TopicName", notification.mNS.topicName);
|
||||
setBodyParameter(std::string("Notification") + ".RocketMQ.Endpoint", notification.rocketMQ.endpoint);
|
||||
setBodyParameter(std::string("Notification") + ".RocketMQ.InstanceId", notification.rocketMQ.instanceId);
|
||||
setBodyParameter(std::string("Notification") + ".RocketMQ.TopicName", notification.rocketMQ.topicName);
|
||||
setBodyParameter(std::string("Notification") + ".Topic", notification.topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -113,12 +113,10 @@ void FuzzyQueryResult::parse(const std::string &payload)
|
||||
filesObject.language = valueFilesFilesItem["Language"].asString();
|
||||
if(!valueFilesFilesItem["Album"].isNull())
|
||||
filesObject.album = valueFilesFilesItem["Album"].asString();
|
||||
if(!valueFilesFilesItem["DocumentLanguage"].isNull())
|
||||
filesObject.documentLanguage = valueFilesFilesItem["DocumentLanguage"].asString();
|
||||
if(!valueFilesFilesItem["PageCount"].isNull())
|
||||
filesObject.pageCount = std::stol(valueFilesFilesItem["PageCount"].asString());
|
||||
if(!valueFilesFilesItem["DocumentContent"].isNull())
|
||||
filesObject.documentContent = valueFilesFilesItem["DocumentContent"].asString();
|
||||
if(!valueFilesFilesItem["DocumentText"].isNull())
|
||||
filesObject.documentText = valueFilesFilesItem["DocumentText"].asString();
|
||||
if(!valueFilesFilesItem["ETag"].isNull())
|
||||
filesObject.eTag = valueFilesFilesItem["ETag"].asString();
|
||||
if(!valueFilesFilesItem["CacheControl"].isNull())
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/GenerateDRMLicenseRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::GenerateDRMLicenseRequest;
|
||||
|
||||
GenerateDRMLicenseRequest::GenerateDRMLicenseRequest()
|
||||
: RpcServiceRequest("imm", "2020-09-30", "GenerateDRMLicense") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenerateDRMLicenseRequest::~GenerateDRMLicenseRequest() {}
|
||||
|
||||
std::string GenerateDRMLicenseRequest::getProtectionSystem() const {
|
||||
return protectionSystem_;
|
||||
}
|
||||
|
||||
void GenerateDRMLicenseRequest::setProtectionSystem(const std::string &protectionSystem) {
|
||||
protectionSystem_ = protectionSystem;
|
||||
setParameter(std::string("ProtectionSystem"), protectionSystem);
|
||||
}
|
||||
|
||||
std::string GenerateDRMLicenseRequest::getNotifyEndpoint() const {
|
||||
return notifyEndpoint_;
|
||||
}
|
||||
|
||||
void GenerateDRMLicenseRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) {
|
||||
notifyEndpoint_ = notifyEndpoint;
|
||||
setParameter(std::string("NotifyEndpoint"), notifyEndpoint);
|
||||
}
|
||||
|
||||
std::string GenerateDRMLicenseRequest::getProjectName() const {
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GenerateDRMLicenseRequest::setProjectName(const std::string &projectName) {
|
||||
projectName_ = projectName;
|
||||
setParameter(std::string("ProjectName"), projectName);
|
||||
}
|
||||
|
||||
std::string GenerateDRMLicenseRequest::getNotifyTopicName() const {
|
||||
return notifyTopicName_;
|
||||
}
|
||||
|
||||
void GenerateDRMLicenseRequest::setNotifyTopicName(const std::string ¬ifyTopicName) {
|
||||
notifyTopicName_ = notifyTopicName;
|
||||
setParameter(std::string("NotifyTopicName"), notifyTopicName);
|
||||
}
|
||||
|
||||
std::string GenerateDRMLicenseRequest::getKeyId() const {
|
||||
return keyId_;
|
||||
}
|
||||
|
||||
void GenerateDRMLicenseRequest::setKeyId(const std::string &keyId) {
|
||||
keyId_ = keyId;
|
||||
setParameter(std::string("KeyId"), keyId);
|
||||
}
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/GenerateDRMLicenseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
GenerateDRMLicenseResult::GenerateDRMLicenseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenerateDRMLicenseResult::GenerateDRMLicenseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenerateDRMLicenseResult::~GenerateDRMLicenseResult()
|
||||
{}
|
||||
|
||||
void GenerateDRMLicenseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["License"].isNull())
|
||||
license_ = value["License"].asString();
|
||||
if(!value["States"].isNull())
|
||||
states_ = std::stol(value["States"].asString());
|
||||
if(!value["DeviceInfo"].isNull())
|
||||
deviceInfo_ = value["DeviceInfo"].asString();
|
||||
|
||||
}
|
||||
|
||||
long GenerateDRMLicenseResult::getStates()const
|
||||
{
|
||||
return states_;
|
||||
}
|
||||
|
||||
std::string GenerateDRMLicenseResult::getLicense()const
|
||||
{
|
||||
return license_;
|
||||
}
|
||||
|
||||
std::string GenerateDRMLicenseResult::getDeviceInfo()const
|
||||
{
|
||||
return deviceInfo_;
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/GetDRMLicenseRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::GetDRMLicenseRequest;
|
||||
|
||||
GetDRMLicenseRequest::GetDRMLicenseRequest()
|
||||
: RpcServiceRequest("imm", "2020-09-30", "GetDRMLicense") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDRMLicenseRequest::~GetDRMLicenseRequest() {}
|
||||
|
||||
std::string GetDRMLicenseRequest::getProtectionSystem() const {
|
||||
return protectionSystem_;
|
||||
}
|
||||
|
||||
void GetDRMLicenseRequest::setProtectionSystem(const std::string &protectionSystem) {
|
||||
protectionSystem_ = protectionSystem;
|
||||
setParameter(std::string("ProtectionSystem"), protectionSystem);
|
||||
}
|
||||
|
||||
std::string GetDRMLicenseRequest::getNotifyEndpoint() const {
|
||||
return notifyEndpoint_;
|
||||
}
|
||||
|
||||
void GetDRMLicenseRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) {
|
||||
notifyEndpoint_ = notifyEndpoint;
|
||||
setParameter(std::string("NotifyEndpoint"), notifyEndpoint);
|
||||
}
|
||||
|
||||
std::string GetDRMLicenseRequest::getProjectName() const {
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetDRMLicenseRequest::setProjectName(const std::string &projectName) {
|
||||
projectName_ = projectName;
|
||||
setParameter(std::string("ProjectName"), projectName);
|
||||
}
|
||||
|
||||
std::string GetDRMLicenseRequest::getNotifyTopicName() const {
|
||||
return notifyTopicName_;
|
||||
}
|
||||
|
||||
void GetDRMLicenseRequest::setNotifyTopicName(const std::string ¬ifyTopicName) {
|
||||
notifyTopicName_ = notifyTopicName;
|
||||
setParameter(std::string("NotifyTopicName"), notifyTopicName);
|
||||
}
|
||||
|
||||
std::string GetDRMLicenseRequest::getKeyId() const {
|
||||
return keyId_;
|
||||
}
|
||||
|
||||
void GetDRMLicenseRequest::setKeyId(const std::string &keyId) {
|
||||
keyId_ = keyId;
|
||||
setParameter(std::string("KeyId"), keyId);
|
||||
}
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/GetDRMLicenseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
GetDRMLicenseResult::GetDRMLicenseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDRMLicenseResult::GetDRMLicenseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDRMLicenseResult::~GetDRMLicenseResult()
|
||||
{}
|
||||
|
||||
void GetDRMLicenseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["License"].isNull())
|
||||
license_ = value["License"].asString();
|
||||
if(!value["States"].isNull())
|
||||
states_ = std::stol(value["States"].asString());
|
||||
if(!value["DeviceInfo"].isNull())
|
||||
deviceInfo_ = value["DeviceInfo"].asString();
|
||||
|
||||
}
|
||||
|
||||
long GetDRMLicenseResult::getStates()const
|
||||
{
|
||||
return states_;
|
||||
}
|
||||
|
||||
std::string GetDRMLicenseResult::getLicense()const
|
||||
{
|
||||
return license_;
|
||||
}
|
||||
|
||||
std::string GetDRMLicenseResult::getDeviceInfo()const
|
||||
{
|
||||
return deviceInfo_;
|
||||
}
|
||||
|
||||
@@ -147,12 +147,10 @@ void GetFigureClusterResult::parse(const std::string &payload)
|
||||
figureCluster_.cover.language = coverNode["Language"].asString();
|
||||
if(!coverNode["Album"].isNull())
|
||||
figureCluster_.cover.album = coverNode["Album"].asString();
|
||||
if(!coverNode["DocumentLanguage"].isNull())
|
||||
figureCluster_.cover.documentLanguage = coverNode["DocumentLanguage"].asString();
|
||||
if(!coverNode["PageCount"].isNull())
|
||||
figureCluster_.cover.pageCount = std::stol(coverNode["PageCount"].asString());
|
||||
if(!coverNode["DocumentContent"].isNull())
|
||||
figureCluster_.cover.documentContent = coverNode["DocumentContent"].asString();
|
||||
if(!coverNode["DocumentText"].isNull())
|
||||
figureCluster_.cover.documentText = coverNode["DocumentText"].asString();
|
||||
if(!coverNode["ETag"].isNull())
|
||||
figureCluster_.cover.eTag = coverNode["ETag"].asString();
|
||||
if(!coverNode["CacheControl"].isNull())
|
||||
|
||||
@@ -113,12 +113,10 @@ void GetFileMetaResult::parse(const std::string &payload)
|
||||
filesObject.language = valueFilesFilesItem["Language"].asString();
|
||||
if(!valueFilesFilesItem["Album"].isNull())
|
||||
filesObject.album = valueFilesFilesItem["Album"].asString();
|
||||
if(!valueFilesFilesItem["DocumentLanguage"].isNull())
|
||||
filesObject.documentLanguage = valueFilesFilesItem["DocumentLanguage"].asString();
|
||||
if(!valueFilesFilesItem["PageCount"].isNull())
|
||||
filesObject.pageCount = std::stol(valueFilesFilesItem["PageCount"].asString());
|
||||
if(!valueFilesFilesItem["DocumentContent"].isNull())
|
||||
filesObject.documentContent = valueFilesFilesItem["DocumentContent"].asString();
|
||||
if(!valueFilesFilesItem["DocumentText"].isNull())
|
||||
filesObject.documentText = valueFilesFilesItem["DocumentText"].asString();
|
||||
if(!valueFilesFilesItem["ETag"].isNull())
|
||||
filesObject.eTag = valueFilesFilesItem["ETag"].asString();
|
||||
if(!valueFilesFilesItem["CacheControl"].isNull())
|
||||
|
||||
@@ -142,12 +142,10 @@ void GetStoryResult::parse(const std::string &payload)
|
||||
filesItemObject.language = storyNodeFilesFilesItem["Language"].asString();
|
||||
if(!storyNodeFilesFilesItem["Album"].isNull())
|
||||
filesItemObject.album = storyNodeFilesFilesItem["Album"].asString();
|
||||
if(!storyNodeFilesFilesItem["DocumentLanguage"].isNull())
|
||||
filesItemObject.documentLanguage = storyNodeFilesFilesItem["DocumentLanguage"].asString();
|
||||
if(!storyNodeFilesFilesItem["PageCount"].isNull())
|
||||
filesItemObject.pageCount = std::stol(storyNodeFilesFilesItem["PageCount"].asString());
|
||||
if(!storyNodeFilesFilesItem["DocumentContent"].isNull())
|
||||
filesItemObject.documentContent = storyNodeFilesFilesItem["DocumentContent"].asString();
|
||||
if(!storyNodeFilesFilesItem["DocumentText"].isNull())
|
||||
filesItemObject.documentText = storyNodeFilesFilesItem["DocumentText"].asString();
|
||||
if(!storyNodeFilesFilesItem["ETag"].isNull())
|
||||
filesItemObject.eTag = storyNodeFilesFilesItem["ETag"].asString();
|
||||
if(!storyNodeFilesFilesItem["CacheControl"].isNull())
|
||||
@@ -641,12 +639,10 @@ void GetStoryResult::parse(const std::string &payload)
|
||||
story_.cover.language = coverNode["Language"].asString();
|
||||
if(!coverNode["Album"].isNull())
|
||||
story_.cover.album = coverNode["Album"].asString();
|
||||
if(!coverNode["DocumentLanguage"].isNull())
|
||||
story_.cover.documentLanguage = coverNode["DocumentLanguage"].asString();
|
||||
if(!coverNode["PageCount"].isNull())
|
||||
story_.cover.pageCount = std::stol(coverNode["PageCount"].asString());
|
||||
if(!coverNode["DocumentContent"].isNull())
|
||||
story_.cover.documentContent = coverNode["DocumentContent"].asString();
|
||||
if(!coverNode["DocumentText"].isNull())
|
||||
story_.cover.documentText = coverNode["DocumentText"].asString();
|
||||
if(!coverNode["ETag"].isNull())
|
||||
story_.cover.eTag = coverNode["ETag"].asString();
|
||||
if(!coverNode["CacheControl"].isNull())
|
||||
|
||||
@@ -150,12 +150,10 @@ void QueryFigureClustersResult::parse(const std::string &payload)
|
||||
figureClustersObject.cover.language = coverNode["Language"].asString();
|
||||
if(!coverNode["Album"].isNull())
|
||||
figureClustersObject.cover.album = coverNode["Album"].asString();
|
||||
if(!coverNode["DocumentLanguage"].isNull())
|
||||
figureClustersObject.cover.documentLanguage = coverNode["DocumentLanguage"].asString();
|
||||
if(!coverNode["PageCount"].isNull())
|
||||
figureClustersObject.cover.pageCount = std::stol(coverNode["PageCount"].asString());
|
||||
if(!coverNode["DocumentContent"].isNull())
|
||||
figureClustersObject.cover.documentContent = coverNode["DocumentContent"].asString();
|
||||
if(!coverNode["DocumentText"].isNull())
|
||||
figureClustersObject.cover.documentText = coverNode["DocumentText"].asString();
|
||||
if(!coverNode["ETag"].isNull())
|
||||
figureClustersObject.cover.eTag = coverNode["ETag"].asString();
|
||||
if(!coverNode["CacheControl"].isNull())
|
||||
|
||||
@@ -145,12 +145,10 @@ void QueryStoriesResult::parse(const std::string &payload)
|
||||
filesObject.language = valueStoriesStoriesItemFilesFilesItem["Language"].asString();
|
||||
if(!valueStoriesStoriesItemFilesFilesItem["Album"].isNull())
|
||||
filesObject.album = valueStoriesStoriesItemFilesFilesItem["Album"].asString();
|
||||
if(!valueStoriesStoriesItemFilesFilesItem["DocumentLanguage"].isNull())
|
||||
filesObject.documentLanguage = valueStoriesStoriesItemFilesFilesItem["DocumentLanguage"].asString();
|
||||
if(!valueStoriesStoriesItemFilesFilesItem["PageCount"].isNull())
|
||||
filesObject.pageCount = std::stol(valueStoriesStoriesItemFilesFilesItem["PageCount"].asString());
|
||||
if(!valueStoriesStoriesItemFilesFilesItem["DocumentContent"].isNull())
|
||||
filesObject.documentContent = valueStoriesStoriesItemFilesFilesItem["DocumentContent"].asString();
|
||||
if(!valueStoriesStoriesItemFilesFilesItem["DocumentText"].isNull())
|
||||
filesObject.documentText = valueStoriesStoriesItemFilesFilesItem["DocumentText"].asString();
|
||||
if(!valueStoriesStoriesItemFilesFilesItem["ETag"].isNull())
|
||||
filesObject.eTag = valueStoriesStoriesItemFilesFilesItem["ETag"].asString();
|
||||
if(!valueStoriesStoriesItemFilesFilesItem["CacheControl"].isNull())
|
||||
@@ -644,12 +642,10 @@ void QueryStoriesResult::parse(const std::string &payload)
|
||||
storiesObject.cover.language = coverNode["Language"].asString();
|
||||
if(!coverNode["Album"].isNull())
|
||||
storiesObject.cover.album = coverNode["Album"].asString();
|
||||
if(!coverNode["DocumentLanguage"].isNull())
|
||||
storiesObject.cover.documentLanguage = coverNode["DocumentLanguage"].asString();
|
||||
if(!coverNode["PageCount"].isNull())
|
||||
storiesObject.cover.pageCount = std::stol(coverNode["PageCount"].asString());
|
||||
if(!coverNode["DocumentContent"].isNull())
|
||||
storiesObject.cover.documentContent = coverNode["DocumentContent"].asString();
|
||||
if(!coverNode["DocumentText"].isNull())
|
||||
storiesObject.cover.documentText = coverNode["DocumentText"].asString();
|
||||
if(!coverNode["ETag"].isNull())
|
||||
storiesObject.cover.eTag = coverNode["ETag"].asString();
|
||||
if(!coverNode["CacheControl"].isNull())
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/ResumeBindingRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::ResumeBindingRequest;
|
||||
|
||||
ResumeBindingRequest::ResumeBindingRequest()
|
||||
: RpcServiceRequest("imm", "2020-09-30", "ResumeBinding") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ResumeBindingRequest::~ResumeBindingRequest() {}
|
||||
|
||||
std::string ResumeBindingRequest::getDatasetName() const {
|
||||
return datasetName_;
|
||||
}
|
||||
|
||||
void ResumeBindingRequest::setDatasetName(const std::string &datasetName) {
|
||||
datasetName_ = datasetName;
|
||||
setParameter(std::string("DatasetName"), datasetName);
|
||||
}
|
||||
|
||||
std::string ResumeBindingRequest::getProjectName() const {
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void ResumeBindingRequest::setProjectName(const std::string &projectName) {
|
||||
projectName_ = projectName;
|
||||
setParameter(std::string("ProjectName"), projectName);
|
||||
}
|
||||
|
||||
std::string ResumeBindingRequest::getURI() const {
|
||||
return uRI_;
|
||||
}
|
||||
|
||||
void ResumeBindingRequest::setURI(const std::string &uRI) {
|
||||
uRI_ = uRI;
|
||||
setParameter(std::string("URI"), uRI);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/ResumeBindingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
ResumeBindingResult::ResumeBindingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ResumeBindingResult::ResumeBindingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ResumeBindingResult::~ResumeBindingResult()
|
||||
{}
|
||||
|
||||
void ResumeBindingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -113,12 +113,10 @@ void SemanticQueryResult::parse(const std::string &payload)
|
||||
filesObject.language = valueFilesFilesItem["Language"].asString();
|
||||
if(!valueFilesFilesItem["Album"].isNull())
|
||||
filesObject.album = valueFilesFilesItem["Album"].asString();
|
||||
if(!valueFilesFilesItem["DocumentLanguage"].isNull())
|
||||
filesObject.documentLanguage = valueFilesFilesItem["DocumentLanguage"].asString();
|
||||
if(!valueFilesFilesItem["PageCount"].isNull())
|
||||
filesObject.pageCount = std::stol(valueFilesFilesItem["PageCount"].asString());
|
||||
if(!valueFilesFilesItem["DocumentContent"].isNull())
|
||||
filesObject.documentContent = valueFilesFilesItem["DocumentContent"].asString();
|
||||
if(!valueFilesFilesItem["DocumentText"].isNull())
|
||||
filesObject.documentText = valueFilesFilesItem["DocumentText"].asString();
|
||||
if(!valueFilesFilesItem["ETag"].isNull())
|
||||
filesObject.eTag = valueFilesFilesItem["ETag"].asString();
|
||||
if(!valueFilesFilesItem["CacheControl"].isNull())
|
||||
|
||||
@@ -113,12 +113,10 @@ void SimpleQueryResult::parse(const std::string &payload)
|
||||
filesObject.language = valueFilesFilesItem["Language"].asString();
|
||||
if(!valueFilesFilesItem["Album"].isNull())
|
||||
filesObject.album = valueFilesFilesItem["Album"].asString();
|
||||
if(!valueFilesFilesItem["DocumentLanguage"].isNull())
|
||||
filesObject.documentLanguage = valueFilesFilesItem["DocumentLanguage"].asString();
|
||||
if(!valueFilesFilesItem["PageCount"].isNull())
|
||||
filesObject.pageCount = std::stol(valueFilesFilesItem["PageCount"].asString());
|
||||
if(!valueFilesFilesItem["DocumentContent"].isNull())
|
||||
filesObject.documentContent = valueFilesFilesItem["DocumentContent"].asString();
|
||||
if(!valueFilesFilesItem["DocumentText"].isNull())
|
||||
filesObject.documentText = valueFilesFilesItem["DocumentText"].asString();
|
||||
if(!valueFilesFilesItem["ETag"].isNull())
|
||||
filesObject.eTag = valueFilesFilesItem["ETag"].asString();
|
||||
if(!valueFilesFilesItem["CacheControl"].isNull())
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/StopBindingRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::StopBindingRequest;
|
||||
|
||||
StopBindingRequest::StopBindingRequest()
|
||||
: RpcServiceRequest("imm", "2020-09-30", "StopBinding") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopBindingRequest::~StopBindingRequest() {}
|
||||
|
||||
std::string StopBindingRequest::getReason() const {
|
||||
return reason_;
|
||||
}
|
||||
|
||||
void StopBindingRequest::setReason(const std::string &reason) {
|
||||
reason_ = reason;
|
||||
setParameter(std::string("Reason"), reason);
|
||||
}
|
||||
|
||||
std::string StopBindingRequest::getDatasetName() const {
|
||||
return datasetName_;
|
||||
}
|
||||
|
||||
void StopBindingRequest::setDatasetName(const std::string &datasetName) {
|
||||
datasetName_ = datasetName;
|
||||
setParameter(std::string("DatasetName"), datasetName);
|
||||
}
|
||||
|
||||
std::string StopBindingRequest::getProjectName() const {
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void StopBindingRequest::setProjectName(const std::string &projectName) {
|
||||
projectName_ = projectName;
|
||||
setParameter(std::string("ProjectName"), projectName);
|
||||
}
|
||||
|
||||
std::string StopBindingRequest::getURI() const {
|
||||
return uRI_;
|
||||
}
|
||||
|
||||
void StopBindingRequest::setURI(const std::string &uRI) {
|
||||
uRI_ = uRI;
|
||||
setParameter(std::string("URI"), uRI);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/StopBindingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
StopBindingResult::StopBindingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopBindingResult::StopBindingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopBindingResult::~StopBindingResult()
|
||||
{}
|
||||
|
||||
void StopBindingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user