Support CreateProcCorrectAPI.

This commit is contained in:
sdk-team
2023-09-20 09:22:38 +00:00
parent 5550c66a4c
commit 71e4c1576e
24 changed files with 1249 additions and 1 deletions

View File

@@ -1 +1 @@
1.36.1765
1.36.1766

View File

@@ -39,6 +39,8 @@ set(dms-enterprise_public_header_model
include/alibabacloud/dms-enterprise/model/BuyPayAsYouGoOrderResult.h
include/alibabacloud/dms-enterprise/model/ChangeColumnSecLevelRequest.h
include/alibabacloud/dms-enterprise/model/ChangeColumnSecLevelResult.h
include/alibabacloud/dms-enterprise/model/ChangeColumnSecurityLevelRequest.h
include/alibabacloud/dms-enterprise/model/ChangeColumnSecurityLevelResult.h
include/alibabacloud/dms-enterprise/model/ChangeLhDagOwnerRequest.h
include/alibabacloud/dms-enterprise/model/ChangeLhDagOwnerResult.h
include/alibabacloud/dms-enterprise/model/CloseOrderRequest.h
@@ -67,6 +69,8 @@ set(dms-enterprise_public_header_model
include/alibabacloud/dms-enterprise/model/CreateLogicDatabaseResult.h
include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h
include/alibabacloud/dms-enterprise/model/CreateOrderResult.h
include/alibabacloud/dms-enterprise/model/CreateProcCorrectOrderRequest.h
include/alibabacloud/dms-enterprise/model/CreateProcCorrectOrderResult.h
include/alibabacloud/dms-enterprise/model/CreateProxyRequest.h
include/alibabacloud/dms-enterprise/model/CreateProxyResult.h
include/alibabacloud/dms-enterprise/model/CreateProxyAccessRequest.h
@@ -135,6 +139,8 @@ set(dms-enterprise_public_header_model
include/alibabacloud/dms-enterprise/model/GetAuthorityTemplateResult.h
include/alibabacloud/dms-enterprise/model/GetAuthorityTemplateItemRequest.h
include/alibabacloud/dms-enterprise/model/GetAuthorityTemplateItemResult.h
include/alibabacloud/dms-enterprise/model/GetClassificationTemplateRequest.h
include/alibabacloud/dms-enterprise/model/GetClassificationTemplateResult.h
include/alibabacloud/dms-enterprise/model/GetDBTaskSQLJobLogRequest.h
include/alibabacloud/dms-enterprise/model/GetDBTaskSQLJobLogResult.h
include/alibabacloud/dms-enterprise/model/GetDBTopologyRequest.h
@@ -311,6 +317,8 @@ set(dms-enterprise_public_header_model
include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsDetailResult.h
include/alibabacloud/dms-enterprise/model/ListSensitiveDataAuditLogRequest.h
include/alibabacloud/dms-enterprise/model/ListSensitiveDataAuditLogResult.h
include/alibabacloud/dms-enterprise/model/ListSensitivityLevelRequest.h
include/alibabacloud/dms-enterprise/model/ListSensitivityLevelResult.h
include/alibabacloud/dms-enterprise/model/ListStandardGroupsRequest.h
include/alibabacloud/dms-enterprise/model/ListStandardGroupsResult.h
include/alibabacloud/dms-enterprise/model/ListTablesRequest.h
@@ -458,6 +466,8 @@ set(dms-enterprise_src
src/model/BuyPayAsYouGoOrderResult.cc
src/model/ChangeColumnSecLevelRequest.cc
src/model/ChangeColumnSecLevelResult.cc
src/model/ChangeColumnSecurityLevelRequest.cc
src/model/ChangeColumnSecurityLevelResult.cc
src/model/ChangeLhDagOwnerRequest.cc
src/model/ChangeLhDagOwnerResult.cc
src/model/CloseOrderRequest.cc
@@ -486,6 +496,8 @@ set(dms-enterprise_src
src/model/CreateLogicDatabaseResult.cc
src/model/CreateOrderRequest.cc
src/model/CreateOrderResult.cc
src/model/CreateProcCorrectOrderRequest.cc
src/model/CreateProcCorrectOrderResult.cc
src/model/CreateProxyRequest.cc
src/model/CreateProxyResult.cc
src/model/CreateProxyAccessRequest.cc
@@ -554,6 +566,8 @@ set(dms-enterprise_src
src/model/GetAuthorityTemplateResult.cc
src/model/GetAuthorityTemplateItemRequest.cc
src/model/GetAuthorityTemplateItemResult.cc
src/model/GetClassificationTemplateRequest.cc
src/model/GetClassificationTemplateResult.cc
src/model/GetDBTaskSQLJobLogRequest.cc
src/model/GetDBTaskSQLJobLogResult.cc
src/model/GetDBTopologyRequest.cc
@@ -730,6 +744,8 @@ set(dms-enterprise_src
src/model/ListSensitiveColumnsDetailResult.cc
src/model/ListSensitiveDataAuditLogRequest.cc
src/model/ListSensitiveDataAuditLogResult.cc
src/model/ListSensitivityLevelRequest.cc
src/model/ListSensitivityLevelResult.cc
src/model/ListStandardGroupsRequest.cc
src/model/ListStandardGroupsResult.cc
src/model/ListTablesRequest.cc

View File

@@ -40,6 +40,8 @@
#include "model/BuyPayAsYouGoOrderResult.h"
#include "model/ChangeColumnSecLevelRequest.h"
#include "model/ChangeColumnSecLevelResult.h"
#include "model/ChangeColumnSecurityLevelRequest.h"
#include "model/ChangeColumnSecurityLevelResult.h"
#include "model/ChangeLhDagOwnerRequest.h"
#include "model/ChangeLhDagOwnerResult.h"
#include "model/CloseOrderRequest.h"
@@ -68,6 +70,8 @@
#include "model/CreateLogicDatabaseResult.h"
#include "model/CreateOrderRequest.h"
#include "model/CreateOrderResult.h"
#include "model/CreateProcCorrectOrderRequest.h"
#include "model/CreateProcCorrectOrderResult.h"
#include "model/CreateProxyRequest.h"
#include "model/CreateProxyResult.h"
#include "model/CreateProxyAccessRequest.h"
@@ -136,6 +140,8 @@
#include "model/GetAuthorityTemplateResult.h"
#include "model/GetAuthorityTemplateItemRequest.h"
#include "model/GetAuthorityTemplateItemResult.h"
#include "model/GetClassificationTemplateRequest.h"
#include "model/GetClassificationTemplateResult.h"
#include "model/GetDBTaskSQLJobLogRequest.h"
#include "model/GetDBTaskSQLJobLogResult.h"
#include "model/GetDBTopologyRequest.h"
@@ -312,6 +318,8 @@
#include "model/ListSensitiveColumnsDetailResult.h"
#include "model/ListSensitiveDataAuditLogRequest.h"
#include "model/ListSensitiveDataAuditLogResult.h"
#include "model/ListSensitivityLevelRequest.h"
#include "model/ListSensitivityLevelResult.h"
#include "model/ListStandardGroupsRequest.h"
#include "model/ListStandardGroupsResult.h"
#include "model/ListTablesRequest.h"
@@ -474,6 +482,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ChangeColumnSecLevelResult> ChangeColumnSecLevelOutcome;
typedef std::future<ChangeColumnSecLevelOutcome> ChangeColumnSecLevelOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::ChangeColumnSecLevelRequest&, const ChangeColumnSecLevelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeColumnSecLevelAsyncHandler;
typedef Outcome<Error, Model::ChangeColumnSecurityLevelResult> ChangeColumnSecurityLevelOutcome;
typedef std::future<ChangeColumnSecurityLevelOutcome> ChangeColumnSecurityLevelOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::ChangeColumnSecurityLevelRequest&, const ChangeColumnSecurityLevelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeColumnSecurityLevelAsyncHandler;
typedef Outcome<Error, Model::ChangeLhDagOwnerResult> ChangeLhDagOwnerOutcome;
typedef std::future<ChangeLhDagOwnerOutcome> ChangeLhDagOwnerOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::ChangeLhDagOwnerRequest&, const ChangeLhDagOwnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeLhDagOwnerAsyncHandler;
@@ -516,6 +527,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateOrderResult> CreateOrderOutcome;
typedef std::future<CreateOrderOutcome> CreateOrderOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateOrderRequest&, const CreateOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateOrderAsyncHandler;
typedef Outcome<Error, Model::CreateProcCorrectOrderResult> CreateProcCorrectOrderOutcome;
typedef std::future<CreateProcCorrectOrderOutcome> CreateProcCorrectOrderOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateProcCorrectOrderRequest&, const CreateProcCorrectOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateProcCorrectOrderAsyncHandler;
typedef Outcome<Error, Model::CreateProxyResult> CreateProxyOutcome;
typedef std::future<CreateProxyOutcome> CreateProxyOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateProxyRequest&, const CreateProxyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateProxyAsyncHandler;
@@ -618,6 +632,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetAuthorityTemplateItemResult> GetAuthorityTemplateItemOutcome;
typedef std::future<GetAuthorityTemplateItemOutcome> GetAuthorityTemplateItemOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetAuthorityTemplateItemRequest&, const GetAuthorityTemplateItemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAuthorityTemplateItemAsyncHandler;
typedef Outcome<Error, Model::GetClassificationTemplateResult> GetClassificationTemplateOutcome;
typedef std::future<GetClassificationTemplateOutcome> GetClassificationTemplateOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetClassificationTemplateRequest&, const GetClassificationTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetClassificationTemplateAsyncHandler;
typedef Outcome<Error, Model::GetDBTaskSQLJobLogResult> GetDBTaskSQLJobLogOutcome;
typedef std::future<GetDBTaskSQLJobLogOutcome> GetDBTaskSQLJobLogOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDBTaskSQLJobLogRequest&, const GetDBTaskSQLJobLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDBTaskSQLJobLogAsyncHandler;
@@ -882,6 +899,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListSensitiveDataAuditLogResult> ListSensitiveDataAuditLogOutcome;
typedef std::future<ListSensitiveDataAuditLogOutcome> ListSensitiveDataAuditLogOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListSensitiveDataAuditLogRequest&, const ListSensitiveDataAuditLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSensitiveDataAuditLogAsyncHandler;
typedef Outcome<Error, Model::ListSensitivityLevelResult> ListSensitivityLevelOutcome;
typedef std::future<ListSensitivityLevelOutcome> ListSensitivityLevelOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListSensitivityLevelRequest&, const ListSensitivityLevelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSensitivityLevelAsyncHandler;
typedef Outcome<Error, Model::ListStandardGroupsResult> ListStandardGroupsOutcome;
typedef std::future<ListStandardGroupsOutcome> ListStandardGroupsOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListStandardGroupsRequest&, const ListStandardGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListStandardGroupsAsyncHandler;
@@ -1103,6 +1123,9 @@ namespace AlibabaCloud
ChangeColumnSecLevelOutcome changeColumnSecLevel(const Model::ChangeColumnSecLevelRequest &request)const;
void changeColumnSecLevelAsync(const Model::ChangeColumnSecLevelRequest& request, const ChangeColumnSecLevelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ChangeColumnSecLevelOutcomeCallable changeColumnSecLevelCallable(const Model::ChangeColumnSecLevelRequest& request) const;
ChangeColumnSecurityLevelOutcome changeColumnSecurityLevel(const Model::ChangeColumnSecurityLevelRequest &request)const;
void changeColumnSecurityLevelAsync(const Model::ChangeColumnSecurityLevelRequest& request, const ChangeColumnSecurityLevelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ChangeColumnSecurityLevelOutcomeCallable changeColumnSecurityLevelCallable(const Model::ChangeColumnSecurityLevelRequest& request) const;
ChangeLhDagOwnerOutcome changeLhDagOwner(const Model::ChangeLhDagOwnerRequest &request)const;
void changeLhDagOwnerAsync(const Model::ChangeLhDagOwnerRequest& request, const ChangeLhDagOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ChangeLhDagOwnerOutcomeCallable changeLhDagOwnerCallable(const Model::ChangeLhDagOwnerRequest& request) const;
@@ -1145,6 +1168,9 @@ namespace AlibabaCloud
CreateOrderOutcome createOrder(const Model::CreateOrderRequest &request)const;
void createOrderAsync(const Model::CreateOrderRequest& request, const CreateOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateOrderOutcomeCallable createOrderCallable(const Model::CreateOrderRequest& request) const;
CreateProcCorrectOrderOutcome createProcCorrectOrder(const Model::CreateProcCorrectOrderRequest &request)const;
void createProcCorrectOrderAsync(const Model::CreateProcCorrectOrderRequest& request, const CreateProcCorrectOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateProcCorrectOrderOutcomeCallable createProcCorrectOrderCallable(const Model::CreateProcCorrectOrderRequest& request) const;
CreateProxyOutcome createProxy(const Model::CreateProxyRequest &request)const;
void createProxyAsync(const Model::CreateProxyRequest& request, const CreateProxyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateProxyOutcomeCallable createProxyCallable(const Model::CreateProxyRequest& request) const;
@@ -1247,6 +1273,9 @@ namespace AlibabaCloud
GetAuthorityTemplateItemOutcome getAuthorityTemplateItem(const Model::GetAuthorityTemplateItemRequest &request)const;
void getAuthorityTemplateItemAsync(const Model::GetAuthorityTemplateItemRequest& request, const GetAuthorityTemplateItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetAuthorityTemplateItemOutcomeCallable getAuthorityTemplateItemCallable(const Model::GetAuthorityTemplateItemRequest& request) const;
GetClassificationTemplateOutcome getClassificationTemplate(const Model::GetClassificationTemplateRequest &request)const;
void getClassificationTemplateAsync(const Model::GetClassificationTemplateRequest& request, const GetClassificationTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetClassificationTemplateOutcomeCallable getClassificationTemplateCallable(const Model::GetClassificationTemplateRequest& request) const;
GetDBTaskSQLJobLogOutcome getDBTaskSQLJobLog(const Model::GetDBTaskSQLJobLogRequest &request)const;
void getDBTaskSQLJobLogAsync(const Model::GetDBTaskSQLJobLogRequest& request, const GetDBTaskSQLJobLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDBTaskSQLJobLogOutcomeCallable getDBTaskSQLJobLogCallable(const Model::GetDBTaskSQLJobLogRequest& request) const;
@@ -1511,6 +1540,9 @@ namespace AlibabaCloud
ListSensitiveDataAuditLogOutcome listSensitiveDataAuditLog(const Model::ListSensitiveDataAuditLogRequest &request)const;
void listSensitiveDataAuditLogAsync(const Model::ListSensitiveDataAuditLogRequest& request, const ListSensitiveDataAuditLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListSensitiveDataAuditLogOutcomeCallable listSensitiveDataAuditLogCallable(const Model::ListSensitiveDataAuditLogRequest& request) const;
ListSensitivityLevelOutcome listSensitivityLevel(const Model::ListSensitivityLevelRequest &request)const;
void listSensitivityLevelAsync(const Model::ListSensitivityLevelRequest& request, const ListSensitivityLevelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListSensitivityLevelOutcomeCallable listSensitivityLevelCallable(const Model::ListSensitivityLevelRequest& request) const;
ListStandardGroupsOutcome listStandardGroups(const Model::ListStandardGroupsRequest &request)const;
void listStandardGroupsAsync(const Model::ListStandardGroupsRequest& request, const ListStandardGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListStandardGroupsOutcomeCallable listStandardGroupsCallable(const Model::ListStandardGroupsRequest& request) const;

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHANGECOLUMNSECURITYLEVELREQUEST_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHANGECOLUMNSECURITYLEVELREQUEST_H_
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Dms_enterprise {
namespace Model {
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ChangeColumnSecurityLevelRequest : public RpcServiceRequest {
public:
ChangeColumnSecurityLevelRequest();
~ChangeColumnSecurityLevelRequest();
std::string getNewSensitivityLevel() const;
void setNewSensitivityLevel(const std::string &newSensitivityLevel);
long getTid() const;
void setTid(long tid);
std::string getTableName() const;
void setTableName(const std::string &tableName);
std::string getSchemaName() const;
void setSchemaName(const std::string &schemaName);
bool getIsLogic() const;
void setIsLogic(bool isLogic);
std::string getColumnName() const;
void setColumnName(const std::string &columnName);
long getDbId() const;
void setDbId(long dbId);
private:
std::string newSensitivityLevel_;
long tid_;
std::string tableName_;
std::string schemaName_;
bool isLogic_;
std::string columnName_;
long dbId_;
};
} // namespace Model
} // namespace Dms_enterprise
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHANGECOLUMNSECURITYLEVELREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHANGECOLUMNSECURITYLEVELRESULT_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHANGECOLUMNSECURITYLEVELRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
namespace AlibabaCloud
{
namespace Dms_enterprise
{
namespace Model
{
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ChangeColumnSecurityLevelResult : public ServiceResult
{
public:
ChangeColumnSecurityLevelResult();
explicit ChangeColumnSecurityLevelResult(const std::string &payload);
~ChangeColumnSecurityLevelResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHANGECOLUMNSECURITYLEVELRESULT_H_

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROCCORRECTORDERREQUEST_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROCCORRECTORDERREQUEST_H_
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Dms_enterprise {
namespace Model {
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateProcCorrectOrderRequest : public RpcServiceRequest {
public:
struct Param {
std::string classify;
std::string rollbackSQL;
std::string rollbackSqlType;
struct DbItemListItem {
long dbId;
bool logic;
};
DbItemListItem dbItemListItem;
std::vector<DbItemListItem> dbItemList;
std::string execSQL;
std::string rollbackAttachmentName;
};
CreateProcCorrectOrderRequest();
~CreateProcCorrectOrderRequest();
long getTid() const;
void setTid(long tid);
Param getParam() const;
void setParam(const Param &param);
std::vector<long> getRelatedUserList() const;
void setRelatedUserList(const std::vector<long> &relatedUserList);
std::string getAttachmentKey() const;
void setAttachmentKey(const std::string &attachmentKey);
std::string getComment() const;
void setComment(const std::string &comment);
private:
long tid_;
Param param_;
std::vector<long> relatedUserList_;
std::string attachmentKey_;
std::string comment_;
};
} // namespace Model
} // namespace Dms_enterprise
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROCCORRECTORDERREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROCCORRECTORDERRESULT_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROCCORRECTORDERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
namespace AlibabaCloud
{
namespace Dms_enterprise
{
namespace Model
{
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateProcCorrectOrderResult : public ServiceResult
{
public:
CreateProcCorrectOrderResult();
explicit CreateProcCorrectOrderResult(const std::string &payload);
~CreateProcCorrectOrderResult();
std::vector<std::string> getCreateOrderResult()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::vector<std::string> createOrderResult_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROCCORRECTORDERRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETCLASSIFICATIONTEMPLATEREQUEST_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETCLASSIFICATIONTEMPLATEREQUEST_H_
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Dms_enterprise {
namespace Model {
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetClassificationTemplateRequest : public RpcServiceRequest {
public:
GetClassificationTemplateRequest();
~GetClassificationTemplateRequest();
long getTid() const;
void setTid(long tid);
long getInstanceId() const;
void setInstanceId(long instanceId);
private:
long tid_;
long instanceId_;
};
} // namespace Model
} // namespace Dms_enterprise
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETCLASSIFICATIONTEMPLATEREQUEST_H_

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETCLASSIFICATIONTEMPLATERESULT_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETCLASSIFICATIONTEMPLATERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
namespace AlibabaCloud
{
namespace Dms_enterprise
{
namespace Model
{
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetClassificationTemplateResult : public ServiceResult
{
public:
struct ClassificationResourceTemplateMap
{
long resourceId;
std::string resourceType;
std::string templateType;
long templateId;
};
GetClassificationTemplateResult();
explicit GetClassificationTemplateResult(const std::string &payload);
~GetClassificationTemplateResult();
ClassificationResourceTemplateMap getClassificationResourceTemplateMap()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
ClassificationResourceTemplateMap classificationResourceTemplateMap_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETCLASSIFICATIONTEMPLATERESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVITYLEVELREQUEST_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVITYLEVELREQUEST_H_
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Dms_enterprise {
namespace Model {
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListSensitivityLevelRequest : public RpcServiceRequest {
public:
ListSensitivityLevelRequest();
~ListSensitivityLevelRequest();
long getTid() const;
void setTid(long tid);
std::string getTemplateType() const;
void setTemplateType(const std::string &templateType);
long getTemplateId() const;
void setTemplateId(long templateId);
private:
long tid_;
std::string templateType_;
long templateId_;
};
} // namespace Model
} // namespace Dms_enterprise
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVITYLEVELREQUEST_H_

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVITYLEVELRESULT_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVITYLEVELRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
namespace AlibabaCloud
{
namespace Dms_enterprise
{
namespace Model
{
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListSensitivityLevelResult : public ServiceResult
{
public:
struct SensitivityLevelListItem
{
std::string templateType;
std::string templateId;
bool isPlain;
std::string name;
};
ListSensitivityLevelResult();
explicit ListSensitivityLevelResult(const std::string &payload);
~ListSensitivityLevelResult();
std::vector<SensitivityLevelListItem> getSensitivityLevelList()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::vector<SensitivityLevelListItem> sensitivityLevelList_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVITYLEVELRESULT_H_

View File

@@ -34,6 +34,8 @@ public:
void setIsReset(bool isReset);
long getTid() const;
void setTid(long tid);
bool getIsDefault() const;
void setIsDefault(bool isDefault);
std::string getTableName() const;
void setTableName(const std::string &tableName);
std::string getSchemaName() const;
@@ -50,6 +52,7 @@ public:
private:
bool isReset_;
long tid_;
bool isDefault_;
std::string tableName_;
std::string schemaName_;
bool isLogic_;

View File

@@ -34,10 +34,13 @@ public:
void setTid(long tid);
std::string getOrderId() const;
void setOrderId(const std::string &orderId);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
private:
long tid_;
std::string orderId_;
std::string instanceId_;
};
} // namespace Model
} // namespace Dms_enterprise

View File

@@ -375,6 +375,42 @@ Dms_enterpriseClient::ChangeColumnSecLevelOutcomeCallable Dms_enterpriseClient::
return task->get_future();
}
Dms_enterpriseClient::ChangeColumnSecurityLevelOutcome Dms_enterpriseClient::changeColumnSecurityLevel(const ChangeColumnSecurityLevelRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ChangeColumnSecurityLevelOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ChangeColumnSecurityLevelOutcome(ChangeColumnSecurityLevelResult(outcome.result()));
else
return ChangeColumnSecurityLevelOutcome(outcome.error());
}
void Dms_enterpriseClient::changeColumnSecurityLevelAsync(const ChangeColumnSecurityLevelRequest& request, const ChangeColumnSecurityLevelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, changeColumnSecurityLevel(request), context);
};
asyncExecute(new Runnable(fn));
}
Dms_enterpriseClient::ChangeColumnSecurityLevelOutcomeCallable Dms_enterpriseClient::changeColumnSecurityLevelCallable(const ChangeColumnSecurityLevelRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ChangeColumnSecurityLevelOutcome()>>(
[this, request]()
{
return this->changeColumnSecurityLevel(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dms_enterpriseClient::ChangeLhDagOwnerOutcome Dms_enterpriseClient::changeLhDagOwner(const ChangeLhDagOwnerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -879,6 +915,42 @@ Dms_enterpriseClient::CreateOrderOutcomeCallable Dms_enterpriseClient::createOrd
return task->get_future();
}
Dms_enterpriseClient::CreateProcCorrectOrderOutcome Dms_enterpriseClient::createProcCorrectOrder(const CreateProcCorrectOrderRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateProcCorrectOrderOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateProcCorrectOrderOutcome(CreateProcCorrectOrderResult(outcome.result()));
else
return CreateProcCorrectOrderOutcome(outcome.error());
}
void Dms_enterpriseClient::createProcCorrectOrderAsync(const CreateProcCorrectOrderRequest& request, const CreateProcCorrectOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createProcCorrectOrder(request), context);
};
asyncExecute(new Runnable(fn));
}
Dms_enterpriseClient::CreateProcCorrectOrderOutcomeCallable Dms_enterpriseClient::createProcCorrectOrderCallable(const CreateProcCorrectOrderRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateProcCorrectOrderOutcome()>>(
[this, request]()
{
return this->createProcCorrectOrder(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dms_enterpriseClient::CreateProxyOutcome Dms_enterpriseClient::createProxy(const CreateProxyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2103,6 +2175,42 @@ Dms_enterpriseClient::GetAuthorityTemplateItemOutcomeCallable Dms_enterpriseClie
return task->get_future();
}
Dms_enterpriseClient::GetClassificationTemplateOutcome Dms_enterpriseClient::getClassificationTemplate(const GetClassificationTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetClassificationTemplateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetClassificationTemplateOutcome(GetClassificationTemplateResult(outcome.result()));
else
return GetClassificationTemplateOutcome(outcome.error());
}
void Dms_enterpriseClient::getClassificationTemplateAsync(const GetClassificationTemplateRequest& request, const GetClassificationTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getClassificationTemplate(request), context);
};
asyncExecute(new Runnable(fn));
}
Dms_enterpriseClient::GetClassificationTemplateOutcomeCallable Dms_enterpriseClient::getClassificationTemplateCallable(const GetClassificationTemplateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetClassificationTemplateOutcome()>>(
[this, request]()
{
return this->getClassificationTemplate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dms_enterpriseClient::GetDBTaskSQLJobLogOutcome Dms_enterpriseClient::getDBTaskSQLJobLog(const GetDBTaskSQLJobLogRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5271,6 +5379,42 @@ Dms_enterpriseClient::ListSensitiveDataAuditLogOutcomeCallable Dms_enterpriseCli
return task->get_future();
}
Dms_enterpriseClient::ListSensitivityLevelOutcome Dms_enterpriseClient::listSensitivityLevel(const ListSensitivityLevelRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListSensitivityLevelOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListSensitivityLevelOutcome(ListSensitivityLevelResult(outcome.result()));
else
return ListSensitivityLevelOutcome(outcome.error());
}
void Dms_enterpriseClient::listSensitivityLevelAsync(const ListSensitivityLevelRequest& request, const ListSensitivityLevelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listSensitivityLevel(request), context);
};
asyncExecute(new Runnable(fn));
}
Dms_enterpriseClient::ListSensitivityLevelOutcomeCallable Dms_enterpriseClient::listSensitivityLevelCallable(const ListSensitivityLevelRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListSensitivityLevelOutcome()>>(
[this, request]()
{
return this->listSensitivityLevel(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dms_enterpriseClient::ListStandardGroupsOutcome Dms_enterpriseClient::listStandardGroups(const ListStandardGroupsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/ChangeColumnSecurityLevelRequest.h>
using AlibabaCloud::Dms_enterprise::Model::ChangeColumnSecurityLevelRequest;
ChangeColumnSecurityLevelRequest::ChangeColumnSecurityLevelRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ChangeColumnSecurityLevel") {
setMethod(HttpRequest::Method::Post);
}
ChangeColumnSecurityLevelRequest::~ChangeColumnSecurityLevelRequest() {}
std::string ChangeColumnSecurityLevelRequest::getNewSensitivityLevel() const {
return newSensitivityLevel_;
}
void ChangeColumnSecurityLevelRequest::setNewSensitivityLevel(const std::string &newSensitivityLevel) {
newSensitivityLevel_ = newSensitivityLevel;
setParameter(std::string("NewSensitivityLevel"), newSensitivityLevel);
}
long ChangeColumnSecurityLevelRequest::getTid() const {
return tid_;
}
void ChangeColumnSecurityLevelRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
std::string ChangeColumnSecurityLevelRequest::getTableName() const {
return tableName_;
}
void ChangeColumnSecurityLevelRequest::setTableName(const std::string &tableName) {
tableName_ = tableName;
setParameter(std::string("TableName"), tableName);
}
std::string ChangeColumnSecurityLevelRequest::getSchemaName() const {
return schemaName_;
}
void ChangeColumnSecurityLevelRequest::setSchemaName(const std::string &schemaName) {
schemaName_ = schemaName;
setParameter(std::string("SchemaName"), schemaName);
}
bool ChangeColumnSecurityLevelRequest::getIsLogic() const {
return isLogic_;
}
void ChangeColumnSecurityLevelRequest::setIsLogic(bool isLogic) {
isLogic_ = isLogic;
setParameter(std::string("IsLogic"), isLogic ? "true" : "false");
}
std::string ChangeColumnSecurityLevelRequest::getColumnName() const {
return columnName_;
}
void ChangeColumnSecurityLevelRequest::setColumnName(const std::string &columnName) {
columnName_ = columnName;
setParameter(std::string("ColumnName"), columnName);
}
long ChangeColumnSecurityLevelRequest::getDbId() const {
return dbId_;
}
void ChangeColumnSecurityLevelRequest::setDbId(long dbId) {
dbId_ = dbId;
setParameter(std::string("DbId"), std::to_string(dbId));
}

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/dms-enterprise/model/ChangeColumnSecurityLevelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ChangeColumnSecurityLevelResult::ChangeColumnSecurityLevelResult() :
ServiceResult()
{}
ChangeColumnSecurityLevelResult::ChangeColumnSecurityLevelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ChangeColumnSecurityLevelResult::~ChangeColumnSecurityLevelResult()
{}
void ChangeColumnSecurityLevelResult::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["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string ChangeColumnSecurityLevelResult::getErrorCode()const
{
return errorCode_;
}
std::string ChangeColumnSecurityLevelResult::getErrorMessage()const
{
return errorMessage_;
}
bool ChangeColumnSecurityLevelResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/CreateProcCorrectOrderRequest.h>
using AlibabaCloud::Dms_enterprise::Model::CreateProcCorrectOrderRequest;
CreateProcCorrectOrderRequest::CreateProcCorrectOrderRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateProcCorrectOrder") {
setMethod(HttpRequest::Method::Post);
}
CreateProcCorrectOrderRequest::~CreateProcCorrectOrderRequest() {}
long CreateProcCorrectOrderRequest::getTid() const {
return tid_;
}
void CreateProcCorrectOrderRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
CreateProcCorrectOrderRequest::Param CreateProcCorrectOrderRequest::getParam() const {
return param_;
}
void CreateProcCorrectOrderRequest::setParam(const CreateProcCorrectOrderRequest::Param &param) {
param_ = param;
setParameter(std::string("Param") + ".Classify", param.classify);
setParameter(std::string("Param") + ".RollbackSQL", param.rollbackSQL);
setParameter(std::string("Param") + ".RollbackSqlType", param.rollbackSqlType);
for(int dep1 = 0; dep1 != param.dbItemList.size(); dep1++) {
setParameter(std::string("Param") + ".DbItemList." + std::to_string(dep1 + 1) + ".DbId", std::to_string(param.dbItemList[dep1].dbId));
setParameter(std::string("Param") + ".DbItemList." + std::to_string(dep1 + 1) + ".Logic", param.dbItemList[dep1].logic ? "true" : "false");
}
setParameter(std::string("Param") + ".ExecSQL", param.execSQL);
setParameter(std::string("Param") + ".RollbackAttachmentName", param.rollbackAttachmentName);
}
std::vector<CreateProcCorrectOrderRequest::long> CreateProcCorrectOrderRequest::getRelatedUserList() const {
return relatedUserList_;
}
void CreateProcCorrectOrderRequest::setRelatedUserList(const std::vector<CreateProcCorrectOrderRequest::long> &relatedUserList) {
relatedUserList_ = relatedUserList;
for(int dep1 = 0; dep1 != relatedUserList.size(); dep1++) {
setParameter(std::string("RelatedUserList") + "." + std::to_string(dep1 + 1), std::to_string(relatedUserList[dep1]));
}
}
std::string CreateProcCorrectOrderRequest::getAttachmentKey() const {
return attachmentKey_;
}
void CreateProcCorrectOrderRequest::setAttachmentKey(const std::string &attachmentKey) {
attachmentKey_ = attachmentKey;
setParameter(std::string("AttachmentKey"), attachmentKey);
}
std::string CreateProcCorrectOrderRequest::getComment() const {
return comment_;
}
void CreateProcCorrectOrderRequest::setComment(const std::string &comment) {
comment_ = comment;
setParameter(std::string("Comment"), comment);
}

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/dms-enterprise/model/CreateProcCorrectOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
CreateProcCorrectOrderResult::CreateProcCorrectOrderResult() :
ServiceResult()
{}
CreateProcCorrectOrderResult::CreateProcCorrectOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateProcCorrectOrderResult::~CreateProcCorrectOrderResult()
{}
void CreateProcCorrectOrderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCreateOrderResult = value["CreateOrderResult"]["OrderIds"];
for (const auto &item : allCreateOrderResult)
createOrderResult_.push_back(item.asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
}
std::vector<std::string> CreateProcCorrectOrderResult::getCreateOrderResult()const
{
return createOrderResult_;
}
std::string CreateProcCorrectOrderResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateProcCorrectOrderResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateProcCorrectOrderResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/GetClassificationTemplateRequest.h>
using AlibabaCloud::Dms_enterprise::Model::GetClassificationTemplateRequest;
GetClassificationTemplateRequest::GetClassificationTemplateRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetClassificationTemplate") {
setMethod(HttpRequest::Method::Post);
}
GetClassificationTemplateRequest::~GetClassificationTemplateRequest() {}
long GetClassificationTemplateRequest::getTid() const {
return tid_;
}
void GetClassificationTemplateRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
long GetClassificationTemplateRequest::getInstanceId() const {
return instanceId_;
}
void GetClassificationTemplateRequest::setInstanceId(long instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), std::to_string(instanceId));
}

View File

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

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/ListSensitivityLevelRequest.h>
using AlibabaCloud::Dms_enterprise::Model::ListSensitivityLevelRequest;
ListSensitivityLevelRequest::ListSensitivityLevelRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListSensitivityLevel") {
setMethod(HttpRequest::Method::Get);
}
ListSensitivityLevelRequest::~ListSensitivityLevelRequest() {}
long ListSensitivityLevelRequest::getTid() const {
return tid_;
}
void ListSensitivityLevelRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
std::string ListSensitivityLevelRequest::getTemplateType() const {
return templateType_;
}
void ListSensitivityLevelRequest::setTemplateType(const std::string &templateType) {
templateType_ = templateType;
setParameter(std::string("TemplateType"), templateType);
}
long ListSensitivityLevelRequest::getTemplateId() const {
return templateId_;
}
void ListSensitivityLevelRequest::setTemplateId(long templateId) {
templateId_ = templateId;
setParameter(std::string("TemplateId"), std::to_string(templateId));
}

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/dms-enterprise/model/ListSensitivityLevelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ListSensitivityLevelResult::ListSensitivityLevelResult() :
ServiceResult()
{}
ListSensitivityLevelResult::ListSensitivityLevelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListSensitivityLevelResult::~ListSensitivityLevelResult()
{}
void ListSensitivityLevelResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSensitivityLevelListNode = value["SensitivityLevelList"]["SensitivityLevelListItem"];
for (auto valueSensitivityLevelListSensitivityLevelListItem : allSensitivityLevelListNode)
{
SensitivityLevelListItem sensitivityLevelListObject;
if(!valueSensitivityLevelListSensitivityLevelListItem["Name"].isNull())
sensitivityLevelListObject.name = valueSensitivityLevelListSensitivityLevelListItem["Name"].asString();
if(!valueSensitivityLevelListSensitivityLevelListItem["TemplateId"].isNull())
sensitivityLevelListObject.templateId = valueSensitivityLevelListSensitivityLevelListItem["TemplateId"].asString();
if(!valueSensitivityLevelListSensitivityLevelListItem["TemplateType"].isNull())
sensitivityLevelListObject.templateType = valueSensitivityLevelListSensitivityLevelListItem["TemplateType"].asString();
if(!valueSensitivityLevelListSensitivityLevelListItem["IsPlain"].isNull())
sensitivityLevelListObject.isPlain = valueSensitivityLevelListSensitivityLevelListItem["IsPlain"].asString() == "true";
sensitivityLevelList_.push_back(sensitivityLevelListObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
}
std::vector<ListSensitivityLevelResult::SensitivityLevelListItem> ListSensitivityLevelResult::getSensitivityLevelList()const
{
return sensitivityLevelList_;
}
std::string ListSensitivityLevelResult::getErrorCode()const
{
return errorCode_;
}
std::string ListSensitivityLevelResult::getErrorMessage()const
{
return errorMessage_;
}
bool ListSensitivityLevelResult::getSuccess()const
{
return success_;
}

View File

@@ -43,6 +43,15 @@ void ModifyDesensitizationStrategyRequest::setTid(long tid) {
setParameter(std::string("Tid"), std::to_string(tid));
}
bool ModifyDesensitizationStrategyRequest::getIsDefault() const {
return isDefault_;
}
void ModifyDesensitizationStrategyRequest::setIsDefault(bool isDefault) {
isDefault_ = isDefault;
setParameter(std::string("IsDefault"), isDefault ? "true" : "false");
}
std::string ModifyDesensitizationStrategyRequest::getTableName() const {
return tableName_;
}

View File

@@ -43,3 +43,12 @@ void RefundPayAsYouGoOrderRequest::setOrderId(const std::string &orderId) {
setParameter(std::string("OrderId"), orderId);
}
std::string RefundPayAsYouGoOrderRequest::getInstanceId() const {
return instanceId_;
}
void RefundPayAsYouGoOrderRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}