diff --git a/VERSION b/VERSION index 806985903..20e46c7da 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1765 \ No newline at end of file +1.36.1766 \ No newline at end of file diff --git a/dms-enterprise/CMakeLists.txt b/dms-enterprise/CMakeLists.txt index f059f1855..6773ac171 100644 --- a/dms-enterprise/CMakeLists.txt +++ b/dms-enterprise/CMakeLists.txt @@ -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 diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h b/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h index ad2b4e83d..86d9097b6 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h @@ -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 ChangeColumnSecLevelOutcome; typedef std::future ChangeColumnSecLevelOutcomeCallable; typedef std::function&)> ChangeColumnSecLevelAsyncHandler; + typedef Outcome ChangeColumnSecurityLevelOutcome; + typedef std::future ChangeColumnSecurityLevelOutcomeCallable; + typedef std::function&)> ChangeColumnSecurityLevelAsyncHandler; typedef Outcome ChangeLhDagOwnerOutcome; typedef std::future ChangeLhDagOwnerOutcomeCallable; typedef std::function&)> ChangeLhDagOwnerAsyncHandler; @@ -516,6 +527,9 @@ namespace AlibabaCloud typedef Outcome CreateOrderOutcome; typedef std::future CreateOrderOutcomeCallable; typedef std::function&)> CreateOrderAsyncHandler; + typedef Outcome CreateProcCorrectOrderOutcome; + typedef std::future CreateProcCorrectOrderOutcomeCallable; + typedef std::function&)> CreateProcCorrectOrderAsyncHandler; typedef Outcome CreateProxyOutcome; typedef std::future CreateProxyOutcomeCallable; typedef std::function&)> CreateProxyAsyncHandler; @@ -618,6 +632,9 @@ namespace AlibabaCloud typedef Outcome GetAuthorityTemplateItemOutcome; typedef std::future GetAuthorityTemplateItemOutcomeCallable; typedef std::function&)> GetAuthorityTemplateItemAsyncHandler; + typedef Outcome GetClassificationTemplateOutcome; + typedef std::future GetClassificationTemplateOutcomeCallable; + typedef std::function&)> GetClassificationTemplateAsyncHandler; typedef Outcome GetDBTaskSQLJobLogOutcome; typedef std::future GetDBTaskSQLJobLogOutcomeCallable; typedef std::function&)> GetDBTaskSQLJobLogAsyncHandler; @@ -882,6 +899,9 @@ namespace AlibabaCloud typedef Outcome ListSensitiveDataAuditLogOutcome; typedef std::future ListSensitiveDataAuditLogOutcomeCallable; typedef std::function&)> ListSensitiveDataAuditLogAsyncHandler; + typedef Outcome ListSensitivityLevelOutcome; + typedef std::future ListSensitivityLevelOutcomeCallable; + typedef std::function&)> ListSensitivityLevelAsyncHandler; typedef Outcome ListStandardGroupsOutcome; typedef std::future ListStandardGroupsOutcomeCallable; typedef std::function&)> 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& context = nullptr) const; ListStandardGroupsOutcomeCallable listStandardGroupsCallable(const Model::ListStandardGroupsRequest& request) const; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ChangeColumnSecurityLevelRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ChangeColumnSecurityLevelRequest.h new file mode 100644 index 000000000..e4e3dd813 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ChangeColumnSecurityLevelRequest.h @@ -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 +#include +#include +#include +#include + +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_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ChangeColumnSecurityLevelResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ChangeColumnSecurityLevelResult.h new file mode 100644 index 000000000..609d7e0da --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ChangeColumnSecurityLevelResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProcCorrectOrderRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProcCorrectOrderRequest.h new file mode 100644 index 000000000..258a79608 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProcCorrectOrderRequest.h @@ -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 +#include +#include +#include +#include + +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 dbItemList; + std::string execSQL; + std::string rollbackAttachmentName; + }; + CreateProcCorrectOrderRequest(); + ~CreateProcCorrectOrderRequest(); + long getTid() const; + void setTid(long tid); + Param getParam() const; + void setParam(const Param ¶m); + std::vector getRelatedUserList() const; + void setRelatedUserList(const std::vector &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 relatedUserList_; + std::string attachmentKey_; + std::string comment_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROCCORRECTORDERREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProcCorrectOrderResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProcCorrectOrderResult.h new file mode 100644 index 000000000..80eb07bf5 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProcCorrectOrderResult.h @@ -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 +#include +#include +#include +#include + +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 getCreateOrderResult()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector createOrderResult_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROCCORRECTORDERRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetClassificationTemplateRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetClassificationTemplateRequest.h new file mode 100644 index 000000000..43062943d --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetClassificationTemplateRequest.h @@ -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 +#include +#include +#include +#include + +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_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetClassificationTemplateResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetClassificationTemplateResult.h new file mode 100644 index 000000000..e35195779 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetClassificationTemplateResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitivityLevelRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitivityLevelRequest.h new file mode 100644 index 000000000..4da223d93 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitivityLevelRequest.h @@ -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 +#include +#include +#include +#include + +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_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitivityLevelResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitivityLevelResult.h new file mode 100644 index 000000000..f4823145e --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitivityLevelResult.h @@ -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 +#include +#include +#include +#include + +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 getSensitivityLevelList()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector sensitivityLevelList_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVITYLEVELRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ModifyDesensitizationStrategyRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ModifyDesensitizationStrategyRequest.h index 01dff6820..3032d71f3 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ModifyDesensitizationStrategyRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ModifyDesensitizationStrategyRequest.h @@ -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_; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RefundPayAsYouGoOrderRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RefundPayAsYouGoOrderRequest.h index 417b88fd8..be4c65f8e 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RefundPayAsYouGoOrderRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RefundPayAsYouGoOrderRequest.h @@ -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 diff --git a/dms-enterprise/src/Dms-enterpriseClient.cc b/dms-enterprise/src/Dms-enterpriseClient.cc index 403eb8a02..c672b238a 100644 --- a/dms-enterprise/src/Dms-enterpriseClient.cc +++ b/dms-enterprise/src/Dms-enterpriseClient.cc @@ -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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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(); diff --git a/dms-enterprise/src/model/ChangeColumnSecurityLevelRequest.cc b/dms-enterprise/src/model/ChangeColumnSecurityLevelRequest.cc new file mode 100644 index 000000000..9d195ec22 --- /dev/null +++ b/dms-enterprise/src/model/ChangeColumnSecurityLevelRequest.cc @@ -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 + +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)); +} + diff --git a/dms-enterprise/src/model/ChangeColumnSecurityLevelResult.cc b/dms-enterprise/src/model/ChangeColumnSecurityLevelResult.cc new file mode 100644 index 000000000..fef898795 --- /dev/null +++ b/dms-enterprise/src/model/ChangeColumnSecurityLevelResult.cc @@ -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 +#include + +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_; +} + diff --git a/dms-enterprise/src/model/CreateProcCorrectOrderRequest.cc b/dms-enterprise/src/model/CreateProcCorrectOrderRequest.cc new file mode 100644 index 000000000..17fc9749f --- /dev/null +++ b/dms-enterprise/src/model/CreateProcCorrectOrderRequest.cc @@ -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 + +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 ¶m) { + 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::getRelatedUserList() const { + return relatedUserList_; +} + +void CreateProcCorrectOrderRequest::setRelatedUserList(const std::vector &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); +} + diff --git a/dms-enterprise/src/model/CreateProcCorrectOrderResult.cc b/dms-enterprise/src/model/CreateProcCorrectOrderResult.cc new file mode 100644 index 000000000..94f118c60 --- /dev/null +++ b/dms-enterprise/src/model/CreateProcCorrectOrderResult.cc @@ -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 +#include + +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 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_; +} + diff --git a/dms-enterprise/src/model/GetClassificationTemplateRequest.cc b/dms-enterprise/src/model/GetClassificationTemplateRequest.cc new file mode 100644 index 000000000..6abb02a40 --- /dev/null +++ b/dms-enterprise/src/model/GetClassificationTemplateRequest.cc @@ -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 + +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)); +} + diff --git a/dms-enterprise/src/model/GetClassificationTemplateResult.cc b/dms-enterprise/src/model/GetClassificationTemplateResult.cc new file mode 100644 index 000000000..977abb424 --- /dev/null +++ b/dms-enterprise/src/model/GetClassificationTemplateResult.cc @@ -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 +#include + +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_; +} + diff --git a/dms-enterprise/src/model/ListSensitivityLevelRequest.cc b/dms-enterprise/src/model/ListSensitivityLevelRequest.cc new file mode 100644 index 000000000..2fb4ef782 --- /dev/null +++ b/dms-enterprise/src/model/ListSensitivityLevelRequest.cc @@ -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 + +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)); +} + diff --git a/dms-enterprise/src/model/ListSensitivityLevelResult.cc b/dms-enterprise/src/model/ListSensitivityLevelResult.cc new file mode 100644 index 000000000..1d4ed31e5 --- /dev/null +++ b/dms-enterprise/src/model/ListSensitivityLevelResult.cc @@ -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 +#include + +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::getSensitivityLevelList()const +{ + return sensitivityLevelList_; +} + +std::string ListSensitivityLevelResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListSensitivityLevelResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListSensitivityLevelResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ModifyDesensitizationStrategyRequest.cc b/dms-enterprise/src/model/ModifyDesensitizationStrategyRequest.cc index 82210abe8..8af94cd5e 100644 --- a/dms-enterprise/src/model/ModifyDesensitizationStrategyRequest.cc +++ b/dms-enterprise/src/model/ModifyDesensitizationStrategyRequest.cc @@ -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_; } diff --git a/dms-enterprise/src/model/RefundPayAsYouGoOrderRequest.cc b/dms-enterprise/src/model/RefundPayAsYouGoOrderRequest.cc index 934b44b2f..3e7d94647 100644 --- a/dms-enterprise/src/model/RefundPayAsYouGoOrderRequest.cc +++ b/dms-enterprise/src/model/RefundPayAsYouGoOrderRequest.cc @@ -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); +} +