Generated 2020-05-18 for dataworks-public.

This commit is contained in:
sdk-team
2022-07-19 06:41:23 +00:00
parent 6c572378d9
commit c6fe210221
34 changed files with 448 additions and 376 deletions

View File

@@ -2823,42 +2823,6 @@ Dataworks_publicClient::GetDeploymentOutcomeCallable Dataworks_publicClient::get
return task->get_future();
}
Dataworks_publicClient::GetDutyRosterOutcome Dataworks_publicClient::getDutyRoster(const GetDutyRosterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDutyRosterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetDutyRosterOutcome(GetDutyRosterResult(outcome.result()));
else
return GetDutyRosterOutcome(outcome.error());
}
void Dataworks_publicClient::getDutyRosterAsync(const GetDutyRosterRequest& request, const GetDutyRosterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getDutyRoster(request), context);
};
asyncExecute(new Runnable(fn));
}
Dataworks_publicClient::GetDutyRosterOutcomeCallable Dataworks_publicClient::getDutyRosterCallable(const GetDutyRosterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetDutyRosterOutcome()>>(
[this, request]()
{
return this->getDutyRoster(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dataworks_publicClient::GetExtensionOutcome Dataworks_publicClient::getExtension(const GetExtensionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5415,42 +5379,6 @@ Dataworks_publicClient::ListDeploymentsOutcomeCallable Dataworks_publicClient::l
return task->get_future();
}
Dataworks_publicClient::ListDutyRostersOutcome Dataworks_publicClient::listDutyRosters(const ListDutyRostersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListDutyRostersOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListDutyRostersOutcome(ListDutyRostersResult(outcome.result()));
else
return ListDutyRostersOutcome(outcome.error());
}
void Dataworks_publicClient::listDutyRostersAsync(const ListDutyRostersRequest& request, const ListDutyRostersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listDutyRosters(request), context);
};
asyncExecute(new Runnable(fn));
}
Dataworks_publicClient::ListDutyRostersOutcomeCallable Dataworks_publicClient::listDutyRostersCallable(const ListDutyRostersRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListDutyRostersOutcome()>>(
[this, request]()
{
return this->listDutyRosters(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dataworks_publicClient::ListExtensionsOutcome Dataworks_publicClient::listExtensions(const ListExtensionsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6459,6 +6387,78 @@ Dataworks_publicClient::ListResourceGroupsOutcomeCallable Dataworks_publicClient
return task->get_future();
}
Dataworks_publicClient::ListShiftPersonnelsOutcome Dataworks_publicClient::listShiftPersonnels(const ListShiftPersonnelsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListShiftPersonnelsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListShiftPersonnelsOutcome(ListShiftPersonnelsResult(outcome.result()));
else
return ListShiftPersonnelsOutcome(outcome.error());
}
void Dataworks_publicClient::listShiftPersonnelsAsync(const ListShiftPersonnelsRequest& request, const ListShiftPersonnelsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listShiftPersonnels(request), context);
};
asyncExecute(new Runnable(fn));
}
Dataworks_publicClient::ListShiftPersonnelsOutcomeCallable Dataworks_publicClient::listShiftPersonnelsCallable(const ListShiftPersonnelsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListShiftPersonnelsOutcome()>>(
[this, request]()
{
return this->listShiftPersonnels(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dataworks_publicClient::ListShiftSchedulesOutcome Dataworks_publicClient::listShiftSchedules(const ListShiftSchedulesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListShiftSchedulesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListShiftSchedulesOutcome(ListShiftSchedulesResult(outcome.result()));
else
return ListShiftSchedulesOutcome(outcome.error());
}
void Dataworks_publicClient::listShiftSchedulesAsync(const ListShiftSchedulesRequest& request, const ListShiftSchedulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listShiftSchedules(request), context);
};
asyncExecute(new Runnable(fn));
}
Dataworks_publicClient::ListShiftSchedulesOutcomeCallable Dataworks_publicClient::listShiftSchedulesCallable(const ListShiftSchedulesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListShiftSchedulesOutcome()>>(
[this, request]()
{
return this->listShiftSchedules(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dataworks_publicClient::ListSuccessInstanceAmountOutcome Dataworks_publicClient::listSuccessInstanceAmount(const ListSuccessInstanceAmountRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -61,15 +61,6 @@ void CreateDataSourceRequest::setSubType(const std::string &subType) {
setParameter(std::string("SubType"), subType);
}
std::string CreateDataSourceRequest::getName() const {
return name_;
}
void CreateDataSourceRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}
int CreateDataSourceRequest::getEnvType() const {
return envType_;
}
@@ -88,3 +79,12 @@ void CreateDataSourceRequest::setProjectId(long projectId) {
setParameter(std::string("ProjectId"), std::to_string(projectId));
}
std::string CreateDataSourceRequest::getName() const {
return name_;
}
void CreateDataSourceRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}

View File

@@ -25,6 +25,15 @@ CreateTableRequest::CreateTableRequest()
CreateTableRequest::~CreateTableRequest() {}
std::string CreateTableRequest::getSchema() const {
return schema_;
}
void CreateTableRequest::setSchema(const std::string &schema) {
schema_ = schema;
setParameter(std::string("Schema"), schema);
}
std::string CreateTableRequest::getClientToken() const {
return clientToken_;
}

View File

@@ -25,6 +25,15 @@ DeleteTableRequest::DeleteTableRequest()
DeleteTableRequest::~DeleteTableRequest() {}
std::string DeleteTableRequest::getSchema() const {
return schema_;
}
void DeleteTableRequest::setSchema(const std::string &schema) {
schema_ = schema;
setParameter(std::string("Schema"), schema);
}
int DeleteTableRequest::getEnvType() const {
return envType_;
}

View File

@@ -1,72 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/GetDutyRosterRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetDutyRosterRequest;
GetDutyRosterRequest::GetDutyRosterRequest()
: RpcServiceRequest("dataworks-public", "2020-05-18", "GetDutyRoster") {
setMethod(HttpRequest::Method::Post);
}
GetDutyRosterRequest::~GetDutyRosterRequest() {}
std::string GetDutyRosterRequest::getDutyRosterIdentifier() const {
return dutyRosterIdentifier_;
}
void GetDutyRosterRequest::setDutyRosterIdentifier(const std::string &dutyRosterIdentifier) {
dutyRosterIdentifier_ = dutyRosterIdentifier;
setBodyParameter(std::string("DutyRosterIdentifier"), dutyRosterIdentifier);
}
std::string GetDutyRosterRequest::getWatchkeeper() const {
return watchkeeper_;
}
void GetDutyRosterRequest::setWatchkeeper(const std::string &watchkeeper) {
watchkeeper_ = watchkeeper;
setBodyParameter(std::string("Watchkeeper"), watchkeeper);
}
std::string GetDutyRosterRequest::getUserType() const {
return userType_;
}
void GetDutyRosterRequest::setUserType(const std::string &userType) {
userType_ = userType;
setBodyParameter(std::string("UserType"), userType);
}
long GetDutyRosterRequest::getEndTime() const {
return endTime_;
}
void GetDutyRosterRequest::setEndTime(long endTime) {
endTime_ = endTime;
setBodyParameter(std::string("EndTime"), std::to_string(endTime));
}
long GetDutyRosterRequest::getBeginTime() const {
return beginTime_;
}
void GetDutyRosterRequest::setBeginTime(long beginTime) {
beginTime_ = beginTime;
setBodyParameter(std::string("BeginTime"), std::to_string(beginTime));
}

View File

@@ -1,70 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/GetDutyRosterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetDutyRosterResult::GetDutyRosterResult() :
ServiceResult()
{}
GetDutyRosterResult::GetDutyRosterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDutyRosterResult::~GetDutyRosterResult()
{}
void GetDutyRosterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto pagingNode = value["Paging"];
if(!pagingNode["PageNumber"].isNull())
paging_.pageNumber = std::stoi(pagingNode["PageNumber"].asString());
if(!pagingNode["PageSize"].isNull())
paging_.pageSize = std::stoi(pagingNode["PageSize"].asString());
if(!pagingNode["TotalCount"].isNull())
paging_.totalCount = std::stoi(pagingNode["TotalCount"].asString());
auto allDutyRosterNode = pagingNode["DutyRoster"]["DutyRosterItem"];
for (auto pagingNodeDutyRosterDutyRosterItem : allDutyRosterNode)
{
Paging::DutyRosterItem dutyRosterItemObject;
if(!pagingNodeDutyRosterDutyRosterItem["Watchkeeper"].isNull())
dutyRosterItemObject.watchkeeper = pagingNodeDutyRosterDutyRosterItem["Watchkeeper"].asString();
if(!pagingNodeDutyRosterDutyRosterItem["WatchkeeperName"].isNull())
dutyRosterItemObject.watchkeeperName = pagingNodeDutyRosterDutyRosterItem["WatchkeeperName"].asString();
if(!pagingNodeDutyRosterDutyRosterItem["StartLong"].isNull())
dutyRosterItemObject.startLong = std::stol(pagingNodeDutyRosterDutyRosterItem["StartLong"].asString());
if(!pagingNodeDutyRosterDutyRosterItem["EndLong"].isNull())
dutyRosterItemObject.endLong = std::stol(pagingNodeDutyRosterDutyRosterItem["EndLong"].asString());
paging_.dutyRoster.push_back(dutyRosterItemObject);
}
}
GetDutyRosterResult::Paging GetDutyRosterResult::getPaging()const
{
return paging_;
}

View File

@@ -92,6 +92,8 @@ void GetMetaTableBasicInfoResult::parse(const std::string &payload)
data_.caption = dataNode["Caption"].asString();
if(!dataNode["TenantId"].isNull())
data_.tenantId = std::stol(dataNode["TenantId"].asString());
if(!dataNode["Schema"].isNull())
data_.schema = dataNode["Schema"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["ErrorMessage"].isNull())

View File

@@ -80,6 +80,8 @@ void GetMetaTableFullInfoResult::parse(const std::string &payload)
data_.clusterId = dataNode["ClusterId"].asString();
if(!dataNode["TenantId"].isNull())
data_.tenantId = std::stol(dataNode["TenantId"].asString());
if(!dataNode["Schema"].isNull())
data_.schema = dataNode["Schema"].asString();
auto allColumnListNode = dataNode["ColumnList"]["ColumnListItem"];
for (auto dataNodeColumnListColumnListItem : allColumnListNode)
{

View File

@@ -1,63 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/ListDutyRostersRequest.h>
using AlibabaCloud::Dataworks_public::Model::ListDutyRostersRequest;
ListDutyRostersRequest::ListDutyRostersRequest()
: RpcServiceRequest("dataworks-public", "2020-05-18", "ListDutyRosters") {
setMethod(HttpRequest::Method::Post);
}
ListDutyRostersRequest::~ListDutyRostersRequest() {}
std::string ListDutyRostersRequest::getDutyRosterOwner() const {
return dutyRosterOwner_;
}
void ListDutyRostersRequest::setDutyRosterOwner(const std::string &dutyRosterOwner) {
dutyRosterOwner_ = dutyRosterOwner;
setBodyParameter(std::string("DutyRosterOwner"), dutyRosterOwner);
}
std::string ListDutyRostersRequest::getDutyRosterName() const {
return dutyRosterName_;
}
void ListDutyRostersRequest::setDutyRosterName(const std::string &dutyRosterName) {
dutyRosterName_ = dutyRosterName;
setBodyParameter(std::string("DutyRosterName"), dutyRosterName);
}
int ListDutyRostersRequest::getPageSize() const {
return pageSize_;
}
void ListDutyRostersRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
int ListDutyRostersRequest::getPageNumber() const {
return pageNumber_;
}
void ListDutyRostersRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}

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/dataworks-public/model/ListShiftPersonnelsRequest.h>
using AlibabaCloud::Dataworks_public::Model::ListShiftPersonnelsRequest;
ListShiftPersonnelsRequest::ListShiftPersonnelsRequest()
: RpcServiceRequest("dataworks-public", "2020-05-18", "ListShiftPersonnels") {
setMethod(HttpRequest::Method::Post);
}
ListShiftPersonnelsRequest::~ListShiftPersonnelsRequest() {}
std::string ListShiftPersonnelsRequest::getShiftPersonUID() const {
return shiftPersonUID_;
}
void ListShiftPersonnelsRequest::setShiftPersonUID(const std::string &shiftPersonUID) {
shiftPersonUID_ = shiftPersonUID;
setBodyParameter(std::string("ShiftPersonUID"), shiftPersonUID);
}
std::string ListShiftPersonnelsRequest::getUserType() const {
return userType_;
}
void ListShiftPersonnelsRequest::setUserType(const std::string &userType) {
userType_ = userType;
setBodyParameter(std::string("UserType"), userType);
}
long ListShiftPersonnelsRequest::getEndTime() const {
return endTime_;
}
void ListShiftPersonnelsRequest::setEndTime(long endTime) {
endTime_ = endTime;
setBodyParameter(std::string("EndTime"), std::to_string(endTime));
}
long ListShiftPersonnelsRequest::getBeginTime() const {
return beginTime_;
}
void ListShiftPersonnelsRequest::setBeginTime(long beginTime) {
beginTime_ = beginTime;
setBodyParameter(std::string("BeginTime"), std::to_string(beginTime));
}
std::string ListShiftPersonnelsRequest::getShiftScheduleIdentifier() const {
return shiftScheduleIdentifier_;
}
void ListShiftPersonnelsRequest::setShiftScheduleIdentifier(const std::string &shiftScheduleIdentifier) {
shiftScheduleIdentifier_ = shiftScheduleIdentifier;
setBodyParameter(std::string("ShiftScheduleIdentifier"), shiftScheduleIdentifier);
}

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/ListShiftPersonnelsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
ListShiftPersonnelsResult::ListShiftPersonnelsResult() :
ServiceResult()
{}
ListShiftPersonnelsResult::ListShiftPersonnelsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListShiftPersonnelsResult::~ListShiftPersonnelsResult()
{}
void ListShiftPersonnelsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto pagingNode = value["Paging"];
if(!pagingNode["PageNumber"].isNull())
paging_.pageNumber = std::stoi(pagingNode["PageNumber"].asString());
if(!pagingNode["PageSize"].isNull())
paging_.pageSize = std::stoi(pagingNode["PageSize"].asString());
if(!pagingNode["TotalCount"].isNull())
paging_.totalCount = std::stoi(pagingNode["TotalCount"].asString());
auto allShiftPersonsNode = pagingNode["ShiftPersons"]["ShiftPersonsItem"];
for (auto pagingNodeShiftPersonsShiftPersonsItem : allShiftPersonsNode)
{
Paging::ShiftPersonsItem shiftPersonsItemObject;
if(!pagingNodeShiftPersonsShiftPersonsItem["ShiftPersonUID"].isNull())
shiftPersonsItemObject.shiftPersonUID = pagingNodeShiftPersonsShiftPersonsItem["ShiftPersonUID"].asString();
if(!pagingNodeShiftPersonsShiftPersonsItem["ShiftPersonName"].isNull())
shiftPersonsItemObject.shiftPersonName = pagingNodeShiftPersonsShiftPersonsItem["ShiftPersonName"].asString();
if(!pagingNodeShiftPersonsShiftPersonsItem["BeginTime"].isNull())
shiftPersonsItemObject.beginTime = std::stol(pagingNodeShiftPersonsShiftPersonsItem["BeginTime"].asString());
if(!pagingNodeShiftPersonsShiftPersonsItem["EndTime"].isNull())
shiftPersonsItemObject.endTime = std::stol(pagingNodeShiftPersonsShiftPersonsItem["EndTime"].asString());
paging_.shiftPersons.push_back(shiftPersonsItemObject);
}
}
ListShiftPersonnelsResult::Paging ListShiftPersonnelsResult::getPaging()const
{
return paging_;
}

View 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/ListShiftSchedulesRequest.h>
using AlibabaCloud::Dataworks_public::Model::ListShiftSchedulesRequest;
ListShiftSchedulesRequest::ListShiftSchedulesRequest()
: RpcServiceRequest("dataworks-public", "2020-05-18", "ListShiftSchedules") {
setMethod(HttpRequest::Method::Post);
}
ListShiftSchedulesRequest::~ListShiftSchedulesRequest() {}
std::string ListShiftSchedulesRequest::getOwner() const {
return owner_;
}
void ListShiftSchedulesRequest::setOwner(const std::string &owner) {
owner_ = owner;
setBodyParameter(std::string("Owner"), owner);
}
int ListShiftSchedulesRequest::getPageSize() const {
return pageSize_;
}
void ListShiftSchedulesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListShiftSchedulesRequest::getShiftScheduleName() const {
return shiftScheduleName_;
}
void ListShiftSchedulesRequest::setShiftScheduleName(const std::string &shiftScheduleName) {
shiftScheduleName_ = shiftScheduleName;
setBodyParameter(std::string("ShiftScheduleName"), shiftScheduleName);
}
int ListShiftSchedulesRequest::getPageNumber() const {
return pageNumber_;
}
void ListShiftSchedulesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/ListDutyRostersResult.h>
#include <alibabacloud/dataworks-public/model/ListShiftSchedulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
ListDutyRostersResult::ListDutyRostersResult() :
ListShiftSchedulesResult::ListShiftSchedulesResult() :
ServiceResult()
{}
ListDutyRostersResult::ListDutyRostersResult(const std::string &payload) :
ListShiftSchedulesResult::ListShiftSchedulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDutyRostersResult::~ListDutyRostersResult()
ListShiftSchedulesResult::~ListShiftSchedulesResult()
{}
void ListDutyRostersResult::parse(const std::string &payload)
void ListShiftSchedulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -46,20 +46,20 @@ void ListDutyRostersResult::parse(const std::string &payload)
paging_.pageSize = std::stoi(pagingNode["PageSize"].asString());
if(!pagingNode["TotalCount"].isNull())
paging_.totalCount = std::stoi(pagingNode["TotalCount"].asString());
auto allDutyRostersNode = pagingNode["DutyRosters"]["DutyRostersItem"];
for (auto pagingNodeDutyRostersDutyRostersItem : allDutyRostersNode)
auto allShiftSchedulesNode = pagingNode["ShiftSchedules"]["ShiftSchedulesItem"];
for (auto pagingNodeShiftSchedulesShiftSchedulesItem : allShiftSchedulesNode)
{
Paging::DutyRostersItem dutyRostersItemObject;
if(!pagingNodeDutyRostersDutyRostersItem["DutyRosterIdentifier"].isNull())
dutyRostersItemObject.dutyRosterIdentifier = pagingNodeDutyRostersDutyRostersItem["DutyRosterIdentifier"].asString();
if(!pagingNodeDutyRostersDutyRostersItem["DutyRosterName"].isNull())
dutyRostersItemObject.dutyRosterName = pagingNodeDutyRostersDutyRostersItem["DutyRosterName"].asString();
paging_.dutyRosters.push_back(dutyRostersItemObject);
Paging::ShiftSchedulesItem shiftSchedulesItemObject;
if(!pagingNodeShiftSchedulesShiftSchedulesItem["ShiftScheduleIdentifier"].isNull())
shiftSchedulesItemObject.shiftScheduleIdentifier = pagingNodeShiftSchedulesShiftSchedulesItem["ShiftScheduleIdentifier"].asString();
if(!pagingNodeShiftSchedulesShiftSchedulesItem["ShiftScheduleName"].isNull())
shiftSchedulesItemObject.shiftScheduleName = pagingNodeShiftSchedulesShiftSchedulesItem["ShiftScheduleName"].asString();
paging_.shiftSchedules.push_back(shiftSchedulesItemObject);
}
}
ListDutyRostersResult::Paging ListDutyRostersResult::getPaging()const
ListShiftSchedulesResult::Paging ListShiftSchedulesResult::getPaging()const
{
return paging_;
}

View File

@@ -25,6 +25,15 @@ SearchMetaTablesRequest::SearchMetaTablesRequest()
SearchMetaTablesRequest::~SearchMetaTablesRequest() {}
std::string SearchMetaTablesRequest::getSchema() const {
return schema_;
}
void SearchMetaTablesRequest::setSchema(const std::string &schema) {
schema_ = schema;
setParameter(std::string("Schema"), schema);
}
std::string SearchMetaTablesRequest::getDataSourceType() const {
return dataSourceType_;
}

View File

@@ -70,6 +70,8 @@ void SearchMetaTablesResult::parse(const std::string &payload)
dataEntityListItemObject.envType = std::stoi(dataNodeDataEntityListDataEntityListItem["EnvType"].asString());
if(!dataNodeDataEntityListDataEntityListItem["TenantId"].isNull())
dataEntityListItemObject.tenantId = std::stol(dataNodeDataEntityListDataEntityListItem["TenantId"].asString());
if(!dataNodeDataEntityListDataEntityListItem["Schema"].isNull())
dataEntityListItemObject.schema = dataNodeDataEntityListDataEntityListItem["Schema"].asString();
data_.dataEntityList.push_back(dataEntityListItemObject);
}
if(!value["HttpStatusCode"].isNull())

View File

@@ -25,6 +25,15 @@ UpdateMetaTableRequest::UpdateMetaTableRequest()
UpdateMetaTableRequest::~UpdateMetaTableRequest() {}
std::string UpdateMetaTableRequest::getSchema() const {
return schema_;
}
void UpdateMetaTableRequest::setSchema(const std::string &schema) {
schema_ = schema;
setParameter(std::string("Schema"), schema);
}
int UpdateMetaTableRequest::getVisibility() const {
return visibility_;
}

View File

@@ -25,6 +25,15 @@ UpdateTableRequest::UpdateTableRequest()
UpdateTableRequest::~UpdateTableRequest() {}
std::string UpdateTableRequest::getSchema() const {
return schema_;
}
void UpdateTableRequest::setSchema(const std::string &schema) {
schema_ = schema;
setParameter(std::string("Schema"), schema);
}
std::vector<UpdateTableRequest::Columns> UpdateTableRequest::getColumns() const {
return columns_;
}