Generated 2020-05-18 for dataworks-public.

This commit is contained in:
sdk-team
2020-07-02 17:34:31 +08:00
parent f0ef60d4fa
commit 882187b0e9
430 changed files with 39201 additions and 1 deletions

View File

@@ -0,0 +1,62 @@
/*
* 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/AbolishDataServiceApiRequest.h>
using AlibabaCloud::Dataworks_public::Model::AbolishDataServiceApiRequest;
AbolishDataServiceApiRequest::AbolishDataServiceApiRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "AbolishDataServiceApi")
{
setMethod(HttpRequest::Method::Post);
}
AbolishDataServiceApiRequest::~AbolishDataServiceApiRequest()
{}
long AbolishDataServiceApiRequest::getTenantId()const
{
return tenantId_;
}
void AbolishDataServiceApiRequest::setTenantId(long tenantId)
{
tenantId_ = tenantId;
setBodyParameter("TenantId", std::to_string(tenantId));
}
long AbolishDataServiceApiRequest::getProjectId()const
{
return projectId_;
}
void AbolishDataServiceApiRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
long AbolishDataServiceApiRequest::getApiId()const
{
return apiId_;
}
void AbolishDataServiceApiRequest::setApiId(long apiId)
{
apiId_ = apiId;
setBodyParameter("ApiId", std::to_string(apiId));
}

View File

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

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/AddToMetaCategoryRequest.h>
using AlibabaCloud::Dataworks_public::Model::AddToMetaCategoryRequest;
AddToMetaCategoryRequest::AddToMetaCategoryRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "AddToMetaCategory")
{
setMethod(HttpRequest::Method::Post);
}
AddToMetaCategoryRequest::~AddToMetaCategoryRequest()
{}
std::string AddToMetaCategoryRequest::getTableGuid()const
{
return tableGuid_;
}
void AddToMetaCategoryRequest::setTableGuid(const std::string& tableGuid)
{
tableGuid_ = tableGuid;
setParameter("TableGuid", tableGuid);
}
long AddToMetaCategoryRequest::getCategoryId()const
{
return categoryId_;
}
void AddToMetaCategoryRequest::setCategoryId(long categoryId)
{
categoryId_ = categoryId;
setParameter("CategoryId", std::to_string(categoryId));
}

View File

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

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/CheckMetaPartitionRequest.h>
using AlibabaCloud::Dataworks_public::Model::CheckMetaPartitionRequest;
CheckMetaPartitionRequest::CheckMetaPartitionRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CheckMetaPartition")
{
setMethod(HttpRequest::Method::Post);
}
CheckMetaPartitionRequest::~CheckMetaPartitionRequest()
{}
std::string CheckMetaPartitionRequest::getPartition()const
{
return partition_;
}
void CheckMetaPartitionRequest::setPartition(const std::string& partition)
{
partition_ = partition;
setParameter("Partition", partition);
}
std::string CheckMetaPartitionRequest::getTableGuid()const
{
return tableGuid_;
}
void CheckMetaPartitionRequest::setTableGuid(const std::string& tableGuid)
{
tableGuid_ = tableGuid;
setParameter("TableGuid", tableGuid);
}

View File

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

View File

@@ -0,0 +1,40 @@
/*
* 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/CheckMetaTableRequest.h>
using AlibabaCloud::Dataworks_public::Model::CheckMetaTableRequest;
CheckMetaTableRequest::CheckMetaTableRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CheckMetaTable")
{
setMethod(HttpRequest::Method::Post);
}
CheckMetaTableRequest::~CheckMetaTableRequest()
{}
std::string CheckMetaTableRequest::getTableGuid()const
{
return tableGuid_;
}
void CheckMetaTableRequest::setTableGuid(const std::string& tableGuid)
{
tableGuid_ = tableGuid;
setParameter("TableGuid", tableGuid);
}

View File

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

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/CreateConnectionRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateConnectionRequest;
CreateConnectionRequest::CreateConnectionRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateConnection")
{
setMethod(HttpRequest::Method::Post);
}
CreateConnectionRequest::~CreateConnectionRequest()
{}
std::string CreateConnectionRequest::getDescription()const
{
return description_;
}
void CreateConnectionRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateConnectionRequest::getContent()const
{
return content_;
}
void CreateConnectionRequest::setContent(const std::string& content)
{
content_ = content;
setParameter("Content", content);
}
std::string CreateConnectionRequest::getSubType()const
{
return subType_;
}
void CreateConnectionRequest::setSubType(const std::string& subType)
{
subType_ = subType;
setParameter("SubType", subType);
}
std::string CreateConnectionRequest::getName()const
{
return name_;
}
void CreateConnectionRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
int CreateConnectionRequest::getEnvType()const
{
return envType_;
}
void CreateConnectionRequest::setEnvType(int envType)
{
envType_ = envType;
setParameter("EnvType", std::to_string(envType));
}
std::string CreateConnectionRequest::getConnectionType()const
{
return connectionType_;
}
void CreateConnectionRequest::setConnectionType(const std::string& connectionType)
{
connectionType_ = connectionType;
setParameter("ConnectionType", connectionType);
}
long CreateConnectionRequest::getProjectId()const
{
return projectId_;
}
void CreateConnectionRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}

View File

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

View File

@@ -0,0 +1,194 @@
/*
* 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/CreateDataServiceApiRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateDataServiceApiRequest;
CreateDataServiceApiRequest::CreateDataServiceApiRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateDataServiceApi")
{
setMethod(HttpRequest::Method::Post);
}
CreateDataServiceApiRequest::~CreateDataServiceApiRequest()
{}
std::string CreateDataServiceApiRequest::getScriptDetails()const
{
return scriptDetails_;
}
void CreateDataServiceApiRequest::setScriptDetails(const std::string& scriptDetails)
{
scriptDetails_ = scriptDetails;
setBodyParameter("ScriptDetails", scriptDetails);
}
int CreateDataServiceApiRequest::getRequestMethod()const
{
return requestMethod_;
}
void CreateDataServiceApiRequest::setRequestMethod(int requestMethod)
{
requestMethod_ = requestMethod;
setBodyParameter("RequestMethod", std::to_string(requestMethod));
}
std::string CreateDataServiceApiRequest::getGroupId()const
{
return groupId_;
}
void CreateDataServiceApiRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setBodyParameter("GroupId", groupId);
}
std::string CreateDataServiceApiRequest::getApiPath()const
{
return apiPath_;
}
void CreateDataServiceApiRequest::setApiPath(const std::string& apiPath)
{
apiPath_ = apiPath;
setBodyParameter("ApiPath", apiPath);
}
std::string CreateDataServiceApiRequest::getWizardDetails()const
{
return wizardDetails_;
}
void CreateDataServiceApiRequest::setWizardDetails(const std::string& wizardDetails)
{
wizardDetails_ = wizardDetails;
setBodyParameter("WizardDetails", wizardDetails);
}
int CreateDataServiceApiRequest::getApiMode()const
{
return apiMode_;
}
void CreateDataServiceApiRequest::setApiMode(int apiMode)
{
apiMode_ = apiMode;
setBodyParameter("ApiMode", std::to_string(apiMode));
}
int CreateDataServiceApiRequest::getVisibleRange()const
{
return visibleRange_;
}
void CreateDataServiceApiRequest::setVisibleRange(int visibleRange)
{
visibleRange_ = visibleRange;
setBodyParameter("VisibleRange", std::to_string(visibleRange));
}
std::string CreateDataServiceApiRequest::getApiDescription()const
{
return apiDescription_;
}
void CreateDataServiceApiRequest::setApiDescription(const std::string& apiDescription)
{
apiDescription_ = apiDescription;
setBodyParameter("ApiDescription", apiDescription);
}
int CreateDataServiceApiRequest::getTimeout()const
{
return timeout_;
}
void CreateDataServiceApiRequest::setTimeout(int timeout)
{
timeout_ = timeout;
setBodyParameter("Timeout", std::to_string(timeout));
}
std::string CreateDataServiceApiRequest::getRegistrationDetails()const
{
return registrationDetails_;
}
void CreateDataServiceApiRequest::setRegistrationDetails(const std::string& registrationDetails)
{
registrationDetails_ = registrationDetails;
setBodyParameter("RegistrationDetails", registrationDetails);
}
std::string CreateDataServiceApiRequest::getApiName()const
{
return apiName_;
}
void CreateDataServiceApiRequest::setApiName(const std::string& apiName)
{
apiName_ = apiName;
setBodyParameter("ApiName", apiName);
}
long CreateDataServiceApiRequest::getTenantId()const
{
return tenantId_;
}
void CreateDataServiceApiRequest::setTenantId(long tenantId)
{
tenantId_ = tenantId;
setBodyParameter("TenantId", std::to_string(tenantId));
}
std::string CreateDataServiceApiRequest::getProtocols()const
{
return protocols_;
}
void CreateDataServiceApiRequest::setProtocols(const std::string& protocols)
{
protocols_ = protocols;
setBodyParameter("Protocols", protocols);
}
long CreateDataServiceApiRequest::getProjectId()const
{
return projectId_;
}
void CreateDataServiceApiRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
int CreateDataServiceApiRequest::getResponseContentType()const
{
return responseContentType_;
}
void CreateDataServiceApiRequest::setResponseContentType(int responseContentType)
{
responseContentType_ = responseContentType;
setBodyParameter("ResponseContentType", std::to_string(responseContentType));
}

View File

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

View File

@@ -0,0 +1,249 @@
/*
* 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/CreateFileRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateFileRequest;
CreateFileRequest::CreateFileRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateFile")
{
setMethod(HttpRequest::Method::Post);
}
CreateFileRequest::~CreateFileRequest()
{}
int CreateFileRequest::getFileType()const
{
return fileType_;
}
void CreateFileRequest::setFileType(int fileType)
{
fileType_ = fileType;
setBodyParameter("FileType", std::to_string(fileType));
}
std::string CreateFileRequest::getContent()const
{
return content_;
}
void CreateFileRequest::setContent(const std::string& content)
{
content_ = content;
setBodyParameter("Content", content);
}
std::string CreateFileRequest::getProjectIdentifier()const
{
return projectIdentifier_;
}
void CreateFileRequest::setProjectIdentifier(const std::string& projectIdentifier)
{
projectIdentifier_ = projectIdentifier;
setBodyParameter("ProjectIdentifier", projectIdentifier);
}
long CreateFileRequest::getProjectId()const
{
return projectId_;
}
void CreateFileRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
long CreateFileRequest::getStartEffectDate()const
{
return startEffectDate_;
}
void CreateFileRequest::setStartEffectDate(long startEffectDate)
{
startEffectDate_ = startEffectDate;
setBodyParameter("StartEffectDate", std::to_string(startEffectDate));
}
std::string CreateFileRequest::getCycleType()const
{
return cycleType_;
}
void CreateFileRequest::setCycleType(const std::string& cycleType)
{
cycleType_ = cycleType;
setBodyParameter("CycleType", cycleType);
}
std::string CreateFileRequest::getOwner()const
{
return owner_;
}
void CreateFileRequest::setOwner(const std::string& owner)
{
owner_ = owner;
setBodyParameter("Owner", owner);
}
int CreateFileRequest::getAutoRerunIntervalMillis()const
{
return autoRerunIntervalMillis_;
}
void CreateFileRequest::setAutoRerunIntervalMillis(int autoRerunIntervalMillis)
{
autoRerunIntervalMillis_ = autoRerunIntervalMillis;
setBodyParameter("AutoRerunIntervalMillis", std::to_string(autoRerunIntervalMillis));
}
std::string CreateFileRequest::getDependentCloudUuidList()const
{
return dependentCloudUuidList_;
}
void CreateFileRequest::setDependentCloudUuidList(const std::string& dependentCloudUuidList)
{
dependentCloudUuidList_ = dependentCloudUuidList;
setBodyParameter("DependentCloudUuidList", dependentCloudUuidList);
}
std::string CreateFileRequest::getInputList()const
{
return inputList_;
}
void CreateFileRequest::setInputList(const std::string& inputList)
{
inputList_ = inputList;
setBodyParameter("InputList", inputList);
}
std::string CreateFileRequest::getRerunMode()const
{
return rerunMode_;
}
void CreateFileRequest::setRerunMode(const std::string& rerunMode)
{
rerunMode_ = rerunMode;
setBodyParameter("RerunMode", rerunMode);
}
std::string CreateFileRequest::getParaValue()const
{
return paraValue_;
}
void CreateFileRequest::setParaValue(const std::string& paraValue)
{
paraValue_ = paraValue;
setBodyParameter("ParaValue", paraValue);
}
int CreateFileRequest::getAutoRerunTimes()const
{
return autoRerunTimes_;
}
void CreateFileRequest::setAutoRerunTimes(int autoRerunTimes)
{
autoRerunTimes_ = autoRerunTimes;
setBodyParameter("AutoRerunTimes", std::to_string(autoRerunTimes));
}
std::string CreateFileRequest::getCronExpress()const
{
return cronExpress_;
}
void CreateFileRequest::setCronExpress(const std::string& cronExpress)
{
cronExpress_ = cronExpress;
setBodyParameter("CronExpress", cronExpress);
}
long CreateFileRequest::getEndEffectDate()const
{
return endEffectDate_;
}
void CreateFileRequest::setEndEffectDate(long endEffectDate)
{
endEffectDate_ = endEffectDate;
setBodyParameter("EndEffectDate", std::to_string(endEffectDate));
}
std::string CreateFileRequest::getFileName()const
{
return fileName_;
}
void CreateFileRequest::setFileName(const std::string& fileName)
{
fileName_ = fileName;
setBodyParameter("FileName", fileName);
}
bool CreateFileRequest::getStop()const
{
return stop_;
}
void CreateFileRequest::setStop(bool stop)
{
stop_ = stop;
setBodyParameter("Stop", stop ? "true" : "false");
}
std::string CreateFileRequest::getDependentType()const
{
return dependentType_;
}
void CreateFileRequest::setDependentType(const std::string& dependentType)
{
dependentType_ = dependentType;
setBodyParameter("DependentType", dependentType);
}
std::string CreateFileRequest::getFileFolderPath()const
{
return fileFolderPath_;
}
void CreateFileRequest::setFileFolderPath(const std::string& fileFolderPath)
{
fileFolderPath_ = fileFolderPath;
setBodyParameter("FileFolderPath", fileFolderPath);
}
std::string CreateFileRequest::getFileDescription()const
{
return fileDescription_;
}
void CreateFileRequest::setFileDescription(const std::string& fileDescription)
{
fileDescription_ = fileDescription;
setBodyParameter("FileDescription", fileDescription);
}

View File

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

View File

@@ -0,0 +1,62 @@
/*
* 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/CreateFolderRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateFolderRequest;
CreateFolderRequest::CreateFolderRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateFolder")
{
setMethod(HttpRequest::Method::Post);
}
CreateFolderRequest::~CreateFolderRequest()
{}
std::string CreateFolderRequest::getFolderPath()const
{
return folderPath_;
}
void CreateFolderRequest::setFolderPath(const std::string& folderPath)
{
folderPath_ = folderPath;
setBodyParameter("FolderPath", folderPath);
}
long CreateFolderRequest::getProjectId()const
{
return projectId_;
}
void CreateFolderRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
std::string CreateFolderRequest::getProjectIdentifier()const
{
return projectIdentifier_;
}
void CreateFolderRequest::setProjectIdentifier(const std::string& projectIdentifier)
{
projectIdentifier_ = projectIdentifier;
setBodyParameter("ProjectIdentifier", projectIdentifier);
}

View File

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

View File

@@ -0,0 +1,62 @@
/*
* 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/CreateMetaCategoryRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateMetaCategoryRequest;
CreateMetaCategoryRequest::CreateMetaCategoryRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateMetaCategory")
{
setMethod(HttpRequest::Method::Post);
}
CreateMetaCategoryRequest::~CreateMetaCategoryRequest()
{}
std::string CreateMetaCategoryRequest::getName()const
{
return name_;
}
void CreateMetaCategoryRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string CreateMetaCategoryRequest::getComment()const
{
return comment_;
}
void CreateMetaCategoryRequest::setComment(const std::string& comment)
{
comment_ = comment;
setBodyParameter("Comment", comment);
}
long CreateMetaCategoryRequest::getParentId()const
{
return parentId_;
}
void CreateMetaCategoryRequest::setParentId(long parentId)
{
parentId_ = parentId;
setBodyParameter("ParentId", std::to_string(parentId));
}

View File

@@ -0,0 +1,80 @@
/*
* 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/CreateMetaCategoryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
CreateMetaCategoryResult::CreateMetaCategoryResult() :
ServiceResult()
{}
CreateMetaCategoryResult::CreateMetaCategoryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateMetaCategoryResult::~CreateMetaCategoryResult()
{}
void CreateMetaCategoryResult::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["CategoryId"].isNull())
data_.categoryId = std::stol(dataNode["CategoryId"].asString());
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());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
int CreateMetaCategoryResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
CreateMetaCategoryResult::Data CreateMetaCategoryResult::getData()const
{
return data_;
}
std::string CreateMetaCategoryResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateMetaCategoryResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateMetaCategoryResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,150 @@
/*
* 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/CreateNodeComplementRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateNodeComplementRequest;
CreateNodeComplementRequest::CreateNodeComplementRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateNodeComplement")
{
setMethod(HttpRequest::Method::Post);
}
CreateNodeComplementRequest::~CreateNodeComplementRequest()
{}
std::string CreateNodeComplementRequest::getProjectEnv()const
{
return projectEnv_;
}
void CreateNodeComplementRequest::setProjectEnv(const std::string& projectEnv)
{
projectEnv_ = projectEnv;
setBodyParameter("ProjectEnv", projectEnv);
}
std::string CreateNodeComplementRequest::getStartBizDate()const
{
return startBizDate_;
}
void CreateNodeComplementRequest::setStartBizDate(const std::string& startBizDate)
{
startBizDate_ = startBizDate;
setBodyParameter("StartBizDate", startBizDate);
}
bool CreateNodeComplementRequest::getParallelism()const
{
return parallelism_;
}
void CreateNodeComplementRequest::setParallelism(bool parallelism)
{
parallelism_ = parallelism;
setBodyParameter("Parallelism", parallelism ? "true" : "false");
}
std::string CreateNodeComplementRequest::getBizBeginTime()const
{
return bizBeginTime_;
}
void CreateNodeComplementRequest::setBizBeginTime(const std::string& bizBeginTime)
{
bizBeginTime_ = bizBeginTime;
setBodyParameter("BizBeginTime", bizBeginTime);
}
std::string CreateNodeComplementRequest::getEndBizDate()const
{
return endBizDate_;
}
void CreateNodeComplementRequest::setEndBizDate(const std::string& endBizDate)
{
endBizDate_ = endBizDate;
setBodyParameter("EndBizDate", endBizDate);
}
std::string CreateNodeComplementRequest::getIncludeNodeIds()const
{
return includeNodeIds_;
}
void CreateNodeComplementRequest::setIncludeNodeIds(const std::string& includeNodeIds)
{
includeNodeIds_ = includeNodeIds;
setBodyParameter("IncludeNodeIds", includeNodeIds);
}
std::string CreateNodeComplementRequest::getBizEndTime()const
{
return bizEndTime_;
}
void CreateNodeComplementRequest::setBizEndTime(const std::string& bizEndTime)
{
bizEndTime_ = bizEndTime;
setBodyParameter("BizEndTime", bizEndTime);
}
std::string CreateNodeComplementRequest::getName()const
{
return name_;
}
void CreateNodeComplementRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string CreateNodeComplementRequest::getExcludeNodeIds()const
{
return excludeNodeIds_;
}
void CreateNodeComplementRequest::setExcludeNodeIds(const std::string& excludeNodeIds)
{
excludeNodeIds_ = excludeNodeIds;
setBodyParameter("ExcludeNodeIds", excludeNodeIds);
}
long CreateNodeComplementRequest::getNodeId()const
{
return nodeId_;
}
void CreateNodeComplementRequest::setNodeId(long nodeId)
{
nodeId_ = nodeId;
setBodyParameter("NodeId", std::to_string(nodeId));
}
long CreateNodeComplementRequest::getNodeProjectId()const
{
return nodeProjectId_;
}
void CreateNodeComplementRequest::setNodeProjectId(long nodeProjectId)
{
nodeProjectId_ = nodeProjectId;
setBodyParameter("NodeProjectId", std::to_string(nodeProjectId));
}

View File

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

View File

@@ -0,0 +1,139 @@
/*
* 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/CreateNodeTestRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateNodeTestRequest;
CreateNodeTestRequest::CreateNodeTestRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateNodeTest")
{
setMethod(HttpRequest::Method::Post);
}
CreateNodeTestRequest::~CreateNodeTestRequest()
{}
std::string CreateNodeTestRequest::getProjectEnv()const
{
return projectEnv_;
}
void CreateNodeTestRequest::setProjectEnv(const std::string& projectEnv)
{
projectEnv_ = projectEnv;
setBodyParameter("ProjectEnv", projectEnv);
}
bool CreateNodeTestRequest::getParallelism()const
{
return parallelism_;
}
void CreateNodeTestRequest::setParallelism(bool parallelism)
{
parallelism_ = parallelism;
setBodyParameter("Parallelism", parallelism ? "true" : "false");
}
std::string CreateNodeTestRequest::getBizBeginTime()const
{
return bizBeginTime_;
}
void CreateNodeTestRequest::setBizBeginTime(const std::string& bizBeginTime)
{
bizBeginTime_ = bizBeginTime;
setBodyParameter("BizBeginTime", bizBeginTime);
}
std::string CreateNodeTestRequest::getIncludeNodeIds()const
{
return includeNodeIds_;
}
void CreateNodeTestRequest::setIncludeNodeIds(const std::string& includeNodeIds)
{
includeNodeIds_ = includeNodeIds;
setBodyParameter("IncludeNodeIds", includeNodeIds);
}
std::string CreateNodeTestRequest::getBizdate()const
{
return bizdate_;
}
void CreateNodeTestRequest::setBizdate(const std::string& bizdate)
{
bizdate_ = bizdate;
setBodyParameter("Bizdate", bizdate);
}
std::string CreateNodeTestRequest::getBizEndTime()const
{
return bizEndTime_;
}
void CreateNodeTestRequest::setBizEndTime(const std::string& bizEndTime)
{
bizEndTime_ = bizEndTime;
setBodyParameter("BizEndTime", bizEndTime);
}
std::string CreateNodeTestRequest::getName()const
{
return name_;
}
void CreateNodeTestRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string CreateNodeTestRequest::getExcludeNodeIds()const
{
return excludeNodeIds_;
}
void CreateNodeTestRequest::setExcludeNodeIds(const std::string& excludeNodeIds)
{
excludeNodeIds_ = excludeNodeIds;
setBodyParameter("ExcludeNodeIds", excludeNodeIds);
}
long CreateNodeTestRequest::getNodeId()const
{
return nodeId_;
}
void CreateNodeTestRequest::setNodeId(long nodeId)
{
nodeId_ = nodeId;
setBodyParameter("NodeId", std::to_string(nodeId));
}
long CreateNodeTestRequest::getNodeProjectId()const
{
return nodeProjectId_;
}
void CreateNodeTestRequest::setNodeProjectId(long nodeProjectId)
{
nodeProjectId_ = nodeProjectId;
setBodyParameter("NodeProjectId", std::to_string(nodeProjectId));
}

View File

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

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/CreateQualityEntityRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateQualityEntityRequest;
CreateQualityEntityRequest::CreateQualityEntityRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateQualityEntity")
{
setMethod(HttpRequest::Method::Post);
}
CreateQualityEntityRequest::~CreateQualityEntityRequest()
{}
std::string CreateQualityEntityRequest::getProjectName()const
{
return projectName_;
}
void CreateQualityEntityRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setBodyParameter("ProjectName", projectName);
}
int CreateQualityEntityRequest::getEntityLevel()const
{
return entityLevel_;
}
void CreateQualityEntityRequest::setEntityLevel(int entityLevel)
{
entityLevel_ = entityLevel;
setBodyParameter("EntityLevel", std::to_string(entityLevel));
}
std::string CreateQualityEntityRequest::getMatchExpression()const
{
return matchExpression_;
}
void CreateQualityEntityRequest::setMatchExpression(const std::string& matchExpression)
{
matchExpression_ = matchExpression;
setBodyParameter("MatchExpression", matchExpression);
}
std::string CreateQualityEntityRequest::getEnvType()const
{
return envType_;
}
void CreateQualityEntityRequest::setEnvType(const std::string& envType)
{
envType_ = envType;
setBodyParameter("EnvType", envType);
}
std::string CreateQualityEntityRequest::getTableName()const
{
return tableName_;
}
void CreateQualityEntityRequest::setTableName(const std::string& tableName)
{
tableName_ = tableName;
setBodyParameter("TableName", tableName);
}

View File

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

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/CreateQualityFollowerRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateQualityFollowerRequest;
CreateQualityFollowerRequest::CreateQualityFollowerRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateQualityFollower")
{
setMethod(HttpRequest::Method::Post);
}
CreateQualityFollowerRequest::~CreateQualityFollowerRequest()
{}
int CreateQualityFollowerRequest::getAlarmMode()const
{
return alarmMode_;
}
void CreateQualityFollowerRequest::setAlarmMode(int alarmMode)
{
alarmMode_ = alarmMode;
setBodyParameter("AlarmMode", std::to_string(alarmMode));
}
std::string CreateQualityFollowerRequest::getProjectName()const
{
return projectName_;
}
void CreateQualityFollowerRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setBodyParameter("ProjectName", projectName);
}
std::string CreateQualityFollowerRequest::getFollower()const
{
return follower_;
}
void CreateQualityFollowerRequest::setFollower(const std::string& follower)
{
follower_ = follower;
setBodyParameter("Follower", follower);
}
long CreateQualityFollowerRequest::getEntityId()const
{
return entityId_;
}
void CreateQualityFollowerRequest::setEntityId(long entityId)
{
entityId_ = entityId;
setBodyParameter("EntityId", std::to_string(entityId));
}

View File

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

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/CreateQualityRelativeNodeRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateQualityRelativeNodeRequest;
CreateQualityRelativeNodeRequest::CreateQualityRelativeNodeRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateQualityRelativeNode")
{
setMethod(HttpRequest::Method::Post);
}
CreateQualityRelativeNodeRequest::~CreateQualityRelativeNodeRequest()
{}
std::string CreateQualityRelativeNodeRequest::getProjectName()const
{
return projectName_;
}
void CreateQualityRelativeNodeRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setBodyParameter("ProjectName", projectName);
}
long CreateQualityRelativeNodeRequest::getTargetNodeProjectId()const
{
return targetNodeProjectId_;
}
void CreateQualityRelativeNodeRequest::setTargetNodeProjectId(long targetNodeProjectId)
{
targetNodeProjectId_ = targetNodeProjectId;
setBodyParameter("TargetNodeProjectId", std::to_string(targetNodeProjectId));
}
std::string CreateQualityRelativeNodeRequest::getMatchExpression()const
{
return matchExpression_;
}
void CreateQualityRelativeNodeRequest::setMatchExpression(const std::string& matchExpression)
{
matchExpression_ = matchExpression;
setBodyParameter("MatchExpression", matchExpression);
}
std::string CreateQualityRelativeNodeRequest::getEnvType()const
{
return envType_;
}
void CreateQualityRelativeNodeRequest::setEnvType(const std::string& envType)
{
envType_ = envType;
setBodyParameter("EnvType", envType);
}
std::string CreateQualityRelativeNodeRequest::getTargetNodeProjectName()const
{
return targetNodeProjectName_;
}
void CreateQualityRelativeNodeRequest::setTargetNodeProjectName(const std::string& targetNodeProjectName)
{
targetNodeProjectName_ = targetNodeProjectName;
setBodyParameter("TargetNodeProjectName", targetNodeProjectName);
}
std::string CreateQualityRelativeNodeRequest::getTableName()const
{
return tableName_;
}
void CreateQualityRelativeNodeRequest::setTableName(const std::string& tableName)
{
tableName_ = tableName;
setBodyParameter("TableName", tableName);
}
long CreateQualityRelativeNodeRequest::getNodeId()const
{
return nodeId_;
}
void CreateQualityRelativeNodeRequest::setNodeId(long nodeId)
{
nodeId_ = nodeId;
setBodyParameter("NodeId", std::to_string(nodeId));
}
long CreateQualityRelativeNodeRequest::getProjectId()const
{
return projectId_;
}
void CreateQualityRelativeNodeRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}

View File

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

View File

@@ -0,0 +1,227 @@
/*
* 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/CreateQualityRuleRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateQualityRuleRequest;
CreateQualityRuleRequest::CreateQualityRuleRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateQualityRule")
{
setMethod(HttpRequest::Method::Post);
}
CreateQualityRuleRequest::~CreateQualityRuleRequest()
{}
std::string CreateQualityRuleRequest::getProjectName()const
{
return projectName_;
}
void CreateQualityRuleRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setBodyParameter("ProjectName", projectName);
}
std::string CreateQualityRuleRequest::getTrend()const
{
return trend_;
}
void CreateQualityRuleRequest::setTrend(const std::string& trend)
{
trend_ = trend;
setBodyParameter("Trend", trend);
}
int CreateQualityRuleRequest::getRuleType()const
{
return ruleType_;
}
void CreateQualityRuleRequest::setRuleType(int ruleType)
{
ruleType_ = ruleType;
setBodyParameter("RuleType", std::to_string(ruleType));
}
int CreateQualityRuleRequest::getBlockType()const
{
return blockType_;
}
void CreateQualityRuleRequest::setBlockType(int blockType)
{
blockType_ = blockType;
setBodyParameter("BlockType", std::to_string(blockType));
}
std::string CreateQualityRuleRequest::getPropertyType()const
{
return propertyType_;
}
void CreateQualityRuleRequest::setPropertyType(const std::string& propertyType)
{
propertyType_ = propertyType;
setBodyParameter("PropertyType", propertyType);
}
long CreateQualityRuleRequest::getEntityId()const
{
return entityId_;
}
void CreateQualityRuleRequest::setEntityId(long entityId)
{
entityId_ = entityId;
setBodyParameter("EntityId", std::to_string(entityId));
}
std::string CreateQualityRuleRequest::getRuleName()const
{
return ruleName_;
}
void CreateQualityRuleRequest::setRuleName(const std::string& ruleName)
{
ruleName_ = ruleName;
setBodyParameter("RuleName", ruleName);
}
int CreateQualityRuleRequest::getChecker()const
{
return checker_;
}
void CreateQualityRuleRequest::setChecker(int checker)
{
checker_ = checker;
setBodyParameter("Checker", std::to_string(checker));
}
int CreateQualityRuleRequest::getTemplateId()const
{
return templateId_;
}
void CreateQualityRuleRequest::setTemplateId(int templateId)
{
templateId_ = templateId;
setBodyParameter("TemplateId", std::to_string(templateId));
}
std::string CreateQualityRuleRequest::getExpectValue()const
{
return expectValue_;
}
void CreateQualityRuleRequest::setExpectValue(const std::string& expectValue)
{
expectValue_ = expectValue;
setBodyParameter("ExpectValue", expectValue);
}
std::string CreateQualityRuleRequest::get_Operator()const
{
return _operator_;
}
void CreateQualityRuleRequest::set_Operator(const std::string& _operator)
{
_operator_ = _operator;
setBodyParameter("_Operator", _operator);
}
std::string CreateQualityRuleRequest::getWhereCondition()const
{
return whereCondition_;
}
void CreateQualityRuleRequest::setWhereCondition(const std::string& whereCondition)
{
whereCondition_ = whereCondition;
setBodyParameter("WhereCondition", whereCondition);
}
std::string CreateQualityRuleRequest::getCriticalThreshold()const
{
return criticalThreshold_;
}
void CreateQualityRuleRequest::setCriticalThreshold(const std::string& criticalThreshold)
{
criticalThreshold_ = criticalThreshold;
setBodyParameter("CriticalThreshold", criticalThreshold);
}
std::string CreateQualityRuleRequest::getProperty()const
{
return property_;
}
void CreateQualityRuleRequest::setProperty(const std::string& property)
{
property_ = property;
setBodyParameter("Property", property);
}
std::string CreateQualityRuleRequest::getComment()const
{
return comment_;
}
void CreateQualityRuleRequest::setComment(const std::string& comment)
{
comment_ = comment;
setBodyParameter("Comment", comment);
}
int CreateQualityRuleRequest::getPredictType()const
{
return predictType_;
}
void CreateQualityRuleRequest::setPredictType(int predictType)
{
predictType_ = predictType;
setBodyParameter("PredictType", std::to_string(predictType));
}
std::string CreateQualityRuleRequest::getWarningThreshold()const
{
return warningThreshold_;
}
void CreateQualityRuleRequest::setWarningThreshold(const std::string& warningThreshold)
{
warningThreshold_ = warningThreshold;
setBodyParameter("WarningThreshold", warningThreshold);
}
std::string CreateQualityRuleRequest::getMethodName()const
{
return methodName_;
}
void CreateQualityRuleRequest::setMethodName(const std::string& methodName)
{
methodName_ = methodName;
setBodyParameter("MethodName", methodName);
}

View File

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

View File

@@ -0,0 +1,194 @@
/*
* 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/CreateRemindRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateRemindRequest;
CreateRemindRequest::CreateRemindRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateRemind")
{
setMethod(HttpRequest::Method::Post);
}
CreateRemindRequest::~CreateRemindRequest()
{}
std::string CreateRemindRequest::getDndEnd()const
{
return dndEnd_;
}
void CreateRemindRequest::setDndEnd(const std::string& dndEnd)
{
dndEnd_ = dndEnd;
setBodyParameter("DndEnd", dndEnd);
}
std::string CreateRemindRequest::getAlertUnit()const
{
return alertUnit_;
}
void CreateRemindRequest::setAlertUnit(const std::string& alertUnit)
{
alertUnit_ = alertUnit;
setBodyParameter("AlertUnit", alertUnit);
}
std::string CreateRemindRequest::getRemindUnit()const
{
return remindUnit_;
}
void CreateRemindRequest::setRemindUnit(const std::string& remindUnit)
{
remindUnit_ = remindUnit;
setBodyParameter("RemindUnit", remindUnit);
}
int CreateRemindRequest::getAlertInterval()const
{
return alertInterval_;
}
void CreateRemindRequest::setAlertInterval(int alertInterval)
{
alertInterval_ = alertInterval;
setBodyParameter("AlertInterval", std::to_string(alertInterval));
}
std::string CreateRemindRequest::getAlertMethods()const
{
return alertMethods_;
}
void CreateRemindRequest::setAlertMethods(const std::string& alertMethods)
{
alertMethods_ = alertMethods;
setBodyParameter("AlertMethods", alertMethods);
}
std::string CreateRemindRequest::getRobotUrls()const
{
return robotUrls_;
}
void CreateRemindRequest::setRobotUrls(const std::string& robotUrls)
{
robotUrls_ = robotUrls;
setBodyParameter("RobotUrls", robotUrls);
}
int CreateRemindRequest::getMaxAlertTimes()const
{
return maxAlertTimes_;
}
void CreateRemindRequest::setMaxAlertTimes(int maxAlertTimes)
{
maxAlertTimes_ = maxAlertTimes;
setBodyParameter("MaxAlertTimes", std::to_string(maxAlertTimes));
}
std::string CreateRemindRequest::getBizProcessIds()const
{
return bizProcessIds_;
}
void CreateRemindRequest::setBizProcessIds(const std::string& bizProcessIds)
{
bizProcessIds_ = bizProcessIds;
setBodyParameter("BizProcessIds", bizProcessIds);
}
std::string CreateRemindRequest::getRemindType()const
{
return remindType_;
}
void CreateRemindRequest::setRemindType(const std::string& remindType)
{
remindType_ = remindType;
setBodyParameter("RemindType", remindType);
}
std::string CreateRemindRequest::getAlertTargets()const
{
return alertTargets_;
}
void CreateRemindRequest::setAlertTargets(const std::string& alertTargets)
{
alertTargets_ = alertTargets;
setBodyParameter("AlertTargets", alertTargets);
}
std::string CreateRemindRequest::getBaselineIds()const
{
return baselineIds_;
}
void CreateRemindRequest::setBaselineIds(const std::string& baselineIds)
{
baselineIds_ = baselineIds;
setBodyParameter("BaselineIds", baselineIds);
}
std::string CreateRemindRequest::getDetail()const
{
return detail_;
}
void CreateRemindRequest::setDetail(const std::string& detail)
{
detail_ = detail;
setBodyParameter("Detail", detail);
}
std::string CreateRemindRequest::getRemindName()const
{
return remindName_;
}
void CreateRemindRequest::setRemindName(const std::string& remindName)
{
remindName_ = remindName;
setBodyParameter("RemindName", remindName);
}
long CreateRemindRequest::getProjectId()const
{
return projectId_;
}
void CreateRemindRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
std::string CreateRemindRequest::getNodeIds()const
{
return nodeIds_;
}
void CreateRemindRequest::setNodeIds(const std::string& nodeIds)
{
nodeIds_ = nodeIds;
setBodyParameter("NodeIds", nodeIds);
}

View File

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

View File

@@ -0,0 +1,161 @@
/*
* 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/CreateUdfFileRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateUdfFileRequest;
CreateUdfFileRequest::CreateUdfFileRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateUdfFile")
{
setMethod(HttpRequest::Method::Post);
}
CreateUdfFileRequest::~CreateUdfFileRequest()
{}
std::string CreateUdfFileRequest::getReturnValue()const
{
return returnValue_;
}
void CreateUdfFileRequest::setReturnValue(const std::string& returnValue)
{
returnValue_ = returnValue;
setBodyParameter("ReturnValue", returnValue);
}
std::string CreateUdfFileRequest::getResources()const
{
return resources_;
}
void CreateUdfFileRequest::setResources(const std::string& resources)
{
resources_ = resources;
setBodyParameter("Resources", resources);
}
std::string CreateUdfFileRequest::getFunctionType()const
{
return functionType_;
}
void CreateUdfFileRequest::setFunctionType(const std::string& functionType)
{
functionType_ = functionType;
setBodyParameter("FunctionType", functionType);
}
std::string CreateUdfFileRequest::getCmdDescription()const
{
return cmdDescription_;
}
void CreateUdfFileRequest::setCmdDescription(const std::string& cmdDescription)
{
cmdDescription_ = cmdDescription;
setBodyParameter("CmdDescription", cmdDescription);
}
std::string CreateUdfFileRequest::getUdfDescription()const
{
return udfDescription_;
}
void CreateUdfFileRequest::setUdfDescription(const std::string& udfDescription)
{
udfDescription_ = udfDescription;
setBodyParameter("UdfDescription", udfDescription);
}
std::string CreateUdfFileRequest::getParameterDescription()const
{
return parameterDescription_;
}
void CreateUdfFileRequest::setParameterDescription(const std::string& parameterDescription)
{
parameterDescription_ = parameterDescription;
setBodyParameter("ParameterDescription", parameterDescription);
}
std::string CreateUdfFileRequest::getProjectIdentifier()const
{
return projectIdentifier_;
}
void CreateUdfFileRequest::setProjectIdentifier(const std::string& projectIdentifier)
{
projectIdentifier_ = projectIdentifier;
setBodyParameter("ProjectIdentifier", projectIdentifier);
}
std::string CreateUdfFileRequest::getExample()const
{
return example_;
}
void CreateUdfFileRequest::setExample(const std::string& example)
{
example_ = example;
setBodyParameter("Example", example);
}
std::string CreateUdfFileRequest::getFileName()const
{
return fileName_;
}
void CreateUdfFileRequest::setFileName(const std::string& fileName)
{
fileName_ = fileName;
setBodyParameter("FileName", fileName);
}
std::string CreateUdfFileRequest::getClassName()const
{
return className_;
}
void CreateUdfFileRequest::setClassName(const std::string& className)
{
className_ = className;
setBodyParameter("ClassName", className);
}
std::string CreateUdfFileRequest::getFileFolderPath()const
{
return fileFolderPath_;
}
void CreateUdfFileRequest::setFileFolderPath(const std::string& fileFolderPath)
{
fileFolderPath_ = fileFolderPath;
setBodyParameter("FileFolderPath", fileFolderPath);
}
long CreateUdfFileRequest::getProjectId()const
{
return projectId_;
}
void CreateUdfFileRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}

View File

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

View File

@@ -0,0 +1,62 @@
/*
* 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/DeleteBusinessRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteBusinessRequest;
DeleteBusinessRequest::DeleteBusinessRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteBusiness")
{
setMethod(HttpRequest::Method::Post);
}
DeleteBusinessRequest::~DeleteBusinessRequest()
{}
long DeleteBusinessRequest::getBusinessId()const
{
return businessId_;
}
void DeleteBusinessRequest::setBusinessId(long businessId)
{
businessId_ = businessId;
setBodyParameter("BusinessId", std::to_string(businessId));
}
long DeleteBusinessRequest::getProjectId()const
{
return projectId_;
}
void DeleteBusinessRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
std::string DeleteBusinessRequest::getProjectIdentifier()const
{
return projectIdentifier_;
}
void DeleteBusinessRequest::setProjectIdentifier(const std::string& projectIdentifier)
{
projectIdentifier_ = projectIdentifier;
setBodyParameter("ProjectIdentifier", projectIdentifier);
}

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/DeleteBusinessResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
DeleteBusinessResult::DeleteBusinessResult() :
ServiceResult()
{}
DeleteBusinessResult::DeleteBusinessResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteBusinessResult::~DeleteBusinessResult()
{}
void DeleteBusinessResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["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 DeleteBusinessResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DeleteBusinessResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteBusinessResult::getErrorMessage()const
{
return errorMessage_;
}
bool DeleteBusinessResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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/DeleteConnectionRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteConnectionRequest;
DeleteConnectionRequest::DeleteConnectionRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteConnection")
{
setMethod(HttpRequest::Method::Post);
}
DeleteConnectionRequest::~DeleteConnectionRequest()
{}
long DeleteConnectionRequest::getConnectionId()const
{
return connectionId_;
}
void DeleteConnectionRequest::setConnectionId(long connectionId)
{
connectionId_ = connectionId;
setParameter("ConnectionId", std::to_string(connectionId));
}

View File

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

View File

@@ -0,0 +1,62 @@
/*
* 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/DeleteDataServiceApiRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteDataServiceApiRequest;
DeleteDataServiceApiRequest::DeleteDataServiceApiRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteDataServiceApi")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDataServiceApiRequest::~DeleteDataServiceApiRequest()
{}
long DeleteDataServiceApiRequest::getTenantId()const
{
return tenantId_;
}
void DeleteDataServiceApiRequest::setTenantId(long tenantId)
{
tenantId_ = tenantId;
setBodyParameter("TenantId", std::to_string(tenantId));
}
long DeleteDataServiceApiRequest::getProjectId()const
{
return projectId_;
}
void DeleteDataServiceApiRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
long DeleteDataServiceApiRequest::getApiId()const
{
return apiId_;
}
void DeleteDataServiceApiRequest::setApiId(long apiId)
{
apiId_ = apiId;
setBodyParameter("ApiId", std::to_string(apiId));
}

View File

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

View File

@@ -0,0 +1,62 @@
/*
* 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/DeleteFileRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteFileRequest;
DeleteFileRequest::DeleteFileRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteFile")
{
setMethod(HttpRequest::Method::Post);
}
DeleteFileRequest::~DeleteFileRequest()
{}
long DeleteFileRequest::getProjectId()const
{
return projectId_;
}
void DeleteFileRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
std::string DeleteFileRequest::getProjectIdentifier()const
{
return projectIdentifier_;
}
void DeleteFileRequest::setProjectIdentifier(const std::string& projectIdentifier)
{
projectIdentifier_ = projectIdentifier;
setBodyParameter("ProjectIdentifier", projectIdentifier);
}
long DeleteFileRequest::getFileId()const
{
return fileId_;
}
void DeleteFileRequest::setFileId(long fileId)
{
fileId_ = fileId;
setBodyParameter("FileId", std::to_string(fileId));
}

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/DeleteFileResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
DeleteFileResult::DeleteFileResult() :
ServiceResult()
{}
DeleteFileResult::DeleteFileResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteFileResult::~DeleteFileResult()
{}
void DeleteFileResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["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 DeleteFileResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DeleteFileResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteFileResult::getErrorMessage()const
{
return errorMessage_;
}
bool DeleteFileResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/DeleteFolderRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteFolderRequest;
DeleteFolderRequest::DeleteFolderRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteFolder")
{
setMethod(HttpRequest::Method::Post);
}
DeleteFolderRequest::~DeleteFolderRequest()
{}
long DeleteFolderRequest::getProjectId()const
{
return projectId_;
}
void DeleteFolderRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
std::string DeleteFolderRequest::getProjectIdentifier()const
{
return projectIdentifier_;
}
void DeleteFolderRequest::setProjectIdentifier(const std::string& projectIdentifier)
{
projectIdentifier_ = projectIdentifier;
setBodyParameter("ProjectIdentifier", projectIdentifier);
}
std::string DeleteFolderRequest::getFolderId()const
{
return folderId_;
}
void DeleteFolderRequest::setFolderId(const std::string& folderId)
{
folderId_ = folderId;
setBodyParameter("FolderId", folderId);
}

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/DeleteFolderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
DeleteFolderResult::DeleteFolderResult() :
ServiceResult()
{}
DeleteFolderResult::DeleteFolderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteFolderResult::~DeleteFolderResult()
{}
void DeleteFolderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["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 DeleteFolderResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DeleteFolderResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteFolderResult::getErrorMessage()const
{
return errorMessage_;
}
bool DeleteFolderResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/DeleteFromMetaCategoryRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteFromMetaCategoryRequest;
DeleteFromMetaCategoryRequest::DeleteFromMetaCategoryRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteFromMetaCategory")
{
setMethod(HttpRequest::Method::Post);
}
DeleteFromMetaCategoryRequest::~DeleteFromMetaCategoryRequest()
{}
std::string DeleteFromMetaCategoryRequest::getTableGuid()const
{
return tableGuid_;
}
void DeleteFromMetaCategoryRequest::setTableGuid(const std::string& tableGuid)
{
tableGuid_ = tableGuid;
setParameter("TableGuid", tableGuid);
}
long DeleteFromMetaCategoryRequest::getCategoryId()const
{
return categoryId_;
}
void DeleteFromMetaCategoryRequest::setCategoryId(long categoryId)
{
categoryId_ = categoryId;
setParameter("CategoryId", std::to_string(categoryId));
}

View File

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

View File

@@ -0,0 +1,40 @@
/*
* 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/DeleteMetaCategoryRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteMetaCategoryRequest;
DeleteMetaCategoryRequest::DeleteMetaCategoryRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteMetaCategory")
{
setMethod(HttpRequest::Method::Get);
}
DeleteMetaCategoryRequest::~DeleteMetaCategoryRequest()
{}
long DeleteMetaCategoryRequest::getCategoryId()const
{
return categoryId_;
}
void DeleteMetaCategoryRequest::setCategoryId(long categoryId)
{
categoryId_ = categoryId;
setParameter("CategoryId", std::to_string(categoryId));
}

View File

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

View File

@@ -0,0 +1,62 @@
/*
* 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/DeleteQualityEntityRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteQualityEntityRequest;
DeleteQualityEntityRequest::DeleteQualityEntityRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteQualityEntity")
{
setMethod(HttpRequest::Method::Post);
}
DeleteQualityEntityRequest::~DeleteQualityEntityRequest()
{}
std::string DeleteQualityEntityRequest::getProjectName()const
{
return projectName_;
}
void DeleteQualityEntityRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setBodyParameter("ProjectName", projectName);
}
std::string DeleteQualityEntityRequest::getEnvType()const
{
return envType_;
}
void DeleteQualityEntityRequest::setEnvType(const std::string& envType)
{
envType_ = envType;
setBodyParameter("EnvType", envType);
}
long DeleteQualityEntityRequest::getEntityId()const
{
return entityId_;
}
void DeleteQualityEntityRequest::setEntityId(long entityId)
{
entityId_ = entityId;
setBodyParameter("EntityId", std::to_string(entityId));
}

View File

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

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/DeleteQualityFollowerRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteQualityFollowerRequest;
DeleteQualityFollowerRequest::DeleteQualityFollowerRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteQualityFollower")
{
setMethod(HttpRequest::Method::Post);
}
DeleteQualityFollowerRequest::~DeleteQualityFollowerRequest()
{}
std::string DeleteQualityFollowerRequest::getProjectName()const
{
return projectName_;
}
void DeleteQualityFollowerRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setBodyParameter("ProjectName", projectName);
}
long DeleteQualityFollowerRequest::getFollowerId()const
{
return followerId_;
}
void DeleteQualityFollowerRequest::setFollowerId(long followerId)
{
followerId_ = followerId;
setBodyParameter("FollowerId", std::to_string(followerId));
}

View File

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

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/DeleteQualityRelativeNodeRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteQualityRelativeNodeRequest;
DeleteQualityRelativeNodeRequest::DeleteQualityRelativeNodeRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteQualityRelativeNode")
{
setMethod(HttpRequest::Method::Post);
}
DeleteQualityRelativeNodeRequest::~DeleteQualityRelativeNodeRequest()
{}
std::string DeleteQualityRelativeNodeRequest::getProjectName()const
{
return projectName_;
}
void DeleteQualityRelativeNodeRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setBodyParameter("ProjectName", projectName);
}
long DeleteQualityRelativeNodeRequest::getTargetNodeProjectId()const
{
return targetNodeProjectId_;
}
void DeleteQualityRelativeNodeRequest::setTargetNodeProjectId(long targetNodeProjectId)
{
targetNodeProjectId_ = targetNodeProjectId;
setBodyParameter("TargetNodeProjectId", std::to_string(targetNodeProjectId));
}
std::string DeleteQualityRelativeNodeRequest::getMatchExpression()const
{
return matchExpression_;
}
void DeleteQualityRelativeNodeRequest::setMatchExpression(const std::string& matchExpression)
{
matchExpression_ = matchExpression;
setBodyParameter("MatchExpression", matchExpression);
}
std::string DeleteQualityRelativeNodeRequest::getEnvType()const
{
return envType_;
}
void DeleteQualityRelativeNodeRequest::setEnvType(const std::string& envType)
{
envType_ = envType;
setBodyParameter("EnvType", envType);
}
std::string DeleteQualityRelativeNodeRequest::getTargetNodeProjectName()const
{
return targetNodeProjectName_;
}
void DeleteQualityRelativeNodeRequest::setTargetNodeProjectName(const std::string& targetNodeProjectName)
{
targetNodeProjectName_ = targetNodeProjectName;
setBodyParameter("TargetNodeProjectName", targetNodeProjectName);
}
std::string DeleteQualityRelativeNodeRequest::getTableName()const
{
return tableName_;
}
void DeleteQualityRelativeNodeRequest::setTableName(const std::string& tableName)
{
tableName_ = tableName;
setBodyParameter("TableName", tableName);
}
long DeleteQualityRelativeNodeRequest::getNodeId()const
{
return nodeId_;
}
void DeleteQualityRelativeNodeRequest::setNodeId(long nodeId)
{
nodeId_ = nodeId;
setBodyParameter("NodeId", std::to_string(nodeId));
}
long DeleteQualityRelativeNodeRequest::getProjectId()const
{
return projectId_;
}
void DeleteQualityRelativeNodeRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}

View File

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

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/DeleteQualityRuleRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteQualityRuleRequest;
DeleteQualityRuleRequest::DeleteQualityRuleRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteQualityRule")
{
setMethod(HttpRequest::Method::Post);
}
DeleteQualityRuleRequest::~DeleteQualityRuleRequest()
{}
std::string DeleteQualityRuleRequest::getProjectName()const
{
return projectName_;
}
void DeleteQualityRuleRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setBodyParameter("ProjectName", projectName);
}
long DeleteQualityRuleRequest::getRuleId()const
{
return ruleId_;
}
void DeleteQualityRuleRequest::setRuleId(long ruleId)
{
ruleId_ = ruleId;
setBodyParameter("RuleId", std::to_string(ruleId));
}

View File

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

View File

@@ -0,0 +1,40 @@
/*
* 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/DeleteRemindRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteRemindRequest;
DeleteRemindRequest::DeleteRemindRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteRemind")
{
setMethod(HttpRequest::Method::Post);
}
DeleteRemindRequest::~DeleteRemindRequest()
{}
long DeleteRemindRequest::getRemindId()const
{
return remindId_;
}
void DeleteRemindRequest::setRemindId(long remindId)
{
remindId_ = remindId;
setBodyParameter("RemindId", std::to_string(remindId));
}

View File

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

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/DeployFileRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeployFileRequest;
DeployFileRequest::DeployFileRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeployFile")
{
setMethod(HttpRequest::Method::Post);
}
DeployFileRequest::~DeployFileRequest()
{}
std::string DeployFileRequest::getComment()const
{
return comment_;
}
void DeployFileRequest::setComment(const std::string& comment)
{
comment_ = comment;
setBodyParameter("Comment", comment);
}
long DeployFileRequest::getProjectId()const
{
return projectId_;
}
void DeployFileRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
long DeployFileRequest::getNodeId()const
{
return nodeId_;
}
void DeployFileRequest::setNodeId(long nodeId)
{
nodeId_ = nodeId;
setBodyParameter("NodeId", std::to_string(nodeId));
}
std::string DeployFileRequest::getProjectIdentifier()const
{
return projectIdentifier_;
}
void DeployFileRequest::setProjectIdentifier(const std::string& projectIdentifier)
{
projectIdentifier_ = projectIdentifier;
setBodyParameter("ProjectIdentifier", projectIdentifier);
}
long DeployFileRequest::getFileId()const
{
return fileId_;
}
void DeployFileRequest::setFileId(long fileId)
{
fileId_ = fileId;
setBodyParameter("FileId", std::to_string(fileId));
}

View File

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

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/EstablishRelationTableToBusinessRequest.h>
using AlibabaCloud::Dataworks_public::Model::EstablishRelationTableToBusinessRequest;
EstablishRelationTableToBusinessRequest::EstablishRelationTableToBusinessRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "EstablishRelationTableToBusiness")
{
setMethod(HttpRequest::Method::Post);
}
EstablishRelationTableToBusinessRequest::~EstablishRelationTableToBusinessRequest()
{}
std::string EstablishRelationTableToBusinessRequest::getTableGuid()const
{
return tableGuid_;
}
void EstablishRelationTableToBusinessRequest::setTableGuid(const std::string& tableGuid)
{
tableGuid_ = tableGuid;
setBodyParameter("TableGuid", tableGuid);
}
std::string EstablishRelationTableToBusinessRequest::getBusinessId()const
{
return businessId_;
}
void EstablishRelationTableToBusinessRequest::setBusinessId(const std::string& businessId)
{
businessId_ = businessId;
setBodyParameter("BusinessId", businessId);
}
long EstablishRelationTableToBusinessRequest::getProjectId()const
{
return projectId_;
}
void EstablishRelationTableToBusinessRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
std::string EstablishRelationTableToBusinessRequest::getProjectIdentifier()const
{
return projectIdentifier_;
}
void EstablishRelationTableToBusinessRequest::setProjectIdentifier(const std::string& projectIdentifier)
{
projectIdentifier_ = projectIdentifier;
setBodyParameter("ProjectIdentifier", projectIdentifier);
}
std::string EstablishRelationTableToBusinessRequest::getFolderId()const
{
return folderId_;
}
void EstablishRelationTableToBusinessRequest::setFolderId(const std::string& folderId)
{
folderId_ = folderId;
setBodyParameter("FolderId", folderId);
}

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/EstablishRelationTableToBusinessResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
EstablishRelationTableToBusinessResult::EstablishRelationTableToBusinessResult() :
ServiceResult()
{}
EstablishRelationTableToBusinessResult::EstablishRelationTableToBusinessResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EstablishRelationTableToBusinessResult::~EstablishRelationTableToBusinessResult()
{}
void EstablishRelationTableToBusinessResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["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 EstablishRelationTableToBusinessResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string EstablishRelationTableToBusinessResult::getErrorCode()const
{
return errorCode_;
}
std::string EstablishRelationTableToBusinessResult::getErrorMessage()const
{
return errorMessage_;
}
bool EstablishRelationTableToBusinessResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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/GetBaselineConfigRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetBaselineConfigRequest;
GetBaselineConfigRequest::GetBaselineConfigRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetBaselineConfig")
{
setMethod(HttpRequest::Method::Post);
}
GetBaselineConfigRequest::~GetBaselineConfigRequest()
{}
long GetBaselineConfigRequest::getBaselineId()const
{
return baselineId_;
}
void GetBaselineConfigRequest::setBaselineId(long baselineId)
{
baselineId_ = baselineId;
setBodyParameter("BaselineId", std::to_string(baselineId));
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/GetBaselineConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetBaselineConfigResult::GetBaselineConfigResult() :
ServiceResult()
{}
GetBaselineConfigResult::GetBaselineConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetBaselineConfigResult::~GetBaselineConfigResult()
{}
void GetBaselineConfigResult::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["BaselineId"].isNull())
data_.baselineId = std::stol(dataNode["BaselineId"].asString());
if(!dataNode["Priority"].isNull())
data_.priority = std::stoi(dataNode["Priority"].asString());
if(!dataNode["BaselineName"].isNull())
data_.baselineName = dataNode["BaselineName"].asString();
if(!dataNode["Owner"].isNull())
data_.owner = dataNode["Owner"].asString();
if(!dataNode["ProjectId"].isNull())
data_.projectId = std::stol(dataNode["ProjectId"].asString());
if(!dataNode["UseFlag"].isNull())
data_.useFlag = dataNode["UseFlag"].asString() == "true";
if(!dataNode["BaselineType"].isNull())
data_.baselineType = dataNode["BaselineType"].asString();
if(!dataNode["ExpHour"].isNull())
data_.expHour = std::stoi(dataNode["ExpHour"].asString());
if(!dataNode["ExpMinu"].isNull())
data_.expMinu = std::stoi(dataNode["ExpMinu"].asString());
if(!dataNode["SlaHour"].isNull())
data_.slaHour = std::stoi(dataNode["SlaHour"].asString());
if(!dataNode["SlaMinu"].isNull())
data_.slaMinu = std::stoi(dataNode["SlaMinu"].asString());
if(!dataNode["HourExpDetail"].isNull())
data_.hourExpDetail = dataNode["HourExpDetail"].asString();
if(!dataNode["HourSlaDetail"].isNull())
data_.hourSlaDetail = dataNode["HourSlaDetail"].asString();
if(!dataNode["IsDefault"].isNull())
data_.isDefault = dataNode["IsDefault"].asString() == "true";
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 GetBaselineConfigResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetBaselineConfigResult::Data GetBaselineConfigResult::getData()const
{
return data_;
}
std::string GetBaselineConfigResult::getErrorCode()const
{
return errorCode_;
}
std::string GetBaselineConfigResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetBaselineConfigResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/GetBaselineKeyPathRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetBaselineKeyPathRequest;
GetBaselineKeyPathRequest::GetBaselineKeyPathRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetBaselineKeyPath")
{
setMethod(HttpRequest::Method::Post);
}
GetBaselineKeyPathRequest::~GetBaselineKeyPathRequest()
{}
std::string GetBaselineKeyPathRequest::getBizdate()const
{
return bizdate_;
}
void GetBaselineKeyPathRequest::setBizdate(const std::string& bizdate)
{
bizdate_ = bizdate;
setBodyParameter("Bizdate", bizdate);
}
int GetBaselineKeyPathRequest::getInGroupId()const
{
return inGroupId_;
}
void GetBaselineKeyPathRequest::setInGroupId(int inGroupId)
{
inGroupId_ = inGroupId;
setBodyParameter("InGroupId", std::to_string(inGroupId));
}
long GetBaselineKeyPathRequest::getBaselineId()const
{
return baselineId_;
}
void GetBaselineKeyPathRequest::setBaselineId(long baselineId)
{
baselineId_ = baselineId;
setBodyParameter("BaselineId", std::to_string(baselineId));
}

View File

@@ -0,0 +1,151 @@
/*
* 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/GetBaselineKeyPathResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetBaselineKeyPathResult::GetBaselineKeyPathResult() :
ServiceResult()
{}
GetBaselineKeyPathResult::GetBaselineKeyPathResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetBaselineKeyPathResult::~GetBaselineKeyPathResult()
{}
void GetBaselineKeyPathResult::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["InstanceId"].isNull())
dataObject.instanceId = std::stol(valueDataDataItem["InstanceId"].asString());
if(!valueDataDataItem["ProjectId"].isNull())
dataObject.projectId = std::stol(valueDataDataItem["ProjectId"].asString());
if(!valueDataDataItem["NodeId"].isNull())
dataObject.nodeId = std::stol(valueDataDataItem["NodeId"].asString());
if(!valueDataDataItem["NodeName"].isNull())
dataObject.nodeName = valueDataDataItem["NodeName"].asString();
if(!valueDataDataItem["Bizdate"].isNull())
dataObject.bizdate = std::stol(valueDataDataItem["Bizdate"].asString());
if(!valueDataDataItem["InGroupId"].isNull())
dataObject.inGroupId = std::stoi(valueDataDataItem["InGroupId"].asString());
if(!valueDataDataItem["Owner"].isNull())
dataObject.owner = valueDataDataItem["Owner"].asString();
if(!valueDataDataItem["PrgType"].isNull())
dataObject.prgType = std::stoi(valueDataDataItem["PrgType"].asString());
auto allRunsNode = allDataNode["Runs"]["RunsItem"];
for (auto allDataNodeRunsRunsItem : allRunsNode)
{
DataItem::RunsItem runsObject;
if(!allDataNodeRunsRunsItem["AbsTime"].isNull())
runsObject.absTime = std::stol(allDataNodeRunsRunsItem["AbsTime"].asString());
if(!allDataNodeRunsRunsItem["BeginCast"].isNull())
runsObject.beginCast = std::stol(allDataNodeRunsRunsItem["BeginCast"].asString());
if(!allDataNodeRunsRunsItem["BeginRunningTime"].isNull())
runsObject.beginRunningTime = std::stol(allDataNodeRunsRunsItem["BeginRunningTime"].asString());
if(!allDataNodeRunsRunsItem["BeginWaitResTime"].isNull())
runsObject.beginWaitResTime = std::stol(allDataNodeRunsRunsItem["BeginWaitResTime"].asString());
if(!allDataNodeRunsRunsItem["BeginWaitTimeTime"].isNull())
runsObject.beginWaitTimeTime = std::stol(allDataNodeRunsRunsItem["BeginWaitTimeTime"].asString());
if(!allDataNodeRunsRunsItem["Bizdate"].isNull())
runsObject.bizdate = std::stol(allDataNodeRunsRunsItem["Bizdate"].asString());
if(!allDataNodeRunsRunsItem["CycTime"].isNull())
runsObject.cycTime = std::stol(allDataNodeRunsRunsItem["CycTime"].asString());
if(!allDataNodeRunsRunsItem["EndCast"].isNull())
runsObject.endCast = std::stol(allDataNodeRunsRunsItem["EndCast"].asString());
if(!allDataNodeRunsRunsItem["FinishTime"].isNull())
runsObject.finishTime = std::stol(allDataNodeRunsRunsItem["FinishTime"].asString());
if(!allDataNodeRunsRunsItem["InGroupId"].isNull())
runsObject.inGroupId = std::stoi(allDataNodeRunsRunsItem["InGroupId"].asString());
if(!allDataNodeRunsRunsItem["InstanceId"].isNull())
runsObject.instanceId = std::stol(allDataNodeRunsRunsItem["InstanceId"].asString());
if(!allDataNodeRunsRunsItem["NodeId"].isNull())
runsObject.nodeId = std::stol(allDataNodeRunsRunsItem["NodeId"].asString());
if(!allDataNodeRunsRunsItem["NodeName"].isNull())
runsObject.nodeName = allDataNodeRunsRunsItem["NodeName"].asString();
if(!allDataNodeRunsRunsItem["Owner"].isNull())
runsObject.owner = allDataNodeRunsRunsItem["Owner"].asString();
if(!allDataNodeRunsRunsItem["ProjectId"].isNull())
runsObject.projectId = std::stol(allDataNodeRunsRunsItem["ProjectId"].asString());
if(!allDataNodeRunsRunsItem["Status"].isNull())
runsObject.status = allDataNodeRunsRunsItem["Status"].asString();
dataObject.runs.push_back(runsObject);
}
auto allTopicsNode = allDataNode["Topics"]["TopicsItem"];
for (auto allDataNodeTopicsTopicsItem : allTopicsNode)
{
DataItem::TopicsItem topicsObject;
if(!allDataNodeTopicsTopicsItem["InstanceId"].isNull())
topicsObject.instanceId = std::stol(allDataNodeTopicsTopicsItem["InstanceId"].asString());
if(!allDataNodeTopicsTopicsItem["TopicId"].isNull())
topicsObject.topicId = std::stol(allDataNodeTopicsTopicsItem["TopicId"].asString());
if(!allDataNodeTopicsTopicsItem["TopicName"].isNull())
topicsObject.topicName = std::stol(allDataNodeTopicsTopicsItem["TopicName"].asString());
if(!allDataNodeTopicsTopicsItem["AddTime"].isNull())
topicsObject.addTime = std::stol(allDataNodeTopicsTopicsItem["AddTime"].asString());
dataObject.topics.push_back(topicsObject);
}
data_.push_back(dataObject);
}
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 GetBaselineKeyPathResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<GetBaselineKeyPathResult::DataItem> GetBaselineKeyPathResult::getData()const
{
return data_;
}
std::string GetBaselineKeyPathResult::getErrorCode()const
{
return errorCode_;
}
std::string GetBaselineKeyPathResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetBaselineKeyPathResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/GetBaselineStatusRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetBaselineStatusRequest;
GetBaselineStatusRequest::GetBaselineStatusRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetBaselineStatus")
{
setMethod(HttpRequest::Method::Post);
}
GetBaselineStatusRequest::~GetBaselineStatusRequest()
{}
std::string GetBaselineStatusRequest::getBizdate()const
{
return bizdate_;
}
void GetBaselineStatusRequest::setBizdate(const std::string& bizdate)
{
bizdate_ = bizdate;
setBodyParameter("Bizdate", bizdate);
}
int GetBaselineStatusRequest::getInGroupId()const
{
return inGroupId_;
}
void GetBaselineStatusRequest::setInGroupId(int inGroupId)
{
inGroupId_ = inGroupId;
setBodyParameter("InGroupId", std::to_string(inGroupId));
}
long GetBaselineStatusRequest::getBaselineId()const
{
return baselineId_;
}
void GetBaselineStatusRequest::setBaselineId(long baselineId)
{
baselineId_ = baselineId;
setBodyParameter("BaselineId", std::to_string(baselineId));
}

View File

@@ -0,0 +1,140 @@
/*
* 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/GetBaselineStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetBaselineStatusResult::GetBaselineStatusResult() :
ServiceResult()
{}
GetBaselineStatusResult::GetBaselineStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetBaselineStatusResult::~GetBaselineStatusResult()
{}
void GetBaselineStatusResult::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["BaselineName"].isNull())
data_.baselineName = dataNode["BaselineName"].asString();
if(!dataNode["BaselineId"].isNull())
data_.baselineId = std::stol(dataNode["BaselineId"].asString());
if(!dataNode["Bizdate"].isNull())
data_.bizdate = std::stol(dataNode["Bizdate"].asString());
if(!dataNode["Owner"].isNull())
data_.owner = dataNode["Owner"].asString();
if(!dataNode["ExpTime"].isNull())
data_.expTime = std::stol(dataNode["ExpTime"].asString());
if(!dataNode["FinishTime"].isNull())
data_.finishTime = std::stol(dataNode["FinishTime"].asString());
if(!dataNode["EndCast"].isNull())
data_.endCast = std::stol(dataNode["EndCast"].asString());
if(!dataNode["SlaTime"].isNull())
data_.slaTime = std::stol(dataNode["SlaTime"].asString());
if(!dataNode["Priority"].isNull())
data_.priority = std::stoi(dataNode["Priority"].asString());
if(!dataNode["ProjectId"].isNull())
data_.projectId = std::stol(dataNode["ProjectId"].asString());
if(!dataNode["Buffer"].isNull())
data_.buffer = std::stof(dataNode["Buffer"].asString());
if(!dataNode["Status"].isNull())
data_.status = dataNode["Status"].asString();
if(!dataNode["FinishStatus"].isNull())
data_.finishStatus = dataNode["FinishStatus"].asString();
if(!dataNode["InGroupId"].isNull())
data_.inGroupId = std::stoi(dataNode["InGroupId"].asString());
auto lastInstanceNode = dataNode["LastInstance"];
if(!lastInstanceNode["InstanceId"].isNull())
data_.lastInstance.instanceId = std::stol(lastInstanceNode["InstanceId"].asString());
if(!lastInstanceNode["Status"].isNull())
data_.lastInstance.status = lastInstanceNode["Status"].asString();
if(!lastInstanceNode["ProjectId"].isNull())
data_.lastInstance.projectId = std::stol(lastInstanceNode["ProjectId"].asString());
if(!lastInstanceNode["Owner"].isNull())
data_.lastInstance.owner = lastInstanceNode["Owner"].asString();
if(!lastInstanceNode["NodeId"].isNull())
data_.lastInstance.nodeId = std::stol(lastInstanceNode["NodeId"].asString());
if(!lastInstanceNode["FinishTime"].isNull())
data_.lastInstance.finishTime = std::stol(lastInstanceNode["FinishTime"].asString());
if(!lastInstanceNode["EndCast"].isNull())
data_.lastInstance.endCast = std::stol(lastInstanceNode["EndCast"].asString());
if(!lastInstanceNode["NodeName"].isNull())
data_.lastInstance.nodeName = lastInstanceNode["NodeName"].asString();
auto blockInstanceNode = dataNode["BlockInstance"];
if(!blockInstanceNode["InstanceId"].isNull())
data_.blockInstance.instanceId = std::stol(blockInstanceNode["InstanceId"].asString());
if(!blockInstanceNode["Status"].isNull())
data_.blockInstance.status = blockInstanceNode["Status"].asString();
if(!blockInstanceNode["ProjectId"].isNull())
data_.blockInstance.projectId = std::stol(blockInstanceNode["ProjectId"].asString());
if(!blockInstanceNode["Owner"].isNull())
data_.blockInstance.owner = blockInstanceNode["Owner"].asString();
if(!blockInstanceNode["NodeId"].isNull())
data_.blockInstance.nodeId = std::stol(blockInstanceNode["NodeId"].asString());
if(!blockInstanceNode["FinishTime"].isNull())
data_.blockInstance.finishTime = std::stol(blockInstanceNode["FinishTime"].asString());
if(!blockInstanceNode["EndCast"].isNull())
data_.blockInstance.endCast = std::stol(blockInstanceNode["EndCast"].asString());
if(!blockInstanceNode["NodeName"].isNull())
data_.blockInstance.nodeName = blockInstanceNode["NodeName"].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 GetBaselineStatusResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetBaselineStatusResult::Data GetBaselineStatusResult::getData()const
{
return data_;
}
std::string GetBaselineStatusResult::getErrorCode()const
{
return errorCode_;
}
std::string GetBaselineStatusResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetBaselineStatusResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/GetBusinessRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetBusinessRequest;
GetBusinessRequest::GetBusinessRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetBusiness")
{
setMethod(HttpRequest::Method::Post);
}
GetBusinessRequest::~GetBusinessRequest()
{}
long GetBusinessRequest::getBusinessId()const
{
return businessId_;
}
void GetBusinessRequest::setBusinessId(long businessId)
{
businessId_ = businessId;
setBodyParameter("BusinessId", std::to_string(businessId));
}
long GetBusinessRequest::getProjectId()const
{
return projectId_;
}
void GetBusinessRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
std::string GetBusinessRequest::getProjectIdentifier()const
{
return projectIdentifier_;
}
void GetBusinessRequest::setProjectIdentifier(const std::string& projectIdentifier)
{
projectIdentifier_ = projectIdentifier;
setBodyParameter("ProjectIdentifier", projectIdentifier);
}

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/GetBusinessResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetBusinessResult::GetBusinessResult() :
ServiceResult()
{}
GetBusinessResult::GetBusinessResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetBusinessResult::~GetBusinessResult()
{}
void GetBusinessResult::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["BusinessId"].isNull())
data_.businessId = std::stol(dataNode["BusinessId"].asString());
if(!dataNode["BusinessName"].isNull())
data_.businessName = dataNode["BusinessName"].asString();
if(!dataNode["ProjectId"].isNull())
data_.projectId = dataNode["ProjectId"].asString();
if(!dataNode["Owner"].isNull())
data_.owner = dataNode["Owner"].asString();
if(!dataNode["Description"].isNull())
data_.description = dataNode["Description"].asString();
if(!dataNode["UseType"].isNull())
data_.useType = dataNode["UseType"].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 GetBusinessResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetBusinessResult::Data GetBusinessResult::getData()const
{
return data_;
}
std::string GetBusinessResult::getErrorCode()const
{
return errorCode_;
}
std::string GetBusinessResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetBusinessResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/GetDataServiceApiRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetDataServiceApiRequest;
GetDataServiceApiRequest::GetDataServiceApiRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetDataServiceApi")
{
setMethod(HttpRequest::Method::Post);
}
GetDataServiceApiRequest::~GetDataServiceApiRequest()
{}
long GetDataServiceApiRequest::getTenantId()const
{
return tenantId_;
}
void GetDataServiceApiRequest::setTenantId(long tenantId)
{
tenantId_ = tenantId;
setBodyParameter("TenantId", std::to_string(tenantId));
}
long GetDataServiceApiRequest::getProjectId()const
{
return projectId_;
}
void GetDataServiceApiRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
long GetDataServiceApiRequest::getApiId()const
{
return apiId_;
}
void GetDataServiceApiRequest::setApiId(long apiId)
{
apiId_ = apiId;
setBodyParameter("ApiId", std::to_string(apiId));
}

View File

@@ -0,0 +1,262 @@
/*
* 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/GetDataServiceApiResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetDataServiceApiResult::GetDataServiceApiResult() :
ServiceResult()
{}
GetDataServiceApiResult::GetDataServiceApiResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDataServiceApiResult::~GetDataServiceApiResult()
{}
void GetDataServiceApiResult::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["ApiId"].isNull())
data_.apiId = std::stol(dataNode["ApiId"].asString());
if(!dataNode["ApiMode"].isNull())
data_.apiMode = std::stoi(dataNode["ApiMode"].asString());
if(!dataNode["ApiName"].isNull())
data_.apiName = dataNode["ApiName"].asString();
if(!dataNode["ApiPath"].isNull())
data_.apiPath = dataNode["ApiPath"].asString();
if(!dataNode["CreatedTime"].isNull())
data_.createdTime = dataNode["CreatedTime"].asString();
if(!dataNode["CreatorId"].isNull())
data_.creatorId = dataNode["CreatorId"].asString();
if(!dataNode["Description"].isNull())
data_.description = dataNode["Description"].asString();
if(!dataNode["GroupId"].isNull())
data_.groupId = dataNode["GroupId"].asString();
if(!dataNode["ModifiedTime"].isNull())
data_.modifiedTime = dataNode["ModifiedTime"].asString();
if(!dataNode["OperatorId"].isNull())
data_.operatorId = dataNode["OperatorId"].asString();
if(!dataNode["ProjectId"].isNull())
data_.projectId = std::stol(dataNode["ProjectId"].asString());
if(!dataNode["RequestMethod"].isNull())
data_.requestMethod = std::stoi(dataNode["RequestMethod"].asString());
if(!dataNode["ResponseContentType"].isNull())
data_.responseContentType = std::stoi(dataNode["ResponseContentType"].asString());
if(!dataNode["Status"].isNull())
data_.status = std::stoi(dataNode["Status"].asString());
if(!dataNode["TenantId"].isNull())
data_.tenantId = std::stol(dataNode["TenantId"].asString());
if(!dataNode["Timeout"].isNull())
data_.timeout = std::stoi(dataNode["Timeout"].asString());
if(!dataNode["VisibleRange"].isNull())
data_.visibleRange = std::stoi(dataNode["VisibleRange"].asString());
auto registrationDetailsNode = dataNode["RegistrationDetails"];
if(!registrationDetailsNode["FailedResultSample"].isNull())
data_.registrationDetails.failedResultSample = registrationDetailsNode["FailedResultSample"].asString();
if(!registrationDetailsNode["ServiceContentType"].isNull())
data_.registrationDetails.serviceContentType = std::stoi(registrationDetailsNode["ServiceContentType"].asString());
if(!registrationDetailsNode["ServiceHost"].isNull())
data_.registrationDetails.serviceHost = registrationDetailsNode["ServiceHost"].asString();
if(!registrationDetailsNode["ServicePath"].isNull())
data_.registrationDetails.servicePath = registrationDetailsNode["ServicePath"].asString();
if(!registrationDetailsNode["ServiceRequestBodyDescription"].isNull())
data_.registrationDetails.serviceRequestBodyDescription = registrationDetailsNode["ServiceRequestBodyDescription"].asString();
if(!registrationDetailsNode["SuccessfulResultSample"].isNull())
data_.registrationDetails.successfulResultSample = registrationDetailsNode["SuccessfulResultSample"].asString();
auto allRegistrationErrorCodesNode = registrationDetailsNode["RegistrationErrorCodes"]["RegistrationErrorCode"];
for (auto registrationDetailsNodeRegistrationErrorCodesRegistrationErrorCode : allRegistrationErrorCodesNode)
{
Data::RegistrationDetails::RegistrationErrorCode registrationErrorCodeObject;
if(!registrationDetailsNodeRegistrationErrorCodesRegistrationErrorCode["ErrorCode"].isNull())
registrationErrorCodeObject.errorCode = registrationDetailsNodeRegistrationErrorCodesRegistrationErrorCode["ErrorCode"].asString();
if(!registrationDetailsNodeRegistrationErrorCodesRegistrationErrorCode["ErrorMessage"].isNull())
registrationErrorCodeObject.errorMessage = registrationDetailsNodeRegistrationErrorCodesRegistrationErrorCode["ErrorMessage"].asString();
if(!registrationDetailsNodeRegistrationErrorCodesRegistrationErrorCode["ErrorSolution"].isNull())
registrationErrorCodeObject.errorSolution = registrationDetailsNodeRegistrationErrorCodesRegistrationErrorCode["ErrorSolution"].asString();
data_.registrationDetails.registrationErrorCodes.push_back(registrationErrorCodeObject);
}
auto allRegistrationRequestParametersNode = registrationDetailsNode["RegistrationRequestParameters"]["RegistrationRequestParameter"];
for (auto registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter : allRegistrationRequestParametersNode)
{
Data::RegistrationDetails::RegistrationRequestParameter registrationRequestParameterObject;
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ColumnName"].isNull())
registrationRequestParameterObject.columnName = registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ColumnName"].asString();
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["DefaultValue"].isNull())
registrationRequestParameterObject.defaultValue = registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["DefaultValue"].asString();
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ExampleValue"].isNull())
registrationRequestParameterObject.exampleValue = registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ExampleValue"].asString();
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["IsRequiredParameter"].isNull())
registrationRequestParameterObject.isRequiredParameter = registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["IsRequiredParameter"].asString() == "true";
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterDataType"].isNull())
registrationRequestParameterObject.parameterDataType = std::stoi(registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterDataType"].asString());
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterDescription"].isNull())
registrationRequestParameterObject.parameterDescription = registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterDescription"].asString();
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterName"].isNull())
registrationRequestParameterObject.parameterName = registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterName"].asString();
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterOperator"].isNull())
registrationRequestParameterObject.parameterOperator = std::stoi(registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterOperator"].asString());
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterPosition"].isNull())
registrationRequestParameterObject.parameterPosition = std::stoi(registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterPosition"].asString());
data_.registrationDetails.registrationRequestParameters.push_back(registrationRequestParameterObject);
}
auto scriptDetailsNode = dataNode["ScriptDetails"];
if(!scriptDetailsNode["IsPagedResponse"].isNull())
data_.scriptDetails.isPagedResponse = scriptDetailsNode["IsPagedResponse"].asString() == "true";
if(!scriptDetailsNode["Script"].isNull())
data_.scriptDetails.script = scriptDetailsNode["Script"].asString();
auto allScriptRequestParametersNode = scriptDetailsNode["ScriptRequestParameters"]["ScriptRequestParameter"];
for (auto scriptDetailsNodeScriptRequestParametersScriptRequestParameter : allScriptRequestParametersNode)
{
Data::ScriptDetails::ScriptRequestParameter scriptRequestParameterObject;
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ColumnName"].isNull())
scriptRequestParameterObject.columnName = scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ColumnName"].asString();
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["DefaultValue"].isNull())
scriptRequestParameterObject.defaultValue = scriptDetailsNodeScriptRequestParametersScriptRequestParameter["DefaultValue"].asString();
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ExampleValue"].isNull())
scriptRequestParameterObject.exampleValue = scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ExampleValue"].asString();
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["IsRequiredParameter"].isNull())
scriptRequestParameterObject.isRequiredParameter = scriptDetailsNodeScriptRequestParametersScriptRequestParameter["IsRequiredParameter"].asString() == "true";
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterDataType"].isNull())
scriptRequestParameterObject.parameterDataType = std::stoi(scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterDataType"].asString());
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterDescription"].isNull())
scriptRequestParameterObject.parameterDescription = scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterDescription"].asString();
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterName"].isNull())
scriptRequestParameterObject.parameterName = scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterName"].asString();
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterOperator"].isNull())
scriptRequestParameterObject.parameterOperator = std::stoi(scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterOperator"].asString());
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterPosition"].isNull())
scriptRequestParameterObject.parameterPosition = std::stoi(scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterPosition"].asString());
data_.scriptDetails.scriptRequestParameters.push_back(scriptRequestParameterObject);
}
auto allScriptResponseParametersNode = scriptDetailsNode["ScriptResponseParameters"]["ScriptResponseParameter"];
for (auto scriptDetailsNodeScriptResponseParametersScriptResponseParameter : allScriptResponseParametersNode)
{
Data::ScriptDetails::ScriptResponseParameter scriptResponseParameterObject;
if(!scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ColumnName"].isNull())
scriptResponseParameterObject.columnName = scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ColumnName"].asString();
if(!scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ExampleValue"].isNull())
scriptResponseParameterObject.exampleValue = scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ExampleValue"].asString();
if(!scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ParameterDataType"].isNull())
scriptResponseParameterObject.parameterDataType = std::stoi(scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ParameterDataType"].asString());
if(!scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ParameterDescription"].isNull())
scriptResponseParameterObject.parameterDescription = scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ParameterDescription"].asString();
if(!scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ParameterName"].isNull())
scriptResponseParameterObject.parameterName = scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ParameterName"].asString();
data_.scriptDetails.scriptResponseParameters.push_back(scriptResponseParameterObject);
}
auto scriptConnectionNode = scriptDetailsNode["ScriptConnection"];
if(!scriptConnectionNode["ConnectionId"].isNull())
data_.scriptDetails.scriptConnection.connectionId = std::stol(scriptConnectionNode["ConnectionId"].asString());
if(!scriptConnectionNode["TableName"].isNull())
data_.scriptDetails.scriptConnection.tableName = scriptConnectionNode["TableName"].asString();
auto wizardDetailsNode = dataNode["WizardDetails"];
if(!wizardDetailsNode["IsPagedResponse"].isNull())
data_.wizardDetails.isPagedResponse = wizardDetailsNode["IsPagedResponse"].asString() == "true";
auto allWizardRequestParametersNode = wizardDetailsNode["WizardRequestParameters"]["WizardRequestParameter"];
for (auto wizardDetailsNodeWizardRequestParametersWizardRequestParameter : allWizardRequestParametersNode)
{
Data::WizardDetails::WizardRequestParameter wizardRequestParameterObject;
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ColumnName"].isNull())
wizardRequestParameterObject.columnName = wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ColumnName"].asString();
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["DefaultValue"].isNull())
wizardRequestParameterObject.defaultValue = wizardDetailsNodeWizardRequestParametersWizardRequestParameter["DefaultValue"].asString();
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ExampleValue"].isNull())
wizardRequestParameterObject.exampleValue = wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ExampleValue"].asString();
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["IsRequiredParameter"].isNull())
wizardRequestParameterObject.isRequiredParameter = wizardDetailsNodeWizardRequestParametersWizardRequestParameter["IsRequiredParameter"].asString() == "true";
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterDataType"].isNull())
wizardRequestParameterObject.parameterDataType = std::stoi(wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterDataType"].asString());
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterDescription"].isNull())
wizardRequestParameterObject.parameterDescription = wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterDescription"].asString();
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterName"].isNull())
wizardRequestParameterObject.parameterName = wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterName"].asString();
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterOperator"].isNull())
wizardRequestParameterObject.parameterOperator = std::stoi(wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterOperator"].asString());
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterPosition"].isNull())
wizardRequestParameterObject.parameterPosition = std::stoi(wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterPosition"].asString());
data_.wizardDetails.wizardRequestParameters.push_back(wizardRequestParameterObject);
}
auto allWizardResponseParametersNode = wizardDetailsNode["WizardResponseParameters"]["WizardResponseParameter"];
for (auto wizardDetailsNodeWizardResponseParametersWizardResponseParameter : allWizardResponseParametersNode)
{
Data::WizardDetails::WizardResponseParameter wizardResponseParameterObject;
if(!wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ColumnName"].isNull())
wizardResponseParameterObject.columnName = wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ColumnName"].asString();
if(!wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ExampleValue"].isNull())
wizardResponseParameterObject.exampleValue = wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ExampleValue"].asString();
if(!wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ParameterDataType"].isNull())
wizardResponseParameterObject.parameterDataType = std::stoi(wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ParameterDataType"].asString());
if(!wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ParameterDescription"].isNull())
wizardResponseParameterObject.parameterDescription = wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ParameterDescription"].asString();
if(!wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ParameterName"].isNull())
wizardResponseParameterObject.parameterName = wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ParameterName"].asString();
data_.wizardDetails.wizardResponseParameters.push_back(wizardResponseParameterObject);
}
auto wizardConnectionNode = wizardDetailsNode["WizardConnection"];
if(!wizardConnectionNode["ConnectionId"].isNull())
data_.wizardDetails.wizardConnection.connectionId = std::stol(wizardConnectionNode["ConnectionId"].asString());
if(!wizardConnectionNode["TableName"].isNull())
data_.wizardDetails.wizardConnection.tableName = wizardConnectionNode["TableName"].asString();
auto allProtocols = dataNode["Protocols"]["Protocol"];
for (auto value : allProtocols)
data_.protocols.push_back(value.asString());
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());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
int GetDataServiceApiResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetDataServiceApiResult::Data GetDataServiceApiResult::getData()const
{
return data_;
}
std::string GetDataServiceApiResult::getErrorCode()const
{
return errorCode_;
}
std::string GetDataServiceApiResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetDataServiceApiResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/GetDataServiceApplicationRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetDataServiceApplicationRequest;
GetDataServiceApplicationRequest::GetDataServiceApplicationRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetDataServiceApplication")
{
setMethod(HttpRequest::Method::Post);
}
GetDataServiceApplicationRequest::~GetDataServiceApplicationRequest()
{}
long GetDataServiceApplicationRequest::getTenantId()const
{
return tenantId_;
}
void GetDataServiceApplicationRequest::setTenantId(long tenantId)
{
tenantId_ = tenantId;
setBodyParameter("TenantId", std::to_string(tenantId));
}
long GetDataServiceApplicationRequest::getApplicationId()const
{
return applicationId_;
}
void GetDataServiceApplicationRequest::setApplicationId(long applicationId)
{
applicationId_ = applicationId;
setBodyParameter("ApplicationId", std::to_string(applicationId));
}
long GetDataServiceApplicationRequest::getProjectId()const
{
return projectId_;
}
void GetDataServiceApplicationRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/GetDataServiceApplicationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetDataServiceApplicationResult::GetDataServiceApplicationResult() :
ServiceResult()
{}
GetDataServiceApplicationResult::GetDataServiceApplicationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDataServiceApplicationResult::~GetDataServiceApplicationResult()
{}
void GetDataServiceApplicationResult::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["ApplicationCode"].isNull())
data_.applicationCode = dataNode["ApplicationCode"].asString();
if(!dataNode["ApplicationId"].isNull())
data_.applicationId = std::stol(dataNode["ApplicationId"].asString());
if(!dataNode["ApplicationKey"].isNull())
data_.applicationKey = dataNode["ApplicationKey"].asString();
if(!dataNode["ApplicationName"].isNull())
data_.applicationName = dataNode["ApplicationName"].asString();
if(!dataNode["ApplicationSecret"].isNull())
data_.applicationSecret = dataNode["ApplicationSecret"].asString();
if(!dataNode["ProjectId"].isNull())
data_.projectId = std::stol(dataNode["ProjectId"].asString());
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());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
int GetDataServiceApplicationResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetDataServiceApplicationResult::Data GetDataServiceApplicationResult::getData()const
{
return data_;
}
std::string GetDataServiceApplicationResult::getErrorCode()const
{
return errorCode_;
}
std::string GetDataServiceApplicationResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetDataServiceApplicationResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/GetDataServicePublishedApiRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetDataServicePublishedApiRequest;
GetDataServicePublishedApiRequest::GetDataServicePublishedApiRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetDataServicePublishedApi")
{
setMethod(HttpRequest::Method::Post);
}
GetDataServicePublishedApiRequest::~GetDataServicePublishedApiRequest()
{}
long GetDataServicePublishedApiRequest::getTenantId()const
{
return tenantId_;
}
void GetDataServicePublishedApiRequest::setTenantId(long tenantId)
{
tenantId_ = tenantId;
setBodyParameter("TenantId", std::to_string(tenantId));
}
long GetDataServicePublishedApiRequest::getProjectId()const
{
return projectId_;
}
void GetDataServicePublishedApiRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
long GetDataServicePublishedApiRequest::getApiId()const
{
return apiId_;
}
void GetDataServicePublishedApiRequest::setApiId(long apiId)
{
apiId_ = apiId;
setBodyParameter("ApiId", std::to_string(apiId));
}

View File

@@ -0,0 +1,284 @@
/*
* 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/GetDataServicePublishedApiResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetDataServicePublishedApiResult::GetDataServicePublishedApiResult() :
ServiceResult()
{}
GetDataServicePublishedApiResult::GetDataServicePublishedApiResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDataServicePublishedApiResult::~GetDataServicePublishedApiResult()
{}
void GetDataServicePublishedApiResult::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["ApiId"].isNull())
data_.apiId = std::stol(dataNode["ApiId"].asString());
if(!dataNode["ApiMode"].isNull())
data_.apiMode = std::stoi(dataNode["ApiMode"].asString());
if(!dataNode["ApiName"].isNull())
data_.apiName = dataNode["ApiName"].asString();
if(!dataNode["ApiPath"].isNull())
data_.apiPath = dataNode["ApiPath"].asString();
if(!dataNode["CreatedTime"].isNull())
data_.createdTime = dataNode["CreatedTime"].asString();
if(!dataNode["CreatorId"].isNull())
data_.creatorId = dataNode["CreatorId"].asString();
if(!dataNode["Description"].isNull())
data_.description = dataNode["Description"].asString();
if(!dataNode["GroupId"].isNull())
data_.groupId = dataNode["GroupId"].asString();
if(!dataNode["ModifiedTime"].isNull())
data_.modifiedTime = dataNode["ModifiedTime"].asString();
if(!dataNode["OperatorId"].isNull())
data_.operatorId = dataNode["OperatorId"].asString();
if(!dataNode["ProjectId"].isNull())
data_.projectId = std::stol(dataNode["ProjectId"].asString());
if(!dataNode["RequestMethod"].isNull())
data_.requestMethod = std::stoi(dataNode["RequestMethod"].asString());
if(!dataNode["ResponseContentType"].isNull())
data_.responseContentType = std::stoi(dataNode["ResponseContentType"].asString());
if(!dataNode["Status"].isNull())
data_.status = std::stoi(dataNode["Status"].asString());
if(!dataNode["TenantId"].isNull())
data_.tenantId = std::stol(dataNode["TenantId"].asString());
if(!dataNode["Timeout"].isNull())
data_.timeout = std::stoi(dataNode["Timeout"].asString());
if(!dataNode["VisibleRange"].isNull())
data_.visibleRange = std::stoi(dataNode["VisibleRange"].asString());
auto registrationDetailsNode = dataNode["RegistrationDetails"];
if(!registrationDetailsNode["FailedResultSample"].isNull())
data_.registrationDetails.failedResultSample = registrationDetailsNode["FailedResultSample"].asString();
if(!registrationDetailsNode["ServiceContentType"].isNull())
data_.registrationDetails.serviceContentType = std::stoi(registrationDetailsNode["ServiceContentType"].asString());
if(!registrationDetailsNode["ServiceHost"].isNull())
data_.registrationDetails.serviceHost = registrationDetailsNode["ServiceHost"].asString();
if(!registrationDetailsNode["ServicePath"].isNull())
data_.registrationDetails.servicePath = registrationDetailsNode["ServicePath"].asString();
if(!registrationDetailsNode["ServiceRequestBodyDescription"].isNull())
data_.registrationDetails.serviceRequestBodyDescription = registrationDetailsNode["ServiceRequestBodyDescription"].asString();
if(!registrationDetailsNode["SuccessfulResultSample"].isNull())
data_.registrationDetails.successfulResultSample = registrationDetailsNode["SuccessfulResultSample"].asString();
auto allRegistrationErrorCodesNode = registrationDetailsNode["RegistrationErrorCodes"]["RegistrationErrorCode"];
for (auto registrationDetailsNodeRegistrationErrorCodesRegistrationErrorCode : allRegistrationErrorCodesNode)
{
Data::RegistrationDetails::RegistrationErrorCode registrationErrorCodeObject;
if(!registrationDetailsNodeRegistrationErrorCodesRegistrationErrorCode["ErrorCode"].isNull())
registrationErrorCodeObject.errorCode = registrationDetailsNodeRegistrationErrorCodesRegistrationErrorCode["ErrorCode"].asString();
if(!registrationDetailsNodeRegistrationErrorCodesRegistrationErrorCode["ErrorMessage"].isNull())
registrationErrorCodeObject.errorMessage = registrationDetailsNodeRegistrationErrorCodesRegistrationErrorCode["ErrorMessage"].asString();
if(!registrationDetailsNodeRegistrationErrorCodesRegistrationErrorCode["ErrorSolution"].isNull())
registrationErrorCodeObject.errorSolution = registrationDetailsNodeRegistrationErrorCodesRegistrationErrorCode["ErrorSolution"].asString();
data_.registrationDetails.registrationErrorCodes.push_back(registrationErrorCodeObject);
}
auto allRegistrationRequestParametersNode = registrationDetailsNode["RegistrationRequestParameters"]["RegistrationRequestParameter"];
for (auto registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter : allRegistrationRequestParametersNode)
{
Data::RegistrationDetails::RegistrationRequestParameter registrationRequestParameterObject;
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["DefaultValue"].isNull())
registrationRequestParameterObject.defaultValue = registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["DefaultValue"].asString();
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ExampleValue"].isNull())
registrationRequestParameterObject.exampleValue = registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ExampleValue"].asString();
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["IsRequiredParameter"].isNull())
registrationRequestParameterObject.isRequiredParameter = registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["IsRequiredParameter"].asString() == "true";
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterDataType"].isNull())
registrationRequestParameterObject.parameterDataType = std::stoi(registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterDataType"].asString());
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterDescription"].isNull())
registrationRequestParameterObject.parameterDescription = registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterDescription"].asString();
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterName"].isNull())
registrationRequestParameterObject.parameterName = registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterName"].asString();
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterOperator"].isNull())
registrationRequestParameterObject.parameterOperator = std::stoi(registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterOperator"].asString());
if(!registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterPosition"].isNull())
registrationRequestParameterObject.parameterPosition = std::stoi(registrationDetailsNodeRegistrationRequestParametersRegistrationRequestParameter["ParameterPosition"].asString());
data_.registrationDetails.registrationRequestParameters.push_back(registrationRequestParameterObject);
}
auto scriptDetailsNode = dataNode["ScriptDetails"];
if(!scriptDetailsNode["FailedResultSample"].isNull())
data_.scriptDetails.failedResultSample = scriptDetailsNode["FailedResultSample"].asString();
if(!scriptDetailsNode["IsPagedResponse"].isNull())
data_.scriptDetails.isPagedResponse = scriptDetailsNode["IsPagedResponse"].asString() == "true";
if(!scriptDetailsNode["Script"].isNull())
data_.scriptDetails.script = scriptDetailsNode["Script"].asString();
if(!scriptDetailsNode["SuccessfulResultSample"].isNull())
data_.scriptDetails.successfulResultSample = scriptDetailsNode["SuccessfulResultSample"].asString();
auto allScriptErrorCodesNode = scriptDetailsNode["ScriptErrorCodes"]["ScriptErrorCode"];
for (auto scriptDetailsNodeScriptErrorCodesScriptErrorCode : allScriptErrorCodesNode)
{
Data::ScriptDetails::ScriptErrorCode scriptErrorCodeObject;
if(!scriptDetailsNodeScriptErrorCodesScriptErrorCode["ErrorCode"].isNull())
scriptErrorCodeObject.errorCode = scriptDetailsNodeScriptErrorCodesScriptErrorCode["ErrorCode"].asString();
if(!scriptDetailsNodeScriptErrorCodesScriptErrorCode["ErrorMessage"].isNull())
scriptErrorCodeObject.errorMessage = scriptDetailsNodeScriptErrorCodesScriptErrorCode["ErrorMessage"].asString();
if(!scriptDetailsNodeScriptErrorCodesScriptErrorCode["ErrorSolution"].isNull())
scriptErrorCodeObject.errorSolution = scriptDetailsNodeScriptErrorCodesScriptErrorCode["ErrorSolution"].asString();
data_.scriptDetails.scriptErrorCodes.push_back(scriptErrorCodeObject);
}
auto allScriptRequestParametersNode = scriptDetailsNode["ScriptRequestParameters"]["ScriptRequestParameter"];
for (auto scriptDetailsNodeScriptRequestParametersScriptRequestParameter : allScriptRequestParametersNode)
{
Data::ScriptDetails::ScriptRequestParameter scriptRequestParameterObject;
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["DefaultValue"].isNull())
scriptRequestParameterObject.defaultValue = scriptDetailsNodeScriptRequestParametersScriptRequestParameter["DefaultValue"].asString();
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ExampleValue"].isNull())
scriptRequestParameterObject.exampleValue = scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ExampleValue"].asString();
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["IsRequiredParameter"].isNull())
scriptRequestParameterObject.isRequiredParameter = scriptDetailsNodeScriptRequestParametersScriptRequestParameter["IsRequiredParameter"].asString() == "true";
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterDataType"].isNull())
scriptRequestParameterObject.parameterDataType = std::stoi(scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterDataType"].asString());
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterDescription"].isNull())
scriptRequestParameterObject.parameterDescription = scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterDescription"].asString();
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterName"].isNull())
scriptRequestParameterObject.parameterName = scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterName"].asString();
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterOperator"].isNull())
scriptRequestParameterObject.parameterOperator = std::stoi(scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterOperator"].asString());
if(!scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterPosition"].isNull())
scriptRequestParameterObject.parameterPosition = std::stoi(scriptDetailsNodeScriptRequestParametersScriptRequestParameter["ParameterPosition"].asString());
data_.scriptDetails.scriptRequestParameters.push_back(scriptRequestParameterObject);
}
auto allScriptResponseParametersNode = scriptDetailsNode["ScriptResponseParameters"]["ScriptResponseParameter"];
for (auto scriptDetailsNodeScriptResponseParametersScriptResponseParameter : allScriptResponseParametersNode)
{
Data::ScriptDetails::ScriptResponseParameter scriptResponseParameterObject;
if(!scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ExampleValue"].isNull())
scriptResponseParameterObject.exampleValue = scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ExampleValue"].asString();
if(!scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ParameterDataType"].isNull())
scriptResponseParameterObject.parameterDataType = std::stoi(scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ParameterDataType"].asString());
if(!scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ParameterDescription"].isNull())
scriptResponseParameterObject.parameterDescription = scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ParameterDescription"].asString();
if(!scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ParameterName"].isNull())
scriptResponseParameterObject.parameterName = scriptDetailsNodeScriptResponseParametersScriptResponseParameter["ParameterName"].asString();
data_.scriptDetails.scriptResponseParameters.push_back(scriptResponseParameterObject);
}
auto scriptConnectionNode = scriptDetailsNode["ScriptConnection"];
if(!scriptConnectionNode["ConnectionId"].isNull())
data_.scriptDetails.scriptConnection.connectionId = std::stol(scriptConnectionNode["ConnectionId"].asString());
if(!scriptConnectionNode["TableName"].isNull())
data_.scriptDetails.scriptConnection.tableName = scriptConnectionNode["TableName"].asString();
auto wizardDetailsNode = dataNode["WizardDetails"];
if(!wizardDetailsNode["FailedResultSample"].isNull())
data_.wizardDetails.failedResultSample = wizardDetailsNode["FailedResultSample"].asString();
if(!wizardDetailsNode["IsPagedResponse"].isNull())
data_.wizardDetails.isPagedResponse = wizardDetailsNode["IsPagedResponse"].asString() == "true";
if(!wizardDetailsNode["SuccessfulResultSample"].isNull())
data_.wizardDetails.successfulResultSample = wizardDetailsNode["SuccessfulResultSample"].asString();
auto allWizardErrorCodesNode = wizardDetailsNode["WizardErrorCodes"]["WizardErrorCode"];
for (auto wizardDetailsNodeWizardErrorCodesWizardErrorCode : allWizardErrorCodesNode)
{
Data::WizardDetails::WizardErrorCode wizardErrorCodeObject;
if(!wizardDetailsNodeWizardErrorCodesWizardErrorCode["ErrorCode"].isNull())
wizardErrorCodeObject.errorCode = wizardDetailsNodeWizardErrorCodesWizardErrorCode["ErrorCode"].asString();
if(!wizardDetailsNodeWizardErrorCodesWizardErrorCode["ErrorMessage"].isNull())
wizardErrorCodeObject.errorMessage = wizardDetailsNodeWizardErrorCodesWizardErrorCode["ErrorMessage"].asString();
if(!wizardDetailsNodeWizardErrorCodesWizardErrorCode["ErrorSolution"].isNull())
wizardErrorCodeObject.errorSolution = wizardDetailsNodeWizardErrorCodesWizardErrorCode["ErrorSolution"].asString();
data_.wizardDetails.wizardErrorCodes.push_back(wizardErrorCodeObject);
}
auto allWizardRequestParametersNode = wizardDetailsNode["WizardRequestParameters"]["WizardRequestParameter"];
for (auto wizardDetailsNodeWizardRequestParametersWizardRequestParameter : allWizardRequestParametersNode)
{
Data::WizardDetails::WizardRequestParameter wizardRequestParameterObject;
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["DefaultValue"].isNull())
wizardRequestParameterObject.defaultValue = wizardDetailsNodeWizardRequestParametersWizardRequestParameter["DefaultValue"].asString();
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ExampleValue"].isNull())
wizardRequestParameterObject.exampleValue = wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ExampleValue"].asString();
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["IsRequiredParameter"].isNull())
wizardRequestParameterObject.isRequiredParameter = wizardDetailsNodeWizardRequestParametersWizardRequestParameter["IsRequiredParameter"].asString() == "true";
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterDataType"].isNull())
wizardRequestParameterObject.parameterDataType = std::stoi(wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterDataType"].asString());
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterDescription"].isNull())
wizardRequestParameterObject.parameterDescription = wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterDescription"].asString();
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterName"].isNull())
wizardRequestParameterObject.parameterName = wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterName"].asString();
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterOperator"].isNull())
wizardRequestParameterObject.parameterOperator = std::stoi(wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterOperator"].asString());
if(!wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterPosition"].isNull())
wizardRequestParameterObject.parameterPosition = std::stoi(wizardDetailsNodeWizardRequestParametersWizardRequestParameter["ParameterPosition"].asString());
data_.wizardDetails.wizardRequestParameters.push_back(wizardRequestParameterObject);
}
auto allWizardResponseParametersNode = wizardDetailsNode["WizardResponseParameters"]["WizardResponseParameter"];
for (auto wizardDetailsNodeWizardResponseParametersWizardResponseParameter : allWizardResponseParametersNode)
{
Data::WizardDetails::WizardResponseParameter wizardResponseParameterObject;
if(!wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ExampleValue"].isNull())
wizardResponseParameterObject.exampleValue = wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ExampleValue"].asString();
if(!wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ParameterDataType"].isNull())
wizardResponseParameterObject.parameterDataType = std::stoi(wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ParameterDataType"].asString());
if(!wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ParameterDescription"].isNull())
wizardResponseParameterObject.parameterDescription = wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ParameterDescription"].asString();
if(!wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ParameterName"].isNull())
wizardResponseParameterObject.parameterName = wizardDetailsNodeWizardResponseParametersWizardResponseParameter["ParameterName"].asString();
data_.wizardDetails.wizardResponseParameters.push_back(wizardResponseParameterObject);
}
auto wizardConnectionNode = wizardDetailsNode["WizardConnection"];
if(!wizardConnectionNode["ConnectionId"].isNull())
data_.wizardDetails.wizardConnection.connectionId = std::stol(wizardConnectionNode["ConnectionId"].asString());
if(!wizardConnectionNode["TableName"].isNull())
data_.wizardDetails.wizardConnection.tableName = wizardConnectionNode["TableName"].asString();
auto allProtocols = dataNode["Protocols"]["Protocol"];
for (auto value : allProtocols)
data_.protocols.push_back(value.asString());
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());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
int GetDataServicePublishedApiResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetDataServicePublishedApiResult::Data GetDataServicePublishedApiResult::getData()const
{
return data_;
}
std::string GetDataServicePublishedApiResult::getErrorCode()const
{
return errorCode_;
}
std::string GetDataServicePublishedApiResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetDataServicePublishedApiResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/GetDeploymentRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetDeploymentRequest;
GetDeploymentRequest::GetDeploymentRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetDeployment")
{
setMethod(HttpRequest::Method::Post);
}
GetDeploymentRequest::~GetDeploymentRequest()
{}
long GetDeploymentRequest::getDeploymentId()const
{
return deploymentId_;
}
void GetDeploymentRequest::setDeploymentId(long deploymentId)
{
deploymentId_ = deploymentId;
setBodyParameter("DeploymentId", std::to_string(deploymentId));
}
long GetDeploymentRequest::getProjectId()const
{
return projectId_;
}
void GetDeploymentRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
std::string GetDeploymentRequest::getProjectIdentifier()const
{
return projectIdentifier_;
}
void GetDeploymentRequest::setProjectIdentifier(const std::string& projectIdentifier)
{
projectIdentifier_ = projectIdentifier;
setBodyParameter("ProjectIdentifier", projectIdentifier);
}

View File

@@ -0,0 +1,97 @@
/*
* 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/GetDeploymentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetDeploymentResult::GetDeploymentResult() :
ServiceResult()
{}
GetDeploymentResult::GetDeploymentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDeploymentResult::~GetDeploymentResult()
{}
void GetDeploymentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto deploymentNode = dataNode["Deployment"];
if(!deploymentNode["Name"].isNull())
data_.deployment.name = deploymentNode["Name"].asString();
if(!deploymentNode["CreatorId"].isNull())
data_.deployment.creatorId = deploymentNode["CreatorId"].asString();
if(!deploymentNode["HandlerId"].isNull())
data_.deployment.handlerId = deploymentNode["HandlerId"].asString();
if(!deploymentNode["CreateTime"].isNull())
data_.deployment.createTime = std::stol(deploymentNode["CreateTime"].asString());
if(!deploymentNode["ExecuteTime"].isNull())
data_.deployment.executeTime = std::stol(deploymentNode["ExecuteTime"].asString());
if(!deploymentNode["Status"].isNull())
data_.deployment.status = std::stoi(deploymentNode["Status"].asString());
if(!deploymentNode["FromEnvironment"].isNull())
data_.deployment.fromEnvironment = std::stoi(deploymentNode["FromEnvironment"].asString());
if(!deploymentNode["ToEnvironment"].isNull())
data_.deployment.toEnvironment = std::stoi(deploymentNode["ToEnvironment"].asString());
if(!deploymentNode["ErrorMessage"].isNull())
data_.deployment.errorMessage = deploymentNode["ErrorMessage"].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 GetDeploymentResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetDeploymentResult::Data GetDeploymentResult::getData()const
{
return data_;
}
std::string GetDeploymentResult::getErrorCode()const
{
return errorCode_;
}
std::string GetDeploymentResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetDeploymentResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/GetFileRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetFileRequest;
GetFileRequest::GetFileRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetFile")
{
setMethod(HttpRequest::Method::Post);
}
GetFileRequest::~GetFileRequest()
{}
long GetFileRequest::getProjectId()const
{
return projectId_;
}
void GetFileRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
std::string GetFileRequest::getProjectIdentifier()const
{
return projectIdentifier_;
}
void GetFileRequest::setProjectIdentifier(const std::string& projectIdentifier)
{
projectIdentifier_ = projectIdentifier;
setBodyParameter("ProjectIdentifier", projectIdentifier);
}
long GetFileRequest::getFileId()const
{
return fileId_;
}
void GetFileRequest::setFileId(long fileId)
{
fileId_ = fileId;
setBodyParameter("FileId", std::to_string(fileId));
}

View File

@@ -0,0 +1,156 @@
/*
* 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/GetFileResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetFileResult::GetFileResult() :
ServiceResult()
{}
GetFileResult::GetFileResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetFileResult::~GetFileResult()
{}
void GetFileResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto fileNode = dataNode["File"];
if(!fileNode["ConnectionName"].isNull())
data_.file.connectionName = fileNode["ConnectionName"].asString();
if(!fileNode["ParentId"].isNull())
data_.file.parentId = std::stol(fileNode["ParentId"].asString());
if(!fileNode["IsMaxCompute"].isNull())
data_.file.isMaxCompute = fileNode["IsMaxCompute"].asString() == "true";
if(!fileNode["CreateTime"].isNull())
data_.file.createTime = std::stol(fileNode["CreateTime"].asString());
if(!fileNode["CreateUser"].isNull())
data_.file.createUser = fileNode["CreateUser"].asString();
if(!fileNode["BizId"].isNull())
data_.file.bizId = std::stol(fileNode["BizId"].asString());
if(!fileNode["FileFolderId"].isNull())
data_.file.fileFolderId = fileNode["FileFolderId"].asString();
if(!fileNode["FileName"].isNull())
data_.file.fileName = fileNode["FileName"].asString();
if(!fileNode["FileType"].isNull())
data_.file.fileType = std::stoi(fileNode["FileType"].asString());
if(!fileNode["UseType"].isNull())
data_.file.useType = std::stoi(fileNode["UseType"].asString());
if(!fileNode["FileDescription"].isNull())
data_.file.fileDescription = fileNode["FileDescription"].asString();
if(!fileNode["Content"].isNull())
data_.file.content = fileNode["Content"].asString();
if(!fileNode["NodeId"].isNull())
data_.file.nodeId = std::stol(fileNode["NodeId"].asString());
if(!fileNode["CurrentVersion"].isNull())
data_.file.currentVersion = std::stoi(fileNode["CurrentVersion"].asString());
if(!fileNode["Owner"].isNull())
data_.file.owner = fileNode["Owner"].asString();
if(!fileNode["LastEditUser"].isNull())
data_.file.lastEditUser = fileNode["LastEditUser"].asString();
if(!fileNode["LastEditTime"].isNull())
data_.file.lastEditTime = std::stol(fileNode["LastEditTime"].asString());
if(!fileNode["CommitStatus"].isNull())
data_.file.commitStatus = std::stoi(fileNode["CommitStatus"].asString());
auto nodeConfigurationNode = dataNode["NodeConfiguration"];
if(!nodeConfigurationNode["TaskRerunTime"].isNull())
data_.nodeConfiguration.taskRerunTime = std::stoi(nodeConfigurationNode["TaskRerunTime"].asString());
if(!nodeConfigurationNode["TaskRerunIntervalMillis"].isNull())
data_.nodeConfiguration.taskRerunIntervalMillis = std::stoi(nodeConfigurationNode["TaskRerunIntervalMillis"].asString());
if(!nodeConfigurationNode["RerunMode"].isNull())
data_.nodeConfiguration.rerunMode = nodeConfigurationNode["RerunMode"].asString();
if(!nodeConfigurationNode["Stop"].isNull())
data_.nodeConfiguration.stop = nodeConfigurationNode["Stop"].asString() == "true";
if(!nodeConfigurationNode["ParaValue"].isNull())
data_.nodeConfiguration.paraValue = nodeConfigurationNode["ParaValue"].asString();
if(!nodeConfigurationNode["StartEffectDate"].isNull())
data_.nodeConfiguration.startEffectDate = std::stol(nodeConfigurationNode["StartEffectDate"].asString());
if(!nodeConfigurationNode["EndEffectDate"].isNull())
data_.nodeConfiguration.endEffectDate = std::stol(nodeConfigurationNode["EndEffectDate"].asString());
if(!nodeConfigurationNode["CronExpress"].isNull())
data_.nodeConfiguration.cronExpress = nodeConfigurationNode["CronExpress"].asString();
if(!nodeConfigurationNode["CycleType"].isNull())
data_.nodeConfiguration.cycleType = nodeConfigurationNode["CycleType"].asString();
if(!nodeConfigurationNode["DependentType"].isNull())
data_.nodeConfiguration.dependentType = nodeConfigurationNode["DependentType"].asString();
if(!nodeConfigurationNode["DependentNodeIdList"].isNull())
data_.nodeConfiguration.dependentNodeIdList = nodeConfigurationNode["DependentNodeIdList"].asString();
auto allInputListNode = nodeConfigurationNode["InputList"]["NodeInputOutput"];
for (auto nodeConfigurationNodeInputListNodeInputOutput : allInputListNode)
{
Data::NodeConfiguration::NodeInputOutput nodeInputOutputObject;
if(!nodeConfigurationNodeInputListNodeInputOutput["Input"].isNull())
nodeInputOutputObject.input = nodeConfigurationNodeInputListNodeInputOutput["Input"].asString();
data_.nodeConfiguration.inputList.push_back(nodeInputOutputObject);
}
auto allOutputListNode = nodeConfigurationNode["OutputList"]["NodeInputOutput"];
for (auto nodeConfigurationNodeOutputListNodeInputOutput : allOutputListNode)
{
Data::NodeConfiguration::NodeInputOutput1 nodeInputOutput1Object;
if(!nodeConfigurationNodeOutputListNodeInputOutput["Output"].isNull())
nodeInputOutput1Object.output = nodeConfigurationNodeOutputListNodeInputOutput["Output"].asString();
if(!nodeConfigurationNodeOutputListNodeInputOutput["RefTableName"].isNull())
nodeInputOutput1Object.refTableName = nodeConfigurationNodeOutputListNodeInputOutput["RefTableName"].asString();
data_.nodeConfiguration.outputList.push_back(nodeInputOutput1Object);
}
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 GetFileResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetFileResult::Data GetFileResult::getData()const
{
return data_;
}
std::string GetFileResult::getErrorCode()const
{
return errorCode_;
}
std::string GetFileResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetFileResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/GetFileVersionRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetFileVersionRequest;
GetFileVersionRequest::GetFileVersionRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetFileVersion")
{
setMethod(HttpRequest::Method::Post);
}
GetFileVersionRequest::~GetFileVersionRequest()
{}
int GetFileVersionRequest::getFileVersion()const
{
return fileVersion_;
}
void GetFileVersionRequest::setFileVersion(int fileVersion)
{
fileVersion_ = fileVersion;
setBodyParameter("FileVersion", std::to_string(fileVersion));
}
long GetFileVersionRequest::getProjectId()const
{
return projectId_;
}
void GetFileVersionRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
std::string GetFileVersionRequest::getProjectIdentifier()const
{
return projectIdentifier_;
}
void GetFileVersionRequest::setProjectIdentifier(const std::string& projectIdentifier)
{
projectIdentifier_ = projectIdentifier;
setBodyParameter("ProjectIdentifier", projectIdentifier);
}
long GetFileVersionRequest::getFileId()const
{
return fileId_;
}
void GetFileVersionRequest::setFileId(long fileId)
{
fileId_ = fileId;
setBodyParameter("FileId", std::to_string(fileId));
}

View 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/GetFileVersionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetFileVersionResult::GetFileVersionResult() :
ServiceResult()
{}
GetFileVersionResult::GetFileVersionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetFileVersionResult::~GetFileVersionResult()
{}
void GetFileVersionResult::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["FileVersion"].isNull())
data_.fileVersion = std::stoi(dataNode["FileVersion"].asString());
if(!dataNode["FileContent"].isNull())
data_.fileContent = dataNode["FileContent"].asString();
if(!dataNode["FilePropertyContent"].isNull())
data_.filePropertyContent = dataNode["FilePropertyContent"].asString();
if(!dataNode["NodeContent"].isNull())
data_.nodeContent = dataNode["NodeContent"].asString();
if(!dataNode["Comment"].isNull())
data_.comment = dataNode["Comment"].asString();
if(!dataNode["NodeId"].isNull())
data_.nodeId = std::stol(dataNode["NodeId"].asString());
if(!dataNode["IsCurrentProd"].isNull())
data_.isCurrentProd = dataNode["IsCurrentProd"].asString() == "true";
if(!dataNode["ChangeType"].isNull())
data_.changeType = dataNode["ChangeType"].asString();
if(!dataNode["Status"].isNull())
data_.status = dataNode["Status"].asString();
if(!dataNode["FileName"].isNull())
data_.fileName = dataNode["FileName"].asString();
if(!dataNode["CommitUser"].isNull())
data_.commitUser = dataNode["CommitUser"].asString();
if(!dataNode["CommitTime"].isNull())
data_.commitTime = std::stol(dataNode["CommitTime"].asString());
if(!dataNode["UseType"].isNull())
data_.useType = dataNode["UseType"].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 GetFileVersionResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetFileVersionResult::Data GetFileVersionResult::getData()const
{
return data_;
}
std::string GetFileVersionResult::getErrorCode()const
{
return errorCode_;
}
std::string GetFileVersionResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetFileVersionResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/GetFolderRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetFolderRequest;
GetFolderRequest::GetFolderRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetFolder")
{
setMethod(HttpRequest::Method::Post);
}
GetFolderRequest::~GetFolderRequest()
{}
std::string GetFolderRequest::getFolderPath()const
{
return folderPath_;
}
void GetFolderRequest::setFolderPath(const std::string& folderPath)
{
folderPath_ = folderPath;
setBodyParameter("FolderPath", folderPath);
}
long GetFolderRequest::getProjectId()const
{
return projectId_;
}
void GetFolderRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
std::string GetFolderRequest::getProjectIdentifier()const
{
return projectIdentifier_;
}
void GetFolderRequest::setProjectIdentifier(const std::string& projectIdentifier)
{
projectIdentifier_ = projectIdentifier;
setBodyParameter("ProjectIdentifier", projectIdentifier);
}
std::string GetFolderRequest::getFolderId()const
{
return folderId_;
}
void GetFolderRequest::setFolderId(const std::string& folderId)
{
folderId_ = folderId;
setBodyParameter("FolderId", folderId);
}

View File

@@ -0,0 +1,82 @@
/*
* 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/GetFolderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetFolderResult::GetFolderResult() :
ServiceResult()
{}
GetFolderResult::GetFolderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetFolderResult::~GetFolderResult()
{}
void GetFolderResult::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["FolderId"].isNull())
data_.folderId = dataNode["FolderId"].asString();
if(!dataNode["FolderPath"].isNull())
data_.folderPath = dataNode["FolderPath"].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 GetFolderResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetFolderResult::Data GetFolderResult::getData()const
{
return data_;
}
std::string GetFolderResult::getErrorCode()const
{
return errorCode_;
}
std::string GetFolderResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetFolderResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/GetInstanceLogRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetInstanceLogRequest;
GetInstanceLogRequest::GetInstanceLogRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetInstanceLog")
{
setMethod(HttpRequest::Method::Post);
}
GetInstanceLogRequest::~GetInstanceLogRequest()
{}
std::string GetInstanceLogRequest::getProjectEnv()const
{
return projectEnv_;
}
void GetInstanceLogRequest::setProjectEnv(const std::string& projectEnv)
{
projectEnv_ = projectEnv;
setBodyParameter("ProjectEnv", projectEnv);
}
long GetInstanceLogRequest::getInstanceId()const
{
return instanceId_;
}
void GetInstanceLogRequest::setInstanceId(long instanceId)
{
instanceId_ = instanceId;
setBodyParameter("InstanceId", std::to_string(instanceId));
}

View File

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

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/GetInstanceRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetInstanceRequest;
GetInstanceRequest::GetInstanceRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetInstance")
{
setMethod(HttpRequest::Method::Post);
}
GetInstanceRequest::~GetInstanceRequest()
{}
std::string GetInstanceRequest::getProjectEnv()const
{
return projectEnv_;
}
void GetInstanceRequest::setProjectEnv(const std::string& projectEnv)
{
projectEnv_ = projectEnv;
setBodyParameter("ProjectEnv", projectEnv);
}
long GetInstanceRequest::getInstanceId()const
{
return instanceId_;
}
void GetInstanceRequest::setInstanceId(long instanceId)
{
instanceId_ = instanceId;
setBodyParameter("InstanceId", std::to_string(instanceId));
}

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/GetInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetInstanceResult::GetInstanceResult() :
ServiceResult()
{}
GetInstanceResult::GetInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetInstanceResult::~GetInstanceResult()
{}
void GetInstanceResult::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["NodeId"].isNull())
data_.nodeId = std::stol(dataNode["NodeId"].asString());
if(!dataNode["InstanceId"].isNull())
data_.instanceId = std::stol(dataNode["InstanceId"].asString());
if(!dataNode["DagId"].isNull())
data_.dagId = std::stol(dataNode["DagId"].asString());
if(!dataNode["DagType"].isNull())
data_.dagType = dataNode["DagType"].asString();
if(!dataNode["Status"].isNull())
data_.status = dataNode["Status"].asString();
if(!dataNode["Bizdate"].isNull())
data_.bizdate = std::stol(dataNode["Bizdate"].asString());
if(!dataNode["ParamValues"].isNull())
data_.paramValues = dataNode["ParamValues"].asString();
if(!dataNode["CycTime"].isNull())
data_.cycTime = std::stol(dataNode["CycTime"].asString());
if(!dataNode["FinishTime"].isNull())
data_.finishTime = std::stol(dataNode["FinishTime"].asString());
if(!dataNode["BeginWaitTimeTime"].isNull())
data_.beginWaitTimeTime = std::stol(dataNode["BeginWaitTimeTime"].asString());
if(!dataNode["BeginWaitResTime"].isNull())
data_.beginWaitResTime = std::stol(dataNode["BeginWaitResTime"].asString());
if(!dataNode["BeginRunningTime"].isNull())
data_.beginRunningTime = std::stol(dataNode["BeginRunningTime"].asString());
if(!dataNode["CreateTime"].isNull())
data_.createTime = std::stol(dataNode["CreateTime"].asString());
if(!dataNode["ModifyTime"].isNull())
data_.modifyTime = std::stol(dataNode["ModifyTime"].asString());
if(!dataNode["NodeName"].isNull())
data_.nodeName = dataNode["NodeName"].asString();
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());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
int GetInstanceResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetInstanceResult::Data GetInstanceResult::getData()const
{
return data_;
}
std::string GetInstanceResult::getErrorCode()const
{
return errorCode_;
}
std::string GetInstanceResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetInstanceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/GetMetaCategoryRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetMetaCategoryRequest;
GetMetaCategoryRequest::GetMetaCategoryRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetMetaCategory")
{
setMethod(HttpRequest::Method::Post);
}
GetMetaCategoryRequest::~GetMetaCategoryRequest()
{}
long GetMetaCategoryRequest::getParentCategoryId()const
{
return parentCategoryId_;
}
void GetMetaCategoryRequest::setParentCategoryId(long parentCategoryId)
{
parentCategoryId_ = parentCategoryId;
setParameter("ParentCategoryId", std::to_string(parentCategoryId));
}
int GetMetaCategoryRequest::getPageSize()const
{
return pageSize_;
}
void GetMetaCategoryRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int GetMetaCategoryRequest::getPageNum()const
{
return pageNum_;
}
void GetMetaCategoryRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/GetMetaCategoryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetMetaCategoryResult::GetMetaCategoryResult() :
ServiceResult()
{}
GetMetaCategoryResult::GetMetaCategoryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMetaCategoryResult::~GetMetaCategoryResult()
{}
void GetMetaCategoryResult::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["PageNum"].isNull())
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
auto allDataEntityListNode = dataNode["DataEntityList"]["DataEntityListItem"];
for (auto dataNodeDataEntityListDataEntityListItem : allDataEntityListNode)
{
Data::DataEntityListItem dataEntityListItemObject;
if(!dataNodeDataEntityListDataEntityListItem["CategoryId"].isNull())
dataEntityListItemObject.categoryId = std::stol(dataNodeDataEntityListDataEntityListItem["CategoryId"].asString());
if(!dataNodeDataEntityListDataEntityListItem["Name"].isNull())
dataEntityListItemObject.name = dataNodeDataEntityListDataEntityListItem["Name"].asString();
if(!dataNodeDataEntityListDataEntityListItem["CreateTime"].isNull())
dataEntityListItemObject.createTime = std::stol(dataNodeDataEntityListDataEntityListItem["CreateTime"].asString());
if(!dataNodeDataEntityListDataEntityListItem["ModifiedTime"].isNull())
dataEntityListItemObject.modifiedTime = std::stol(dataNodeDataEntityListDataEntityListItem["ModifiedTime"].asString());
if(!dataNodeDataEntityListDataEntityListItem["Comment"].isNull())
dataEntityListItemObject.comment = dataNodeDataEntityListDataEntityListItem["Comment"].asString();
if(!dataNodeDataEntityListDataEntityListItem["OwnerId"].isNull())
dataEntityListItemObject.ownerId = dataNodeDataEntityListDataEntityListItem["OwnerId"].asString();
if(!dataNodeDataEntityListDataEntityListItem["LastOperatorId"].isNull())
dataEntityListItemObject.lastOperatorId = dataNodeDataEntityListDataEntityListItem["LastOperatorId"].asString();
if(!dataNodeDataEntityListDataEntityListItem["ParentCategoryId"].isNull())
dataEntityListItemObject.parentCategoryId = std::stol(dataNodeDataEntityListDataEntityListItem["ParentCategoryId"].asString());
if(!dataNodeDataEntityListDataEntityListItem["Depth"].isNull())
dataEntityListItemObject.depth = std::stoi(dataNodeDataEntityListDataEntityListItem["Depth"].asString());
data_.dataEntityList.push_back(dataEntityListItemObject);
}
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());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
int GetMetaCategoryResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetMetaCategoryResult::Data GetMetaCategoryResult::getData()const
{
return data_;
}
std::string GetMetaCategoryResult::getErrorCode()const
{
return errorCode_;
}
std::string GetMetaCategoryResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetMetaCategoryResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/GetMetaColumnLineageRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetMetaColumnLineageRequest;
GetMetaColumnLineageRequest::GetMetaColumnLineageRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetMetaColumnLineage")
{
setMethod(HttpRequest::Method::Post);
}
GetMetaColumnLineageRequest::~GetMetaColumnLineageRequest()
{}
std::string GetMetaColumnLineageRequest::getColumnGuid()const
{
return columnGuid_;
}
void GetMetaColumnLineageRequest::setColumnGuid(const std::string& columnGuid)
{
columnGuid_ = columnGuid;
setParameter("ColumnGuid", columnGuid);
}
int GetMetaColumnLineageRequest::getPageSize()const
{
return pageSize_;
}
void GetMetaColumnLineageRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int GetMetaColumnLineageRequest::getPageNum()const
{
return pageNum_;
}
void GetMetaColumnLineageRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}
std::string GetMetaColumnLineageRequest::getDirection()const
{
return direction_;
}
void GetMetaColumnLineageRequest::setDirection(const std::string& direction)
{
direction_ = direction;
setParameter("Direction", direction);
}

View File

@@ -0,0 +1,94 @@
/*
* 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/GetMetaColumnLineageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetMetaColumnLineageResult::GetMetaColumnLineageResult() :
ServiceResult()
{}
GetMetaColumnLineageResult::GetMetaColumnLineageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMetaColumnLineageResult::~GetMetaColumnLineageResult()
{}
void GetMetaColumnLineageResult::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["TotalCount"].isNull())
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
if(!dataNode["PageNum"].isNull())
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
auto allDataEntityListNode = dataNode["DataEntityList"]["DataEntityListItem"];
for (auto dataNodeDataEntityListDataEntityListItem : allDataEntityListNode)
{
Data::DataEntityListItem dataEntityListItemObject;
if(!dataNodeDataEntityListDataEntityListItem["ColumnName"].isNull())
dataEntityListItemObject.columnName = dataNodeDataEntityListDataEntityListItem["ColumnName"].asString();
if(!dataNodeDataEntityListDataEntityListItem["ColumnGuid"].isNull())
dataEntityListItemObject.columnGuid = dataNodeDataEntityListDataEntityListItem["ColumnGuid"].asString();
data_.dataEntityList.push_back(dataEntityListItemObject);
}
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());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
int GetMetaColumnLineageResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetMetaColumnLineageResult::Data GetMetaColumnLineageResult::getData()const
{
return data_;
}
std::string GetMetaColumnLineageResult::getErrorCode()const
{
return errorCode_;
}
std::string GetMetaColumnLineageResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetMetaColumnLineageResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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/GetMetaDBInfoRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetMetaDBInfoRequest;
GetMetaDBInfoRequest::GetMetaDBInfoRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetMetaDBInfo")
{
setMethod(HttpRequest::Method::Get);
}
GetMetaDBInfoRequest::~GetMetaDBInfoRequest()
{}
std::string GetMetaDBInfoRequest::getAppGuid()const
{
return appGuid_;
}
void GetMetaDBInfoRequest::setAppGuid(const std::string& appGuid)
{
appGuid_ = appGuid;
setParameter("AppGuid", appGuid);
}

View File

@@ -0,0 +1,100 @@
/*
* 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/GetMetaDBInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetMetaDBInfoResult::GetMetaDBInfoResult() :
ServiceResult()
{}
GetMetaDBInfoResult::GetMetaDBInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMetaDBInfoResult::~GetMetaDBInfoResult()
{}
void GetMetaDBInfoResult::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["AppGuid"].isNull())
data_.appGuid = dataNode["AppGuid"].asString();
if(!dataNode["TenantId"].isNull())
data_.tenantId = std::stol(dataNode["TenantId"].asString());
if(!dataNode["Endpoint"].isNull())
data_.endpoint = dataNode["Endpoint"].asString();
if(!dataNode["ProjectId"].isNull())
data_.projectId = std::stol(dataNode["ProjectId"].asString());
if(!dataNode["EnvType"].isNull())
data_.envType = std::stoi(dataNode["EnvType"].asString());
if(!dataNode["ProjectName"].isNull())
data_.projectName = dataNode["ProjectName"].asString();
if(!dataNode["ProjectNameCn"].isNull())
data_.projectNameCn = dataNode["ProjectNameCn"].asString();
if(!dataNode["CreateTime"].isNull())
data_.createTime = std::stol(dataNode["CreateTime"].asString());
if(!dataNode["ModifyTime"].isNull())
data_.modifyTime = std::stol(dataNode["ModifyTime"].asString());
if(!dataNode["OwnerId"].isNull())
data_.ownerId = dataNode["OwnerId"].asString();
if(!dataNode["OwnerName"].isNull())
data_.ownerName = dataNode["OwnerName"].asString();
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());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
int GetMetaDBInfoResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetMetaDBInfoResult::Data GetMetaDBInfoResult::getData()const
{
return data_;
}
std::string GetMetaDBInfoResult::getErrorCode()const
{
return errorCode_;
}
std::string GetMetaDBInfoResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetMetaDBInfoResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/GetMetaDBTableListRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetMetaDBTableListRequest;
GetMetaDBTableListRequest::GetMetaDBTableListRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetMetaDBTableList")
{
setMethod(HttpRequest::Method::Post);
}
GetMetaDBTableListRequest::~GetMetaDBTableListRequest()
{}
int GetMetaDBTableListRequest::getPageSize()const
{
return pageSize_;
}
void GetMetaDBTableListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string GetMetaDBTableListRequest::getAppGuid()const
{
return appGuid_;
}
void GetMetaDBTableListRequest::setAppGuid(const std::string& appGuid)
{
appGuid_ = appGuid;
setParameter("AppGuid", appGuid);
}
int GetMetaDBTableListRequest::getPageNumber()const
{
return pageNumber_;
}
void GetMetaDBTableListRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}

View File

@@ -0,0 +1,94 @@
/*
* 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/GetMetaDBTableListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetMetaDBTableListResult::GetMetaDBTableListResult() :
ServiceResult()
{}
GetMetaDBTableListResult::GetMetaDBTableListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMetaDBTableListResult::~GetMetaDBTableListResult()
{}
void GetMetaDBTableListResult::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["PageNumber"].isNull())
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
auto allTableEntityListNode = dataNode["TableEntityList"]["TableEntityListItem"];
for (auto dataNodeTableEntityListTableEntityListItem : allTableEntityListNode)
{
Data::TableEntityListItem tableEntityListItemObject;
if(!dataNodeTableEntityListTableEntityListItem["TableName"].isNull())
tableEntityListItemObject.tableName = dataNodeTableEntityListTableEntityListItem["TableName"].asString();
if(!dataNodeTableEntityListTableEntityListItem["TableGuid"].isNull())
tableEntityListItemObject.tableGuid = dataNodeTableEntityListTableEntityListItem["TableGuid"].asString();
data_.tableEntityList.push_back(tableEntityListItemObject);
}
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());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
int GetMetaDBTableListResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetMetaDBTableListResult::Data GetMetaDBTableListResult::getData()const
{
return data_;
}
std::string GetMetaDBTableListResult::getErrorCode()const
{
return errorCode_;
}
std::string GetMetaDBTableListResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetMetaDBTableListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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/GetMetaTableBasicInfoRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetMetaTableBasicInfoRequest;
GetMetaTableBasicInfoRequest::GetMetaTableBasicInfoRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetMetaTableBasicInfo")
{
setMethod(HttpRequest::Method::Get);
}
GetMetaTableBasicInfoRequest::~GetMetaTableBasicInfoRequest()
{}
std::string GetMetaTableBasicInfoRequest::getTableGuid()const
{
return tableGuid_;
}
void GetMetaTableBasicInfoRequest::setTableGuid(const std::string& tableGuid)
{
tableGuid_ = tableGuid;
setParameter("TableGuid", tableGuid);
}

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/GetMetaTableBasicInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetMetaTableBasicInfoResult::GetMetaTableBasicInfoResult() :
ServiceResult()
{}
GetMetaTableBasicInfoResult::GetMetaTableBasicInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMetaTableBasicInfoResult::~GetMetaTableBasicInfoResult()
{}
void GetMetaTableBasicInfoResult::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["TableName"].isNull())
data_.tableName = dataNode["TableName"].asString();
if(!dataNode["TableGuid"].isNull())
data_.tableGuid = dataNode["TableGuid"].asString();
if(!dataNode["OwnerId"].isNull())
data_.ownerId = dataNode["OwnerId"].asString();
if(!dataNode["TenantId"].isNull())
data_.tenantId = std::stol(dataNode["TenantId"].asString());
if(!dataNode["ProjectId"].isNull())
data_.projectId = std::stol(dataNode["ProjectId"].asString());
if(!dataNode["CreateTime"].isNull())
data_.createTime = std::stol(dataNode["CreateTime"].asString());
if(!dataNode["LastModifyTime"].isNull())
data_.lastModifyTime = std::stol(dataNode["LastModifyTime"].asString());
if(!dataNode["LifeCycle"].isNull())
data_.lifeCycle = std::stoi(dataNode["LifeCycle"].asString());
if(!dataNode["IsVisible"].isNull())
data_.isVisible = std::stoi(dataNode["IsVisible"].asString());
if(!dataNode["LastDdlTime"].isNull())
data_.lastDdlTime = std::stol(dataNode["LastDdlTime"].asString());
if(!dataNode["LastAccessTime"].isNull())
data_.lastAccessTime = std::stol(dataNode["LastAccessTime"].asString());
if(!dataNode["EnvType"].isNull())
data_.envType = std::stoi(dataNode["EnvType"].asString());
if(!dataNode["DataSize"].isNull())
data_.dataSize = std::stol(dataNode["DataSize"].asString());
if(!dataNode["Comment"].isNull())
data_.comment = dataNode["Comment"].asString();
if(!dataNode["ProjectName"].isNull())
data_.projectName = dataNode["ProjectName"].asString();
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());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
int GetMetaTableBasicInfoResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetMetaTableBasicInfoResult::Data GetMetaTableBasicInfoResult::getData()const
{
return data_;
}
std::string GetMetaTableBasicInfoResult::getErrorCode()const
{
return errorCode_;
}
std::string GetMetaTableBasicInfoResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetMetaTableBasicInfoResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/GetMetaTableChangeLogRequest.h>
using AlibabaCloud::Dataworks_public::Model::GetMetaTableChangeLogRequest;
GetMetaTableChangeLogRequest::GetMetaTableChangeLogRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "GetMetaTableChangeLog")
{
setMethod(HttpRequest::Method::Post);
}
GetMetaTableChangeLogRequest::~GetMetaTableChangeLogRequest()
{}
std::string GetMetaTableChangeLogRequest::getStartDate()const
{
return startDate_;
}
void GetMetaTableChangeLogRequest::setStartDate(const std::string& startDate)
{
startDate_ = startDate;
setBodyParameter("StartDate", startDate);
}
int GetMetaTableChangeLogRequest::getPageNumber()const
{
return pageNumber_;
}
void GetMetaTableChangeLogRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
std::string GetMetaTableChangeLogRequest::getEndDate()const
{
return endDate_;
}
void GetMetaTableChangeLogRequest::setEndDate(const std::string& endDate)
{
endDate_ = endDate;
setBodyParameter("EndDate", endDate);
}
std::string GetMetaTableChangeLogRequest::getTableGuid()const
{
return tableGuid_;
}
void GetMetaTableChangeLogRequest::setTableGuid(const std::string& tableGuid)
{
tableGuid_ = tableGuid;
setBodyParameter("TableGuid", tableGuid);
}
std::string GetMetaTableChangeLogRequest::getChangeType()const
{
return changeType_;
}
void GetMetaTableChangeLogRequest::setChangeType(const std::string& changeType)
{
changeType_ = changeType;
setBodyParameter("ChangeType", changeType);
}
int GetMetaTableChangeLogRequest::getPageSize()const
{
return pageSize_;
}
void GetMetaTableChangeLogRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string GetMetaTableChangeLogRequest::getObjectType()const
{
return objectType_;
}
void GetMetaTableChangeLogRequest::setObjectType(const std::string& objectType)
{
objectType_ = objectType;
setBodyParameter("ObjectType", objectType);
}

View File

@@ -0,0 +1,102 @@
/*
* 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/GetMetaTableChangeLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
GetMetaTableChangeLogResult::GetMetaTableChangeLogResult() :
ServiceResult()
{}
GetMetaTableChangeLogResult::GetMetaTableChangeLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMetaTableChangeLogResult::~GetMetaTableChangeLogResult()
{}
void GetMetaTableChangeLogResult::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["PageNumber"].isNull())
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
auto allDataEntityListNode = dataNode["DataEntityList"]["DataEntityListItem"];
for (auto dataNodeDataEntityListDataEntityListItem : allDataEntityListNode)
{
Data::DataEntityListItem dataEntityListItemObject;
if(!dataNodeDataEntityListDataEntityListItem["CreateTime"].isNull())
dataEntityListItemObject.createTime = std::stol(dataNodeDataEntityListDataEntityListItem["CreateTime"].asString());
if(!dataNodeDataEntityListDataEntityListItem["ModifiedTime"].isNull())
dataEntityListItemObject.modifiedTime = std::stol(dataNodeDataEntityListDataEntityListItem["ModifiedTime"].asString());
if(!dataNodeDataEntityListDataEntityListItem["ChangeType"].isNull())
dataEntityListItemObject.changeType = dataNodeDataEntityListDataEntityListItem["ChangeType"].asString();
if(!dataNodeDataEntityListDataEntityListItem["Operator"].isNull())
dataEntityListItemObject._operator = dataNodeDataEntityListDataEntityListItem["Operator"].asString();
if(!dataNodeDataEntityListDataEntityListItem["ObjectType"].isNull())
dataEntityListItemObject.objectType = dataNodeDataEntityListDataEntityListItem["ObjectType"].asString();
if(!dataNodeDataEntityListDataEntityListItem["ChangeContent"].isNull())
dataEntityListItemObject.changeContent = dataNodeDataEntityListDataEntityListItem["ChangeContent"].asString();
data_.dataEntityList.push_back(dataEntityListItemObject);
}
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());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
int GetMetaTableChangeLogResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetMetaTableChangeLogResult::Data GetMetaTableChangeLogResult::getData()const
{
return data_;
}
std::string GetMetaTableChangeLogResult::getErrorCode()const
{
return errorCode_;
}
std::string GetMetaTableChangeLogResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetMetaTableChangeLogResult::getSuccess()const
{
return success_;
}

Some files were not shown because too many files have changed in this diff Show More