Generated 2020-05-18 for dataworks-public.

This commit is contained in:
sdk-team
2021-03-08 03:22:15 +00:00
parent 40170293c2
commit 65f76cc2c8
674 changed files with 54986 additions and 2304 deletions

File diff suppressed because it is too large Load Diff

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,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/AddProjectMemberToRoleRequest.h>
using AlibabaCloud::Dataworks_public::Model::AddProjectMemberToRoleRequest;
AddProjectMemberToRoleRequest::AddProjectMemberToRoleRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "AddProjectMemberToRole")
{
setMethod(HttpRequest::Method::Post);
}
AddProjectMemberToRoleRequest::~AddProjectMemberToRoleRequest()
{}
std::string AddProjectMemberToRoleRequest::getRoleCode()const
{
return roleCode_;
}
void AddProjectMemberToRoleRequest::setRoleCode(const std::string& roleCode)
{
roleCode_ = roleCode;
setParameter("RoleCode", roleCode);
}
std::string AddProjectMemberToRoleRequest::getClientToken()const
{
return clientToken_;
}
void AddProjectMemberToRoleRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
long AddProjectMemberToRoleRequest::getProjectId()const
{
return projectId_;
}
void AddProjectMemberToRoleRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}
std::string AddProjectMemberToRoleRequest::getUserId()const
{
return userId_;
}
void AddProjectMemberToRoleRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setParameter("UserId", userId);
}

View File

