Generated 2020-05-18 for dataworks-public.
This commit is contained in:
@@ -87,6 +87,42 @@ Dataworks_publicClient::AbolishDataServiceApiOutcomeCallable Dataworks_publicCli
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::AddMetaCollectionEntityOutcome Dataworks_publicClient::addMetaCollectionEntity(const AddMetaCollectionEntityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddMetaCollectionEntityOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddMetaCollectionEntityOutcome(AddMetaCollectionEntityResult(outcome.result()));
|
||||
else
|
||||
return AddMetaCollectionEntityOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::addMetaCollectionEntityAsync(const AddMetaCollectionEntityRequest& request, const AddMetaCollectionEntityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addMetaCollectionEntity(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::AddMetaCollectionEntityOutcomeCallable Dataworks_publicClient::addMetaCollectionEntityCallable(const AddMetaCollectionEntityRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddMetaCollectionEntityOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addMetaCollectionEntity(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::AddProjectMemberToRoleOutcome Dataworks_publicClient::addProjectMemberToRole(const AddProjectMemberToRoleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -951,6 +987,42 @@ Dataworks_publicClient::CreateMetaCategoryOutcomeCallable Dataworks_publicClient
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::CreateMetaCollectionOutcome Dataworks_publicClient::createMetaCollection(const CreateMetaCollectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateMetaCollectionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateMetaCollectionOutcome(CreateMetaCollectionResult(outcome.result()));
|
||||
else
|
||||
return CreateMetaCollectionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::createMetaCollectionAsync(const CreateMetaCollectionRequest& request, const CreateMetaCollectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createMetaCollection(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::CreateMetaCollectionOutcomeCallable Dataworks_publicClient::createMetaCollectionCallable(const CreateMetaCollectionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateMetaCollectionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createMetaCollection(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::CreatePermissionApplyOrderOutcome Dataworks_publicClient::createPermissionApplyOrder(const CreatePermissionApplyOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1743,6 +1815,78 @@ Dataworks_publicClient::DeleteMetaCategoryOutcomeCallable Dataworks_publicClient
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::DeleteMetaCollectionOutcome Dataworks_publicClient::deleteMetaCollection(const DeleteMetaCollectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteMetaCollectionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteMetaCollectionOutcome(DeleteMetaCollectionResult(outcome.result()));
|
||||
else
|
||||
return DeleteMetaCollectionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::deleteMetaCollectionAsync(const DeleteMetaCollectionRequest& request, const DeleteMetaCollectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteMetaCollection(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::DeleteMetaCollectionOutcomeCallable Dataworks_publicClient::deleteMetaCollectionCallable(const DeleteMetaCollectionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteMetaCollectionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteMetaCollection(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::DeleteMetaCollectionEntityOutcome Dataworks_publicClient::deleteMetaCollectionEntity(const DeleteMetaCollectionEntityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteMetaCollectionEntityOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteMetaCollectionEntityOutcome(DeleteMetaCollectionEntityResult(outcome.result()));
|
||||
else
|
||||
return DeleteMetaCollectionEntityOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::deleteMetaCollectionEntityAsync(const DeleteMetaCollectionEntityRequest& request, const DeleteMetaCollectionEntityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteMetaCollectionEntity(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::DeleteMetaCollectionEntityOutcomeCallable Dataworks_publicClient::deleteMetaCollectionEntityCallable(const DeleteMetaCollectionEntityRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteMetaCollectionEntityOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteMetaCollectionEntity(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::DeleteProjectMemberOutcome Dataworks_publicClient::deleteProjectMember(const DeleteProjectMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3471,6 +3615,42 @@ Dataworks_publicClient::GetMetaCategoryOutcomeCallable Dataworks_publicClient::g
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::GetMetaCollectionDetailOutcome Dataworks_publicClient::getMetaCollectionDetail(const GetMetaCollectionDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMetaCollectionDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMetaCollectionDetailOutcome(GetMetaCollectionDetailResult(outcome.result()));
|
||||
else
|
||||
return GetMetaCollectionDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::getMetaCollectionDetailAsync(const GetMetaCollectionDetailRequest& request, const GetMetaCollectionDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMetaCollectionDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::GetMetaCollectionDetailOutcomeCallable Dataworks_publicClient::getMetaCollectionDetailCallable(const GetMetaCollectionDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMetaCollectionDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMetaCollectionDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::GetMetaColumnLineageOutcome Dataworks_publicClient::getMetaColumnLineage(const GetMetaColumnLineageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3903,6 +4083,42 @@ Dataworks_publicClient::GetMetaTablePartitionOutcomeCallable Dataworks_publicCli
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::GetMetaTableProducingTasksOutcome Dataworks_publicClient::getMetaTableProducingTasks(const GetMetaTableProducingTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMetaTableProducingTasksOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMetaTableProducingTasksOutcome(GetMetaTableProducingTasksResult(outcome.result()));
|
||||
else
|
||||
return GetMetaTableProducingTasksOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::getMetaTableProducingTasksAsync(const GetMetaTableProducingTasksRequest& request, const GetMetaTableProducingTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMetaTableProducingTasks(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::GetMetaTableProducingTasksOutcomeCallable Dataworks_publicClient::getMetaTableProducingTasksCallable(const GetMetaTableProducingTasksRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMetaTableProducingTasksOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMetaTableProducingTasks(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::GetMetaTableThemeLevelOutcome Dataworks_publicClient::getMetaTableThemeLevel(const GetMetaTableThemeLevelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5847,6 +6063,78 @@ Dataworks_publicClient::ListManualDagInstancesOutcomeCallable Dataworks_publicCl
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListMetaCollectionEntitiesOutcome Dataworks_publicClient::listMetaCollectionEntities(const ListMetaCollectionEntitiesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMetaCollectionEntitiesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListMetaCollectionEntitiesOutcome(ListMetaCollectionEntitiesResult(outcome.result()));
|
||||
else
|
||||
return ListMetaCollectionEntitiesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::listMetaCollectionEntitiesAsync(const ListMetaCollectionEntitiesRequest& request, const ListMetaCollectionEntitiesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listMetaCollectionEntities(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListMetaCollectionEntitiesOutcomeCallable Dataworks_publicClient::listMetaCollectionEntitiesCallable(const ListMetaCollectionEntitiesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListMetaCollectionEntitiesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listMetaCollectionEntities(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListMetaCollectionsOutcome Dataworks_publicClient::listMetaCollections(const ListMetaCollectionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMetaCollectionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListMetaCollectionsOutcome(ListMetaCollectionsResult(outcome.result()));
|
||||
else
|
||||
return ListMetaCollectionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::listMetaCollectionsAsync(const ListMetaCollectionsRequest& request, const ListMetaCollectionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listMetaCollections(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListMetaCollectionsOutcomeCallable Dataworks_publicClient::listMetaCollectionsCallable(const ListMetaCollectionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListMetaCollectionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listMetaCollections(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListMetaDBOutcome Dataworks_publicClient::listMetaDB(const ListMetaDBRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8187,6 +8475,42 @@ Dataworks_publicClient::UpdateMetaCategoryOutcomeCallable Dataworks_publicClient
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::UpdateMetaCollectionOutcome Dataworks_publicClient::updateMetaCollection(const UpdateMetaCollectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateMetaCollectionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateMetaCollectionOutcome(UpdateMetaCollectionResult(outcome.result()));
|
||||
else
|
||||
return UpdateMetaCollectionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::updateMetaCollectionAsync(const UpdateMetaCollectionRequest& request, const UpdateMetaCollectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateMetaCollection(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::UpdateMetaCollectionOutcomeCallable Dataworks_publicClient::updateMetaCollectionCallable(const UpdateMetaCollectionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateMetaCollectionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateMetaCollection(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::UpdateMetaTableOutcome Dataworks_publicClient::updateMetaTable(const UpdateMetaTableRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
45
dataworks-public/src/model/AddMetaCollectionEntityRequest.cc
Normal file
45
dataworks-public/src/model/AddMetaCollectionEntityRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/dataworks-public/model/AddMetaCollectionEntityRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::AddMetaCollectionEntityRequest;
|
||||
|
||||
AddMetaCollectionEntityRequest::AddMetaCollectionEntityRequest()
|
||||
: RpcServiceRequest("dataworks-public", "2020-05-18", "AddMetaCollectionEntity") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddMetaCollectionEntityRequest::~AddMetaCollectionEntityRequest() {}
|
||||
|
||||
std::string AddMetaCollectionEntityRequest::getEntityQualifiedName() const {
|
||||
return entityQualifiedName_;
|
||||
}
|
||||
|
||||
void AddMetaCollectionEntityRequest::setEntityQualifiedName(const std::string &entityQualifiedName) {
|
||||
entityQualifiedName_ = entityQualifiedName;
|
||||
setParameter(std::string("EntityQualifiedName"), entityQualifiedName);
|
||||
}
|
||||
|
||||
std::string AddMetaCollectionEntityRequest::getCollectionQualifiedName() const {
|
||||
return collectionQualifiedName_;
|
||||
}
|
||||
|
||||
void AddMetaCollectionEntityRequest::setCollectionQualifiedName(const std::string &collectionQualifiedName) {
|
||||
collectionQualifiedName_ = collectionQualifiedName;
|
||||
setParameter(std::string("CollectionQualifiedName"), collectionQualifiedName);
|
||||
}
|
||||
|
||||
79
dataworks-public/src/model/AddMetaCollectionEntityResult.cc
Normal file
79
dataworks-public/src/model/AddMetaCollectionEntityResult.cc
Normal 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/dataworks-public/model/AddMetaCollectionEntityResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
AddMetaCollectionEntityResult::AddMetaCollectionEntityResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddMetaCollectionEntityResult::AddMetaCollectionEntityResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddMetaCollectionEntityResult::~AddMetaCollectionEntityResult()
|
||||
{}
|
||||
|
||||
void AddMetaCollectionEntityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool AddMetaCollectionEntityResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
int AddMetaCollectionEntityResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string AddMetaCollectionEntityResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string AddMetaCollectionEntityResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool AddMetaCollectionEntityResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
dataworks-public/src/model/CreateMetaCollectionRequest.cc
Normal file
63
dataworks-public/src/model/CreateMetaCollectionRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/CreateMetaCollectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::CreateMetaCollectionRequest;
|
||||
|
||||
CreateMetaCollectionRequest::CreateMetaCollectionRequest()
|
||||
: RpcServiceRequest("dataworks-public", "2020-05-18", "CreateMetaCollection") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMetaCollectionRequest::~CreateMetaCollectionRequest() {}
|
||||
|
||||
std::string CreateMetaCollectionRequest::getParentQualifiedName() const {
|
||||
return parentQualifiedName_;
|
||||
}
|
||||
|
||||
void CreateMetaCollectionRequest::setParentQualifiedName(const std::string &parentQualifiedName) {
|
||||
parentQualifiedName_ = parentQualifiedName;
|
||||
setParameter(std::string("ParentQualifiedName"), parentQualifiedName);
|
||||
}
|
||||
|
||||
std::string CreateMetaCollectionRequest::getCollectionType() const {
|
||||
return collectionType_;
|
||||
}
|
||||
|
||||
void CreateMetaCollectionRequest::setCollectionType(const std::string &collectionType) {
|
||||
collectionType_ = collectionType;
|
||||
setParameter(std::string("CollectionType"), collectionType);
|
||||
}
|
||||
|
||||
std::string CreateMetaCollectionRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateMetaCollectionRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateMetaCollectionRequest::getComment() const {
|
||||
return comment_;
|
||||
}
|
||||
|
||||
void CreateMetaCollectionRequest::setComment(const std::string &comment) {
|
||||
comment_ = comment;
|
||||
setParameter(std::string("Comment"), comment);
|
||||
}
|
||||
|
||||
79
dataworks-public/src/model/CreateMetaCollectionResult.cc
Normal file
79
dataworks-public/src/model/CreateMetaCollectionResult.cc
Normal 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/dataworks-public/model/CreateMetaCollectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
CreateMetaCollectionResult::CreateMetaCollectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMetaCollectionResult::CreateMetaCollectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMetaCollectionResult::~CreateMetaCollectionResult()
|
||||
{}
|
||||
|
||||
void CreateMetaCollectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["QualifiedName"].isNull())
|
||||
qualifiedName_ = value["QualifiedName"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = value["HttpStatusCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateMetaCollectionResult::getQualifiedName()const
|
||||
{
|
||||
return qualifiedName_;
|
||||
}
|
||||
|
||||
std::string CreateMetaCollectionResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateMetaCollectionResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateMetaCollectionResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CreateMetaCollectionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/dataworks-public/model/DeleteMetaCollectionEntityRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::DeleteMetaCollectionEntityRequest;
|
||||
|
||||
DeleteMetaCollectionEntityRequest::DeleteMetaCollectionEntityRequest()
|
||||
: RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteMetaCollectionEntity") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMetaCollectionEntityRequest::~DeleteMetaCollectionEntityRequest() {}
|
||||
|
||||
std::string DeleteMetaCollectionEntityRequest::getEntityQualifiedName() const {
|
||||
return entityQualifiedName_;
|
||||
}
|
||||
|
||||
void DeleteMetaCollectionEntityRequest::setEntityQualifiedName(const std::string &entityQualifiedName) {
|
||||
entityQualifiedName_ = entityQualifiedName;
|
||||
setParameter(std::string("EntityQualifiedName"), entityQualifiedName);
|
||||
}
|
||||
|
||||
std::string DeleteMetaCollectionEntityRequest::getCollectionQualifiedName() const {
|
||||
return collectionQualifiedName_;
|
||||
}
|
||||
|
||||
void DeleteMetaCollectionEntityRequest::setCollectionQualifiedName(const std::string &collectionQualifiedName) {
|
||||
collectionQualifiedName_ = collectionQualifiedName;
|
||||
setParameter(std::string("CollectionQualifiedName"), collectionQualifiedName);
|
||||
}
|
||||
|
||||
@@ -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/dataworks-public/model/DeleteMetaCollectionEntityResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
DeleteMetaCollectionEntityResult::DeleteMetaCollectionEntityResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteMetaCollectionEntityResult::DeleteMetaCollectionEntityResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteMetaCollectionEntityResult::~DeleteMetaCollectionEntityResult()
|
||||
{}
|
||||
|
||||
void DeleteMetaCollectionEntityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteMetaCollectionEntityResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
int DeleteMetaCollectionEntityResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DeleteMetaCollectionEntityResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteMetaCollectionEntityResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool DeleteMetaCollectionEntityResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
36
dataworks-public/src/model/DeleteMetaCollectionRequest.cc
Normal file
36
dataworks-public/src/model/DeleteMetaCollectionRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/dataworks-public/model/DeleteMetaCollectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::DeleteMetaCollectionRequest;
|
||||
|
||||
DeleteMetaCollectionRequest::DeleteMetaCollectionRequest()
|
||||
: RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteMetaCollection") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMetaCollectionRequest::~DeleteMetaCollectionRequest() {}
|
||||
|
||||
std::string DeleteMetaCollectionRequest::getQualifiedName() const {
|
||||
return qualifiedName_;
|
||||
}
|
||||
|
||||
void DeleteMetaCollectionRequest::setQualifiedName(const std::string &qualifiedName) {
|
||||
qualifiedName_ = qualifiedName;
|
||||
setParameter(std::string("QualifiedName"), qualifiedName);
|
||||
}
|
||||
|
||||
79
dataworks-public/src/model/DeleteMetaCollectionResult.cc
Normal file
79
dataworks-public/src/model/DeleteMetaCollectionResult.cc
Normal 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/dataworks-public/model/DeleteMetaCollectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
DeleteMetaCollectionResult::DeleteMetaCollectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteMetaCollectionResult::DeleteMetaCollectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteMetaCollectionResult::~DeleteMetaCollectionResult()
|
||||
{}
|
||||
|
||||
void DeleteMetaCollectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteMetaCollectionResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
int DeleteMetaCollectionResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DeleteMetaCollectionResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteMetaCollectionResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool DeleteMetaCollectionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
36
dataworks-public/src/model/GetMetaCollectionDetailRequest.cc
Normal file
36
dataworks-public/src/model/GetMetaCollectionDetailRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/dataworks-public/model/GetMetaCollectionDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::GetMetaCollectionDetailRequest;
|
||||
|
||||
GetMetaCollectionDetailRequest::GetMetaCollectionDetailRequest()
|
||||
: RpcServiceRequest("dataworks-public", "2020-05-18", "GetMetaCollectionDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMetaCollectionDetailRequest::~GetMetaCollectionDetailRequest() {}
|
||||
|
||||
std::string GetMetaCollectionDetailRequest::getQualifiedName() const {
|
||||
return qualifiedName_;
|
||||
}
|
||||
|
||||
void GetMetaCollectionDetailRequest::setQualifiedName(const std::string &qualifiedName) {
|
||||
qualifiedName_ = qualifiedName;
|
||||
setParameter(std::string("QualifiedName"), qualifiedName);
|
||||
}
|
||||
|
||||
96
dataworks-public/src/model/GetMetaCollectionDetailResult.cc
Normal file
96
dataworks-public/src/model/GetMetaCollectionDetailResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/GetMetaCollectionDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
GetMetaCollectionDetailResult::GetMetaCollectionDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMetaCollectionDetailResult::GetMetaCollectionDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMetaCollectionDetailResult::~GetMetaCollectionDetailResult()
|
||||
{}
|
||||
|
||||
void GetMetaCollectionDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto collectionNode = value["Collection"];
|
||||
if(!collectionNode["QualifiedName"].isNull())
|
||||
collection_.qualifiedName = collectionNode["QualifiedName"].asString();
|
||||
if(!collectionNode["CollectionType"].isNull())
|
||||
collection_.collectionType = collectionNode["CollectionType"].asString();
|
||||
if(!collectionNode["Name"].isNull())
|
||||
collection_.name = collectionNode["Name"].asString();
|
||||
if(!collectionNode["Comment"].isNull())
|
||||
collection_.comment = collectionNode["Comment"].asString();
|
||||
if(!collectionNode["OwnerId"].isNull())
|
||||
collection_.ownerId = collectionNode["OwnerId"].asString();
|
||||
if(!collectionNode["OwnerName"].isNull())
|
||||
collection_.ownerName = collectionNode["OwnerName"].asString();
|
||||
if(!collectionNode["CreateTime"].isNull())
|
||||
collection_.createTime = std::stol(collectionNode["CreateTime"].asString());
|
||||
if(!collectionNode["UpdateTime"].isNull())
|
||||
collection_.updateTime = std::stol(collectionNode["UpdateTime"].asString());
|
||||
if(!collectionNode["Level"].isNull())
|
||||
collection_.level = std::stoi(collectionNode["Level"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
int GetMetaCollectionDetailResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetMetaCollectionDetailResult::Collection GetMetaCollectionDetailResult::getCollection()const
|
||||
{
|
||||
return collection_;
|
||||
}
|
||||
|
||||
std::string GetMetaCollectionDetailResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetMetaCollectionDetailResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetMetaCollectionDetailResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -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/dataworks-public/model/GetMetaTableProducingTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::GetMetaTableProducingTasksRequest;
|
||||
|
||||
GetMetaTableProducingTasksRequest::GetMetaTableProducingTasksRequest()
|
||||
: RpcServiceRequest("dataworks-public", "2020-05-18", "GetMetaTableProducingTasks") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMetaTableProducingTasksRequest::~GetMetaTableProducingTasksRequest() {}
|
||||
|
||||
std::string GetMetaTableProducingTasksRequest::getDataSourceType() const {
|
||||
return dataSourceType_;
|
||||
}
|
||||
|
||||
void GetMetaTableProducingTasksRequest::setDataSourceType(const std::string &dataSourceType) {
|
||||
dataSourceType_ = dataSourceType;
|
||||
setParameter(std::string("DataSourceType"), dataSourceType);
|
||||
}
|
||||
|
||||
std::string GetMetaTableProducingTasksRequest::getSchemaName() const {
|
||||
return schemaName_;
|
||||
}
|
||||
|
||||
void GetMetaTableProducingTasksRequest::setSchemaName(const std::string &schemaName) {
|
||||
schemaName_ = schemaName;
|
||||
setParameter(std::string("SchemaName"), schemaName);
|
||||
}
|
||||
|
||||
std::string GetMetaTableProducingTasksRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetMetaTableProducingTasksRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string GetMetaTableProducingTasksRequest::getDbName() const {
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void GetMetaTableProducingTasksRequest::setDbName(const std::string &dbName) {
|
||||
dbName_ = dbName;
|
||||
setParameter(std::string("DbName"), dbName);
|
||||
}
|
||||
|
||||
std::string GetMetaTableProducingTasksRequest::getTableGuid() const {
|
||||
return tableGuid_;
|
||||
}
|
||||
|
||||
void GetMetaTableProducingTasksRequest::setTableGuid(const std::string &tableGuid) {
|
||||
tableGuid_ = tableGuid;
|
||||
setParameter(std::string("TableGuid"), tableGuid);
|
||||
}
|
||||
|
||||
std::string GetMetaTableProducingTasksRequest::getTableName() const {
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void GetMetaTableProducingTasksRequest::setTableName(const std::string &tableName) {
|
||||
tableName_ = tableName;
|
||||
setParameter(std::string("TableName"), tableName);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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/dataworks-public/model/GetMetaTableProducingTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
GetMetaTableProducingTasksResult::GetMetaTableProducingTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMetaTableProducingTasksResult::GetMetaTableProducingTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMetaTableProducingTasksResult::~GetMetaTableProducingTasksResult()
|
||||
{}
|
||||
|
||||
void GetMetaTableProducingTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["TaskId"].isNull())
|
||||
dataObject.taskId = valueDataDataItem["TaskId"].asString();
|
||||
if(!valueDataDataItem["TaskName"].isNull())
|
||||
dataObject.taskName = valueDataDataItem["TaskName"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
int GetMetaTableProducingTasksResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<GetMetaTableProducingTasksResult::DataItem> GetMetaTableProducingTasksResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetMetaTableProducingTasksResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetMetaTableProducingTasksResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetMetaTableProducingTasksResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -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/dataworks-public/model/ListMetaCollectionEntitiesRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListMetaCollectionEntitiesRequest;
|
||||
|
||||
ListMetaCollectionEntitiesRequest::ListMetaCollectionEntitiesRequest()
|
||||
: RpcServiceRequest("dataworks-public", "2020-05-18", "ListMetaCollectionEntities") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMetaCollectionEntitiesRequest::~ListMetaCollectionEntitiesRequest() {}
|
||||
|
||||
std::string ListMetaCollectionEntitiesRequest::getCollectionQualifiedName() const {
|
||||
return collectionQualifiedName_;
|
||||
}
|
||||
|
||||
void ListMetaCollectionEntitiesRequest::setCollectionQualifiedName(const std::string &collectionQualifiedName) {
|
||||
collectionQualifiedName_ = collectionQualifiedName;
|
||||
setParameter(std::string("CollectionQualifiedName"), collectionQualifiedName);
|
||||
}
|
||||
|
||||
std::string ListMetaCollectionEntitiesRequest::getEntityType() const {
|
||||
return entityType_;
|
||||
}
|
||||
|
||||
void ListMetaCollectionEntitiesRequest::setEntityType(const std::string &entityType) {
|
||||
entityType_ = entityType;
|
||||
setParameter(std::string("EntityType"), entityType);
|
||||
}
|
||||
|
||||
std::string ListMetaCollectionEntitiesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListMetaCollectionEntitiesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
int ListMetaCollectionEntitiesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListMetaCollectionEntitiesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListMetaCollectionEntitiesRequest::getKeyword() const {
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void ListMetaCollectionEntitiesRequest::setKeyword(const std::string &keyword) {
|
||||
keyword_ = keyword;
|
||||
setParameter(std::string("Keyword"), keyword);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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/dataworks-public/model/ListMetaCollectionEntitiesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListMetaCollectionEntitiesResult::ListMetaCollectionEntitiesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMetaCollectionEntitiesResult::ListMetaCollectionEntitiesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMetaCollectionEntitiesResult::~ListMetaCollectionEntitiesResult()
|
||||
{}
|
||||
|
||||
void ListMetaCollectionEntitiesResult::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["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
auto allEntityListNode = dataNode["EntityList"]["EntityListItem"];
|
||||
for (auto dataNodeEntityListEntityListItem : allEntityListNode)
|
||||
{
|
||||
Data::EntityListItem entityListItemObject;
|
||||
if(!dataNodeEntityListEntityListItem["QualifiedName"].isNull())
|
||||
entityListItemObject.qualifiedName = dataNodeEntityListEntityListItem["QualifiedName"].asString();
|
||||
if(!dataNodeEntityListEntityListItem["TenantId"].isNull())
|
||||
entityListItemObject.tenantId = std::stol(dataNodeEntityListEntityListItem["TenantId"].asString());
|
||||
if(!dataNodeEntityListEntityListItem["EntityContent"].isNull())
|
||||
entityListItemObject.entityContent = dataNodeEntityListEntityListItem["EntityContent"].asString();
|
||||
data_.entityList.push_back(entityListItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListMetaCollectionEntitiesResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
ListMetaCollectionEntitiesResult::Data ListMetaCollectionEntitiesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListMetaCollectionEntitiesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListMetaCollectionEntitiesResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListMetaCollectionEntitiesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
108
dataworks-public/src/model/ListMetaCollectionsRequest.cc
Normal file
108
dataworks-public/src/model/ListMetaCollectionsRequest.cc
Normal 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/dataworks-public/model/ListMetaCollectionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListMetaCollectionsRequest;
|
||||
|
||||
ListMetaCollectionsRequest::ListMetaCollectionsRequest()
|
||||
: RpcServiceRequest("dataworks-public", "2020-05-18", "ListMetaCollections") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMetaCollectionsRequest::~ListMetaCollectionsRequest() {}
|
||||
|
||||
std::string ListMetaCollectionsRequest::getCreator() const {
|
||||
return creator_;
|
||||
}
|
||||
|
||||
void ListMetaCollectionsRequest::setCreator(const std::string &creator) {
|
||||
creator_ = creator;
|
||||
setParameter(std::string("Creator"), creator);
|
||||
}
|
||||
|
||||
std::string ListMetaCollectionsRequest::getFollower() const {
|
||||
return follower_;
|
||||
}
|
||||
|
||||
void ListMetaCollectionsRequest::setFollower(const std::string &follower) {
|
||||
follower_ = follower;
|
||||
setParameter(std::string("Follower"), follower);
|
||||
}
|
||||
|
||||
std::string ListMetaCollectionsRequest::getParentQualifiedName() const {
|
||||
return parentQualifiedName_;
|
||||
}
|
||||
|
||||
void ListMetaCollectionsRequest::setParentQualifiedName(const std::string &parentQualifiedName) {
|
||||
parentQualifiedName_ = parentQualifiedName;
|
||||
setParameter(std::string("ParentQualifiedName"), parentQualifiedName);
|
||||
}
|
||||
|
||||
std::string ListMetaCollectionsRequest::getOrderBy() const {
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void ListMetaCollectionsRequest::setOrderBy(const std::string &orderBy) {
|
||||
orderBy_ = orderBy;
|
||||
setParameter(std::string("OrderBy"), orderBy);
|
||||
}
|
||||
|
||||
std::string ListMetaCollectionsRequest::getCollectionType() const {
|
||||
return collectionType_;
|
||||
}
|
||||
|
||||
void ListMetaCollectionsRequest::setCollectionType(const std::string &collectionType) {
|
||||
collectionType_ = collectionType;
|
||||
setParameter(std::string("CollectionType"), collectionType);
|
||||
}
|
||||
|
||||
std::string ListMetaCollectionsRequest::getAdministrator() const {
|
||||
return administrator_;
|
||||
}
|
||||
|
||||
void ListMetaCollectionsRequest::setAdministrator(const std::string &administrator) {
|
||||
administrator_ = administrator;
|
||||
setParameter(std::string("Administrator"), administrator);
|
||||
}
|
||||
|
||||
std::string ListMetaCollectionsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListMetaCollectionsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
int ListMetaCollectionsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListMetaCollectionsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListMetaCollectionsRequest::getKeyword() const {
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void ListMetaCollectionsRequest::setKeyword(const std::string &keyword) {
|
||||
keyword_ = keyword;
|
||||
setParameter(std::string("Keyword"), keyword);
|
||||
}
|
||||
|
||||
104
dataworks-public/src/model/ListMetaCollectionsResult.cc
Normal file
104
dataworks-public/src/model/ListMetaCollectionsResult.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/dataworks-public/model/ListMetaCollectionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListMetaCollectionsResult::ListMetaCollectionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMetaCollectionsResult::ListMetaCollectionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMetaCollectionsResult::~ListMetaCollectionsResult()
|
||||
{}
|
||||
|
||||
void ListMetaCollectionsResult::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["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
auto allCollectionListNode = dataNode["CollectionList"]["CollectionListItem"];
|
||||
for (auto dataNodeCollectionListCollectionListItem : allCollectionListNode)
|
||||
{
|
||||
Data::CollectionListItem collectionListItemObject;
|
||||
if(!dataNodeCollectionListCollectionListItem["QualifiedName"].isNull())
|
||||
collectionListItemObject.qualifiedName = dataNodeCollectionListCollectionListItem["QualifiedName"].asString();
|
||||
if(!dataNodeCollectionListCollectionListItem["CollectionType"].isNull())
|
||||
collectionListItemObject.collectionType = dataNodeCollectionListCollectionListItem["CollectionType"].asString();
|
||||
if(!dataNodeCollectionListCollectionListItem["Name"].isNull())
|
||||
collectionListItemObject.name = dataNodeCollectionListCollectionListItem["Name"].asString();
|
||||
if(!dataNodeCollectionListCollectionListItem["Comment"].isNull())
|
||||
collectionListItemObject.comment = dataNodeCollectionListCollectionListItem["Comment"].asString();
|
||||
if(!dataNodeCollectionListCollectionListItem["OwnerId"].isNull())
|
||||
collectionListItemObject.ownerId = dataNodeCollectionListCollectionListItem["OwnerId"].asString();
|
||||
if(!dataNodeCollectionListCollectionListItem["OwnerName"].isNull())
|
||||
collectionListItemObject.ownerName = dataNodeCollectionListCollectionListItem["OwnerName"].asString();
|
||||
if(!dataNodeCollectionListCollectionListItem["CreateTime"].isNull())
|
||||
collectionListItemObject.createTime = std::stol(dataNodeCollectionListCollectionListItem["CreateTime"].asString());
|
||||
if(!dataNodeCollectionListCollectionListItem["UpdateTime"].isNull())
|
||||
collectionListItemObject.updateTime = std::stol(dataNodeCollectionListCollectionListItem["UpdateTime"].asString());
|
||||
if(!dataNodeCollectionListCollectionListItem["Level"].isNull())
|
||||
collectionListItemObject.level = std::stoi(dataNodeCollectionListCollectionListItem["Level"].asString());
|
||||
data_.collectionList.push_back(collectionListItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListMetaCollectionsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
ListMetaCollectionsResult::Data ListMetaCollectionsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListMetaCollectionsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListMetaCollectionsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListMetaCollectionsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
dataworks-public/src/model/UpdateMetaCollectionRequest.cc
Normal file
54
dataworks-public/src/model/UpdateMetaCollectionRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/dataworks-public/model/UpdateMetaCollectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::UpdateMetaCollectionRequest;
|
||||
|
||||
UpdateMetaCollectionRequest::UpdateMetaCollectionRequest()
|
||||
: RpcServiceRequest("dataworks-public", "2020-05-18", "UpdateMetaCollection") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateMetaCollectionRequest::~UpdateMetaCollectionRequest() {}
|
||||
|
||||
std::string UpdateMetaCollectionRequest::getQualifiedName() const {
|
||||
return qualifiedName_;
|
||||
}
|
||||
|
||||
void UpdateMetaCollectionRequest::setQualifiedName(const std::string &qualifiedName) {
|
||||
qualifiedName_ = qualifiedName;
|
||||
setParameter(std::string("QualifiedName"), qualifiedName);
|
||||
}
|
||||
|
||||
std::string UpdateMetaCollectionRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateMetaCollectionRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string UpdateMetaCollectionRequest::getComment() const {
|
||||
return comment_;
|
||||
}
|
||||
|
||||
void UpdateMetaCollectionRequest::setComment(const std::string &comment) {
|
||||
comment_ = comment;
|
||||
setParameter(std::string("Comment"), comment);
|
||||
}
|
||||
|
||||
79
dataworks-public/src/model/UpdateMetaCollectionResult.cc
Normal file
79
dataworks-public/src/model/UpdateMetaCollectionResult.cc
Normal 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/dataworks-public/model/UpdateMetaCollectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
UpdateMetaCollectionResult::UpdateMetaCollectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateMetaCollectionResult::UpdateMetaCollectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateMetaCollectionResult::~UpdateMetaCollectionResult()
|
||||
{}
|
||||
|
||||
void UpdateMetaCollectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool UpdateMetaCollectionResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
int UpdateMetaCollectionResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string UpdateMetaCollectionResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string UpdateMetaCollectionResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool UpdateMetaCollectionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user