Add new api for rule.

This commit is contained in:
sdk-team
2022-07-11 07:59:17 +00:00
parent bb602506ac
commit 55ce8a3d14
109 changed files with 8275 additions and 1 deletions

View File

@@ -87,6 +87,78 @@ IotClient::AddDataForApiSourceOutcomeCallable IotClient::addDataForApiSourceCall
return task->get_future();
}
IotClient::AttachDestinationOutcome IotClient::attachDestination(const AttachDestinationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AttachDestinationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AttachDestinationOutcome(AttachDestinationResult(outcome.result()));
else
return AttachDestinationOutcome(outcome.error());
}
void IotClient::attachDestinationAsync(const AttachDestinationRequest& request, const AttachDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, attachDestination(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::AttachDestinationOutcomeCallable IotClient::attachDestinationCallable(const AttachDestinationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AttachDestinationOutcome()>>(
[this, request]()
{
return this->attachDestination(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::AttachParserDataSourceOutcome IotClient::attachParserDataSource(const AttachParserDataSourceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AttachParserDataSourceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AttachParserDataSourceOutcome(AttachParserDataSourceResult(outcome.result()));
else
return AttachParserDataSourceOutcome(outcome.error());
}
void IotClient::attachParserDataSourceAsync(const AttachParserDataSourceRequest& request, const AttachParserDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, attachParserDataSource(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::AttachParserDataSourceOutcomeCallable IotClient::attachParserDataSourceCallable(const AttachParserDataSourceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AttachParserDataSourceOutcome()>>(
[this, request]()
{
return this->attachParserDataSource(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::BatchAddDataForApiSourceOutcome IotClient::batchAddDataForApiSource(const BatchAddDataForApiSourceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2031,6 +2103,42 @@ IotClient::CreateDataSourceItemOutcomeCallable IotClient::createDataSourceItemCa
return task->get_future();
}
IotClient::CreateDestinationOutcome IotClient::createDestination(const CreateDestinationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateDestinationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateDestinationOutcome(CreateDestinationResult(outcome.result()));
else
return CreateDestinationOutcome(outcome.error());
}
void IotClient::createDestinationAsync(const CreateDestinationRequest& request, const CreateDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createDestination(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::CreateDestinationOutcomeCallable IotClient::createDestinationCallable(const CreateDestinationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateDestinationOutcome()>>(
[this, request]()
{
return this->createDestination(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::CreateDeviceDistributeJobOutcome IotClient::createDeviceDistributeJob(const CreateDeviceDistributeJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2679,6 +2787,78 @@ IotClient::CreateOTAVerifyJobOutcomeCallable IotClient::createOTAVerifyJobCallab
return task->get_future();
}
IotClient::CreateParserOutcome IotClient::createParser(const CreateParserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateParserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateParserOutcome(CreateParserResult(outcome.result()));
else
return CreateParserOutcome(outcome.error());
}
void IotClient::createParserAsync(const CreateParserRequest& request, const CreateParserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createParser(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::CreateParserOutcomeCallable IotClient::createParserCallable(const CreateParserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateParserOutcome()>>(
[this, request]()
{
return this->createParser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::CreateParserDataSourceOutcome IotClient::createParserDataSource(const CreateParserDataSourceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateParserDataSourceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateParserDataSourceOutcome(CreateParserDataSourceResult(outcome.result()));
else
return CreateParserDataSourceOutcome(outcome.error());
}
void IotClient::createParserDataSourceAsync(const CreateParserDataSourceRequest& request, const CreateParserDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createParserDataSource(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::CreateParserDataSourceOutcomeCallable IotClient::createParserDataSourceCallable(const CreateParserDataSourceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateParserDataSourceOutcome()>>(
[this, request]()
{
return this->createParserDataSource(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::CreateProductOutcome IotClient::createProduct(const CreateProductRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3399,6 +3579,78 @@ IotClient::DeleteConsumerGroupSubscribeRelationOutcomeCallable IotClient::delete
return task->get_future();
}
IotClient::DeleteDataSourceItemOutcome IotClient::deleteDataSourceItem(const DeleteDataSourceItemRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteDataSourceItemOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteDataSourceItemOutcome(DeleteDataSourceItemResult(outcome.result()));
else
return DeleteDataSourceItemOutcome(outcome.error());
}
void IotClient::deleteDataSourceItemAsync(const DeleteDataSourceItemRequest& request, const DeleteDataSourceItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteDataSourceItem(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::DeleteDataSourceItemOutcomeCallable IotClient::deleteDataSourceItemCallable(const DeleteDataSourceItemRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteDataSourceItemOutcome()>>(
[this, request]()
{
return this->deleteDataSourceItem(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::DeleteDestinationOutcome IotClient::deleteDestination(const DeleteDestinationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteDestinationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteDestinationOutcome(DeleteDestinationResult(outcome.result()));
else
return DeleteDestinationOutcome(outcome.error());
}
void IotClient::deleteDestinationAsync(const DeleteDestinationRequest& request, const DeleteDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteDestination(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::DeleteDestinationOutcomeCallable IotClient::deleteDestinationCallable(const DeleteDestinationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteDestinationOutcome()>>(
[this, request]()
{
return this->deleteDestination(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::DeleteDeviceOutcome IotClient::deleteDevice(const DeleteDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3939,6 +4191,78 @@ IotClient::DeleteOTAModuleOutcomeCallable IotClient::deleteOTAModuleCallable(con
return task->get_future();
}
IotClient::DeleteParserOutcome IotClient::deleteParser(const DeleteParserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteParserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteParserOutcome(DeleteParserResult(outcome.result()));
else
return DeleteParserOutcome(outcome.error());
}
void IotClient::deleteParserAsync(const DeleteParserRequest& request, const DeleteParserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteParser(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::DeleteParserOutcomeCallable IotClient::deleteParserCallable(const DeleteParserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteParserOutcome()>>(
[this, request]()
{
return this->deleteParser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::DeleteParserDataSourceOutcome IotClient::deleteParserDataSource(const DeleteParserDataSourceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteParserDataSourceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteParserDataSourceOutcome(DeleteParserDataSourceResult(outcome.result()));
else
return DeleteParserDataSourceOutcome(outcome.error());
}
void IotClient::deleteParserDataSourceAsync(const DeleteParserDataSourceRequest& request, const DeleteParserDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteParserDataSource(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::DeleteParserDataSourceOutcomeCallable IotClient::deleteParserDataSourceCallable(const DeleteParserDataSourceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteParserDataSourceOutcome()>>(
[this, request]()
{
return this->deleteParserDataSource(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::DeleteProductOutcome IotClient::deleteProduct(const DeleteProductRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4479,6 +4803,78 @@ IotClient::DeleteTopicRouteTableOutcomeCallable IotClient::deleteTopicRouteTable
return task->get_future();
}
IotClient::DetachDestinationOutcome IotClient::detachDestination(const DetachDestinationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DetachDestinationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DetachDestinationOutcome(DetachDestinationResult(outcome.result()));
else
return DetachDestinationOutcome(outcome.error());
}
void IotClient::detachDestinationAsync(const DetachDestinationRequest& request, const DetachDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, detachDestination(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::DetachDestinationOutcomeCallable IotClient::detachDestinationCallable(const DetachDestinationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DetachDestinationOutcome()>>(
[this, request]()
{
return this->detachDestination(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::DetachParserDataSourceOutcome IotClient::detachParserDataSource(const DetachParserDataSourceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DetachParserDataSourceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DetachParserDataSourceOutcome(DetachParserDataSourceResult(outcome.result()));
else
return DetachParserDataSourceOutcome(outcome.error());
}
void IotClient::detachParserDataSourceAsync(const DetachParserDataSourceRequest& request, const DetachParserDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, detachParserDataSource(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::DetachParserDataSourceOutcomeCallable IotClient::detachParserDataSourceCallable(const DetachParserDataSourceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DetachParserDataSourceOutcome()>>(
[this, request]()
{
return this->detachParserDataSource(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::DisableDeviceTunnelOutcome IotClient::disableDeviceTunnel(const DisableDeviceTunnelRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4911,6 +5307,42 @@ IotClient::GetDataAPIServiceDetailOutcomeCallable IotClient::getDataAPIServiceDe
return task->get_future();
}
IotClient::GetDestinationOutcome IotClient::getDestination(const GetDestinationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDestinationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetDestinationOutcome(GetDestinationResult(outcome.result()));
else
return GetDestinationOutcome(outcome.error());
}
void IotClient::getDestinationAsync(const GetDestinationRequest& request, const GetDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getDestination(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::GetDestinationOutcomeCallable IotClient::getDestinationCallable(const GetDestinationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetDestinationOutcome()>>(
[this, request]()
{
return this->getDestination(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::GetDeviceShadowOutcome IotClient::getDeviceShadow(const GetDeviceShadowRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5271,6 +5703,78 @@ IotClient::GetLoraNodesTaskOutcomeCallable IotClient::getLoraNodesTaskCallable(c
return task->get_future();
}
IotClient::GetParserOutcome IotClient::getParser(const GetParserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetParserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetParserOutcome(GetParserResult(outcome.result()));
else
return GetParserOutcome(outcome.error());
}
void IotClient::getParserAsync(const GetParserRequest& request, const GetParserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getParser(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::GetParserOutcomeCallable IotClient::getParserCallable(const GetParserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetParserOutcome()>>(
[this, request]()
{
return this->getParser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::GetParserDataSourceOutcome IotClient::getParserDataSource(const GetParserDataSourceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetParserDataSourceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetParserDataSourceOutcome(GetParserDataSourceResult(outcome.result()));
else
return GetParserDataSourceOutcome(outcome.error());
}
void IotClient::getParserDataSourceAsync(const GetParserDataSourceRequest& request, const GetParserDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getParserDataSource(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::GetParserDataSourceOutcomeCallable IotClient::getParserDataSourceCallable(const GetParserDataSourceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetParserDataSourceOutcome()>>(
[this, request]()
{
return this->getParserDataSource(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::GetRuleOutcome IotClient::getRule(const GetRuleRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6063,6 +6567,42 @@ IotClient::ListDataSourceItemOutcomeCallable IotClient::listDataSourceItemCallab
return task->get_future();
}
IotClient::ListDestinationOutcome IotClient::listDestination(const ListDestinationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListDestinationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListDestinationOutcome(ListDestinationResult(outcome.result()));
else
return ListDestinationOutcome(outcome.error());
}
void IotClient::listDestinationAsync(const ListDestinationRequest& request, const ListDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listDestination(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::ListDestinationOutcomeCallable IotClient::listDestinationCallable(const ListDestinationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListDestinationOutcome()>>(
[this, request]()
{
return this->listDestination(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::ListDeviceDistributeJobOutcome IotClient::listDeviceDistributeJob(const ListDeviceDistributeJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6459,6 +6999,114 @@ IotClient::ListOTAUnfinishedTaskByDeviceOutcomeCallable IotClient::listOTAUnfini
return task->get_future();
}
IotClient::ListParserOutcome IotClient::listParser(const ListParserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListParserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListParserOutcome(ListParserResult(outcome.result()));
else
return ListParserOutcome(outcome.error());
}
void IotClient::listParserAsync(const ListParserRequest& request, const ListParserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listParser(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::ListParserOutcomeCallable IotClient::listParserCallable(const ListParserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListParserOutcome()>>(
[this, request]()
{
return this->listParser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::ListParserDataSourceOutcome IotClient::listParserDataSource(const ListParserDataSourceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListParserDataSourceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListParserDataSourceOutcome(ListParserDataSourceResult(outcome.result()));
else
return ListParserDataSourceOutcome(outcome.error());
}
void IotClient::listParserDataSourceAsync(const ListParserDataSourceRequest& request, const ListParserDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listParserDataSource(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::ListParserDataSourceOutcomeCallable IotClient::listParserDataSourceCallable(const ListParserDataSourceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListParserDataSourceOutcome()>>(
[this, request]()
{
return this->listParserDataSource(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::ListParserDestinationOutcome IotClient::listParserDestination(const ListParserDestinationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListParserDestinationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListParserDestinationOutcome(ListParserDestinationResult(outcome.result()));
else
return ListParserDestinationOutcome(outcome.error());
}
void IotClient::listParserDestinationAsync(const ListParserDestinationRequest& request, const ListParserDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listParserDestination(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::ListParserDestinationOutcomeCallable IotClient::listParserDestinationCallable(const ListParserDestinationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListParserDestinationOutcome()>>(
[this, request]()
{
return this->listParserDestination(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::ListProductByTagsOutcome IotClient::listProductByTags(const ListProductByTagsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6927,6 +7575,42 @@ IotClient::PubBroadcastOutcomeCallable IotClient::pubBroadcastCallable(const Pub
return task->get_future();
}
IotClient::PublishScriptOutcome IotClient::publishScript(const PublishScriptRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return PublishScriptOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return PublishScriptOutcome(PublishScriptResult(outcome.result()));
else
return PublishScriptOutcome(outcome.error());
}
void IotClient::publishScriptAsync(const PublishScriptRequest& request, const PublishScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, publishScript(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::PublishScriptOutcomeCallable IotClient::publishScriptCallable(const PublishScriptRequest &request) const
{
auto task = std::make_shared<std::packaged_task<PublishScriptOutcome()>>(
[this, request]()
{
return this->publishScript(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::PublishStudioAppOutcome IotClient::publishStudioApp(const PublishStudioAppRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -10887,6 +11571,42 @@ IotClient::SaveDevicePropOutcomeCallable IotClient::saveDevicePropCallable(const
return task->get_future();
}
IotClient::SaveScriptOutcome IotClient::saveScript(const SaveScriptRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SaveScriptOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SaveScriptOutcome(SaveScriptResult(outcome.result()));
else
return SaveScriptOutcome(outcome.error());
}
void IotClient::saveScriptAsync(const SaveScriptRequest& request, const SaveScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, saveScript(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::SaveScriptOutcomeCallable IotClient::saveScriptCallable(const SaveScriptRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SaveScriptOutcome()>>(
[this, request]()
{
return this->saveScript(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::SetDeviceDesiredPropertyOutcome IotClient::setDeviceDesiredProperty(const SetDeviceDesiredPropertyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -11247,6 +11967,42 @@ IotClient::SpeechBySynthesisOutcomeCallable IotClient::speechBySynthesisCallable
return task->get_future();
}
IotClient::StartParserOutcome IotClient::startParser(const StartParserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StartParserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StartParserOutcome(StartParserResult(outcome.result()));
else
return StartParserOutcome(outcome.error());
}
void IotClient::startParserAsync(const StartParserRequest& request, const StartParserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, startParser(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::StartParserOutcomeCallable IotClient::startParserCallable(const StartParserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StartParserOutcome()>>(
[this, request]()
{
return this->startParser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::StartRuleOutcome IotClient::startRule(const StartRuleRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -11283,6 +12039,42 @@ IotClient::StartRuleOutcomeCallable IotClient::startRuleCallable(const StartRule
return task->get_future();
}
IotClient::StopParserOutcome IotClient::stopParser(const StopParserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StopParserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StopParserOutcome(StopParserResult(outcome.result()));
else
return StopParserOutcome(outcome.error());
}
void IotClient::stopParserAsync(const StopParserRequest& request, const StopParserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, stopParser(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::StopParserOutcomeCallable IotClient::stopParserCallable(const StopParserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StopParserOutcome()>>(
[this, request]()
{
return this->stopParser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::StopRuleOutcome IotClient::stopRule(const StopRuleRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -11715,6 +12507,42 @@ IotClient::UpdateConsumerGroupOutcomeCallable IotClient::updateConsumerGroupCall
return task->get_future();
}
IotClient::UpdateDestinationOutcome IotClient::updateDestination(const UpdateDestinationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateDestinationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateDestinationOutcome(UpdateDestinationResult(outcome.result()));
else
return UpdateDestinationOutcome(outcome.error());
}
void IotClient::updateDestinationAsync(const UpdateDestinationRequest& request, const UpdateDestinationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateDestination(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::UpdateDestinationOutcomeCallable IotClient::updateDestinationCallable(const UpdateDestinationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateDestinationOutcome()>>(
[this, request]()
{
return this->updateDestination(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::UpdateDeviceGroupOutcome IotClient::updateDeviceGroup(const UpdateDeviceGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -12003,6 +12831,78 @@ IotClient::UpdateOTAModuleOutcomeCallable IotClient::updateOTAModuleCallable(con
return task->get_future();
}
IotClient::UpdateParserOutcome IotClient::updateParser(const UpdateParserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateParserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateParserOutcome(UpdateParserResult(outcome.result()));
else
return UpdateParserOutcome(outcome.error());
}
void IotClient::updateParserAsync(const UpdateParserRequest& request, const UpdateParserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateParser(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::UpdateParserOutcomeCallable IotClient::updateParserCallable(const UpdateParserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateParserOutcome()>>(
[this, request]()
{
return this->updateParser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::UpdateParserDataSourceOutcome IotClient::updateParserDataSource(const UpdateParserDataSourceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateParserDataSourceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateParserDataSourceOutcome(UpdateParserDataSourceResult(outcome.result()));
else
return UpdateParserDataSourceOutcome(outcome.error());
}
void IotClient::updateParserDataSourceAsync(const UpdateParserDataSourceRequest& request, const UpdateParserDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateParserDataSource(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::UpdateParserDataSourceOutcomeCallable IotClient::updateParserDataSourceCallable(const UpdateParserDataSourceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateParserDataSourceOutcome()>>(
[this, request]()
{
return this->updateParserDataSource(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::UpdateProductOutcome IotClient::updateProduct(const UpdateProductRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/iot/model/AttachDestinationRequest.h>
using AlibabaCloud::Iot::Model::AttachDestinationRequest;
AttachDestinationRequest::AttachDestinationRequest() :
RpcServiceRequest("iot", "2018-01-20", "AttachDestination")
{
setMethod(HttpRequest::Method::Post);
}
AttachDestinationRequest::~AttachDestinationRequest()
{}
std::string AttachDestinationRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void AttachDestinationRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
long AttachDestinationRequest::getDestinationId()const
{
return destinationId_;
}
void AttachDestinationRequest::setDestinationId(long destinationId)
{
destinationId_ = destinationId;
setParameter("DestinationId", std::to_string(destinationId));
}
long AttachDestinationRequest::getParserId()const
{
return parserId_;
}
void AttachDestinationRequest::setParserId(long parserId)
{
parserId_ = parserId;
setParameter("ParserId", std::to_string(parserId));
}
std::string AttachDestinationRequest::getApiProduct()const
{
return apiProduct_;
}
void AttachDestinationRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
bool AttachDestinationRequest::getIsFailover()const
{
return isFailover_;
}
void AttachDestinationRequest::setIsFailover(bool isFailover)
{
isFailover_ = isFailover;
setParameter("IsFailover", isFailover ? "true" : "false");
}
std::string AttachDestinationRequest::getApiRevision()const
{
return apiRevision_;
}
void AttachDestinationRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/iot/model/AttachDestinationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
AttachDestinationResult::AttachDestinationResult() :
ServiceResult()
{}
AttachDestinationResult::AttachDestinationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachDestinationResult::~AttachDestinationResult()
{}
void AttachDestinationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string AttachDestinationResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AttachDestinationResult::getCode()const
{
return code_;
}
bool AttachDestinationResult::getSuccess()const
{
return success_;
}

View 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/iot/model/AttachParserDataSourceRequest.h>
using AlibabaCloud::Iot::Model::AttachParserDataSourceRequest;
AttachParserDataSourceRequest::AttachParserDataSourceRequest() :
RpcServiceRequest("iot", "2018-01-20", "AttachParserDataSource")
{
setMethod(HttpRequest::Method::Post);
}
AttachParserDataSourceRequest::~AttachParserDataSourceRequest()
{}
std::string AttachParserDataSourceRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void AttachParserDataSourceRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
long AttachParserDataSourceRequest::getParserId()const
{
return parserId_;
}
void AttachParserDataSourceRequest::setParserId(long parserId)
{
parserId_ = parserId;
setParameter("ParserId", std::to_string(parserId));
}
std::string AttachParserDataSourceRequest::getApiProduct()const
{
return apiProduct_;
}
void AttachParserDataSourceRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
long AttachParserDataSourceRequest::getDataSourceId()const
{
return dataSourceId_;
}
void AttachParserDataSourceRequest::setDataSourceId(long dataSourceId)
{
dataSourceId_ = dataSourceId;
setParameter("DataSourceId", std::to_string(dataSourceId));
}
std::string AttachParserDataSourceRequest::getApiRevision()const
{
return apiRevision_;
}
void AttachParserDataSourceRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/iot/model/AttachParserDataSourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
AttachParserDataSourceResult::AttachParserDataSourceResult() :
ServiceResult()
{}
AttachParserDataSourceResult::AttachParserDataSourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachParserDataSourceResult::~AttachParserDataSourceResult()
{}
void AttachParserDataSourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string AttachParserDataSourceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string AttachParserDataSourceResult::getCode()const
{
return code_;
}
bool AttachParserDataSourceResult::getSuccess()const
{
return success_;
}

View File

@@ -27,6 +27,17 @@ CreateDataSourceItemRequest::CreateDataSourceItemRequest() :
CreateDataSourceItemRequest::~CreateDataSourceItemRequest()
{}
std::string CreateDataSourceItemRequest::getScopeType()const
{
return scopeType_;
}
void CreateDataSourceItemRequest::setScopeType(const std::string& scopeType)
{
scopeType_ = scopeType;
setParameter("ScopeType", scopeType);
}
std::string CreateDataSourceItemRequest::getIotInstanceId()const
{
return iotInstanceId_;
@@ -38,6 +49,17 @@ void CreateDataSourceItemRequest::setIotInstanceId(const std::string& iotInstanc
setParameter("IotInstanceId", iotInstanceId);
}
std::string CreateDataSourceItemRequest::getProductKey()const
{
return productKey_;
}
void CreateDataSourceItemRequest::setProductKey(const std::string& productKey)
{
productKey_ = productKey;
setParameter("ProductKey", productKey);
}
std::string CreateDataSourceItemRequest::getApiProduct()const
{
return apiProduct_;
@@ -82,3 +104,14 @@ void CreateDataSourceItemRequest::setApiRevision(const std::string& apiRevision)
setBodyParameter("ApiRevision", apiRevision);
}
std::string CreateDataSourceItemRequest::getDeviceName()const
{
return deviceName_;
}
void CreateDataSourceItemRequest::setDeviceName(const std::string& deviceName)
{
deviceName_ = deviceName;
setParameter("DeviceName", deviceName);
}

View File

@@ -0,0 +1,106 @@
/*
* 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/iot/model/CreateDestinationRequest.h>
using AlibabaCloud::Iot::Model::CreateDestinationRequest;
CreateDestinationRequest::CreateDestinationRequest() :
RpcServiceRequest("iot", "2018-01-20", "CreateDestination")
{
setMethod(HttpRequest::Method::Post);
}
CreateDestinationRequest::~CreateDestinationRequest()
{}
std::string CreateDestinationRequest::getConfiguration()const
{
return configuration_;
}
void CreateDestinationRequest::setConfiguration(const std::string& configuration)
{
configuration_ = configuration;
setParameter("Configuration", configuration);
}
std::string CreateDestinationRequest::getDescription()const
{
return description_;
}
void CreateDestinationRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateDestinationRequest::getType()const
{
return type_;
}
void CreateDestinationRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string CreateDestinationRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void CreateDestinationRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string CreateDestinationRequest::getApiProduct()const
{
return apiProduct_;
}
void CreateDestinationRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CreateDestinationRequest::getName()const
{
return name_;
}
void CreateDestinationRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateDestinationRequest::getApiRevision()const
{
return apiRevision_;
}
void CreateDestinationRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,83 @@
/*
* 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/iot/model/CreateDestinationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
CreateDestinationResult::CreateDestinationResult() :
ServiceResult()
{}
CreateDestinationResult::CreateDestinationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDestinationResult::~CreateDestinationResult()
{}
void CreateDestinationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto destinationNode = value["Destination"];
if(!destinationNode["DestinationId"].isNull())
destination_.destinationId = std::stol(destinationNode["DestinationId"].asString());
if(!destinationNode["Name"].isNull())
destination_.name = destinationNode["Name"].asString();
if(!destinationNode["Type"].isNull())
destination_.type = destinationNode["Type"].asString();
if(!destinationNode["Configuration"].isNull())
destination_.configuration = destinationNode["Configuration"].asString();
if(!destinationNode["IsFailover"].isNull())
destination_.isFailover = destinationNode["IsFailover"].asString() == "true";
if(!destinationNode["UtcCreated"].isNull())
destination_.utcCreated = destinationNode["UtcCreated"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
CreateDestinationResult::Destination CreateDestinationResult::getDestination()const
{
return destination_;
}
std::string CreateDestinationResult::getErrorMessage()const
{
return errorMessage_;
}
std::string CreateDestinationResult::getCode()const
{
return code_;
}
bool CreateDestinationResult::getSuccess()const
{
return success_;
}

View 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/iot/model/CreateParserDataSourceRequest.h>
using AlibabaCloud::Iot::Model::CreateParserDataSourceRequest;
CreateParserDataSourceRequest::CreateParserDataSourceRequest() :
RpcServiceRequest("iot", "2018-01-20", "CreateParserDataSource")
{
setMethod(HttpRequest::Method::Post);
}
CreateParserDataSourceRequest::~CreateParserDataSourceRequest()
{}
std::string CreateParserDataSourceRequest::getDescription()const
{
return description_;
}
void CreateParserDataSourceRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateParserDataSourceRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void CreateParserDataSourceRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string CreateParserDataSourceRequest::getApiProduct()const
{
return apiProduct_;
}
void CreateParserDataSourceRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CreateParserDataSourceRequest::getName()const
{
return name_;
}
void CreateParserDataSourceRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateParserDataSourceRequest::getApiRevision()const
{
return apiRevision_;
}
void CreateParserDataSourceRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,79 @@
/*
* 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/iot/model/CreateParserDataSourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
CreateParserDataSourceResult::CreateParserDataSourceResult() :
ServiceResult()
{}
CreateParserDataSourceResult::CreateParserDataSourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateParserDataSourceResult::~CreateParserDataSourceResult()
{}
void CreateParserDataSourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataSourceNode = value["DataSource"];
if(!dataSourceNode["Name"].isNull())
dataSource_.name = dataSourceNode["Name"].asString();
if(!dataSourceNode["Description"].isNull())
dataSource_.description = dataSourceNode["Description"].asString();
if(!dataSourceNode["DataSourceId"].isNull())
dataSource_.dataSourceId = std::stol(dataSourceNode["DataSourceId"].asString());
if(!dataSourceNode["UtcCreated"].isNull())
dataSource_.utcCreated = dataSourceNode["UtcCreated"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string CreateParserDataSourceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string CreateParserDataSourceResult::getCode()const
{
return code_;
}
bool CreateParserDataSourceResult::getSuccess()const
{
return success_;
}
CreateParserDataSourceResult::DataSource CreateParserDataSourceResult::getDataSource()const
{
return dataSource_;
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/iot/model/CreateParserRequest.h>
using AlibabaCloud::Iot::Model::CreateParserRequest;
CreateParserRequest::CreateParserRequest() :
RpcServiceRequest("iot", "2018-01-20", "CreateParser")
{
setMethod(HttpRequest::Method::Post);
}
CreateParserRequest::~CreateParserRequest()
{}
std::string CreateParserRequest::getDescription()const
{
return description_;
}
void CreateParserRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateParserRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateParserRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateParserRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void CreateParserRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string CreateParserRequest::getApiProduct()const
{
return apiProduct_;
}
void CreateParserRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CreateParserRequest::getName()const
{
return name_;
}
void CreateParserRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateParserRequest::getApiRevision()const
{
return apiRevision_;
}
void CreateParserRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

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

View 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/iot/model/DeleteDataSourceItemRequest.h>
using AlibabaCloud::Iot::Model::DeleteDataSourceItemRequest;
DeleteDataSourceItemRequest::DeleteDataSourceItemRequest() :
RpcServiceRequest("iot", "2018-01-20", "DeleteDataSourceItem")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDataSourceItemRequest::~DeleteDataSourceItemRequest()
{}
std::string DeleteDataSourceItemRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void DeleteDataSourceItemRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
long DeleteDataSourceItemRequest::getDataSourceItemId()const
{
return dataSourceItemId_;
}
void DeleteDataSourceItemRequest::setDataSourceItemId(long dataSourceItemId)
{
dataSourceItemId_ = dataSourceItemId;
setParameter("DataSourceItemId", std::to_string(dataSourceItemId));
}
std::string DeleteDataSourceItemRequest::getApiProduct()const
{
return apiProduct_;
}
void DeleteDataSourceItemRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
long DeleteDataSourceItemRequest::getDataSourceId()const
{
return dataSourceId_;
}
void DeleteDataSourceItemRequest::setDataSourceId(long dataSourceId)
{
dataSourceId_ = dataSourceId;
setParameter("DataSourceId", std::to_string(dataSourceId));
}
std::string DeleteDataSourceItemRequest::getApiRevision()const
{
return apiRevision_;
}
void DeleteDataSourceItemRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/iot/model/DeleteDataSourceItemResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
DeleteDataSourceItemResult::DeleteDataSourceItemResult() :
ServiceResult()
{}
DeleteDataSourceItemResult::DeleteDataSourceItemResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDataSourceItemResult::~DeleteDataSourceItemResult()
{}
void DeleteDataSourceItemResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string DeleteDataSourceItemResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteDataSourceItemResult::getCode()const
{
return code_;
}
bool DeleteDataSourceItemResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/iot/model/DeleteDestinationRequest.h>
using AlibabaCloud::Iot::Model::DeleteDestinationRequest;
DeleteDestinationRequest::DeleteDestinationRequest() :
RpcServiceRequest("iot", "2018-01-20", "DeleteDestination")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDestinationRequest::~DeleteDestinationRequest()
{}
std::string DeleteDestinationRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void DeleteDestinationRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
long DeleteDestinationRequest::getDestinationId()const
{
return destinationId_;
}
void DeleteDestinationRequest::setDestinationId(long destinationId)
{
destinationId_ = destinationId;
setParameter("DestinationId", std::to_string(destinationId));
}
std::string DeleteDestinationRequest::getApiProduct()const
{
return apiProduct_;
}
void DeleteDestinationRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string DeleteDestinationRequest::getApiRevision()const
{
return apiRevision_;
}
void DeleteDestinationRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/iot/model/DeleteDestinationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
DeleteDestinationResult::DeleteDestinationResult() :
ServiceResult()
{}
DeleteDestinationResult::DeleteDestinationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDestinationResult::~DeleteDestinationResult()
{}
void DeleteDestinationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string DeleteDestinationResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteDestinationResult::getCode()const
{
return code_;
}
bool DeleteDestinationResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/iot/model/DeleteParserDataSourceRequest.h>
using AlibabaCloud::Iot::Model::DeleteParserDataSourceRequest;
DeleteParserDataSourceRequest::DeleteParserDataSourceRequest() :
RpcServiceRequest("iot", "2018-01-20", "DeleteParserDataSource")
{
setMethod(HttpRequest::Method::Post);
}
DeleteParserDataSourceRequest::~DeleteParserDataSourceRequest()
{}
std::string DeleteParserDataSourceRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void DeleteParserDataSourceRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string DeleteParserDataSourceRequest::getApiProduct()const
{
return apiProduct_;
}
void DeleteParserDataSourceRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
long DeleteParserDataSourceRequest::getDataSourceId()const
{
return dataSourceId_;
}
void DeleteParserDataSourceRequest::setDataSourceId(long dataSourceId)
{
dataSourceId_ = dataSourceId;
setParameter("DataSourceId", std::to_string(dataSourceId));
}
std::string DeleteParserDataSourceRequest::getApiRevision()const
{
return apiRevision_;
}
void DeleteParserDataSourceRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/iot/model/DeleteParserDataSourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
DeleteParserDataSourceResult::DeleteParserDataSourceResult() :
ServiceResult()
{}
DeleteParserDataSourceResult::DeleteParserDataSourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteParserDataSourceResult::~DeleteParserDataSourceResult()
{}
void DeleteParserDataSourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string DeleteParserDataSourceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteParserDataSourceResult::getCode()const
{
return code_;
}
bool DeleteParserDataSourceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/iot/model/DeleteParserRequest.h>
using AlibabaCloud::Iot::Model::DeleteParserRequest;
DeleteParserRequest::DeleteParserRequest() :
RpcServiceRequest("iot", "2018-01-20", "DeleteParser")
{
setMethod(HttpRequest::Method::Post);
}
DeleteParserRequest::~DeleteParserRequest()
{}
std::string DeleteParserRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void DeleteParserRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
long DeleteParserRequest::getParserId()const
{
return parserId_;
}
void DeleteParserRequest::setParserId(long parserId)
{
parserId_ = parserId;
setParameter("ParserId", std::to_string(parserId));
}
std::string DeleteParserRequest::getApiProduct()const
{
return apiProduct_;
}
void DeleteParserRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string DeleteParserRequest::getApiRevision()const
{
return apiRevision_;
}
void DeleteParserRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/iot/model/DeleteParserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
DeleteParserResult::DeleteParserResult() :
ServiceResult()
{}
DeleteParserResult::DeleteParserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteParserResult::~DeleteParserResult()
{}
void DeleteParserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string DeleteParserResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteParserResult::getCode()const
{
return code_;
}
bool DeleteParserResult::getSuccess()const
{
return success_;
}

View 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/iot/model/DetachDestinationRequest.h>
using AlibabaCloud::Iot::Model::DetachDestinationRequest;
DetachDestinationRequest::DetachDestinationRequest() :
RpcServiceRequest("iot", "2018-01-20", "DetachDestination")
{
setMethod(HttpRequest::Method::Post);
}
DetachDestinationRequest::~DetachDestinationRequest()
{}
std::string DetachDestinationRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void DetachDestinationRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
long DetachDestinationRequest::getDestinationId()const
{
return destinationId_;
}
void DetachDestinationRequest::setDestinationId(long destinationId)
{
destinationId_ = destinationId;
setParameter("DestinationId", std::to_string(destinationId));
}
long DetachDestinationRequest::getParserId()const
{
return parserId_;
}
void DetachDestinationRequest::setParserId(long parserId)
{
parserId_ = parserId;
setParameter("ParserId", std::to_string(parserId));
}
std::string DetachDestinationRequest::getApiProduct()const
{
return apiProduct_;
}
void DetachDestinationRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string DetachDestinationRequest::getApiRevision()const
{
return apiRevision_;
}
void DetachDestinationRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/iot/model/DetachDestinationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
DetachDestinationResult::DetachDestinationResult() :
ServiceResult()
{}
DetachDestinationResult::DetachDestinationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetachDestinationResult::~DetachDestinationResult()
{}
void DetachDestinationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string DetachDestinationResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DetachDestinationResult::getCode()const
{
return code_;
}
bool DetachDestinationResult::getSuccess()const
{
return success_;
}

View 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/iot/model/DetachParserDataSourceRequest.h>
using AlibabaCloud::Iot::Model::DetachParserDataSourceRequest;
DetachParserDataSourceRequest::DetachParserDataSourceRequest() :
RpcServiceRequest("iot", "2018-01-20", "DetachParserDataSource")
{
setMethod(HttpRequest::Method::Post);
}
DetachParserDataSourceRequest::~DetachParserDataSourceRequest()
{}
std::string DetachParserDataSourceRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void DetachParserDataSourceRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
long DetachParserDataSourceRequest::getParserId()const
{
return parserId_;
}
void DetachParserDataSourceRequest::setParserId(long parserId)
{
parserId_ = parserId;
setParameter("ParserId", std::to_string(parserId));
}
std::string DetachParserDataSourceRequest::getApiProduct()const
{
return apiProduct_;
}
void DetachParserDataSourceRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
long DetachParserDataSourceRequest::getDataSourceId()const
{
return dataSourceId_;
}
void DetachParserDataSourceRequest::setDataSourceId(long dataSourceId)
{
dataSourceId_ = dataSourceId;
setParameter("DataSourceId", std::to_string(dataSourceId));
}
std::string DetachParserDataSourceRequest::getApiRevision()const
{
return apiRevision_;
}
void DetachParserDataSourceRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/iot/model/DetachParserDataSourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
DetachParserDataSourceResult::DetachParserDataSourceResult() :
ServiceResult()
{}
DetachParserDataSourceResult::DetachParserDataSourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetachParserDataSourceResult::~DetachParserDataSourceResult()
{}
void DetachParserDataSourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string DetachParserDataSourceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DetachParserDataSourceResult::getCode()const
{
return code_;
}
bool DetachParserDataSourceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/iot/model/GetDestinationRequest.h>
using AlibabaCloud::Iot::Model::GetDestinationRequest;
GetDestinationRequest::GetDestinationRequest() :
RpcServiceRequest("iot", "2018-01-20", "GetDestination")
{
setMethod(HttpRequest::Method::Post);
}
GetDestinationRequest::~GetDestinationRequest()
{}
std::string GetDestinationRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void GetDestinationRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
long GetDestinationRequest::getDestinationId()const
{
return destinationId_;
}
void GetDestinationRequest::setDestinationId(long destinationId)
{
destinationId_ = destinationId;
setParameter("DestinationId", std::to_string(destinationId));
}
std::string GetDestinationRequest::getApiProduct()const
{
return apiProduct_;
}
void GetDestinationRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetDestinationRequest::getApiRevision()const
{
return apiRevision_;
}
void GetDestinationRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,83 @@
/*
* 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/iot/model/GetDestinationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
GetDestinationResult::GetDestinationResult() :
ServiceResult()
{}
GetDestinationResult::GetDestinationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDestinationResult::~GetDestinationResult()
{}
void GetDestinationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto destinationNode = value["Destination"];
if(!destinationNode["DestinationId"].isNull())
destination_.destinationId = destinationNode["DestinationId"].asString();
if(!destinationNode["Name"].isNull())
destination_.name = destinationNode["Name"].asString();
if(!destinationNode["Type"].isNull())
destination_.type = destinationNode["Type"].asString();
if(!destinationNode["Configuration"].isNull())
destination_.configuration = destinationNode["Configuration"].asString();
if(!destinationNode["IsFailover"].isNull())
destination_.isFailover = destinationNode["IsFailover"].asString() == "true";
if(!destinationNode["UtcCreated"].isNull())
destination_.utcCreated = destinationNode["UtcCreated"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
GetDestinationResult::Destination GetDestinationResult::getDestination()const
{
return destination_;
}
std::string GetDestinationResult::getErrorMessage()const
{
return errorMessage_;
}
std::string GetDestinationResult::getCode()const
{
return code_;
}
bool GetDestinationResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/iot/model/GetParserDataSourceRequest.h>
using AlibabaCloud::Iot::Model::GetParserDataSourceRequest;
GetParserDataSourceRequest::GetParserDataSourceRequest() :
RpcServiceRequest("iot", "2018-01-20", "GetParserDataSource")
{
setMethod(HttpRequest::Method::Post);
}
GetParserDataSourceRequest::~GetParserDataSourceRequest()
{}
std::string GetParserDataSourceRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void GetParserDataSourceRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string GetParserDataSourceRequest::getApiProduct()const
{
return apiProduct_;
}
void GetParserDataSourceRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
long GetParserDataSourceRequest::getDataSourceId()const
{
return dataSourceId_;
}
void GetParserDataSourceRequest::setDataSourceId(long dataSourceId)
{
dataSourceId_ = dataSourceId;
setParameter("DataSourceId", std::to_string(dataSourceId));
}
std::string GetParserDataSourceRequest::getApiRevision()const
{
return apiRevision_;
}
void GetParserDataSourceRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,81 @@
/*
* 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/iot/model/GetParserDataSourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
GetParserDataSourceResult::GetParserDataSourceResult() :
ServiceResult()
{}
GetParserDataSourceResult::GetParserDataSourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetParserDataSourceResult::~GetParserDataSourceResult()
{}
void GetParserDataSourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataSourceNode = value["DataSource"];
if(!dataSourceNode["Name"].isNull())
dataSource_.name = dataSourceNode["Name"].asString();
if(!dataSourceNode["Description"].isNull())
dataSource_.description = dataSourceNode["Description"].asString();
if(!dataSourceNode["DataSourceId"].isNull())
dataSource_.dataSourceId = std::stol(dataSourceNode["DataSourceId"].asString());
if(!dataSourceNode["UtcCreated"].isNull())
dataSource_.utcCreated = dataSourceNode["UtcCreated"].asString();
if(!dataSourceNode["CreateUserId"].isNull())
dataSource_.createUserId = std::stol(dataSourceNode["CreateUserId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string GetParserDataSourceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string GetParserDataSourceResult::getCode()const
{
return code_;
}
bool GetParserDataSourceResult::getSuccess()const
{
return success_;
}
GetParserDataSourceResult::DataSource GetParserDataSourceResult::getDataSource()const
{
return dataSource_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/iot/model/GetParserRequest.h>
using AlibabaCloud::Iot::Model::GetParserRequest;
GetParserRequest::GetParserRequest() :
RpcServiceRequest("iot", "2018-01-20", "GetParser")
{
setMethod(HttpRequest::Method::Post);
}
GetParserRequest::~GetParserRequest()
{}
std::string GetParserRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void GetParserRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
long GetParserRequest::getParserId()const
{
return parserId_;
}
void GetParserRequest::setParserId(long parserId)
{
parserId_ = parserId;
setParameter("ParserId", std::to_string(parserId));
}
std::string GetParserRequest::getApiProduct()const
{
return apiProduct_;
}
void GetParserRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetParserRequest::getApiRevision()const
{
return apiRevision_;
}
void GetParserRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,89 @@
/*
* 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/iot/model/GetParserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
GetParserResult::GetParserResult() :
ServiceResult()
{}
GetParserResult::GetParserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetParserResult::~GetParserResult()
{}
void GetParserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["ParserId"].isNull())
data_.parserId = std::stol(dataNode["ParserId"].asString());
if(!dataNode["Name"].isNull())
data_.name = dataNode["Name"].asString();
if(!dataNode["DataSourceId"].isNull())
data_.dataSourceId = std::stol(dataNode["DataSourceId"].asString());
if(!dataNode["Status"].isNull())
data_.status = dataNode["Status"].asString();
if(!dataNode["UtcCreated"].isNull())
data_.utcCreated = dataNode["UtcCreated"].asString();
if(!dataNode["UtcModified"].isNull())
data_.utcModified = dataNode["UtcModified"].asString();
if(!dataNode["ScriptDraft"].isNull())
data_.scriptDraft = dataNode["ScriptDraft"].asString();
if(!dataNode["Script"].isNull())
data_.script = dataNode["Script"].asString();
if(!dataNode["Description"].isNull())
data_.description = dataNode["Description"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
GetParserResult::Data GetParserResult::getData()const
{
return data_;
}
std::string GetParserResult::getErrorMessage()const
{
return errorMessage_;
}
std::string GetParserResult::getCode()const
{
return code_;
}
bool GetParserResult::getSuccess()const
{
return success_;
}

View File

@@ -47,6 +47,12 @@ void ListDataSourceItemResult::parse(const std::string &payload)
dataSourceItemsObject.dataSourceItemId = std::stol(valueDataSourceItemsdataSourceItem["DataSourceItemId"].asString());
if(!valueDataSourceItemsdataSourceItem["Topic"].isNull())
dataSourceItemsObject.topic = valueDataSourceItemsdataSourceItem["Topic"].asString();
if(!valueDataSourceItemsdataSourceItem["ScopeType"].isNull())
dataSourceItemsObject.scopeType = valueDataSourceItemsdataSourceItem["ScopeType"].asString();
if(!valueDataSourceItemsdataSourceItem["ProductKey"].isNull())
dataSourceItemsObject.productKey = valueDataSourceItemsdataSourceItem["ProductKey"].asString();
if(!valueDataSourceItemsdataSourceItem["DeviceName"].isNull())
dataSourceItemsObject.deviceName = valueDataSourceItemsdataSourceItem["DeviceName"].asString();
dataSourceItems_.push_back(dataSourceItemsObject);
}
if(!value["Success"].isNull())

View File

@@ -0,0 +1,108 @@
/*
* 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/iot/model/ListDestinationRequest.h>
using AlibabaCloud::Iot::Model::ListDestinationRequest;
ListDestinationRequest::ListDestinationRequest() :
RpcServiceRequest("iot", "2018-01-20", "ListDestination")
{
setMethod(HttpRequest::Method::Post);
}
ListDestinationRequest::~ListDestinationRequest()
{}
std::string ListDestinationRequest::getSearchName()const
{
return searchName_;
}
void ListDestinationRequest::setSearchName(const std::string& searchName)
{
searchName_ = searchName;
setParameter("SearchName", searchName);
}
std::string ListDestinationRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void ListDestinationRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
int ListDestinationRequest::getPageSize()const
{
return pageSize_;
}
void ListDestinationRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::vector<std::string> ListDestinationRequest::getTypes()const
{
return types_;
}
void ListDestinationRequest::setTypes(const std::vector<std::string>& types)
{
types_ = types;
for(int dep1 = 0; dep1!= types.size(); dep1++) {
setParameter("Types."+ std::to_string(dep1), types.at(dep1));
}
}
std::string ListDestinationRequest::getApiProduct()const
{
return apiProduct_;
}
void ListDestinationRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string ListDestinationRequest::getApiRevision()const
{
return apiRevision_;
}
void ListDestinationRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}
int ListDestinationRequest::getPage()const
{
return page_;
}
void ListDestinationRequest::setPage(int page)
{
page_ = page;
setParameter("Page", std::to_string(page));
}

View File

@@ -0,0 +1,111 @@
/*
* 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/iot/model/ListDestinationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
ListDestinationResult::ListDestinationResult() :
ServiceResult()
{}
ListDestinationResult::ListDestinationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDestinationResult::~ListDestinationResult()
{}
void ListDestinationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDestinationsNode = value["Destinations"]["destinationsItem"];
for (auto valueDestinationsdestinationsItem : allDestinationsNode)
{
DestinationsItem destinationsObject;
if(!valueDestinationsdestinationsItem["DestinationId"].isNull())
destinationsObject.destinationId = std::stol(valueDestinationsdestinationsItem["DestinationId"].asString());
if(!valueDestinationsdestinationsItem["Name"].isNull())
destinationsObject.name = valueDestinationsdestinationsItem["Name"].asString();
if(!valueDestinationsdestinationsItem["Type"].isNull())
destinationsObject.type = valueDestinationsdestinationsItem["Type"].asString();
if(!valueDestinationsdestinationsItem["Configuration"].isNull())
destinationsObject.configuration = valueDestinationsdestinationsItem["Configuration"].asString();
if(!valueDestinationsdestinationsItem["IsFailover"].isNull())
destinationsObject.isFailover = valueDestinationsdestinationsItem["IsFailover"].asString() == "true";
if(!valueDestinationsdestinationsItem["UtcCreated"].isNull())
destinationsObject.utcCreated = valueDestinationsdestinationsItem["UtcCreated"].asString();
if(!valueDestinationsdestinationsItem["Description"].isNull())
destinationsObject.description = valueDestinationsdestinationsItem["Description"].asString();
destinations_.push_back(destinationsObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Page"].isNull())
page_ = std::stoi(value["Page"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
int ListDestinationResult::getPageSize()const
{
return pageSize_;
}
int ListDestinationResult::getTotal()const
{
return total_;
}
std::vector<ListDestinationResult::DestinationsItem> ListDestinationResult::getDestinations()const
{
return destinations_;
}
int ListDestinationResult::getPage()const
{
return page_;
}
std::string ListDestinationResult::getErrorMessage()const
{
return errorMessage_;
}
std::string ListDestinationResult::getCode()const
{
return code_;
}
bool ListDestinationResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/iot/model/ListParserDataSourceRequest.h>
using AlibabaCloud::Iot::Model::ListParserDataSourceRequest;
ListParserDataSourceRequest::ListParserDataSourceRequest() :
RpcServiceRequest("iot", "2018-01-20", "ListParserDataSource")
{
setMethod(HttpRequest::Method::Post);
}
ListParserDataSourceRequest::~ListParserDataSourceRequest()
{}
std::string ListParserDataSourceRequest::getSearchName()const
{
return searchName_;
}
void ListParserDataSourceRequest::setSearchName(const std::string& searchName)
{
searchName_ = searchName;
setParameter("SearchName", searchName);
}
std::string ListParserDataSourceRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void ListParserDataSourceRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
int ListParserDataSourceRequest::getPageSize()const
{
return pageSize_;
}
void ListParserDataSourceRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListParserDataSourceRequest::getApiProduct()const
{
return apiProduct_;
}
void ListParserDataSourceRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string ListParserDataSourceRequest::getApiRevision()const
{
return apiRevision_;
}
void ListParserDataSourceRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}
int ListParserDataSourceRequest::getPage()const
{
return page_;
}
void ListParserDataSourceRequest::setPage(int page)
{
page_ = page;
setParameter("Page", std::to_string(page));
}

View File

@@ -0,0 +1,105 @@
/*
* 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/iot/model/ListParserDataSourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
ListParserDataSourceResult::ListParserDataSourceResult() :
ServiceResult()
{}
ListParserDataSourceResult::ListParserDataSourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListParserDataSourceResult::~ListParserDataSourceResult()
{}
void ListParserDataSourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataSource"];
for (auto valueDataDataSource : allDataNode)
{
DataSource dataObject;
if(!valueDataDataSource["Name"].isNull())
dataObject.name = valueDataDataSource["Name"].asString();
if(!valueDataDataSource["Description"].isNull())
dataObject.description = valueDataDataSource["Description"].asString();
if(!valueDataDataSource["DataSourceId"].isNull())
dataObject.dataSourceId = std::stol(valueDataDataSource["DataSourceId"].asString());
if(!valueDataDataSource["UtcCreated"].isNull())
dataObject.utcCreated = valueDataDataSource["UtcCreated"].asString();
data_.push_back(dataObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Page"].isNull())
page_ = std::stoi(value["Page"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
int ListParserDataSourceResult::getPageSize()const
{
return pageSize_;
}
int ListParserDataSourceResult::getTotal()const
{
return total_;
}
std::vector<ListParserDataSourceResult::DataSource> ListParserDataSourceResult::getData()const
{
return data_;
}
int ListParserDataSourceResult::getPage()const
{
return page_;
}
std::string ListParserDataSourceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string ListParserDataSourceResult::getCode()const
{
return code_;
}
bool ListParserDataSourceResult::getSuccess()const
{
return success_;
}

View 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/iot/model/ListParserDestinationRequest.h>
using AlibabaCloud::Iot::Model::ListParserDestinationRequest;
ListParserDestinationRequest::ListParserDestinationRequest() :
RpcServiceRequest("iot", "2018-01-20", "ListParserDestination")
{
setMethod(HttpRequest::Method::Post);
}
ListParserDestinationRequest::~ListParserDestinationRequest()
{}
std::string ListParserDestinationRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void ListParserDestinationRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
long ListParserDestinationRequest::getParserId()const
{
return parserId_;
}
void ListParserDestinationRequest::setParserId(long parserId)
{
parserId_ = parserId;
setParameter("ParserId", std::to_string(parserId));
}
std::string ListParserDestinationRequest::getApiProduct()const
{
return apiProduct_;
}
void ListParserDestinationRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
bool ListParserDestinationRequest::getIsFailover()const
{
return isFailover_;
}
void ListParserDestinationRequest::setIsFailover(bool isFailover)
{
isFailover_ = isFailover;
setParameter("IsFailover", isFailover ? "true" : "false");
}
std::string ListParserDestinationRequest::getApiRevision()const
{
return apiRevision_;
}
void ListParserDestinationRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,90 @@
/*
* 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/iot/model/ListParserDestinationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
ListParserDestinationResult::ListParserDestinationResult() :
ServiceResult()
{}
ListParserDestinationResult::ListParserDestinationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListParserDestinationResult::~ListParserDestinationResult()
{}
void ListParserDestinationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["destinations"];
for (auto valueDatadestinations : allDataNode)
{
Destinations dataObject;
if(!valueDatadestinations["DestinationId"].isNull())
dataObject.destinationId = std::stol(valueDatadestinations["DestinationId"].asString());
if(!valueDatadestinations["Name"].isNull())
dataObject.name = valueDatadestinations["Name"].asString();
if(!valueDatadestinations["Type"].isNull())
dataObject.type = valueDatadestinations["Type"].asString();
if(!valueDatadestinations["Configuration"].isNull())
dataObject.configuration = valueDatadestinations["Configuration"].asString();
if(!valueDatadestinations["IsFailover"].isNull())
dataObject.isFailover = valueDatadestinations["IsFailover"].asString() == "true";
if(!valueDatadestinations["UtcCreated"].isNull())
dataObject.utcCreated = valueDatadestinations["UtcCreated"].asString();
if(!valueDatadestinations["UtcModified"].isNull())
dataObject.utcModified = valueDatadestinations["UtcModified"].asString();
data_.push_back(dataObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::vector<ListParserDestinationResult::Destinations> ListParserDestinationResult::getData()const
{
return data_;
}
std::string ListParserDestinationResult::getErrorMessage()const
{
return errorMessage_;
}
std::string ListParserDestinationResult::getCode()const
{
return code_;
}
bool ListParserDestinationResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/iot/model/ListParserRequest.h>
using AlibabaCloud::Iot::Model::ListParserRequest;
ListParserRequest::ListParserRequest() :
RpcServiceRequest("iot", "2018-01-20", "ListParser")
{
setMethod(HttpRequest::Method::Post);
}
ListParserRequest::~ListParserRequest()
{}
std::string ListParserRequest::getSearchName()const
{
return searchName_;
}
void ListParserRequest::setSearchName(const std::string& searchName)
{
searchName_ = searchName;
setParameter("SearchName", searchName);
}
std::string ListParserRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void ListParserRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
int ListParserRequest::getPageSize()const
{
return pageSize_;
}
void ListParserRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int ListParserRequest::getCurrentPage()const
{
return currentPage_;
}
void ListParserRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string ListParserRequest::getApiProduct()const
{
return apiProduct_;
}
void ListParserRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string ListParserRequest::getApiRevision()const
{
return apiRevision_;
}
void ListParserRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/iot/model/ListParserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
ListParserResult::ListParserResult() :
ServiceResult()
{}
ListParserResult::ListParserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListParserResult::~ListParserResult()
{}
void ListParserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["ParserList"];
for (auto valueDataParserList : allDataNode)
{
ParserList dataObject;
if(!valueDataParserList["Name"].isNull())
dataObject.name = valueDataParserList["Name"].asString();
if(!valueDataParserList["ParserId"].isNull())
dataObject.parserId = std::stol(valueDataParserList["ParserId"].asString());
if(!valueDataParserList["Description"].isNull())
dataObject.description = valueDataParserList["Description"].asString();
if(!valueDataParserList["Status"].isNull())
dataObject.status = valueDataParserList["Status"].asString();
if(!valueDataParserList["UtcCreated"].isNull())
dataObject.utcCreated = valueDataParserList["UtcCreated"].asString();
if(!valueDataParserList["UtcModified"].isNull())
dataObject.utcModified = valueDataParserList["UtcModified"].asString();
data_.push_back(dataObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
int ListParserResult::getTotal()const
{
return total_;
}
std::vector<ListParserResult::ParserList> ListParserResult::getData()const
{
return data_;
}
std::string ListParserResult::getErrorMessage()const
{
return errorMessage_;
}
std::string ListParserResult::getCode()const
{
return code_;
}
bool ListParserResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/iot/model/PublishScriptRequest.h>
using AlibabaCloud::Iot::Model::PublishScriptRequest;
PublishScriptRequest::PublishScriptRequest() :
RpcServiceRequest("iot", "2018-01-20", "PublishScript")
{
setMethod(HttpRequest::Method::Post);
}
PublishScriptRequest::~PublishScriptRequest()
{}
std::string PublishScriptRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void PublishScriptRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
long PublishScriptRequest::getParserId()const
{
return parserId_;
}
void PublishScriptRequest::setParserId(long parserId)
{
parserId_ = parserId;
setParameter("ParserId", std::to_string(parserId));
}
std::string PublishScriptRequest::getApiProduct()const
{
return apiProduct_;
}
void PublishScriptRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string PublishScriptRequest::getApiRevision()const
{
return apiRevision_;
}
void PublishScriptRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

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

View 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/iot/model/SaveScriptRequest.h>
using AlibabaCloud::Iot::Model::SaveScriptRequest;
SaveScriptRequest::SaveScriptRequest() :
RpcServiceRequest("iot", "2018-01-20", "SaveScript")
{
setMethod(HttpRequest::Method::Post);
}
SaveScriptRequest::~SaveScriptRequest()
{}
std::string SaveScriptRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void SaveScriptRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string SaveScriptRequest::getScriptDraft()const
{
return scriptDraft_;
}
void SaveScriptRequest::setScriptDraft(const std::string& scriptDraft)
{
scriptDraft_ = scriptDraft;
setParameter("ScriptDraft", scriptDraft);
}
long SaveScriptRequest::getParserId()const
{
return parserId_;
}
void SaveScriptRequest::setParserId(long parserId)
{
parserId_ = parserId;
setParameter("ParserId", std::to_string(parserId));
}
std::string SaveScriptRequest::getApiProduct()const
{
return apiProduct_;
}
void SaveScriptRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string SaveScriptRequest::getApiRevision()const
{
return apiRevision_;
}
void SaveScriptRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/iot/model/SaveScriptResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
SaveScriptResult::SaveScriptResult() :
ServiceResult()
{}
SaveScriptResult::SaveScriptResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SaveScriptResult::~SaveScriptResult()
{}
void SaveScriptResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string SaveScriptResult::getErrorMessage()const
{
return errorMessage_;
}
std::string SaveScriptResult::getCode()const
{
return code_;
}
bool SaveScriptResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/iot/model/StartParserRequest.h>
using AlibabaCloud::Iot::Model::StartParserRequest;
StartParserRequest::StartParserRequest() :
RpcServiceRequest("iot", "2018-01-20", "StartParser")
{
setMethod(HttpRequest::Method::Post);
}
StartParserRequest::~StartParserRequest()
{}
std::string StartParserRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void StartParserRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
long StartParserRequest::getParserId()const
{
return parserId_;
}
void StartParserRequest::setParserId(long parserId)
{
parserId_ = parserId;
setParameter("ParserId", std::to_string(parserId));
}
std::string StartParserRequest::getApiProduct()const
{
return apiProduct_;
}
void StartParserRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string StartParserRequest::getApiRevision()const
{
return apiRevision_;
}
void StartParserRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/iot/model/StartParserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
StartParserResult::StartParserResult() :
ServiceResult()
{}
StartParserResult::StartParserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartParserResult::~StartParserResult()
{}
void StartParserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string StartParserResult::getErrorMessage()const
{
return errorMessage_;
}
std::string StartParserResult::getCode()const
{
return code_;
}
bool StartParserResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/iot/model/StopParserRequest.h>
using AlibabaCloud::Iot::Model::StopParserRequest;
StopParserRequest::StopParserRequest() :
RpcServiceRequest("iot", "2018-01-20", "StopParser")
{
setMethod(HttpRequest::Method::Post);
}
StopParserRequest::~StopParserRequest()
{}
std::string StopParserRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void StopParserRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
long StopParserRequest::getParserId()const
{
return parserId_;
}
void StopParserRequest::setParserId(long parserId)
{
parserId_ = parserId;
setParameter("ParserId", std::to_string(parserId));
}
std::string StopParserRequest::getApiProduct()const
{
return apiProduct_;
}
void StopParserRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string StopParserRequest::getApiRevision()const
{
return apiRevision_;
}
void StopParserRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/iot/model/StopParserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
StopParserResult::StopParserResult() :
ServiceResult()
{}
StopParserResult::StopParserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopParserResult::~StopParserResult()
{}
void StopParserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string StopParserResult::getErrorMessage()const
{
return errorMessage_;
}
std::string StopParserResult::getCode()const
{
return code_;
}
bool StopParserResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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/iot/model/UpdateDestinationRequest.h>
using AlibabaCloud::Iot::Model::UpdateDestinationRequest;
UpdateDestinationRequest::UpdateDestinationRequest() :
RpcServiceRequest("iot", "2018-01-20", "UpdateDestination")
{
setMethod(HttpRequest::Method::Post);
}
UpdateDestinationRequest::~UpdateDestinationRequest()
{}
std::string UpdateDestinationRequest::getConfiguration()const
{
return configuration_;
}
void UpdateDestinationRequest::setConfiguration(const std::string& configuration)
{
configuration_ = configuration;
setParameter("Configuration", configuration);
}
std::string UpdateDestinationRequest::getDescription()const
{
return description_;
}
void UpdateDestinationRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string UpdateDestinationRequest::getType()const
{
return type_;
}
void UpdateDestinationRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string UpdateDestinationRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void UpdateDestinationRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
long UpdateDestinationRequest::getDestinationId()const
{
return destinationId_;
}
void UpdateDestinationRequest::setDestinationId(long destinationId)
{
destinationId_ = destinationId;
setParameter("DestinationId", std::to_string(destinationId));
}
std::string UpdateDestinationRequest::getApiProduct()const
{
return apiProduct_;
}
void UpdateDestinationRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string UpdateDestinationRequest::getName()const
{
return name_;
}
void UpdateDestinationRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string UpdateDestinationRequest::getApiRevision()const
{
return apiRevision_;
}
void UpdateDestinationRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/iot/model/UpdateDestinationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
UpdateDestinationResult::UpdateDestinationResult() :
ServiceResult()
{}
UpdateDestinationResult::UpdateDestinationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateDestinationResult::~UpdateDestinationResult()
{}
void UpdateDestinationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string UpdateDestinationResult::getErrorMessage()const
{
return errorMessage_;
}
std::string UpdateDestinationResult::getCode()const
{
return code_;
}
bool UpdateDestinationResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/iot/model/UpdateParserDataSourceRequest.h>
using AlibabaCloud::Iot::Model::UpdateParserDataSourceRequest;
UpdateParserDataSourceRequest::UpdateParserDataSourceRequest() :
RpcServiceRequest("iot", "2018-01-20", "UpdateParserDataSource")
{
setMethod(HttpRequest::Method::Post);
}
UpdateParserDataSourceRequest::~UpdateParserDataSourceRequest()
{}
std::string UpdateParserDataSourceRequest::getDescription()const
{
return description_;
}
void UpdateParserDataSourceRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string UpdateParserDataSourceRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void UpdateParserDataSourceRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string UpdateParserDataSourceRequest::getApiProduct()const
{
return apiProduct_;
}
void UpdateParserDataSourceRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
long UpdateParserDataSourceRequest::getDataSourceId()const
{
return dataSourceId_;
}
void UpdateParserDataSourceRequest::setDataSourceId(long dataSourceId)
{
dataSourceId_ = dataSourceId;
setParameter("DataSourceId", std::to_string(dataSourceId));
}
std::string UpdateParserDataSourceRequest::getName()const
{
return name_;
}
void UpdateParserDataSourceRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string UpdateParserDataSourceRequest::getApiRevision()const
{
return apiRevision_;
}
void UpdateParserDataSourceRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/iot/model/UpdateParserDataSourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
UpdateParserDataSourceResult::UpdateParserDataSourceResult() :
ServiceResult()
{}
UpdateParserDataSourceResult::UpdateParserDataSourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateParserDataSourceResult::~UpdateParserDataSourceResult()
{}
void UpdateParserDataSourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string UpdateParserDataSourceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string UpdateParserDataSourceResult::getCode()const
{
return code_;
}
bool UpdateParserDataSourceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/iot/model/UpdateParserRequest.h>
using AlibabaCloud::Iot::Model::UpdateParserRequest;
UpdateParserRequest::UpdateParserRequest() :
RpcServiceRequest("iot", "2018-01-20", "UpdateParser")
{
setMethod(HttpRequest::Method::Post);
}
UpdateParserRequest::~UpdateParserRequest()
{}
std::string UpdateParserRequest::getDescription()const
{
return description_;
}
void UpdateParserRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string UpdateParserRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void UpdateParserRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
long UpdateParserRequest::getParserId()const
{
return parserId_;
}
void UpdateParserRequest::setParserId(long parserId)
{
parserId_ = parserId;
setParameter("ParserId", std::to_string(parserId));
}
std::string UpdateParserRequest::getApiProduct()const
{
return apiProduct_;
}
void UpdateParserRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string UpdateParserRequest::getName()const
{
return name_;
}
void UpdateParserRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string UpdateParserRequest::getApiRevision()const
{
return apiRevision_;
}
void UpdateParserRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/iot/model/UpdateParserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
UpdateParserResult::UpdateParserResult() :
ServiceResult()
{}
UpdateParserResult::UpdateParserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateParserResult::~UpdateParserResult()
{}
void UpdateParserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string UpdateParserResult::getErrorMessage()const
{
return errorMessage_;
}
std::string UpdateParserResult::getCode()const
{
return code_;
}
bool UpdateParserResult::getSuccess()const
{
return success_;
}