@@ -0,0 +1,44 @@
/*
* 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/AddProjectMemberToRoleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
AddProjectMemberToRoleResult::AddProjectMemberToRoleResult() :
ServiceResult()
{}
AddProjectMemberToRoleResult::AddProjectMemberToRoleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddProjectMemberToRoleResult::~AddProjectMemberToRoleResult()
{}
void AddProjectMemberToRoleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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::getDataSourceType()const
{
return dataSourceType_;
}
void CheckMetaPartitionRequest::setDataSourceType(const std::string& dataSourceType)
{
dataSourceType_ = dataSourceType;
setParameter("DataSourceType", dataSourceType);
}
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);
}
std::string CheckMetaPartitionRequest::getDatabaseName()const
{
return databaseName_;
}
void CheckMetaPartitionRequest::setDatabaseName(const std::string& databaseName)
{
databaseName_ = databaseName;
setParameter("DatabaseName", databaseName);
}
std::string CheckMetaPartitionRequest::getClusterId()const
{
return clusterId_;
}
void CheckMetaPartitionRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string CheckMetaPartitionRequest::getTableName()const
{
return tableName_;
}
void CheckMetaPartitionRequest::setTableName(const std::string& tableName)
{
tableName_ = tableName;
setParameter("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/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,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/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::getDataSourceType()const
{
return dataSourceType_;
}
void CheckMetaTableRequest::setDataSourceType(const std::string& dataSourceType)
{
dataSourceType_ = dataSourceType;
setParameter("DataSourceType", dataSourceType);
}
std::string CheckMetaTableRequest::getTableGuid()const
{
return tableGuid_;
}
void CheckMetaTableRequest::setTableGuid(const std::string& tableGuid)
{
tableGuid_ = tableGuid;
setParameter("TableGuid", tableGuid);
}
std::string CheckMetaTableRequest::getDatabaseName()const
{
return databaseName_;
}
void CheckMetaTableRequest::setDatabaseName(const std::string& databaseName)
{
databaseName_ = databaseName;
setParameter("DatabaseName", databaseName);
}
std::string CheckMetaTableRequest::getClusterId()const
{
return clusterId_;
}
void CheckMetaTableRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string CheckMetaTableRequest::getTableName()const
{
return tableName_;
}
void CheckMetaTableRequest::setTableName(const std::string& tableName)
{
tableName_ = tableName;
setParameter("TableName", tableName);
}

View File

@@ -14,38 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/OpenDataWorksStandardServiceResult.h>
#include <alibabacloud/dataworks-public/model/CheckMetaTableResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
OpenDataWorksStandardServiceResult::OpenDataWorksStandardServiceResult() :
CheckMetaTableResult::CheckMetaTableResult() :
ServiceResult()
{}
OpenDataWorksStandardServiceResult::OpenDataWorksStandardServiceResult(const std::string &payload) :
CheckMetaTableResult::CheckMetaTableResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
OpenDataWorksStandardServiceResult::~OpenDataWorksStandardServiceResult()
CheckMetaTableResult::~CheckMetaTableResult()
{}
void OpenDataWorksStandardServiceResult::parse(const std::string &payload)
void CheckMetaTableResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
std::string OpenDataWorksStandardServiceResult::getOrderId()const
bool CheckMetaTableResult::getData()const
{
return orderId_;
return data_;
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/CreateBusinessRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateBusinessRequest;
CreateBusinessRequest::CreateBusinessRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateBusiness")
{
setMethod(HttpRequest::Method::Post);
}
CreateBusinessRequest::~CreateBusinessRequest()
{}
std::string CreateBusinessRequest::getOwner()const
{
return owner_;
}
void CreateBusinessRequest::setOwner(const std::string& owner)
{
owner_ = owner;
setBodyParameter("Owner", owner);
}
std::string CreateBusinessRequest::getBusinessName()const
{
return businessName_;
}
void CreateBusinessRequest::setBusinessName(const std::string& businessName)
{
businessName_ = businessName;
setBodyParameter("BusinessName", businessName);
}
std::string CreateBusinessRequest::getDescription()const
{
return description_;
}
void CreateBusinessRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
}
long CreateBusinessRequest::getProjectId()const
{
return projectId_;
}
void CreateBusinessRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
std::string CreateBusinessRequest::getUseType()const
{
return useType_;
}
void CreateBusinessRequest::setUseType(const std::string& useType)
{
useType_ = useType;
setBodyParameter("UseType", useType);
}
std::string CreateBusinessRequest::getProjectIdentifier()const
{
return projectIdentifier_;
}
void CreateBusinessRequest::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/CreateBusinessResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
CreateBusinessResult::CreateBusinessResult() :
ServiceResult()
{}
CreateBusinessResult::CreateBusinessResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateBusinessResult::~CreateBusinessResult()
{}
void CreateBusinessResult::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["BusinessId"].isNull())
businessId_ = std::stol(value["BusinessId"].asString());
}
int CreateBusinessResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateBusinessResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateBusinessResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateBusinessResult::getSuccess()const
{
return success_;
}
long CreateBusinessResult::getBusinessId()const
{
return businessId_;
}

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,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/CreateDagComplementRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateDagComplementRequest;
CreateDagComplementRequest::CreateDagComplementRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateDagComplement")
{
setMethod(HttpRequest::Method::Post);
}
CreateDagComplementRequest::~CreateDagComplementRequest()
{}
std::string CreateDagComplementRequest::getProjectEnv()const
{
return projectEnv_;
}
void CreateDagComplementRequest::setProjectEnv(const std::string& projectEnv)
{
projectEnv_ = projectEnv;
setBodyParameter("ProjectEnv", projectEnv);
}
std::string CreateDagComplementRequest::getStartBizDate()const
{
return startBizDate_;
}
void CreateDagComplementRequest::setStartBizDate(const std::string& startBizDate)
{
startBizDate_ = startBizDate;
setBodyParameter("StartBizDate", startBizDate);
}
bool CreateDagComplementRequest::getParallelism()const
{
return parallelism_;
}
void CreateDagComplementRequest::setParallelism(bool parallelism)
{
parallelism_ = parallelism;
setBodyParameter("Parallelism", parallelism ? "true" : "false");
}
long CreateDagComplementRequest::getRootNodeId()const
{
return rootNodeId_;
}
void CreateDagComplementRequest::setRootNodeId(long rootNodeId)
{
rootNodeId_ = rootNodeId;
setBodyParameter("RootNodeId", std::to_string(rootNodeId));
}
std::string CreateDagComplementRequest::getBizBeginTime()const
{
return bizBeginTime_;
}
void CreateDagComplementRequest::setBizBeginTime(const std::string& bizBeginTime)
{
bizBeginTime_ = bizBeginTime;
setBodyParameter("BizBeginTime", bizBeginTime);
}
std::string CreateDagComplementRequest::getEndBizDate()const
{
return endBizDate_;
}
void CreateDagComplementRequest::setEndBizDate(const std::string& endBizDate)
{
endBizDate_ = endBizDate;
setBodyParameter("EndBizDate", endBizDate);
}
std::string CreateDagComplementRequest::getIncludeNodeIds()const
{
return includeNodeIds_;
}
void CreateDagComplementRequest::setIncludeNodeIds(const std::string& includeNodeIds)
{
includeNodeIds_ = includeNodeIds;
setBodyParameter("IncludeNodeIds", includeNodeIds);
}
std::string CreateDagComplementRequest::getBizEndTime()const
{
return bizEndTime_;
}
void CreateDagComplementRequest::setBizEndTime(const std::string& bizEndTime)
{
bizEndTime_ = bizEndTime;
setBodyParameter("BizEndTime", bizEndTime);
}
std::string CreateDagComplementRequest::getName()const
{
return name_;
}
void CreateDagComplementRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string CreateDagComplementRequest::getExcludeNodeIds()const
{
return excludeNodeIds_;
}
void CreateDagComplementRequest::setExcludeNodeIds(const std::string& excludeNodeIds)
{
excludeNodeIds_ = excludeNodeIds;
setBodyParameter("ExcludeNodeIds", excludeNodeIds);
}
std::string CreateDagComplementRequest::getNodeParams()const
{
return nodeParams_;
}
void CreateDagComplementRequest::setNodeParams(const std::string& nodeParams)
{
nodeParams_ = nodeParams;
setBodyParameter("NodeParams", nodeParams);
}

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/CreateDagComplementResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
CreateDagComplementResult::CreateDagComplementResult() :
ServiceResult()
{}
CreateDagComplementResult::CreateDagComplementResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDagComplementResult::~CreateDagComplementResult()
{}
void CreateDagComplementResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["dagId"];
for (const auto &item : allData)
data_.push_back(item.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 CreateDagComplementResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<std::string> CreateDagComplementResult::getData()const
{
return data_;
}
std::string CreateDagComplementResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateDagComplementResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateDagComplementResult::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/CreateDagTestRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateDagTestRequest;
CreateDagTestRequest::CreateDagTestRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateDagTest")
{
setMethod(HttpRequest::Method::Post);
}
CreateDagTestRequest::~CreateDagTestRequest()
{}
std::string CreateDagTestRequest::getProjectEnv()const
{
return projectEnv_;
}
void CreateDagTestRequest::setProjectEnv(const std::string& projectEnv)
{
projectEnv_ = projectEnv;
setBodyParameter("ProjectEnv", projectEnv);
}
std::string CreateDagTestRequest::getBizdate()const
{
return bizdate_;
}
void CreateDagTestRequest::setBizdate(const std::string& bizdate)
{
bizdate_ = bizdate;
setBodyParameter("Bizdate", bizdate);
}
std::string CreateDagTestRequest::getName()const
{
return name_;
}
void CreateDagTestRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string CreateDagTestRequest::getNodeParams()const
{
return nodeParams_;
}
void CreateDagTestRequest::setNodeParams(const std::string& nodeParams)
{
nodeParams_ = nodeParams;
setBodyParameter("NodeParams", nodeParams);
}
long CreateDagTestRequest::getNodeId()const
{
return nodeId_;
}
void CreateDagTestRequest::setNodeId(long nodeId)
{
nodeId_ = nodeId;
setBodyParameter("NodeId", std::to_string(nodeId));
}

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/CreateDagTestResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
CreateDagTestResult::CreateDagTestResult() :
ServiceResult()
{}
CreateDagTestResult::CreateDagTestResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDagTestResult::~CreateDagTestResult()
{}
void CreateDagTestResult::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 CreateDagTestResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
long CreateDagTestResult::getData()const
{
return data_;
}
std::string CreateDagTestResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateDagTestResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateDagTestResult::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/CreateDataServiceApiAuthorityRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateDataServiceApiAuthorityRequest;
CreateDataServiceApiAuthorityRequest::CreateDataServiceApiAuthorityRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateDataServiceApiAuthority")
{
setMethod(HttpRequest::Method::Post);
}
CreateDataServiceApiAuthorityRequest::~CreateDataServiceApiAuthorityRequest()
{}
long CreateDataServiceApiAuthorityRequest::getAuthorizedProjectId()const
{
return authorizedProjectId_;
}
void CreateDataServiceApiAuthorityRequest::setAuthorizedProjectId(long authorizedProjectId)
{
authorizedProjectId_ = authorizedProjectId;
setBodyParameter("AuthorizedProjectId", std::to_string(authorizedProjectId));
}
long CreateDataServiceApiAuthorityRequest::getTenantId()const
{
return tenantId_;
}
void CreateDataServiceApiAuthorityRequest::setTenantId(long tenantId)
{
tenantId_ = tenantId;
setBodyParameter("TenantId", std::to_string(tenantId));
}
long CreateDataServiceApiAuthorityRequest::getEndTime()const
{
return endTime_;
}
void CreateDataServiceApiAuthorityRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", std::to_string(endTime));
}
long CreateDataServiceApiAuthorityRequest::getProjectId()const
{
return projectId_;
}
void CreateDataServiceApiAuthorityRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
long CreateDataServiceApiAuthorityRequest::getApiId()const
{
return apiId_;
}
void CreateDataServiceApiAuthorityRequest::setApiId(long apiId)
{
apiId_ = apiId;
setBodyParameter("ApiId", std::to_string(apiId));
}

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/CreateDataServiceApiAuthorityResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
CreateDataServiceApiAuthorityResult::CreateDataServiceApiAuthorityResult() :
ServiceResult()
{}
CreateDataServiceApiAuthorityResult::CreateDataServiceApiAuthorityResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDataServiceApiAuthorityResult::~CreateDataServiceApiAuthorityResult()
{}
void CreateDataServiceApiAuthorityResult::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";
}
bool CreateDataServiceApiAuthorityResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,205 @@
/*
* 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));
}
long CreateDataServiceApiRequest::getFolderId()const
{
return folderId_;
}
void CreateDataServiceApiRequest::setFolderId(long folderId)
{
folderId_ = folderId;
setBodyParameter("FolderId", std::to_string(folderId));
}
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,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/CreateDataServiceFolderRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateDataServiceFolderRequest;
CreateDataServiceFolderRequest::CreateDataServiceFolderRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateDataServiceFolder")
{
setMethod(HttpRequest::Method::Post);
}
CreateDataServiceFolderRequest::~CreateDataServiceFolderRequest()
{}
std::string CreateDataServiceFolderRequest::getGroupId()const
{
return groupId_;
}
void CreateDataServiceFolderRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setBodyParameter("GroupId", groupId);
}
long CreateDataServiceFolderRequest::getTenantId()const
{
return tenantId_;
}
void CreateDataServiceFolderRequest::setTenantId(long tenantId)
{
tenantId_ = tenantId;
setBodyParameter("TenantId", std::to_string(tenantId));
}
std::string CreateDataServiceFolderRequest::getFolderName()const
{
return folderName_;
}
void CreateDataServiceFolderRequest::setFolderName(const std::string& folderName)
{
folderName_ = folderName;
setBodyParameter("FolderName", folderName);
}
long CreateDataServiceFolderRequest::getProjectId()const
{
return projectId_;
}
void CreateDataServiceFolderRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
long CreateDataServiceFolderRequest::getParentId()const
{
return parentId_;
}
void CreateDataServiceFolderRequest::setParentId(long parentId)
{
parentId_ = parentId;
setBodyParameter("ParentId", std::to_string(parentId));
}

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/CreateDataServiceFolderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
CreateDataServiceFolderResult::CreateDataServiceFolderResult() :
ServiceResult()
{}
CreateDataServiceFolderResult::CreateDataServiceFolderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDataServiceFolderResult::~CreateDataServiceFolderResult()
{}
void CreateDataServiceFolderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["FolderId"].isNull())
folderId_ = std::stol(value["FolderId"].asString());
}
long CreateDataServiceFolderResult::getFolderId()const
{
return folderId_;
}

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/CreateDataServiceGroupRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateDataServiceGroupRequest;
CreateDataServiceGroupRequest::CreateDataServiceGroupRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateDataServiceGroup")
{
setMethod(HttpRequest::Method::Post);
}
CreateDataServiceGroupRequest::~CreateDataServiceGroupRequest()
{}
std::string CreateDataServiceGroupRequest::getApiGatewayGroupId()const
{
return apiGatewayGroupId_;
}
void CreateDataServiceGroupRequest::setApiGatewayGroupId(const std::string& apiGatewayGroupId)
{
apiGatewayGroupId_ = apiGatewayGroupId;
setBodyParameter("ApiGatewayGroupId", apiGatewayGroupId);
}
long CreateDataServiceGroupRequest::getTenantId()const
{
return tenantId_;
}
void CreateDataServiceGroupRequest::setTenantId(long tenantId)
{
tenantId_ = tenantId;
setBodyParameter("TenantId", std::to_string(tenantId));
}
std::string CreateDataServiceGroupRequest::getDescription()const
{
return description_;
}
void CreateDataServiceGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
}
long CreateDataServiceGroupRequest::getProjectId()const
{
return projectId_;
}
void CreateDataServiceGroupRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
std::string CreateDataServiceGroupRequest::getGroupName()const
{
return groupName_;
}
void CreateDataServiceGroupRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setBodyParameter("GroupName", groupName);
}

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/CreateDataServiceGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
CreateDataServiceGroupResult::CreateDataServiceGroupResult() :
ServiceResult()
{}
CreateDataServiceGroupResult::CreateDataServiceGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDataServiceGroupResult::~CreateDataServiceGroupResult()
{}
void CreateDataServiceGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
}
std::string CreateDataServiceGroupResult::getGroupId()const
{
return groupId_;
}

View File

@@ -0,0 +1,282 @@
/*
* 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::getDependentNodeIdList()const
{
return dependentNodeIdList_;
}
void CreateFileRequest::setDependentNodeIdList(const std::string& dependentNodeIdList)
{
dependentNodeIdList_ = dependentNodeIdList;
setBodyParameter("DependentNodeIdList", dependentNodeIdList);
}
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::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateFileRequest::setResourceGroupId(long resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setBodyParameter("ResourceGroupId", std::to_string(resourceGroupId));
}
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::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::getConnectionName()const
{
return connectionName_;
}
void CreateFileRequest::setConnectionName(const std::string& connectionName)
{
connectionName_ = connectionName;
setBodyParameter("ConnectionName", connectionName);
}
std::string CreateFileRequest::getParaValue()const
{
return paraValue_;
}
void CreateFileRequest::setParaValue(const std::string& paraValue)
{
paraValue_ = paraValue;
setBodyParameter("ParaValue", paraValue);
}
std::string CreateFileRequest::getResourceGroupIdentifier()const
{
return resourceGroupIdentifier_;
}
void CreateFileRequest::setResourceGroupIdentifier(const std::string& resourceGroupIdentifier)
{
resourceGroupIdentifier_ = resourceGroupIdentifier;
setBodyParameter("ResourceGroupIdentifier", resourceGroupIdentifier);
}
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,128 @@
/*
* 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/CreateImportMigrationRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateImportMigrationRequest;
CreateImportMigrationRequest::CreateImportMigrationRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateImportMigration")
{
setMethod(HttpRequest::Method::Post);
}
CreateImportMigrationRequest::~CreateImportMigrationRequest()
{}
std::string CreateImportMigrationRequest::getDescription()const
{
return description_;
}
void CreateImportMigrationRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
}
std::string CreateImportMigrationRequest::getCommitRule()const
{
return commitRule_;
}
void CreateImportMigrationRequest::setCommitRule(const std::string& commitRule)
{
commitRule_ = commitRule;
setBodyParameter("CommitRule", commitRule);
}
std::string CreateImportMigrationRequest::getWorkspaceMap()const
{
return workspaceMap_;
}
void CreateImportMigrationRequest::setWorkspaceMap(const std::string& workspaceMap)
{
workspaceMap_ = workspaceMap;
setBodyParameter("WorkspaceMap", workspaceMap);
}
std::string CreateImportMigrationRequest::getCalculateEngineMap()const
{
return calculateEngineMap_;
}
void CreateImportMigrationRequest::setCalculateEngineMap(const std::string& calculateEngineMap)
{
calculateEngineMap_ = calculateEngineMap;
setBodyParameter("CalculateEngineMap", calculateEngineMap);
}
std::string CreateImportMigrationRequest::getName()const
{
return name_;
}
void CreateImportMigrationRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string CreateImportMigrationRequest::getPackageType()const
{
return packageType_;
}
void CreateImportMigrationRequest::setPackageType(const std::string& packageType)
{
packageType_ = packageType;
setBodyParameter("PackageType", packageType);
}
long CreateImportMigrationRequest::getProjectId()const
{
return projectId_;
}
void CreateImportMigrationRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
std::string CreateImportMigrationRequest::getPackageOssDownloadLink()const
{
return packageOssDownloadLink_;
}
void CreateImportMigrationRequest::setPackageOssDownloadLink(const std::string& packageOssDownloadLink)
{
packageOssDownloadLink_ = packageOssDownloadLink;
setBodyParameter("PackageOssDownloadLink", packageOssDownloadLink);
}
std::string CreateImportMigrationRequest::getResourceGroupMap()const
{
return resourceGroupMap_;
}
void CreateImportMigrationRequest::setResourceGroupMap(const std::string& resourceGroupMap)
{
resourceGroupMap_ = resourceGroupMap;
setBodyParameter("ResourceGroupMap", resourceGroupMap);
}

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/CreateImportMigrationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
CreateImportMigrationResult::CreateImportMigrationResult() :
ServiceResult()
{}
CreateImportMigrationResult::CreateImportMigrationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateImportMigrationResult::~CreateImportMigrationResult()
{}
void CreateImportMigrationResult::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 CreateImportMigrationResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
long CreateImportMigrationResult::getData()const
{
return data_;
}
std::string CreateImportMigrationResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateImportMigrationResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateImportMigrationResult::getSuccess()const
{
return success_;
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Dataworks_public::Model::CreateManualDagRequest;
CreateManualDagRequest::CreateManualDagRequest() :
RpcServiceRequest("dataworks-public", "2018-06-01", "CreateManualDag")
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateManualDag")
{
setMethod(HttpRequest::Method::Post);
}
@@ -27,6 +27,17 @@ CreateManualDagRequest::CreateManualDagRequest() :
CreateManualDagRequest::~CreateManualDagRequest()
{}
std::string CreateManualDagRequest::getProjectEnv()const
{
return projectEnv_;
}
void CreateManualDagRequest::setProjectEnv(const std::string& projectEnv)
{
projectEnv_ = projectEnv;
setBodyParameter("ProjectEnv", projectEnv);
}
std::string CreateManualDagRequest::getProjectName()const
{
return projectName_;
@@ -35,18 +46,18 @@ std::string CreateManualDagRequest::getProjectName()const
void CreateManualDagRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setParameter("ProjectName", projectName);
setBodyParameter("ProjectName", projectName);
}
std::string CreateManualDagRequest::getBizdate()const
std::string CreateManualDagRequest::getBizDate()const
{
return bizdate_;
return bizDate_;
}
void CreateManualDagRequest::setBizdate(const std::string& bizdate)
void CreateManualDagRequest::setBizDate(const std::string& bizDate)
{
bizdate_ = bizdate;
setParameter("Bizdate", bizdate);
bizDate_ = bizDate;
setBodyParameter("BizDate", bizDate);
}
std::string CreateManualDagRequest::getFlowName()const
@@ -57,28 +68,28 @@ std::string CreateManualDagRequest::getFlowName()const
void CreateManualDagRequest::setFlowName(const std::string& flowName)
{
flowName_ = flowName;
setParameter("FlowName", flowName);
setBodyParameter("FlowName", flowName);
}
std::string CreateManualDagRequest::getDagPara()const
std::string CreateManualDagRequest::getDagParameters()const
{
return dagPara_;
return dagParameters_;
}
void CreateManualDagRequest::setDagPara(const std::string& dagPara)
void CreateManualDagRequest::setDagParameters(const std::string& dagParameters)
{
dagPara_ = dagPara;
setParameter("DagPara", dagPara);
dagParameters_ = dagParameters;
setBodyParameter("DagParameters", dagParameters);
}
std::string CreateManualDagRequest::getNodePara()const
std::string CreateManualDagRequest::getNodeParameters()const
{
return nodePara_;
return nodeParameters_;
}
void CreateManualDagRequest::setNodePara(const std::string& nodePara)
void CreateManualDagRequest::setNodeParameters(const std::string& nodeParameters)
{
nodePara_ = nodePara;
setParameter("NodePara", nodePara);
nodeParameters_ = nodeParameters;
setBodyParameter("NodeParameters", nodeParameters);
}

View File

@@ -39,34 +39,13 @@ void CreateManualDagResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ReturnCode"].isNull())
returnCode_ = value["ReturnCode"].asString();
if(!value["ReturnErrorSolution"].isNull())
returnErrorSolution_ = value["ReturnErrorSolution"].asString();
if(!value["ReturnMessage"].isNull())
returnMessage_ = value["ReturnMessage"].asString();
if(!value["ReturnValue"].isNull())
returnValue_ = std::stol(value["ReturnValue"].asString());
if(!value["DagId"].isNull())
dagId_ = std::stol(value["DagId"].asString());
}
std::string CreateManualDagResult::getReturnErrorSolution()const
long CreateManualDagResult::getDagId()const
{
return returnErrorSolution_;
}
std::string CreateManualDagResult::getReturnCode()const
{
return returnCode_;
}
std::string CreateManualDagResult::getReturnMessage()const
{
return returnMessage_;
}
long CreateManualDagResult::getReturnValue()const
{
return returnValue_;
return dagId_;
}

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,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/CreateProjectMemberRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateProjectMemberRequest;
CreateProjectMemberRequest::CreateProjectMemberRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateProjectMember")
{
setMethod(HttpRequest::Method::Post);
}
CreateProjectMemberRequest::~CreateProjectMemberRequest()
{}
std::string CreateProjectMemberRequest::getRoleCode()const
{
return roleCode_;
}
void CreateProjectMemberRequest::setRoleCode(const std::string& roleCode)
{
roleCode_ = roleCode;
setParameter("RoleCode", roleCode);
}
std::string CreateProjectMemberRequest::getClientToken()const
{
return clientToken_;
}
void CreateProjectMemberRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
long CreateProjectMemberRequest::getProjectId()const
{
return projectId_;
}
void CreateProjectMemberRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}
std::string CreateProjectMemberRequest::getUserId()const
{
return userId_;
}
void CreateProjectMemberRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setParameter("UserId", userId);
}

View File

@@ -0,0 +1,44 @@
/*
* 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/CreateProjectMemberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
CreateProjectMemberResult::CreateProjectMemberResult() :
ServiceResult()
{}
CreateProjectMemberResult::CreateProjectMemberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateProjectMemberResult::~CreateProjectMemberResult()
{}
void CreateProjectMemberResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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

@@ -1,106 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/CreateRealTimeProcessRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateRealTimeProcessRequest;
CreateRealTimeProcessRequest::CreateRealTimeProcessRequest() :
RpcServiceRequest("dataworks-public", "2018-06-01", "CreateRealTimeProcess")
{
setMethod(HttpRequest::Method::Post);
}
CreateRealTimeProcessRequest::~CreateRealTimeProcessRequest()
{}
std::string CreateRealTimeProcessRequest::getJobConfig()const
{
return jobConfig_;
}
void CreateRealTimeProcessRequest::setJobConfig(const std::string& jobConfig)
{
jobConfig_ = jobConfig;
setParameter("JobConfig", jobConfig);
}
bool CreateRealTimeProcessRequest::getCreateResGroup()const
{
return createResGroup_;
}
void CreateRealTimeProcessRequest::setCreateResGroup(bool createResGroup)
{
createResGroup_ = createResGroup;
setParameter("CreateResGroup", createResGroup ? "true" : "false");
}
std::string CreateRealTimeProcessRequest::getDataworksVersion()const
{
return dataworksVersion_;
}
void CreateRealTimeProcessRequest::setDataworksVersion(const std::string& dataworksVersion)
{
dataworksVersion_ = dataworksVersion;
setParameter("DataworksVersion", dataworksVersion);
}
std::string CreateRealTimeProcessRequest::getResourceSpec()const
{
return resourceSpec_;
}
void CreateRealTimeProcessRequest::setResourceSpec(const std::string& resourceSpec)
{
resourceSpec_ = resourceSpec;
setParameter("ResourceSpec", resourceSpec);
}
std::string CreateRealTimeProcessRequest::getTableRule()const
{
return tableRule_;
}
void CreateRealTimeProcessRequest::setTableRule(const std::string& tableRule)
{
tableRule_ = tableRule;
setParameter("TableRule", tableRule);
}
std::string CreateRealTimeProcessRequest::getTables()const
{
return tables_;
}
void CreateRealTimeProcessRequest::setTables(const std::string& tables)
{
tables_ = tables;
setParameter("Tables", tables);
}
std::string CreateRealTimeProcessRequest::getDataSource()const
{
return dataSource_;
}
void CreateRealTimeProcessRequest::setDataSource(const std::string& dataSource)
{
dataSource_ = dataSource;
setParameter("DataSource", dataSource);
}

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,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/CreateTableLevelRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateTableLevelRequest;
CreateTableLevelRequest::CreateTableLevelRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateTableLevel")
{
setMethod(HttpRequest::Method::Post);
}
CreateTableLevelRequest::~CreateTableLevelRequest()
{}
int CreateTableLevelRequest::getLevelType()const
{
return levelType_;
}
void CreateTableLevelRequest::setLevelType(int levelType)
{
levelType_ = levelType;
setParameter("LevelType", std::to_string(levelType));
}
std::string CreateTableLevelRequest::getName()const
{
return name_;
}
void CreateTableLevelRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateTableLevelRequest::getDescription()const
{
return description_;
}
void CreateTableLevelRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateTableLevelRequest::getProjectId()const
{
return projectId_;
}
void CreateTableLevelRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("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/CreateTableLevelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
CreateTableLevelResult::CreateTableLevelResult() :
ServiceResult()
{}
CreateTableLevelResult::CreateTableLevelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateTableLevelResult::~CreateTableLevelResult()
{}
void CreateTableLevelResult::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["LevelId"].isNull())
levelId_ = std::stol(value["LevelId"].asString());
}
int CreateTableLevelResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateTableLevelResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateTableLevelResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateTableLevelResult::getSuccess()const
{
return success_;
}
long CreateTableLevelResult::getLevelId()const
{
return levelId_;
}

View File

@@ -0,0 +1,244 @@
/*
* 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/CreateTableRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateTableRequest;
CreateTableRequest::CreateTableRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateTable")
{
setMethod(HttpRequest::Method::Post);
}
CreateTableRequest::~CreateTableRequest()
{}
int CreateTableRequest::getVisibility()const
{
return visibility_;
}
void CreateTableRequest::setVisibility(int visibility)
{
visibility_ = visibility;
setParameter("Visibility", std::to_string(visibility));
}
long CreateTableRequest::getPhysicsLevelId()const
{
return physicsLevelId_;
}
void CreateTableRequest::setPhysicsLevelId(long physicsLevelId)
{
physicsLevelId_ = physicsLevelId;
setParameter("PhysicsLevelId", std::to_string(physicsLevelId));
}
std::vector<CreateTableRequest::Columns> CreateTableRequest::getColumns()const
{
return columns_;
}
void CreateTableRequest::setColumns(const std::vector<Columns>& columns)
{
columns_ = columns;
for(int dep1 = 0; dep1!= columns.size(); dep1++) {
auto columnsObj = columns.at(dep1);
std::string columnsObjStr = "Columns." + std::to_string(dep1 + 1);
setParameter(columnsObjStr + ".SeqNumber", std::to_string(columnsObj.seqNumber));
setParameter(columnsObjStr + ".IsPartitionCol", std::to_string(columnsObj.isPartitionCol));
setParameter(columnsObjStr + ".ColumnNameCn", columnsObj.columnNameCn);
setParameter(columnsObjStr + ".Length", std::to_string(columnsObj.length));
setParameter(columnsObjStr + ".IsNullable", std::to_string(columnsObj.isNullable));
setParameter(columnsObjStr + ".Comment", columnsObj.comment);
setParameter(columnsObjStr + ".IsPrimaryKey", std::to_string(columnsObj.isPrimaryKey));
setParameter(columnsObjStr + ".ColumnName", columnsObj.columnName);
setParameter(columnsObjStr + ".ColumnType", columnsObj.columnType);
}
}
std::string CreateTableRequest::getOwnerId()const
{
return ownerId_;
}
void CreateTableRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
int CreateTableRequest::getLifeCycle()const
{
return lifeCycle_;
}
void CreateTableRequest::setLifeCycle(int lifeCycle)
{
lifeCycle_ = lifeCycle;
setParameter("LifeCycle", std::to_string(lifeCycle));
}
std::vector<CreateTableRequest::Themes> CreateTableRequest::getThemes()const
{
return themes_;
}
void CreateTableRequest::setThemes(const std::vector<Themes>& themes)
{
themes_ = themes;
for(int dep1 = 0; dep1!= themes.size(); dep1++) {
auto themesObj = themes.at(dep1);
std::string themesObjStr = "Themes." + std::to_string(dep1 + 1);
setParameter(themesObjStr + ".ThemeLevel", std::to_string(themesObj.themeLevel));
setParameter(themesObjStr + ".ThemeId", std::to_string(themesObj.themeId));
}
}
long CreateTableRequest::getLogicalLevelId()const
{
return logicalLevelId_;
}
void CreateTableRequest::setLogicalLevelId(long logicalLevelId)
{
logicalLevelId_ = logicalLevelId;
setParameter("LogicalLevelId", std::to_string(logicalLevelId));
}
std::string CreateTableRequest::getEndpoint()const
{
return endpoint_;
}
void CreateTableRequest::setEndpoint(const std::string& endpoint)
{
endpoint_ = endpoint;
setBodyParameter("Endpoint", endpoint);
}
int CreateTableRequest::getIsView()const
{
return isView_;
}
void CreateTableRequest::setIsView(int isView)
{
isView_ = isView;
setParameter("IsView", std::to_string(isView));
}
std::string CreateTableRequest::getExternalTableType()const
{
return externalTableType_;
}
void CreateTableRequest::setExternalTableType(const std::string& externalTableType)
{
externalTableType_ = externalTableType;
setParameter("ExternalTableType", externalTableType);
}
int CreateTableRequest::getEnvType()const
{
return envType_;
}
void CreateTableRequest::setEnvType(int envType)
{
envType_ = envType;
setBodyParameter("EnvType", std::to_string(envType));
}
int CreateTableRequest::getHasPart()const
{
return hasPart_;
}
void CreateTableRequest::setHasPart(int hasPart)
{
hasPart_ = hasPart;
setParameter("HasPart", std::to_string(hasPart));
}
std::string CreateTableRequest::getLocation()const
{
return location_;
}
void CreateTableRequest::setLocation(const std::string& location)
{
location_ = location;
setParameter("Location", location);
}
std::string CreateTableRequest::getComment()const
{
return comment_;
}
void CreateTableRequest::setComment(const std::string& comment)
{
comment_ = comment;
setParameter("Comment", comment);
}
std::string CreateTableRequest::getTableName()const
{
return tableName_;
}
void CreateTableRequest::setTableName(const std::string& tableName)
{
tableName_ = tableName;
setParameter("TableName", tableName);
}
std::string CreateTableRequest::getAppGuid()const
{
return appGuid_;
}
void CreateTableRequest::setAppGuid(const std::string& appGuid)
{
appGuid_ = appGuid;
setParameter("AppGuid", appGuid);
}
long CreateTableRequest::getProjectId()const
{
return projectId_;
}
void CreateTableRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}
long CreateTableRequest::getCategoryId()const
{
return categoryId_;
}
void CreateTableRequest::setCategoryId(long categoryId)
{
categoryId_ = categoryId;
setParameter("CategoryId", std::to_string(categoryId));
}

View File

@@ -0,0 +1,58 @@
/*
* 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/CreateTableResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
CreateTableResult::CreateTableResult() :
ServiceResult()
{}
CreateTableResult::CreateTableResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateTableResult::~CreateTableResult()
{}
void CreateTableResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto taskInfoNode = value["TaskInfo"];
if(!taskInfoNode["TaskId"].isNull())
taskInfo_.taskId = taskInfoNode["TaskId"].asString();
if(!taskInfoNode["Content"].isNull())
taskInfo_.content = taskInfoNode["Content"].asString();
if(!taskInfoNode["Status"].isNull())
taskInfo_.status = taskInfoNode["Status"].asString();
if(!taskInfoNode["NextTaskId"].isNull())
taskInfo_.nextTaskId = taskInfoNode["NextTaskId"].asString();
}
CreateTableResult::TaskInfo CreateTableResult::getTaskInfo()const
{
return taskInfo_;
}

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/CreateTableThemeRequest.h>
using AlibabaCloud::Dataworks_public::Model::CreateTableThemeRequest;
CreateTableThemeRequest::CreateTableThemeRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateTableTheme")
{
setMethod(HttpRequest::Method::Post);
}
CreateTableThemeRequest::~CreateTableThemeRequest()
{}
int CreateTableThemeRequest::getLevel()const
{
return level_;
}
void CreateTableThemeRequest::setLevel(int level)
{
level_ = level;
setParameter("Level", std::to_string(level));
}
std::string CreateTableThemeRequest::getName()const
{
return name_;
}
void CreateTableThemeRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
long CreateTableThemeRequest::getProjectId()const
{
return projectId_;
}
void CreateTableThemeRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}
long CreateTableThemeRequest::getParentId()const
{
return parentId_;
}
void CreateTableThemeRequest::setParentId(long parentId)
{
parentId_ = parentId;
setParameter("ParentId", std::to_string(parentId));
}

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/CreateTableThemeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
CreateTableThemeResult::CreateTableThemeResult() :
ServiceResult()
{}
CreateTableThemeResult::CreateTableThemeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateTableThemeResult::~CreateTableThemeResult()
{}
void CreateTableThemeResult::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["ThemeId"].isNull())
themeId_ = std::stol(value["ThemeId"].asString());
}
long CreateTableThemeResult::getThemeId()const
{
return themeId_;
}
int CreateTableThemeResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateTableThemeResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateTableThemeResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateTableThemeResult::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

@@ -14,27 +14,27 @@
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/ListEmrHiveDatabasesRequest.h>
#include <alibabacloud/dataworks-public/model/DeleteConnectionRequest.h>
using AlibabaCloud::Dataworks_public::Model::ListEmrHiveDatabasesRequest;
using AlibabaCloud::Dataworks_public::Model::DeleteConnectionRequest;
ListEmrHiveDatabasesRequest::ListEmrHiveDatabasesRequest() :
RpcServiceRequest("dataworks-public", "2018-06-01", "ListEmrHiveDatabases")
DeleteConnectionRequest::DeleteConnectionRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteConnection")
{
setMethod(HttpRequest::Method::Post);
}
ListEmrHiveDatabasesRequest::~ListEmrHiveDatabasesRequest()
DeleteConnectionRequest::~DeleteConnectionRequest()
{}
std::string ListEmrHiveDatabasesRequest::getClusterId()const
long DeleteConnectionRequest::getConnectionId()const
{
return clusterId_;
return connectionId_;
}
void ListEmrHiveDatabasesRequest::setClusterId(const std::string& clusterId)
void DeleteConnectionRequest::setConnectionId(long connectionId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
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,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/DeleteDataServiceApiAuthorityRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteDataServiceApiAuthorityRequest;
DeleteDataServiceApiAuthorityRequest::DeleteDataServiceApiAuthorityRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteDataServiceApiAuthority")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDataServiceApiAuthorityRequest::~DeleteDataServiceApiAuthorityRequest()
{}
long DeleteDataServiceApiAuthorityRequest::getAuthorizedProjectId()const
{
return authorizedProjectId_;
}
void DeleteDataServiceApiAuthorityRequest::setAuthorizedProjectId(long authorizedProjectId)
{
authorizedProjectId_ = authorizedProjectId;
setBodyParameter("AuthorizedProjectId", std::to_string(authorizedProjectId));
}
long DeleteDataServiceApiAuthorityRequest::getTenantId()const
{
return tenantId_;
}
void DeleteDataServiceApiAuthorityRequest::setTenantId(long tenantId)
{
tenantId_ = tenantId;
setBodyParameter("TenantId", std::to_string(tenantId));
}
long DeleteDataServiceApiAuthorityRequest::getProjectId()const
{
return projectId_;
}
void DeleteDataServiceApiAuthorityRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", std::to_string(projectId));
}
long DeleteDataServiceApiAuthorityRequest::getApiId()const
{
return apiId_;
}
void DeleteDataServiceApiAuthorityRequest::setApiId(long apiId)
{
apiId_ = apiId;
setBodyParameter("ApiId", std::to_string(apiId));
}

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/DeleteDataServiceApiAuthorityResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
DeleteDataServiceApiAuthorityResult::DeleteDataServiceApiAuthorityResult() :
ServiceResult()
{}
DeleteDataServiceApiAuthorityResult::DeleteDataServiceApiAuthorityResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDataServiceApiAuthorityResult::~DeleteDataServiceApiAuthorityResult()
{}
void DeleteDataServiceApiAuthorityResult::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";
}
bool DeleteDataServiceApiAuthorityResult::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

@@ -19,7 +19,7 @@
using AlibabaCloud::Dataworks_public::Model::DeleteFileRequest;
DeleteFileRequest::DeleteFileRequest() :
RpcServiceRequest("dataworks-public", "2018-06-01", "DeleteFile")
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteFile")
{
setMethod(HttpRequest::Method::Post);
}

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,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/DeleteProjectMemberRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteProjectMemberRequest;
DeleteProjectMemberRequest::DeleteProjectMemberRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteProjectMember")
{
setMethod(HttpRequest::Method::Post);
}
DeleteProjectMemberRequest::~DeleteProjectMemberRequest()
{}
long DeleteProjectMemberRequest::getProjectId()const
{
return projectId_;
}
void DeleteProjectMemberRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}
std::string DeleteProjectMemberRequest::getUserId()const
{
return userId_;
}
void DeleteProjectMemberRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setParameter("UserId", userId);
}

View File

@@ -0,0 +1,44 @@
/*
* 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/DeleteProjectMemberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
DeleteProjectMemberResult::DeleteProjectMemberResult() :
ServiceResult()
{}
DeleteProjectMemberResult::DeleteProjectMemberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteProjectMemberResult::~DeleteProjectMemberResult()
{}
void DeleteProjectMemberResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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();
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_;
}
std::string 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

@@ -14,27 +14,27 @@
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/OpenDataWorksStandardServiceRequest.h>
#include <alibabacloud/dataworks-public/model/DeleteRemindRequest.h>
using AlibabaCloud::Dataworks_public::Model::OpenDataWorksStandardServiceRequest;
using AlibabaCloud::Dataworks_public::Model::DeleteRemindRequest;
OpenDataWorksStandardServiceRequest::OpenDataWorksStandardServiceRequest() :
RpcServiceRequest("dataworks-public", "2018-06-01", "OpenDataWorksStandardService")
DeleteRemindRequest::DeleteRemindRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteRemind")
{
setMethod(HttpRequest::Method::Post);
}
OpenDataWorksStandardServiceRequest::~OpenDataWorksStandardServiceRequest()
DeleteRemindRequest::~DeleteRemindRequest()
{}
std::string OpenDataWorksStandardServiceRequest::getRegion()const
long DeleteRemindRequest::getRemindId()const
{
return region_;
return remindId_;
}
void OpenDataWorksStandardServiceRequest::setRegion(const std::string& region)
void DeleteRemindRequest::setRemindId(long remindId)
{
region_ = region;
setParameter("Region", region);
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,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/DeleteTableLevelRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteTableLevelRequest;
DeleteTableLevelRequest::DeleteTableLevelRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteTableLevel")
{
setMethod(HttpRequest::Method::Post);
}
DeleteTableLevelRequest::~DeleteTableLevelRequest()
{}
long DeleteTableLevelRequest::getLevelId()const
{
return levelId_;
}
void DeleteTableLevelRequest::setLevelId(long levelId)
{
levelId_ = levelId;
setParameter("LevelId", std::to_string(levelId));
}
long DeleteTableLevelRequest::getProjectId()const
{
return projectId_;
}
void DeleteTableLevelRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}

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/DeleteTableLevelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
DeleteTableLevelResult::DeleteTableLevelResult() :
ServiceResult()
{}
DeleteTableLevelResult::DeleteTableLevelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteTableLevelResult::~DeleteTableLevelResult()
{}
void DeleteTableLevelResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DeleteResult"].isNull())
deleteResult_ = value["DeleteResult"].asString() == "true";
}
bool DeleteTableLevelResult::getDeleteResult()const
{
return deleteResult_;
}

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/DeleteTableRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteTableRequest;
DeleteTableRequest::DeleteTableRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteTable")
{
setMethod(HttpRequest::Method::Post);
}
DeleteTableRequest::~DeleteTableRequest()
{}
int DeleteTableRequest::getEnvType()const
{
return envType_;
}
void DeleteTableRequest::setEnvType(int envType)
{
envType_ = envType;
setParameter("EnvType", std::to_string(envType));
}
std::string DeleteTableRequest::getTableName()const
{
return tableName_;
}
void DeleteTableRequest::setTableName(const std::string& tableName)
{
tableName_ = tableName;
setParameter("TableName", tableName);
}
std::string DeleteTableRequest::getAppGuid()const
{
return appGuid_;
}
void DeleteTableRequest::setAppGuid(const std::string& appGuid)
{
appGuid_ = appGuid;
setParameter("AppGuid", appGuid);
}
long DeleteTableRequest::getProjectId()const
{
return projectId_;
}
void DeleteTableRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}

View File

@@ -0,0 +1,58 @@
/*
* 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/DeleteTableResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
DeleteTableResult::DeleteTableResult() :
ServiceResult()
{}
DeleteTableResult::DeleteTableResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteTableResult::~DeleteTableResult()
{}
void DeleteTableResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto taskInfoNode = value["TaskInfo"];
if(!taskInfoNode["TaskId"].isNull())
taskInfo_.taskId = taskInfoNode["TaskId"].asString();
if(!taskInfoNode["Content"].isNull())
taskInfo_.content = taskInfoNode["Content"].asString();
if(!taskInfoNode["Status"].isNull())
taskInfo_.status = taskInfoNode["Status"].asString();
if(!taskInfoNode["NextTaskId"].isNull())
taskInfo_.nextTaskId = taskInfoNode["NextTaskId"].asString();
}
DeleteTableResult::TaskInfo DeleteTableResult::getTaskInfo()const
{
return taskInfo_;
}

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/DeleteTableThemeRequest.h>
using AlibabaCloud::Dataworks_public::Model::DeleteTableThemeRequest;
DeleteTableThemeRequest::DeleteTableThemeRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteTableTheme")
{
setMethod(HttpRequest::Method::Post);
}
DeleteTableThemeRequest::~DeleteTableThemeRequest()
{}
long DeleteTableThemeRequest::getThemeId()const
{
return themeId_;
}
void DeleteTableThemeRequest::setThemeId(long themeId)
{
themeId_ = themeId;
setParameter("ThemeId", std::to_string(themeId));
}
long DeleteTableThemeRequest::getProjectId()const
{
return projectId_;
}
void DeleteTableThemeRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("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/DeleteTableThemeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
DeleteTableThemeResult::DeleteTableThemeResult() :
ServiceResult()
{}
DeleteTableThemeResult::DeleteTableThemeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteTableThemeResult::~DeleteTableThemeResult()
{}
void DeleteTableThemeResult::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["DeleteResult"].isNull())
deleteResult_ = value["DeleteResult"].asString() == "true";
}
int DeleteTableThemeResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DeleteTableThemeResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteTableThemeResult::getErrorMessage()const
{
return errorMessage_;
}
bool DeleteTableThemeResult::getSuccess()const
{
return success_;
}
bool DeleteTableThemeResult::getDeleteResult()const
{
return deleteResult_;
}

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

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/DescribeEmrHiveTableRequest.h>
using AlibabaCloud::Dataworks_public::Model::DescribeEmrHiveTableRequest;
DescribeEmrHiveTableRequest::DescribeEmrHiveTableRequest() :
RpcServiceRequest("dataworks-public", "2018-06-01", "DescribeEmrHiveTable")
{
setMethod(HttpRequest::Method::Post);
}
DescribeEmrHiveTableRequest::~DescribeEmrHiveTableRequest()
{}
std::string DescribeEmrHiveTableRequest::getDatabaseName()const
{
return databaseName_;
}
void DescribeEmrHiveTableRequest::setDatabaseName(const std::string& databaseName)
{
databaseName_ = databaseName;
setParameter("DatabaseName", databaseName);
}
std::string DescribeEmrHiveTableRequest::getClusterId()const
{
return clusterId_;
}
void DescribeEmrHiveTableRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DescribeEmrHiveTableRequest::getTableName()const
{
return tableName_;
}
void DescribeEmrHiveTableRequest::setTableName(const std::string& tableName)
{
tableName_ = tableName;
setParameter("TableName", tableName);
}

View File

@@ -1,130 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/DescribeEmrHiveTableResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
DescribeEmrHiveTableResult::DescribeEmrHiveTableResult() :
ServiceResult()
{}
DescribeEmrHiveTableResult::DescribeEmrHiveTableResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeEmrHiveTableResult::~DescribeEmrHiveTableResult()
{}
void DescribeEmrHiveTableResult::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["ClusterBizId"].isNull())
data_.clusterBizId = dataNode["ClusterBizId"].asString();
if(!dataNode["TableName"].isNull())
data_.tableName = dataNode["TableName"].asString();
if(!dataNode["TableType"].isNull())
data_.tableType = dataNode["TableType"].asString();
if(!dataNode["Owner"].isNull())
data_.owner = dataNode["Owner"].asString();
if(!dataNode["OwnerType"].isNull())
data_.ownerType = dataNode["OwnerType"].asString();
if(!dataNode["IsTemporary"].isNull())
data_.isTemporary = dataNode["IsTemporary"].asString() == "true";
if(!dataNode["SerializationLib"].isNull())
data_.serializationLib = dataNode["SerializationLib"].asString();
if(!dataNode["InputFormat"].isNull())
data_.inputFormat = dataNode["InputFormat"].asString();
if(!dataNode["OutputFormat"].isNull())
data_.outputFormat = dataNode["OutputFormat"].asString();
if(!dataNode["Location"].isNull())
data_.location = dataNode["Location"].asString();
if(!dataNode["LastAccessTime"].isNull())
data_.lastAccessTime = dataNode["LastAccessTime"].asString();
if(!dataNode["GmtCreate"].isNull())
data_.gmtCreate = dataNode["GmtCreate"].asString();
if(!dataNode["GmtModified"].isNull())
data_.gmtModified = dataNode["GmtModified"].asString();
if(!dataNode["TableComment"].isNull())
data_.tableComment = dataNode["TableComment"].asString();
if(!dataNode["TableParameters"].isNull())
data_.tableParameters = dataNode["TableParameters"].asString();
if(!dataNode["PartitionKeys"].isNull())
data_.partitionKeys = dataNode["PartitionKeys"].asString();
if(!dataNode["IsCompressed"].isNull())
data_.isCompressed = dataNode["IsCompressed"].asString() == "true";
if(!dataNode["ClusterBizName"].isNull())
data_.clusterBizName = dataNode["ClusterBizName"].asString();
if(!dataNode["DatabaseName"].isNull())
data_.databaseName = dataNode["DatabaseName"].asString();
if(!dataNode["OwnerId"].isNull())
data_.ownerId = dataNode["OwnerId"].asString();
if(!dataNode["TableDesc"].isNull())
data_.tableDesc = dataNode["TableDesc"].asString();
if(!dataNode["LastModifyTime"].isNull())
data_.lastModifyTime = dataNode["LastModifyTime"].asString();
if(!dataNode["TableSize"].isNull())
data_.tableSize = std::stol(dataNode["TableSize"].asString());
auto allColumnsNode = dataNode["Columns"]["TableColumn"];
for (auto dataNodeColumnsTableColumn : allColumnsNode)
{
Data::TableColumn tableColumnObject;
if(!dataNodeColumnsTableColumn["ColumnPosition"].isNull())
tableColumnObject.columnPosition = std::stoi(dataNodeColumnsTableColumn["ColumnPosition"].asString());
if(!dataNodeColumnsTableColumn["ColumnName"].isNull())
tableColumnObject.columnName = dataNodeColumnsTableColumn["ColumnName"].asString();
if(!dataNodeColumnsTableColumn["ColumnType"].isNull())
tableColumnObject.columnType = dataNodeColumnsTableColumn["ColumnType"].asString();
if(!dataNodeColumnsTableColumn["ColumnComment"].isNull())
tableColumnObject.columnComment = dataNodeColumnsTableColumn["ColumnComment"].asString();
if(!dataNodeColumnsTableColumn["GmtCreate"].isNull())
tableColumnObject.gmtCreate = dataNodeColumnsTableColumn["GmtCreate"].asString();
if(!dataNodeColumnsTableColumn["GmtModified"].isNull())
tableColumnObject.gmtModified = dataNodeColumnsTableColumn["GmtModified"].asString();
if(!dataNodeColumnsTableColumn["Comment"].isNull())
tableColumnObject.comment = dataNodeColumnsTableColumn["Comment"].asString();
data_.columns.push_back(tableColumnObject);
}
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
DescribeEmrHiveTableResult::Data DescribeEmrHiveTableResult::getData()const
{
return data_;
}
std::string DescribeEmrHiveTableResult::getErrorCode()const
{
return errorCode_;
}
std::string DescribeEmrHiveTableResult::getErrorMessage()const
{
return errorMessage_;
}

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/DesensitizeDataRequest.h>
using AlibabaCloud::Dataworks_public::Model::DesensitizeDataRequest;
DesensitizeDataRequest::DesensitizeDataRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "DesensitizeData")
{
setMethod(HttpRequest::Method::Get);
}
DesensitizeDataRequest::~DesensitizeDataRequest()
{}
std::string DesensitizeDataRequest::getSceneCode()const
{
return sceneCode_;
}
void DesensitizeDataRequest::setSceneCode(const std::string& sceneCode)
{
sceneCode_ = sceneCode;
setBodyParameter("SceneCode", sceneCode);
}
std::string DesensitizeDataRequest::getData()const
{
return data_;
}
void DesensitizeDataRequest::setData(const std::string& data)
{
data_ = data;
setBodyParameter("Data", data);
}

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/DesensitizeDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
DesensitizeDataResult::DesensitizeDataResult() :
ServiceResult()
{}
DesensitizeDataResult::DesensitizeDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DesensitizeDataResult::~DesensitizeDataResult()
{}
void DesensitizeDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DesensitizeData"].isNull())
desensitizeData_ = value["DesensitizeData"].asString();
}
std::string DesensitizeDataResult::getDesensitizeData()const
{
return desensitizeData_;
}

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));
}

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