diff --git a/CHANGELOG b/CHANGELOG index b3aee5413..daf4ddefe 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-06-10 Version: 1.36.782 +- Support SQLReview Order API. + 2021-06-10 Version: 1.36.781 - Generated 2016-11-01 for `live`. diff --git a/VERSION b/VERSION index fb59d2fd1..77ba666bc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.781 \ No newline at end of file +1.36.782 \ No newline at end of file diff --git a/dms-enterprise/CMakeLists.txt b/dms-enterprise/CMakeLists.txt index fe35811e9..e7d0fa784 100644 --- a/dms-enterprise/CMakeLists.txt +++ b/dms-enterprise/CMakeLists.txt @@ -37,6 +37,8 @@ set(dms-enterprise_public_header_model include/alibabacloud/dms-enterprise/model/CreateOrderResult.h include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskRequest.h include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskResult.h + include/alibabacloud/dms-enterprise/model/CreateSQLReviewOrderRequest.h + include/alibabacloud/dms-enterprise/model/CreateSQLReviewOrderResult.h include/alibabacloud/dms-enterprise/model/CreateStructSyncOrderRequest.h include/alibabacloud/dms-enterprise/model/CreateStructSyncOrderResult.h include/alibabacloud/dms-enterprise/model/CreateUploadFileJobRequest.h @@ -97,6 +99,8 @@ set(dms-enterprise_public_header_model include/alibabacloud/dms-enterprise/model/GetPermApplyOrderDetailResult.h include/alibabacloud/dms-enterprise/model/GetPhysicalDatabaseRequest.h include/alibabacloud/dms-enterprise/model/GetPhysicalDatabaseResult.h + include/alibabacloud/dms-enterprise/model/GetSQLReviewCheckResultStatusRequest.h + include/alibabacloud/dms-enterprise/model/GetSQLReviewCheckResultStatusResult.h include/alibabacloud/dms-enterprise/model/GetStructSyncExecSqlDetailRequest.h include/alibabacloud/dms-enterprise/model/GetStructSyncExecSqlDetailResult.h include/alibabacloud/dms-enterprise/model/GetStructSyncJobAnalyzeResultRequest.h @@ -139,6 +143,8 @@ set(dms-enterprise_public_header_model include/alibabacloud/dms-enterprise/model/ListLogicTablesResult.h include/alibabacloud/dms-enterprise/model/ListOrdersRequest.h include/alibabacloud/dms-enterprise/model/ListOrdersResult.h + include/alibabacloud/dms-enterprise/model/ListSQLReviewOriginSQLRequest.h + include/alibabacloud/dms-enterprise/model/ListSQLReviewOriginSQLResult.h include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsRequest.h include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsResult.h include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsDetailRequest.h @@ -198,6 +204,8 @@ set(dms-enterprise_src src/model/CreateOrderResult.cc src/model/CreatePublishGroupTaskRequest.cc src/model/CreatePublishGroupTaskResult.cc + src/model/CreateSQLReviewOrderRequest.cc + src/model/CreateSQLReviewOrderResult.cc src/model/CreateStructSyncOrderRequest.cc src/model/CreateStructSyncOrderResult.cc src/model/CreateUploadFileJobRequest.cc @@ -258,6 +266,8 @@ set(dms-enterprise_src src/model/GetPermApplyOrderDetailResult.cc src/model/GetPhysicalDatabaseRequest.cc src/model/GetPhysicalDatabaseResult.cc + src/model/GetSQLReviewCheckResultStatusRequest.cc + src/model/GetSQLReviewCheckResultStatusResult.cc src/model/GetStructSyncExecSqlDetailRequest.cc src/model/GetStructSyncExecSqlDetailResult.cc src/model/GetStructSyncJobAnalyzeResultRequest.cc @@ -300,6 +310,8 @@ set(dms-enterprise_src src/model/ListLogicTablesResult.cc src/model/ListOrdersRequest.cc src/model/ListOrdersResult.cc + src/model/ListSQLReviewOriginSQLRequest.cc + src/model/ListSQLReviewOriginSQLResult.cc src/model/ListSensitiveColumnsRequest.cc src/model/ListSensitiveColumnsResult.cc src/model/ListSensitiveColumnsDetailRequest.cc diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h b/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h index 1129b8c6c..325e08996 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h @@ -38,6 +38,8 @@ #include "model/CreateOrderResult.h" #include "model/CreatePublishGroupTaskRequest.h" #include "model/CreatePublishGroupTaskResult.h" +#include "model/CreateSQLReviewOrderRequest.h" +#include "model/CreateSQLReviewOrderResult.h" #include "model/CreateStructSyncOrderRequest.h" #include "model/CreateStructSyncOrderResult.h" #include "model/CreateUploadFileJobRequest.h" @@ -98,6 +100,8 @@ #include "model/GetPermApplyOrderDetailResult.h" #include "model/GetPhysicalDatabaseRequest.h" #include "model/GetPhysicalDatabaseResult.h" +#include "model/GetSQLReviewCheckResultStatusRequest.h" +#include "model/GetSQLReviewCheckResultStatusResult.h" #include "model/GetStructSyncExecSqlDetailRequest.h" #include "model/GetStructSyncExecSqlDetailResult.h" #include "model/GetStructSyncJobAnalyzeResultRequest.h" @@ -140,6 +144,8 @@ #include "model/ListLogicTablesResult.h" #include "model/ListOrdersRequest.h" #include "model/ListOrdersResult.h" +#include "model/ListSQLReviewOriginSQLRequest.h" +#include "model/ListSQLReviewOriginSQLResult.h" #include "model/ListSensitiveColumnsRequest.h" #include "model/ListSensitiveColumnsResult.h" #include "model/ListSensitiveColumnsDetailRequest.h" @@ -213,6 +219,9 @@ namespace AlibabaCloud typedef Outcome CreatePublishGroupTaskOutcome; typedef std::future CreatePublishGroupTaskOutcomeCallable; typedef std::function&)> CreatePublishGroupTaskAsyncHandler; + typedef Outcome CreateSQLReviewOrderOutcome; + typedef std::future CreateSQLReviewOrderOutcomeCallable; + typedef std::function&)> CreateSQLReviewOrderAsyncHandler; typedef Outcome CreateStructSyncOrderOutcome; typedef std::future CreateStructSyncOrderOutcomeCallable; typedef std::function&)> CreateStructSyncOrderAsyncHandler; @@ -303,6 +312,9 @@ namespace AlibabaCloud typedef Outcome GetPhysicalDatabaseOutcome; typedef std::future GetPhysicalDatabaseOutcomeCallable; typedef std::function&)> GetPhysicalDatabaseAsyncHandler; + typedef Outcome GetSQLReviewCheckResultStatusOutcome; + typedef std::future GetSQLReviewCheckResultStatusOutcomeCallable; + typedef std::function&)> GetSQLReviewCheckResultStatusAsyncHandler; typedef Outcome GetStructSyncExecSqlDetailOutcome; typedef std::future GetStructSyncExecSqlDetailOutcomeCallable; typedef std::function&)> GetStructSyncExecSqlDetailAsyncHandler; @@ -366,6 +378,9 @@ namespace AlibabaCloud typedef Outcome ListOrdersOutcome; typedef std::future ListOrdersOutcomeCallable; typedef std::function&)> ListOrdersAsyncHandler; + typedef Outcome ListSQLReviewOriginSQLOutcome; + typedef std::future ListSQLReviewOriginSQLOutcomeCallable; + typedef std::function&)> ListSQLReviewOriginSQLAsyncHandler; typedef Outcome ListSensitiveColumnsOutcome; typedef std::future ListSensitiveColumnsOutcomeCallable; typedef std::function&)> ListSensitiveColumnsAsyncHandler; @@ -455,6 +470,9 @@ namespace AlibabaCloud CreatePublishGroupTaskOutcome createPublishGroupTask(const Model::CreatePublishGroupTaskRequest &request)const; void createPublishGroupTaskAsync(const Model::CreatePublishGroupTaskRequest& request, const CreatePublishGroupTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreatePublishGroupTaskOutcomeCallable createPublishGroupTaskCallable(const Model::CreatePublishGroupTaskRequest& request) const; + CreateSQLReviewOrderOutcome createSQLReviewOrder(const Model::CreateSQLReviewOrderRequest &request)const; + void createSQLReviewOrderAsync(const Model::CreateSQLReviewOrderRequest& request, const CreateSQLReviewOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSQLReviewOrderOutcomeCallable createSQLReviewOrderCallable(const Model::CreateSQLReviewOrderRequest& request) const; CreateStructSyncOrderOutcome createStructSyncOrder(const Model::CreateStructSyncOrderRequest &request)const; void createStructSyncOrderAsync(const Model::CreateStructSyncOrderRequest& request, const CreateStructSyncOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateStructSyncOrderOutcomeCallable createStructSyncOrderCallable(const Model::CreateStructSyncOrderRequest& request) const; @@ -545,6 +563,9 @@ namespace AlibabaCloud GetPhysicalDatabaseOutcome getPhysicalDatabase(const Model::GetPhysicalDatabaseRequest &request)const; void getPhysicalDatabaseAsync(const Model::GetPhysicalDatabaseRequest& request, const GetPhysicalDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPhysicalDatabaseOutcomeCallable getPhysicalDatabaseCallable(const Model::GetPhysicalDatabaseRequest& request) const; + GetSQLReviewCheckResultStatusOutcome getSQLReviewCheckResultStatus(const Model::GetSQLReviewCheckResultStatusRequest &request)const; + void getSQLReviewCheckResultStatusAsync(const Model::GetSQLReviewCheckResultStatusRequest& request, const GetSQLReviewCheckResultStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSQLReviewCheckResultStatusOutcomeCallable getSQLReviewCheckResultStatusCallable(const Model::GetSQLReviewCheckResultStatusRequest& request) const; GetStructSyncExecSqlDetailOutcome getStructSyncExecSqlDetail(const Model::GetStructSyncExecSqlDetailRequest &request)const; void getStructSyncExecSqlDetailAsync(const Model::GetStructSyncExecSqlDetailRequest& request, const GetStructSyncExecSqlDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetStructSyncExecSqlDetailOutcomeCallable getStructSyncExecSqlDetailCallable(const Model::GetStructSyncExecSqlDetailRequest& request) const; @@ -608,6 +629,9 @@ namespace AlibabaCloud ListOrdersOutcome listOrders(const Model::ListOrdersRequest &request)const; void listOrdersAsync(const Model::ListOrdersRequest& request, const ListOrdersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListOrdersOutcomeCallable listOrdersCallable(const Model::ListOrdersRequest& request) const; + ListSQLReviewOriginSQLOutcome listSQLReviewOriginSQL(const Model::ListSQLReviewOriginSQLRequest &request)const; + void listSQLReviewOriginSQLAsync(const Model::ListSQLReviewOriginSQLRequest& request, const ListSQLReviewOriginSQLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSQLReviewOriginSQLOutcomeCallable listSQLReviewOriginSQLCallable(const Model::ListSQLReviewOriginSQLRequest& request) const; ListSensitiveColumnsOutcome listSensitiveColumns(const Model::ListSensitiveColumnsRequest &request)const; void listSensitiveColumnsAsync(const Model::ListSensitiveColumnsRequest& request, const ListSensitiveColumnsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSensitiveColumnsOutcomeCallable listSensitiveColumnsCallable(const Model::ListSensitiveColumnsRequest& request) const; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ApproveOrderRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ApproveOrderRequest.h index d39df45b8..fcfb87924 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ApproveOrderRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ApproveOrderRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_APPROVEORDERREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_APPROVEORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ApproveOrderRequest : public RpcServiceRequest - { - - public: - ApproveOrderRequest(); - ~ApproveOrderRequest(); - - long getTid()const; - void setTid(long tid); - long getWorkflowInstanceId()const; - void setWorkflowInstanceId(long workflowInstanceId); - std::string getApprovalType()const; - void setApprovalType(const std::string& approvalType); - std::string getComment()const; - void setComment(const std::string& comment); - - private: - long tid_; - long workflowInstanceId_; - std::string approvalType_; - std::string comment_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_APPROVEORDERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_APPROVEORDERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_APPROVEORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ApproveOrderRequest : public RpcServiceRequest { +public: + ApproveOrderRequest(); + ~ApproveOrderRequest(); + long getTid() const; + void setTid(long tid); + long getWorkflowInstanceId() const; + void setWorkflowInstanceId(long workflowInstanceId); + std::string getApprovalType() const; + void setApprovalType(const std::string &approvalType); + std::string getComment() const; + void setComment(const std::string &comment); + +private: + long tid_; + long workflowInstanceId_; + std::string approvalType_; + std::string comment_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_APPROVEORDERREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CloseOrderRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CloseOrderRequest.h index edec1789d..61e71d28e 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CloseOrderRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CloseOrderRequest.h @@ -1,54 +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_CLOSEORDERREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CLOSEORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CloseOrderRequest : public RpcServiceRequest - { - - public: - CloseOrderRequest(); - ~CloseOrderRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - std::string getCloseReason()const; - void setCloseReason(const std::string& closeReason); - long getTid()const; - void setTid(long tid); - - private: - long orderId_; - std::string closeReason_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CLOSEORDERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CLOSEORDERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CLOSEORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CloseOrderRequest : public RpcServiceRequest { +public: + CloseOrderRequest(); + ~CloseOrderRequest(); + long getOrderId() const; + void setOrderId(long orderId); + std::string getCloseReason() const; + void setCloseReason(const std::string &closeReason); + long getTid() const; + void setTid(long tid); + +private: + long orderId_; + std::string closeReason_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CLOSEORDERREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateDataCorrectOrderRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateDataCorrectOrderRequest.h index 202d0e1b6..0ece19286 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateDataCorrectOrderRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateDataCorrectOrderRequest.h @@ -1,60 +1,70 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATACORRECTORDERREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATACORRECTORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateDataCorrectOrderRequest : public RpcServiceRequest - { - - public: - CreateDataCorrectOrderRequest(); - ~CreateDataCorrectOrderRequest(); - - long getTid()const; - void setTid(long tid); - std::string getAttachmentKey()const; - void setAttachmentKey(const std::string& attachmentKey); - Struct getParam()const; - void setParam(const Struct& param); - std::string getComment()const; - void setComment(const std::string& comment); - Array getRelatedUserList()const; - void setRelatedUserList(const Array& relatedUserList); - - private: - long tid_; - std::string attachmentKey_; - Struct param_; - std::string comment_; - Array relatedUserList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATACORRECTORDERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATACORRECTORDERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATACORRECTORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateDataCorrectOrderRequest : public RpcServiceRequest { +public: + struct Param { + std::string sqlType; + std::string classify; + std::string rollbackSQL; + std::string rollbackSqlType; + struct DbItemListItem { + long dbId; + bool logic; + }; + DbItemListItem dbItemListItem; + std::vector dbItemList; + std::string execSQL; + long estimateAffectRows; + std::string rollbackAttachmentName; + std::string attachmentName; + }; + CreateDataCorrectOrderRequest(); + ~CreateDataCorrectOrderRequest(); + long getTid() const; + void setTid(long tid); + std::string getAttachmentKey() const; + void setAttachmentKey(const std::string &attachmentKey); + Param getParam() const; + void setParam(const Param ¶m); + std::string getComment() const; + void setComment(const std::string &comment); + std::vector getRelatedUserList() const; + void setRelatedUserList(const std::vector &relatedUserList); + +private: + long tid_; + std::string attachmentKey_; + Param param_; + std::string comment_; + std::vector relatedUserList_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATACORRECTORDERREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateDataCronClearOrderRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateDataCronClearOrderRequest.h index 2702e6e4f..81de828eb 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateDataCronClearOrderRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateDataCronClearOrderRequest.h @@ -1,60 +1,75 @@ /* * 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_CREATEDATACRONCLEARORDERREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATACRONCLEARORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateDataCronClearOrderRequest : public RpcServiceRequest - { - - public: - CreateDataCronClearOrderRequest(); - ~CreateDataCronClearOrderRequest(); - - long getTid()const; - void setTid(long tid); - std::string getAttachmentKey()const; - void setAttachmentKey(const std::string& attachmentKey); - Struct getParam()const; - void setParam(const Struct& param); - std::string getComment()const; - void setComment(const std::string& comment); - Array getRelatedUserList()const; - void setRelatedUserList(const Array& relatedUserList); - - private: - long tid_; - std::string attachmentKey_; - Struct param_; - std::string comment_; - Array relatedUserList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATACRONCLEARORDERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATACRONCLEARORDERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATACRONCLEARORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateDataCronClearOrderRequest : public RpcServiceRequest { +public: + struct Param { + std::string classify; + struct DbItemListItem { + long dbId; + bool logic; + }; + DbItemListItem dbItemListItem; + std::vector dbItemList; + struct CronClearItemListItem { + std::string filterSQL; + long remainDays; + std::string tableName; + std::string columnName; + std::string timeUnit; + }; + CronClearItemListItem cronClearItemListItem; + std::vector cronClearItemList; + long durationHour; + std::string cronFormat; + bool specifyDuration; + }; + CreateDataCronClearOrderRequest(); + ~CreateDataCronClearOrderRequest(); + long getTid() const; + void setTid(long tid); + std::string getAttachmentKey() const; + void setAttachmentKey(const std::string &attachmentKey); + Param getParam() const; + void setParam(const Param ¶m); + std::string getComment() const; + void setComment(const std::string &comment); + std::vector getRelatedUserList() const; + void setRelatedUserList(const std::vector &relatedUserList); + +private: + long tid_; + std::string attachmentKey_; + Param param_; + std::string comment_; + std::vector relatedUserList_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATACRONCLEARORDERREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateDataImportOrderRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateDataImportOrderRequest.h index abcbe7d51..ee06d5346 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateDataImportOrderRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateDataImportOrderRequest.h @@ -1,60 +1,74 @@ /* * 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_CREATEDATAIMPORTORDERREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATAIMPORTORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateDataImportOrderRequest : public RpcServiceRequest - { - - public: - CreateDataImportOrderRequest(); - ~CreateDataImportOrderRequest(); - - long getTid()const; - void setTid(long tid); - std::string getAttachmentKey()const; - void setAttachmentKey(const std::string& attachmentKey); - Struct getParam()const; - void setParam(const Struct& param); - std::string getComment()const; - void setComment(const std::string& comment); - Array getRelatedUserList()const; - void setRelatedUserList(const Array& relatedUserList); - - private: - long tid_; - std::string attachmentKey_; - Struct param_; - std::string comment_; - Array relatedUserList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATAIMPORTORDERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATAIMPORTORDERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATAIMPORTORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateDataImportOrderRequest : public RpcServiceRequest { +public: + struct Param { + std::string fileEncoding; + std::string classify; + std::string fileType; + bool csvFirstRowIsColumnDef; + std::string rollbackAttachmentName; + std::string attachmentName; + std::string importMode; + std::string rollbackSQL; + std::string rollbackSqlType; + struct DbItemListItem { + long dbId; + bool logic; + }; + DbItemListItem dbItemListItem; + std::vector dbItemList; + std::string insertType; + std::string tableName; + bool ignoreError; + }; + CreateDataImportOrderRequest(); + ~CreateDataImportOrderRequest(); + long getTid() const; + void setTid(long tid); + std::string getAttachmentKey() const; + void setAttachmentKey(const std::string &attachmentKey); + Param getParam() const; + void setParam(const Param ¶m); + std::string getComment() const; + void setComment(const std::string &comment); + std::vector getRelatedUserList() const; + void setRelatedUserList(const std::vector &relatedUserList); + +private: + long tid_; + std::string attachmentKey_; + Param param_; + std::string comment_; + std::vector relatedUserList_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATAIMPORTORDERREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateFreeLockCorrectOrderRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateFreeLockCorrectOrderRequest.h index 94ab28773..158d53e6a 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateFreeLockCorrectOrderRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateFreeLockCorrectOrderRequest.h @@ -1,60 +1,69 @@ /* * 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_CREATEFREELOCKCORRECTORDERREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEFREELOCKCORRECTORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateFreeLockCorrectOrderRequest : public RpcServiceRequest - { - - public: - CreateFreeLockCorrectOrderRequest(); - ~CreateFreeLockCorrectOrderRequest(); - - long getTid()const; - void setTid(long tid); - std::string getAttachmentKey()const; - void setAttachmentKey(const std::string& attachmentKey); - Struct getParam()const; - void setParam(const Struct& param); - std::string getComment()const; - void setComment(const std::string& comment); - Array getRelatedUserList()const; - void setRelatedUserList(const Array& relatedUserList); - - private: - long tid_; - std::string attachmentKey_; - Struct param_; - std::string comment_; - Array relatedUserList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEFREELOCKCORRECTORDERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEFREELOCKCORRECTORDERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEFREELOCKCORRECTORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateFreeLockCorrectOrderRequest : public RpcServiceRequest { +public: + struct Param { + std::string sqlType; + 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; + std::string attachmentName; + }; + CreateFreeLockCorrectOrderRequest(); + ~CreateFreeLockCorrectOrderRequest(); + long getTid() const; + void setTid(long tid); + std::string getAttachmentKey() const; + void setAttachmentKey(const std::string &attachmentKey); + Param getParam() const; + void setParam(const Param ¶m); + std::string getComment() const; + void setComment(const std::string &comment); + std::vector getRelatedUserList() const; + void setRelatedUserList(const std::vector &relatedUserList); + +private: + long tid_; + std::string attachmentKey_; + Param param_; + std::string comment_; + std::vector relatedUserList_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEFREELOCKCORRECTORDERREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h index d146e45fd..93ee68f37 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h @@ -1,63 +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_CREATEORDERREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateOrderRequest : public RpcServiceRequest - { - - public: - CreateOrderRequest(); - ~CreateOrderRequest(); - - long getTid()const; - void setTid(long tid); - std::string getPluginType()const; - void setPluginType(const std::string& pluginType); - std::string getAttachmentKey()const; - void setAttachmentKey(const std::string& attachmentKey); - std::string getComment()const; - void setComment(const std::string& comment); - std::map getPluginParam()const; - void setPluginParam(const std::map& pluginParam); - std::string getRelatedUserList()const; - void setRelatedUserList(const std::string& relatedUserList); - - private: - long tid_; - std::string pluginType_; - std::string attachmentKey_; - std::string comment_; - std::map pluginParam_; - std::string relatedUserList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEORDERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEORDERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateOrderRequest : public RpcServiceRequest { +public: + CreateOrderRequest(); + ~CreateOrderRequest(); + long getTid() const; + void setTid(long tid); + std::string getPluginType() const; + void setPluginType(const std::string &pluginType); + std::string getAttachmentKey() const; + void setAttachmentKey(const std::string &attachmentKey); + std::string getComment() const; + void setComment(const std::string &comment); + std::map getPluginParam() const; + void setPluginParam(std::map pluginParam); + std::string getRelatedUserList() const; + void setRelatedUserList(const std::string &relatedUserList); + +private: + long tid_; + std::string pluginType_; + std::string attachmentKey_; + std::string comment_; + std::map pluginParam_; + std::string relatedUserList_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEORDERREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskRequest.h index 4f4b6fe25..04defee45 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskRequest.h @@ -1,63 +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_CREATEPUBLISHGROUPTASKREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreatePublishGroupTaskRequest : public RpcServiceRequest - { - - public: - CreatePublishGroupTaskRequest(); - ~CreatePublishGroupTaskRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - long getTid()const; - void setTid(long tid); - int getDbId()const; - void setDbId(int dbId); - std::string getPlanTime()const; - void setPlanTime(const std::string& planTime); - bool getLogic()const; - void setLogic(bool logic); - std::string getPublishStrategy()const; - void setPublishStrategy(const std::string& publishStrategy); - - private: - long orderId_; - long tid_; - int dbId_; - std::string planTime_; - bool logic_; - std::string publishStrategy_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreatePublishGroupTaskRequest : public RpcServiceRequest { +public: + CreatePublishGroupTaskRequest(); + ~CreatePublishGroupTaskRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getTid() const; + void setTid(long tid); + int getDbId() const; + void setDbId(int dbId); + std::string getPlanTime() const; + void setPlanTime(const std::string &planTime); + bool getLogic() const; + void setLogic(bool logic); + std::string getPublishStrategy() const; + void setPublishStrategy(const std::string &publishStrategy); + +private: + long orderId_; + long tid_; + int dbId_; + std::string planTime_; + bool logic_; + std::string publishStrategy_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateSQLReviewOrderRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateSQLReviewOrderRequest.h new file mode 100644 index 000000000..34a0a16d3 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateSQLReviewOrderRequest.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_CREATESQLREVIEWORDERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATESQLREVIEWORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateSQLReviewOrderRequest : public RpcServiceRequest { +public: + struct Param { + std::string string; + std::vector attachmentKeyList; + std::string projectName; + long dbId; + }; + CreateSQLReviewOrderRequest(); + ~CreateSQLReviewOrderRequest(); + long getTid() const; + void setTid(long tid); + Param getParam() const; + void setParam(const Param ¶m); + std::string getComment() const; + void setComment(const std::string &comment); + std::vector getRelatedUserList() const; + void setRelatedUserList(const std::vector &relatedUserList); + +private: + long tid_; + Param param_; + std::string comment_; + std::vector relatedUserList_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATESQLREVIEWORDERREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateSQLReviewOrderResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateSQLReviewOrderResult.h new file mode 100644 index 000000000..5a80fa246 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateSQLReviewOrderResult.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_CREATESQLREVIEWORDERRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATESQLREVIEWORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateSQLReviewOrderResult : public ServiceResult + { + public: + + + CreateSQLReviewOrderResult(); + explicit CreateSQLReviewOrderResult(const std::string &payload); + ~CreateSQLReviewOrderResult(); + 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_CREATESQLREVIEWORDERRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateStructSyncOrderRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateStructSyncOrderRequest.h index 26d433cb6..ea79276af 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateStructSyncOrderRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateStructSyncOrderRequest.h @@ -1,60 +1,78 @@ /* * 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_CREATESTRUCTSYNCORDERREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATESTRUCTSYNCORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateStructSyncOrderRequest : public RpcServiceRequest - { - - public: - CreateStructSyncOrderRequest(); - ~CreateStructSyncOrderRequest(); - - long getTid()const; - void setTid(long tid); - std::string getAttachmentKey()const; - void setAttachmentKey(const std::string& attachmentKey); - Struct getParam()const; - void setParam(const Struct& param); - std::string getComment()const; - void setComment(const std::string& comment); - Array getRelatedUserList()const; - void setRelatedUserList(const Array& relatedUserList); - - private: - long tid_; - std::string attachmentKey_; - Struct param_; - std::string comment_; - Array relatedUserList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATESTRUCTSYNCORDERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATESTRUCTSYNCORDERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATESTRUCTSYNCORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateStructSyncOrderRequest : public RpcServiceRequest { +public: + struct Param { + std::string syncType; + struct TableInfoListItem { + std::string sourceTableName; + std::string targetTableName; + }; + TableInfoListItem tableInfoListItem; + std::vector tableInfoList; + struct Source { + std::string dbSearchName; + std::string versionId; + long dbId; + bool logic; + }; + Source source; + bool ignoreError; + struct Target { + std::string dbSearchName; + std::string versionId; + long dbId; + bool logic; + }; + Target target; + }; + CreateStructSyncOrderRequest(); + ~CreateStructSyncOrderRequest(); + long getTid() const; + void setTid(long tid); + std::string getAttachmentKey() const; + void setAttachmentKey(const std::string &attachmentKey); + Param getParam() const; + void setParam(const Param ¶m); + std::string getComment() const; + void setComment(const std::string &comment); + std::vector getRelatedUserList() const; + void setRelatedUserList(const std::vector &relatedUserList); + +private: + long tid_; + std::string attachmentKey_; + Param param_; + std::string comment_; + std::vector relatedUserList_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATESTRUCTSYNCORDERREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateUploadFileJobRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateUploadFileJobRequest.h index df35c472e..570c95320 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateUploadFileJobRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateUploadFileJobRequest.h @@ -1,60 +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. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEUPLOADFILEJOBREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEUPLOADFILEJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateUploadFileJobRequest : public RpcServiceRequest - { - - public: - CreateUploadFileJobRequest(); - ~CreateUploadFileJobRequest(); - - std::string getUploadType()const; - void setUploadType(const std::string& uploadType); - std::string getFileSource()const; - void setFileSource(const std::string& fileSource); - long getTid()const; - void setTid(long tid); - std::string getFileName()const; - void setFileName(const std::string& fileName); - std::string getUploadURL()const; - void setUploadURL(const std::string& uploadURL); - - private: - std::string uploadType_; - std::string fileSource_; - long tid_; - std::string fileName_; - std::string uploadURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEUPLOADFILEJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEUPLOADFILEJOBREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEUPLOADFILEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateUploadFileJobRequest : public RpcServiceRequest { +public: + CreateUploadFileJobRequest(); + ~CreateUploadFileJobRequest(); + std::string getUploadType() const; + void setUploadType(const std::string &uploadType); + std::string getFileSource() const; + void setFileSource(const std::string &fileSource); + long getTid() const; + void setTid(long tid); + std::string getFileName() const; + void setFileName(const std::string &fileName); + std::string getUploadURL() const; + void setUploadURL(const std::string &uploadURL); + +private: + std::string uploadType_; + std::string fileSource_; + long tid_; + std::string fileName_; + std::string uploadURL_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEUPLOADFILEJOBREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateUploadOSSFileJobRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateUploadOSSFileJobRequest.h index 76ec8903e..a5dbf42fc 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateUploadOSSFileJobRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateUploadOSSFileJobRequest.h @@ -1,60 +1,59 @@ /* * 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_CREATEUPLOADOSSFILEJOBREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEUPLOADOSSFILEJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateUploadOSSFileJobRequest : public RpcServiceRequest - { - - public: - CreateUploadOSSFileJobRequest(); - ~CreateUploadOSSFileJobRequest(); - - std::string getUploadType()const; - void setUploadType(const std::string& uploadType); - std::string getFileSource()const; - void setFileSource(const std::string& fileSource); - long getTid()const; - void setTid(long tid); - std::string getFileName()const; - void setFileName(const std::string& fileName); - Struct getUploadTarget()const; - void setUploadTarget(const Struct& uploadTarget); - - private: - std::string uploadType_; - std::string fileSource_; - long tid_; - std::string fileName_; - Struct uploadTarget_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEUPLOADOSSFILEJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEUPLOADOSSFILEJOBREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEUPLOADOSSFILEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateUploadOSSFileJobRequest : public RpcServiceRequest { +public: + struct UploadTarget { + std::string endpoint; + std::string bucketName; + std::string objectName; + }; + CreateUploadOSSFileJobRequest(); + ~CreateUploadOSSFileJobRequest(); + std::string getUploadType() const; + void setUploadType(const std::string &uploadType); + std::string getFileSource() const; + void setFileSource(const std::string &fileSource); + long getTid() const; + void setTid(long tid); + std::string getFileName() const; + void setFileName(const std::string &fileName); + UploadTarget getUploadTarget() const; + void setUploadTarget(const UploadTarget &uploadTarget); + +private: + std::string uploadType_; + std::string fileSource_; + long tid_; + std::string fileName_; + UploadTarget uploadTarget_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEUPLOADOSSFILEJOBREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteInstanceRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteInstanceRequest.h index 3b5e7d069..480874666 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteInstanceRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteInstanceRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteInstanceRequest : public RpcServiceRequest - { - - public: - DeleteInstanceRequest(); - ~DeleteInstanceRequest(); - - long getTid()const; - void setTid(long tid); - std::string getSid()const; - void setSid(const std::string& sid); - int getPort()const; - void setPort(int port); - std::string getHost()const; - void setHost(const std::string& host); - - private: - long tid_; - std::string sid_; - int port_; - std::string host_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteInstanceRequest : public RpcServiceRequest { +public: + DeleteInstanceRequest(); + ~DeleteInstanceRequest(); + long getTid() const; + void setTid(long tid); + std::string getSid() const; + void setSid(const std::string &sid); + int getPort() const; + void setPort(int port); + std::string getHost() const; + void setHost(const std::string &host); + +private: + long tid_; + std::string sid_; + int port_; + std::string host_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEINSTANCEREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteUserRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteUserRequest.h index 84155561d..0cf26f4ef 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteUserRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteUserRequest.h @@ -1,51 +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_DELETEUSERREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteUserRequest : public RpcServiceRequest - { - - public: - DeleteUserRequest(); - ~DeleteUserRequest(); - - std::string getUid()const; - void setUid(const std::string& uid); - long getTid()const; - void setTid(long tid); - - private: - std::string uid_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEUSERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteUserRequest : public RpcServiceRequest { +public: + DeleteUserRequest(); + ~DeleteUserRequest(); + std::string getUid() const; + void setUid(const std::string &uid); + long getTid() const; + void setTid(long tid); + +private: + std::string uid_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEUSERREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DisableUserRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DisableUserRequest.h index de891b3d0..231d0d677 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DisableUserRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DisableUserRequest.h @@ -1,51 +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_DISABLEUSERREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DISABLEUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DisableUserRequest : public RpcServiceRequest - { - - public: - DisableUserRequest(); - ~DisableUserRequest(); - - std::string getUid()const; - void setUid(const std::string& uid); - long getTid()const; - void setTid(long tid); - - private: - std::string uid_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DISABLEUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DISABLEUSERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DISABLEUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DisableUserRequest : public RpcServiceRequest { +public: + DisableUserRequest(); + ~DisableUserRequest(); + std::string getUid() const; + void setUid(const std::string &uid); + long getTid() const; + void setTid(long tid); + +private: + std::string uid_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DISABLEUSERREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/EnableUserRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/EnableUserRequest.h index 6b3035708..402308861 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/EnableUserRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/EnableUserRequest.h @@ -1,51 +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_ENABLEUSERREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ENABLEUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT EnableUserRequest : public RpcServiceRequest - { - - public: - EnableUserRequest(); - ~EnableUserRequest(); - - std::string getUid()const; - void setUid(const std::string& uid); - long getTid()const; - void setTid(long tid); - - private: - std::string uid_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ENABLEUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ENABLEUSERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ENABLEUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT EnableUserRequest : public RpcServiceRequest { +public: + EnableUserRequest(); + ~EnableUserRequest(); + std::string getUid() const; + void setUid(const std::string &uid); + long getTid() const; + void setTid(long tid); + +private: + std::string uid_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ENABLEUSERREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataCorrectRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataCorrectRequest.h index 22c82c50d..bb91a08c0 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataCorrectRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataCorrectRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATACORRECTREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATACORRECTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ExecuteDataCorrectRequest : public RpcServiceRequest - { - - public: - ExecuteDataCorrectRequest(); - ~ExecuteDataCorrectRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - std::string getActionName()const; - void setActionName(const std::string& actionName); - std::string getTid()const; - void setTid(const std::string& tid); - std::map getActionDetail()const; - void setActionDetail(const std::map& actionDetail); - - private: - long orderId_; - std::string actionName_; - std::string tid_; - std::map actionDetail_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATACORRECTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATACORRECTREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATACORRECTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ExecuteDataCorrectRequest : public RpcServiceRequest { +public: + ExecuteDataCorrectRequest(); + ~ExecuteDataCorrectRequest(); + long getOrderId() const; + void setOrderId(long orderId); + std::string getActionName() const; + void setActionName(const std::string &actionName); + std::string getTid() const; + void setTid(const std::string &tid); + std::map getActionDetail() const; + void setActionDetail(std::map actionDetail); + +private: + long orderId_; + std::string actionName_; + std::string tid_; + std::map actionDetail_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATACORRECTREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataExportRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataExportRequest.h index 2f729085c..8dd4feaf5 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataExportRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteDataExportRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATAEXPORTREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATAEXPORTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ExecuteDataExportRequest : public RpcServiceRequest - { - - public: - ExecuteDataExportRequest(); - ~ExecuteDataExportRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - std::string getActionName()const; - void setActionName(const std::string& actionName); - long getTid()const; - void setTid(long tid); - std::map getActionDetail()const; - void setActionDetail(const std::map& actionDetail); - - private: - long orderId_; - std::string actionName_; - long tid_; - std::map actionDetail_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATAEXPORTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATAEXPORTREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATAEXPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ExecuteDataExportRequest : public RpcServiceRequest { +public: + ExecuteDataExportRequest(); + ~ExecuteDataExportRequest(); + long getOrderId() const; + void setOrderId(long orderId); + std::string getActionName() const; + void setActionName(const std::string &actionName); + long getTid() const; + void setTid(long tid); + std::map getActionDetail() const; + void setActionDetail(std::map actionDetail); + +private: + long orderId_; + std::string actionName_; + long tid_; + std::map actionDetail_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTEDATAEXPORTREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteScriptRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteScriptRequest.h index e93276814..65d2ea61c 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteScriptRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteScriptRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESCRIPTREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESCRIPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ExecuteScriptRequest : public RpcServiceRequest - { - - public: - ExecuteScriptRequest(); - ~ExecuteScriptRequest(); - - std::string getScript()const; - void setScript(const std::string& script); - long getTid()const; - void setTid(long tid); - int getDbId()const; - void setDbId(int dbId); - bool getLogic()const; - void setLogic(bool logic); - - private: - std::string script_; - long tid_; - int dbId_; - bool logic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESCRIPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESCRIPTREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESCRIPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ExecuteScriptRequest : public RpcServiceRequest { +public: + ExecuteScriptRequest(); + ~ExecuteScriptRequest(); + std::string getScript() const; + void setScript(const std::string &script); + long getTid() const; + void setTid(long tid); + int getDbId() const; + void setDbId(int dbId); + bool getLogic() const; + void setLogic(bool logic); + +private: + std::string script_; + long tid_; + int dbId_; + bool logic_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESCRIPTREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteStructSyncRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteStructSyncRequest.h index 89555e488..5232abea9 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteStructSyncRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ExecuteStructSyncRequest.h @@ -1,51 +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_EXECUTESTRUCTSYNCREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESTRUCTSYNCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ExecuteStructSyncRequest : public RpcServiceRequest - { - - public: - ExecuteStructSyncRequest(); - ~ExecuteStructSyncRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - long getTid()const; - void setTid(long tid); - - private: - long orderId_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESTRUCTSYNCREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESTRUCTSYNCREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESTRUCTSYNCREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ExecuteStructSyncRequest : public RpcServiceRequest { +public: + ExecuteStructSyncRequest(); + ~ExecuteStructSyncRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getTid() const; + void setTid(long tid); + +private: + long orderId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESTRUCTSYNCREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailRequest.h index 49c8f9aef..71556a4b7 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailRequest.h @@ -1,51 +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_GETAPPROVALDETAILREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAPPROVALDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetApprovalDetailRequest : public RpcServiceRequest - { - - public: - GetApprovalDetailRequest(); - ~GetApprovalDetailRequest(); - - long getTid()const; - void setTid(long tid); - long getWorkflowInstanceId()const; - void setWorkflowInstanceId(long workflowInstanceId); - - private: - long tid_; - long workflowInstanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAPPROVALDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAPPROVALDETAILREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAPPROVALDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetApprovalDetailRequest : public RpcServiceRequest { +public: + GetApprovalDetailRequest(); + ~GetApprovalDetailRequest(); + long getTid() const; + void setTid(long tid); + long getWorkflowInstanceId() const; + void setWorkflowInstanceId(long workflowInstanceId); + +private: + long tid_; + long workflowInstanceId_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAPPROVALDETAILREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h index 5b0c66e05..bd1541685 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h @@ -34,11 +34,6 @@ namespace AlibabaCloud public: struct ApprovalDetail { - struct CurrentHandler - { - long id; - std::string nickName; - }; struct WorkflowNode { std::string operateTime; @@ -48,10 +43,15 @@ namespace AlibabaCloud long operatorId; std::vector auditUserIdList; }; + struct CurrentHandler + { + long id; + std::string nickName; + }; std::vector currentHandlers; std::vector reasonList; - std::string orderType; std::string description; + std::string orderType; std::string workflowInsCode; long auditId; std::string title; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDBTopologyRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDBTopologyRequest.h index 4553f7667..f290611b7 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDBTopologyRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDBTopologyRequest.h @@ -1,51 +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_GETDBTOPOLOGYREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDBTOPOLOGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDBTopologyRequest : public RpcServiceRequest - { - - public: - GetDBTopologyRequest(); - ~GetDBTopologyRequest(); - - long getLogicDbId()const; - void setLogicDbId(long logicDbId); - long getTid()const; - void setTid(long tid); - - private: - long logicDbId_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDBTOPOLOGYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDBTOPOLOGYREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDBTOPOLOGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDBTopologyRequest : public RpcServiceRequest { +public: + GetDBTopologyRequest(); + ~GetDBTopologyRequest(); + long getLogicDbId() const; + void setLogicDbId(long logicDbId); + long getTid() const; + void setTid(long tid); + +private: + long logicDbId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDBTOPOLOGYREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDBTopologyResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDBTopologyResult.h index 615169579..8810c4675 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDBTopologyResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDBTopologyResult.h @@ -36,24 +36,24 @@ namespace AlibabaCloud { struct DBTopologyInfo { - std::string instanceSource; std::string instanceResourceId; - long instanceId; + std::string instanceSource; std::string searchName; + long instanceId; long dbId; std::string catalogName; std::string regionId; - std::string envType; - std::string dbType; std::string schemaName; + std::string dbType; + std::string envType; }; long logicDbId; std::string searchName; std::string alias; std::string logicDbName; std::vector dBTopologyInfoList; - std::string envType; std::string dbType; + std::string envType; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesRequest.h index 3459816ce..c7a425320 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTBACKUPFILESREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTBACKUPFILESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataCorrectBackupFilesRequest : public RpcServiceRequest - { - - public: - GetDataCorrectBackupFilesRequest(); - ~GetDataCorrectBackupFilesRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - std::string getActionName()const; - void setActionName(const std::string& actionName); - long getTid()const; - void setTid(long tid); - std::map getActionDetail()const; - void setActionDetail(const std::map& actionDetail); - - private: - long orderId_; - std::string actionName_; - long tid_; - std::map actionDetail_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTBACKUPFILESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTBACKUPFILESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTBACKUPFILESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataCorrectBackupFilesRequest : public RpcServiceRequest { +public: + GetDataCorrectBackupFilesRequest(); + ~GetDataCorrectBackupFilesRequest(); + long getOrderId() const; + void setOrderId(long orderId); + std::string getActionName() const; + void setActionName(const std::string &actionName); + long getTid() const; + void setTid(long tid); + std::map getActionDetail() const; + void setActionDetail(std::map actionDetail); + +private: + long orderId_; + std::string actionName_; + long tid_; + std::map actionDetail_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTBACKUPFILESREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailRequest.h index 42a3ffc98..c01ca84b8 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailRequest.h @@ -1,51 +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_GETDATACORRECTORDERDETAILREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTORDERDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataCorrectOrderDetailRequest : public RpcServiceRequest - { - - public: - GetDataCorrectOrderDetailRequest(); - ~GetDataCorrectOrderDetailRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - long getTid()const; - void setTid(long tid); - - private: - long orderId_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTORDERDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTORDERDETAILREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTORDERDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataCorrectOrderDetailRequest : public RpcServiceRequest { +public: + GetDataCorrectOrderDetailRequest(); + ~GetDataCorrectOrderDetailRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getTid() const; + void setTid(long tid); + +private: + long orderId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTORDERDETAILREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailResult.h index b1f0f0ba2..4ada4d9dd 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailResult.h @@ -38,30 +38,30 @@ namespace AlibabaCloud { long estimateAffectRows; bool ignoreAffectRows; - std::string exeSQL; std::string classify; - std::string ignoreAffectRowsReason; + std::string exeSQL; std::string attachmentName; + std::string ignoreAffectRowsReason; std::string sqlType; std::string rbSQLType; long actualAffectRows; std::string rbAttachmentName; std::string rbSQL; }; - struct Database - { - std::string searchName; - int dbId; - bool logic; - std::string envType; - std::string dbType; - }; struct TaskCheckDO { std::string userTip; std::string checkStep; std::string checkStatus; }; + struct Database + { + std::string searchName; + int dbId; + bool logic; + std::string dbType; + std::string envType; + }; OrderDetail orderDetail; std::string status; std::vector databaseList; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectSQLFileRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectSQLFileRequest.h index fbdb5d549..5c69ccdad 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectSQLFileRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectSQLFileRequest.h @@ -1,54 +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_GETDATACORRECTSQLFILEREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTSQLFILEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataCorrectSQLFileRequest : public RpcServiceRequest - { - - public: - GetDataCorrectSQLFileRequest(); - ~GetDataCorrectSQLFileRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - long getTid()const; - void setTid(long tid); - std::string getOrderActionName()const; - void setOrderActionName(const std::string& orderActionName); - - private: - long orderId_; - long tid_; - std::string orderActionName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTSQLFILEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTSQLFILEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTSQLFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataCorrectSQLFileRequest : public RpcServiceRequest { +public: + GetDataCorrectSQLFileRequest(); + ~GetDataCorrectSQLFileRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getTid() const; + void setTid(long tid); + std::string getOrderActionName() const; + void setOrderActionName(const std::string &orderActionName); + +private: + long orderId_; + long tid_; + std::string orderActionName_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTSQLFILEREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectTaskDetailRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectTaskDetailRequest.h index 4c80a7520..7eef72e68 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectTaskDetailRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCorrectTaskDetailRequest.h @@ -1,51 +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_GETDATACORRECTTASKDETAILREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTTASKDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataCorrectTaskDetailRequest : public RpcServiceRequest - { - - public: - GetDataCorrectTaskDetailRequest(); - ~GetDataCorrectTaskDetailRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - long getTid()const; - void setTid(long tid); - - private: - long orderId_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTTASKDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTTASKDETAILREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTTASKDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataCorrectTaskDetailRequest : public RpcServiceRequest { +public: + GetDataCorrectTaskDetailRequest(); + ~GetDataCorrectTaskDetailRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getTid() const; + void setTid(long tid); + +private: + long orderId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACORRECTTASKDETAILREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCronClearTaskDetailListRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCronClearTaskDetailListRequest.h index 654af20c5..86119e54d 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCronClearTaskDetailListRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataCronClearTaskDetailListRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACRONCLEARTASKDETAILLISTREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACRONCLEARTASKDETAILLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataCronClearTaskDetailListRequest : public RpcServiceRequest - { - - public: - GetDataCronClearTaskDetailListRequest(); - ~GetDataCronClearTaskDetailListRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - long getTid()const; - void setTid(long tid); - long getPageSize()const; - void setPageSize(long pageSize); - - private: - long orderId_; - long pageNumber_; - long tid_; - long pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACRONCLEARTASKDETAILLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACRONCLEARTASKDETAILLISTREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACRONCLEARTASKDETAILLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataCronClearTaskDetailListRequest : public RpcServiceRequest { +public: + GetDataCronClearTaskDetailListRequest(); + ~GetDataCronClearTaskDetailListRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getTid() const; + void setTid(long tid); + long getPageSize() const; + void setPageSize(long pageSize); + +private: + long orderId_; + long pageNumber_; + long tid_; + long pageSize_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATACRONCLEARTASKDETAILLISTREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportDownloadURLRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportDownloadURLRequest.h index 8bb54d288..5a8429a85 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportDownloadURLRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportDownloadURLRequest.h @@ -1,54 +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_GETDATAEXPORTDOWNLOADURLREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTDOWNLOADURLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataExportDownloadURLRequest : public RpcServiceRequest - { - - public: - GetDataExportDownloadURLRequest(); - ~GetDataExportDownloadURLRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - std::string getActionName()const; - void setActionName(const std::string& actionName); - long getTid()const; - void setTid(long tid); - - private: - long orderId_; - std::string actionName_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTDOWNLOADURLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTDOWNLOADURLREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTDOWNLOADURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataExportDownloadURLRequest : public RpcServiceRequest { +public: + GetDataExportDownloadURLRequest(); + ~GetDataExportDownloadURLRequest(); + long getOrderId() const; + void setOrderId(long orderId); + std::string getActionName() const; + void setActionName(const std::string &actionName); + long getTid() const; + void setTid(long tid); + +private: + long orderId_; + std::string actionName_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTDOWNLOADURLREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailRequest.h index 5fa366cc6..e4862b351 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailRequest.h @@ -1,51 +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_GETDATAEXPORTORDERDETAILREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTORDERDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataExportOrderDetailRequest : public RpcServiceRequest - { - - public: - GetDataExportOrderDetailRequest(); - ~GetDataExportOrderDetailRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - long getTid()const; - void setTid(long tid); - - private: - long orderId_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTORDERDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTORDERDETAILREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTORDERDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataExportOrderDetailRequest : public RpcServiceRequest { +public: + GetDataExportOrderDetailRequest(); + ~GetDataExportOrderDetailRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getTid() const; + void setTid(long tid); + +private: + long orderId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAEXPORTORDERDETAILREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailResult.h index 347194fa0..094e74971 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailResult.h @@ -34,23 +34,23 @@ namespace AlibabaCloud public: struct DataExportOrderDetail { - struct OrderDetail - { - bool ignoreAffectRows; - std::string exeSQL; - std::string classify; - std::string ignoreAffectRowsReason; - std::string database; - int dbId; - long actualAffectRows; - bool logic; - std::string envType; - }; struct KeyInfo { std::string jobStatus; long preCheckId; }; + struct OrderDetail + { + bool ignoreAffectRows; + std::string classify; + std::string exeSQL; + std::string ignoreAffectRowsReason; + std::string database; + int dbId; + bool logic; + long actualAffectRows; + std::string envType; + }; OrderDetail orderDetail; KeyInfo keyInfo; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseRequest.h index 3e097bf89..88f52ebcb 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseRequest.h @@ -1,60 +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. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATABASEREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATABASEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDatabaseRequest : public RpcServiceRequest - { - - public: - GetDatabaseRequest(); - ~GetDatabaseRequest(); - - std::string getSchemaName()const; - void setSchemaName(const std::string& schemaName); - long getTid()const; - void setTid(long tid); - std::string getSid()const; - void setSid(const std::string& sid); - int getPort()const; - void setPort(int port); - std::string getHost()const; - void setHost(const std::string& host); - - private: - std::string schemaName_; - long tid_; - std::string sid_; - int port_; - std::string host_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATABASEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATABASEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATABASEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDatabaseRequest : public RpcServiceRequest { +public: + GetDatabaseRequest(); + ~GetDatabaseRequest(); + std::string getSchemaName() const; + void setSchemaName(const std::string &schemaName); + long getTid() const; + void setTid(long tid); + std::string getSid() const; + void setSid(const std::string &sid); + int getPort() const; + void setPort(int port); + std::string getHost() const; + void setHost(const std::string &host); + +private: + std::string schemaName_; + long tid_; + std::string sid_; + int port_; + std::string host_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATABASEREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseResult.h index 75ca84f3d..4bf867eb0 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseResult.h @@ -34,14 +34,14 @@ namespace AlibabaCloud public: struct Database { - std::string searchName; std::string instanceId; + std::string searchName; int port; - std::string encoding; - std::string host; std::string databaseId; - std::string dbType; + std::string host; + std::string encoding; std::string envType; + std::string dbType; std::string sid; std::string dbaName; std::string dbaId; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceRequest.h index 8cbb9feb3..b4f7934c7 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETINSTANCEREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetInstanceRequest : public RpcServiceRequest - { - - public: - GetInstanceRequest(); - ~GetInstanceRequest(); - - long getTid()const; - void setTid(long tid); - std::string getSid()const; - void setSid(const std::string& sid); - int getPort()const; - void setPort(int port); - std::string getHost()const; - void setHost(const std::string& host); - - private: - long tid_; - std::string sid_; - int port_; - std::string host_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETINSTANCEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetInstanceRequest : public RpcServiceRequest { +public: + GetInstanceRequest(); + ~GetInstanceRequest(); + long getTid() const; + void setTid(long tid); + std::string getSid() const; + void setSid(const std::string &sid); + int getPort() const; + void setPort(int port); + std::string getHost() const; + void setHost(const std::string &host); + +private: + long tid_; + std::string sid_; + int port_; + std::string host_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETINSTANCEREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceResult.h index cf25ddb74..23a8bb860 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceResult.h @@ -36,26 +36,26 @@ namespace AlibabaCloud { std::string instanceSource; std::string instanceId; - std::string databasePassword; int port; + std::string databasePassword; std::string host; int exportTimeout; int ddlOnline; std::string envType; - std::string sid; int useDsql; + std::string sid; std::string ecsInstanceId; std::string dbaId; std::string vpcId; - std::string ecsRegion; - std::string instanceAlias; std::string state; + std::string instanceAlias; + std::string ecsRegion; std::string databaseUser; std::vector ownerNameList; - std::string instanceType; std::string dbaNickName; - std::string dataLinkName; + std::string instanceType; int queryTimeout; + std::string dataLinkName; std::vector ownerIdList; std::string safeRuleId; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseRequest.h index 075a1e8d4..cf3b7a3be 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseRequest.h @@ -1,51 +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_GETLOGICDATABASEREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETLOGICDATABASEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetLogicDatabaseRequest : public RpcServiceRequest - { - - public: - GetLogicDatabaseRequest(); - ~GetLogicDatabaseRequest(); - - std::string getDbId()const; - void setDbId(const std::string& dbId); - long getTid()const; - void setTid(long tid); - - private: - std::string dbId_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETLOGICDATABASEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETLOGICDATABASEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETLOGICDATABASEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetLogicDatabaseRequest : public RpcServiceRequest { +public: + GetLogicDatabaseRequest(); + ~GetLogicDatabaseRequest(); + std::string getDbId() const; + void setDbId(const std::string &dbId); + long getTid() const; + void setTid(long tid); + +private: + std::string dbId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETLOGICDATABASEREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseResult.h index 0577c7467..1b2f58b71 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseResult.h @@ -38,9 +38,9 @@ namespace AlibabaCloud std::string databaseId; std::vector ownerNameList; bool logic; - std::string envType; - std::string schemaName; std::string dbType; + std::string schemaName; + std::string envType; std::vector ownerIdList; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetMetaTableColumnRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetMetaTableColumnRequest.h index 3b4b04461..2f078ee74 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetMetaTableColumnRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetMetaTableColumnRequest.h @@ -1,51 +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_GETMETATABLECOLUMNREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetMetaTableColumnRequest : public RpcServiceRequest - { - - public: - GetMetaTableColumnRequest(); - ~GetMetaTableColumnRequest(); - - std::string getTableGuid()const; - void setTableGuid(const std::string& tableGuid); - long getTid()const; - void setTid(long tid); - - private: - std::string tableGuid_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetMetaTableColumnRequest : public RpcServiceRequest { +public: + GetMetaTableColumnRequest(); + ~GetMetaTableColumnRequest(); + std::string getTableGuid() const; + void setTableGuid(const std::string &tableGuid); + long getTid() const; + void setTid(long tid); + +private: + std::string tableGuid_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetMetaTableColumnResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetMetaTableColumnResult.h index e94c555bc..96c764744 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetMetaTableColumnResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetMetaTableColumnResult.h @@ -36,15 +36,15 @@ namespace AlibabaCloud { std::string columnId; std::string columnName; - std::string description; std::string columnType; + std::string description; int position; bool autoIncrement; std::string securityLevel; - long dataLength; int dataScale; - int dataPrecision; + long dataLength; std::string primaryKey; + int dataPrecision; bool nullable; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetMetaTableDetailInfoRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetMetaTableDetailInfoRequest.h index faa923ca7..632c0a21b 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetMetaTableDetailInfoRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetMetaTableDetailInfoRequest.h @@ -1,51 +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_GETMETATABLEDETAILINFOREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetMetaTableDetailInfoRequest : public RpcServiceRequest - { - - public: - GetMetaTableDetailInfoRequest(); - ~GetMetaTableDetailInfoRequest(); - - std::string getTableGuid()const; - void setTableGuid(const std::string& tableGuid); - long getTid()const; - void setTid(long tid); - - private: - std::string tableGuid_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFOREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetMetaTableDetailInfoRequest : public RpcServiceRequest { +public: + GetMetaTableDetailInfoRequest(); + ~GetMetaTableDetailInfoRequest(); + std::string getTableGuid() const; + void setTableGuid(const std::string &tableGuid); + long getTid() const; + void setTid(long tid); + +private: + std::string tableGuid_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFOREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetMetaTableDetailInfoResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetMetaTableDetailInfoResult.h index 3ad13a4bc..472a2e58e 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetMetaTableDetailInfoResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetMetaTableDetailInfoResult.h @@ -34,19 +34,6 @@ namespace AlibabaCloud public: struct DetailInfo { - struct Column - { - std::string columnId; - std::string columnName; - std::string columnType; - std::string description; - std::string position; - bool autoIncrement; - long dataLength; - int dataScale; - int dataPrecision; - bool nullable; - }; struct Index { std::string indexName; @@ -55,6 +42,19 @@ namespace AlibabaCloud bool unique; std::string indexType; }; + struct Column + { + std::string columnId; + std::string columnName; + std::string description; + std::string columnType; + std::string position; + bool autoIncrement; + int dataScale; + long dataLength; + int dataPrecision; + bool nullable; + }; std::vector columnList; std::vector indexList; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogRequest.h index d1eac6cd6..1a228ada1 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogRequest.h @@ -1,63 +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_GETOPLOGREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETOPLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetOpLogRequest : public RpcServiceRequest - { - - public: - GetOpLogRequest(); - ~GetOpLogRequest(); - - std::string getModule()const; - void setModule(const std::string& module); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - long getTid()const; - void setTid(long tid); - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string module_; - std::string endTime_; - std::string startTime_; - long tid_; - int pageNumber_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETOPLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETOPLOGREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETOPLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetOpLogRequest : public RpcServiceRequest { +public: + GetOpLogRequest(); + ~GetOpLogRequest(); + std::string getModule() const; + void setModule(const std::string &module); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + long getTid() const; + void setTid(long tid); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string module_; + std::string endTime_; + std::string startTime_; + long tid_; + int pageNumber_; + int pageSize_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETOPLOGREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogResult.h index 42b66f067..99084aa16 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud std::string database; std::string opContent; std::string userNick; - long orderId; std::string module; + long orderId; std::string opTime; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoRequest.h index d062a2198..fc0e86042 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoRequest.h @@ -1,51 +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_GETORDERBASEINFOREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETORDERBASEINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetOrderBaseInfoRequest : public RpcServiceRequest - { - - public: - GetOrderBaseInfoRequest(); - ~GetOrderBaseInfoRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - long getTid()const; - void setTid(long tid); - - private: - long orderId_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETORDERBASEINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETORDERBASEINFOREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETORDERBASEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetOrderBaseInfoRequest : public RpcServiceRequest { +public: + GetOrderBaseInfoRequest(); + ~GetOrderBaseInfoRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getTid() const; + void setTid(long tid); + +private: + long orderId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETORDERBASEINFOREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoResult.h index a45dbad95..8278af2da 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoResult.h @@ -36,14 +36,14 @@ namespace AlibabaCloud { std::string comment; std::string createTime; - long orderId; std::string lastModifyTime; - std::string pluginType; - std::string statusCode; + long orderId; long committerId; + std::string statusCode; + std::string pluginType; std::vector relatedUserNickList; - std::string statusDesc; std::string workflowStatusDesc; + std::string statusDesc; long workflowInstanceId; std::string committer; std::vector relatedUserList; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOwnerApplyOrderDetailRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOwnerApplyOrderDetailRequest.h index b229a9534..153309ca6 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOwnerApplyOrderDetailRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOwnerApplyOrderDetailRequest.h @@ -1,51 +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_GETOWNERAPPLYORDERDETAILREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETOWNERAPPLYORDERDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetOwnerApplyOrderDetailRequest : public RpcServiceRequest - { - - public: - GetOwnerApplyOrderDetailRequest(); - ~GetOwnerApplyOrderDetailRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - long getTid()const; - void setTid(long tid); - - private: - long orderId_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETOWNERAPPLYORDERDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETOWNERAPPLYORDERDETAILREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETOWNERAPPLYORDERDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetOwnerApplyOrderDetailRequest : public RpcServiceRequest { +public: + GetOwnerApplyOrderDetailRequest(); + ~GetOwnerApplyOrderDetailRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getTid() const; + void setTid(long tid); + +private: + long orderId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETOWNERAPPLYORDERDETAILREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOwnerApplyOrderDetailResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOwnerApplyOrderDetailResult.h index 3399a1a1f..96a5cbef9 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOwnerApplyOrderDetailResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOwnerApplyOrderDetailResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud std::string tableName; std::string searchName; std::vector ownerNickNames; - std::string envType; std::string dbType; + std::string envType; std::vector ownerIds; }; ResourceDetail resourceDetail; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPermApplyOrderDetailRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPermApplyOrderDetailRequest.h index 2e404a6d4..430bfb363 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPermApplyOrderDetailRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPermApplyOrderDetailRequest.h @@ -1,51 +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_GETPERMAPPLYORDERDETAILREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETPERMAPPLYORDERDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetPermApplyOrderDetailRequest : public RpcServiceRequest - { - - public: - GetPermApplyOrderDetailRequest(); - ~GetPermApplyOrderDetailRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - long getTid()const; - void setTid(long tid); - - private: - long orderId_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETPERMAPPLYORDERDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETPERMAPPLYORDERDETAILREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETPERMAPPLYORDERDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetPermApplyOrderDetailRequest : public RpcServiceRequest { +public: + GetPermApplyOrderDetailRequest(); + ~GetPermApplyOrderDetailRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getTid() const; + void setTid(long tid); + +private: + long orderId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETPERMAPPLYORDERDETAILREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPermApplyOrderDetailResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPermApplyOrderDetailResult.h index 38af04d1b..baf4e2107 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPermApplyOrderDetailResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPermApplyOrderDetailResult.h @@ -42,31 +42,31 @@ namespace AlibabaCloud std::vector ownerNickNames; long dbId; bool logic; - std::string envType; std::string dbType; + std::string envType; std::vector ownerIds; }; - struct ColumnInfo - { - std::string columnName; - std::string tableName; - }; struct TableInfo { std::string tableName; }; + struct ColumnInfo + { + std::string tableName; + std::string columnName; + }; struct InstanceInfo { long dbaId; - std::string searchName; std::string instanceId; + std::string searchName; std::vector ownerIds1; long port; std::string host; std::string dbaNickName; std::vector ownerNickName; - std::string envType; std::string dbType; + std::string envType; }; DatabaseInfo databaseInfo; ColumnInfo columnInfo; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPhysicalDatabaseRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPhysicalDatabaseRequest.h index e62b96dd1..a7c11afee 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPhysicalDatabaseRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPhysicalDatabaseRequest.h @@ -1,51 +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_GETPHYSICALDATABASEREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETPHYSICALDATABASEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetPhysicalDatabaseRequest : public RpcServiceRequest - { - - public: - GetPhysicalDatabaseRequest(); - ~GetPhysicalDatabaseRequest(); - - long getDbId()const; - void setDbId(long dbId); - long getTid()const; - void setTid(long tid); - - private: - long dbId_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETPHYSICALDATABASEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETPHYSICALDATABASEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETPHYSICALDATABASEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetPhysicalDatabaseRequest : public RpcServiceRequest { +public: + GetPhysicalDatabaseRequest(); + ~GetPhysicalDatabaseRequest(); + long getDbId() const; + void setDbId(long dbId); + long getTid() const; + void setTid(long tid); + +private: + long dbId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETPHYSICALDATABASEREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPhysicalDatabaseResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPhysicalDatabaseResult.h index f070dfe56..2d86f384c 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPhysicalDatabaseResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPhysicalDatabaseResult.h @@ -34,14 +34,14 @@ namespace AlibabaCloud public: struct Database { - std::string searchName; std::string instanceId; + std::string searchName; int port; - std::string encoding; - std::string host; std::string databaseId; - std::string dbType; + std::string host; + std::string encoding; std::string envType; + std::string dbType; std::string sid; std::string dbaName; std::string dbaId; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSQLReviewCheckResultStatusRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSQLReviewCheckResultStatusRequest.h new file mode 100644 index 000000000..7335dfced --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSQLReviewCheckResultStatusRequest.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_GETSQLREVIEWCHECKRESULTSTATUSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSQLREVIEWCHECKRESULTSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetSQLReviewCheckResultStatusRequest : public RpcServiceRequest { +public: + GetSQLReviewCheckResultStatusRequest(); + ~GetSQLReviewCheckResultStatusRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getTid() const; + void setTid(long tid); + std::string getOrderActionName() const; + void setOrderActionName(const std::string &orderActionName); + +private: + long orderId_; + long tid_; + std::string orderActionName_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSQLREVIEWCHECKRESULTSTATUSREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSQLReviewCheckResultStatusResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSQLReviewCheckResultStatusResult.h new file mode 100644 index 000000000..80d71130d --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSQLReviewCheckResultStatusResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSQLREVIEWCHECKRESULTSTATUSRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSQLREVIEWCHECKRESULTSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetSQLReviewCheckResultStatusResult : public ServiceResult + { + public: + struct CheckResultStatus + { + struct CheckStatusResult + { + long checkNotPass; + long unknown; + long forcePass; + long checkPass; + long _new; + long forceNotPass; + }; + struct SQLReviewResult + { + long useDmsToolkit; + long useDmsDmlUnlock; + long tableIndexSuggest; + long mustImprove; + long suggestImprove; + long potentialIssue; + }; + SQLReviewResult sQLReviewResult; + long totalSQLCount; + long checkedCount; + CheckStatusResult checkStatusResult; + }; + + + GetSQLReviewCheckResultStatusResult(); + explicit GetSQLReviewCheckResultStatusResult(const std::string &payload); + ~GetSQLReviewCheckResultStatusResult(); + std::string getErrorCode()const; + CheckResultStatus getCheckResultStatus()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + CheckResultStatus checkResultStatus_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSQLREVIEWCHECKRESULTSTATUSRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncExecSqlDetailRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncExecSqlDetailRequest.h index 9a1aa44a4..09b5b2412 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncExecSqlDetailRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncExecSqlDetailRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCEXECSQLDETAILREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCEXECSQLDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetStructSyncExecSqlDetailRequest : public RpcServiceRequest - { - - public: - GetStructSyncExecSqlDetailRequest(); - ~GetStructSyncExecSqlDetailRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - long getTid()const; - void setTid(long tid); - long getPageSize()const; - void setPageSize(long pageSize); - - private: - long orderId_; - long pageNumber_; - long tid_; - long pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCEXECSQLDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCEXECSQLDETAILREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCEXECSQLDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetStructSyncExecSqlDetailRequest : public RpcServiceRequest { +public: + GetStructSyncExecSqlDetailRequest(); + ~GetStructSyncExecSqlDetailRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getTid() const; + void setTid(long tid); + long getPageSize() const; + void setPageSize(long pageSize); + +private: + long orderId_; + long pageNumber_; + long tid_; + long pageSize_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCEXECSQLDETAILREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncExecSqlDetailResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncExecSqlDetailResult.h index 9ae70980f..1852aafd6 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncExecSqlDetailResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncExecSqlDetailResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct StructSyncExecSqlDetail { - std::string execSql; long totalSqlCount; + std::string execSql; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncJobAnalyzeResultRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncJobAnalyzeResultRequest.h index 906d05a89..d6a1592a0 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncJobAnalyzeResultRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncJobAnalyzeResultRequest.h @@ -1,60 +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. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCJOBANALYZERESULTREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCJOBANALYZERESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetStructSyncJobAnalyzeResultRequest : public RpcServiceRequest - { - - public: - GetStructSyncJobAnalyzeResultRequest(); - ~GetStructSyncJobAnalyzeResultRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - std::string getCompareType()const; - void setCompareType(const std::string& compareType); - long getPageNumber()const; - void setPageNumber(long pageNumber); - long getTid()const; - void setTid(long tid); - long getPageSize()const; - void setPageSize(long pageSize); - - private: - long orderId_; - std::string compareType_; - long pageNumber_; - long tid_; - long pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCJOBANALYZERESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCJOBANALYZERESULTREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCJOBANALYZERESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetStructSyncJobAnalyzeResultRequest : public RpcServiceRequest { +public: + GetStructSyncJobAnalyzeResultRequest(); + ~GetStructSyncJobAnalyzeResultRequest(); + long getOrderId() const; + void setOrderId(long orderId); + std::string getCompareType() const; + void setCompareType(const std::string &compareType); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getTid() const; + void setTid(long tid); + long getPageSize() const; + void setPageSize(long pageSize); + +private: + long orderId_; + std::string compareType_; + long pageNumber_; + long tid_; + long pageSize_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCJOBANALYZERESULTREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncJobAnalyzeResultResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncJobAnalyzeResultResult.h index 39ca46aaa..1552b6486 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncJobAnalyzeResultResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncJobAnalyzeResultResult.h @@ -34,17 +34,17 @@ namespace AlibabaCloud public: struct StructSyncJobAnalyzeResult { + struct Summary + { + std::string compareType; + long count; + }; struct Result { std::string sourceTableName; std::string script; std::string targetTableName; }; - struct Summary - { - std::string compareType; - long count; - }; std::vector resultList; std::vector summaryList; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncJobDetailRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncJobDetailRequest.h index ddd8bbde7..23308dd7d 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncJobDetailRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncJobDetailRequest.h @@ -1,51 +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_GETSTRUCTSYNCJOBDETAILREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCJOBDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetStructSyncJobDetailRequest : public RpcServiceRequest - { - - public: - GetStructSyncJobDetailRequest(); - ~GetStructSyncJobDetailRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - long getTid()const; - void setTid(long tid); - - private: - long orderId_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCJOBDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCJOBDETAILREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCJOBDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetStructSyncJobDetailRequest : public RpcServiceRequest { +public: + GetStructSyncJobDetailRequest(); + ~GetStructSyncJobDetailRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getTid() const; + void setTid(long tid); + +private: + long orderId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCJOBDETAILREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncJobDetailResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncJobDetailResult.h index 318cc5eb6..b3d95defc 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncJobDetailResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncJobDetailResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct StructSyncJobDetail { - long sqlCount; std::string jobStatus; + long sqlCount; std::string message; long tableAnalyzed; long tableCount; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncOrderDetailRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncOrderDetailRequest.h index 52bad6c71..74ee30cf4 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncOrderDetailRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncOrderDetailRequest.h @@ -1,51 +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_GETSTRUCTSYNCORDERDETAILREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCORDERDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetStructSyncOrderDetailRequest : public RpcServiceRequest - { - - public: - GetStructSyncOrderDetailRequest(); - ~GetStructSyncOrderDetailRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - long getTid()const; - void setTid(long tid); - - private: - long orderId_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCORDERDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCORDERDETAILREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCORDERDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetStructSyncOrderDetailRequest : public RpcServiceRequest { +public: + GetStructSyncOrderDetailRequest(); + ~GetStructSyncOrderDetailRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getTid() const; + void setTid(long tid); + +private: + long orderId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSTRUCTSYNCORDERDETAILREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncOrderDetailResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncOrderDetailResult.h index 4a5282ccf..a97419a50 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncOrderDetailResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetStructSyncOrderDetailResult.h @@ -39,16 +39,16 @@ namespace AlibabaCloud std::string searchName; long dbId; bool logic; - std::string envType; std::string dbType; + std::string envType; }; struct TargetDatabaseInfo { std::string searchName; long dbId; bool logic; - std::string envType; std::string dbType; + std::string envType; }; struct SourceVersionInfo { diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetTableDBTopologyRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetTableDBTopologyRequest.h index 1116927ed..77d41a840 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetTableDBTopologyRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetTableDBTopologyRequest.h @@ -1,51 +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_GETTABLEDBTOPOLOGYREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetTableDBTopologyRequest : public RpcServiceRequest - { - - public: - GetTableDBTopologyRequest(); - ~GetTableDBTopologyRequest(); - - std::string getTableGuid()const; - void setTableGuid(const std::string& tableGuid); - long getTid()const; - void setTid(long tid); - - private: - std::string tableGuid_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetTableDBTopologyRequest : public RpcServiceRequest { +public: + GetTableDBTopologyRequest(); + ~GetTableDBTopologyRequest(); + std::string getTableGuid() const; + void setTableGuid(const std::string &tableGuid); + long getTid() const; + void setTid(long tid); + +private: + std::string tableGuid_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetTableDBTopologyResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetTableDBTopologyResult.h index 60e7526ef..6cc4ba6af 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetTableDBTopologyResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetTableDBTopologyResult.h @@ -47,8 +47,8 @@ namespace AlibabaCloud std::string dbId; std::string dbName; std::vector tableList; - std::string envType; std::string dbType; + std::string envType; }; std::vector databaseList; int port; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetTableTopologyRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetTableTopologyRequest.h index 05eae1419..cbb02b180 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetTableTopologyRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetTableTopologyRequest.h @@ -1,51 +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_GETTABLETOPOLOGYREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLETOPOLOGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetTableTopologyRequest : public RpcServiceRequest - { - - public: - GetTableTopologyRequest(); - ~GetTableTopologyRequest(); - - std::string getTableGuid()const; - void setTableGuid(const std::string& tableGuid); - long getTid()const; - void setTid(long tid); - - private: - std::string tableGuid_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLETOPOLOGYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLETOPOLOGYREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLETOPOLOGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetTableTopologyRequest : public RpcServiceRequest { +public: + GetTableTopologyRequest(); + ~GetTableTopologyRequest(); + std::string getTableGuid() const; + void setTableGuid(const std::string &tableGuid); + long getTid() const; + void setTid(long tid); + +private: + std::string tableGuid_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLETOPOLOGYREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetTableTopologyResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetTableTopologyResult.h index 149d9a596..f80a33d3b 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetTableTopologyResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetTableTopologyResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud { std::string tableNameExpr; std::string dbSearchName; - std::string instanceSource; std::string instanceResourceId; + std::string instanceSource; long instanceId; std::string tableNameList; long tableCount; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserActiveTenantRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserActiveTenantRequest.h index 4d9a20136..a6e6e62d2 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserActiveTenantRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserActiveTenantRequest.h @@ -1,48 +1,42 @@ /* * 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_GETUSERACTIVETENANTREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetUserActiveTenantRequest : public RpcServiceRequest - { - - public: - GetUserActiveTenantRequest(); - ~GetUserActiveTenantRequest(); - - long getTid()const; - void setTid(long tid); - - private: - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetUserActiveTenantRequest : public RpcServiceRequest { +public: + GetUserActiveTenantRequest(); + ~GetUserActiveTenantRequest(); + long getTid() const; + void setTid(long tid); + +private: + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserRequest.h index c5c91d1f0..5beeae517 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserRequest.h @@ -1,54 +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_GETUSERREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetUserRequest : public RpcServiceRequest - { - - public: - GetUserRequest(); - ~GetUserRequest(); - - std::string getUserId()const; - void setUserId(const std::string& userId); - long getTid()const; - void setTid(long tid); - std::string getUid()const; - void setUid(const std::string& uid); - - private: - std::string userId_; - long tid_; - std::string uid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetUserRequest : public RpcServiceRequest { +public: + GetUserRequest(); + ~GetUserRequest(); + std::string getUserId() const; + void setUserId(const std::string &userId); + long getTid() const; + void setTid(long tid); + std::string getUid() const; + void setUid(const std::string &uid); + +private: + std::string userId_; + long tid_; + std::string uid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserResult.h index 13499d4ed..698ed6c58 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserResult.h @@ -36,15 +36,15 @@ namespace AlibabaCloud { std::vector roleNameList; std::string nickName; - std::string mobile; long maxExecuteCount; - std::string uid; - std::string lastLoginTime; + std::string mobile; long curResultCount; + std::string lastLoginTime; + std::string uid; std::vector roleIdList; long maxResultCount; - std::string userId; std::string state; + std::string userId; long curExecuteCount; long parentUid; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserUploadFileJobRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserUploadFileJobRequest.h index e11ff9210..6b4910b41 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserUploadFileJobRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserUploadFileJobRequest.h @@ -1,51 +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_GETUSERUPLOADFILEJOBREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERUPLOADFILEJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetUserUploadFileJobRequest : public RpcServiceRequest - { - - public: - GetUserUploadFileJobRequest(); - ~GetUserUploadFileJobRequest(); - - std::string getJobKey()const; - void setJobKey(const std::string& jobKey); - long getTid()const; - void setTid(long tid); - - private: - std::string jobKey_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERUPLOADFILEJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERUPLOADFILEJOBREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERUPLOADFILEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetUserUploadFileJobRequest : public RpcServiceRequest { +public: + GetUserUploadFileJobRequest(); + ~GetUserUploadFileJobRequest(); + std::string getJobKey() const; + void setJobKey(const std::string &jobKey); + long getTid() const; + void setTid(long tid); + +private: + std::string jobKey_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERUPLOADFILEJOBREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserUploadFileJobResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserUploadFileJobResult.h index ad9f81e6a..04442adc0 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserUploadFileJobResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserUploadFileJobResult.h @@ -41,14 +41,14 @@ namespace AlibabaCloud std::string objectName; }; std::string jobStatus; - std::string attachmentKey; std::string jobKey; + std::string attachmentKey; std::string uploadURL; long uploadedSize; UploadOSSParam uploadOSSParam; std::string jobStatusDesc; - std::string fileSource; std::string fileName; + std::string fileSource; std::string uploadType; long fileSize; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h index 76de96fc1..628006422 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h @@ -1,72 +1,66 @@ /* * 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_GRANTUSERPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTUSERPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GrantUserPermissionRequest : public RpcServiceRequest - { - - public: - GrantUserPermissionRequest(); - ~GrantUserPermissionRequest(); - - std::string getPermTypes()const; - void setPermTypes(const std::string& permTypes); - std::string getDsType()const; - void setDsType(const std::string& dsType); - std::string getExpireDate()const; - void setExpireDate(const std::string& expireDate); - std::string getUserId()const; - void setUserId(const std::string& userId); - long getTid()const; - void setTid(long tid); - std::string getDbId()const; - void setDbId(const std::string& dbId); - std::string getTableId()const; - void setTableId(const std::string& tableId); - bool getLogic()const; - void setLogic(bool logic); - std::string getTableName()const; - void setTableName(const std::string& tableName); - - private: - std::string permTypes_; - std::string dsType_; - std::string expireDate_; - std::string userId_; - long tid_; - std::string dbId_; - std::string tableId_; - bool logic_; - std::string tableName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTUSERPERMISSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTUSERPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTUSERPERMISSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GrantUserPermissionRequest : public RpcServiceRequest { +public: + GrantUserPermissionRequest(); + ~GrantUserPermissionRequest(); + std::string getPermTypes() const; + void setPermTypes(const std::string &permTypes); + std::string getDsType() const; + void setDsType(const std::string &dsType); + std::string getExpireDate() const; + void setExpireDate(const std::string &expireDate); + std::string getUserId() const; + void setUserId(const std::string &userId); + long getTid() const; + void setTid(long tid); + std::string getDbId() const; + void setDbId(const std::string &dbId); + std::string getTableId() const; + void setTableId(const std::string &tableId); + bool getLogic() const; + void setLogic(bool logic); + std::string getTableName() const; + void setTableName(const std::string &tableName); + +private: + std::string permTypes_; + std::string dsType_; + std::string expireDate_; + std::string userId_; + long tid_; + std::string dbId_; + std::string tableId_; + bool logic_; + std::string tableName_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTUSERPERMISSIONREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListColumnsRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListColumnsRequest.h index 06ffd4190..00f16ae1c 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListColumnsRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListColumnsRequest.h @@ -1,54 +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_LISTCOLUMNSREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTCOLUMNSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListColumnsRequest : public RpcServiceRequest - { - - public: - ListColumnsRequest(); - ~ListColumnsRequest(); - - long getTid()const; - void setTid(long tid); - std::string getTableId()const; - void setTableId(const std::string& tableId); - bool getLogic()const; - void setLogic(bool logic); - - private: - long tid_; - std::string tableId_; - bool logic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTCOLUMNSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTCOLUMNSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTCOLUMNSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListColumnsRequest : public RpcServiceRequest { +public: + ListColumnsRequest(); + ~ListColumnsRequest(); + long getTid() const; + void setTid(long tid); + std::string getTableId() const; + void setTableId(const std::string &tableId); + bool getLogic() const; + void setLogic(bool logic); + +private: + long tid_; + std::string tableId_; + bool logic_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTCOLUMNSREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListColumnsResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListColumnsResult.h index f8b95d764..d5959fd07 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListColumnsResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListColumnsResult.h @@ -35,16 +35,16 @@ namespace AlibabaCloud struct Column { std::string columnId; - std::string description; std::string columnType; + std::string description; bool autoIncrement; std::string functionType; int dataPrecision; - std::string columnName; std::string defaultValue; + std::string columnName; std::string securityLevel; - long dataLength; int dataScale; + long dataLength; bool sensitive; bool nullable; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobDetailRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobDetailRequest.h index 6cedc6a3d..7a3f0adb6 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobDetailRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobDetailRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDBTASKSQLJOBDETAILREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDBTASKSQLJOBDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDBTaskSQLJobDetailRequest : public RpcServiceRequest - { - - public: - ListDBTaskSQLJobDetailRequest(); - ~ListDBTaskSQLJobDetailRequest(); - - long getPageNumber()const; - void setPageNumber(long pageNumber); - long getTid()const; - void setTid(long tid); - long getJobId()const; - void setJobId(long jobId); - long getPageSize()const; - void setPageSize(long pageSize); - - private: - long pageNumber_; - long tid_; - long jobId_; - long pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDBTASKSQLJOBDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDBTASKSQLJOBDETAILREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDBTASKSQLJOBDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDBTaskSQLJobDetailRequest : public RpcServiceRequest { +public: + ListDBTaskSQLJobDetailRequest(); + ~ListDBTaskSQLJobDetailRequest(); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getTid() const; + void setTid(long tid); + long getJobId() const; + void setJobId(long jobId); + long getPageSize() const; + void setPageSize(long pageSize); + +private: + long pageNumber_; + long tid_; + long jobId_; + long pageSize_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDBTASKSQLJOBDETAILREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobDetailResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobDetailResult.h index c2fef956f..cfc873c47 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobDetailResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobDetailResult.h @@ -37,11 +37,11 @@ namespace AlibabaCloud std::string status; bool skip; long dbId; - std::string sqlType; long executeCount; - bool logic; - std::string currentSql; + std::string sqlType; long jobDetailId; + std::string currentSql; + bool logic; long jobId; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobRequest.h index 3a94e47d5..c0ffb4cf6 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDBTASKSQLJOBREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDBTASKSQLJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDBTaskSQLJobRequest : public RpcServiceRequest - { - - public: - ListDBTaskSQLJobRequest(); - ~ListDBTaskSQLJobRequest(); - - long getDBTaskGroupId()const; - void setDBTaskGroupId(long dBTaskGroupId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - long getTid()const; - void setTid(long tid); - long getPageSize()const; - void setPageSize(long pageSize); - - private: - long dBTaskGroupId_; - long pageNumber_; - long tid_; - long pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDBTASKSQLJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDBTASKSQLJOBREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDBTASKSQLJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDBTaskSQLJobRequest : public RpcServiceRequest { +public: + ListDBTaskSQLJobRequest(); + ~ListDBTaskSQLJobRequest(); + long getDBTaskGroupId() const; + void setDBTaskGroupId(long dBTaskGroupId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getTid() const; + void setTid(long tid); + long getPageSize() const; + void setPageSize(long pageSize); + +private: + long dBTaskGroupId_; + long pageNumber_; + long tid_; + long pageSize_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDBTASKSQLJOBREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobResult.h index 9dbb03eed..bf2baa893 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string status; std::string comment; std::string lastExecTime; - std::string dbSearchName; std::string jobType; + std::string dbSearchName; std::string createTime; long dbTaskGroupId; long dbId; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDDLPublishRecordsRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDDLPublishRecordsRequest.h index 29dbed2c7..c39e434c6 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDDLPublishRecordsRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDDLPublishRecordsRequest.h @@ -1,51 +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_LISTDDLPUBLISHRECORDSREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDDLPUBLISHRECORDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDDLPublishRecordsRequest : public RpcServiceRequest - { - - public: - ListDDLPublishRecordsRequest(); - ~ListDDLPublishRecordsRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - long getTid()const; - void setTid(long tid); - - private: - long orderId_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDDLPUBLISHRECORDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDDLPUBLISHRECORDSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDDLPUBLISHRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDDLPublishRecordsRequest : public RpcServiceRequest { +public: + ListDDLPublishRecordsRequest(); + ~ListDDLPublishRecordsRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getTid() const; + void setTid(long tid); + +private: + long orderId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDDLPUBLISHRECORDSREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDDLPublishRecordsResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDDLPublishRecordsResult.h index 380462902..086d63b53 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDDLPublishRecordsResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDDLPublishRecordsResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud { struct PublishJob { - std::string statusDesc; std::string tableName; + std::string statusDesc; std::string scripts; std::string taskJobStatus; long executeCount; @@ -50,18 +50,18 @@ namespace AlibabaCloud std::string publishStrategy; std::vector publishJobList; long dbId; - std::string planTime; bool logic; + std::string planTime; }; std::string statusDesc; std::vector publishTaskInfoList; std::string auditStatus; long creatorId; - bool finality; std::string auditExpireTime; + bool finality; long workflowInstanceId; - std::string riskLevel; std::string finalityReason; + std::string riskLevel; std::string publishStatus; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsRequest.h index f16bf6c54..5ba5c12b6 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsRequest.h @@ -1,66 +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_LISTDATABASEUSERPERMSSIONSREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASEUSERPERMSSIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDatabaseUserPermssionsRequest : public RpcServiceRequest - { - - public: - ListDatabaseUserPermssionsRequest(); - ~ListDatabaseUserPermssionsRequest(); - - long getTid()const; - void setTid(long tid); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getPermType()const; - void setPermType(const std::string& permType); - std::string getDbId()const; - void setDbId(const std::string& dbId); - int getPageSize()const; - void setPageSize(int pageSize); - bool getLogic()const; - void setLogic(bool logic); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - long tid_; - int pageNumber_; - std::string permType_; - std::string dbId_; - int pageSize_; - bool logic_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASEUSERPERMSSIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASEUSERPERMSSIONSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASEUSERPERMSSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDatabaseUserPermssionsRequest : public RpcServiceRequest { +public: + ListDatabaseUserPermssionsRequest(); + ~ListDatabaseUserPermssionsRequest(); + long getTid() const; + void setTid(long tid); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getPermType() const; + void setPermType(const std::string &permType); + std::string getDbId() const; + void setDbId(const std::string &dbId); + int getPageSize() const; + void setPageSize(int pageSize); + bool getLogic() const; + void setLogic(bool logic); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + long tid_; + int pageNumber_; + std::string permType_; + std::string dbId_; + int pageSize_; + bool logic_; + std::string userName_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASEUSERPERMSSIONSREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsResult.h index 66555fb88..6ebc39cb1 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsResult.h @@ -39,22 +39,22 @@ namespace AlibabaCloud std::string expireDate; std::string permType; std::string extraData; - std::string createDate; std::string originFrom; + std::string createDate; std::string userAccessId; }; std::string tableId; - std::string searchName; std::string instanceId; + std::string searchName; std::vector permDetails; - std::string dbType; std::string envType; + std::string dbType; std::string dsType; - std::string columnName; std::string tableName; + std::string columnName; std::string userNickName; - std::string alias; std::string userId; + std::string alias; std::string dbId; bool logic; std::string schemaName; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabasesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabasesRequest.h index 1d8578629..5c33ffb1d 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabasesRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabasesRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASESREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDatabasesRequest : public RpcServiceRequest - { - - public: - ListDatabasesRequest(); - ~ListDatabasesRequest(); - - long getTid()const; - void setTid(long tid); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - long tid_; - int pageNumber_; - std::string instanceId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDatabasesRequest : public RpcServiceRequest { +public: + ListDatabasesRequest(); + ~ListDatabasesRequest(); + long getTid() const; + void setTid(long tid); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + long tid_; + int pageNumber_; + std::string instanceId_; + int pageSize_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATABASESREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabasesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabasesResult.h index 077c70b24..1032af6f0 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabasesResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDatabasesResult.h @@ -34,14 +34,14 @@ namespace AlibabaCloud public: struct Database { - std::string searchName; std::string instanceId; + std::string searchName; int port; - std::string encoding; - std::string host; std::string databaseId; - std::string dbType; + std::string host; + std::string encoding; std::string envType; + std::string dbType; std::string sid; std::string dbaName; std::string dbaId; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListIndexesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListIndexesRequest.h index a66a5d4d3..ec5b57205 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListIndexesRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListIndexesRequest.h @@ -1,54 +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_LISTINDEXESREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINDEXESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListIndexesRequest : public RpcServiceRequest - { - - public: - ListIndexesRequest(); - ~ListIndexesRequest(); - - long getTid()const; - void setTid(long tid); - std::string getTableId()const; - void setTableId(const std::string& tableId); - bool getLogic()const; - void setLogic(bool logic); - - private: - long tid_; - std::string tableId_; - bool logic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINDEXESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINDEXESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINDEXESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListIndexesRequest : public RpcServiceRequest { +public: + ListIndexesRequest(); + ~ListIndexesRequest(); + long getTid() const; + void setTid(long tid); + std::string getTableId() const; + void setTableId(const std::string &tableId); + bool getLogic() const; + void setLogic(bool logic); + +private: + long tid_; + std::string tableId_; + bool logic_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINDEXESREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListIndexesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListIndexesResult.h index a8c8be647..a402e6418 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListIndexesResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListIndexesResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct Index { - std::string tableId; std::string indexName; + std::string tableId; std::string indexId; std::string indexComment; std::string indexType; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesRequest.h index 006e1154e..a6a6f836a 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesRequest.h @@ -1,72 +1,66 @@ /* * 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_LISTINSTANCESREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListInstancesRequest : public RpcServiceRequest - { - - public: - ListInstancesRequest(); - ~ListInstancesRequest(); - - std::string getSearchKey()const; - void setSearchKey(const std::string& searchKey); - long getTid()const; - void setTid(long tid); - std::string getInstanceState()const; - void setInstanceState(const std::string& instanceState); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getNetType()const; - void setNetType(const std::string& netType); - std::string getDbType()const; - void setDbType(const std::string& dbType); - std::string getEnvType()const; - void setEnvType(const std::string& envType); - std::string getInstanceSource()const; - void setInstanceSource(const std::string& instanceSource); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string searchKey_; - long tid_; - std::string instanceState_; - int pageNumber_; - std::string netType_; - std::string dbType_; - std::string envType_; - std::string instanceSource_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListInstancesRequest : public RpcServiceRequest { +public: + ListInstancesRequest(); + ~ListInstancesRequest(); + std::string getSearchKey() const; + void setSearchKey(const std::string &searchKey); + long getTid() const; + void setTid(long tid); + std::string getInstanceState() const; + void setInstanceState(const std::string &instanceState); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getNetType() const; + void setNetType(const std::string &netType); + std::string getDbType() const; + void setDbType(const std::string &dbType); + std::string getEnvType() const; + void setEnvType(const std::string &envType); + std::string getInstanceSource() const; + void setInstanceSource(const std::string &instanceSource); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string searchKey_; + long tid_; + std::string instanceState_; + int pageNumber_; + std::string netType_; + std::string dbType_; + std::string envType_; + std::string instanceSource_; + int pageSize_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCESREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesResult.h index 2ddff3a37..265f375c7 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesResult.h @@ -36,26 +36,26 @@ namespace AlibabaCloud { std::string instanceSource; std::string instanceId; - std::string databasePassword; int port; + std::string databasePassword; std::string host; int exportTimeout; int ddlOnline; std::string envType; - std::string sid; int useDsql; + std::string sid; std::string ecsInstanceId; std::string dbaId; std::string vpcId; - std::string ecsRegion; - std::string instanceAlias; std::string state; + std::string instanceAlias; + std::string ecsRegion; std::string databaseUser; std::vector ownerNameList; - std::string instanceType; std::string dbaNickName; - std::string dataLinkName; + std::string instanceType; int queryTimeout; + std::string dataLinkName; std::vector ownerIdList; std::string safeRuleId; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesRequest.h index 92adebd44..e93d7c0af 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesRequest.h @@ -1,54 +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_LISTLOGICDATABASESREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICDATABASESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListLogicDatabasesRequest : public RpcServiceRequest - { - - public: - ListLogicDatabasesRequest(); - ~ListLogicDatabasesRequest(); - - long getTid()const; - void setTid(long tid); - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - long tid_; - int pageNumber_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICDATABASESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICDATABASESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICDATABASESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListLogicDatabasesRequest : public RpcServiceRequest { +public: + ListLogicDatabasesRequest(); + ~ListLogicDatabasesRequest(); + long getTid() const; + void setTid(long tid); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + long tid_; + int pageNumber_; + int pageSize_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICDATABASESREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesResult.h index e63fbcfb1..fe2d94404 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesResult.h @@ -38,9 +38,9 @@ namespace AlibabaCloud std::string databaseId; std::vector ownerNameList; bool logic; - std::string envType; - std::string schemaName; std::string dbType; + std::string schemaName; + std::string envType; std::vector ownerIdList; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTablesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTablesRequest.h index 713b1b7dc..613e43db6 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTablesRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTablesRequest.h @@ -1,63 +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_LISTLOGICTABLESREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICTABLESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListLogicTablesRequest : public RpcServiceRequest - { - - public: - ListLogicTablesRequest(); - ~ListLogicTablesRequest(); - - std::string getSearchName()const; - void setSearchName(const std::string& searchName); - bool getReturnGuid()const; - void setReturnGuid(bool returnGuid); - long getTid()const; - void setTid(long tid); - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getDatabaseId()const; - void setDatabaseId(const std::string& databaseId); - - private: - std::string searchName_; - bool returnGuid_; - long tid_; - int pageNumber_; - int pageSize_; - std::string databaseId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICTABLESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICTABLESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICTABLESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListLogicTablesRequest : public RpcServiceRequest { +public: + ListLogicTablesRequest(); + ~ListLogicTablesRequest(); + std::string getSearchName() const; + void setSearchName(const std::string &searchName); + bool getReturnGuid() const; + void setReturnGuid(bool returnGuid); + long getTid() const; + void setTid(long tid); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getDatabaseId() const; + void setDatabaseId(const std::string &databaseId); + +private: + std::string searchName_; + bool returnGuid_; + long tid_; + int pageNumber_; + int pageSize_; + std::string databaseId_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICTABLESREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListOrdersRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListOrdersRequest.h index 839a55eea..8141c716b 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListOrdersRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListOrdersRequest.h @@ -1,75 +1,69 @@ /* * 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_LISTORDERSREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTORDERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListOrdersRequest : public RpcServiceRequest - { - - public: - ListOrdersRequest(); - ~ListOrdersRequest(); - - std::string getOrderStatus()const; - void setOrderStatus(const std::string& orderStatus); - std::string getSearchContent()const; - void setSearchContent(const std::string& searchContent); - std::string getSearchDateType()const; - void setSearchDateType(const std::string& searchDateType); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - long getTid()const; - void setTid(long tid); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getPluginType()const; - void setPluginType(const std::string& pluginType); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getOrderResultType()const; - void setOrderResultType(const std::string& orderResultType); - - private: - std::string orderStatus_; - std::string searchContent_; - std::string searchDateType_; - std::string endTime_; - std::string startTime_; - long tid_; - int pageNumber_; - std::string pluginType_; - int pageSize_; - std::string orderResultType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTORDERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTORDERSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTORDERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListOrdersRequest : public RpcServiceRequest { +public: + ListOrdersRequest(); + ~ListOrdersRequest(); + std::string getOrderStatus() const; + void setOrderStatus(const std::string &orderStatus); + std::string getSearchContent() const; + void setSearchContent(const std::string &searchContent); + std::string getSearchDateType() const; + void setSearchDateType(const std::string &searchDateType); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + long getTid() const; + void setTid(long tid); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getPluginType() const; + void setPluginType(const std::string &pluginType); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getOrderResultType() const; + void setOrderResultType(const std::string &orderResultType); + +private: + std::string orderStatus_; + std::string searchContent_; + std::string searchDateType_; + std::string endTime_; + std::string startTime_; + long tid_; + int pageNumber_; + std::string pluginType_; + int pageSize_; + std::string orderResultType_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTORDERSREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListOrdersResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListOrdersResult.h index 3248250bd..8a5d37bfd 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListOrdersResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListOrdersResult.h @@ -34,15 +34,15 @@ namespace AlibabaCloud public: struct Order { - std::string statusDesc; std::string comment; + std::string statusDesc; std::string createTime; std::string committer; - long orderId; std::string lastModifyTime; - std::string pluginType; - long committerId; + long orderId; std::string statusCode; + long committerId; + std::string pluginType; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSQLReviewOriginSQLRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSQLReviewOriginSQLRequest.h new file mode 100644 index 000000000..f5304c455 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSQLReviewOriginSQLRequest.h @@ -0,0 +1,61 @@ +/* + * 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_LISTSQLREVIEWORIGINSQLREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSQLREVIEWORIGINSQLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListSQLReviewOriginSQLRequest : public RpcServiceRequest { +public: + struct OrderActionDetail { + std::string checkStatusResult; + std::string sQLReviewResult; + struct Page { + int pageSize; + int pageNumber; + }; + Page page; + long fileId; + }; + ListSQLReviewOriginSQLRequest(); + ~ListSQLReviewOriginSQLRequest(); + long getOrderId() const; + void setOrderId(long orderId); + OrderActionDetail getOrderActionDetail() const; + void setOrderActionDetail(const OrderActionDetail &orderActionDetail); + long getTid() const; + void setTid(long tid); + std::string getOrderActionName() const; + void setOrderActionName(const std::string &orderActionName); + +private: + long orderId_; + OrderActionDetail orderActionDetail_; + long tid_; + std::string orderActionName_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSQLREVIEWORIGINSQLREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSQLReviewOriginSQLResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSQLReviewOriginSQLResult.h new file mode 100644 index 000000000..cdf762d3b --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSQLReviewOriginSQLResult.h @@ -0,0 +1,69 @@ +/* + * 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_LISTSQLREVIEWORIGINSQLRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSQLREVIEWORIGINSQLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListSQLReviewOriginSQLResult : public ServiceResult + { + public: + struct OriginSQLListItem + { + std::string statusDesc; + std::string sQLContent; + std::string checkedTime; + std::string fileName; + std::string checkStatus; + long fileId; + long sQLId; + }; + + + ListSQLReviewOriginSQLResult(); + explicit ListSQLReviewOriginSQLResult(const std::string &payload); + ~ListSQLReviewOriginSQLResult(); + int getTotalCount()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::vector getOriginSQLList()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string errorCode_; + std::string errorMessage_; + std::vector originSQLList_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSQLREVIEWORIGINSQLRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsDetailRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsDetailRequest.h index 2348d8dfb..8beb57a7f 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsDetailRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsDetailRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVECOLUMNSDETAILREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVECOLUMNSDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListSensitiveColumnsDetailRequest : public RpcServiceRequest - { - - public: - ListSensitiveColumnsDetailRequest(); - ~ListSensitiveColumnsDetailRequest(); - - std::string getSchemaName()const; - void setSchemaName(const std::string& schemaName); - std::string getColumnName()const; - void setColumnName(const std::string& columnName); - long getTid()const; - void setTid(long tid); - std::string getTableName()const; - void setTableName(const std::string& tableName); - - private: - std::string schemaName_; - std::string columnName_; - long tid_; - std::string tableName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVECOLUMNSDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVECOLUMNSDETAILREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVECOLUMNSDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListSensitiveColumnsDetailRequest : public RpcServiceRequest { +public: + ListSensitiveColumnsDetailRequest(); + ~ListSensitiveColumnsDetailRequest(); + std::string getSchemaName() const; + void setSchemaName(const std::string &schemaName); + std::string getColumnName() const; + void setColumnName(const std::string &columnName); + long getTid() const; + void setTid(long tid); + std::string getTableName() const; + void setTableName(const std::string &tableName); + +private: + std::string schemaName_; + std::string columnName_; + long tid_; + std::string tableName_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVECOLUMNSDETAILREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsDetailResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsDetailResult.h index 38c26fcc2..4de5c5eac 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsDetailResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsDetailResult.h @@ -34,16 +34,16 @@ namespace AlibabaCloud public: struct SensitiveColumnsDetail { - std::string tableName; std::string columnName; + std::string tableName; std::string columnType; std::string searchName; std::string columnDescription; long dbId; bool logic; - std::string envType; - std::string schemaName; std::string dbType; + std::string schemaName; + std::string envType; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsRequest.h index ab0b6f99d..84275bc7b 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsRequest.h @@ -1,66 +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_LISTSENSITIVECOLUMNSREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVECOLUMNSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListSensitiveColumnsRequest : public RpcServiceRequest - { - - public: - ListSensitiveColumnsRequest(); - ~ListSensitiveColumnsRequest(); - - std::string getSchemaName()const; - void setSchemaName(const std::string& schemaName); - std::string getColumnName()const; - void setColumnName(const std::string& columnName); - long getTid()const; - void setTid(long tid); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getSecurityLevel()const; - void setSecurityLevel(const std::string& securityLevel); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getTableName()const; - void setTableName(const std::string& tableName); - - private: - std::string schemaName_; - std::string columnName_; - long tid_; - int pageNumber_; - std::string securityLevel_; - int pageSize_; - std::string tableName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVECOLUMNSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVECOLUMNSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVECOLUMNSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListSensitiveColumnsRequest : public RpcServiceRequest { +public: + ListSensitiveColumnsRequest(); + ~ListSensitiveColumnsRequest(); + std::string getSchemaName() const; + void setSchemaName(const std::string &schemaName); + std::string getColumnName() const; + void setColumnName(const std::string &columnName); + long getTid() const; + void setTid(long tid); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getSecurityLevel() const; + void setSecurityLevel(const std::string &securityLevel); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getTableName() const; + void setTableName(const std::string &tableName); + +private: + std::string schemaName_; + std::string columnName_; + long tid_; + int pageNumber_; + std::string securityLevel_; + int pageSize_; + std::string tableName_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSENSITIVECOLUMNSREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsResult.h index 5088f54c2..2ce8ca88e 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsResult.h @@ -34,11 +34,11 @@ namespace AlibabaCloud public: struct SensitiveColumn { - std::string tableName; std::string columnName; + std::string tableName; long columnCount; - std::string functionType; std::string securityLevel; + std::string functionType; std::string schemaName; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListTablesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListTablesRequest.h index e5a923178..500a6152a 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListTablesRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListTablesRequest.h @@ -1,63 +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_LISTTABLESREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTTABLESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListTablesRequest : public RpcServiceRequest - { - - public: - ListTablesRequest(); - ~ListTablesRequest(); - - std::string getSearchName()const; - void setSearchName(const std::string& searchName); - bool getReturnGuid()const; - void setReturnGuid(bool returnGuid); - long getTid()const; - void setTid(long tid); - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getDatabaseId()const; - void setDatabaseId(const std::string& databaseId); - - private: - std::string searchName_; - bool returnGuid_; - long tid_; - int pageNumber_; - int pageSize_; - std::string databaseId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTTABLESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTTABLESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTTABLESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListTablesRequest : public RpcServiceRequest { +public: + ListTablesRequest(); + ~ListTablesRequest(); + std::string getSearchName() const; + void setSearchName(const std::string &searchName); + bool getReturnGuid() const; + void setReturnGuid(bool returnGuid); + long getTid() const; + void setTid(long tid); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getDatabaseId() const; + void setDatabaseId(const std::string &databaseId); + +private: + std::string searchName_; + bool returnGuid_; + long tid_; + int pageNumber_; + int pageSize_; + std::string databaseId_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTTABLESREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListTablesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListTablesResult.h index 8e76515ad..a6bea56e3 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListTablesResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListTablesResult.h @@ -35,10 +35,10 @@ namespace AlibabaCloud struct Table { std::string tableId; - std::string tableType; std::string description; - std::string encoding; + std::string tableType; std::string databaseId; + std::string encoding; long numRows; std::string tableName; std::string tableGuid; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsRequest.h index d31ed4af0..61754d2ca 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsRequest.h @@ -1,72 +1,66 @@ /* * 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_LISTUSERPERMISSIONSREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERPERMISSIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListUserPermissionsRequest : public RpcServiceRequest - { - - public: - ListUserPermissionsRequest(); - ~ListUserPermissionsRequest(); - - std::string getUserId()const; - void setUserId(const std::string& userId); - long getTid()const; - void setTid(long tid); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getPermType()const; - void setPermType(const std::string& permType); - std::string getDatabaseName()const; - void setDatabaseName(const std::string& databaseName); - std::string getEnvType()const; - void setEnvType(const std::string& envType); - std::string getDbType()const; - void setDbType(const std::string& dbType); - int getPageSize()const; - void setPageSize(int pageSize); - bool getLogic()const; - void setLogic(bool logic); - - private: - std::string userId_; - long tid_; - int pageNumber_; - std::string permType_; - std::string databaseName_; - std::string envType_; - std::string dbType_; - int pageSize_; - bool logic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERPERMISSIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERPERMISSIONSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERPERMISSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListUserPermissionsRequest : public RpcServiceRequest { +public: + ListUserPermissionsRequest(); + ~ListUserPermissionsRequest(); + std::string getUserId() const; + void setUserId(const std::string &userId); + long getTid() const; + void setTid(long tid); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getPermType() const; + void setPermType(const std::string &permType); + std::string getDatabaseName() const; + void setDatabaseName(const std::string &databaseName); + std::string getEnvType() const; + void setEnvType(const std::string &envType); + std::string getDbType() const; + void setDbType(const std::string &dbType); + int getPageSize() const; + void setPageSize(int pageSize); + bool getLogic() const; + void setLogic(bool logic); + +private: + std::string userId_; + long tid_; + int pageNumber_; + std::string permType_; + std::string databaseName_; + std::string envType_; + std::string dbType_; + int pageSize_; + bool logic_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERPERMISSIONSREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsResult.h index 89f582a2a..82c8e54c6 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsResult.h @@ -39,22 +39,22 @@ namespace AlibabaCloud std::string expireDate; std::string permType; std::string extraData; - std::string createDate; std::string originFrom; + std::string createDate; std::string userAccessId; }; std::string tableId; - std::string searchName; std::string instanceId; + std::string searchName; std::vector permDetails; - std::string dbType; std::string envType; + std::string dbType; std::string dsType; - std::string columnName; std::string tableName; + std::string columnName; std::string userNickName; - std::string alias; std::string userId; + std::string alias; std::string dbId; bool logic; std::string schemaName; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserTenantsRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserTenantsRequest.h index 17b930b55..88ffac66d 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserTenantsRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserTenantsRequest.h @@ -1,48 +1,42 @@ /* * 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_LISTUSERTENANTSREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListUserTenantsRequest : public RpcServiceRequest - { - - public: - ListUserTenantsRequest(); - ~ListUserTenantsRequest(); - - long getTid()const; - void setTid(long tid); - - private: - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListUserTenantsRequest : public RpcServiceRequest { +public: + ListUserTenantsRequest(); + ~ListUserTenantsRequest(); + long getTid() const; + void setTid(long tid); + +private: + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersRequest.h index 1be76988a..5c2d43115 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersRequest.h @@ -1,63 +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_LISTUSERSREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListUsersRequest : public RpcServiceRequest - { - - public: - ListUsersRequest(); - ~ListUsersRequest(); - - std::string getRole()const; - void setRole(const std::string& role); - std::string getSearchKey()const; - void setSearchKey(const std::string& searchKey); - long getTid()const; - void setTid(long tid); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getUserState()const; - void setUserState(const std::string& userState); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string role_; - std::string searchKey_; - long tid_; - int pageNumber_; - std::string userState_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListUsersRequest : public RpcServiceRequest { +public: + ListUsersRequest(); + ~ListUsersRequest(); + std::string getRole() const; + void setRole(const std::string &role); + std::string getSearchKey() const; + void setSearchKey(const std::string &searchKey); + long getTid() const; + void setTid(long tid); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getUserState() const; + void setUserState(const std::string &userState); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string role_; + std::string searchKey_; + long tid_; + int pageNumber_; + std::string userState_; + int pageSize_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERSREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersResult.h index 85cd16513..c79b86f5b 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersResult.h @@ -36,15 +36,15 @@ namespace AlibabaCloud { std::vector roleNameList; std::string nickName; - std::string mobile; long maxExecuteCount; - std::string uid; - std::string lastLoginTime; + std::string mobile; long curResultCount; + std::string lastLoginTime; + std::string uid; std::vector roleIdList; long maxResultCount; - std::string userId; std::string state; + std::string userId; long curExecuteCount; std::string parentUid; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesRequest.h index ac0e42e98..ded0df84c 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesRequest.h @@ -1,51 +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_LISTWORKFLOWNODESREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWNODESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListWorkFlowNodesRequest : public RpcServiceRequest - { - - public: - ListWorkFlowNodesRequest(); - ~ListWorkFlowNodesRequest(); - - std::string getSearchName()const; - void setSearchName(const std::string& searchName); - long getTid()const; - void setTid(long tid); - - private: - std::string searchName_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWNODESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWNODESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWNODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListWorkFlowNodesRequest : public RpcServiceRequest { +public: + ListWorkFlowNodesRequest(); + ~ListWorkFlowNodesRequest(); + std::string getSearchName() const; + void setSearchName(const std::string &searchName); + long getTid() const; + void setTid(long tid); + +private: + std::string searchName_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWNODESREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesRequest.h index bcfaf71eb..d5a90171a 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesRequest.h @@ -1,51 +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_LISTWORKFLOWTEMPLATESREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWTEMPLATESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListWorkFlowTemplatesRequest : public RpcServiceRequest - { - - public: - ListWorkFlowTemplatesRequest(); - ~ListWorkFlowTemplatesRequest(); - - std::string getSearchName()const; - void setSearchName(const std::string& searchName); - long getTid()const; - void setTid(long tid); - - private: - std::string searchName_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWTEMPLATESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWTEMPLATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListWorkFlowTemplatesRequest : public RpcServiceRequest { +public: + ListWorkFlowTemplatesRequest(); + ~ListWorkFlowTemplatesRequest(); + std::string getSearchName() const; + void setSearchName(const std::string &searchName); + long getTid() const; + void setTid(long tid); + +private: + std::string searchName_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTWORKFLOWTEMPLATESREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesResult.h index 6b006990a..25e0caff1 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesResult.h @@ -37,17 +37,17 @@ namespace AlibabaCloud struct WorkflowNode { std::string comment; - int position; std::string nodeName; + int position; std::string nodeType; long nodeId; long createUserId; long templateId; }; std::string comment; - long createUserId; - std::string templateName; std::string enabled; + std::string templateName; + long createUserId; int isSystem; std::vector workflowNodes; long templateId; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterInstanceRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterInstanceRequest.h index 9b3da4e6b..daf782678 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterInstanceRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterInstanceRequest.h @@ -1,111 +1,105 @@ /* * 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_REGISTERINSTANCEREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RegisterInstanceRequest : public RpcServiceRequest - { - - public: - RegisterInstanceRequest(); - ~RegisterInstanceRequest(); - - std::string getEcsRegion()const; - void setEcsRegion(const std::string& ecsRegion); - int getDdlOnline()const; - void setDdlOnline(int ddlOnline); - int getUseDsql()const; - void setUseDsql(int useDsql); - std::string getNetworkType()const; - void setNetworkType(const std::string& networkType); - long getTid()const; - void setTid(long tid); - std::string getSid()const; - void setSid(const std::string& sid); - std::string getDataLinkName()const; - void setDataLinkName(const std::string& dataLinkName); - std::string getInstanceSource()const; - void setInstanceSource(const std::string& instanceSource); - std::string getEnvType()const; - void setEnvType(const std::string& envType); - std::string getHost()const; - void setHost(const std::string& host); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - int getQueryTimeout()const; - void setQueryTimeout(int queryTimeout); - std::string getEcsInstanceId()const; - void setEcsInstanceId(const std::string& ecsInstanceId); - int getExportTimeout()const; - void setExportTimeout(int exportTimeout); - std::string getDatabasePassword()const; - void setDatabasePassword(const std::string& databasePassword); - std::string getInstanceAlias()const; - void setInstanceAlias(const std::string& instanceAlias); - std::string getDatabaseUser()const; - void setDatabaseUser(const std::string& databaseUser); - int getPort()const; - void setPort(int port); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - long getDbaUid()const; - void setDbaUid(long dbaUid); - bool getSkipTest()const; - void setSkipTest(bool skipTest); - std::string getSafeRule()const; - void setSafeRule(const std::string& safeRule); - - private: - std::string ecsRegion_; - int ddlOnline_; - int useDsql_; - std::string networkType_; - long tid_; - std::string sid_; - std::string dataLinkName_; - std::string instanceSource_; - std::string envType_; - std::string host_; - std::string instanceType_; - int queryTimeout_; - std::string ecsInstanceId_; - int exportTimeout_; - std::string databasePassword_; - std::string instanceAlias_; - std::string databaseUser_; - int port_; - std::string vpcId_; - long dbaUid_; - bool skipTest_; - std::string safeRule_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERINSTANCEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RegisterInstanceRequest : public RpcServiceRequest { +public: + RegisterInstanceRequest(); + ~RegisterInstanceRequest(); + std::string getEcsRegion() const; + void setEcsRegion(const std::string &ecsRegion); + int getDdlOnline() const; + void setDdlOnline(int ddlOnline); + int getUseDsql() const; + void setUseDsql(int useDsql); + std::string getNetworkType() const; + void setNetworkType(const std::string &networkType); + long getTid() const; + void setTid(long tid); + std::string getSid() const; + void setSid(const std::string &sid); + std::string getDataLinkName() const; + void setDataLinkName(const std::string &dataLinkName); + std::string getInstanceSource() const; + void setInstanceSource(const std::string &instanceSource); + std::string getEnvType() const; + void setEnvType(const std::string &envType); + std::string getHost() const; + void setHost(const std::string &host); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + int getQueryTimeout() const; + void setQueryTimeout(int queryTimeout); + std::string getEcsInstanceId() const; + void setEcsInstanceId(const std::string &ecsInstanceId); + int getExportTimeout() const; + void setExportTimeout(int exportTimeout); + std::string getDatabasePassword() const; + void setDatabasePassword(const std::string &databasePassword); + std::string getInstanceAlias() const; + void setInstanceAlias(const std::string &instanceAlias); + std::string getDatabaseUser() const; + void setDatabaseUser(const std::string &databaseUser); + int getPort() const; + void setPort(int port); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + long getDbaUid() const; + void setDbaUid(long dbaUid); + bool getSkipTest() const; + void setSkipTest(bool skipTest); + std::string getSafeRule() const; + void setSafeRule(const std::string &safeRule); + +private: + std::string ecsRegion_; + int ddlOnline_; + int useDsql_; + std::string networkType_; + long tid_; + std::string sid_; + std::string dataLinkName_; + std::string instanceSource_; + std::string envType_; + std::string host_; + std::string instanceType_; + int queryTimeout_; + std::string ecsInstanceId_; + int exportTimeout_; + std::string databasePassword_; + std::string instanceAlias_; + std::string databaseUser_; + int port_; + std::string vpcId_; + long dbaUid_; + bool skipTest_; + std::string safeRule_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERINSTANCEREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterUserRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterUserRequest.h index f5593aebe..45d2293e0 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterUserRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RegisterUserRequest.h @@ -1,60 +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. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERUSERREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RegisterUserRequest : public RpcServiceRequest - { - - public: - RegisterUserRequest(); - ~RegisterUserRequest(); - - std::string getRoleNames()const; - void setRoleNames(const std::string& roleNames); - std::string getUserNick()const; - void setUserNick(const std::string& userNick); - std::string getMobile()const; - void setMobile(const std::string& mobile); - long getTid()const; - void setTid(long tid); - std::string getUid()const; - void setUid(const std::string& uid); - - private: - std::string roleNames_; - std::string userNick_; - std::string mobile_; - long tid_; - std::string uid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERUSERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RegisterUserRequest : public RpcServiceRequest { +public: + RegisterUserRequest(); + ~RegisterUserRequest(); + std::string getRoleNames() const; + void setRoleNames(const std::string &roleNames); + std::string getUserNick() const; + void setUserNick(const std::string &userNick); + std::string getMobile() const; + void setMobile(const std::string &mobile); + long getTid() const; + void setTid(long tid); + std::string getUid() const; + void setUid(const std::string &uid); + +private: + std::string roleNames_; + std::string userNick_; + std::string mobile_; + long tid_; + std::string uid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REGISTERUSERREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RevokeUserPermissionRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RevokeUserPermissionRequest.h index d09333186..b51b2ea77 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RevokeUserPermissionRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RevokeUserPermissionRequest.h @@ -1,72 +1,66 @@ /* * 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_REVOKEUSERPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REVOKEUSERPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RevokeUserPermissionRequest : public RpcServiceRequest - { - - public: - RevokeUserPermissionRequest(); - ~RevokeUserPermissionRequest(); - - std::string getPermTypes()const; - void setPermTypes(const std::string& permTypes); - std::string getUserAccessId()const; - void setUserAccessId(const std::string& userAccessId); - std::string getDsType()const; - void setDsType(const std::string& dsType); - std::string getUserId()const; - void setUserId(const std::string& userId); - long getTid()const; - void setTid(long tid); - std::string getDbId()const; - void setDbId(const std::string& dbId); - std::string getTableId()const; - void setTableId(const std::string& tableId); - bool getLogic()const; - void setLogic(bool logic); - std::string getTableName()const; - void setTableName(const std::string& tableName); - - private: - std::string permTypes_; - std::string userAccessId_; - std::string dsType_; - std::string userId_; - long tid_; - std::string dbId_; - std::string tableId_; - bool logic_; - std::string tableName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REVOKEUSERPERMISSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REVOKEUSERPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REVOKEUSERPERMISSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RevokeUserPermissionRequest : public RpcServiceRequest { +public: + RevokeUserPermissionRequest(); + ~RevokeUserPermissionRequest(); + std::string getPermTypes() const; + void setPermTypes(const std::string &permTypes); + std::string getUserAccessId() const; + void setUserAccessId(const std::string &userAccessId); + std::string getDsType() const; + void setDsType(const std::string &dsType); + std::string getUserId() const; + void setUserId(const std::string &userId); + long getTid() const; + void setTid(long tid); + std::string getDbId() const; + void setDbId(const std::string &dbId); + std::string getTableId() const; + void setTableId(const std::string &tableId); + bool getLogic() const; + void setLogic(bool logic); + std::string getTableName() const; + void setTableName(const std::string &tableName); + +private: + std::string permTypes_; + std::string userAccessId_; + std::string dsType_; + std::string userId_; + long tid_; + std::string dbId_; + std::string tableId_; + bool logic_; + std::string tableName_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REVOKEUSERPERMISSIONREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchDatabaseRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchDatabaseRequest.h index 6d7630243..ff32f61f9 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchDatabaseRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchDatabaseRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATABASEREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATABASEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SearchDatabaseRequest : public RpcServiceRequest - { - - public: - SearchDatabaseRequest(); - ~SearchDatabaseRequest(); - - std::string getSearchKey()const; - void setSearchKey(const std::string& searchKey); - std::string getSearchRange()const; - void setSearchRange(const std::string& searchRange); - long getTid()const; - void setTid(long tid); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getSearchTarget()const; - void setSearchTarget(const std::string& searchTarget); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getEnvType()const; - void setEnvType(const std::string& envType); - std::string getDbType()const; - void setDbType(const std::string& dbType); - - private: - std::string searchKey_; - std::string searchRange_; - long tid_; - int pageNumber_; - std::string searchTarget_; - int pageSize_; - std::string envType_; - std::string dbType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATABASEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATABASEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATABASEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SearchDatabaseRequest : public RpcServiceRequest { +public: + SearchDatabaseRequest(); + ~SearchDatabaseRequest(); + std::string getSearchKey() const; + void setSearchKey(const std::string &searchKey); + std::string getSearchRange() const; + void setSearchRange(const std::string &searchRange); + long getTid() const; + void setTid(long tid); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getSearchTarget() const; + void setSearchTarget(const std::string &searchTarget); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getEnvType() const; + void setEnvType(const std::string &envType); + std::string getDbType() const; + void setDbType(const std::string &dbType); + +private: + std::string searchKey_; + std::string searchRange_; + long tid_; + int pageNumber_; + std::string searchTarget_; + int pageSize_; + std::string envType_; + std::string dbType_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATABASEREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchDatabaseResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchDatabaseResult.h index b45b02c5e..42375c379 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchDatabaseResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchDatabaseResult.h @@ -36,11 +36,11 @@ namespace AlibabaCloud { std::string searchName; int port; - std::string encoding; - std::string host; std::string databaseId; - std::string dbType; + std::string host; + std::string encoding; std::string envType; + std::string dbType; std::string sid; std::string dbaId; std::string alias; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchTableRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchTableRequest.h index a6c95dbf1..0d0c0b93c 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchTableRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchTableRequest.h @@ -1,72 +1,66 @@ /* * 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_SEARCHTABLEREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHTABLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SearchTableRequest : public RpcServiceRequest - { - - public: - SearchTableRequest(); - ~SearchTableRequest(); - - bool getReturnGuid()const; - void setReturnGuid(bool returnGuid); - std::string getSearchKey()const; - void setSearchKey(const std::string& searchKey); - std::string getSearchRange()const; - void setSearchRange(const std::string& searchRange); - long getTid()const; - void setTid(long tid); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getSearchTarget()const; - void setSearchTarget(const std::string& searchTarget); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getEnvType()const; - void setEnvType(const std::string& envType); - std::string getDbType()const; - void setDbType(const std::string& dbType); - - private: - bool returnGuid_; - std::string searchKey_; - std::string searchRange_; - long tid_; - int pageNumber_; - std::string searchTarget_; - int pageSize_; - std::string envType_; - std::string dbType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHTABLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHTABLEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHTABLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SearchTableRequest : public RpcServiceRequest { +public: + SearchTableRequest(); + ~SearchTableRequest(); + bool getReturnGuid() const; + void setReturnGuid(bool returnGuid); + std::string getSearchKey() const; + void setSearchKey(const std::string &searchKey); + std::string getSearchRange() const; + void setSearchRange(const std::string &searchRange); + long getTid() const; + void setTid(long tid); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getSearchTarget() const; + void setSearchTarget(const std::string &searchTarget); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getEnvType() const; + void setEnvType(const std::string &envType); + std::string getDbType() const; + void setDbType(const std::string &dbType); + +private: + bool returnGuid_; + std::string searchKey_; + std::string searchRange_; + long tid_; + int pageNumber_; + std::string searchTarget_; + int pageSize_; + std::string envType_; + std::string dbType_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHTABLEREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchTableResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchTableResult.h index 0d76137a2..a27642fdd 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchTableResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SearchTableResult.h @@ -36,11 +36,11 @@ namespace AlibabaCloud { std::string tableId; std::string description; - std::string encoding; std::string databaseId; + std::string encoding; std::string dBSearchName; - std::string dbType; std::string envType; + std::string dbType; std::string tableName; std::string tableGuid; std::string tableSchemaName; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SetOwnersRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SetOwnersRequest.h index 86aed53e2..3ae2e4a47 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SetOwnersRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SetOwnersRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SETOWNERSREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SETOWNERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SetOwnersRequest : public RpcServiceRequest - { - - public: - SetOwnersRequest(); - ~SetOwnersRequest(); - - std::string getResourceId()const; - void setResourceId(const std::string& resourceId); - std::string getOwnerIds()const; - void setOwnerIds(const std::string& ownerIds); - long getTid()const; - void setTid(long tid); - std::string getOwnerType()const; - void setOwnerType(const std::string& ownerType); - - private: - std::string resourceId_; - std::string ownerIds_; - long tid_; - std::string ownerType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SETOWNERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SETOWNERSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SETOWNERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SetOwnersRequest : public RpcServiceRequest { +public: + SetOwnersRequest(); + ~SetOwnersRequest(); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getOwnerIds() const; + void setOwnerIds(const std::string &ownerIds); + long getTid() const; + void setTid(long tid); + std::string getOwnerType() const; + void setOwnerType(const std::string &ownerType); + +private: + std::string resourceId_; + std::string ownerIds_; + long tid_; + std::string ownerType_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SETOWNERSREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitOrderApprovalRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitOrderApprovalRequest.h index 015c49159..940c97a02 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitOrderApprovalRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitOrderApprovalRequest.h @@ -1,51 +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_SUBMITORDERAPPROVALREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITORDERAPPROVALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SubmitOrderApprovalRequest : public RpcServiceRequest - { - - public: - SubmitOrderApprovalRequest(); - ~SubmitOrderApprovalRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - long getTid()const; - void setTid(long tid); - - private: - long orderId_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITORDERAPPROVALREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITORDERAPPROVALREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITORDERAPPROVALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SubmitOrderApprovalRequest : public RpcServiceRequest { +public: + SubmitOrderApprovalRequest(); + ~SubmitOrderApprovalRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getTid() const; + void setTid(long tid); + +private: + long orderId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITORDERAPPROVALREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitStructSyncOrderApprovalRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitStructSyncOrderApprovalRequest.h index e2f096e87..af7c05dc3 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitStructSyncOrderApprovalRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitStructSyncOrderApprovalRequest.h @@ -1,51 +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_SUBMITSTRUCTSYNCORDERAPPROVALREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITSTRUCTSYNCORDERAPPROVALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SubmitStructSyncOrderApprovalRequest : public RpcServiceRequest - { - - public: - SubmitStructSyncOrderApprovalRequest(); - ~SubmitStructSyncOrderApprovalRequest(); - - long getOrderId()const; - void setOrderId(long orderId); - long getTid()const; - void setTid(long tid); - - private: - long orderId_; - long tid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITSTRUCTSYNCORDERAPPROVALREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITSTRUCTSYNCORDERAPPROVALREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITSTRUCTSYNCORDERAPPROVALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SubmitStructSyncOrderApprovalRequest : public RpcServiceRequest { +public: + SubmitStructSyncOrderApprovalRequest(); + ~SubmitStructSyncOrderApprovalRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getTid() const; + void setTid(long tid); + +private: + long orderId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITSTRUCTSYNCORDERAPPROVALREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncDatabaseMetaRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncDatabaseMetaRequest.h index b2456759d..89dcbc1f7 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncDatabaseMetaRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncDatabaseMetaRequest.h @@ -1,54 +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_SYNCDATABASEMETAREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCDATABASEMETAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SyncDatabaseMetaRequest : public RpcServiceRequest - { - - public: - SyncDatabaseMetaRequest(); - ~SyncDatabaseMetaRequest(); - - long getTid()const; - void setTid(long tid); - std::string getDbId()const; - void setDbId(const std::string& dbId); - bool getLogic()const; - void setLogic(bool logic); - - private: - long tid_; - std::string dbId_; - bool logic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCDATABASEMETAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCDATABASEMETAREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCDATABASEMETAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SyncDatabaseMetaRequest : public RpcServiceRequest { +public: + SyncDatabaseMetaRequest(); + ~SyncDatabaseMetaRequest(); + long getTid() const; + void setTid(long tid); + std::string getDbId() const; + void setDbId(const std::string &dbId); + bool getLogic() const; + void setLogic(bool logic); + +private: + long tid_; + std::string dbId_; + bool logic_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCDATABASEMETAREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncInstanceMetaRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncInstanceMetaRequest.h index 521e83668..74b25cfea 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncInstanceMetaRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SyncInstanceMetaRequest.h @@ -1,54 +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_SYNCINSTANCEMETAREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCINSTANCEMETAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SyncInstanceMetaRequest : public RpcServiceRequest - { - - public: - SyncInstanceMetaRequest(); - ~SyncInstanceMetaRequest(); - - bool getIgnoreTable()const; - void setIgnoreTable(bool ignoreTable); - long getTid()const; - void setTid(long tid); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - bool ignoreTable_; - long tid_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCINSTANCEMETAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCINSTANCEMETAREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCINSTANCEMETAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SyncInstanceMetaRequest : public RpcServiceRequest { +public: + SyncInstanceMetaRequest(); + ~SyncInstanceMetaRequest(); + bool getIgnoreTable() const; + void setIgnoreTable(bool ignoreTable); + long getTid() const; + void setTid(long tid); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + bool ignoreTable_; + long tid_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SYNCINSTANCEMETAREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateInstanceRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateInstanceRequest.h index de72a8cdb..41e8e6664 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateInstanceRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateInstanceRequest.h @@ -1,111 +1,105 @@ /* * 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_UPDATEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT UpdateInstanceRequest : public RpcServiceRequest - { - - public: - UpdateInstanceRequest(); - ~UpdateInstanceRequest(); - - std::string getSafeRuleId()const; - void setSafeRuleId(const std::string& safeRuleId); - std::string getEcsRegion()const; - void setEcsRegion(const std::string& ecsRegion); - int getDdlOnline()const; - void setDdlOnline(int ddlOnline); - int getUseDsql()const; - void setUseDsql(int useDsql); - long getTid()const; - void setTid(long tid); - std::string getSid()const; - void setSid(const std::string& sid); - std::string getDbaId()const; - void setDbaId(const std::string& dbaId); - std::string getDataLinkName()const; - void setDataLinkName(const std::string& dataLinkName); - std::string getInstanceSource()const; - void setInstanceSource(const std::string& instanceSource); - std::string getEnvType()const; - void setEnvType(const std::string& envType); - std::string getHost()const; - void setHost(const std::string& host); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - int getQueryTimeout()const; - void setQueryTimeout(int queryTimeout); - std::string getEcsInstanceId()const; - void setEcsInstanceId(const std::string& ecsInstanceId); - int getExportTimeout()const; - void setExportTimeout(int exportTimeout); - std::string getDatabasePassword()const; - void setDatabasePassword(const std::string& databasePassword); - std::string getInstanceAlias()const; - void setInstanceAlias(const std::string& instanceAlias); - std::string getDatabaseUser()const; - void setDatabaseUser(const std::string& databaseUser); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPort()const; - void setPort(int port); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - bool getSkipTest()const; - void setSkipTest(bool skipTest); - - private: - std::string safeRuleId_; - std::string ecsRegion_; - int ddlOnline_; - int useDsql_; - long tid_; - std::string sid_; - std::string dbaId_; - std::string dataLinkName_; - std::string instanceSource_; - std::string envType_; - std::string host_; - std::string instanceType_; - int queryTimeout_; - std::string ecsInstanceId_; - int exportTimeout_; - std::string databasePassword_; - std::string instanceAlias_; - std::string databaseUser_; - std::string instanceId_; - int port_; - std::string vpcId_; - bool skipTest_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT UpdateInstanceRequest : public RpcServiceRequest { +public: + UpdateInstanceRequest(); + ~UpdateInstanceRequest(); + std::string getSafeRuleId() const; + void setSafeRuleId(const std::string &safeRuleId); + std::string getEcsRegion() const; + void setEcsRegion(const std::string &ecsRegion); + int getDdlOnline() const; + void setDdlOnline(int ddlOnline); + int getUseDsql() const; + void setUseDsql(int useDsql); + long getTid() const; + void setTid(long tid); + std::string getSid() const; + void setSid(const std::string &sid); + std::string getDbaId() const; + void setDbaId(const std::string &dbaId); + std::string getDataLinkName() const; + void setDataLinkName(const std::string &dataLinkName); + std::string getInstanceSource() const; + void setInstanceSource(const std::string &instanceSource); + std::string getEnvType() const; + void setEnvType(const std::string &envType); + std::string getHost() const; + void setHost(const std::string &host); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + int getQueryTimeout() const; + void setQueryTimeout(int queryTimeout); + std::string getEcsInstanceId() const; + void setEcsInstanceId(const std::string &ecsInstanceId); + int getExportTimeout() const; + void setExportTimeout(int exportTimeout); + std::string getDatabasePassword() const; + void setDatabasePassword(const std::string &databasePassword); + std::string getInstanceAlias() const; + void setInstanceAlias(const std::string &instanceAlias); + std::string getDatabaseUser() const; + void setDatabaseUser(const std::string &databaseUser); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPort() const; + void setPort(int port); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + bool getSkipTest() const; + void setSkipTest(bool skipTest); + +private: + std::string safeRuleId_; + std::string ecsRegion_; + int ddlOnline_; + int useDsql_; + long tid_; + std::string sid_; + std::string dbaId_; + std::string dataLinkName_; + std::string instanceSource_; + std::string envType_; + std::string host_; + std::string instanceType_; + int queryTimeout_; + std::string ecsInstanceId_; + int exportTimeout_; + std::string databasePassword_; + std::string instanceAlias_; + std::string databaseUser_; + std::string instanceId_; + int port_; + std::string vpcId_; + bool skipTest_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEINSTANCEREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateUserRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateUserRequest.h index 3633899c5..b180d05ff 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateUserRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/UpdateUserRequest.h @@ -1,66 +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_UPDATEUSERREQUEST_H_ -#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dms_enterprise - { - namespace Model - { - class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT UpdateUserRequest : public RpcServiceRequest - { - - public: - UpdateUserRequest(); - ~UpdateUserRequest(); - - std::string getRoleNames()const; - void setRoleNames(const std::string& roleNames); - long getMaxResultCount()const; - void setMaxResultCount(long maxResultCount); - long getMaxExecuteCount()const; - void setMaxExecuteCount(long maxExecuteCount); - std::string getUserNick()const; - void setUserNick(const std::string& userNick); - std::string getMobile()const; - void setMobile(const std::string& mobile); - long getTid()const; - void setTid(long tid); - long getUid()const; - void setUid(long uid); - - private: - std::string roleNames_; - long maxResultCount_; - long maxExecuteCount_; - std::string userNick_; - std::string mobile_; - long tid_; - long uid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEUSERREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT UpdateUserRequest : public RpcServiceRequest { +public: + UpdateUserRequest(); + ~UpdateUserRequest(); + std::string getRoleNames() const; + void setRoleNames(const std::string &roleNames); + long getMaxResultCount() const; + void setMaxResultCount(long maxResultCount); + long getMaxExecuteCount() const; + void setMaxExecuteCount(long maxExecuteCount); + std::string getUserNick() const; + void setUserNick(const std::string &userNick); + std::string getMobile() const; + void setMobile(const std::string &mobile); + long getTid() const; + void setTid(long tid); + long getUid() const; + void setUid(long uid); + +private: + std::string roleNames_; + long maxResultCount_; + long maxExecuteCount_; + std::string userNick_; + std::string mobile_; + long tid_; + long uid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEUSERREQUEST_H_ diff --git a/dms-enterprise/src/Dms-enterpriseClient.cc b/dms-enterprise/src/Dms-enterpriseClient.cc index 6884510fc..b6c3ae985 100644 --- a/dms-enterprise/src/Dms-enterpriseClient.cc +++ b/dms-enterprise/src/Dms-enterpriseClient.cc @@ -339,6 +339,42 @@ Dms_enterpriseClient::CreatePublishGroupTaskOutcomeCallable Dms_enterpriseClient return task->get_future(); } +Dms_enterpriseClient::CreateSQLReviewOrderOutcome Dms_enterpriseClient::createSQLReviewOrder(const CreateSQLReviewOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSQLReviewOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSQLReviewOrderOutcome(CreateSQLReviewOrderResult(outcome.result())); + else + return CreateSQLReviewOrderOutcome(outcome.error()); +} + +void Dms_enterpriseClient::createSQLReviewOrderAsync(const CreateSQLReviewOrderRequest& request, const CreateSQLReviewOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSQLReviewOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::CreateSQLReviewOrderOutcomeCallable Dms_enterpriseClient::createSQLReviewOrderCallable(const CreateSQLReviewOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSQLReviewOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::CreateStructSyncOrderOutcome Dms_enterpriseClient::createStructSyncOrder(const CreateStructSyncOrderRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1419,6 +1455,42 @@ Dms_enterpriseClient::GetPhysicalDatabaseOutcomeCallable Dms_enterpriseClient::g return task->get_future(); } +Dms_enterpriseClient::GetSQLReviewCheckResultStatusOutcome Dms_enterpriseClient::getSQLReviewCheckResultStatus(const GetSQLReviewCheckResultStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSQLReviewCheckResultStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSQLReviewCheckResultStatusOutcome(GetSQLReviewCheckResultStatusResult(outcome.result())); + else + return GetSQLReviewCheckResultStatusOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getSQLReviewCheckResultStatusAsync(const GetSQLReviewCheckResultStatusRequest& request, const GetSQLReviewCheckResultStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSQLReviewCheckResultStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetSQLReviewCheckResultStatusOutcomeCallable Dms_enterpriseClient::getSQLReviewCheckResultStatusCallable(const GetSQLReviewCheckResultStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSQLReviewCheckResultStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::GetStructSyncExecSqlDetailOutcome Dms_enterpriseClient::getStructSyncExecSqlDetail(const GetStructSyncExecSqlDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2175,6 +2247,42 @@ Dms_enterpriseClient::ListOrdersOutcomeCallable Dms_enterpriseClient::listOrders return task->get_future(); } +Dms_enterpriseClient::ListSQLReviewOriginSQLOutcome Dms_enterpriseClient::listSQLReviewOriginSQL(const ListSQLReviewOriginSQLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSQLReviewOriginSQLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSQLReviewOriginSQLOutcome(ListSQLReviewOriginSQLResult(outcome.result())); + else + return ListSQLReviewOriginSQLOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listSQLReviewOriginSQLAsync(const ListSQLReviewOriginSQLRequest& request, const ListSQLReviewOriginSQLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSQLReviewOriginSQL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListSQLReviewOriginSQLOutcomeCallable Dms_enterpriseClient::listSQLReviewOriginSQLCallable(const ListSQLReviewOriginSQLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSQLReviewOriginSQL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::ListSensitiveColumnsOutcome Dms_enterpriseClient::listSensitiveColumns(const ListSensitiveColumnsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/dms-enterprise/src/model/ApproveOrderRequest.cc b/dms-enterprise/src/model/ApproveOrderRequest.cc index 02decf649..465238ee1 100644 --- a/dms-enterprise/src/model/ApproveOrderRequest.cc +++ b/dms-enterprise/src/model/ApproveOrderRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::ApproveOrderRequest; - -ApproveOrderRequest::ApproveOrderRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ApproveOrder") -{ - setMethod(HttpRequest::Method::Post); -} - -ApproveOrderRequest::~ApproveOrderRequest() -{} - -long ApproveOrderRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ApproveOrderRequest; + +ApproveOrderRequest::ApproveOrderRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ApproveOrder") { + setMethod(HttpRequest::Method::Post); } -void ApproveOrderRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +ApproveOrderRequest::~ApproveOrderRequest() {} + +long ApproveOrderRequest::getTid() const { + return tid_; } -long ApproveOrderRequest::getWorkflowInstanceId()const -{ - return workflowInstanceId_; +void ApproveOrderRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ApproveOrderRequest::setWorkflowInstanceId(long workflowInstanceId) -{ - workflowInstanceId_ = workflowInstanceId; - setParameter("WorkflowInstanceId", std::to_string(workflowInstanceId)); +long ApproveOrderRequest::getWorkflowInstanceId() const { + return workflowInstanceId_; } -std::string ApproveOrderRequest::getApprovalType()const -{ - return approvalType_; +void ApproveOrderRequest::setWorkflowInstanceId(long workflowInstanceId) { + workflowInstanceId_ = workflowInstanceId; + setParameter(std::string("WorkflowInstanceId"), std::to_string(workflowInstanceId)); } -void ApproveOrderRequest::setApprovalType(const std::string& approvalType) -{ - approvalType_ = approvalType; - setParameter("ApprovalType", approvalType); +std::string ApproveOrderRequest::getApprovalType() const { + return approvalType_; } -std::string ApproveOrderRequest::getComment()const -{ - return comment_; +void ApproveOrderRequest::setApprovalType(const std::string &approvalType) { + approvalType_ = approvalType; + setParameter(std::string("ApprovalType"), approvalType); } -void ApproveOrderRequest::setComment(const std::string& comment) -{ - comment_ = comment; - setParameter("Comment", comment); +std::string ApproveOrderRequest::getComment() const { + return comment_; +} + +void ApproveOrderRequest::setComment(const std::string &comment) { + comment_ = comment; + setParameter(std::string("Comment"), comment); } diff --git a/dms-enterprise/src/model/CloseOrderRequest.cc b/dms-enterprise/src/model/CloseOrderRequest.cc index d4966b447..963db9130 100644 --- a/dms-enterprise/src/model/CloseOrderRequest.cc +++ b/dms-enterprise/src/model/CloseOrderRequest.cc @@ -1,62 +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::CloseOrderRequest; - -CloseOrderRequest::CloseOrderRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "CloseOrder") -{ - setMethod(HttpRequest::Method::Post); -} - -CloseOrderRequest::~CloseOrderRequest() -{} - -long CloseOrderRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::CloseOrderRequest; + +CloseOrderRequest::CloseOrderRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "CloseOrder") { + setMethod(HttpRequest::Method::Post); } -void CloseOrderRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +CloseOrderRequest::~CloseOrderRequest() {} + +long CloseOrderRequest::getOrderId() const { + return orderId_; } -std::string CloseOrderRequest::getCloseReason()const -{ - return closeReason_; +void CloseOrderRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void CloseOrderRequest::setCloseReason(const std::string& closeReason) -{ - closeReason_ = closeReason; - setParameter("CloseReason", closeReason); +std::string CloseOrderRequest::getCloseReason() const { + return closeReason_; } -long CloseOrderRequest::getTid()const -{ - return tid_; +void CloseOrderRequest::setCloseReason(const std::string &closeReason) { + closeReason_ = closeReason; + setParameter(std::string("CloseReason"), closeReason); } -void CloseOrderRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long CloseOrderRequest::getTid() const { + return tid_; +} + +void CloseOrderRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/CreateDataCorrectOrderRequest.cc b/dms-enterprise/src/model/CreateDataCorrectOrderRequest.cc index f38bf75a4..c6da8486c 100644 --- a/dms-enterprise/src/model/CreateDataCorrectOrderRequest.cc +++ b/dms-enterprise/src/model/CreateDataCorrectOrderRequest.cc @@ -1,109 +1,85 @@ /* * 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::CreateDataCorrectOrderRequest; - -CreateDataCorrectOrderRequest::CreateDataCorrectOrderRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateDataCorrectOrder") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateDataCorrectOrderRequest::~CreateDataCorrectOrderRequest() -{} - -long CreateDataCorrectOrderRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::CreateDataCorrectOrderRequest; + +CreateDataCorrectOrderRequest::CreateDataCorrectOrderRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateDataCorrectOrder") { + setMethod(HttpRequest::Method::Post); } -void CreateDataCorrectOrderRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +CreateDataCorrectOrderRequest::~CreateDataCorrectOrderRequest() {} + +long CreateDataCorrectOrderRequest::getTid() const { + return tid_; } -std::string CreateDataCorrectOrderRequest::getAttachmentKey()const -{ - return attachmentKey_; +void CreateDataCorrectOrderRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void CreateDataCorrectOrderRequest::setAttachmentKey(const std::string& attachmentKey) -{ - attachmentKey_ = attachmentKey; - setParameter("AttachmentKey", attachmentKey); +std::string CreateDataCorrectOrderRequest::getAttachmentKey() const { + return attachmentKey_; } -Struct CreateDataCorrectOrderRequest::getParam()const -{ - return param_; +void CreateDataCorrectOrderRequest::setAttachmentKey(const std::string &attachmentKey) { + attachmentKey_ = attachmentKey; + setParameter(std::string("AttachmentKey"), attachmentKey); } -void CreateDataCorrectOrderRequest::setParam(const Struct& param) -{ - param_ = param; - for(int dep1 = 0; dep1!= param.size(); dep1++) { - auto paramObj = param.at(dep1); - std::string paramObjStr = "Param." + std::to_string(dep1 + 1); - setParameter(paramObjStr + ".SqlType", paramObj.sqlType); - setParameter(paramObjStr + ".Classify", paramObj.classify); - setParameter(paramObjStr + ".RollbackSQL", paramObj.rollbackSQL); - setParameter(paramObjStr + ".RollbackSqlType", paramObj.rollbackSqlType); - for(int dep2 = 0; dep2!= paramObj.dbItemList.size(); dep2++) { - auto dbItemListObj = paramObj.dbItemList.at(dep2); - std::string dbItemListObjStr = paramObjStr + "DbItemList." + std::to_string(dep2 + 1); - for(int dep3 = 0; dep3!= dbItemListObj.dbItemListItem.size(); dep3++) { - auto dbItemListItemObj = dbItemListObj.dbItemListItem.at(dep3); - std::string dbItemListItemObjStr = dbItemListObjStr + "DbItemListItem." + std::to_string(dep3 + 1); - setParameter(dbItemListItemObjStr + ".DbId", std::to_string(dbItemListItemObj.dbId)); - setParameter(dbItemListItemObjStr + ".Logic", dbItemListItemObj.logic ? "true" : "false"); - } - } - setParameter(paramObjStr + ".ExecSQL", paramObj.execSQL); - setParameter(paramObjStr + ".EstimateAffectRows", std::to_string(paramObj.estimateAffectRows)); - setParameter(paramObjStr + ".RollbackAttachmentName", paramObj.rollbackAttachmentName); - setParameter(paramObjStr + ".AttachmentName", paramObj.attachmentName); - } +CreateDataCorrectOrderRequest::Param CreateDataCorrectOrderRequest::getParam() const { + return param_; } -std::string CreateDataCorrectOrderRequest::getComment()const -{ - return comment_; +void CreateDataCorrectOrderRequest::setParam(const CreateDataCorrectOrderRequest::Param ¶m) { + param_ = param; + setParameter(std::string("Param") + ".SqlType", param.sqlType); + 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") + ".EstimateAffectRows", std::to_string(param.estimateAffectRows)); + setParameter(std::string("Param") + ".RollbackAttachmentName", param.rollbackAttachmentName); + setParameter(std::string("Param") + ".AttachmentName", param.attachmentName); } -void CreateDataCorrectOrderRequest::setComment(const std::string& comment) -{ - comment_ = comment; - setParameter("Comment", comment); +std::string CreateDataCorrectOrderRequest::getComment() const { + return comment_; } -Array CreateDataCorrectOrderRequest::getRelatedUserList()const -{ - return relatedUserList_; +void CreateDataCorrectOrderRequest::setComment(const std::string &comment) { + comment_ = comment; + setParameter(std::string("Comment"), comment); } -void CreateDataCorrectOrderRequest::setRelatedUserList(const Array& relatedUserList) -{ - relatedUserList_ = relatedUserList; - for(int dep1 = 0; dep1!= relatedUserList.size(); dep1++) { - auto relatedUserListObj = relatedUserList.at(dep1); - std::string relatedUserListObjStr = "RelatedUserList." + std::to_string(dep1 + 1); - setParameter(relatedUserListObjStr + ".RelatedUserList", std::to_string(relatedUserListObj.relatedUserList)); - } +std::vector CreateDataCorrectOrderRequest::getRelatedUserList() const { + return relatedUserList_; +} + +void CreateDataCorrectOrderRequest::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])); + } } diff --git a/dms-enterprise/src/model/CreateDataCorrectOrderResult.cc b/dms-enterprise/src/model/CreateDataCorrectOrderResult.cc index ae5a0da82..2d3e911af 100644 --- a/dms-enterprise/src/model/CreateDataCorrectOrderResult.cc +++ b/dms-enterprise/src/model/CreateDataCorrectOrderResult.cc @@ -42,12 +42,12 @@ void CreateDataCorrectOrderResult::parse(const std::string &payload) auto allCreateOrderResult = value["CreateOrderResult"]["OrderIds"]; for (const auto &item : allCreateOrderResult) createOrderResult_.push_back(item.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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } diff --git a/dms-enterprise/src/model/CreateDataCronClearOrderRequest.cc b/dms-enterprise/src/model/CreateDataCronClearOrderRequest.cc index 2d0e28549..9266fb1c4 100644 --- a/dms-enterprise/src/model/CreateDataCronClearOrderRequest.cc +++ b/dms-enterprise/src/model/CreateDataCronClearOrderRequest.cc @@ -1,118 +1,88 @@ /* * 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::CreateDataCronClearOrderRequest; - -CreateDataCronClearOrderRequest::CreateDataCronClearOrderRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateDataCronClearOrder") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateDataCronClearOrderRequest::~CreateDataCronClearOrderRequest() -{} - -long CreateDataCronClearOrderRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::CreateDataCronClearOrderRequest; + +CreateDataCronClearOrderRequest::CreateDataCronClearOrderRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateDataCronClearOrder") { + setMethod(HttpRequest::Method::Post); } -void CreateDataCronClearOrderRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +CreateDataCronClearOrderRequest::~CreateDataCronClearOrderRequest() {} + +long CreateDataCronClearOrderRequest::getTid() const { + return tid_; } -std::string CreateDataCronClearOrderRequest::getAttachmentKey()const -{ - return attachmentKey_; +void CreateDataCronClearOrderRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void CreateDataCronClearOrderRequest::setAttachmentKey(const std::string& attachmentKey) -{ - attachmentKey_ = attachmentKey; - setParameter("AttachmentKey", attachmentKey); +std::string CreateDataCronClearOrderRequest::getAttachmentKey() const { + return attachmentKey_; } -Struct CreateDataCronClearOrderRequest::getParam()const -{ - return param_; +void CreateDataCronClearOrderRequest::setAttachmentKey(const std::string &attachmentKey) { + attachmentKey_ = attachmentKey; + setParameter(std::string("AttachmentKey"), attachmentKey); } -void CreateDataCronClearOrderRequest::setParam(const Struct& param) -{ - param_ = param; - for(int dep1 = 0; dep1!= param.size(); dep1++) { - auto paramObj = param.at(dep1); - std::string paramObjStr = "Param." + std::to_string(dep1 + 1); - setParameter(paramObjStr + ".Classify", paramObj.classify); - for(int dep2 = 0; dep2!= paramObj.dbItemList.size(); dep2++) { - auto dbItemListObj = paramObj.dbItemList.at(dep2); - std::string dbItemListObjStr = paramObjStr + "DbItemList." + std::to_string(dep2 + 1); - for(int dep3 = 0; dep3!= dbItemListObj.dbItemListItem.size(); dep3++) { - auto dbItemListItemObj = dbItemListObj.dbItemListItem.at(dep3); - std::string dbItemListItemObjStr = dbItemListObjStr + "DbItemListItem." + std::to_string(dep3 + 1); - setParameter(dbItemListItemObjStr + ".DbId", std::to_string(dbItemListItemObj.dbId)); - setParameter(dbItemListItemObjStr + ".Logic", dbItemListItemObj.logic ? "true" : "false"); - } - } - for(int dep2 = 0; dep2!= paramObj.cronClearItemList.size(); dep2++) { - auto cronClearItemListObj = paramObj.cronClearItemList.at(dep2); - std::string cronClearItemListObjStr = paramObjStr + "CronClearItemList." + std::to_string(dep2 + 1); - for(int dep3 = 0; dep3!= cronClearItemListObj.cronClearItemListItem.size(); dep3++) { - auto cronClearItemListItemObj = cronClearItemListObj.cronClearItemListItem.at(dep3); - std::string cronClearItemListItemObjStr = cronClearItemListObjStr + "CronClearItemListItem." + std::to_string(dep3 + 1); - setParameter(cronClearItemListItemObjStr + ".FilterSQL", cronClearItemListItemObj.filterSQL); - setParameter(cronClearItemListItemObjStr + ".RemainDays", std::to_string(cronClearItemListItemObj.remainDays)); - setParameter(cronClearItemListItemObjStr + ".TableName", cronClearItemListItemObj.tableName); - setParameter(cronClearItemListItemObjStr + ".ColumnName", cronClearItemListItemObj.columnName); - setParameter(cronClearItemListItemObjStr + ".TimeUnit", cronClearItemListItemObj.timeUnit); - } - } - setParameter(paramObjStr + ".DurationHour", std::to_string(paramObj.durationHour)); - setParameter(paramObjStr + ".CronFormat", paramObj.cronFormat); - setParameter(paramObjStr + ".SpecifyDuration", paramObj.specifyDuration ? "true" : "false"); - } +CreateDataCronClearOrderRequest::Param CreateDataCronClearOrderRequest::getParam() const { + return param_; } -std::string CreateDataCronClearOrderRequest::getComment()const -{ - return comment_; +void CreateDataCronClearOrderRequest::setParam(const CreateDataCronClearOrderRequest::Param ¶m) { + param_ = param; + setParameter(std::string("Param") + ".Classify", param.classify); + 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"); + } + for(int dep1 = 0; dep1 != param.cronClearItemList.size(); dep1++) { + setParameter(std::string("Param") + ".CronClearItemList." + std::to_string(dep1 + 1) + ".FilterSQL", param.cronClearItemList[dep1].filterSQL); + setParameter(std::string("Param") + ".CronClearItemList." + std::to_string(dep1 + 1) + ".RemainDays", std::to_string(param.cronClearItemList[dep1].remainDays)); + setParameter(std::string("Param") + ".CronClearItemList." + std::to_string(dep1 + 1) + ".TableName", param.cronClearItemList[dep1].tableName); + setParameter(std::string("Param") + ".CronClearItemList." + std::to_string(dep1 + 1) + ".ColumnName", param.cronClearItemList[dep1].columnName); + setParameter(std::string("Param") + ".CronClearItemList." + std::to_string(dep1 + 1) + ".TimeUnit", param.cronClearItemList[dep1].timeUnit); + } + setParameter(std::string("Param") + ".DurationHour", std::to_string(param.durationHour)); + setParameter(std::string("Param") + ".CronFormat", param.cronFormat); + setParameter(std::string("Param") + ".specifyDuration", param.specifyDuration ? "true" : "false"); } -void CreateDataCronClearOrderRequest::setComment(const std::string& comment) -{ - comment_ = comment; - setParameter("Comment", comment); +std::string CreateDataCronClearOrderRequest::getComment() const { + return comment_; } -Array CreateDataCronClearOrderRequest::getRelatedUserList()const -{ - return relatedUserList_; +void CreateDataCronClearOrderRequest::setComment(const std::string &comment) { + comment_ = comment; + setParameter(std::string("Comment"), comment); } -void CreateDataCronClearOrderRequest::setRelatedUserList(const Array& relatedUserList) -{ - relatedUserList_ = relatedUserList; - for(int dep1 = 0; dep1!= relatedUserList.size(); dep1++) { - auto relatedUserListObj = relatedUserList.at(dep1); - std::string relatedUserListObjStr = "RelatedUserList." + std::to_string(dep1 + 1); - setParameter(relatedUserListObjStr + ".RelatedUserList", std::to_string(relatedUserListObj.relatedUserList)); - } +std::vector CreateDataCronClearOrderRequest::getRelatedUserList() const { + return relatedUserList_; +} + +void CreateDataCronClearOrderRequest::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])); + } } diff --git a/dms-enterprise/src/model/CreateDataCronClearOrderResult.cc b/dms-enterprise/src/model/CreateDataCronClearOrderResult.cc index 54ee6ce3d..0e03b247c 100644 --- a/dms-enterprise/src/model/CreateDataCronClearOrderResult.cc +++ b/dms-enterprise/src/model/CreateDataCronClearOrderResult.cc @@ -42,12 +42,12 @@ void CreateDataCronClearOrderResult::parse(const std::string &payload) auto allCreateOrderResult = value["CreateOrderResult"]["OrderIds"]; for (const auto &item : allCreateOrderResult) createOrderResult_.push_back(item.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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } diff --git a/dms-enterprise/src/model/CreateDataImportOrderRequest.cc b/dms-enterprise/src/model/CreateDataImportOrderRequest.cc index 8c303d57d..7e139cb87 100644 --- a/dms-enterprise/src/model/CreateDataImportOrderRequest.cc +++ b/dms-enterprise/src/model/CreateDataImportOrderRequest.cc @@ -1,113 +1,89 @@ /* * 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::CreateDataImportOrderRequest; - -CreateDataImportOrderRequest::CreateDataImportOrderRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateDataImportOrder") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateDataImportOrderRequest::~CreateDataImportOrderRequest() -{} - -long CreateDataImportOrderRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::CreateDataImportOrderRequest; + +CreateDataImportOrderRequest::CreateDataImportOrderRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateDataImportOrder") { + setMethod(HttpRequest::Method::Post); } -void CreateDataImportOrderRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +CreateDataImportOrderRequest::~CreateDataImportOrderRequest() {} + +long CreateDataImportOrderRequest::getTid() const { + return tid_; } -std::string CreateDataImportOrderRequest::getAttachmentKey()const -{ - return attachmentKey_; +void CreateDataImportOrderRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void CreateDataImportOrderRequest::setAttachmentKey(const std::string& attachmentKey) -{ - attachmentKey_ = attachmentKey; - setParameter("AttachmentKey", attachmentKey); +std::string CreateDataImportOrderRequest::getAttachmentKey() const { + return attachmentKey_; } -Struct CreateDataImportOrderRequest::getParam()const -{ - return param_; +void CreateDataImportOrderRequest::setAttachmentKey(const std::string &attachmentKey) { + attachmentKey_ = attachmentKey; + setParameter(std::string("AttachmentKey"), attachmentKey); } -void CreateDataImportOrderRequest::setParam(const Struct& param) -{ - param_ = param; - for(int dep1 = 0; dep1!= param.size(); dep1++) { - auto paramObj = param.at(dep1); - std::string paramObjStr = "Param." + std::to_string(dep1 + 1); - setParameter(paramObjStr + ".FileEncoding", paramObj.fileEncoding); - setParameter(paramObjStr + ".Classify", paramObj.classify); - setParameter(paramObjStr + ".FileType", paramObj.fileType); - setParameter(paramObjStr + ".CsvFirstRowIsColumnDef", paramObj.csvFirstRowIsColumnDef ? "true" : "false"); - setParameter(paramObjStr + ".RollbackAttachmentName", paramObj.rollbackAttachmentName); - setParameter(paramObjStr + ".AttachmentName", paramObj.attachmentName); - setParameter(paramObjStr + ".ImportMode", paramObj.importMode); - setParameter(paramObjStr + ".RollbackSQL", paramObj.rollbackSQL); - setParameter(paramObjStr + ".RollbackSqlType", paramObj.rollbackSqlType); - for(int dep2 = 0; dep2!= paramObj.dbItemList.size(); dep2++) { - auto dbItemListObj = paramObj.dbItemList.at(dep2); - std::string dbItemListObjStr = paramObjStr + "DbItemList." + std::to_string(dep2 + 1); - for(int dep3 = 0; dep3!= dbItemListObj.dbItemListItem.size(); dep3++) { - auto dbItemListItemObj = dbItemListObj.dbItemListItem.at(dep3); - std::string dbItemListItemObjStr = dbItemListObjStr + "DbItemListItem." + std::to_string(dep3 + 1); - setParameter(dbItemListItemObjStr + ".DbId", std::to_string(dbItemListItemObj.dbId)); - setParameter(dbItemListItemObjStr + ".Logic", dbItemListItemObj.logic ? "true" : "false"); - } - } - setParameter(paramObjStr + ".InsertType", paramObj.insertType); - setParameter(paramObjStr + ".TableName", paramObj.tableName); - setParameter(paramObjStr + ".IgnoreError", paramObj.ignoreError ? "true" : "false"); - } +CreateDataImportOrderRequest::Param CreateDataImportOrderRequest::getParam() const { + return param_; } -std::string CreateDataImportOrderRequest::getComment()const -{ - return comment_; +void CreateDataImportOrderRequest::setParam(const CreateDataImportOrderRequest::Param ¶m) { + param_ = param; + setParameter(std::string("Param") + ".FileEncoding", param.fileEncoding); + setParameter(std::string("Param") + ".Classify", param.classify); + setParameter(std::string("Param") + ".FileType", param.fileType); + setParameter(std::string("Param") + ".CsvFirstRowIsColumnDef", param.csvFirstRowIsColumnDef ? "true" : "false"); + setParameter(std::string("Param") + ".RollbackAttachmentName", param.rollbackAttachmentName); + setParameter(std::string("Param") + ".AttachmentName", param.attachmentName); + setParameter(std::string("Param") + ".ImportMode", param.importMode); + 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") + ".InsertType", param.insertType); + setParameter(std::string("Param") + ".TableName", param.tableName); + setParameter(std::string("Param") + ".IgnoreError", param.ignoreError ? "true" : "false"); } -void CreateDataImportOrderRequest::setComment(const std::string& comment) -{ - comment_ = comment; - setParameter("Comment", comment); +std::string CreateDataImportOrderRequest::getComment() const { + return comment_; } -Array CreateDataImportOrderRequest::getRelatedUserList()const -{ - return relatedUserList_; +void CreateDataImportOrderRequest::setComment(const std::string &comment) { + comment_ = comment; + setParameter(std::string("Comment"), comment); } -void CreateDataImportOrderRequest::setRelatedUserList(const Array& relatedUserList) -{ - relatedUserList_ = relatedUserList; - for(int dep1 = 0; dep1!= relatedUserList.size(); dep1++) { - auto relatedUserListObj = relatedUserList.at(dep1); - std::string relatedUserListObjStr = "RelatedUserList." + std::to_string(dep1 + 1); - setParameter(relatedUserListObjStr + ".RelatedUserList", std::to_string(relatedUserListObj.relatedUserList)); - } +std::vector CreateDataImportOrderRequest::getRelatedUserList() const { + return relatedUserList_; +} + +void CreateDataImportOrderRequest::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])); + } } diff --git a/dms-enterprise/src/model/CreateDataImportOrderResult.cc b/dms-enterprise/src/model/CreateDataImportOrderResult.cc index 1b3687577..aab71d3e7 100644 --- a/dms-enterprise/src/model/CreateDataImportOrderResult.cc +++ b/dms-enterprise/src/model/CreateDataImportOrderResult.cc @@ -42,12 +42,12 @@ void CreateDataImportOrderResult::parse(const std::string &payload) auto allCreateOrderResult = value["CreateOrderResult"]["OrderIds"]; for (const auto &item : allCreateOrderResult) createOrderResult_.push_back(item.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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } diff --git a/dms-enterprise/src/model/CreateFreeLockCorrectOrderRequest.cc b/dms-enterprise/src/model/CreateFreeLockCorrectOrderRequest.cc index dca8ea579..2b978cb35 100644 --- a/dms-enterprise/src/model/CreateFreeLockCorrectOrderRequest.cc +++ b/dms-enterprise/src/model/CreateFreeLockCorrectOrderRequest.cc @@ -1,108 +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 - -using AlibabaCloud::Dms_enterprise::Model::CreateFreeLockCorrectOrderRequest; - -CreateFreeLockCorrectOrderRequest::CreateFreeLockCorrectOrderRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateFreeLockCorrectOrder") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateFreeLockCorrectOrderRequest::~CreateFreeLockCorrectOrderRequest() -{} - -long CreateFreeLockCorrectOrderRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::CreateFreeLockCorrectOrderRequest; + +CreateFreeLockCorrectOrderRequest::CreateFreeLockCorrectOrderRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateFreeLockCorrectOrder") { + setMethod(HttpRequest::Method::Post); } -void CreateFreeLockCorrectOrderRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +CreateFreeLockCorrectOrderRequest::~CreateFreeLockCorrectOrderRequest() {} + +long CreateFreeLockCorrectOrderRequest::getTid() const { + return tid_; } -std::string CreateFreeLockCorrectOrderRequest::getAttachmentKey()const -{ - return attachmentKey_; +void CreateFreeLockCorrectOrderRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void CreateFreeLockCorrectOrderRequest::setAttachmentKey(const std::string& attachmentKey) -{ - attachmentKey_ = attachmentKey; - setParameter("AttachmentKey", attachmentKey); +std::string CreateFreeLockCorrectOrderRequest::getAttachmentKey() const { + return attachmentKey_; } -Struct CreateFreeLockCorrectOrderRequest::getParam()const -{ - return param_; +void CreateFreeLockCorrectOrderRequest::setAttachmentKey(const std::string &attachmentKey) { + attachmentKey_ = attachmentKey; + setParameter(std::string("AttachmentKey"), attachmentKey); } -void CreateFreeLockCorrectOrderRequest::setParam(const Struct& param) -{ - param_ = param; - for(int dep1 = 0; dep1!= param.size(); dep1++) { - auto paramObj = param.at(dep1); - std::string paramObjStr = "Param." + std::to_string(dep1 + 1); - setParameter(paramObjStr + ".SqlType", paramObj.sqlType); - setParameter(paramObjStr + ".Classify", paramObj.classify); - setParameter(paramObjStr + ".RollbackSQL", paramObj.rollbackSQL); - setParameter(paramObjStr + ".RollbackSqlType", paramObj.rollbackSqlType); - for(int dep2 = 0; dep2!= paramObj.dbItemList.size(); dep2++) { - auto dbItemListObj = paramObj.dbItemList.at(dep2); - std::string dbItemListObjStr = paramObjStr + "DbItemList." + std::to_string(dep2 + 1); - for(int dep3 = 0; dep3!= dbItemListObj.dbItemListItem.size(); dep3++) { - auto dbItemListItemObj = dbItemListObj.dbItemListItem.at(dep3); - std::string dbItemListItemObjStr = dbItemListObjStr + "DbItemListItem." + std::to_string(dep3 + 1); - setParameter(dbItemListItemObjStr + ".DbId", std::to_string(dbItemListItemObj.dbId)); - setParameter(dbItemListItemObjStr + ".Logic", dbItemListItemObj.logic ? "true" : "false"); - } - } - setParameter(paramObjStr + ".ExecSQL", paramObj.execSQL); - setParameter(paramObjStr + ".RollbackAttachmentName", paramObj.rollbackAttachmentName); - setParameter(paramObjStr + ".AttachmentName", paramObj.attachmentName); - } +CreateFreeLockCorrectOrderRequest::Param CreateFreeLockCorrectOrderRequest::getParam() const { + return param_; } -std::string CreateFreeLockCorrectOrderRequest::getComment()const -{ - return comment_; +void CreateFreeLockCorrectOrderRequest::setParam(const CreateFreeLockCorrectOrderRequest::Param ¶m) { + param_ = param; + setParameter(std::string("Param") + ".SqlType", param.sqlType); + 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); + setParameter(std::string("Param") + ".AttachmentName", param.attachmentName); } -void CreateFreeLockCorrectOrderRequest::setComment(const std::string& comment) -{ - comment_ = comment; - setParameter("Comment", comment); +std::string CreateFreeLockCorrectOrderRequest::getComment() const { + return comment_; } -Array CreateFreeLockCorrectOrderRequest::getRelatedUserList()const -{ - return relatedUserList_; +void CreateFreeLockCorrectOrderRequest::setComment(const std::string &comment) { + comment_ = comment; + setParameter(std::string("Comment"), comment); } -void CreateFreeLockCorrectOrderRequest::setRelatedUserList(const Array& relatedUserList) -{ - relatedUserList_ = relatedUserList; - for(int dep1 = 0; dep1!= relatedUserList.size(); dep1++) { - auto relatedUserListObj = relatedUserList.at(dep1); - std::string relatedUserListObjStr = "RelatedUserList." + std::to_string(dep1 + 1); - setParameter(relatedUserListObjStr + ".RelatedUserList", std::to_string(relatedUserListObj.relatedUserList)); - } +std::vector CreateFreeLockCorrectOrderRequest::getRelatedUserList() const { + return relatedUserList_; +} + +void CreateFreeLockCorrectOrderRequest::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])); + } } diff --git a/dms-enterprise/src/model/CreateFreeLockCorrectOrderResult.cc b/dms-enterprise/src/model/CreateFreeLockCorrectOrderResult.cc index ce7807b22..e93955c9a 100644 --- a/dms-enterprise/src/model/CreateFreeLockCorrectOrderResult.cc +++ b/dms-enterprise/src/model/CreateFreeLockCorrectOrderResult.cc @@ -42,12 +42,12 @@ void CreateFreeLockCorrectOrderResult::parse(const std::string &payload) auto allCreateOrderResult = value["CreateOrderResult"]["OrderIds"]; for (const auto &item : allCreateOrderResult) createOrderResult_.push_back(item.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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } diff --git a/dms-enterprise/src/model/CreateOrderRequest.cc b/dms-enterprise/src/model/CreateOrderRequest.cc index 80dc04a27..d816c6b47 100644 --- a/dms-enterprise/src/model/CreateOrderRequest.cc +++ b/dms-enterprise/src/model/CreateOrderRequest.cc @@ -1,95 +1,81 @@ /* * 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::CreateOrderRequest; - -CreateOrderRequest::CreateOrderRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateOrder") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateOrderRequest::~CreateOrderRequest() -{} - -long CreateOrderRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::CreateOrderRequest; + +CreateOrderRequest::CreateOrderRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateOrder") { + setMethod(HttpRequest::Method::Post); } -void CreateOrderRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +CreateOrderRequest::~CreateOrderRequest() {} + +long CreateOrderRequest::getTid() const { + return tid_; } -std::string CreateOrderRequest::getPluginType()const -{ - return pluginType_; +void CreateOrderRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void CreateOrderRequest::setPluginType(const std::string& pluginType) -{ - pluginType_ = pluginType; - setParameter("PluginType", pluginType); +std::string CreateOrderRequest::getPluginType() const { + return pluginType_; } -std::string CreateOrderRequest::getAttachmentKey()const -{ - return attachmentKey_; +void CreateOrderRequest::setPluginType(const std::string &pluginType) { + pluginType_ = pluginType; + setParameter(std::string("PluginType"), pluginType); } -void CreateOrderRequest::setAttachmentKey(const std::string& attachmentKey) -{ - attachmentKey_ = attachmentKey; - setParameter("AttachmentKey", attachmentKey); +std::string CreateOrderRequest::getAttachmentKey() const { + return attachmentKey_; } -std::string CreateOrderRequest::getComment()const -{ - return comment_; +void CreateOrderRequest::setAttachmentKey(const std::string &attachmentKey) { + attachmentKey_ = attachmentKey; + setParameter(std::string("AttachmentKey"), attachmentKey); } -void CreateOrderRequest::setComment(const std::string& comment) -{ - comment_ = comment; - setParameter("Comment", comment); +std::string CreateOrderRequest::getComment() const { + return comment_; } -std::map CreateOrderRequest::getPluginParam()const -{ - return pluginParam_; +void CreateOrderRequest::setComment(const std::string &comment) { + comment_ = comment; + setParameter(std::string("Comment"), comment); } -void CreateOrderRequest::setPluginParam(const std::map& pluginParam) -{ - pluginParam_ = pluginParam; - setJsonParameters("PluginParam", pluginParam); +std::map CreateOrderRequest::getPluginParam() const { + return pluginParam_; } -std::string CreateOrderRequest::getRelatedUserList()const -{ - return relatedUserList_; +void CreateOrderRequest::setPluginParam(std::map pluginParam) { + pluginParam_ = pluginParam; + setBodyParameter(std::string("PluginParam"), pluginParam); } -void CreateOrderRequest::setRelatedUserList(const std::string& relatedUserList) -{ - relatedUserList_ = relatedUserList; - setParameter("RelatedUserList", relatedUserList); +std::string CreateOrderRequest::getRelatedUserList() const { + return relatedUserList_; +} + +void CreateOrderRequest::setRelatedUserList(const std::string &relatedUserList) { + relatedUserList_ = relatedUserList; + setParameter(std::string("RelatedUserList"), relatedUserList); } diff --git a/dms-enterprise/src/model/CreatePublishGroupTaskRequest.cc b/dms-enterprise/src/model/CreatePublishGroupTaskRequest.cc index aecc78375..19a4df92f 100644 --- a/dms-enterprise/src/model/CreatePublishGroupTaskRequest.cc +++ b/dms-enterprise/src/model/CreatePublishGroupTaskRequest.cc @@ -1,95 +1,81 @@ /* * 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::CreatePublishGroupTaskRequest; - -CreatePublishGroupTaskRequest::CreatePublishGroupTaskRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "CreatePublishGroupTask") -{ - setMethod(HttpRequest::Method::Post); -} - -CreatePublishGroupTaskRequest::~CreatePublishGroupTaskRequest() -{} - -long CreatePublishGroupTaskRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::CreatePublishGroupTaskRequest; + +CreatePublishGroupTaskRequest::CreatePublishGroupTaskRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "CreatePublishGroupTask") { + setMethod(HttpRequest::Method::Post); } -void CreatePublishGroupTaskRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +CreatePublishGroupTaskRequest::~CreatePublishGroupTaskRequest() {} + +long CreatePublishGroupTaskRequest::getOrderId() const { + return orderId_; } -long CreatePublishGroupTaskRequest::getTid()const -{ - return tid_; +void CreatePublishGroupTaskRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void CreatePublishGroupTaskRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long CreatePublishGroupTaskRequest::getTid() const { + return tid_; } -int CreatePublishGroupTaskRequest::getDbId()const -{ - return dbId_; +void CreatePublishGroupTaskRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void CreatePublishGroupTaskRequest::setDbId(int dbId) -{ - dbId_ = dbId; - setParameter("DbId", std::to_string(dbId)); +int CreatePublishGroupTaskRequest::getDbId() const { + return dbId_; } -std::string CreatePublishGroupTaskRequest::getPlanTime()const -{ - return planTime_; +void CreatePublishGroupTaskRequest::setDbId(int dbId) { + dbId_ = dbId; + setParameter(std::string("DbId"), std::to_string(dbId)); } -void CreatePublishGroupTaskRequest::setPlanTime(const std::string& planTime) -{ - planTime_ = planTime; - setParameter("PlanTime", planTime); +std::string CreatePublishGroupTaskRequest::getPlanTime() const { + return planTime_; } -bool CreatePublishGroupTaskRequest::getLogic()const -{ - return logic_; +void CreatePublishGroupTaskRequest::setPlanTime(const std::string &planTime) { + planTime_ = planTime; + setParameter(std::string("PlanTime"), planTime); } -void CreatePublishGroupTaskRequest::setLogic(bool logic) -{ - logic_ = logic; - setParameter("Logic", logic ? "true" : "false"); +bool CreatePublishGroupTaskRequest::getLogic() const { + return logic_; } -std::string CreatePublishGroupTaskRequest::getPublishStrategy()const -{ - return publishStrategy_; +void CreatePublishGroupTaskRequest::setLogic(bool logic) { + logic_ = logic; + setParameter(std::string("Logic"), logic ? "true" : "false"); } -void CreatePublishGroupTaskRequest::setPublishStrategy(const std::string& publishStrategy) -{ - publishStrategy_ = publishStrategy; - setParameter("PublishStrategy", publishStrategy); +std::string CreatePublishGroupTaskRequest::getPublishStrategy() const { + return publishStrategy_; +} + +void CreatePublishGroupTaskRequest::setPublishStrategy(const std::string &publishStrategy) { + publishStrategy_ = publishStrategy; + setParameter(std::string("PublishStrategy"), publishStrategy); } diff --git a/dms-enterprise/src/model/CreateSQLReviewOrderRequest.cc b/dms-enterprise/src/model/CreateSQLReviewOrderRequest.cc new file mode 100644 index 000000000..885540a2d --- /dev/null +++ b/dms-enterprise/src/model/CreateSQLReviewOrderRequest.cc @@ -0,0 +1,69 @@ +/* + * 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::CreateSQLReviewOrderRequest; + +CreateSQLReviewOrderRequest::CreateSQLReviewOrderRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateSQLReviewOrder") { + setMethod(HttpRequest::Method::Post); +} + +CreateSQLReviewOrderRequest::~CreateSQLReviewOrderRequest() {} + +long CreateSQLReviewOrderRequest::getTid() const { + return tid_; +} + +void CreateSQLReviewOrderRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +CreateSQLReviewOrderRequest::Param CreateSQLReviewOrderRequest::getParam() const { + return param_; +} + +void CreateSQLReviewOrderRequest::setParam(const CreateSQLReviewOrderRequest::Param ¶m) { + param_ = param; + for(int dep1 = 0; dep1 != param.attachmentKeyList.size(); dep1++) { + setParameter(std::string("Param") + ".AttachmentKeyList." + std::to_string(dep1 + 1), param.attachmentKeyList[dep1]); + } + setParameter(std::string("Param") + ".ProjectName", param.projectName); + setParameter(std::string("Param") + ".DbId", std::to_string(param.dbId)); +} + +std::string CreateSQLReviewOrderRequest::getComment() const { + return comment_; +} + +void CreateSQLReviewOrderRequest::setComment(const std::string &comment) { + comment_ = comment; + setParameter(std::string("Comment"), comment); +} + +std::vector CreateSQLReviewOrderRequest::getRelatedUserList() const { + return relatedUserList_; +} + +void CreateSQLReviewOrderRequest::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])); + } +} + diff --git a/dms-enterprise/src/model/CreateSQLReviewOrderResult.cc b/dms-enterprise/src/model/CreateSQLReviewOrderResult.cc new file mode 100644 index 000000000..17b322384 --- /dev/null +++ b/dms-enterprise/src/model/CreateSQLReviewOrderResult.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; + +CreateSQLReviewOrderResult::CreateSQLReviewOrderResult() : + ServiceResult() +{} + +CreateSQLReviewOrderResult::CreateSQLReviewOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSQLReviewOrderResult::~CreateSQLReviewOrderResult() +{} + +void CreateSQLReviewOrderResult::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 CreateSQLReviewOrderResult::getCreateOrderResult()const +{ + return createOrderResult_; +} + +std::string CreateSQLReviewOrderResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateSQLReviewOrderResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateSQLReviewOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/CreateStructSyncOrderRequest.cc b/dms-enterprise/src/model/CreateStructSyncOrderRequest.cc index c169f7def..0c906935b 100644 --- a/dms-enterprise/src/model/CreateStructSyncOrderRequest.cc +++ b/dms-enterprise/src/model/CreateStructSyncOrderRequest.cc @@ -1,119 +1,87 @@ /* * 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::CreateStructSyncOrderRequest; - -CreateStructSyncOrderRequest::CreateStructSyncOrderRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateStructSyncOrder") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateStructSyncOrderRequest::~CreateStructSyncOrderRequest() -{} - -long CreateStructSyncOrderRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::CreateStructSyncOrderRequest; + +CreateStructSyncOrderRequest::CreateStructSyncOrderRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateStructSyncOrder") { + setMethod(HttpRequest::Method::Post); } -void CreateStructSyncOrderRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +CreateStructSyncOrderRequest::~CreateStructSyncOrderRequest() {} + +long CreateStructSyncOrderRequest::getTid() const { + return tid_; } -std::string CreateStructSyncOrderRequest::getAttachmentKey()const -{ - return attachmentKey_; +void CreateStructSyncOrderRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void CreateStructSyncOrderRequest::setAttachmentKey(const std::string& attachmentKey) -{ - attachmentKey_ = attachmentKey; - setParameter("AttachmentKey", attachmentKey); +std::string CreateStructSyncOrderRequest::getAttachmentKey() const { + return attachmentKey_; } -Struct CreateStructSyncOrderRequest::getParam()const -{ - return param_; +void CreateStructSyncOrderRequest::setAttachmentKey(const std::string &attachmentKey) { + attachmentKey_ = attachmentKey; + setParameter(std::string("AttachmentKey"), attachmentKey); } -void CreateStructSyncOrderRequest::setParam(const Struct& param) -{ - param_ = param; - for(int dep1 = 0; dep1!= param.size(); dep1++) { - auto paramObj = param.at(dep1); - std::string paramObjStr = "Param." + std::to_string(dep1 + 1); - setParameter(paramObjStr + ".SyncType", paramObj.syncType); - for(int dep2 = 0; dep2!= paramObj.tableInfoList.size(); dep2++) { - auto tableInfoListObj = paramObj.tableInfoList.at(dep2); - std::string tableInfoListObjStr = paramObjStr + "TableInfoList." + std::to_string(dep2 + 1); - for(int dep3 = 0; dep3!= tableInfoListObj.tableInfoListItem.size(); dep3++) { - auto tableInfoListItemObj = tableInfoListObj.tableInfoListItem.at(dep3); - std::string tableInfoListItemObjStr = tableInfoListObjStr + "TableInfoListItem." + std::to_string(dep3 + 1); - setParameter(tableInfoListItemObjStr + ".SourceTableName", tableInfoListItemObj.sourceTableName); - setParameter(tableInfoListItemObjStr + ".TargetTableName", tableInfoListItemObj.targetTableName); - } - } - for(int dep2 = 0; dep2!= paramObj.source.size(); dep2++) { - auto sourceObj = paramObj.source.at(dep2); - std::string sourceObjStr = paramObjStr + "Source." + std::to_string(dep2 + 1); - setParameter(sourceObjStr + ".DbSearchName", sourceObj.dbSearchName); - setParameter(sourceObjStr + ".VersionId", sourceObj.versionId); - setParameter(sourceObjStr + ".DbId", std::to_string(sourceObj.dbId)); - setParameter(sourceObjStr + ".Logic", sourceObj.logic ? "true" : "false"); - } - setParameter(paramObjStr + ".IgnoreError", paramObj.ignoreError ? "true" : "false"); - for(int dep2 = 0; dep2!= paramObj.target.size(); dep2++) { - auto targetObj = paramObj.target.at(dep2); - std::string targetObjStr = paramObjStr + "Target." + std::to_string(dep2 + 1); - setParameter(targetObjStr + ".DbSearchName", targetObj.dbSearchName); - setParameter(targetObjStr + ".VersionId", targetObj.versionId); - setParameter(targetObjStr + ".DbId", std::to_string(targetObj.dbId)); - setParameter(targetObjStr + ".Logic", targetObj.logic ? "true" : "false"); - } - } +CreateStructSyncOrderRequest::Param CreateStructSyncOrderRequest::getParam() const { + return param_; } -std::string CreateStructSyncOrderRequest::getComment()const -{ - return comment_; +void CreateStructSyncOrderRequest::setParam(const CreateStructSyncOrderRequest::Param ¶m) { + param_ = param; + setParameter(std::string("Param") + ".SyncType", param.syncType); + for(int dep1 = 0; dep1 != param.tableInfoList.size(); dep1++) { + setParameter(std::string("Param") + ".TableInfoList." + std::to_string(dep1 + 1) + ".SourceTableName", param.tableInfoList[dep1].sourceTableName); + setParameter(std::string("Param") + ".TableInfoList." + std::to_string(dep1 + 1) + ".TargetTableName", param.tableInfoList[dep1].targetTableName); + } + setParameter(std::string("Param") + ".Source.DbSearchName", param.source.dbSearchName); + setParameter(std::string("Param") + ".Source.VersionId", param.source.versionId); + setParameter(std::string("Param") + ".Source.DbId", std::to_string(param.source.dbId)); + setParameter(std::string("Param") + ".Source.Logic", param.source.logic ? "true" : "false"); + setParameter(std::string("Param") + ".IgnoreError", param.ignoreError ? "true" : "false"); + setParameter(std::string("Param") + ".Target.DbSearchName", param.target.dbSearchName); + setParameter(std::string("Param") + ".Target.VersionId", param.target.versionId); + setParameter(std::string("Param") + ".Target.DbId", std::to_string(param.target.dbId)); + setParameter(std::string("Param") + ".Target.Logic", param.target.logic ? "true" : "false"); } -void CreateStructSyncOrderRequest::setComment(const std::string& comment) -{ - comment_ = comment; - setParameter("Comment", comment); +std::string CreateStructSyncOrderRequest::getComment() const { + return comment_; } -Array CreateStructSyncOrderRequest::getRelatedUserList()const -{ - return relatedUserList_; +void CreateStructSyncOrderRequest::setComment(const std::string &comment) { + comment_ = comment; + setParameter(std::string("Comment"), comment); } -void CreateStructSyncOrderRequest::setRelatedUserList(const Array& relatedUserList) -{ - relatedUserList_ = relatedUserList; - for(int dep1 = 0; dep1!= relatedUserList.size(); dep1++) { - auto relatedUserListObj = relatedUserList.at(dep1); - std::string relatedUserListObjStr = "RelatedUserList." + std::to_string(dep1 + 1); - setParameter(relatedUserListObjStr + ".RelatedUserList", std::to_string(relatedUserListObj.relatedUserList)); - } +std::vector CreateStructSyncOrderRequest::getRelatedUserList() const { + return relatedUserList_; +} + +void CreateStructSyncOrderRequest::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])); + } } diff --git a/dms-enterprise/src/model/CreateStructSyncOrderResult.cc b/dms-enterprise/src/model/CreateStructSyncOrderResult.cc index b4e2606aa..93d99d515 100644 --- a/dms-enterprise/src/model/CreateStructSyncOrderResult.cc +++ b/dms-enterprise/src/model/CreateStructSyncOrderResult.cc @@ -42,12 +42,12 @@ void CreateStructSyncOrderResult::parse(const std::string &payload) auto allCreateOrderResult = value["CreateOrderResult"]["OrderIds"]; for (const auto &item : allCreateOrderResult) createOrderResult_.push_back(item.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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } diff --git a/dms-enterprise/src/model/CreateUploadFileJobRequest.cc b/dms-enterprise/src/model/CreateUploadFileJobRequest.cc index 75a802222..c03123b63 100644 --- a/dms-enterprise/src/model/CreateUploadFileJobRequest.cc +++ b/dms-enterprise/src/model/CreateUploadFileJobRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::CreateUploadFileJobRequest; - -CreateUploadFileJobRequest::CreateUploadFileJobRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateUploadFileJob") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateUploadFileJobRequest::~CreateUploadFileJobRequest() -{} - -std::string CreateUploadFileJobRequest::getUploadType()const -{ - return uploadType_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::CreateUploadFileJobRequest; + +CreateUploadFileJobRequest::CreateUploadFileJobRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateUploadFileJob") { + setMethod(HttpRequest::Method::Post); } -void CreateUploadFileJobRequest::setUploadType(const std::string& uploadType) -{ - uploadType_ = uploadType; - setParameter("UploadType", uploadType); +CreateUploadFileJobRequest::~CreateUploadFileJobRequest() {} + +std::string CreateUploadFileJobRequest::getUploadType() const { + return uploadType_; } -std::string CreateUploadFileJobRequest::getFileSource()const -{ - return fileSource_; +void CreateUploadFileJobRequest::setUploadType(const std::string &uploadType) { + uploadType_ = uploadType; + setParameter(std::string("UploadType"), uploadType); } -void CreateUploadFileJobRequest::setFileSource(const std::string& fileSource) -{ - fileSource_ = fileSource; - setParameter("FileSource", fileSource); +std::string CreateUploadFileJobRequest::getFileSource() const { + return fileSource_; } -long CreateUploadFileJobRequest::getTid()const -{ - return tid_; +void CreateUploadFileJobRequest::setFileSource(const std::string &fileSource) { + fileSource_ = fileSource; + setParameter(std::string("FileSource"), fileSource); } -void CreateUploadFileJobRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long CreateUploadFileJobRequest::getTid() const { + return tid_; } -std::string CreateUploadFileJobRequest::getFileName()const -{ - return fileName_; +void CreateUploadFileJobRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void CreateUploadFileJobRequest::setFileName(const std::string& fileName) -{ - fileName_ = fileName; - setParameter("FileName", fileName); +std::string CreateUploadFileJobRequest::getFileName() const { + return fileName_; } -std::string CreateUploadFileJobRequest::getUploadURL()const -{ - return uploadURL_; +void CreateUploadFileJobRequest::setFileName(const std::string &fileName) { + fileName_ = fileName; + setParameter(std::string("FileName"), fileName); } -void CreateUploadFileJobRequest::setUploadURL(const std::string& uploadURL) -{ - uploadURL_ = uploadURL; - setParameter("UploadURL", uploadURL); +std::string CreateUploadFileJobRequest::getUploadURL() const { + return uploadURL_; +} + +void CreateUploadFileJobRequest::setUploadURL(const std::string &uploadURL) { + uploadURL_ = uploadURL; + setParameter(std::string("UploadURL"), uploadURL); } diff --git a/dms-enterprise/src/model/CreateUploadFileJobResult.cc b/dms-enterprise/src/model/CreateUploadFileJobResult.cc index 5f068b8f1..b0fc8e6a9 100644 --- a/dms-enterprise/src/model/CreateUploadFileJobResult.cc +++ b/dms-enterprise/src/model/CreateUploadFileJobResult.cc @@ -39,14 +39,14 @@ void CreateUploadFileJobResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["JobKey"].isNull()) - jobKey_ = value["JobKey"].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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["JobKey"].isNull()) + jobKey_ = value["JobKey"].asString(); } diff --git a/dms-enterprise/src/model/CreateUploadOSSFileJobRequest.cc b/dms-enterprise/src/model/CreateUploadOSSFileJobRequest.cc index 09569d822..439ac3bba 100644 --- a/dms-enterprise/src/model/CreateUploadOSSFileJobRequest.cc +++ b/dms-enterprise/src/model/CreateUploadOSSFileJobRequest.cc @@ -1,90 +1,74 @@ /* * 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::CreateUploadOSSFileJobRequest; - -CreateUploadOSSFileJobRequest::CreateUploadOSSFileJobRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateUploadOSSFileJob") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateUploadOSSFileJobRequest::~CreateUploadOSSFileJobRequest() -{} - -std::string CreateUploadOSSFileJobRequest::getUploadType()const -{ - return uploadType_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::CreateUploadOSSFileJobRequest; + +CreateUploadOSSFileJobRequest::CreateUploadOSSFileJobRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateUploadOSSFileJob") { + setMethod(HttpRequest::Method::Post); } -void CreateUploadOSSFileJobRequest::setUploadType(const std::string& uploadType) -{ - uploadType_ = uploadType; - setParameter("UploadType", uploadType); +CreateUploadOSSFileJobRequest::~CreateUploadOSSFileJobRequest() {} + +std::string CreateUploadOSSFileJobRequest::getUploadType() const { + return uploadType_; } -std::string CreateUploadOSSFileJobRequest::getFileSource()const -{ - return fileSource_; +void CreateUploadOSSFileJobRequest::setUploadType(const std::string &uploadType) { + uploadType_ = uploadType; + setParameter(std::string("UploadType"), uploadType); } -void CreateUploadOSSFileJobRequest::setFileSource(const std::string& fileSource) -{ - fileSource_ = fileSource; - setParameter("FileSource", fileSource); +std::string CreateUploadOSSFileJobRequest::getFileSource() const { + return fileSource_; } -long CreateUploadOSSFileJobRequest::getTid()const -{ - return tid_; +void CreateUploadOSSFileJobRequest::setFileSource(const std::string &fileSource) { + fileSource_ = fileSource; + setParameter(std::string("FileSource"), fileSource); } -void CreateUploadOSSFileJobRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long CreateUploadOSSFileJobRequest::getTid() const { + return tid_; } -std::string CreateUploadOSSFileJobRequest::getFileName()const -{ - return fileName_; +void CreateUploadOSSFileJobRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void CreateUploadOSSFileJobRequest::setFileName(const std::string& fileName) -{ - fileName_ = fileName; - setParameter("FileName", fileName); +std::string CreateUploadOSSFileJobRequest::getFileName() const { + return fileName_; } -Struct CreateUploadOSSFileJobRequest::getUploadTarget()const -{ - return uploadTarget_; +void CreateUploadOSSFileJobRequest::setFileName(const std::string &fileName) { + fileName_ = fileName; + setParameter(std::string("FileName"), fileName); } -void CreateUploadOSSFileJobRequest::setUploadTarget(const Struct& uploadTarget) -{ - uploadTarget_ = uploadTarget; - for(int dep1 = 0; dep1!= uploadTarget.size(); dep1++) { - auto uploadTargetObj = uploadTarget.at(dep1); - std::string uploadTargetObjStr = "UploadTarget." + std::to_string(dep1 + 1); - setParameter(uploadTargetObjStr + ".Endpoint", uploadTargetObj.endpoint); - setParameter(uploadTargetObjStr + ".BucketName", uploadTargetObj.bucketName); - setParameter(uploadTargetObjStr + ".ObjectName", uploadTargetObj.objectName); - } +CreateUploadOSSFileJobRequest::UploadTarget CreateUploadOSSFileJobRequest::getUploadTarget() const { + return uploadTarget_; +} + +void CreateUploadOSSFileJobRequest::setUploadTarget(const CreateUploadOSSFileJobRequest::UploadTarget &uploadTarget) { + uploadTarget_ = uploadTarget; + setParameter(std::string("UploadTarget") + ".Endpoint", uploadTarget.endpoint); + setParameter(std::string("UploadTarget") + ".BucketName", uploadTarget.bucketName); + setParameter(std::string("UploadTarget") + ".ObjectName", uploadTarget.objectName); } diff --git a/dms-enterprise/src/model/CreateUploadOSSFileJobResult.cc b/dms-enterprise/src/model/CreateUploadOSSFileJobResult.cc index 6a2c62fb6..9d7089fdd 100644 --- a/dms-enterprise/src/model/CreateUploadOSSFileJobResult.cc +++ b/dms-enterprise/src/model/CreateUploadOSSFileJobResult.cc @@ -39,14 +39,14 @@ void CreateUploadOSSFileJobResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["JobKey"].isNull()) - jobKey_ = value["JobKey"].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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["JobKey"].isNull()) + jobKey_ = value["JobKey"].asString(); } diff --git a/dms-enterprise/src/model/DeleteInstanceRequest.cc b/dms-enterprise/src/model/DeleteInstanceRequest.cc index 9da3b9e9d..927fd0750 100644 --- a/dms-enterprise/src/model/DeleteInstanceRequest.cc +++ b/dms-enterprise/src/model/DeleteInstanceRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::DeleteInstanceRequest; - -DeleteInstanceRequest::DeleteInstanceRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteInstanceRequest::~DeleteInstanceRequest() -{} - -long DeleteInstanceRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::DeleteInstanceRequest; + +DeleteInstanceRequest::DeleteInstanceRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteInstance") { + setMethod(HttpRequest::Method::Post); } -void DeleteInstanceRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +DeleteInstanceRequest::~DeleteInstanceRequest() {} + +long DeleteInstanceRequest::getTid() const { + return tid_; } -std::string DeleteInstanceRequest::getSid()const -{ - return sid_; +void DeleteInstanceRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void DeleteInstanceRequest::setSid(const std::string& sid) -{ - sid_ = sid; - setParameter("Sid", sid); +std::string DeleteInstanceRequest::getSid() const { + return sid_; } -int DeleteInstanceRequest::getPort()const -{ - return port_; +void DeleteInstanceRequest::setSid(const std::string &sid) { + sid_ = sid; + setParameter(std::string("Sid"), sid); } -void DeleteInstanceRequest::setPort(int port) -{ - port_ = port; - setParameter("Port", std::to_string(port)); +int DeleteInstanceRequest::getPort() const { + return port_; } -std::string DeleteInstanceRequest::getHost()const -{ - return host_; +void DeleteInstanceRequest::setPort(int port) { + port_ = port; + setParameter(std::string("Port"), std::to_string(port)); } -void DeleteInstanceRequest::setHost(const std::string& host) -{ - host_ = host; - setParameter("Host", host); +std::string DeleteInstanceRequest::getHost() const { + return host_; +} + +void DeleteInstanceRequest::setHost(const std::string &host) { + host_ = host; + setParameter(std::string("Host"), host); } diff --git a/dms-enterprise/src/model/DeleteUserRequest.cc b/dms-enterprise/src/model/DeleteUserRequest.cc index bd99896ed..d771cb195 100644 --- a/dms-enterprise/src/model/DeleteUserRequest.cc +++ b/dms-enterprise/src/model/DeleteUserRequest.cc @@ -1,51 +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::DeleteUserRequest; - -DeleteUserRequest::DeleteUserRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteUser") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteUserRequest::~DeleteUserRequest() -{} - -std::string DeleteUserRequest::getUid()const -{ - return uid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::DeleteUserRequest; + +DeleteUserRequest::DeleteUserRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteUser") { + setMethod(HttpRequest::Method::Post); } -void DeleteUserRequest::setUid(const std::string& uid) -{ - uid_ = uid; - setParameter("Uid", uid); +DeleteUserRequest::~DeleteUserRequest() {} + +std::string DeleteUserRequest::getUid() const { + return uid_; } -long DeleteUserRequest::getTid()const -{ - return tid_; +void DeleteUserRequest::setUid(const std::string &uid) { + uid_ = uid; + setParameter(std::string("Uid"), uid); } -void DeleteUserRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long DeleteUserRequest::getTid() const { + return tid_; +} + +void DeleteUserRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/DisableUserRequest.cc b/dms-enterprise/src/model/DisableUserRequest.cc index b8a1d0f65..b9723ba24 100644 --- a/dms-enterprise/src/model/DisableUserRequest.cc +++ b/dms-enterprise/src/model/DisableUserRequest.cc @@ -1,51 +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::DisableUserRequest; - -DisableUserRequest::DisableUserRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "DisableUser") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableUserRequest::~DisableUserRequest() -{} - -std::string DisableUserRequest::getUid()const -{ - return uid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::DisableUserRequest; + +DisableUserRequest::DisableUserRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "DisableUser") { + setMethod(HttpRequest::Method::Post); } -void DisableUserRequest::setUid(const std::string& uid) -{ - uid_ = uid; - setParameter("Uid", uid); +DisableUserRequest::~DisableUserRequest() {} + +std::string DisableUserRequest::getUid() const { + return uid_; } -long DisableUserRequest::getTid()const -{ - return tid_; +void DisableUserRequest::setUid(const std::string &uid) { + uid_ = uid; + setParameter(std::string("Uid"), uid); } -void DisableUserRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long DisableUserRequest::getTid() const { + return tid_; +} + +void DisableUserRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/EnableUserRequest.cc b/dms-enterprise/src/model/EnableUserRequest.cc index 0c63ee5a4..cbd20d6c9 100644 --- a/dms-enterprise/src/model/EnableUserRequest.cc +++ b/dms-enterprise/src/model/EnableUserRequest.cc @@ -1,51 +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::EnableUserRequest; - -EnableUserRequest::EnableUserRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "EnableUser") -{ - setMethod(HttpRequest::Method::Post); -} - -EnableUserRequest::~EnableUserRequest() -{} - -std::string EnableUserRequest::getUid()const -{ - return uid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::EnableUserRequest; + +EnableUserRequest::EnableUserRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "EnableUser") { + setMethod(HttpRequest::Method::Post); } -void EnableUserRequest::setUid(const std::string& uid) -{ - uid_ = uid; - setParameter("Uid", uid); +EnableUserRequest::~EnableUserRequest() {} + +std::string EnableUserRequest::getUid() const { + return uid_; } -long EnableUserRequest::getTid()const -{ - return tid_; +void EnableUserRequest::setUid(const std::string &uid) { + uid_ = uid; + setParameter(std::string("Uid"), uid); } -void EnableUserRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long EnableUserRequest::getTid() const { + return tid_; +} + +void EnableUserRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/ExecuteDataCorrectRequest.cc b/dms-enterprise/src/model/ExecuteDataCorrectRequest.cc index 1082c8f00..0b642ce18 100644 --- a/dms-enterprise/src/model/ExecuteDataCorrectRequest.cc +++ b/dms-enterprise/src/model/ExecuteDataCorrectRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::ExecuteDataCorrectRequest; - -ExecuteDataCorrectRequest::ExecuteDataCorrectRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteDataCorrect") -{ - setMethod(HttpRequest::Method::Post); -} - -ExecuteDataCorrectRequest::~ExecuteDataCorrectRequest() -{} - -long ExecuteDataCorrectRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ExecuteDataCorrectRequest; + +ExecuteDataCorrectRequest::ExecuteDataCorrectRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteDataCorrect") { + setMethod(HttpRequest::Method::Post); } -void ExecuteDataCorrectRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +ExecuteDataCorrectRequest::~ExecuteDataCorrectRequest() {} + +long ExecuteDataCorrectRequest::getOrderId() const { + return orderId_; } -std::string ExecuteDataCorrectRequest::getActionName()const -{ - return actionName_; +void ExecuteDataCorrectRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void ExecuteDataCorrectRequest::setActionName(const std::string& actionName) -{ - actionName_ = actionName; - setParameter("ActionName", actionName); +std::string ExecuteDataCorrectRequest::getActionName() const { + return actionName_; } -std::string ExecuteDataCorrectRequest::getTid()const -{ - return tid_; +void ExecuteDataCorrectRequest::setActionName(const std::string &actionName) { + actionName_ = actionName; + setParameter(std::string("ActionName"), actionName); } -void ExecuteDataCorrectRequest::setTid(const std::string& tid) -{ - tid_ = tid; - setParameter("Tid", tid); +std::string ExecuteDataCorrectRequest::getTid() const { + return tid_; } -std::map ExecuteDataCorrectRequest::getActionDetail()const -{ - return actionDetail_; +void ExecuteDataCorrectRequest::setTid(const std::string &tid) { + tid_ = tid; + setParameter(std::string("Tid"), tid); } -void ExecuteDataCorrectRequest::setActionDetail(const std::map& actionDetail) -{ - actionDetail_ = actionDetail; - setJsonParameters("ActionDetail", actionDetail); +std::map ExecuteDataCorrectRequest::getActionDetail() const { + return actionDetail_; +} + +void ExecuteDataCorrectRequest::setActionDetail(std::map actionDetail) { + actionDetail_ = actionDetail; + setParameter(std::string("ActionDetail"), actionDetail); } diff --git a/dms-enterprise/src/model/ExecuteDataExportRequest.cc b/dms-enterprise/src/model/ExecuteDataExportRequest.cc index 40de52506..cdff45fe3 100644 --- a/dms-enterprise/src/model/ExecuteDataExportRequest.cc +++ b/dms-enterprise/src/model/ExecuteDataExportRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::ExecuteDataExportRequest; - -ExecuteDataExportRequest::ExecuteDataExportRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteDataExport") -{ - setMethod(HttpRequest::Method::Post); -} - -ExecuteDataExportRequest::~ExecuteDataExportRequest() -{} - -long ExecuteDataExportRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ExecuteDataExportRequest; + +ExecuteDataExportRequest::ExecuteDataExportRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteDataExport") { + setMethod(HttpRequest::Method::Post); } -void ExecuteDataExportRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +ExecuteDataExportRequest::~ExecuteDataExportRequest() {} + +long ExecuteDataExportRequest::getOrderId() const { + return orderId_; } -std::string ExecuteDataExportRequest::getActionName()const -{ - return actionName_; +void ExecuteDataExportRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void ExecuteDataExportRequest::setActionName(const std::string& actionName) -{ - actionName_ = actionName; - setParameter("ActionName", actionName); +std::string ExecuteDataExportRequest::getActionName() const { + return actionName_; } -long ExecuteDataExportRequest::getTid()const -{ - return tid_; +void ExecuteDataExportRequest::setActionName(const std::string &actionName) { + actionName_ = actionName; + setParameter(std::string("ActionName"), actionName); } -void ExecuteDataExportRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long ExecuteDataExportRequest::getTid() const { + return tid_; } -std::map ExecuteDataExportRequest::getActionDetail()const -{ - return actionDetail_; +void ExecuteDataExportRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ExecuteDataExportRequest::setActionDetail(const std::map& actionDetail) -{ - actionDetail_ = actionDetail; - setJsonParameters("ActionDetail", actionDetail); +std::map ExecuteDataExportRequest::getActionDetail() const { + return actionDetail_; +} + +void ExecuteDataExportRequest::setActionDetail(std::map actionDetail) { + actionDetail_ = actionDetail; + setParameter(std::string("ActionDetail"), actionDetail); } diff --git a/dms-enterprise/src/model/ExecuteScriptRequest.cc b/dms-enterprise/src/model/ExecuteScriptRequest.cc index 705b63b77..d56d14ad1 100644 --- a/dms-enterprise/src/model/ExecuteScriptRequest.cc +++ b/dms-enterprise/src/model/ExecuteScriptRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::ExecuteScriptRequest; - -ExecuteScriptRequest::ExecuteScriptRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteScript") -{ - setMethod(HttpRequest::Method::Post); -} - -ExecuteScriptRequest::~ExecuteScriptRequest() -{} - -std::string ExecuteScriptRequest::getScript()const -{ - return script_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ExecuteScriptRequest; + +ExecuteScriptRequest::ExecuteScriptRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteScript") { + setMethod(HttpRequest::Method::Post); } -void ExecuteScriptRequest::setScript(const std::string& script) -{ - script_ = script; - setParameter("Script", script); +ExecuteScriptRequest::~ExecuteScriptRequest() {} + +std::string ExecuteScriptRequest::getScript() const { + return script_; } -long ExecuteScriptRequest::getTid()const -{ - return tid_; +void ExecuteScriptRequest::setScript(const std::string &script) { + script_ = script; + setParameter(std::string("Script"), script); } -void ExecuteScriptRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long ExecuteScriptRequest::getTid() const { + return tid_; } -int ExecuteScriptRequest::getDbId()const -{ - return dbId_; +void ExecuteScriptRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ExecuteScriptRequest::setDbId(int dbId) -{ - dbId_ = dbId; - setParameter("DbId", std::to_string(dbId)); +int ExecuteScriptRequest::getDbId() const { + return dbId_; } -bool ExecuteScriptRequest::getLogic()const -{ - return logic_; +void ExecuteScriptRequest::setDbId(int dbId) { + dbId_ = dbId; + setParameter(std::string("DbId"), std::to_string(dbId)); } -void ExecuteScriptRequest::setLogic(bool logic) -{ - logic_ = logic; - setParameter("Logic", logic ? "true" : "false"); +bool ExecuteScriptRequest::getLogic() const { + return logic_; +} + +void ExecuteScriptRequest::setLogic(bool logic) { + logic_ = logic; + setParameter(std::string("Logic"), logic ? "true" : "false"); } diff --git a/dms-enterprise/src/model/ExecuteScriptResult.cc b/dms-enterprise/src/model/ExecuteScriptResult.cc index 3c332f3bd..54494c2e7 100644 --- a/dms-enterprise/src/model/ExecuteScriptResult.cc +++ b/dms-enterprise/src/model/ExecuteScriptResult.cc @@ -43,12 +43,12 @@ void ExecuteScriptResult::parse(const std::string &payload) for (auto valueResultsResult : allResultsNode) { Result resultsObject; + if(!valueResultsResult["Success"].isNull()) + resultsObject.success = valueResultsResult["Success"].asString() == "true"; if(!valueResultsResult["Message"].isNull()) resultsObject.message = valueResultsResult["Message"].asString(); if(!valueResultsResult["RowCount"].isNull()) resultsObject.rowCount = std::stol(valueResultsResult["RowCount"].asString()); - if(!valueResultsResult["Success"].isNull()) - resultsObject.success = valueResultsResult["Success"].asString() == "true"; auto allColumnNames = value["ColumnNames"]["ColumnNames"]; for (auto value : allColumnNames) resultsObject.columnNames.push_back(value.asString()); diff --git a/dms-enterprise/src/model/ExecuteStructSyncRequest.cc b/dms-enterprise/src/model/ExecuteStructSyncRequest.cc index 07b339fa9..8203ab29b 100644 --- a/dms-enterprise/src/model/ExecuteStructSyncRequest.cc +++ b/dms-enterprise/src/model/ExecuteStructSyncRequest.cc @@ -1,51 +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::ExecuteStructSyncRequest; - -ExecuteStructSyncRequest::ExecuteStructSyncRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteStructSync") -{ - setMethod(HttpRequest::Method::Post); -} - -ExecuteStructSyncRequest::~ExecuteStructSyncRequest() -{} - -long ExecuteStructSyncRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ExecuteStructSyncRequest; + +ExecuteStructSyncRequest::ExecuteStructSyncRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteStructSync") { + setMethod(HttpRequest::Method::Post); } -void ExecuteStructSyncRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +ExecuteStructSyncRequest::~ExecuteStructSyncRequest() {} + +long ExecuteStructSyncRequest::getOrderId() const { + return orderId_; } -long ExecuteStructSyncRequest::getTid()const -{ - return tid_; +void ExecuteStructSyncRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void ExecuteStructSyncRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long ExecuteStructSyncRequest::getTid() const { + return tid_; +} + +void ExecuteStructSyncRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/ExecuteStructSyncResult.cc b/dms-enterprise/src/model/ExecuteStructSyncResult.cc index be1614276..95b636492 100644 --- a/dms-enterprise/src/model/ExecuteStructSyncResult.cc +++ b/dms-enterprise/src/model/ExecuteStructSyncResult.cc @@ -39,12 +39,12 @@ void ExecuteStructSyncResult::parse(const std::string &payload) 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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } diff --git a/dms-enterprise/src/model/GetApprovalDetailRequest.cc b/dms-enterprise/src/model/GetApprovalDetailRequest.cc index 4293c06c7..3ea4cf27c 100644 --- a/dms-enterprise/src/model/GetApprovalDetailRequest.cc +++ b/dms-enterprise/src/model/GetApprovalDetailRequest.cc @@ -1,51 +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::GetApprovalDetailRequest; - -GetApprovalDetailRequest::GetApprovalDetailRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetApprovalDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -GetApprovalDetailRequest::~GetApprovalDetailRequest() -{} - -long GetApprovalDetailRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetApprovalDetailRequest; + +GetApprovalDetailRequest::GetApprovalDetailRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetApprovalDetail") { + setMethod(HttpRequest::Method::Post); } -void GetApprovalDetailRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +GetApprovalDetailRequest::~GetApprovalDetailRequest() {} + +long GetApprovalDetailRequest::getTid() const { + return tid_; } -long GetApprovalDetailRequest::getWorkflowInstanceId()const -{ - return workflowInstanceId_; +void GetApprovalDetailRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void GetApprovalDetailRequest::setWorkflowInstanceId(long workflowInstanceId) -{ - workflowInstanceId_ = workflowInstanceId; - setParameter("WorkflowInstanceId", std::to_string(workflowInstanceId)); +long GetApprovalDetailRequest::getWorkflowInstanceId() const { + return workflowInstanceId_; +} + +void GetApprovalDetailRequest::setWorkflowInstanceId(long workflowInstanceId) { + workflowInstanceId_ = workflowInstanceId; + setParameter(std::string("WorkflowInstanceId"), std::to_string(workflowInstanceId)); } diff --git a/dms-enterprise/src/model/GetApprovalDetailResult.cc b/dms-enterprise/src/model/GetApprovalDetailResult.cc index 7fea83030..b66491cf0 100644 --- a/dms-enterprise/src/model/GetApprovalDetailResult.cc +++ b/dms-enterprise/src/model/GetApprovalDetailResult.cc @@ -40,46 +40,46 @@ void GetApprovalDetailResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto approvalDetailNode = value["ApprovalDetail"]; - if(!approvalDetailNode["OrderType"].isNull()) - approvalDetail_.orderType = approvalDetailNode["OrderType"].asString(); if(!approvalDetailNode["Description"].isNull()) approvalDetail_.description = approvalDetailNode["Description"].asString(); - if(!approvalDetailNode["WorkflowInsCode"].isNull()) - approvalDetail_.workflowInsCode = approvalDetailNode["WorkflowInsCode"].asString(); - if(!approvalDetailNode["AuditId"].isNull()) - approvalDetail_.auditId = std::stol(approvalDetailNode["AuditId"].asString()); + if(!approvalDetailNode["OrderType"].isNull()) + approvalDetail_.orderType = approvalDetailNode["OrderType"].asString(); if(!approvalDetailNode["Title"].isNull()) approvalDetail_.title = approvalDetailNode["Title"].asString(); + if(!approvalDetailNode["AuditId"].isNull()) + approvalDetail_.auditId = std::stol(approvalDetailNode["AuditId"].asString()); if(!approvalDetailNode["OrderId"].isNull()) approvalDetail_.orderId = std::stol(approvalDetailNode["OrderId"].asString()); - auto allCurrentHandlersNode = approvalDetailNode["CurrentHandlers"]["CurrentHandler"]; - for (auto approvalDetailNodeCurrentHandlersCurrentHandler : allCurrentHandlersNode) - { - ApprovalDetail::CurrentHandler currentHandlerObject; - if(!approvalDetailNodeCurrentHandlersCurrentHandler["Id"].isNull()) - currentHandlerObject.id = std::stol(approvalDetailNodeCurrentHandlersCurrentHandler["Id"].asString()); - if(!approvalDetailNodeCurrentHandlersCurrentHandler["NickName"].isNull()) - currentHandlerObject.nickName = approvalDetailNodeCurrentHandlersCurrentHandler["NickName"].asString(); - approvalDetail_.currentHandlers.push_back(currentHandlerObject); - } + if(!approvalDetailNode["WorkflowInsCode"].isNull()) + approvalDetail_.workflowInsCode = approvalDetailNode["WorkflowInsCode"].asString(); auto allWorkflowNodesNode = approvalDetailNode["WorkflowNodes"]["WorkflowNode"]; for (auto approvalDetailNodeWorkflowNodesWorkflowNode : allWorkflowNodesNode) { ApprovalDetail::WorkflowNode workflowNodeObject; if(!approvalDetailNodeWorkflowNodesWorkflowNode["OperateTime"].isNull()) workflowNodeObject.operateTime = approvalDetailNodeWorkflowNodesWorkflowNode["OperateTime"].asString(); - if(!approvalDetailNodeWorkflowNodesWorkflowNode["WorkflowInsCode"].isNull()) - workflowNodeObject.workflowInsCode = approvalDetailNodeWorkflowNodesWorkflowNode["WorkflowInsCode"].asString(); + if(!approvalDetailNodeWorkflowNodesWorkflowNode["OperatorId"].isNull()) + workflowNodeObject.operatorId = std::stol(approvalDetailNodeWorkflowNodesWorkflowNode["OperatorId"].asString()); if(!approvalDetailNodeWorkflowNodesWorkflowNode["NodeName"].isNull()) workflowNodeObject.nodeName = approvalDetailNodeWorkflowNodesWorkflowNode["NodeName"].asString(); if(!approvalDetailNodeWorkflowNodesWorkflowNode["OperateComment"].isNull()) workflowNodeObject.operateComment = approvalDetailNodeWorkflowNodesWorkflowNode["OperateComment"].asString(); - if(!approvalDetailNodeWorkflowNodesWorkflowNode["OperatorId"].isNull()) - workflowNodeObject.operatorId = std::stol(approvalDetailNodeWorkflowNodesWorkflowNode["OperatorId"].asString()); + if(!approvalDetailNodeWorkflowNodesWorkflowNode["WorkflowInsCode"].isNull()) + workflowNodeObject.workflowInsCode = approvalDetailNodeWorkflowNodesWorkflowNode["WorkflowInsCode"].asString(); auto allAuditUserIdList = value["AuditUserIdList"]["AuditUserIds"]; for (auto value : allAuditUserIdList) workflowNodeObject.auditUserIdList.push_back(value.asString()); approvalDetail_.workflowNodes.push_back(workflowNodeObject); + } + auto allCurrentHandlersNode = approvalDetailNode["CurrentHandlers"]["CurrentHandler"]; + for (auto approvalDetailNodeCurrentHandlersCurrentHandler : allCurrentHandlersNode) + { + ApprovalDetail::CurrentHandler currentHandlerObject; + if(!approvalDetailNodeCurrentHandlersCurrentHandler["NickName"].isNull()) + currentHandlerObject.nickName = approvalDetailNodeCurrentHandlersCurrentHandler["NickName"].asString(); + if(!approvalDetailNodeCurrentHandlersCurrentHandler["Id"].isNull()) + currentHandlerObject.id = std::stol(approvalDetailNodeCurrentHandlersCurrentHandler["Id"].asString()); + approvalDetail_.currentHandlers.push_back(currentHandlerObject); } auto allReasonList = approvalDetailNode["ReasonList"]["Reasons"]; for (auto value : allReasonList) diff --git a/dms-enterprise/src/model/GetDBTopologyRequest.cc b/dms-enterprise/src/model/GetDBTopologyRequest.cc index 6751e57a8..42a12ec3b 100644 --- a/dms-enterprise/src/model/GetDBTopologyRequest.cc +++ b/dms-enterprise/src/model/GetDBTopologyRequest.cc @@ -1,51 +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::GetDBTopologyRequest; - -GetDBTopologyRequest::GetDBTopologyRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDBTopology") -{ - setMethod(HttpRequest::Method::Post); -} - -GetDBTopologyRequest::~GetDBTopologyRequest() -{} - -long GetDBTopologyRequest::getLogicDbId()const -{ - return logicDbId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetDBTopologyRequest; + +GetDBTopologyRequest::GetDBTopologyRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDBTopology") { + setMethod(HttpRequest::Method::Post); } -void GetDBTopologyRequest::setLogicDbId(long logicDbId) -{ - logicDbId_ = logicDbId; - setParameter("LogicDbId", std::to_string(logicDbId)); +GetDBTopologyRequest::~GetDBTopologyRequest() {} + +long GetDBTopologyRequest::getLogicDbId() const { + return logicDbId_; } -long GetDBTopologyRequest::getTid()const -{ - return tid_; +void GetDBTopologyRequest::setLogicDbId(long logicDbId) { + logicDbId_ = logicDbId; + setParameter(std::string("LogicDbId"), std::to_string(logicDbId)); } -void GetDBTopologyRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetDBTopologyRequest::getTid() const { + return tid_; +} + +void GetDBTopologyRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetDBTopologyResult.cc b/dms-enterprise/src/model/GetDBTopologyResult.cc index ea1368853..869961402 100644 --- a/dms-enterprise/src/model/GetDBTopologyResult.cc +++ b/dms-enterprise/src/model/GetDBTopologyResult.cc @@ -42,48 +42,48 @@ void GetDBTopologyResult::parse(const std::string &payload) auto dBTopologyNode = value["DBTopology"]; if(!dBTopologyNode["LogicDbId"].isNull()) dBTopology_.logicDbId = std::stol(dBTopologyNode["LogicDbId"].asString()); + if(!dBTopologyNode["LogicDbName"].isNull()) + dBTopology_.logicDbName = dBTopologyNode["LogicDbName"].asString(); if(!dBTopologyNode["SearchName"].isNull()) dBTopology_.searchName = dBTopologyNode["SearchName"].asString(); if(!dBTopologyNode["Alias"].isNull()) dBTopology_.alias = dBTopologyNode["Alias"].asString(); - if(!dBTopologyNode["LogicDbName"].isNull()) - dBTopology_.logicDbName = dBTopologyNode["LogicDbName"].asString(); - if(!dBTopologyNode["EnvType"].isNull()) - dBTopology_.envType = dBTopologyNode["EnvType"].asString(); if(!dBTopologyNode["DbType"].isNull()) dBTopology_.dbType = dBTopologyNode["DbType"].asString(); + if(!dBTopologyNode["EnvType"].isNull()) + dBTopology_.envType = dBTopologyNode["EnvType"].asString(); auto allDBTopologyInfoListNode = dBTopologyNode["DBTopologyInfoList"]["DBTopologyInfo"]; for (auto dBTopologyNodeDBTopologyInfoListDBTopologyInfo : allDBTopologyInfoListNode) { DBTopology::DBTopologyInfo dBTopologyInfoObject; - if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceSource"].isNull()) - dBTopologyInfoObject.instanceSource = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceSource"].asString(); - if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceResourceId"].isNull()) - dBTopologyInfoObject.instanceResourceId = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceResourceId"].asString(); - if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceId"].isNull()) - dBTopologyInfoObject.instanceId = std::stol(dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceId"].asString()); - if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["SearchName"].isNull()) - dBTopologyInfoObject.searchName = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["SearchName"].asString(); if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["DbId"].isNull()) dBTopologyInfoObject.dbId = std::stol(dBTopologyNodeDBTopologyInfoListDBTopologyInfo["DbId"].asString()); - if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["CatalogName"].isNull()) - dBTopologyInfoObject.catalogName = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["CatalogName"].asString(); - if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["RegionId"].isNull()) - dBTopologyInfoObject.regionId = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["RegionId"].asString(); - if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["EnvType"].isNull()) - dBTopologyInfoObject.envType = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["EnvType"].asString(); - if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["DbType"].isNull()) - dBTopologyInfoObject.dbType = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["DbType"].asString(); if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["SchemaName"].isNull()) dBTopologyInfoObject.schemaName = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["SchemaName"].asString(); + if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["CatalogName"].isNull()) + dBTopologyInfoObject.catalogName = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["CatalogName"].asString(); + if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["SearchName"].isNull()) + dBTopologyInfoObject.searchName = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["SearchName"].asString(); + if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["DbType"].isNull()) + dBTopologyInfoObject.dbType = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["DbType"].asString(); + if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["EnvType"].isNull()) + dBTopologyInfoObject.envType = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["EnvType"].asString(); + if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceId"].isNull()) + dBTopologyInfoObject.instanceId = std::stol(dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceId"].asString()); + if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["RegionId"].isNull()) + dBTopologyInfoObject.regionId = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["RegionId"].asString(); + if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceResourceId"].isNull()) + dBTopologyInfoObject.instanceResourceId = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceResourceId"].asString(); + if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceSource"].isNull()) + dBTopologyInfoObject.instanceSource = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceSource"].asString(); dBTopology_.dBTopologyInfoList.push_back(dBTopologyInfoObject); } - 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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } diff --git a/dms-enterprise/src/model/GetDataCorrectBackupFilesRequest.cc b/dms-enterprise/src/model/GetDataCorrectBackupFilesRequest.cc index ca6f0a71f..5a1fc03ac 100644 --- a/dms-enterprise/src/model/GetDataCorrectBackupFilesRequest.cc +++ b/dms-enterprise/src/model/GetDataCorrectBackupFilesRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::GetDataCorrectBackupFilesRequest; - -GetDataCorrectBackupFilesRequest::GetDataCorrectBackupFilesRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectBackupFiles") -{ - setMethod(HttpRequest::Method::Post); -} - -GetDataCorrectBackupFilesRequest::~GetDataCorrectBackupFilesRequest() -{} - -long GetDataCorrectBackupFilesRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetDataCorrectBackupFilesRequest; + +GetDataCorrectBackupFilesRequest::GetDataCorrectBackupFilesRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectBackupFiles") { + setMethod(HttpRequest::Method::Post); } -void GetDataCorrectBackupFilesRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +GetDataCorrectBackupFilesRequest::~GetDataCorrectBackupFilesRequest() {} + +long GetDataCorrectBackupFilesRequest::getOrderId() const { + return orderId_; } -std::string GetDataCorrectBackupFilesRequest::getActionName()const -{ - return actionName_; +void GetDataCorrectBackupFilesRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void GetDataCorrectBackupFilesRequest::setActionName(const std::string& actionName) -{ - actionName_ = actionName; - setParameter("ActionName", actionName); +std::string GetDataCorrectBackupFilesRequest::getActionName() const { + return actionName_; } -long GetDataCorrectBackupFilesRequest::getTid()const -{ - return tid_; +void GetDataCorrectBackupFilesRequest::setActionName(const std::string &actionName) { + actionName_ = actionName; + setParameter(std::string("ActionName"), actionName); } -void GetDataCorrectBackupFilesRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetDataCorrectBackupFilesRequest::getTid() const { + return tid_; } -std::map GetDataCorrectBackupFilesRequest::getActionDetail()const -{ - return actionDetail_; +void GetDataCorrectBackupFilesRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void GetDataCorrectBackupFilesRequest::setActionDetail(const std::map& actionDetail) -{ - actionDetail_ = actionDetail; - setJsonParameters("ActionDetail", actionDetail); +std::map GetDataCorrectBackupFilesRequest::getActionDetail() const { + return actionDetail_; +} + +void GetDataCorrectBackupFilesRequest::setActionDetail(std::map actionDetail) { + actionDetail_ = actionDetail; + setParameter(std::string("ActionDetail"), actionDetail); } diff --git a/dms-enterprise/src/model/GetDataCorrectOrderDetailRequest.cc b/dms-enterprise/src/model/GetDataCorrectOrderDetailRequest.cc index d0ef59e16..afdbebb2e 100644 --- a/dms-enterprise/src/model/GetDataCorrectOrderDetailRequest.cc +++ b/dms-enterprise/src/model/GetDataCorrectOrderDetailRequest.cc @@ -1,51 +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::GetDataCorrectOrderDetailRequest; - -GetDataCorrectOrderDetailRequest::GetDataCorrectOrderDetailRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectOrderDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -GetDataCorrectOrderDetailRequest::~GetDataCorrectOrderDetailRequest() -{} - -long GetDataCorrectOrderDetailRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetDataCorrectOrderDetailRequest; + +GetDataCorrectOrderDetailRequest::GetDataCorrectOrderDetailRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectOrderDetail") { + setMethod(HttpRequest::Method::Post); } -void GetDataCorrectOrderDetailRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +GetDataCorrectOrderDetailRequest::~GetDataCorrectOrderDetailRequest() {} + +long GetDataCorrectOrderDetailRequest::getOrderId() const { + return orderId_; } -long GetDataCorrectOrderDetailRequest::getTid()const -{ - return tid_; +void GetDataCorrectOrderDetailRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void GetDataCorrectOrderDetailRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetDataCorrectOrderDetailRequest::getTid() const { + return tid_; +} + +void GetDataCorrectOrderDetailRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetDataCorrectOrderDetailResult.cc b/dms-enterprise/src/model/GetDataCorrectOrderDetailResult.cc index 308e57383..efccadb88 100644 --- a/dms-enterprise/src/model/GetDataCorrectOrderDetailResult.cc +++ b/dms-enterprise/src/model/GetDataCorrectOrderDetailResult.cc @@ -42,57 +42,57 @@ void GetDataCorrectOrderDetailResult::parse(const std::string &payload) auto dataCorrectOrderDetailNode = value["DataCorrectOrderDetail"]; if(!dataCorrectOrderDetailNode["Status"].isNull()) dataCorrectOrderDetail_.status = dataCorrectOrderDetailNode["Status"].asString(); - auto allDatabaseListNode = dataCorrectOrderDetailNode["DatabaseList"]["Database"]; - for (auto dataCorrectOrderDetailNodeDatabaseListDatabase : allDatabaseListNode) - { - DataCorrectOrderDetail::Database databaseObject; - if(!dataCorrectOrderDetailNodeDatabaseListDatabase["SearchName"].isNull()) - databaseObject.searchName = dataCorrectOrderDetailNodeDatabaseListDatabase["SearchName"].asString(); - if(!dataCorrectOrderDetailNodeDatabaseListDatabase["DbId"].isNull()) - databaseObject.dbId = std::stoi(dataCorrectOrderDetailNodeDatabaseListDatabase["DbId"].asString()); - if(!dataCorrectOrderDetailNodeDatabaseListDatabase["Logic"].isNull()) - databaseObject.logic = dataCorrectOrderDetailNodeDatabaseListDatabase["Logic"].asString() == "true"; - if(!dataCorrectOrderDetailNodeDatabaseListDatabase["EnvType"].isNull()) - databaseObject.envType = dataCorrectOrderDetailNodeDatabaseListDatabase["EnvType"].asString(); - if(!dataCorrectOrderDetailNodeDatabaseListDatabase["DbType"].isNull()) - databaseObject.dbType = dataCorrectOrderDetailNodeDatabaseListDatabase["DbType"].asString(); - dataCorrectOrderDetail_.databaseList.push_back(databaseObject); - } auto allPreCheckDetailNode = dataCorrectOrderDetailNode["PreCheckDetail"]["TaskCheckDO"]; for (auto dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO : allPreCheckDetailNode) { DataCorrectOrderDetail::TaskCheckDO taskCheckDOObject; if(!dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["UserTip"].isNull()) taskCheckDOObject.userTip = dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["UserTip"].asString(); - if(!dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["CheckStep"].isNull()) - taskCheckDOObject.checkStep = dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["CheckStep"].asString(); if(!dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["CheckStatus"].isNull()) taskCheckDOObject.checkStatus = dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["CheckStatus"].asString(); + if(!dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["CheckStep"].isNull()) + taskCheckDOObject.checkStep = dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["CheckStep"].asString(); dataCorrectOrderDetail_.preCheckDetail.push_back(taskCheckDOObject); } + auto allDatabaseListNode = dataCorrectOrderDetailNode["DatabaseList"]["Database"]; + for (auto dataCorrectOrderDetailNodeDatabaseListDatabase : allDatabaseListNode) + { + DataCorrectOrderDetail::Database databaseObject; + if(!dataCorrectOrderDetailNodeDatabaseListDatabase["DbId"].isNull()) + databaseObject.dbId = std::stoi(dataCorrectOrderDetailNodeDatabaseListDatabase["DbId"].asString()); + if(!dataCorrectOrderDetailNodeDatabaseListDatabase["DbType"].isNull()) + databaseObject.dbType = dataCorrectOrderDetailNodeDatabaseListDatabase["DbType"].asString(); + if(!dataCorrectOrderDetailNodeDatabaseListDatabase["Logic"].isNull()) + databaseObject.logic = dataCorrectOrderDetailNodeDatabaseListDatabase["Logic"].asString() == "true"; + if(!dataCorrectOrderDetailNodeDatabaseListDatabase["SearchName"].isNull()) + databaseObject.searchName = dataCorrectOrderDetailNodeDatabaseListDatabase["SearchName"].asString(); + if(!dataCorrectOrderDetailNodeDatabaseListDatabase["EnvType"].isNull()) + databaseObject.envType = dataCorrectOrderDetailNodeDatabaseListDatabase["EnvType"].asString(); + dataCorrectOrderDetail_.databaseList.push_back(databaseObject); + } auto orderDetailNode = dataCorrectOrderDetailNode["OrderDetail"]; - if(!orderDetailNode["EstimateAffectRows"].isNull()) - dataCorrectOrderDetail_.orderDetail.estimateAffectRows = std::stol(orderDetailNode["EstimateAffectRows"].asString()); - if(!orderDetailNode["IgnoreAffectRows"].isNull()) - dataCorrectOrderDetail_.orderDetail.ignoreAffectRows = orderDetailNode["IgnoreAffectRows"].asString() == "true"; - if(!orderDetailNode["ExeSQL"].isNull()) - dataCorrectOrderDetail_.orderDetail.exeSQL = orderDetailNode["ExeSQL"].asString(); + if(!orderDetailNode["RbSQL"].isNull()) + dataCorrectOrderDetail_.orderDetail.rbSQL = orderDetailNode["RbSQL"].asString(); + if(!orderDetailNode["RbAttachmentName"].isNull()) + dataCorrectOrderDetail_.orderDetail.rbAttachmentName = orderDetailNode["RbAttachmentName"].asString(); if(!orderDetailNode["Classify"].isNull()) dataCorrectOrderDetail_.orderDetail.classify = orderDetailNode["Classify"].asString(); - if(!orderDetailNode["IgnoreAffectRowsReason"].isNull()) - dataCorrectOrderDetail_.orderDetail.ignoreAffectRowsReason = orderDetailNode["IgnoreAffectRowsReason"].asString(); - if(!orderDetailNode["AttachmentName"].isNull()) - dataCorrectOrderDetail_.orderDetail.attachmentName = orderDetailNode["AttachmentName"].asString(); - if(!orderDetailNode["SqlType"].isNull()) - dataCorrectOrderDetail_.orderDetail.sqlType = orderDetailNode["SqlType"].asString(); + if(!orderDetailNode["ExeSQL"].isNull()) + dataCorrectOrderDetail_.orderDetail.exeSQL = orderDetailNode["ExeSQL"].asString(); + if(!orderDetailNode["EstimateAffectRows"].isNull()) + dataCorrectOrderDetail_.orderDetail.estimateAffectRows = std::stol(orderDetailNode["EstimateAffectRows"].asString()); if(!orderDetailNode["RbSQLType"].isNull()) dataCorrectOrderDetail_.orderDetail.rbSQLType = orderDetailNode["RbSQLType"].asString(); if(!orderDetailNode["ActualAffectRows"].isNull()) dataCorrectOrderDetail_.orderDetail.actualAffectRows = std::stol(orderDetailNode["ActualAffectRows"].asString()); - if(!orderDetailNode["RbAttachmentName"].isNull()) - dataCorrectOrderDetail_.orderDetail.rbAttachmentName = orderDetailNode["RbAttachmentName"].asString(); - if(!orderDetailNode["RbSQL"].isNull()) - dataCorrectOrderDetail_.orderDetail.rbSQL = orderDetailNode["RbSQL"].asString(); + if(!orderDetailNode["IgnoreAffectRows"].isNull()) + dataCorrectOrderDetail_.orderDetail.ignoreAffectRows = orderDetailNode["IgnoreAffectRows"].asString() == "true"; + if(!orderDetailNode["AttachmentName"].isNull()) + dataCorrectOrderDetail_.orderDetail.attachmentName = orderDetailNode["AttachmentName"].asString(); + if(!orderDetailNode["SqlType"].isNull()) + dataCorrectOrderDetail_.orderDetail.sqlType = orderDetailNode["SqlType"].asString(); + if(!orderDetailNode["IgnoreAffectRowsReason"].isNull()) + dataCorrectOrderDetail_.orderDetail.ignoreAffectRowsReason = orderDetailNode["IgnoreAffectRowsReason"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); if(!value["ErrorMessage"].isNull()) diff --git a/dms-enterprise/src/model/GetDataCorrectSQLFileRequest.cc b/dms-enterprise/src/model/GetDataCorrectSQLFileRequest.cc index 2daf00cc4..6e5c55778 100644 --- a/dms-enterprise/src/model/GetDataCorrectSQLFileRequest.cc +++ b/dms-enterprise/src/model/GetDataCorrectSQLFileRequest.cc @@ -1,62 +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::GetDataCorrectSQLFileRequest; - -GetDataCorrectSQLFileRequest::GetDataCorrectSQLFileRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectSQLFile") -{ - setMethod(HttpRequest::Method::Post); -} - -GetDataCorrectSQLFileRequest::~GetDataCorrectSQLFileRequest() -{} - -long GetDataCorrectSQLFileRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetDataCorrectSQLFileRequest; + +GetDataCorrectSQLFileRequest::GetDataCorrectSQLFileRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectSQLFile") { + setMethod(HttpRequest::Method::Post); } -void GetDataCorrectSQLFileRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +GetDataCorrectSQLFileRequest::~GetDataCorrectSQLFileRequest() {} + +long GetDataCorrectSQLFileRequest::getOrderId() const { + return orderId_; } -long GetDataCorrectSQLFileRequest::getTid()const -{ - return tid_; +void GetDataCorrectSQLFileRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void GetDataCorrectSQLFileRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetDataCorrectSQLFileRequest::getTid() const { + return tid_; } -std::string GetDataCorrectSQLFileRequest::getOrderActionName()const -{ - return orderActionName_; +void GetDataCorrectSQLFileRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void GetDataCorrectSQLFileRequest::setOrderActionName(const std::string& orderActionName) -{ - orderActionName_ = orderActionName; - setParameter("OrderActionName", orderActionName); +std::string GetDataCorrectSQLFileRequest::getOrderActionName() const { + return orderActionName_; +} + +void GetDataCorrectSQLFileRequest::setOrderActionName(const std::string &orderActionName) { + orderActionName_ = orderActionName; + setParameter(std::string("OrderActionName"), orderActionName); } diff --git a/dms-enterprise/src/model/GetDataCorrectSQLFileResult.cc b/dms-enterprise/src/model/GetDataCorrectSQLFileResult.cc index d145ea7c1..247cfc841 100644 --- a/dms-enterprise/src/model/GetDataCorrectSQLFileResult.cc +++ b/dms-enterprise/src/model/GetDataCorrectSQLFileResult.cc @@ -39,14 +39,14 @@ void GetDataCorrectSQLFileResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["FileUrl"].isNull()) - fileUrl_ = value["FileUrl"].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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["FileUrl"].isNull()) + fileUrl_ = value["FileUrl"].asString(); } diff --git a/dms-enterprise/src/model/GetDataCorrectTaskDetailRequest.cc b/dms-enterprise/src/model/GetDataCorrectTaskDetailRequest.cc index b25cda430..7a56a7033 100644 --- a/dms-enterprise/src/model/GetDataCorrectTaskDetailRequest.cc +++ b/dms-enterprise/src/model/GetDataCorrectTaskDetailRequest.cc @@ -1,51 +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::GetDataCorrectTaskDetailRequest; - -GetDataCorrectTaskDetailRequest::GetDataCorrectTaskDetailRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectTaskDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -GetDataCorrectTaskDetailRequest::~GetDataCorrectTaskDetailRequest() -{} - -long GetDataCorrectTaskDetailRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetDataCorrectTaskDetailRequest; + +GetDataCorrectTaskDetailRequest::GetDataCorrectTaskDetailRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectTaskDetail") { + setMethod(HttpRequest::Method::Post); } -void GetDataCorrectTaskDetailRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +GetDataCorrectTaskDetailRequest::~GetDataCorrectTaskDetailRequest() {} + +long GetDataCorrectTaskDetailRequest::getOrderId() const { + return orderId_; } -long GetDataCorrectTaskDetailRequest::getTid()const -{ - return tid_; +void GetDataCorrectTaskDetailRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void GetDataCorrectTaskDetailRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetDataCorrectTaskDetailRequest::getTid() const { + return tid_; +} + +void GetDataCorrectTaskDetailRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetDataCorrectTaskDetailResult.cc b/dms-enterprise/src/model/GetDataCorrectTaskDetailResult.cc index 2407e80c4..e1135c0eb 100644 --- a/dms-enterprise/src/model/GetDataCorrectTaskDetailResult.cc +++ b/dms-enterprise/src/model/GetDataCorrectTaskDetailResult.cc @@ -40,20 +40,20 @@ void GetDataCorrectTaskDetailResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataCorrectTaskDetailNode = value["DataCorrectTaskDetail"]; - if(!dataCorrectTaskDetailNode["jobStatus"].isNull()) - dataCorrectTaskDetail_.jobStatus = dataCorrectTaskDetailNode["jobStatus"].asString(); - if(!dataCorrectTaskDetailNode["CreateTime"].isNull()) - dataCorrectTaskDetail_.createTime = dataCorrectTaskDetailNode["CreateTime"].asString(); - if(!dataCorrectTaskDetailNode["ActualAffectRows"].isNull()) - dataCorrectTaskDetail_.actualAffectRows = std::stol(dataCorrectTaskDetailNode["ActualAffectRows"].asString()); if(!dataCorrectTaskDetailNode["DBTaskGroupId"].isNull()) dataCorrectTaskDetail_.dBTaskGroupId = std::stol(dataCorrectTaskDetailNode["DBTaskGroupId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + if(!dataCorrectTaskDetailNode["jobStatus"].isNull()) + dataCorrectTaskDetail_.jobStatus = dataCorrectTaskDetailNode["jobStatus"].asString(); + if(!dataCorrectTaskDetailNode["ActualAffectRows"].isNull()) + dataCorrectTaskDetail_.actualAffectRows = std::stol(dataCorrectTaskDetailNode["ActualAffectRows"].asString()); + if(!dataCorrectTaskDetailNode["CreateTime"].isNull()) + dataCorrectTaskDetail_.createTime = dataCorrectTaskDetailNode["CreateTime"].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(); } diff --git a/dms-enterprise/src/model/GetDataCronClearTaskDetailListRequest.cc b/dms-enterprise/src/model/GetDataCronClearTaskDetailListRequest.cc index 20185f433..e1d3e9d7d 100644 --- a/dms-enterprise/src/model/GetDataCronClearTaskDetailListRequest.cc +++ b/dms-enterprise/src/model/GetDataCronClearTaskDetailListRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::GetDataCronClearTaskDetailListRequest; - -GetDataCronClearTaskDetailListRequest::GetDataCronClearTaskDetailListRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCronClearTaskDetailList") -{ - setMethod(HttpRequest::Method::Post); -} - -GetDataCronClearTaskDetailListRequest::~GetDataCronClearTaskDetailListRequest() -{} - -long GetDataCronClearTaskDetailListRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetDataCronClearTaskDetailListRequest; + +GetDataCronClearTaskDetailListRequest::GetDataCronClearTaskDetailListRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCronClearTaskDetailList") { + setMethod(HttpRequest::Method::Post); } -void GetDataCronClearTaskDetailListRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +GetDataCronClearTaskDetailListRequest::~GetDataCronClearTaskDetailListRequest() {} + +long GetDataCronClearTaskDetailListRequest::getOrderId() const { + return orderId_; } -long GetDataCronClearTaskDetailListRequest::getPageNumber()const -{ - return pageNumber_; +void GetDataCronClearTaskDetailListRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void GetDataCronClearTaskDetailListRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long GetDataCronClearTaskDetailListRequest::getPageNumber() const { + return pageNumber_; } -long GetDataCronClearTaskDetailListRequest::getTid()const -{ - return tid_; +void GetDataCronClearTaskDetailListRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void GetDataCronClearTaskDetailListRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetDataCronClearTaskDetailListRequest::getTid() const { + return tid_; } -long GetDataCronClearTaskDetailListRequest::getPageSize()const -{ - return pageSize_; +void GetDataCronClearTaskDetailListRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void GetDataCronClearTaskDetailListRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long GetDataCronClearTaskDetailListRequest::getPageSize() const { + return pageSize_; +} + +void GetDataCronClearTaskDetailListRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/dms-enterprise/src/model/GetDataCronClearTaskDetailListResult.cc b/dms-enterprise/src/model/GetDataCronClearTaskDetailListResult.cc index a5e47aff9..1cff8f9b5 100644 --- a/dms-enterprise/src/model/GetDataCronClearTaskDetailListResult.cc +++ b/dms-enterprise/src/model/GetDataCronClearTaskDetailListResult.cc @@ -43,24 +43,24 @@ void GetDataCronClearTaskDetailListResult::parse(const std::string &payload) for (auto valueDataCronClearTaskDetailListDataCronClearTaskDetail : allDataCronClearTaskDetailListNode) { DataCronClearTaskDetail dataCronClearTaskDetailListObject; - if(!valueDataCronClearTaskDetailListDataCronClearTaskDetail["jobStatus"].isNull()) - dataCronClearTaskDetailListObject.jobStatus = valueDataCronClearTaskDetailListDataCronClearTaskDetail["jobStatus"].asString(); - if(!valueDataCronClearTaskDetailListDataCronClearTaskDetail["CreateTime"].isNull()) - dataCronClearTaskDetailListObject.createTime = valueDataCronClearTaskDetailListDataCronClearTaskDetail["CreateTime"].asString(); - if(!valueDataCronClearTaskDetailListDataCronClearTaskDetail["ActualAffectRows"].isNull()) - dataCronClearTaskDetailListObject.actualAffectRows = std::stol(valueDataCronClearTaskDetailListDataCronClearTaskDetail["ActualAffectRows"].asString()); if(!valueDataCronClearTaskDetailListDataCronClearTaskDetail["DBTaskGroupId"].isNull()) dataCronClearTaskDetailListObject.dBTaskGroupId = std::stol(valueDataCronClearTaskDetailListDataCronClearTaskDetail["DBTaskGroupId"].asString()); + if(!valueDataCronClearTaskDetailListDataCronClearTaskDetail["jobStatus"].isNull()) + dataCronClearTaskDetailListObject.jobStatus = valueDataCronClearTaskDetailListDataCronClearTaskDetail["jobStatus"].asString(); + if(!valueDataCronClearTaskDetailListDataCronClearTaskDetail["ActualAffectRows"].isNull()) + dataCronClearTaskDetailListObject.actualAffectRows = std::stol(valueDataCronClearTaskDetailListDataCronClearTaskDetail["ActualAffectRows"].asString()); + if(!valueDataCronClearTaskDetailListDataCronClearTaskDetail["CreateTime"].isNull()) + dataCronClearTaskDetailListObject.createTime = valueDataCronClearTaskDetailListDataCronClearTaskDetail["CreateTime"].asString(); dataCronClearTaskDetailList_.push_back(dataCronClearTaskDetailListObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); } diff --git a/dms-enterprise/src/model/GetDataExportDownloadURLRequest.cc b/dms-enterprise/src/model/GetDataExportDownloadURLRequest.cc index 6b3111306..70396f662 100644 --- a/dms-enterprise/src/model/GetDataExportDownloadURLRequest.cc +++ b/dms-enterprise/src/model/GetDataExportDownloadURLRequest.cc @@ -1,62 +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::GetDataExportDownloadURLRequest; - -GetDataExportDownloadURLRequest::GetDataExportDownloadURLRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataExportDownloadURL") -{ - setMethod(HttpRequest::Method::Post); -} - -GetDataExportDownloadURLRequest::~GetDataExportDownloadURLRequest() -{} - -long GetDataExportDownloadURLRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetDataExportDownloadURLRequest; + +GetDataExportDownloadURLRequest::GetDataExportDownloadURLRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataExportDownloadURL") { + setMethod(HttpRequest::Method::Post); } -void GetDataExportDownloadURLRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +GetDataExportDownloadURLRequest::~GetDataExportDownloadURLRequest() {} + +long GetDataExportDownloadURLRequest::getOrderId() const { + return orderId_; } -std::string GetDataExportDownloadURLRequest::getActionName()const -{ - return actionName_; +void GetDataExportDownloadURLRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void GetDataExportDownloadURLRequest::setActionName(const std::string& actionName) -{ - actionName_ = actionName; - setParameter("ActionName", actionName); +std::string GetDataExportDownloadURLRequest::getActionName() const { + return actionName_; } -long GetDataExportDownloadURLRequest::getTid()const -{ - return tid_; +void GetDataExportDownloadURLRequest::setActionName(const std::string &actionName) { + actionName_ = actionName; + setParameter(std::string("ActionName"), actionName); } -void GetDataExportDownloadURLRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetDataExportDownloadURLRequest::getTid() const { + return tid_; +} + +void GetDataExportDownloadURLRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetDataExportOrderDetailRequest.cc b/dms-enterprise/src/model/GetDataExportOrderDetailRequest.cc index 2c78f531e..4e01f3ecd 100644 --- a/dms-enterprise/src/model/GetDataExportOrderDetailRequest.cc +++ b/dms-enterprise/src/model/GetDataExportOrderDetailRequest.cc @@ -1,51 +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::GetDataExportOrderDetailRequest; - -GetDataExportOrderDetailRequest::GetDataExportOrderDetailRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataExportOrderDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -GetDataExportOrderDetailRequest::~GetDataExportOrderDetailRequest() -{} - -long GetDataExportOrderDetailRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetDataExportOrderDetailRequest; + +GetDataExportOrderDetailRequest::GetDataExportOrderDetailRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataExportOrderDetail") { + setMethod(HttpRequest::Method::Post); } -void GetDataExportOrderDetailRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setBodyParameter("OrderId", std::to_string(orderId)); +GetDataExportOrderDetailRequest::~GetDataExportOrderDetailRequest() {} + +long GetDataExportOrderDetailRequest::getOrderId() const { + return orderId_; } -long GetDataExportOrderDetailRequest::getTid()const -{ - return tid_; +void GetDataExportOrderDetailRequest::setOrderId(long orderId) { + orderId_ = orderId; + setBodyParameter(std::string("OrderId"), std::to_string(orderId)); } -void GetDataExportOrderDetailRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetDataExportOrderDetailRequest::getTid() const { + return tid_; +} + +void GetDataExportOrderDetailRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetDataExportOrderDetailResult.cc b/dms-enterprise/src/model/GetDataExportOrderDetailResult.cc index bcd8d0800..5d79c091c 100644 --- a/dms-enterprise/src/model/GetDataExportOrderDetailResult.cc +++ b/dms-enterprise/src/model/GetDataExportOrderDetailResult.cc @@ -40,30 +40,30 @@ void GetDataExportOrderDetailResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataExportOrderDetailNode = value["DataExportOrderDetail"]; - auto orderDetailNode = dataExportOrderDetailNode["OrderDetail"]; - if(!orderDetailNode["IgnoreAffectRows"].isNull()) - dataExportOrderDetail_.orderDetail.ignoreAffectRows = orderDetailNode["IgnoreAffectRows"].asString() == "true"; - if(!orderDetailNode["ExeSQL"].isNull()) - dataExportOrderDetail_.orderDetail.exeSQL = orderDetailNode["ExeSQL"].asString(); - if(!orderDetailNode["Classify"].isNull()) - dataExportOrderDetail_.orderDetail.classify = orderDetailNode["Classify"].asString(); - if(!orderDetailNode["IgnoreAffectRowsReason"].isNull()) - dataExportOrderDetail_.orderDetail.ignoreAffectRowsReason = orderDetailNode["IgnoreAffectRowsReason"].asString(); - if(!orderDetailNode["Database"].isNull()) - dataExportOrderDetail_.orderDetail.database = orderDetailNode["Database"].asString(); - if(!orderDetailNode["DbId"].isNull()) - dataExportOrderDetail_.orderDetail.dbId = std::stoi(orderDetailNode["DbId"].asString()); - if(!orderDetailNode["ActualAffectRows"].isNull()) - dataExportOrderDetail_.orderDetail.actualAffectRows = std::stol(orderDetailNode["ActualAffectRows"].asString()); - if(!orderDetailNode["Logic"].isNull()) - dataExportOrderDetail_.orderDetail.logic = orderDetailNode["Logic"].asString() == "true"; - if(!orderDetailNode["EnvType"].isNull()) - dataExportOrderDetail_.orderDetail.envType = orderDetailNode["EnvType"].asString(); auto keyInfoNode = dataExportOrderDetailNode["KeyInfo"]; - if(!keyInfoNode["JobStatus"].isNull()) - dataExportOrderDetail_.keyInfo.jobStatus = keyInfoNode["JobStatus"].asString(); if(!keyInfoNode["PreCheckId"].isNull()) dataExportOrderDetail_.keyInfo.preCheckId = std::stol(keyInfoNode["PreCheckId"].asString()); + if(!keyInfoNode["JobStatus"].isNull()) + dataExportOrderDetail_.keyInfo.jobStatus = keyInfoNode["JobStatus"].asString(); + auto orderDetailNode = dataExportOrderDetailNode["OrderDetail"]; + if(!orderDetailNode["DbId"].isNull()) + dataExportOrderDetail_.orderDetail.dbId = std::stoi(orderDetailNode["DbId"].asString()); + if(!orderDetailNode["Database"].isNull()) + dataExportOrderDetail_.orderDetail.database = orderDetailNode["Database"].asString(); + if(!orderDetailNode["Classify"].isNull()) + dataExportOrderDetail_.orderDetail.classify = orderDetailNode["Classify"].asString(); + if(!orderDetailNode["ExeSQL"].isNull()) + dataExportOrderDetail_.orderDetail.exeSQL = orderDetailNode["ExeSQL"].asString(); + if(!orderDetailNode["Logic"].isNull()) + dataExportOrderDetail_.orderDetail.logic = orderDetailNode["Logic"].asString() == "true"; + if(!orderDetailNode["ActualAffectRows"].isNull()) + dataExportOrderDetail_.orderDetail.actualAffectRows = std::stol(orderDetailNode["ActualAffectRows"].asString()); + if(!orderDetailNode["IgnoreAffectRows"].isNull()) + dataExportOrderDetail_.orderDetail.ignoreAffectRows = orderDetailNode["IgnoreAffectRows"].asString() == "true"; + if(!orderDetailNode["IgnoreAffectRowsReason"].isNull()) + dataExportOrderDetail_.orderDetail.ignoreAffectRowsReason = orderDetailNode["IgnoreAffectRowsReason"].asString(); + if(!orderDetailNode["EnvType"].isNull()) + dataExportOrderDetail_.orderDetail.envType = orderDetailNode["EnvType"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); if(!value["ErrorMessage"].isNull()) diff --git a/dms-enterprise/src/model/GetDatabaseRequest.cc b/dms-enterprise/src/model/GetDatabaseRequest.cc index 88c047e08..cbf1aeb27 100644 --- a/dms-enterprise/src/model/GetDatabaseRequest.cc +++ b/dms-enterprise/src/model/GetDatabaseRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::GetDatabaseRequest; - -GetDatabaseRequest::GetDatabaseRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDatabase") -{ - setMethod(HttpRequest::Method::Post); -} - -GetDatabaseRequest::~GetDatabaseRequest() -{} - -std::string GetDatabaseRequest::getSchemaName()const -{ - return schemaName_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetDatabaseRequest; + +GetDatabaseRequest::GetDatabaseRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDatabase") { + setMethod(HttpRequest::Method::Post); } -void GetDatabaseRequest::setSchemaName(const std::string& schemaName) -{ - schemaName_ = schemaName; - setParameter("SchemaName", schemaName); +GetDatabaseRequest::~GetDatabaseRequest() {} + +std::string GetDatabaseRequest::getSchemaName() const { + return schemaName_; } -long GetDatabaseRequest::getTid()const -{ - return tid_; +void GetDatabaseRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); } -void GetDatabaseRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetDatabaseRequest::getTid() const { + return tid_; } -std::string GetDatabaseRequest::getSid()const -{ - return sid_; +void GetDatabaseRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void GetDatabaseRequest::setSid(const std::string& sid) -{ - sid_ = sid; - setParameter("Sid", sid); +std::string GetDatabaseRequest::getSid() const { + return sid_; } -int GetDatabaseRequest::getPort()const -{ - return port_; +void GetDatabaseRequest::setSid(const std::string &sid) { + sid_ = sid; + setParameter(std::string("Sid"), sid); } -void GetDatabaseRequest::setPort(int port) -{ - port_ = port; - setParameter("Port", std::to_string(port)); +int GetDatabaseRequest::getPort() const { + return port_; } -std::string GetDatabaseRequest::getHost()const -{ - return host_; +void GetDatabaseRequest::setPort(int port) { + port_ = port; + setParameter(std::string("Port"), std::to_string(port)); } -void GetDatabaseRequest::setHost(const std::string& host) -{ - host_ = host; - setParameter("Host", host); +std::string GetDatabaseRequest::getHost() const { + return host_; +} + +void GetDatabaseRequest::setHost(const std::string &host) { + host_ = host; + setParameter(std::string("Host"), host); } diff --git a/dms-enterprise/src/model/GetDatabaseResult.cc b/dms-enterprise/src/model/GetDatabaseResult.cc index dca90bf88..f9d810eab 100644 --- a/dms-enterprise/src/model/GetDatabaseResult.cc +++ b/dms-enterprise/src/model/GetDatabaseResult.cc @@ -40,40 +40,40 @@ void GetDatabaseResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto databaseNode = value["Database"]; - if(!databaseNode["SearchName"].isNull()) - database_.searchName = databaseNode["SearchName"].asString(); + if(!databaseNode["DatabaseId"].isNull()) + database_.databaseId = databaseNode["DatabaseId"].asString(); + if(!databaseNode["Host"].isNull()) + database_.host = databaseNode["Host"].asString(); + if(!databaseNode["CatalogName"].isNull()) + database_.catalogName = databaseNode["CatalogName"].asString(); + if(!databaseNode["DbaName"].isNull()) + database_.dbaName = databaseNode["DbaName"].asString(); + if(!databaseNode["State"].isNull()) + database_.state = databaseNode["State"].asString(); + if(!databaseNode["DbaId"].isNull()) + database_.dbaId = databaseNode["DbaId"].asString(); + if(!databaseNode["SchemaName"].isNull()) + database_.schemaName = databaseNode["SchemaName"].asString(); if(!databaseNode["InstanceId"].isNull()) database_.instanceId = databaseNode["InstanceId"].asString(); if(!databaseNode["Port"].isNull()) database_.port = std::stoi(databaseNode["Port"].asString()); - if(!databaseNode["Encoding"].isNull()) - database_.encoding = databaseNode["Encoding"].asString(); - if(!databaseNode["Host"].isNull()) - database_.host = databaseNode["Host"].asString(); - if(!databaseNode["DatabaseId"].isNull()) - database_.databaseId = databaseNode["DatabaseId"].asString(); - if(!databaseNode["DbType"].isNull()) - database_.dbType = databaseNode["DbType"].asString(); if(!databaseNode["EnvType"].isNull()) database_.envType = databaseNode["EnvType"].asString(); if(!databaseNode["Sid"].isNull()) database_.sid = databaseNode["Sid"].asString(); - if(!databaseNode["DbaName"].isNull()) - database_.dbaName = databaseNode["DbaName"].asString(); - if(!databaseNode["DbaId"].isNull()) - database_.dbaId = databaseNode["DbaId"].asString(); - if(!databaseNode["State"].isNull()) - database_.state = databaseNode["State"].asString(); - if(!databaseNode["CatalogName"].isNull()) - database_.catalogName = databaseNode["CatalogName"].asString(); - if(!databaseNode["SchemaName"].isNull()) - database_.schemaName = databaseNode["SchemaName"].asString(); - auto allOwnerNameList = databaseNode["OwnerNameList"]["OwnerNames"]; - for (auto value : allOwnerNameList) - database_.ownerNameList.push_back(value.asString()); + if(!databaseNode["Encoding"].isNull()) + database_.encoding = databaseNode["Encoding"].asString(); + if(!databaseNode["DbType"].isNull()) + database_.dbType = databaseNode["DbType"].asString(); + if(!databaseNode["SearchName"].isNull()) + database_.searchName = databaseNode["SearchName"].asString(); auto allOwnerIdList = databaseNode["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) database_.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = databaseNode["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + database_.ownerNameList.push_back(value.asString()); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); if(!value["ErrorMessage"].isNull()) diff --git a/dms-enterprise/src/model/GetInstanceRequest.cc b/dms-enterprise/src/model/GetInstanceRequest.cc index fb8e595a4..7c6737a10 100644 --- a/dms-enterprise/src/model/GetInstanceRequest.cc +++ b/dms-enterprise/src/model/GetInstanceRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::GetInstanceRequest; - -GetInstanceRequest::GetInstanceRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -GetInstanceRequest::~GetInstanceRequest() -{} - -long GetInstanceRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetInstanceRequest; + +GetInstanceRequest::GetInstanceRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetInstance") { + setMethod(HttpRequest::Method::Post); } -void GetInstanceRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +GetInstanceRequest::~GetInstanceRequest() {} + +long GetInstanceRequest::getTid() const { + return tid_; } -std::string GetInstanceRequest::getSid()const -{ - return sid_; +void GetInstanceRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void GetInstanceRequest::setSid(const std::string& sid) -{ - sid_ = sid; - setParameter("Sid", sid); +std::string GetInstanceRequest::getSid() const { + return sid_; } -int GetInstanceRequest::getPort()const -{ - return port_; +void GetInstanceRequest::setSid(const std::string &sid) { + sid_ = sid; + setParameter(std::string("Sid"), sid); } -void GetInstanceRequest::setPort(int port) -{ - port_ = port; - setParameter("Port", std::to_string(port)); +int GetInstanceRequest::getPort() const { + return port_; } -std::string GetInstanceRequest::getHost()const -{ - return host_; +void GetInstanceRequest::setPort(int port) { + port_ = port; + setParameter(std::string("Port"), std::to_string(port)); } -void GetInstanceRequest::setHost(const std::string& host) -{ - host_ = host; - setParameter("Host", host); +std::string GetInstanceRequest::getHost() const { + return host_; +} + +void GetInstanceRequest::setHost(const std::string &host) { + host_ = host; + setParameter(std::string("Host"), host); } diff --git a/dms-enterprise/src/model/GetInstanceResult.cc b/dms-enterprise/src/model/GetInstanceResult.cc index e529a0d3d..ce339b9ae 100644 --- a/dms-enterprise/src/model/GetInstanceResult.cc +++ b/dms-enterprise/src/model/GetInstanceResult.cc @@ -40,56 +40,56 @@ void GetInstanceResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto instanceNode = value["Instance"]; - if(!instanceNode["InstanceSource"].isNull()) - instance_.instanceSource = instanceNode["InstanceSource"].asString(); - if(!instanceNode["InstanceId"].isNull()) - instance_.instanceId = instanceNode["InstanceId"].asString(); - if(!instanceNode["DatabasePassword"].isNull()) - instance_.databasePassword = instanceNode["DatabasePassword"].asString(); + if(!instanceNode["VpcId"].isNull()) + instance_.vpcId = instanceNode["VpcId"].asString(); + if(!instanceNode["DatabaseUser"].isNull()) + instance_.databaseUser = instanceNode["DatabaseUser"].asString(); + if(!instanceNode["DbaId"].isNull()) + instance_.dbaId = instanceNode["DbaId"].asString(); + if(!instanceNode["UseDsql"].isNull()) + instance_.useDsql = std::stoi(instanceNode["UseDsql"].asString()); if(!instanceNode["Port"].isNull()) instance_.port = std::stoi(instanceNode["Port"].asString()); - if(!instanceNode["Host"].isNull()) - instance_.host = instanceNode["Host"].asString(); - if(!instanceNode["ExportTimeout"].isNull()) - instance_.exportTimeout = std::stoi(instanceNode["ExportTimeout"].asString()); - if(!instanceNode["DdlOnline"].isNull()) - instance_.ddlOnline = std::stoi(instanceNode["DdlOnline"].asString()); + if(!instanceNode["EcsInstanceId"].isNull()) + instance_.ecsInstanceId = instanceNode["EcsInstanceId"].asString(); if(!instanceNode["EnvType"].isNull()) instance_.envType = instanceNode["EnvType"].asString(); if(!instanceNode["Sid"].isNull()) instance_.sid = instanceNode["Sid"].asString(); - if(!instanceNode["UseDsql"].isNull()) - instance_.useDsql = std::stoi(instanceNode["UseDsql"].asString()); - if(!instanceNode["EcsInstanceId"].isNull()) - instance_.ecsInstanceId = instanceNode["EcsInstanceId"].asString(); - if(!instanceNode["DbaId"].isNull()) - instance_.dbaId = instanceNode["DbaId"].asString(); - if(!instanceNode["VpcId"].isNull()) - instance_.vpcId = instanceNode["VpcId"].asString(); - if(!instanceNode["EcsRegion"].isNull()) - instance_.ecsRegion = instanceNode["EcsRegion"].asString(); - if(!instanceNode["InstanceAlias"].isNull()) - instance_.instanceAlias = instanceNode["InstanceAlias"].asString(); - if(!instanceNode["State"].isNull()) - instance_.state = instanceNode["State"].asString(); - if(!instanceNode["DatabaseUser"].isNull()) - instance_.databaseUser = instanceNode["DatabaseUser"].asString(); - if(!instanceNode["InstanceType"].isNull()) - instance_.instanceType = instanceNode["InstanceType"].asString(); - if(!instanceNode["DbaNickName"].isNull()) - instance_.dbaNickName = instanceNode["DbaNickName"].asString(); - if(!instanceNode["DataLinkName"].isNull()) - instance_.dataLinkName = instanceNode["DataLinkName"].asString(); - if(!instanceNode["QueryTimeout"].isNull()) - instance_.queryTimeout = std::stoi(instanceNode["QueryTimeout"].asString()); if(!instanceNode["SafeRuleId"].isNull()) instance_.safeRuleId = instanceNode["SafeRuleId"].asString(); - auto allOwnerNameList = instanceNode["OwnerNameList"]["OwnerNames"]; - for (auto value : allOwnerNameList) - instance_.ownerNameList.push_back(value.asString()); + if(!instanceNode["DbaNickName"].isNull()) + instance_.dbaNickName = instanceNode["DbaNickName"].asString(); + if(!instanceNode["QueryTimeout"].isNull()) + instance_.queryTimeout = std::stoi(instanceNode["QueryTimeout"].asString()); + if(!instanceNode["InstanceSource"].isNull()) + instance_.instanceSource = instanceNode["InstanceSource"].asString(); + if(!instanceNode["Host"].isNull()) + instance_.host = instanceNode["Host"].asString(); + if(!instanceNode["State"].isNull()) + instance_.state = instanceNode["State"].asString(); + if(!instanceNode["DataLinkName"].isNull()) + instance_.dataLinkName = instanceNode["DataLinkName"].asString(); + if(!instanceNode["ExportTimeout"].isNull()) + instance_.exportTimeout = std::stoi(instanceNode["ExportTimeout"].asString()); + if(!instanceNode["InstanceId"].isNull()) + instance_.instanceId = instanceNode["InstanceId"].asString(); + if(!instanceNode["InstanceType"].isNull()) + instance_.instanceType = instanceNode["InstanceType"].asString(); + if(!instanceNode["DatabasePassword"].isNull()) + instance_.databasePassword = instanceNode["DatabasePassword"].asString(); + if(!instanceNode["InstanceAlias"].isNull()) + instance_.instanceAlias = instanceNode["InstanceAlias"].asString(); + if(!instanceNode["DdlOnline"].isNull()) + instance_.ddlOnline = std::stoi(instanceNode["DdlOnline"].asString()); + if(!instanceNode["EcsRegion"].isNull()) + instance_.ecsRegion = instanceNode["EcsRegion"].asString(); auto allOwnerIdList = instanceNode["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) instance_.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = instanceNode["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + instance_.ownerNameList.push_back(value.asString()); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); if(!value["ErrorMessage"].isNull()) diff --git a/dms-enterprise/src/model/GetLogicDatabaseRequest.cc b/dms-enterprise/src/model/GetLogicDatabaseRequest.cc index 95859d982..5c403193d 100644 --- a/dms-enterprise/src/model/GetLogicDatabaseRequest.cc +++ b/dms-enterprise/src/model/GetLogicDatabaseRequest.cc @@ -1,51 +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::GetLogicDatabaseRequest; - -GetLogicDatabaseRequest::GetLogicDatabaseRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetLogicDatabase") -{ - setMethod(HttpRequest::Method::Post); -} - -GetLogicDatabaseRequest::~GetLogicDatabaseRequest() -{} - -std::string GetLogicDatabaseRequest::getDbId()const -{ - return dbId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetLogicDatabaseRequest; + +GetLogicDatabaseRequest::GetLogicDatabaseRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetLogicDatabase") { + setMethod(HttpRequest::Method::Post); } -void GetLogicDatabaseRequest::setDbId(const std::string& dbId) -{ - dbId_ = dbId; - setParameter("DbId", dbId); +GetLogicDatabaseRequest::~GetLogicDatabaseRequest() {} + +std::string GetLogicDatabaseRequest::getDbId() const { + return dbId_; } -long GetLogicDatabaseRequest::getTid()const -{ - return tid_; +void GetLogicDatabaseRequest::setDbId(const std::string &dbId) { + dbId_ = dbId; + setParameter(std::string("DbId"), dbId); } -void GetLogicDatabaseRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetLogicDatabaseRequest::getTid() const { + return tid_; +} + +void GetLogicDatabaseRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetLogicDatabaseResult.cc b/dms-enterprise/src/model/GetLogicDatabaseResult.cc index 9f5de7ad6..197991b00 100644 --- a/dms-enterprise/src/model/GetLogicDatabaseResult.cc +++ b/dms-enterprise/src/model/GetLogicDatabaseResult.cc @@ -40,24 +40,24 @@ void GetLogicDatabaseResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto logicDatabaseNode = value["LogicDatabase"]; - if(!logicDatabaseNode["SearchName"].isNull()) - logicDatabase_.searchName = logicDatabaseNode["SearchName"].asString(); if(!logicDatabaseNode["DatabaseId"].isNull()) logicDatabase_.databaseId = logicDatabaseNode["DatabaseId"].asString(); - if(!logicDatabaseNode["Logic"].isNull()) - logicDatabase_.logic = logicDatabaseNode["Logic"].asString() == "true"; - if(!logicDatabaseNode["EnvType"].isNull()) - logicDatabase_.envType = logicDatabaseNode["EnvType"].asString(); - if(!logicDatabaseNode["SchemaName"].isNull()) - logicDatabase_.schemaName = logicDatabaseNode["SchemaName"].asString(); if(!logicDatabaseNode["DbType"].isNull()) logicDatabase_.dbType = logicDatabaseNode["DbType"].asString(); - auto allOwnerNameList = logicDatabaseNode["OwnerNameList"]["OwnerNames"]; - for (auto value : allOwnerNameList) - logicDatabase_.ownerNameList.push_back(value.asString()); + if(!logicDatabaseNode["Logic"].isNull()) + logicDatabase_.logic = logicDatabaseNode["Logic"].asString() == "true"; + if(!logicDatabaseNode["SchemaName"].isNull()) + logicDatabase_.schemaName = logicDatabaseNode["SchemaName"].asString(); + if(!logicDatabaseNode["SearchName"].isNull()) + logicDatabase_.searchName = logicDatabaseNode["SearchName"].asString(); + if(!logicDatabaseNode["EnvType"].isNull()) + logicDatabase_.envType = logicDatabaseNode["EnvType"].asString(); auto allOwnerIdList = logicDatabaseNode["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) logicDatabase_.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = logicDatabaseNode["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + logicDatabase_.ownerNameList.push_back(value.asString()); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); if(!value["ErrorMessage"].isNull()) diff --git a/dms-enterprise/src/model/GetMetaTableColumnRequest.cc b/dms-enterprise/src/model/GetMetaTableColumnRequest.cc index 6d3f2155d..9e2932341 100644 --- a/dms-enterprise/src/model/GetMetaTableColumnRequest.cc +++ b/dms-enterprise/src/model/GetMetaTableColumnRequest.cc @@ -1,51 +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::GetMetaTableColumnRequest; - -GetMetaTableColumnRequest::GetMetaTableColumnRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetMetaTableColumn") -{ - setMethod(HttpRequest::Method::Post); -} - -GetMetaTableColumnRequest::~GetMetaTableColumnRequest() -{} - -std::string GetMetaTableColumnRequest::getTableGuid()const -{ - return tableGuid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetMetaTableColumnRequest; + +GetMetaTableColumnRequest::GetMetaTableColumnRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetMetaTableColumn") { + setMethod(HttpRequest::Method::Post); } -void GetMetaTableColumnRequest::setTableGuid(const std::string& tableGuid) -{ - tableGuid_ = tableGuid; - setParameter("TableGuid", tableGuid); +GetMetaTableColumnRequest::~GetMetaTableColumnRequest() {} + +std::string GetMetaTableColumnRequest::getTableGuid() const { + return tableGuid_; } -long GetMetaTableColumnRequest::getTid()const -{ - return tid_; +void GetMetaTableColumnRequest::setTableGuid(const std::string &tableGuid) { + tableGuid_ = tableGuid; + setParameter(std::string("TableGuid"), tableGuid); } -void GetMetaTableColumnRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetMetaTableColumnRequest::getTid() const { + return tid_; +} + +void GetMetaTableColumnRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetMetaTableColumnResult.cc b/dms-enterprise/src/model/GetMetaTableColumnResult.cc index 441e63fc2..a820d5f9b 100644 --- a/dms-enterprise/src/model/GetMetaTableColumnResult.cc +++ b/dms-enterprise/src/model/GetMetaTableColumnResult.cc @@ -43,30 +43,30 @@ void GetMetaTableColumnResult::parse(const std::string &payload) for (auto valueColumnListColumn : allColumnListNode) { Column columnListObject; + if(!valueColumnListColumn["ColumnType"].isNull()) + columnListObject.columnType = valueColumnListColumn["ColumnType"].asString(); + if(!valueColumnListColumn["AutoIncrement"].isNull()) + columnListObject.autoIncrement = valueColumnListColumn["AutoIncrement"].asString() == "true"; if(!valueColumnListColumn["ColumnId"].isNull()) columnListObject.columnId = valueColumnListColumn["ColumnId"].asString(); if(!valueColumnListColumn["ColumnName"].isNull()) columnListObject.columnName = valueColumnListColumn["ColumnName"].asString(); - if(!valueColumnListColumn["Description"].isNull()) - columnListObject.description = valueColumnListColumn["Description"].asString(); - if(!valueColumnListColumn["ColumnType"].isNull()) - columnListObject.columnType = valueColumnListColumn["ColumnType"].asString(); - if(!valueColumnListColumn["Position"].isNull()) - columnListObject.position = std::stoi(valueColumnListColumn["Position"].asString()); - if(!valueColumnListColumn["AutoIncrement"].isNull()) - columnListObject.autoIncrement = valueColumnListColumn["AutoIncrement"].asString() == "true"; if(!valueColumnListColumn["SecurityLevel"].isNull()) columnListObject.securityLevel = valueColumnListColumn["SecurityLevel"].asString(); - if(!valueColumnListColumn["DataLength"].isNull()) - columnListObject.dataLength = std::stol(valueColumnListColumn["DataLength"].asString()); - if(!valueColumnListColumn["DataScale"].isNull()) - columnListObject.dataScale = std::stoi(valueColumnListColumn["DataScale"].asString()); - if(!valueColumnListColumn["DataPrecision"].isNull()) - columnListObject.dataPrecision = std::stoi(valueColumnListColumn["DataPrecision"].asString()); if(!valueColumnListColumn["PrimaryKey"].isNull()) columnListObject.primaryKey = valueColumnListColumn["PrimaryKey"].asString(); + if(!valueColumnListColumn["Description"].isNull()) + columnListObject.description = valueColumnListColumn["Description"].asString(); + if(!valueColumnListColumn["DataPrecision"].isNull()) + columnListObject.dataPrecision = std::stoi(valueColumnListColumn["DataPrecision"].asString()); + if(!valueColumnListColumn["DataScale"].isNull()) + columnListObject.dataScale = std::stoi(valueColumnListColumn["DataScale"].asString()); + if(!valueColumnListColumn["Position"].isNull()) + columnListObject.position = std::stoi(valueColumnListColumn["Position"].asString()); if(!valueColumnListColumn["Nullable"].isNull()) columnListObject.nullable = valueColumnListColumn["Nullable"].asString() == "true"; + if(!valueColumnListColumn["DataLength"].isNull()) + columnListObject.dataLength = std::stol(valueColumnListColumn["DataLength"].asString()); columnList_.push_back(columnListObject); } if(!value["ErrorCode"].isNull()) diff --git a/dms-enterprise/src/model/GetMetaTableDetailInfoRequest.cc b/dms-enterprise/src/model/GetMetaTableDetailInfoRequest.cc index 49fb3ab1b..bc10b5e47 100644 --- a/dms-enterprise/src/model/GetMetaTableDetailInfoRequest.cc +++ b/dms-enterprise/src/model/GetMetaTableDetailInfoRequest.cc @@ -1,51 +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::GetMetaTableDetailInfoRequest; - -GetMetaTableDetailInfoRequest::GetMetaTableDetailInfoRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetMetaTableDetailInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -GetMetaTableDetailInfoRequest::~GetMetaTableDetailInfoRequest() -{} - -std::string GetMetaTableDetailInfoRequest::getTableGuid()const -{ - return tableGuid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetMetaTableDetailInfoRequest; + +GetMetaTableDetailInfoRequest::GetMetaTableDetailInfoRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetMetaTableDetailInfo") { + setMethod(HttpRequest::Method::Post); } -void GetMetaTableDetailInfoRequest::setTableGuid(const std::string& tableGuid) -{ - tableGuid_ = tableGuid; - setParameter("TableGuid", tableGuid); +GetMetaTableDetailInfoRequest::~GetMetaTableDetailInfoRequest() {} + +std::string GetMetaTableDetailInfoRequest::getTableGuid() const { + return tableGuid_; } -long GetMetaTableDetailInfoRequest::getTid()const -{ - return tid_; +void GetMetaTableDetailInfoRequest::setTableGuid(const std::string &tableGuid) { + tableGuid_ = tableGuid; + setParameter(std::string("TableGuid"), tableGuid); } -void GetMetaTableDetailInfoRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetMetaTableDetailInfoRequest::getTid() const { + return tid_; +} + +void GetMetaTableDetailInfoRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetMetaTableDetailInfoResult.cc b/dms-enterprise/src/model/GetMetaTableDetailInfoResult.cc index 9d62b0b35..676cb4297 100644 --- a/dms-enterprise/src/model/GetMetaTableDetailInfoResult.cc +++ b/dms-enterprise/src/model/GetMetaTableDetailInfoResult.cc @@ -40,49 +40,49 @@ void GetMetaTableDetailInfoResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto detailInfoNode = value["DetailInfo"]; - auto allColumnListNode = detailInfoNode["ColumnList"]["Column"]; - for (auto detailInfoNodeColumnListColumn : allColumnListNode) - { - DetailInfo::Column columnObject; - if(!detailInfoNodeColumnListColumn["ColumnId"].isNull()) - columnObject.columnId = detailInfoNodeColumnListColumn["ColumnId"].asString(); - if(!detailInfoNodeColumnListColumn["ColumnName"].isNull()) - columnObject.columnName = detailInfoNodeColumnListColumn["ColumnName"].asString(); - if(!detailInfoNodeColumnListColumn["ColumnType"].isNull()) - columnObject.columnType = detailInfoNodeColumnListColumn["ColumnType"].asString(); - if(!detailInfoNodeColumnListColumn["Description"].isNull()) - columnObject.description = detailInfoNodeColumnListColumn["Description"].asString(); - if(!detailInfoNodeColumnListColumn["Position"].isNull()) - columnObject.position = detailInfoNodeColumnListColumn["Position"].asString(); - if(!detailInfoNodeColumnListColumn["AutoIncrement"].isNull()) - columnObject.autoIncrement = detailInfoNodeColumnListColumn["AutoIncrement"].asString() == "true"; - if(!detailInfoNodeColumnListColumn["DataLength"].isNull()) - columnObject.dataLength = std::stol(detailInfoNodeColumnListColumn["DataLength"].asString()); - if(!detailInfoNodeColumnListColumn["DataScale"].isNull()) - columnObject.dataScale = std::stoi(detailInfoNodeColumnListColumn["DataScale"].asString()); - if(!detailInfoNodeColumnListColumn["DataPrecision"].isNull()) - columnObject.dataPrecision = std::stoi(detailInfoNodeColumnListColumn["DataPrecision"].asString()); - if(!detailInfoNodeColumnListColumn["Nullable"].isNull()) - columnObject.nullable = detailInfoNodeColumnListColumn["Nullable"].asString() == "true"; - detailInfo_.columnList.push_back(columnObject); - } auto allIndexListNode = detailInfoNode["IndexList"]["Index"]; for (auto detailInfoNodeIndexListIndex : allIndexListNode) { DetailInfo::Index indexObject; if(!detailInfoNodeIndexListIndex["IndexName"].isNull()) indexObject.indexName = detailInfoNodeIndexListIndex["IndexName"].asString(); - if(!detailInfoNodeIndexListIndex["IndexId"].isNull()) - indexObject.indexId = detailInfoNodeIndexListIndex["IndexId"].asString(); if(!detailInfoNodeIndexListIndex["Unique"].isNull()) indexObject.unique = detailInfoNodeIndexListIndex["Unique"].asString() == "true"; if(!detailInfoNodeIndexListIndex["IndexType"].isNull()) indexObject.indexType = detailInfoNodeIndexListIndex["IndexType"].asString(); + if(!detailInfoNodeIndexListIndex["IndexId"].isNull()) + indexObject.indexId = detailInfoNodeIndexListIndex["IndexId"].asString(); auto allIndexColumns = value["IndexColumns"]["ColumnNames"]; for (auto value : allIndexColumns) indexObject.indexColumns.push_back(value.asString()); detailInfo_.indexList.push_back(indexObject); } + auto allColumnListNode = detailInfoNode["ColumnList"]["Column"]; + for (auto detailInfoNodeColumnListColumn : allColumnListNode) + { + DetailInfo::Column columnObject; + if(!detailInfoNodeColumnListColumn["ColumnName"].isNull()) + columnObject.columnName = detailInfoNodeColumnListColumn["ColumnName"].asString(); + if(!detailInfoNodeColumnListColumn["Description"].isNull()) + columnObject.description = detailInfoNodeColumnListColumn["Description"].asString(); + if(!detailInfoNodeColumnListColumn["DataScale"].isNull()) + columnObject.dataScale = std::stoi(detailInfoNodeColumnListColumn["DataScale"].asString()); + if(!detailInfoNodeColumnListColumn["DataPrecision"].isNull()) + columnObject.dataPrecision = std::stoi(detailInfoNodeColumnListColumn["DataPrecision"].asString()); + if(!detailInfoNodeColumnListColumn["ColumnType"].isNull()) + columnObject.columnType = detailInfoNodeColumnListColumn["ColumnType"].asString(); + if(!detailInfoNodeColumnListColumn["AutoIncrement"].isNull()) + columnObject.autoIncrement = detailInfoNodeColumnListColumn["AutoIncrement"].asString() == "true"; + if(!detailInfoNodeColumnListColumn["Position"].isNull()) + columnObject.position = detailInfoNodeColumnListColumn["Position"].asString(); + if(!detailInfoNodeColumnListColumn["Nullable"].isNull()) + columnObject.nullable = detailInfoNodeColumnListColumn["Nullable"].asString() == "true"; + if(!detailInfoNodeColumnListColumn["ColumnId"].isNull()) + columnObject.columnId = detailInfoNodeColumnListColumn["ColumnId"].asString(); + if(!detailInfoNodeColumnListColumn["DataLength"].isNull()) + columnObject.dataLength = std::stol(detailInfoNodeColumnListColumn["DataLength"].asString()); + detailInfo_.columnList.push_back(columnObject); + } if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); if(!value["ErrorMessage"].isNull()) diff --git a/dms-enterprise/src/model/GetOpLogRequest.cc b/dms-enterprise/src/model/GetOpLogRequest.cc index 174591b4a..854f557ce 100644 --- a/dms-enterprise/src/model/GetOpLogRequest.cc +++ b/dms-enterprise/src/model/GetOpLogRequest.cc @@ -1,95 +1,81 @@ /* * 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::GetOpLogRequest; - -GetOpLogRequest::GetOpLogRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetOpLog") -{ - setMethod(HttpRequest::Method::Post); -} - -GetOpLogRequest::~GetOpLogRequest() -{} - -std::string GetOpLogRequest::getModule()const -{ - return module_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetOpLogRequest; + +GetOpLogRequest::GetOpLogRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetOpLog") { + setMethod(HttpRequest::Method::Post); } -void GetOpLogRequest::setModule(const std::string& module) -{ - module_ = module; - setParameter("Module", module); +GetOpLogRequest::~GetOpLogRequest() {} + +std::string GetOpLogRequest::getModule() const { + return module_; } -std::string GetOpLogRequest::getEndTime()const -{ - return endTime_; +void GetOpLogRequest::setModule(const std::string &module) { + module_ = module; + setParameter(std::string("Module"), module); } -void GetOpLogRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string GetOpLogRequest::getEndTime() const { + return endTime_; } -std::string GetOpLogRequest::getStartTime()const -{ - return startTime_; +void GetOpLogRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void GetOpLogRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string GetOpLogRequest::getStartTime() const { + return startTime_; } -long GetOpLogRequest::getTid()const -{ - return tid_; +void GetOpLogRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void GetOpLogRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetOpLogRequest::getTid() const { + return tid_; } -int GetOpLogRequest::getPageNumber()const -{ - return pageNumber_; +void GetOpLogRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void GetOpLogRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int GetOpLogRequest::getPageNumber() const { + return pageNumber_; } -int GetOpLogRequest::getPageSize()const -{ - return pageSize_; +void GetOpLogRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void GetOpLogRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int GetOpLogRequest::getPageSize() const { + return pageSize_; +} + +void GetOpLogRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/dms-enterprise/src/model/GetOpLogResult.cc b/dms-enterprise/src/model/GetOpLogResult.cc index 58e50b9b9..abb6a0441 100644 --- a/dms-enterprise/src/model/GetOpLogResult.cc +++ b/dms-enterprise/src/model/GetOpLogResult.cc @@ -43,18 +43,18 @@ void GetOpLogResult::parse(const std::string &payload) for (auto valueOpLogDetailsOpLogDetail : allOpLogDetailsNode) { OpLogDetail opLogDetailsObject; - if(!valueOpLogDetailsOpLogDetail["UserId"].isNull()) - opLogDetailsObject.userId = std::stol(valueOpLogDetailsOpLogDetail["UserId"].asString()); + if(!valueOpLogDetailsOpLogDetail["Module"].isNull()) + opLogDetailsObject.module = valueOpLogDetailsOpLogDetail["Module"].asString(); if(!valueOpLogDetailsOpLogDetail["Database"].isNull()) opLogDetailsObject.database = valueOpLogDetailsOpLogDetail["Database"].asString(); + if(!valueOpLogDetailsOpLogDetail["UserId"].isNull()) + opLogDetailsObject.userId = std::stol(valueOpLogDetailsOpLogDetail["UserId"].asString()); if(!valueOpLogDetailsOpLogDetail["OpContent"].isNull()) opLogDetailsObject.opContent = valueOpLogDetailsOpLogDetail["OpContent"].asString(); if(!valueOpLogDetailsOpLogDetail["UserNick"].isNull()) opLogDetailsObject.userNick = valueOpLogDetailsOpLogDetail["UserNick"].asString(); if(!valueOpLogDetailsOpLogDetail["OrderId"].isNull()) opLogDetailsObject.orderId = std::stol(valueOpLogDetailsOpLogDetail["OrderId"].asString()); - if(!valueOpLogDetailsOpLogDetail["Module"].isNull()) - opLogDetailsObject.module = valueOpLogDetailsOpLogDetail["Module"].asString(); if(!valueOpLogDetailsOpLogDetail["OpTime"].isNull()) opLogDetailsObject.opTime = valueOpLogDetailsOpLogDetail["OpTime"].asString(); opLogDetails_.push_back(opLogDetailsObject); diff --git a/dms-enterprise/src/model/GetOrderBaseInfoRequest.cc b/dms-enterprise/src/model/GetOrderBaseInfoRequest.cc index 6149c9635..51226f5fe 100644 --- a/dms-enterprise/src/model/GetOrderBaseInfoRequest.cc +++ b/dms-enterprise/src/model/GetOrderBaseInfoRequest.cc @@ -1,51 +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::GetOrderBaseInfoRequest; - -GetOrderBaseInfoRequest::GetOrderBaseInfoRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetOrderBaseInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -GetOrderBaseInfoRequest::~GetOrderBaseInfoRequest() -{} - -long GetOrderBaseInfoRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetOrderBaseInfoRequest; + +GetOrderBaseInfoRequest::GetOrderBaseInfoRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetOrderBaseInfo") { + setMethod(HttpRequest::Method::Post); } -void GetOrderBaseInfoRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +GetOrderBaseInfoRequest::~GetOrderBaseInfoRequest() {} + +long GetOrderBaseInfoRequest::getOrderId() const { + return orderId_; } -long GetOrderBaseInfoRequest::getTid()const -{ - return tid_; +void GetOrderBaseInfoRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void GetOrderBaseInfoRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetOrderBaseInfoRequest::getTid() const { + return tid_; +} + +void GetOrderBaseInfoRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetOrderBaseInfoResult.cc b/dms-enterprise/src/model/GetOrderBaseInfoResult.cc index 5e3868405..65435acf4 100644 --- a/dms-enterprise/src/model/GetOrderBaseInfoResult.cc +++ b/dms-enterprise/src/model/GetOrderBaseInfoResult.cc @@ -40,34 +40,34 @@ void GetOrderBaseInfoResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto orderBaseInfoNode = value["OrderBaseInfo"]; - if(!orderBaseInfoNode["StatusDesc"].isNull()) - orderBaseInfo_.statusDesc = orderBaseInfoNode["StatusDesc"].asString(); - if(!orderBaseInfoNode["WorkflowStatusDesc"].isNull()) - orderBaseInfo_.workflowStatusDesc = orderBaseInfoNode["WorkflowStatusDesc"].asString(); if(!orderBaseInfoNode["Comment"].isNull()) orderBaseInfo_.comment = orderBaseInfoNode["Comment"].asString(); if(!orderBaseInfoNode["CreateTime"].isNull()) orderBaseInfo_.createTime = orderBaseInfoNode["CreateTime"].asString(); - if(!orderBaseInfoNode["WorkflowInstanceId"].isNull()) - orderBaseInfo_.workflowInstanceId = std::stol(orderBaseInfoNode["WorkflowInstanceId"].asString()); if(!orderBaseInfoNode["Committer"].isNull()) orderBaseInfo_.committer = orderBaseInfoNode["Committer"].asString(); - if(!orderBaseInfoNode["OrderId"].isNull()) - orderBaseInfo_.orderId = std::stol(orderBaseInfoNode["OrderId"].asString()); - if(!orderBaseInfoNode["LastModifyTime"].isNull()) - orderBaseInfo_.lastModifyTime = orderBaseInfoNode["LastModifyTime"].asString(); - if(!orderBaseInfoNode["PluginType"].isNull()) - orderBaseInfo_.pluginType = orderBaseInfoNode["PluginType"].asString(); - if(!orderBaseInfoNode["StatusCode"].isNull()) - orderBaseInfo_.statusCode = orderBaseInfoNode["StatusCode"].asString(); + if(!orderBaseInfoNode["WorkflowInstanceId"].isNull()) + orderBaseInfo_.workflowInstanceId = std::stol(orderBaseInfoNode["WorkflowInstanceId"].asString()); if(!orderBaseInfoNode["CommitterId"].isNull()) orderBaseInfo_.committerId = std::stol(orderBaseInfoNode["CommitterId"].asString()); - auto allRelatedUserList = orderBaseInfoNode["RelatedUserList"]["UserIds"]; - for (auto value : allRelatedUserList) - orderBaseInfo_.relatedUserList.push_back(value.asString()); + if(!orderBaseInfoNode["LastModifyTime"].isNull()) + orderBaseInfo_.lastModifyTime = orderBaseInfoNode["LastModifyTime"].asString(); + if(!orderBaseInfoNode["StatusCode"].isNull()) + orderBaseInfo_.statusCode = orderBaseInfoNode["StatusCode"].asString(); + if(!orderBaseInfoNode["WorkflowStatusDesc"].isNull()) + orderBaseInfo_.workflowStatusDesc = orderBaseInfoNode["WorkflowStatusDesc"].asString(); + if(!orderBaseInfoNode["StatusDesc"].isNull()) + orderBaseInfo_.statusDesc = orderBaseInfoNode["StatusDesc"].asString(); + if(!orderBaseInfoNode["PluginType"].isNull()) + orderBaseInfo_.pluginType = orderBaseInfoNode["PluginType"].asString(); + if(!orderBaseInfoNode["OrderId"].isNull()) + orderBaseInfo_.orderId = std::stol(orderBaseInfoNode["OrderId"].asString()); auto allRelatedUserNickList = orderBaseInfoNode["RelatedUserNickList"]["UserNicks"]; for (auto value : allRelatedUserNickList) orderBaseInfo_.relatedUserNickList.push_back(value.asString()); + auto allRelatedUserList = orderBaseInfoNode["RelatedUserList"]["UserIds"]; + for (auto value : allRelatedUserList) + orderBaseInfo_.relatedUserList.push_back(value.asString()); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); if(!value["ErrorMessage"].isNull()) diff --git a/dms-enterprise/src/model/GetOwnerApplyOrderDetailRequest.cc b/dms-enterprise/src/model/GetOwnerApplyOrderDetailRequest.cc index 0430763d1..cdcfcb9bc 100644 --- a/dms-enterprise/src/model/GetOwnerApplyOrderDetailRequest.cc +++ b/dms-enterprise/src/model/GetOwnerApplyOrderDetailRequest.cc @@ -1,51 +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::GetOwnerApplyOrderDetailRequest; - -GetOwnerApplyOrderDetailRequest::GetOwnerApplyOrderDetailRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetOwnerApplyOrderDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -GetOwnerApplyOrderDetailRequest::~GetOwnerApplyOrderDetailRequest() -{} - -long GetOwnerApplyOrderDetailRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetOwnerApplyOrderDetailRequest; + +GetOwnerApplyOrderDetailRequest::GetOwnerApplyOrderDetailRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetOwnerApplyOrderDetail") { + setMethod(HttpRequest::Method::Post); } -void GetOwnerApplyOrderDetailRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +GetOwnerApplyOrderDetailRequest::~GetOwnerApplyOrderDetailRequest() {} + +long GetOwnerApplyOrderDetailRequest::getOrderId() const { + return orderId_; } -long GetOwnerApplyOrderDetailRequest::getTid()const -{ - return tid_; +void GetOwnerApplyOrderDetailRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void GetOwnerApplyOrderDetailRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetOwnerApplyOrderDetailRequest::getTid() const { + return tid_; +} + +void GetOwnerApplyOrderDetailRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetOwnerApplyOrderDetailResult.cc b/dms-enterprise/src/model/GetOwnerApplyOrderDetailResult.cc index 632036b3a..74d03f401 100644 --- a/dms-enterprise/src/model/GetOwnerApplyOrderDetailResult.cc +++ b/dms-enterprise/src/model/GetOwnerApplyOrderDetailResult.cc @@ -51,28 +51,28 @@ void GetOwnerApplyOrderDetailResult::parse(const std::string &payload) if(!ownerApplyOrderDetailNodeResourcesResource["TargetId"].isNull()) resourceObject.targetId = ownerApplyOrderDetailNodeResourcesResource["TargetId"].asString(); auto resourceDetailNode = value["ResourceDetail"]; - if(!resourceDetailNode["TableName"].isNull()) - resourceObject.resourceDetail.tableName = resourceDetailNode["TableName"].asString(); if(!resourceDetailNode["SearchName"].isNull()) resourceObject.resourceDetail.searchName = resourceDetailNode["SearchName"].asString(); - if(!resourceDetailNode["EnvType"].isNull()) - resourceObject.resourceDetail.envType = resourceDetailNode["EnvType"].asString(); if(!resourceDetailNode["DbType"].isNull()) resourceObject.resourceDetail.dbType = resourceDetailNode["DbType"].asString(); - auto allOwnerNickNames = resourceDetailNode["OwnerNickNames"]["OwnerNickName"]; - for (auto value : allOwnerNickNames) - resourceObject.resourceDetail.ownerNickNames.push_back(value.asString()); + if(!resourceDetailNode["EnvType"].isNull()) + resourceObject.resourceDetail.envType = resourceDetailNode["EnvType"].asString(); + if(!resourceDetailNode["TableName"].isNull()) + resourceObject.resourceDetail.tableName = resourceDetailNode["TableName"].asString(); auto allOwnerIds = resourceDetailNode["OwnerIds"]["OwnerId"]; for (auto value : allOwnerIds) resourceObject.resourceDetail.ownerIds.push_back(value.asString()); + auto allOwnerNickNames = resourceDetailNode["OwnerNickNames"]["OwnerNickName"]; + for (auto value : allOwnerNickNames) + resourceObject.resourceDetail.ownerNickNames.push_back(value.asString()); ownerApplyOrderDetail_.resources.push_back(resourceObject); } - 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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } diff --git a/dms-enterprise/src/model/GetPermApplyOrderDetailRequest.cc b/dms-enterprise/src/model/GetPermApplyOrderDetailRequest.cc index 576f25f9c..dcf144b83 100644 --- a/dms-enterprise/src/model/GetPermApplyOrderDetailRequest.cc +++ b/dms-enterprise/src/model/GetPermApplyOrderDetailRequest.cc @@ -1,51 +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::GetPermApplyOrderDetailRequest; - -GetPermApplyOrderDetailRequest::GetPermApplyOrderDetailRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetPermApplyOrderDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -GetPermApplyOrderDetailRequest::~GetPermApplyOrderDetailRequest() -{} - -long GetPermApplyOrderDetailRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetPermApplyOrderDetailRequest; + +GetPermApplyOrderDetailRequest::GetPermApplyOrderDetailRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetPermApplyOrderDetail") { + setMethod(HttpRequest::Method::Post); } -void GetPermApplyOrderDetailRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +GetPermApplyOrderDetailRequest::~GetPermApplyOrderDetailRequest() {} + +long GetPermApplyOrderDetailRequest::getOrderId() const { + return orderId_; } -long GetPermApplyOrderDetailRequest::getTid()const -{ - return tid_; +void GetPermApplyOrderDetailRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void GetPermApplyOrderDetailRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetPermApplyOrderDetailRequest::getTid() const { + return tid_; +} + +void GetPermApplyOrderDetailRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetPermApplyOrderDetailResult.cc b/dms-enterprise/src/model/GetPermApplyOrderDetailResult.cc index f88401831..97d108f05 100644 --- a/dms-enterprise/src/model/GetPermApplyOrderDetailResult.cc +++ b/dms-enterprise/src/model/GetPermApplyOrderDetailResult.cc @@ -40,72 +40,72 @@ void GetPermApplyOrderDetailResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto permApplyOrderDetailNode = value["PermApplyOrderDetail"]; - if(!permApplyOrderDetailNode["ApplyType"].isNull()) - permApplyOrderDetail_.applyType = permApplyOrderDetailNode["ApplyType"].asString(); if(!permApplyOrderDetailNode["PermType"].isNull()) permApplyOrderDetail_.permType = std::stol(permApplyOrderDetailNode["PermType"].asString()); if(!permApplyOrderDetailNode["Seconds"].isNull()) permApplyOrderDetail_.seconds = std::stol(permApplyOrderDetailNode["Seconds"].asString()); + if(!permApplyOrderDetailNode["ApplyType"].isNull()) + permApplyOrderDetail_.applyType = permApplyOrderDetailNode["ApplyType"].asString(); auto allResourcesNode = permApplyOrderDetailNode["Resources"]["Resource"]; for (auto permApplyOrderDetailNodeResourcesResource : allResourcesNode) { PermApplyOrderDetail::Resource resourceObject; auto databaseInfoNode = value["DatabaseInfo"]; - if(!databaseInfoNode["SearchName"].isNull()) - resourceObject.databaseInfo.searchName = databaseInfoNode["SearchName"].asString(); if(!databaseInfoNode["DbId"].isNull()) resourceObject.databaseInfo.dbId = std::stol(databaseInfoNode["DbId"].asString()); if(!databaseInfoNode["Logic"].isNull()) resourceObject.databaseInfo.logic = databaseInfoNode["Logic"].asString() == "true"; - if(!databaseInfoNode["EnvType"].isNull()) - resourceObject.databaseInfo.envType = databaseInfoNode["EnvType"].asString(); if(!databaseInfoNode["DbType"].isNull()) resourceObject.databaseInfo.dbType = databaseInfoNode["DbType"].asString(); - auto allOwnerNickNames = databaseInfoNode["OwnerNickNames"]["OwnerNickName"]; - for (auto value : allOwnerNickNames) - resourceObject.databaseInfo.ownerNickNames.push_back(value.asString()); + if(!databaseInfoNode["SearchName"].isNull()) + resourceObject.databaseInfo.searchName = databaseInfoNode["SearchName"].asString(); + if(!databaseInfoNode["EnvType"].isNull()) + resourceObject.databaseInfo.envType = databaseInfoNode["EnvType"].asString(); auto allOwnerIds = databaseInfoNode["OwnerIds"]["OwnerId"]; for (auto value : allOwnerIds) resourceObject.databaseInfo.ownerIds.push_back(value.asString()); - auto columnInfoNode = value["ColumnInfo"]; - if(!columnInfoNode["ColumnName"].isNull()) - resourceObject.columnInfo.columnName = columnInfoNode["ColumnName"].asString(); - if(!columnInfoNode["TableName"].isNull()) - resourceObject.columnInfo.tableName = columnInfoNode["TableName"].asString(); + auto allOwnerNickNames = databaseInfoNode["OwnerNickNames"]["OwnerNickName"]; + for (auto value : allOwnerNickNames) + resourceObject.databaseInfo.ownerNickNames.push_back(value.asString()); auto tableInfoNode = value["TableInfo"]; if(!tableInfoNode["TableName"].isNull()) resourceObject.tableInfo.tableName = tableInfoNode["TableName"].asString(); + auto columnInfoNode = value["ColumnInfo"]; + if(!columnInfoNode["TableName"].isNull()) + resourceObject.columnInfo.tableName = columnInfoNode["TableName"].asString(); + if(!columnInfoNode["ColumnName"].isNull()) + resourceObject.columnInfo.columnName = columnInfoNode["ColumnName"].asString(); auto instanceInfoNode = value["InstanceInfo"]; - if(!instanceInfoNode["DbaId"].isNull()) - resourceObject.instanceInfo.dbaId = std::stol(instanceInfoNode["DbaId"].asString()); - if(!instanceInfoNode["SearchName"].isNull()) - resourceObject.instanceInfo.searchName = instanceInfoNode["SearchName"].asString(); if(!instanceInfoNode["InstanceId"].isNull()) resourceObject.instanceInfo.instanceId = instanceInfoNode["InstanceId"].asString(); - if(!instanceInfoNode["Port"].isNull()) - resourceObject.instanceInfo.port = std::stol(instanceInfoNode["Port"].asString()); - if(!instanceInfoNode["Host"].isNull()) - resourceObject.instanceInfo.host = instanceInfoNode["Host"].asString(); - if(!instanceInfoNode["DbaNickName"].isNull()) - resourceObject.instanceInfo.dbaNickName = instanceInfoNode["DbaNickName"].asString(); - if(!instanceInfoNode["EnvType"].isNull()) - resourceObject.instanceInfo.envType = instanceInfoNode["EnvType"].asString(); + if(!instanceInfoNode["SearchName"].isNull()) + resourceObject.instanceInfo.searchName = instanceInfoNode["SearchName"].asString(); if(!instanceInfoNode["DbType"].isNull()) resourceObject.instanceInfo.dbType = instanceInfoNode["DbType"].asString(); - auto allOwnerNickName = instanceInfoNode["OwnerNickName"]["OwnerNickName"]; - for (auto value : allOwnerNickName) - resourceObject.instanceInfo.ownerNickName.push_back(value.asString()); + if(!instanceInfoNode["EnvType"].isNull()) + resourceObject.instanceInfo.envType = instanceInfoNode["EnvType"].asString(); + if(!instanceInfoNode["Host"].isNull()) + resourceObject.instanceInfo.host = instanceInfoNode["Host"].asString(); + if(!instanceInfoNode["Port"].isNull()) + resourceObject.instanceInfo.port = std::stol(instanceInfoNode["Port"].asString()); + if(!instanceInfoNode["DbaId"].isNull()) + resourceObject.instanceInfo.dbaId = std::stol(instanceInfoNode["DbaId"].asString()); + if(!instanceInfoNode["DbaNickName"].isNull()) + resourceObject.instanceInfo.dbaNickName = instanceInfoNode["DbaNickName"].asString(); auto allOwnerIds1 = instanceInfoNode["OwnerIds"]["OwnerId"]; for (auto value : allOwnerIds1) resourceObject.instanceInfo.ownerIds1.push_back(value.asString()); + auto allOwnerNickName = instanceInfoNode["OwnerNickName"]["OwnerNickName"]; + for (auto value : allOwnerNickName) + resourceObject.instanceInfo.ownerNickName.push_back(value.asString()); permApplyOrderDetail_.resources.push_back(resourceObject); } - 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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } diff --git a/dms-enterprise/src/model/GetPhysicalDatabaseRequest.cc b/dms-enterprise/src/model/GetPhysicalDatabaseRequest.cc index 571e95317..ddde177e9 100644 --- a/dms-enterprise/src/model/GetPhysicalDatabaseRequest.cc +++ b/dms-enterprise/src/model/GetPhysicalDatabaseRequest.cc @@ -1,51 +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::GetPhysicalDatabaseRequest; - -GetPhysicalDatabaseRequest::GetPhysicalDatabaseRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetPhysicalDatabase") -{ - setMethod(HttpRequest::Method::Post); -} - -GetPhysicalDatabaseRequest::~GetPhysicalDatabaseRequest() -{} - -long GetPhysicalDatabaseRequest::getDbId()const -{ - return dbId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetPhysicalDatabaseRequest; + +GetPhysicalDatabaseRequest::GetPhysicalDatabaseRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetPhysicalDatabase") { + setMethod(HttpRequest::Method::Post); } -void GetPhysicalDatabaseRequest::setDbId(long dbId) -{ - dbId_ = dbId; - setParameter("DbId", std::to_string(dbId)); +GetPhysicalDatabaseRequest::~GetPhysicalDatabaseRequest() {} + +long GetPhysicalDatabaseRequest::getDbId() const { + return dbId_; } -long GetPhysicalDatabaseRequest::getTid()const -{ - return tid_; +void GetPhysicalDatabaseRequest::setDbId(long dbId) { + dbId_ = dbId; + setParameter(std::string("DbId"), std::to_string(dbId)); } -void GetPhysicalDatabaseRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetPhysicalDatabaseRequest::getTid() const { + return tid_; +} + +void GetPhysicalDatabaseRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetPhysicalDatabaseResult.cc b/dms-enterprise/src/model/GetPhysicalDatabaseResult.cc index 4ed216e6f..0ae6ba439 100644 --- a/dms-enterprise/src/model/GetPhysicalDatabaseResult.cc +++ b/dms-enterprise/src/model/GetPhysicalDatabaseResult.cc @@ -40,40 +40,40 @@ void GetPhysicalDatabaseResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto databaseNode = value["Database"]; - if(!databaseNode["SearchName"].isNull()) - database_.searchName = databaseNode["SearchName"].asString(); + if(!databaseNode["DatabaseId"].isNull()) + database_.databaseId = databaseNode["DatabaseId"].asString(); + if(!databaseNode["Host"].isNull()) + database_.host = databaseNode["Host"].asString(); + if(!databaseNode["CatalogName"].isNull()) + database_.catalogName = databaseNode["CatalogName"].asString(); + if(!databaseNode["DbaName"].isNull()) + database_.dbaName = databaseNode["DbaName"].asString(); + if(!databaseNode["State"].isNull()) + database_.state = databaseNode["State"].asString(); + if(!databaseNode["DbaId"].isNull()) + database_.dbaId = databaseNode["DbaId"].asString(); + if(!databaseNode["SchemaName"].isNull()) + database_.schemaName = databaseNode["SchemaName"].asString(); if(!databaseNode["InstanceId"].isNull()) database_.instanceId = databaseNode["InstanceId"].asString(); if(!databaseNode["Port"].isNull()) database_.port = std::stoi(databaseNode["Port"].asString()); - if(!databaseNode["Encoding"].isNull()) - database_.encoding = databaseNode["Encoding"].asString(); - if(!databaseNode["Host"].isNull()) - database_.host = databaseNode["Host"].asString(); - if(!databaseNode["DatabaseId"].isNull()) - database_.databaseId = databaseNode["DatabaseId"].asString(); - if(!databaseNode["DbType"].isNull()) - database_.dbType = databaseNode["DbType"].asString(); if(!databaseNode["EnvType"].isNull()) database_.envType = databaseNode["EnvType"].asString(); if(!databaseNode["Sid"].isNull()) database_.sid = databaseNode["Sid"].asString(); - if(!databaseNode["DbaName"].isNull()) - database_.dbaName = databaseNode["DbaName"].asString(); - if(!databaseNode["DbaId"].isNull()) - database_.dbaId = databaseNode["DbaId"].asString(); - if(!databaseNode["State"].isNull()) - database_.state = databaseNode["State"].asString(); - if(!databaseNode["CatalogName"].isNull()) - database_.catalogName = databaseNode["CatalogName"].asString(); - if(!databaseNode["SchemaName"].isNull()) - database_.schemaName = databaseNode["SchemaName"].asString(); - auto allOwnerNameList = databaseNode["OwnerNameList"]["OwnerNames"]; - for (auto value : allOwnerNameList) - database_.ownerNameList.push_back(value.asString()); + if(!databaseNode["Encoding"].isNull()) + database_.encoding = databaseNode["Encoding"].asString(); + if(!databaseNode["DbType"].isNull()) + database_.dbType = databaseNode["DbType"].asString(); + if(!databaseNode["SearchName"].isNull()) + database_.searchName = databaseNode["SearchName"].asString(); auto allOwnerIdList = databaseNode["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) database_.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = databaseNode["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + database_.ownerNameList.push_back(value.asString()); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); if(!value["ErrorMessage"].isNull()) diff --git a/dms-enterprise/src/model/GetSQLReviewCheckResultStatusRequest.cc b/dms-enterprise/src/model/GetSQLReviewCheckResultStatusRequest.cc new file mode 100644 index 000000000..a050d586f --- /dev/null +++ b/dms-enterprise/src/model/GetSQLReviewCheckResultStatusRequest.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::GetSQLReviewCheckResultStatusRequest; + +GetSQLReviewCheckResultStatusRequest::GetSQLReviewCheckResultStatusRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetSQLReviewCheckResultStatus") { + setMethod(HttpRequest::Method::Post); +} + +GetSQLReviewCheckResultStatusRequest::~GetSQLReviewCheckResultStatusRequest() {} + +long GetSQLReviewCheckResultStatusRequest::getOrderId() const { + return orderId_; +} + +void GetSQLReviewCheckResultStatusRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); +} + +long GetSQLReviewCheckResultStatusRequest::getTid() const { + return tid_; +} + +void GetSQLReviewCheckResultStatusRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +std::string GetSQLReviewCheckResultStatusRequest::getOrderActionName() const { + return orderActionName_; +} + +void GetSQLReviewCheckResultStatusRequest::setOrderActionName(const std::string &orderActionName) { + orderActionName_ = orderActionName; + setParameter(std::string("OrderActionName"), orderActionName); +} + diff --git a/dms-enterprise/src/model/GetSQLReviewCheckResultStatusResult.cc b/dms-enterprise/src/model/GetSQLReviewCheckResultStatusResult.cc new file mode 100644 index 000000000..bd88b08c7 --- /dev/null +++ b/dms-enterprise/src/model/GetSQLReviewCheckResultStatusResult.cc @@ -0,0 +1,101 @@ +/* + * 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; + +GetSQLReviewCheckResultStatusResult::GetSQLReviewCheckResultStatusResult() : + ServiceResult() +{} + +GetSQLReviewCheckResultStatusResult::GetSQLReviewCheckResultStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSQLReviewCheckResultStatusResult::~GetSQLReviewCheckResultStatusResult() +{} + +void GetSQLReviewCheckResultStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto checkResultStatusNode = value["CheckResultStatus"]; + if(!checkResultStatusNode["TotalSQLCount"].isNull()) + checkResultStatus_.totalSQLCount = std::stol(checkResultStatusNode["TotalSQLCount"].asString()); + if(!checkResultStatusNode["CheckedCount"].isNull()) + checkResultStatus_.checkedCount = std::stol(checkResultStatusNode["CheckedCount"].asString()); + auto checkStatusResultNode = checkResultStatusNode["CheckStatusResult"]; + if(!checkStatusResultNode["New"].isNull()) + checkResultStatus_.checkStatusResult._new = std::stol(checkStatusResultNode["New"].asString()); + if(!checkStatusResultNode["Unknown"].isNull()) + checkResultStatus_.checkStatusResult.unknown = std::stol(checkStatusResultNode["Unknown"].asString()); + if(!checkStatusResultNode["CheckNotPass"].isNull()) + checkResultStatus_.checkStatusResult.checkNotPass = std::stol(checkStatusResultNode["CheckNotPass"].asString()); + if(!checkStatusResultNode["CheckPass"].isNull()) + checkResultStatus_.checkStatusResult.checkPass = std::stol(checkStatusResultNode["CheckPass"].asString()); + if(!checkStatusResultNode["ForcePass"].isNull()) + checkResultStatus_.checkStatusResult.forcePass = std::stol(checkStatusResultNode["ForcePass"].asString()); + if(!checkStatusResultNode["ForceNotPass"].isNull()) + checkResultStatus_.checkStatusResult.forceNotPass = std::stol(checkStatusResultNode["ForceNotPass"].asString()); + auto sQLReviewResultNode = checkResultStatusNode["SQLReviewResult"]; + if(!sQLReviewResultNode["MustImprove"].isNull()) + checkResultStatus_.sQLReviewResult.mustImprove = std::stol(sQLReviewResultNode["MustImprove"].asString()); + if(!sQLReviewResultNode["PotentialIssue"].isNull()) + checkResultStatus_.sQLReviewResult.potentialIssue = std::stol(sQLReviewResultNode["PotentialIssue"].asString()); + if(!sQLReviewResultNode["SuggestImprove"].isNull()) + checkResultStatus_.sQLReviewResult.suggestImprove = std::stol(sQLReviewResultNode["SuggestImprove"].asString()); + if(!sQLReviewResultNode["UseDmsToolkit"].isNull()) + checkResultStatus_.sQLReviewResult.useDmsToolkit = std::stol(sQLReviewResultNode["UseDmsToolkit"].asString()); + if(!sQLReviewResultNode["UseDmsDmlUnlock"].isNull()) + checkResultStatus_.sQLReviewResult.useDmsDmlUnlock = std::stol(sQLReviewResultNode["UseDmsDmlUnlock"].asString()); + if(!sQLReviewResultNode["TableIndexSuggest"].isNull()) + checkResultStatus_.sQLReviewResult.tableIndexSuggest = std::stol(sQLReviewResultNode["TableIndexSuggest"].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 GetSQLReviewCheckResultStatusResult::getErrorCode()const +{ + return errorCode_; +} + +GetSQLReviewCheckResultStatusResult::CheckResultStatus GetSQLReviewCheckResultStatusResult::getCheckResultStatus()const +{ + return checkResultStatus_; +} + +std::string GetSQLReviewCheckResultStatusResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetSQLReviewCheckResultStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetStructSyncExecSqlDetailRequest.cc b/dms-enterprise/src/model/GetStructSyncExecSqlDetailRequest.cc index 56d660ea6..51188e702 100644 --- a/dms-enterprise/src/model/GetStructSyncExecSqlDetailRequest.cc +++ b/dms-enterprise/src/model/GetStructSyncExecSqlDetailRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::GetStructSyncExecSqlDetailRequest; - -GetStructSyncExecSqlDetailRequest::GetStructSyncExecSqlDetailRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetStructSyncExecSqlDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -GetStructSyncExecSqlDetailRequest::~GetStructSyncExecSqlDetailRequest() -{} - -long GetStructSyncExecSqlDetailRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetStructSyncExecSqlDetailRequest; + +GetStructSyncExecSqlDetailRequest::GetStructSyncExecSqlDetailRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetStructSyncExecSqlDetail") { + setMethod(HttpRequest::Method::Post); } -void GetStructSyncExecSqlDetailRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +GetStructSyncExecSqlDetailRequest::~GetStructSyncExecSqlDetailRequest() {} + +long GetStructSyncExecSqlDetailRequest::getOrderId() const { + return orderId_; } -long GetStructSyncExecSqlDetailRequest::getPageNumber()const -{ - return pageNumber_; +void GetStructSyncExecSqlDetailRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void GetStructSyncExecSqlDetailRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long GetStructSyncExecSqlDetailRequest::getPageNumber() const { + return pageNumber_; } -long GetStructSyncExecSqlDetailRequest::getTid()const -{ - return tid_; +void GetStructSyncExecSqlDetailRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void GetStructSyncExecSqlDetailRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetStructSyncExecSqlDetailRequest::getTid() const { + return tid_; } -long GetStructSyncExecSqlDetailRequest::getPageSize()const -{ - return pageSize_; +void GetStructSyncExecSqlDetailRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void GetStructSyncExecSqlDetailRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long GetStructSyncExecSqlDetailRequest::getPageSize() const { + return pageSize_; +} + +void GetStructSyncExecSqlDetailRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/dms-enterprise/src/model/GetStructSyncExecSqlDetailResult.cc b/dms-enterprise/src/model/GetStructSyncExecSqlDetailResult.cc index 31f6369aa..50a2399af 100644 --- a/dms-enterprise/src/model/GetStructSyncExecSqlDetailResult.cc +++ b/dms-enterprise/src/model/GetStructSyncExecSqlDetailResult.cc @@ -40,16 +40,16 @@ void GetStructSyncExecSqlDetailResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto structSyncExecSqlDetailNode = value["StructSyncExecSqlDetail"]; - if(!structSyncExecSqlDetailNode["ExecSql"].isNull()) - structSyncExecSqlDetail_.execSql = structSyncExecSqlDetailNode["ExecSql"].asString(); if(!structSyncExecSqlDetailNode["TotalSqlCount"].isNull()) structSyncExecSqlDetail_.totalSqlCount = std::stol(structSyncExecSqlDetailNode["TotalSqlCount"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + if(!structSyncExecSqlDetailNode["ExecSql"].isNull()) + structSyncExecSqlDetail_.execSql = structSyncExecSqlDetailNode["ExecSql"].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(); } diff --git a/dms-enterprise/src/model/GetStructSyncJobAnalyzeResultRequest.cc b/dms-enterprise/src/model/GetStructSyncJobAnalyzeResultRequest.cc index 059315107..046fd535c 100644 --- a/dms-enterprise/src/model/GetStructSyncJobAnalyzeResultRequest.cc +++ b/dms-enterprise/src/model/GetStructSyncJobAnalyzeResultRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::GetStructSyncJobAnalyzeResultRequest; - -GetStructSyncJobAnalyzeResultRequest::GetStructSyncJobAnalyzeResultRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetStructSyncJobAnalyzeResult") -{ - setMethod(HttpRequest::Method::Post); -} - -GetStructSyncJobAnalyzeResultRequest::~GetStructSyncJobAnalyzeResultRequest() -{} - -long GetStructSyncJobAnalyzeResultRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetStructSyncJobAnalyzeResultRequest; + +GetStructSyncJobAnalyzeResultRequest::GetStructSyncJobAnalyzeResultRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetStructSyncJobAnalyzeResult") { + setMethod(HttpRequest::Method::Post); } -void GetStructSyncJobAnalyzeResultRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +GetStructSyncJobAnalyzeResultRequest::~GetStructSyncJobAnalyzeResultRequest() {} + +long GetStructSyncJobAnalyzeResultRequest::getOrderId() const { + return orderId_; } -std::string GetStructSyncJobAnalyzeResultRequest::getCompareType()const -{ - return compareType_; +void GetStructSyncJobAnalyzeResultRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void GetStructSyncJobAnalyzeResultRequest::setCompareType(const std::string& compareType) -{ - compareType_ = compareType; - setParameter("CompareType", compareType); +std::string GetStructSyncJobAnalyzeResultRequest::getCompareType() const { + return compareType_; } -long GetStructSyncJobAnalyzeResultRequest::getPageNumber()const -{ - return pageNumber_; +void GetStructSyncJobAnalyzeResultRequest::setCompareType(const std::string &compareType) { + compareType_ = compareType; + setParameter(std::string("CompareType"), compareType); } -void GetStructSyncJobAnalyzeResultRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long GetStructSyncJobAnalyzeResultRequest::getPageNumber() const { + return pageNumber_; } -long GetStructSyncJobAnalyzeResultRequest::getTid()const -{ - return tid_; +void GetStructSyncJobAnalyzeResultRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void GetStructSyncJobAnalyzeResultRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetStructSyncJobAnalyzeResultRequest::getTid() const { + return tid_; } -long GetStructSyncJobAnalyzeResultRequest::getPageSize()const -{ - return pageSize_; +void GetStructSyncJobAnalyzeResultRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void GetStructSyncJobAnalyzeResultRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long GetStructSyncJobAnalyzeResultRequest::getPageSize() const { + return pageSize_; +} + +void GetStructSyncJobAnalyzeResultRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/dms-enterprise/src/model/GetStructSyncJobAnalyzeResultResult.cc b/dms-enterprise/src/model/GetStructSyncJobAnalyzeResultResult.cc index 42f5c6f68..1ffb78b62 100644 --- a/dms-enterprise/src/model/GetStructSyncJobAnalyzeResultResult.cc +++ b/dms-enterprise/src/model/GetStructSyncJobAnalyzeResultResult.cc @@ -40,18 +40,6 @@ void GetStructSyncJobAnalyzeResultResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto structSyncJobAnalyzeResultNode = value["StructSyncJobAnalyzeResult"]; - auto allResultListNode = structSyncJobAnalyzeResultNode["ResultList"]["Result"]; - for (auto structSyncJobAnalyzeResultNodeResultListResult : allResultListNode) - { - StructSyncJobAnalyzeResult::Result resultObject; - if(!structSyncJobAnalyzeResultNodeResultListResult["SourceTableName"].isNull()) - resultObject.sourceTableName = structSyncJobAnalyzeResultNodeResultListResult["SourceTableName"].asString(); - if(!structSyncJobAnalyzeResultNodeResultListResult["Script"].isNull()) - resultObject.script = structSyncJobAnalyzeResultNodeResultListResult["Script"].asString(); - if(!structSyncJobAnalyzeResultNodeResultListResult["TargetTableName"].isNull()) - resultObject.targetTableName = structSyncJobAnalyzeResultNodeResultListResult["TargetTableName"].asString(); - structSyncJobAnalyzeResult_.resultList.push_back(resultObject); - } auto allSummaryListNode = structSyncJobAnalyzeResultNode["SummaryList"]["Summary"]; for (auto structSyncJobAnalyzeResultNodeSummaryListSummary : allSummaryListNode) { @@ -62,12 +50,24 @@ void GetStructSyncJobAnalyzeResultResult::parse(const std::string &payload) summaryObject.count = std::stol(structSyncJobAnalyzeResultNodeSummaryListSummary["Count"].asString()); structSyncJobAnalyzeResult_.summaryList.push_back(summaryObject); } - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + auto allResultListNode = structSyncJobAnalyzeResultNode["ResultList"]["Result"]; + for (auto structSyncJobAnalyzeResultNodeResultListResult : allResultListNode) + { + StructSyncJobAnalyzeResult::Result resultObject; + if(!structSyncJobAnalyzeResultNodeResultListResult["SourceTableName"].isNull()) + resultObject.sourceTableName = structSyncJobAnalyzeResultNodeResultListResult["SourceTableName"].asString(); + if(!structSyncJobAnalyzeResultNodeResultListResult["TargetTableName"].isNull()) + resultObject.targetTableName = structSyncJobAnalyzeResultNodeResultListResult["TargetTableName"].asString(); + if(!structSyncJobAnalyzeResultNodeResultListResult["Script"].isNull()) + resultObject.script = structSyncJobAnalyzeResultNodeResultListResult["Script"].asString(); + structSyncJobAnalyzeResult_.resultList.push_back(resultObject); + } 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(); } diff --git a/dms-enterprise/src/model/GetStructSyncJobDetailRequest.cc b/dms-enterprise/src/model/GetStructSyncJobDetailRequest.cc index 1de9da351..73f10ae1e 100644 --- a/dms-enterprise/src/model/GetStructSyncJobDetailRequest.cc +++ b/dms-enterprise/src/model/GetStructSyncJobDetailRequest.cc @@ -1,51 +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::GetStructSyncJobDetailRequest; - -GetStructSyncJobDetailRequest::GetStructSyncJobDetailRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetStructSyncJobDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -GetStructSyncJobDetailRequest::~GetStructSyncJobDetailRequest() -{} - -long GetStructSyncJobDetailRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetStructSyncJobDetailRequest; + +GetStructSyncJobDetailRequest::GetStructSyncJobDetailRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetStructSyncJobDetail") { + setMethod(HttpRequest::Method::Post); } -void GetStructSyncJobDetailRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +GetStructSyncJobDetailRequest::~GetStructSyncJobDetailRequest() {} + +long GetStructSyncJobDetailRequest::getOrderId() const { + return orderId_; } -long GetStructSyncJobDetailRequest::getTid()const -{ - return tid_; +void GetStructSyncJobDetailRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void GetStructSyncJobDetailRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetStructSyncJobDetailRequest::getTid() const { + return tid_; +} + +void GetStructSyncJobDetailRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetStructSyncJobDetailResult.cc b/dms-enterprise/src/model/GetStructSyncJobDetailResult.cc index 3d3d17082..47f598599 100644 --- a/dms-enterprise/src/model/GetStructSyncJobDetailResult.cc +++ b/dms-enterprise/src/model/GetStructSyncJobDetailResult.cc @@ -40,8 +40,6 @@ void GetStructSyncJobDetailResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto structSyncJobDetailNode = value["StructSyncJobDetail"]; - if(!structSyncJobDetailNode["SqlCount"].isNull()) - structSyncJobDetail_.sqlCount = std::stol(structSyncJobDetailNode["SqlCount"].asString()); if(!structSyncJobDetailNode["JobStatus"].isNull()) structSyncJobDetail_.jobStatus = structSyncJobDetailNode["JobStatus"].asString(); if(!structSyncJobDetailNode["Message"].isNull()) @@ -50,18 +48,20 @@ void GetStructSyncJobDetailResult::parse(const std::string &payload) structSyncJobDetail_.tableAnalyzed = std::stol(structSyncJobDetailNode["TableAnalyzed"].asString()); if(!structSyncJobDetailNode["TableCount"].isNull()) structSyncJobDetail_.tableCount = std::stol(structSyncJobDetailNode["TableCount"].asString()); + if(!structSyncJobDetailNode["SqlCount"].isNull()) + structSyncJobDetail_.sqlCount = std::stol(structSyncJobDetailNode["SqlCount"].asString()); if(!structSyncJobDetailNode["ExecuteCount"].isNull()) structSyncJobDetail_.executeCount = std::stol(structSyncJobDetailNode["ExecuteCount"].asString()); if(!structSyncJobDetailNode["SecurityRule"].isNull()) structSyncJobDetail_.securityRule = structSyncJobDetailNode["SecurityRule"].asString(); if(!structSyncJobDetailNode["DBTaskGroupId"].isNull()) structSyncJobDetail_.dBTaskGroupId = std::stol(structSyncJobDetailNode["DBTaskGroupId"].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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } diff --git a/dms-enterprise/src/model/GetStructSyncOrderDetailRequest.cc b/dms-enterprise/src/model/GetStructSyncOrderDetailRequest.cc index 60eb310c2..7d5cda960 100644 --- a/dms-enterprise/src/model/GetStructSyncOrderDetailRequest.cc +++ b/dms-enterprise/src/model/GetStructSyncOrderDetailRequest.cc @@ -1,51 +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::GetStructSyncOrderDetailRequest; - -GetStructSyncOrderDetailRequest::GetStructSyncOrderDetailRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetStructSyncOrderDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -GetStructSyncOrderDetailRequest::~GetStructSyncOrderDetailRequest() -{} - -long GetStructSyncOrderDetailRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetStructSyncOrderDetailRequest; + +GetStructSyncOrderDetailRequest::GetStructSyncOrderDetailRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetStructSyncOrderDetail") { + setMethod(HttpRequest::Method::Post); } -void GetStructSyncOrderDetailRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +GetStructSyncOrderDetailRequest::~GetStructSyncOrderDetailRequest() {} + +long GetStructSyncOrderDetailRequest::getOrderId() const { + return orderId_; } -long GetStructSyncOrderDetailRequest::getTid()const -{ - return tid_; +void GetStructSyncOrderDetailRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void GetStructSyncOrderDetailRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetStructSyncOrderDetailRequest::getTid() const { + return tid_; +} + +void GetStructSyncOrderDetailRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetStructSyncOrderDetailResult.cc b/dms-enterprise/src/model/GetStructSyncOrderDetailResult.cc index a71b434da..6d4106982 100644 --- a/dms-enterprise/src/model/GetStructSyncOrderDetailResult.cc +++ b/dms-enterprise/src/model/GetStructSyncOrderDetailResult.cc @@ -57,39 +57,39 @@ void GetStructSyncOrderDetailResult::parse(const std::string &payload) structSyncOrderDetail_.tableInfoList.push_back(tableInfoObject); } auto sourceDatabaseInfoNode = structSyncOrderDetailNode["SourceDatabaseInfo"]; - if(!sourceDatabaseInfoNode["SearchName"].isNull()) - structSyncOrderDetail_.sourceDatabaseInfo.searchName = sourceDatabaseInfoNode["SearchName"].asString(); if(!sourceDatabaseInfoNode["DbId"].isNull()) structSyncOrderDetail_.sourceDatabaseInfo.dbId = std::stol(sourceDatabaseInfoNode["DbId"].asString()); - if(!sourceDatabaseInfoNode["Logic"].isNull()) - structSyncOrderDetail_.sourceDatabaseInfo.logic = sourceDatabaseInfoNode["Logic"].asString() == "true"; - if(!sourceDatabaseInfoNode["EnvType"].isNull()) - structSyncOrderDetail_.sourceDatabaseInfo.envType = sourceDatabaseInfoNode["EnvType"].asString(); + if(!sourceDatabaseInfoNode["SearchName"].isNull()) + structSyncOrderDetail_.sourceDatabaseInfo.searchName = sourceDatabaseInfoNode["SearchName"].asString(); if(!sourceDatabaseInfoNode["DbType"].isNull()) structSyncOrderDetail_.sourceDatabaseInfo.dbType = sourceDatabaseInfoNode["DbType"].asString(); + if(!sourceDatabaseInfoNode["EnvType"].isNull()) + structSyncOrderDetail_.sourceDatabaseInfo.envType = sourceDatabaseInfoNode["EnvType"].asString(); + if(!sourceDatabaseInfoNode["Logic"].isNull()) + structSyncOrderDetail_.sourceDatabaseInfo.logic = sourceDatabaseInfoNode["Logic"].asString() == "true"; auto targetDatabaseInfoNode = structSyncOrderDetailNode["TargetDatabaseInfo"]; - if(!targetDatabaseInfoNode["SearchName"].isNull()) - structSyncOrderDetail_.targetDatabaseInfo.searchName = targetDatabaseInfoNode["SearchName"].asString(); if(!targetDatabaseInfoNode["DbId"].isNull()) structSyncOrderDetail_.targetDatabaseInfo.dbId = std::stol(targetDatabaseInfoNode["DbId"].asString()); - if(!targetDatabaseInfoNode["Logic"].isNull()) - structSyncOrderDetail_.targetDatabaseInfo.logic = targetDatabaseInfoNode["Logic"].asString() == "true"; - if(!targetDatabaseInfoNode["EnvType"].isNull()) - structSyncOrderDetail_.targetDatabaseInfo.envType = targetDatabaseInfoNode["EnvType"].asString(); + if(!targetDatabaseInfoNode["SearchName"].isNull()) + structSyncOrderDetail_.targetDatabaseInfo.searchName = targetDatabaseInfoNode["SearchName"].asString(); if(!targetDatabaseInfoNode["DbType"].isNull()) structSyncOrderDetail_.targetDatabaseInfo.dbType = targetDatabaseInfoNode["DbType"].asString(); + if(!targetDatabaseInfoNode["EnvType"].isNull()) + structSyncOrderDetail_.targetDatabaseInfo.envType = targetDatabaseInfoNode["EnvType"].asString(); + if(!targetDatabaseInfoNode["Logic"].isNull()) + structSyncOrderDetail_.targetDatabaseInfo.logic = targetDatabaseInfoNode["Logic"].asString() == "true"; auto sourceVersionInfoNode = structSyncOrderDetailNode["SourceVersionInfo"]; if(!sourceVersionInfoNode["VersionId"].isNull()) structSyncOrderDetail_.sourceVersionInfo.versionId = sourceVersionInfoNode["VersionId"].asString(); auto targetVersionInfoNode = structSyncOrderDetailNode["TargetVersionInfo"]; if(!targetVersionInfoNode["VersionId"].isNull()) structSyncOrderDetail_.targetVersionInfo.versionId = targetVersionInfoNode["VersionId"].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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } diff --git a/dms-enterprise/src/model/GetTableDBTopologyRequest.cc b/dms-enterprise/src/model/GetTableDBTopologyRequest.cc index 650f77ea8..4216fe51c 100644 --- a/dms-enterprise/src/model/GetTableDBTopologyRequest.cc +++ b/dms-enterprise/src/model/GetTableDBTopologyRequest.cc @@ -1,51 +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::GetTableDBTopologyRequest; - -GetTableDBTopologyRequest::GetTableDBTopologyRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetTableDBTopology") -{ - setMethod(HttpRequest::Method::Post); -} - -GetTableDBTopologyRequest::~GetTableDBTopologyRequest() -{} - -std::string GetTableDBTopologyRequest::getTableGuid()const -{ - return tableGuid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetTableDBTopologyRequest; + +GetTableDBTopologyRequest::GetTableDBTopologyRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetTableDBTopology") { + setMethod(HttpRequest::Method::Post); } -void GetTableDBTopologyRequest::setTableGuid(const std::string& tableGuid) -{ - tableGuid_ = tableGuid; - setParameter("TableGuid", tableGuid); +GetTableDBTopologyRequest::~GetTableDBTopologyRequest() {} + +std::string GetTableDBTopologyRequest::getTableGuid() const { + return tableGuid_; } -long GetTableDBTopologyRequest::getTid()const -{ - return tid_; +void GetTableDBTopologyRequest::setTableGuid(const std::string &tableGuid) { + tableGuid_ = tableGuid; + setParameter(std::string("TableGuid"), tableGuid); } -void GetTableDBTopologyRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetTableDBTopologyRequest::getTid() const { + return tid_; +} + +void GetTableDBTopologyRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetTableDBTopologyResult.cc b/dms-enterprise/src/model/GetTableDBTopologyResult.cc index 11a426b79..b75ea67e3 100644 --- a/dms-enterprise/src/model/GetTableDBTopologyResult.cc +++ b/dms-enterprise/src/model/GetTableDBTopologyResult.cc @@ -48,14 +48,14 @@ void GetTableDBTopologyResult::parse(const std::string &payload) for (auto dBTopologyNodeDataSourceListDataSource : allDataSourceListNode) { DBTopology::DataSource dataSourceObject; - if(!dBTopologyNodeDataSourceListDataSource["Port"].isNull()) - dataSourceObject.port = std::stoi(dBTopologyNodeDataSourceListDataSource["Port"].asString()); + if(!dBTopologyNodeDataSourceListDataSource["Sid"].isNull()) + dataSourceObject.sid = dBTopologyNodeDataSourceListDataSource["Sid"].asString(); if(!dBTopologyNodeDataSourceListDataSource["Host"].isNull()) dataSourceObject.host = dBTopologyNodeDataSourceListDataSource["Host"].asString(); if(!dBTopologyNodeDataSourceListDataSource["DbType"].isNull()) dataSourceObject.dbType = dBTopologyNodeDataSourceListDataSource["DbType"].asString(); - if(!dBTopologyNodeDataSourceListDataSource["Sid"].isNull()) - dataSourceObject.sid = dBTopologyNodeDataSourceListDataSource["Sid"].asString(); + if(!dBTopologyNodeDataSourceListDataSource["Port"].isNull()) + dataSourceObject.port = std::stoi(dBTopologyNodeDataSourceListDataSource["Port"].asString()); auto allDatabaseListNode = dBTopologyNodeDataSourceListDataSource["DatabaseList"]["Database"]; for (auto dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase : allDatabaseListNode) { @@ -64,20 +64,20 @@ void GetTableDBTopologyResult::parse(const std::string &payload) databaseListObject.dbId = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbId"].asString(); if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbName"].isNull()) databaseListObject.dbName = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbName"].asString(); - if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["EnvType"].isNull()) - databaseListObject.envType = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["EnvType"].asString(); if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbType"].isNull()) databaseListObject.dbType = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbType"].asString(); + if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["EnvType"].isNull()) + databaseListObject.envType = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["EnvType"].asString(); auto allTableListNode = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["TableList"]["Table"]; for (auto dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable : allTableListNode) { DBTopology::DataSource::Database::Table tableListObject; - if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableId"].isNull()) - tableListObject.tableId = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableId"].asString(); if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableName"].isNull()) tableListObject.tableName = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableName"].asString(); if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableType"].isNull()) tableListObject.tableType = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableType"].asString(); + if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableId"].isNull()) + tableListObject.tableId = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableId"].asString(); databaseListObject.tableList.push_back(tableListObject); } dataSourceObject.databaseList.push_back(databaseListObject); diff --git a/dms-enterprise/src/model/GetTableTopologyRequest.cc b/dms-enterprise/src/model/GetTableTopologyRequest.cc index 726ce32ad..620f4d235 100644 --- a/dms-enterprise/src/model/GetTableTopologyRequest.cc +++ b/dms-enterprise/src/model/GetTableTopologyRequest.cc @@ -1,51 +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::GetTableTopologyRequest; - -GetTableTopologyRequest::GetTableTopologyRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetTableTopology") -{ - setMethod(HttpRequest::Method::Post); -} - -GetTableTopologyRequest::~GetTableTopologyRequest() -{} - -std::string GetTableTopologyRequest::getTableGuid()const -{ - return tableGuid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetTableTopologyRequest; + +GetTableTopologyRequest::GetTableTopologyRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetTableTopology") { + setMethod(HttpRequest::Method::Post); } -void GetTableTopologyRequest::setTableGuid(const std::string& tableGuid) -{ - tableGuid_ = tableGuid; - setParameter("TableGuid", tableGuid); +GetTableTopologyRequest::~GetTableTopologyRequest() {} + +std::string GetTableTopologyRequest::getTableGuid() const { + return tableGuid_; } -long GetTableTopologyRequest::getTid()const -{ - return tid_; +void GetTableTopologyRequest::setTableGuid(const std::string &tableGuid) { + tableGuid_ = tableGuid; + setParameter(std::string("TableGuid"), tableGuid); } -void GetTableTopologyRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetTableTopologyRequest::getTid() const { + return tid_; +} + +void GetTableTopologyRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetTableTopologyResult.cc b/dms-enterprise/src/model/GetTableTopologyResult.cc index 14c123fae..e12025071 100644 --- a/dms-enterprise/src/model/GetTableTopologyResult.cc +++ b/dms-enterprise/src/model/GetTableTopologyResult.cc @@ -40,46 +40,46 @@ void GetTableTopologyResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto tableTopologyNode = value["TableTopology"]; - if(!tableTopologyNode["TableName"].isNull()) - tableTopology_.tableName = tableTopologyNode["TableName"].asString(); if(!tableTopologyNode["TableGuid"].isNull()) tableTopology_.tableGuid = tableTopologyNode["TableGuid"].asString(); + if(!tableTopologyNode["TableName"].isNull()) + tableTopology_.tableName = tableTopologyNode["TableName"].asString(); if(!tableTopologyNode["Logic"].isNull()) tableTopology_.logic = tableTopologyNode["Logic"].asString() == "true"; auto allTableTopologyInfoListNode = tableTopologyNode["TableTopologyInfoList"]["TableTopologyInfo"]; for (auto tableTopologyNodeTableTopologyInfoListTableTopologyInfo : allTableTopologyInfoListNode) { TableTopology::TableTopologyInfo tableTopologyInfoObject; - if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["TableNameExpr"].isNull()) - tableTopologyInfoObject.tableNameExpr = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["TableNameExpr"].asString(); - if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbSearchName"].isNull()) - tableTopologyInfoObject.dbSearchName = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbSearchName"].asString(); - if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceSource"].isNull()) - tableTopologyInfoObject.instanceSource = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceSource"].asString(); - if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceResourceId"].isNull()) - tableTopologyInfoObject.instanceResourceId = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceResourceId"].asString(); - if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceId"].isNull()) - tableTopologyInfoObject.instanceId = std::stol(tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceId"].asString()); if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["TableNameList"].isNull()) tableTopologyInfoObject.tableNameList = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["TableNameList"].asString(); + if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["TableNameExpr"].isNull()) + tableTopologyInfoObject.tableNameExpr = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["TableNameExpr"].asString(); if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["TableCount"].isNull()) tableTopologyInfoObject.tableCount = std::stol(tableTopologyNodeTableTopologyInfoListTableTopologyInfo["TableCount"].asString()); if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbId"].isNull()) tableTopologyInfoObject.dbId = std::stol(tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbId"].asString()); - if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbName"].isNull()) - tableTopologyInfoObject.dbName = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbName"].asString(); + if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbSearchName"].isNull()) + tableTopologyInfoObject.dbSearchName = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbSearchName"].asString(); + if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceId"].isNull()) + tableTopologyInfoObject.instanceId = std::stol(tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceId"].asString()); if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["RegionId"].isNull()) tableTopologyInfoObject.regionId = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["RegionId"].asString(); + if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceResourceId"].isNull()) + tableTopologyInfoObject.instanceResourceId = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceResourceId"].asString(); + if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceSource"].isNull()) + tableTopologyInfoObject.instanceSource = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceSource"].asString(); + if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbName"].isNull()) + tableTopologyInfoObject.dbName = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbName"].asString(); if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbType"].isNull()) tableTopologyInfoObject.dbType = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbType"].asString(); tableTopology_.tableTopologyInfoList.push_back(tableTopologyInfoObject); } - 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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } diff --git a/dms-enterprise/src/model/GetUserActiveTenantRequest.cc b/dms-enterprise/src/model/GetUserActiveTenantRequest.cc index ee874c0e1..f43d04d9c 100644 --- a/dms-enterprise/src/model/GetUserActiveTenantRequest.cc +++ b/dms-enterprise/src/model/GetUserActiveTenantRequest.cc @@ -1,40 +1,36 @@ /* * 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::GetUserActiveTenantRequest; - -GetUserActiveTenantRequest::GetUserActiveTenantRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetUserActiveTenant") -{ - setMethod(HttpRequest::Method::Post); -} - -GetUserActiveTenantRequest::~GetUserActiveTenantRequest() -{} - -long GetUserActiveTenantRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetUserActiveTenantRequest; + +GetUserActiveTenantRequest::GetUserActiveTenantRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetUserActiveTenant") { + setMethod(HttpRequest::Method::Post); } -void GetUserActiveTenantRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +GetUserActiveTenantRequest::~GetUserActiveTenantRequest() {} + +long GetUserActiveTenantRequest::getTid() const { + return tid_; +} + +void GetUserActiveTenantRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetUserActiveTenantResult.cc b/dms-enterprise/src/model/GetUserActiveTenantResult.cc index 2d2fd353e..8b14c6267 100644 --- a/dms-enterprise/src/model/GetUserActiveTenantResult.cc +++ b/dms-enterprise/src/model/GetUserActiveTenantResult.cc @@ -42,10 +42,10 @@ void GetUserActiveTenantResult::parse(const std::string &payload) auto tenantNode = value["Tenant"]; if(!tenantNode["Status"].isNull()) tenant_.status = tenantNode["Status"].asString(); - if(!tenantNode["TenantName"].isNull()) - tenant_.tenantName = tenantNode["TenantName"].asString(); if(!tenantNode["Tid"].isNull()) tenant_.tid = std::stol(tenantNode["Tid"].asString()); + if(!tenantNode["TenantName"].isNull()) + tenant_.tenantName = tenantNode["TenantName"].asString(); if(!value["ErrorCode"].isNull()) errorCode_ = value["ErrorCode"].asString(); if(!value["ErrorMessage"].isNull()) diff --git a/dms-enterprise/src/model/GetUserRequest.cc b/dms-enterprise/src/model/GetUserRequest.cc index 179154c27..2a0d93517 100644 --- a/dms-enterprise/src/model/GetUserRequest.cc +++ b/dms-enterprise/src/model/GetUserRequest.cc @@ -1,62 +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::GetUserRequest; - -GetUserRequest::GetUserRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetUser") -{ - setMethod(HttpRequest::Method::Post); -} - -GetUserRequest::~GetUserRequest() -{} - -std::string GetUserRequest::getUserId()const -{ - return userId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetUserRequest; + +GetUserRequest::GetUserRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetUser") { + setMethod(HttpRequest::Method::Post); } -void GetUserRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); +GetUserRequest::~GetUserRequest() {} + +std::string GetUserRequest::getUserId() const { + return userId_; } -long GetUserRequest::getTid()const -{ - return tid_; +void GetUserRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); } -void GetUserRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetUserRequest::getTid() const { + return tid_; } -std::string GetUserRequest::getUid()const -{ - return uid_; +void GetUserRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void GetUserRequest::setUid(const std::string& uid) -{ - uid_ = uid; - setParameter("Uid", uid); +std::string GetUserRequest::getUid() const { + return uid_; +} + +void GetUserRequest::setUid(const std::string &uid) { + uid_ = uid; + setParameter(std::string("Uid"), uid); } diff --git a/dms-enterprise/src/model/GetUserResult.cc b/dms-enterprise/src/model/GetUserResult.cc index 684bf7727..c6d9fd9af 100644 --- a/dms-enterprise/src/model/GetUserResult.cc +++ b/dms-enterprise/src/model/GetUserResult.cc @@ -40,28 +40,28 @@ void GetUserResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto userNode = value["User"]; - if(!userNode["Uid"].isNull()) - user_.uid = userNode["Uid"].asString(); - if(!userNode["LastLoginTime"].isNull()) - user_.lastLoginTime = userNode["LastLoginTime"].asString(); - if(!userNode["CurResultCount"].isNull()) - user_.curResultCount = std::stol(userNode["CurResultCount"].asString()); - if(!userNode["MaxResultCount"].isNull()) - user_.maxResultCount = std::stol(userNode["MaxResultCount"].asString()); - if(!userNode["UserId"].isNull()) - user_.userId = userNode["UserId"].asString(); if(!userNode["State"].isNull()) user_.state = userNode["State"].asString(); - if(!userNode["CurExecuteCount"].isNull()) - user_.curExecuteCount = std::stol(userNode["CurExecuteCount"].asString()); - if(!userNode["NickName"].isNull()) - user_.nickName = userNode["NickName"].asString(); - if(!userNode["Mobile"].isNull()) - user_.mobile = userNode["Mobile"].asString(); - if(!userNode["MaxExecuteCount"].isNull()) - user_.maxExecuteCount = std::stol(userNode["MaxExecuteCount"].asString()); + if(!userNode["CurResultCount"].isNull()) + user_.curResultCount = std::stol(userNode["CurResultCount"].asString()); + if(!userNode["UserId"].isNull()) + user_.userId = userNode["UserId"].asString(); + if(!userNode["LastLoginTime"].isNull()) + user_.lastLoginTime = userNode["LastLoginTime"].asString(); + if(!userNode["MaxResultCount"].isNull()) + user_.maxResultCount = std::stol(userNode["MaxResultCount"].asString()); if(!userNode["ParentUid"].isNull()) user_.parentUid = std::stol(userNode["ParentUid"].asString()); + if(!userNode["NickName"].isNull()) + user_.nickName = userNode["NickName"].asString(); + if(!userNode["MaxExecuteCount"].isNull()) + user_.maxExecuteCount = std::stol(userNode["MaxExecuteCount"].asString()); + if(!userNode["CurExecuteCount"].isNull()) + user_.curExecuteCount = std::stol(userNode["CurExecuteCount"].asString()); + if(!userNode["Mobile"].isNull()) + user_.mobile = userNode["Mobile"].asString(); + if(!userNode["Uid"].isNull()) + user_.uid = userNode["Uid"].asString(); auto allRoleIdList = userNode["RoleIdList"]["RoleIds"]; for (auto value : allRoleIdList) user_.roleIdList.push_back(value.asString()); diff --git a/dms-enterprise/src/model/GetUserUploadFileJobRequest.cc b/dms-enterprise/src/model/GetUserUploadFileJobRequest.cc index 24f009ecc..065684ced 100644 --- a/dms-enterprise/src/model/GetUserUploadFileJobRequest.cc +++ b/dms-enterprise/src/model/GetUserUploadFileJobRequest.cc @@ -1,51 +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::GetUserUploadFileJobRequest; - -GetUserUploadFileJobRequest::GetUserUploadFileJobRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GetUserUploadFileJob") -{ - setMethod(HttpRequest::Method::Post); -} - -GetUserUploadFileJobRequest::~GetUserUploadFileJobRequest() -{} - -std::string GetUserUploadFileJobRequest::getJobKey()const -{ - return jobKey_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetUserUploadFileJobRequest; + +GetUserUploadFileJobRequest::GetUserUploadFileJobRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetUserUploadFileJob") { + setMethod(HttpRequest::Method::Post); } -void GetUserUploadFileJobRequest::setJobKey(const std::string& jobKey) -{ - jobKey_ = jobKey; - setParameter("JobKey", jobKey); +GetUserUploadFileJobRequest::~GetUserUploadFileJobRequest() {} + +std::string GetUserUploadFileJobRequest::getJobKey() const { + return jobKey_; } -long GetUserUploadFileJobRequest::getTid()const -{ - return tid_; +void GetUserUploadFileJobRequest::setJobKey(const std::string &jobKey) { + jobKey_ = jobKey; + setParameter(std::string("JobKey"), jobKey); } -void GetUserUploadFileJobRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GetUserUploadFileJobRequest::getTid() const { + return tid_; +} + +void GetUserUploadFileJobRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/GetUserUploadFileJobResult.cc b/dms-enterprise/src/model/GetUserUploadFileJobResult.cc index dfc6376a5..cc0deec14 100644 --- a/dms-enterprise/src/model/GetUserUploadFileJobResult.cc +++ b/dms-enterprise/src/model/GetUserUploadFileJobResult.cc @@ -40,39 +40,39 @@ void GetUserUploadFileJobResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto uploadFileJobDetailNode = value["UploadFileJobDetail"]; - if(!uploadFileJobDetailNode["JobStatus"].isNull()) - uploadFileJobDetail_.jobStatus = uploadFileJobDetailNode["JobStatus"].asString(); - if(!uploadFileJobDetailNode["AttachmentKey"].isNull()) - uploadFileJobDetail_.attachmentKey = uploadFileJobDetailNode["AttachmentKey"].asString(); if(!uploadFileJobDetailNode["JobKey"].isNull()) uploadFileJobDetail_.jobKey = uploadFileJobDetailNode["JobKey"].asString(); + if(!uploadFileJobDetailNode["FileName"].isNull()) + uploadFileJobDetail_.fileName = uploadFileJobDetailNode["FileName"].asString(); + if(!uploadFileJobDetailNode["FileSize"].isNull()) + uploadFileJobDetail_.fileSize = std::stol(uploadFileJobDetailNode["FileSize"].asString()); + if(!uploadFileJobDetailNode["FileSource"].isNull()) + uploadFileJobDetail_.fileSource = uploadFileJobDetailNode["FileSource"].asString(); + if(!uploadFileJobDetailNode["UploadType"].isNull()) + uploadFileJobDetail_.uploadType = uploadFileJobDetailNode["UploadType"].asString(); if(!uploadFileJobDetailNode["UploadURL"].isNull()) uploadFileJobDetail_.uploadURL = uploadFileJobDetailNode["UploadURL"].asString(); if(!uploadFileJobDetailNode["UploadedSize"].isNull()) uploadFileJobDetail_.uploadedSize = std::stol(uploadFileJobDetailNode["UploadedSize"].asString()); + if(!uploadFileJobDetailNode["JobStatus"].isNull()) + uploadFileJobDetail_.jobStatus = uploadFileJobDetailNode["JobStatus"].asString(); if(!uploadFileJobDetailNode["JobStatusDesc"].isNull()) uploadFileJobDetail_.jobStatusDesc = uploadFileJobDetailNode["JobStatusDesc"].asString(); - if(!uploadFileJobDetailNode["FileSource"].isNull()) - uploadFileJobDetail_.fileSource = uploadFileJobDetailNode["FileSource"].asString(); - if(!uploadFileJobDetailNode["FileName"].isNull()) - uploadFileJobDetail_.fileName = uploadFileJobDetailNode["FileName"].asString(); - if(!uploadFileJobDetailNode["UploadType"].isNull()) - uploadFileJobDetail_.uploadType = uploadFileJobDetailNode["UploadType"].asString(); - if(!uploadFileJobDetailNode["FileSize"].isNull()) - uploadFileJobDetail_.fileSize = std::stol(uploadFileJobDetailNode["FileSize"].asString()); + if(!uploadFileJobDetailNode["AttachmentKey"].isNull()) + uploadFileJobDetail_.attachmentKey = uploadFileJobDetailNode["AttachmentKey"].asString(); auto uploadOSSParamNode = uploadFileJobDetailNode["UploadOSSParam"]; - if(!uploadOSSParamNode["BucketName"].isNull()) - uploadFileJobDetail_.uploadOSSParam.bucketName = uploadOSSParamNode["BucketName"].asString(); if(!uploadOSSParamNode["Endpoint"].isNull()) uploadFileJobDetail_.uploadOSSParam.endpoint = uploadOSSParamNode["Endpoint"].asString(); + if(!uploadOSSParamNode["BucketName"].isNull()) + uploadFileJobDetail_.uploadOSSParam.bucketName = uploadOSSParamNode["BucketName"].asString(); if(!uploadOSSParamNode["ObjectName"].isNull()) uploadFileJobDetail_.uploadOSSParam.objectName = uploadOSSParamNode["ObjectName"].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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } diff --git a/dms-enterprise/src/model/GrantUserPermissionRequest.cc b/dms-enterprise/src/model/GrantUserPermissionRequest.cc index ce2cac44e..d62b7f298 100644 --- a/dms-enterprise/src/model/GrantUserPermissionRequest.cc +++ b/dms-enterprise/src/model/GrantUserPermissionRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::GrantUserPermissionRequest; - -GrantUserPermissionRequest::GrantUserPermissionRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "GrantUserPermission") -{ - setMethod(HttpRequest::Method::Post); -} - -GrantUserPermissionRequest::~GrantUserPermissionRequest() -{} - -std::string GrantUserPermissionRequest::getPermTypes()const -{ - return permTypes_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GrantUserPermissionRequest; + +GrantUserPermissionRequest::GrantUserPermissionRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GrantUserPermission") { + setMethod(HttpRequest::Method::Post); } -void GrantUserPermissionRequest::setPermTypes(const std::string& permTypes) -{ - permTypes_ = permTypes; - setParameter("PermTypes", permTypes); +GrantUserPermissionRequest::~GrantUserPermissionRequest() {} + +std::string GrantUserPermissionRequest::getPermTypes() const { + return permTypes_; } -std::string GrantUserPermissionRequest::getDsType()const -{ - return dsType_; +void GrantUserPermissionRequest::setPermTypes(const std::string &permTypes) { + permTypes_ = permTypes; + setParameter(std::string("PermTypes"), permTypes); } -void GrantUserPermissionRequest::setDsType(const std::string& dsType) -{ - dsType_ = dsType; - setParameter("DsType", dsType); +std::string GrantUserPermissionRequest::getDsType() const { + return dsType_; } -std::string GrantUserPermissionRequest::getExpireDate()const -{ - return expireDate_; +void GrantUserPermissionRequest::setDsType(const std::string &dsType) { + dsType_ = dsType; + setParameter(std::string("DsType"), dsType); } -void GrantUserPermissionRequest::setExpireDate(const std::string& expireDate) -{ - expireDate_ = expireDate; - setParameter("ExpireDate", expireDate); +std::string GrantUserPermissionRequest::getExpireDate() const { + return expireDate_; } -std::string GrantUserPermissionRequest::getUserId()const -{ - return userId_; +void GrantUserPermissionRequest::setExpireDate(const std::string &expireDate) { + expireDate_ = expireDate; + setParameter(std::string("ExpireDate"), expireDate); } -void GrantUserPermissionRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); +std::string GrantUserPermissionRequest::getUserId() const { + return userId_; } -long GrantUserPermissionRequest::getTid()const -{ - return tid_; +void GrantUserPermissionRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); } -void GrantUserPermissionRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long GrantUserPermissionRequest::getTid() const { + return tid_; } -std::string GrantUserPermissionRequest::getDbId()const -{ - return dbId_; +void GrantUserPermissionRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void GrantUserPermissionRequest::setDbId(const std::string& dbId) -{ - dbId_ = dbId; - setParameter("DbId", dbId); +std::string GrantUserPermissionRequest::getDbId() const { + return dbId_; } -std::string GrantUserPermissionRequest::getTableId()const -{ - return tableId_; +void GrantUserPermissionRequest::setDbId(const std::string &dbId) { + dbId_ = dbId; + setParameter(std::string("DbId"), dbId); } -void GrantUserPermissionRequest::setTableId(const std::string& tableId) -{ - tableId_ = tableId; - setParameter("TableId", tableId); +std::string GrantUserPermissionRequest::getTableId() const { + return tableId_; } -bool GrantUserPermissionRequest::getLogic()const -{ - return logic_; +void GrantUserPermissionRequest::setTableId(const std::string &tableId) { + tableId_ = tableId; + setParameter(std::string("TableId"), tableId); } -void GrantUserPermissionRequest::setLogic(bool logic) -{ - logic_ = logic; - setParameter("Logic", logic ? "true" : "false"); +bool GrantUserPermissionRequest::getLogic() const { + return logic_; } -std::string GrantUserPermissionRequest::getTableName()const -{ - return tableName_; +void GrantUserPermissionRequest::setLogic(bool logic) { + logic_ = logic; + setParameter(std::string("Logic"), logic ? "true" : "false"); } -void GrantUserPermissionRequest::setTableName(const std::string& tableName) -{ - tableName_ = tableName; - setParameter("TableName", tableName); +std::string GrantUserPermissionRequest::getTableName() const { + return tableName_; +} + +void GrantUserPermissionRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); } diff --git a/dms-enterprise/src/model/ListColumnsRequest.cc b/dms-enterprise/src/model/ListColumnsRequest.cc index b8e7a7f5a..6b75a0035 100644 --- a/dms-enterprise/src/model/ListColumnsRequest.cc +++ b/dms-enterprise/src/model/ListColumnsRequest.cc @@ -1,62 +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::ListColumnsRequest; - -ListColumnsRequest::ListColumnsRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListColumns") -{ - setMethod(HttpRequest::Method::Post); -} - -ListColumnsRequest::~ListColumnsRequest() -{} - -long ListColumnsRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListColumnsRequest; + +ListColumnsRequest::ListColumnsRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListColumns") { + setMethod(HttpRequest::Method::Post); } -void ListColumnsRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +ListColumnsRequest::~ListColumnsRequest() {} + +long ListColumnsRequest::getTid() const { + return tid_; } -std::string ListColumnsRequest::getTableId()const -{ - return tableId_; +void ListColumnsRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ListColumnsRequest::setTableId(const std::string& tableId) -{ - tableId_ = tableId; - setParameter("TableId", tableId); +std::string ListColumnsRequest::getTableId() const { + return tableId_; } -bool ListColumnsRequest::getLogic()const -{ - return logic_; +void ListColumnsRequest::setTableId(const std::string &tableId) { + tableId_ = tableId; + setParameter(std::string("TableId"), tableId); } -void ListColumnsRequest::setLogic(bool logic) -{ - logic_ = logic; - setParameter("Logic", logic ? "true" : "false"); +bool ListColumnsRequest::getLogic() const { + return logic_; +} + +void ListColumnsRequest::setLogic(bool logic) { + logic_ = logic; + setParameter(std::string("Logic"), logic ? "true" : "false"); } diff --git a/dms-enterprise/src/model/ListColumnsResult.cc b/dms-enterprise/src/model/ListColumnsResult.cc index 39892df54..749f69a8f 100644 --- a/dms-enterprise/src/model/ListColumnsResult.cc +++ b/dms-enterprise/src/model/ListColumnsResult.cc @@ -43,32 +43,32 @@ void ListColumnsResult::parse(const std::string &payload) for (auto valueColumnListColumn : allColumnListNode) { Column columnListObject; - if(!valueColumnListColumn["ColumnId"].isNull()) - columnListObject.columnId = valueColumnListColumn["ColumnId"].asString(); - if(!valueColumnListColumn["ColumnName"].isNull()) - columnListObject.columnName = valueColumnListColumn["ColumnName"].asString(); - if(!valueColumnListColumn["DefaultValue"].isNull()) - columnListObject.defaultValue = valueColumnListColumn["DefaultValue"].asString(); - if(!valueColumnListColumn["Description"].isNull()) - columnListObject.description = valueColumnListColumn["Description"].asString(); if(!valueColumnListColumn["ColumnType"].isNull()) columnListObject.columnType = valueColumnListColumn["ColumnType"].asString(); if(!valueColumnListColumn["AutoIncrement"].isNull()) columnListObject.autoIncrement = valueColumnListColumn["AutoIncrement"].asString() == "true"; - if(!valueColumnListColumn["FunctionType"].isNull()) - columnListObject.functionType = valueColumnListColumn["FunctionType"].asString(); - if(!valueColumnListColumn["SecurityLevel"].isNull()) - columnListObject.securityLevel = valueColumnListColumn["SecurityLevel"].asString(); - if(!valueColumnListColumn["DataLength"].isNull()) - columnListObject.dataLength = std::stol(valueColumnListColumn["DataLength"].asString()); - if(!valueColumnListColumn["DataScale"].isNull()) - columnListObject.dataScale = std::stoi(valueColumnListColumn["DataScale"].asString()); - if(!valueColumnListColumn["DataPrecision"].isNull()) - columnListObject.dataPrecision = std::stoi(valueColumnListColumn["DataPrecision"].asString()); + if(!valueColumnListColumn["ColumnId"].isNull()) + columnListObject.columnId = valueColumnListColumn["ColumnId"].asString(); + if(!valueColumnListColumn["DefaultValue"].isNull()) + columnListObject.defaultValue = valueColumnListColumn["DefaultValue"].asString(); if(!valueColumnListColumn["Sensitive"].isNull()) columnListObject.sensitive = valueColumnListColumn["Sensitive"].asString() == "true"; + if(!valueColumnListColumn["ColumnName"].isNull()) + columnListObject.columnName = valueColumnListColumn["ColumnName"].asString(); + if(!valueColumnListColumn["SecurityLevel"].isNull()) + columnListObject.securityLevel = valueColumnListColumn["SecurityLevel"].asString(); + if(!valueColumnListColumn["Description"].isNull()) + columnListObject.description = valueColumnListColumn["Description"].asString(); + if(!valueColumnListColumn["DataPrecision"].isNull()) + columnListObject.dataPrecision = std::stoi(valueColumnListColumn["DataPrecision"].asString()); + if(!valueColumnListColumn["DataScale"].isNull()) + columnListObject.dataScale = std::stoi(valueColumnListColumn["DataScale"].asString()); + if(!valueColumnListColumn["FunctionType"].isNull()) + columnListObject.functionType = valueColumnListColumn["FunctionType"].asString(); if(!valueColumnListColumn["Nullable"].isNull()) columnListObject.nullable = valueColumnListColumn["Nullable"].asString() == "true"; + if(!valueColumnListColumn["DataLength"].isNull()) + columnListObject.dataLength = std::stol(valueColumnListColumn["DataLength"].asString()); columnList_.push_back(columnListObject); } if(!value["ErrorCode"].isNull()) diff --git a/dms-enterprise/src/model/ListDBTaskSQLJobDetailRequest.cc b/dms-enterprise/src/model/ListDBTaskSQLJobDetailRequest.cc index d971bc858..486202078 100644 --- a/dms-enterprise/src/model/ListDBTaskSQLJobDetailRequest.cc +++ b/dms-enterprise/src/model/ListDBTaskSQLJobDetailRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::ListDBTaskSQLJobDetailRequest; - -ListDBTaskSQLJobDetailRequest::ListDBTaskSQLJobDetailRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDBTaskSQLJobDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -ListDBTaskSQLJobDetailRequest::~ListDBTaskSQLJobDetailRequest() -{} - -long ListDBTaskSQLJobDetailRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListDBTaskSQLJobDetailRequest; + +ListDBTaskSQLJobDetailRequest::ListDBTaskSQLJobDetailRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDBTaskSQLJobDetail") { + setMethod(HttpRequest::Method::Post); } -void ListDBTaskSQLJobDetailRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListDBTaskSQLJobDetailRequest::~ListDBTaskSQLJobDetailRequest() {} + +long ListDBTaskSQLJobDetailRequest::getPageNumber() const { + return pageNumber_; } -long ListDBTaskSQLJobDetailRequest::getTid()const -{ - return tid_; +void ListDBTaskSQLJobDetailRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListDBTaskSQLJobDetailRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long ListDBTaskSQLJobDetailRequest::getTid() const { + return tid_; } -long ListDBTaskSQLJobDetailRequest::getJobId()const -{ - return jobId_; +void ListDBTaskSQLJobDetailRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ListDBTaskSQLJobDetailRequest::setJobId(long jobId) -{ - jobId_ = jobId; - setParameter("JobId", std::to_string(jobId)); +long ListDBTaskSQLJobDetailRequest::getJobId() const { + return jobId_; } -long ListDBTaskSQLJobDetailRequest::getPageSize()const -{ - return pageSize_; +void ListDBTaskSQLJobDetailRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); } -void ListDBTaskSQLJobDetailRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long ListDBTaskSQLJobDetailRequest::getPageSize() const { + return pageSize_; +} + +void ListDBTaskSQLJobDetailRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/dms-enterprise/src/model/ListDBTaskSQLJobDetailResult.cc b/dms-enterprise/src/model/ListDBTaskSQLJobDetailResult.cc index cba3f6cc5..0785dfdb0 100644 --- a/dms-enterprise/src/model/ListDBTaskSQLJobDetailResult.cc +++ b/dms-enterprise/src/model/ListDBTaskSQLJobDetailResult.cc @@ -43,34 +43,34 @@ void ListDBTaskSQLJobDetailResult::parse(const std::string &payload) for (auto valueDBTaskSQLJobDetailListDBTaskSQLJobDetail : allDBTaskSQLJobDetailListNode) { DBTaskSQLJobDetail dBTaskSQLJobDetailListObject; - if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Status"].isNull()) - dBTaskSQLJobDetailListObject.status = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Status"].asString(); - if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Skip"].isNull()) - dBTaskSQLJobDetailListObject.skip = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Skip"].asString() == "true"; - if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["DbId"].isNull()) - dBTaskSQLJobDetailListObject.dbId = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["DbId"].asString()); - if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["SqlType"].isNull()) - dBTaskSQLJobDetailListObject.sqlType = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["SqlType"].asString(); - if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["ExecuteCount"].isNull()) - dBTaskSQLJobDetailListObject.executeCount = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["ExecuteCount"].asString()); - if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Logic"].isNull()) - dBTaskSQLJobDetailListObject.logic = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Logic"].asString() == "true"; - if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["CurrentSql"].isNull()) - dBTaskSQLJobDetailListObject.currentSql = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["CurrentSql"].asString(); if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["JobDetailId"].isNull()) dBTaskSQLJobDetailListObject.jobDetailId = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["JobDetailId"].asString()); + if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["CurrentSql"].isNull()) + dBTaskSQLJobDetailListObject.currentSql = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["CurrentSql"].asString(); + if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["ExecuteCount"].isNull()) + dBTaskSQLJobDetailListObject.executeCount = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["ExecuteCount"].asString()); if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["JobId"].isNull()) dBTaskSQLJobDetailListObject.jobId = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["JobId"].asString()); + if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["DbId"].isNull()) + dBTaskSQLJobDetailListObject.dbId = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["DbId"].asString()); + if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Logic"].isNull()) + dBTaskSQLJobDetailListObject.logic = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Logic"].asString() == "true"; + if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Skip"].isNull()) + dBTaskSQLJobDetailListObject.skip = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Skip"].asString() == "true"; + if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["SqlType"].isNull()) + dBTaskSQLJobDetailListObject.sqlType = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["SqlType"].asString(); + if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Status"].isNull()) + dBTaskSQLJobDetailListObject.status = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Status"].asString(); dBTaskSQLJobDetailList_.push_back(dBTaskSQLJobDetailListObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); } diff --git a/dms-enterprise/src/model/ListDBTaskSQLJobRequest.cc b/dms-enterprise/src/model/ListDBTaskSQLJobRequest.cc index 9032674c4..a9cfb007f 100644 --- a/dms-enterprise/src/model/ListDBTaskSQLJobRequest.cc +++ b/dms-enterprise/src/model/ListDBTaskSQLJobRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::ListDBTaskSQLJobRequest; - -ListDBTaskSQLJobRequest::ListDBTaskSQLJobRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDBTaskSQLJob") -{ - setMethod(HttpRequest::Method::Post); -} - -ListDBTaskSQLJobRequest::~ListDBTaskSQLJobRequest() -{} - -long ListDBTaskSQLJobRequest::getDBTaskGroupId()const -{ - return dBTaskGroupId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListDBTaskSQLJobRequest; + +ListDBTaskSQLJobRequest::ListDBTaskSQLJobRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDBTaskSQLJob") { + setMethod(HttpRequest::Method::Post); } -void ListDBTaskSQLJobRequest::setDBTaskGroupId(long dBTaskGroupId) -{ - dBTaskGroupId_ = dBTaskGroupId; - setParameter("DBTaskGroupId", std::to_string(dBTaskGroupId)); +ListDBTaskSQLJobRequest::~ListDBTaskSQLJobRequest() {} + +long ListDBTaskSQLJobRequest::getDBTaskGroupId() const { + return dBTaskGroupId_; } -long ListDBTaskSQLJobRequest::getPageNumber()const -{ - return pageNumber_; +void ListDBTaskSQLJobRequest::setDBTaskGroupId(long dBTaskGroupId) { + dBTaskGroupId_ = dBTaskGroupId; + setParameter(std::string("DBTaskGroupId"), std::to_string(dBTaskGroupId)); } -void ListDBTaskSQLJobRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long ListDBTaskSQLJobRequest::getPageNumber() const { + return pageNumber_; } -long ListDBTaskSQLJobRequest::getTid()const -{ - return tid_; +void ListDBTaskSQLJobRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListDBTaskSQLJobRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long ListDBTaskSQLJobRequest::getTid() const { + return tid_; } -long ListDBTaskSQLJobRequest::getPageSize()const -{ - return pageSize_; +void ListDBTaskSQLJobRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ListDBTaskSQLJobRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long ListDBTaskSQLJobRequest::getPageSize() const { + return pageSize_; +} + +void ListDBTaskSQLJobRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/dms-enterprise/src/model/ListDBTaskSQLJobResult.cc b/dms-enterprise/src/model/ListDBTaskSQLJobResult.cc index b69533bac..1966199cc 100644 --- a/dms-enterprise/src/model/ListDBTaskSQLJobResult.cc +++ b/dms-enterprise/src/model/ListDBTaskSQLJobResult.cc @@ -43,38 +43,38 @@ void ListDBTaskSQLJobResult::parse(const std::string &payload) for (auto valueDBTaskSQLJobListDBTaskSQLJob : allDBTaskSQLJobListNode) { DBTaskSQLJob dBTaskSQLJobListObject; - if(!valueDBTaskSQLJobListDBTaskSQLJob["Status"].isNull()) - dBTaskSQLJobListObject.status = valueDBTaskSQLJobListDBTaskSQLJob["Status"].asString(); - if(!valueDBTaskSQLJobListDBTaskSQLJob["Comment"].isNull()) - dBTaskSQLJobListObject.comment = valueDBTaskSQLJobListDBTaskSQLJob["Comment"].asString(); - if(!valueDBTaskSQLJobListDBTaskSQLJob["LastExecTime"].isNull()) - dBTaskSQLJobListObject.lastExecTime = valueDBTaskSQLJobListDBTaskSQLJob["LastExecTime"].asString(); - if(!valueDBTaskSQLJobListDBTaskSQLJob["DbSearchName"].isNull()) - dBTaskSQLJobListObject.dbSearchName = valueDBTaskSQLJobListDBTaskSQLJob["DbSearchName"].asString(); + if(!valueDBTaskSQLJobListDBTaskSQLJob["JobId"].isNull()) + dBTaskSQLJobListObject.jobId = std::stol(valueDBTaskSQLJobListDBTaskSQLJob["JobId"].asString()); if(!valueDBTaskSQLJobListDBTaskSQLJob["JobType"].isNull()) dBTaskSQLJobListObject.jobType = valueDBTaskSQLJobListDBTaskSQLJob["JobType"].asString(); - if(!valueDBTaskSQLJobListDBTaskSQLJob["CreateTime"].isNull()) - dBTaskSQLJobListObject.createTime = valueDBTaskSQLJobListDBTaskSQLJob["CreateTime"].asString(); - if(!valueDBTaskSQLJobListDBTaskSQLJob["DbTaskGroupId"].isNull()) - dBTaskSQLJobListObject.dbTaskGroupId = std::stol(valueDBTaskSQLJobListDBTaskSQLJob["DbTaskGroupId"].asString()); + if(!valueDBTaskSQLJobListDBTaskSQLJob["Comment"].isNull()) + dBTaskSQLJobListObject.comment = valueDBTaskSQLJobListDBTaskSQLJob["Comment"].asString(); + if(!valueDBTaskSQLJobListDBTaskSQLJob["DbSearchName"].isNull()) + dBTaskSQLJobListObject.dbSearchName = valueDBTaskSQLJobListDBTaskSQLJob["DbSearchName"].asString(); if(!valueDBTaskSQLJobListDBTaskSQLJob["DbId"].isNull()) dBTaskSQLJobListObject.dbId = std::stol(valueDBTaskSQLJobListDBTaskSQLJob["DbId"].asString()); if(!valueDBTaskSQLJobListDBTaskSQLJob["Logic"].isNull()) dBTaskSQLJobListObject.logic = valueDBTaskSQLJobListDBTaskSQLJob["Logic"].asString() == "true"; - if(!valueDBTaskSQLJobListDBTaskSQLJob["JobId"].isNull()) - dBTaskSQLJobListObject.jobId = std::stol(valueDBTaskSQLJobListDBTaskSQLJob["JobId"].asString()); + if(!valueDBTaskSQLJobListDBTaskSQLJob["CreateTime"].isNull()) + dBTaskSQLJobListObject.createTime = valueDBTaskSQLJobListDBTaskSQLJob["CreateTime"].asString(); + if(!valueDBTaskSQLJobListDBTaskSQLJob["LastExecTime"].isNull()) + dBTaskSQLJobListObject.lastExecTime = valueDBTaskSQLJobListDBTaskSQLJob["LastExecTime"].asString(); + if(!valueDBTaskSQLJobListDBTaskSQLJob["DbTaskGroupId"].isNull()) + dBTaskSQLJobListObject.dbTaskGroupId = std::stol(valueDBTaskSQLJobListDBTaskSQLJob["DbTaskGroupId"].asString()); + if(!valueDBTaskSQLJobListDBTaskSQLJob["Status"].isNull()) + dBTaskSQLJobListObject.status = valueDBTaskSQLJobListDBTaskSQLJob["Status"].asString(); if(!valueDBTaskSQLJobListDBTaskSQLJob["Transactional"].isNull()) dBTaskSQLJobListObject.transactional = valueDBTaskSQLJobListDBTaskSQLJob["Transactional"].asString() == "true"; dBTaskSQLJobList_.push_back(dBTaskSQLJobListObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); } diff --git a/dms-enterprise/src/model/ListDDLPublishRecordsRequest.cc b/dms-enterprise/src/model/ListDDLPublishRecordsRequest.cc index b8a2e9e30..1cadd205a 100644 --- a/dms-enterprise/src/model/ListDDLPublishRecordsRequest.cc +++ b/dms-enterprise/src/model/ListDDLPublishRecordsRequest.cc @@ -1,51 +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::ListDDLPublishRecordsRequest; - -ListDDLPublishRecordsRequest::ListDDLPublishRecordsRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDDLPublishRecords") -{ - setMethod(HttpRequest::Method::Post); -} - -ListDDLPublishRecordsRequest::~ListDDLPublishRecordsRequest() -{} - -long ListDDLPublishRecordsRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListDDLPublishRecordsRequest; + +ListDDLPublishRecordsRequest::ListDDLPublishRecordsRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDDLPublishRecords") { + setMethod(HttpRequest::Method::Post); } -void ListDDLPublishRecordsRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +ListDDLPublishRecordsRequest::~ListDDLPublishRecordsRequest() {} + +long ListDDLPublishRecordsRequest::getOrderId() const { + return orderId_; } -long ListDDLPublishRecordsRequest::getTid()const -{ - return tid_; +void ListDDLPublishRecordsRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void ListDDLPublishRecordsRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long ListDDLPublishRecordsRequest::getTid() const { + return tid_; +} + +void ListDDLPublishRecordsRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/ListDDLPublishRecordsResult.cc b/dms-enterprise/src/model/ListDDLPublishRecordsResult.cc index 1b379f89d..4ae64fcf8 100644 --- a/dms-enterprise/src/model/ListDDLPublishRecordsResult.cc +++ b/dms-enterprise/src/model/ListDDLPublishRecordsResult.cc @@ -43,54 +43,54 @@ void ListDDLPublishRecordsResult::parse(const std::string &payload) for (auto valueDDLPublishRecordListDDLPublishRecord : allDDLPublishRecordListNode) { DDLPublishRecord dDLPublishRecordListObject; - if(!valueDDLPublishRecordListDDLPublishRecord["StatusDesc"].isNull()) - dDLPublishRecordListObject.statusDesc = valueDDLPublishRecordListDDLPublishRecord["StatusDesc"].asString(); if(!valueDDLPublishRecordListDDLPublishRecord["AuditStatus"].isNull()) dDLPublishRecordListObject.auditStatus = valueDDLPublishRecordListDDLPublishRecord["AuditStatus"].asString(); + if(!valueDDLPublishRecordListDDLPublishRecord["AuditExpireTime"].isNull()) + dDLPublishRecordListObject.auditExpireTime = valueDDLPublishRecordListDDLPublishRecord["AuditExpireTime"].asString(); if(!valueDDLPublishRecordListDDLPublishRecord["CreatorId"].isNull()) dDLPublishRecordListObject.creatorId = std::stol(valueDDLPublishRecordListDDLPublishRecord["CreatorId"].asString()); if(!valueDDLPublishRecordListDDLPublishRecord["Finality"].isNull()) dDLPublishRecordListObject.finality = valueDDLPublishRecordListDDLPublishRecord["Finality"].asString() == "true"; - if(!valueDDLPublishRecordListDDLPublishRecord["AuditExpireTime"].isNull()) - dDLPublishRecordListObject.auditExpireTime = valueDDLPublishRecordListDDLPublishRecord["AuditExpireTime"].asString(); - if(!valueDDLPublishRecordListDDLPublishRecord["WorkflowInstanceId"].isNull()) - dDLPublishRecordListObject.workflowInstanceId = std::stol(valueDDLPublishRecordListDDLPublishRecord["WorkflowInstanceId"].asString()); - if(!valueDDLPublishRecordListDDLPublishRecord["RiskLevel"].isNull()) - dDLPublishRecordListObject.riskLevel = valueDDLPublishRecordListDDLPublishRecord["RiskLevel"].asString(); if(!valueDDLPublishRecordListDDLPublishRecord["FinalityReason"].isNull()) dDLPublishRecordListObject.finalityReason = valueDDLPublishRecordListDDLPublishRecord["FinalityReason"].asString(); if(!valueDDLPublishRecordListDDLPublishRecord["PublishStatus"].isNull()) dDLPublishRecordListObject.publishStatus = valueDDLPublishRecordListDDLPublishRecord["PublishStatus"].asString(); + if(!valueDDLPublishRecordListDDLPublishRecord["RiskLevel"].isNull()) + dDLPublishRecordListObject.riskLevel = valueDDLPublishRecordListDDLPublishRecord["RiskLevel"].asString(); + if(!valueDDLPublishRecordListDDLPublishRecord["StatusDesc"].isNull()) + dDLPublishRecordListObject.statusDesc = valueDDLPublishRecordListDDLPublishRecord["StatusDesc"].asString(); + if(!valueDDLPublishRecordListDDLPublishRecord["WorkflowInstanceId"].isNull()) + dDLPublishRecordListObject.workflowInstanceId = std::stol(valueDDLPublishRecordListDDLPublishRecord["WorkflowInstanceId"].asString()); auto allPublishTaskInfoListNode = valueDDLPublishRecordListDDLPublishRecord["PublishTaskInfoList"]["PublishTaskInfo"]; for (auto valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo : allPublishTaskInfoListNode) { DDLPublishRecord::PublishTaskInfo publishTaskInfoListObject; + if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["DbId"].isNull()) + publishTaskInfoListObject.dbId = std::stol(valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["DbId"].asString()); + if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["Logic"].isNull()) + publishTaskInfoListObject.logic = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["Logic"].asString() == "true"; + if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PlanTime"].isNull()) + publishTaskInfoListObject.planTime = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PlanTime"].asString(); + if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PublishStrategy"].isNull()) + publishTaskInfoListObject.publishStrategy = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PublishStrategy"].asString(); if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["StatusDesc"].isNull()) publishTaskInfoListObject.statusDesc = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["StatusDesc"].asString(); if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["TaskJobStatus"].isNull()) publishTaskInfoListObject.taskJobStatus = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["TaskJobStatus"].asString(); - if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PublishStrategy"].isNull()) - publishTaskInfoListObject.publishStrategy = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PublishStrategy"].asString(); - if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["DbId"].isNull()) - publishTaskInfoListObject.dbId = std::stol(valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["DbId"].asString()); - if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PlanTime"].isNull()) - publishTaskInfoListObject.planTime = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PlanTime"].asString(); - if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["Logic"].isNull()) - publishTaskInfoListObject.logic = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["Logic"].asString() == "true"; auto allPublishJobListNode = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PublishJobList"]["PublishJob"]; for (auto valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob : allPublishJobListNode) { DDLPublishRecord::PublishTaskInfo::PublishJob publishJobListObject; - if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["StatusDesc"].isNull()) - publishJobListObject.statusDesc = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["StatusDesc"].asString(); - if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["TableName"].isNull()) - publishJobListObject.tableName = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["TableName"].asString(); - if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["Scripts"].isNull()) - publishJobListObject.scripts = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["Scripts"].asString(); - if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["TaskJobStatus"].isNull()) - publishJobListObject.taskJobStatus = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["TaskJobStatus"].asString(); if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["ExecuteCount"].isNull()) publishJobListObject.executeCount = std::stol(valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["ExecuteCount"].asString()); + if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["Scripts"].isNull()) + publishJobListObject.scripts = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["Scripts"].asString(); + if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["TableName"].isNull()) + publishJobListObject.tableName = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["TableName"].asString(); + if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["StatusDesc"].isNull()) + publishJobListObject.statusDesc = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["StatusDesc"].asString(); + if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["TaskJobStatus"].isNull()) + publishJobListObject.taskJobStatus = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["TaskJobStatus"].asString(); if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["DBTaskGroupId"].isNull()) publishJobListObject.dBTaskGroupId = std::stol(valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["DBTaskGroupId"].asString()); publishTaskInfoListObject.publishJobList.push_back(publishJobListObject); @@ -99,12 +99,12 @@ void ListDDLPublishRecordsResult::parse(const std::string &payload) } dDLPublishRecordList_.push_back(dDLPublishRecordListObject); } - 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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); } diff --git a/dms-enterprise/src/model/ListDatabaseUserPermssionsRequest.cc b/dms-enterprise/src/model/ListDatabaseUserPermssionsRequest.cc index a7ab7eaf9..2f4008d39 100644 --- a/dms-enterprise/src/model/ListDatabaseUserPermssionsRequest.cc +++ b/dms-enterprise/src/model/ListDatabaseUserPermssionsRequest.cc @@ -1,106 +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::ListDatabaseUserPermssionsRequest; - -ListDatabaseUserPermssionsRequest::ListDatabaseUserPermssionsRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDatabaseUserPermssions") -{ - setMethod(HttpRequest::Method::Post); -} - -ListDatabaseUserPermssionsRequest::~ListDatabaseUserPermssionsRequest() -{} - -long ListDatabaseUserPermssionsRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListDatabaseUserPermssionsRequest; + +ListDatabaseUserPermssionsRequest::ListDatabaseUserPermssionsRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDatabaseUserPermssions") { + setMethod(HttpRequest::Method::Post); } -void ListDatabaseUserPermssionsRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +ListDatabaseUserPermssionsRequest::~ListDatabaseUserPermssionsRequest() {} + +long ListDatabaseUserPermssionsRequest::getTid() const { + return tid_; } -int ListDatabaseUserPermssionsRequest::getPageNumber()const -{ - return pageNumber_; +void ListDatabaseUserPermssionsRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ListDatabaseUserPermssionsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListDatabaseUserPermssionsRequest::getPageNumber() const { + return pageNumber_; } -std::string ListDatabaseUserPermssionsRequest::getPermType()const -{ - return permType_; +void ListDatabaseUserPermssionsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListDatabaseUserPermssionsRequest::setPermType(const std::string& permType) -{ - permType_ = permType; - setParameter("PermType", permType); +std::string ListDatabaseUserPermssionsRequest::getPermType() const { + return permType_; } -std::string ListDatabaseUserPermssionsRequest::getDbId()const -{ - return dbId_; +void ListDatabaseUserPermssionsRequest::setPermType(const std::string &permType) { + permType_ = permType; + setParameter(std::string("PermType"), permType); } -void ListDatabaseUserPermssionsRequest::setDbId(const std::string& dbId) -{ - dbId_ = dbId; - setParameter("DbId", dbId); +std::string ListDatabaseUserPermssionsRequest::getDbId() const { + return dbId_; } -int ListDatabaseUserPermssionsRequest::getPageSize()const -{ - return pageSize_; +void ListDatabaseUserPermssionsRequest::setDbId(const std::string &dbId) { + dbId_ = dbId; + setParameter(std::string("DbId"), dbId); } -void ListDatabaseUserPermssionsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListDatabaseUserPermssionsRequest::getPageSize() const { + return pageSize_; } -bool ListDatabaseUserPermssionsRequest::getLogic()const -{ - return logic_; +void ListDatabaseUserPermssionsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListDatabaseUserPermssionsRequest::setLogic(bool logic) -{ - logic_ = logic; - setParameter("Logic", logic ? "true" : "false"); +bool ListDatabaseUserPermssionsRequest::getLogic() const { + return logic_; } -std::string ListDatabaseUserPermssionsRequest::getUserName()const -{ - return userName_; +void ListDatabaseUserPermssionsRequest::setLogic(bool logic) { + logic_ = logic; + setParameter(std::string("Logic"), logic ? "true" : "false"); } -void ListDatabaseUserPermssionsRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string ListDatabaseUserPermssionsRequest::getUserName() const { + return userName_; +} + +void ListDatabaseUserPermssionsRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/dms-enterprise/src/model/ListDatabaseUserPermssionsResult.cc b/dms-enterprise/src/model/ListDatabaseUserPermssionsResult.cc index 93e489321..281a9b2ea 100644 --- a/dms-enterprise/src/model/ListDatabaseUserPermssionsResult.cc +++ b/dms-enterprise/src/model/ListDatabaseUserPermssionsResult.cc @@ -43,50 +43,50 @@ void ListDatabaseUserPermssionsResult::parse(const std::string &payload) for (auto valueUserPermissionsUserPermission : allUserPermissionsNode) { UserPermission userPermissionsObject; + if(!valueUserPermissionsUserPermission["DbId"].isNull()) + userPermissionsObject.dbId = valueUserPermissionsUserPermission["DbId"].asString(); + if(!valueUserPermissionsUserPermission["TableName"].isNull()) + userPermissionsObject.tableName = valueUserPermissionsUserPermission["TableName"].asString(); + if(!valueUserPermissionsUserPermission["UserId"].isNull()) + userPermissionsObject.userId = valueUserPermissionsUserPermission["UserId"].asString(); + if(!valueUserPermissionsUserPermission["SchemaName"].isNull()) + userPermissionsObject.schemaName = valueUserPermissionsUserPermission["SchemaName"].asString(); + if(!valueUserPermissionsUserPermission["Logic"].isNull()) + userPermissionsObject.logic = valueUserPermissionsUserPermission["Logic"].asString() == "true"; + if(!valueUserPermissionsUserPermission["UserNickName"].isNull()) + userPermissionsObject.userNickName = valueUserPermissionsUserPermission["UserNickName"].asString(); + if(!valueUserPermissionsUserPermission["InstanceId"].isNull()) + userPermissionsObject.instanceId = valueUserPermissionsUserPermission["InstanceId"].asString(); + if(!valueUserPermissionsUserPermission["EnvType"].isNull()) + userPermissionsObject.envType = valueUserPermissionsUserPermission["EnvType"].asString(); + if(!valueUserPermissionsUserPermission["ColumnName"].isNull()) + userPermissionsObject.columnName = valueUserPermissionsUserPermission["ColumnName"].asString(); + if(!valueUserPermissionsUserPermission["DbType"].isNull()) + userPermissionsObject.dbType = valueUserPermissionsUserPermission["DbType"].asString(); + if(!valueUserPermissionsUserPermission["DsType"].isNull()) + userPermissionsObject.dsType = valueUserPermissionsUserPermission["DsType"].asString(); if(!valueUserPermissionsUserPermission["TableId"].isNull()) userPermissionsObject.tableId = valueUserPermissionsUserPermission["TableId"].asString(); if(!valueUserPermissionsUserPermission["SearchName"].isNull()) userPermissionsObject.searchName = valueUserPermissionsUserPermission["SearchName"].asString(); - if(!valueUserPermissionsUserPermission["InstanceId"].isNull()) - userPermissionsObject.instanceId = valueUserPermissionsUserPermission["InstanceId"].asString(); - if(!valueUserPermissionsUserPermission["DbType"].isNull()) - userPermissionsObject.dbType = valueUserPermissionsUserPermission["DbType"].asString(); - if(!valueUserPermissionsUserPermission["EnvType"].isNull()) - userPermissionsObject.envType = valueUserPermissionsUserPermission["EnvType"].asString(); - if(!valueUserPermissionsUserPermission["DsType"].isNull()) - userPermissionsObject.dsType = valueUserPermissionsUserPermission["DsType"].asString(); - if(!valueUserPermissionsUserPermission["ColumnName"].isNull()) - userPermissionsObject.columnName = valueUserPermissionsUserPermission["ColumnName"].asString(); - if(!valueUserPermissionsUserPermission["TableName"].isNull()) - userPermissionsObject.tableName = valueUserPermissionsUserPermission["TableName"].asString(); - if(!valueUserPermissionsUserPermission["UserNickName"].isNull()) - userPermissionsObject.userNickName = valueUserPermissionsUserPermission["UserNickName"].asString(); if(!valueUserPermissionsUserPermission["Alias"].isNull()) userPermissionsObject.alias = valueUserPermissionsUserPermission["Alias"].asString(); - if(!valueUserPermissionsUserPermission["UserId"].isNull()) - userPermissionsObject.userId = valueUserPermissionsUserPermission["UserId"].asString(); - if(!valueUserPermissionsUserPermission["DbId"].isNull()) - userPermissionsObject.dbId = valueUserPermissionsUserPermission["DbId"].asString(); - if(!valueUserPermissionsUserPermission["Logic"].isNull()) - userPermissionsObject.logic = valueUserPermissionsUserPermission["Logic"].asString() == "true"; - if(!valueUserPermissionsUserPermission["SchemaName"].isNull()) - userPermissionsObject.schemaName = valueUserPermissionsUserPermission["SchemaName"].asString(); auto allPermDetailsNode = valueUserPermissionsUserPermission["PermDetails"]["PermDetail"]; for (auto valueUserPermissionsUserPermissionPermDetailsPermDetail : allPermDetailsNode) { UserPermission::PermDetail permDetailsObject; - if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].isNull()) - permDetailsObject.expireDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].asString(); - if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].isNull()) - permDetailsObject.permType = valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].asString(); - if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].isNull()) - permDetailsObject.extraData = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].asString(); - if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].isNull()) - permDetailsObject.createDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].asString(); if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["OriginFrom"].isNull()) permDetailsObject.originFrom = valueUserPermissionsUserPermissionPermDetailsPermDetail["OriginFrom"].asString(); + if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].isNull()) + permDetailsObject.permType = valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].asString(); + if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].isNull()) + permDetailsObject.expireDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].asString(); + if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].isNull()) + permDetailsObject.createDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].asString(); if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["UserAccessId"].isNull()) permDetailsObject.userAccessId = valueUserPermissionsUserPermissionPermDetailsPermDetail["UserAccessId"].asString(); + if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].isNull()) + permDetailsObject.extraData = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].asString(); userPermissionsObject.permDetails.push_back(permDetailsObject); } userPermissions_.push_back(userPermissionsObject); diff --git a/dms-enterprise/src/model/ListDatabasesRequest.cc b/dms-enterprise/src/model/ListDatabasesRequest.cc index 1fd5d878e..cdc318901 100644 --- a/dms-enterprise/src/model/ListDatabasesRequest.cc +++ b/dms-enterprise/src/model/ListDatabasesRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::ListDatabasesRequest; - -ListDatabasesRequest::ListDatabasesRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDatabases") -{ - setMethod(HttpRequest::Method::Post); -} - -ListDatabasesRequest::~ListDatabasesRequest() -{} - -long ListDatabasesRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListDatabasesRequest; + +ListDatabasesRequest::ListDatabasesRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDatabases") { + setMethod(HttpRequest::Method::Post); } -void ListDatabasesRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +ListDatabasesRequest::~ListDatabasesRequest() {} + +long ListDatabasesRequest::getTid() const { + return tid_; } -int ListDatabasesRequest::getPageNumber()const -{ - return pageNumber_; +void ListDatabasesRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ListDatabasesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListDatabasesRequest::getPageNumber() const { + return pageNumber_; } -std::string ListDatabasesRequest::getInstanceId()const -{ - return instanceId_; +void ListDatabasesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListDatabasesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListDatabasesRequest::getInstanceId() const { + return instanceId_; } -int ListDatabasesRequest::getPageSize()const -{ - return pageSize_; +void ListDatabasesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ListDatabasesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListDatabasesRequest::getPageSize() const { + return pageSize_; +} + +void ListDatabasesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/dms-enterprise/src/model/ListDatabasesResult.cc b/dms-enterprise/src/model/ListDatabasesResult.cc index d8cd03ea0..5c76bd87c 100644 --- a/dms-enterprise/src/model/ListDatabasesResult.cc +++ b/dms-enterprise/src/model/ListDatabasesResult.cc @@ -43,40 +43,40 @@ void ListDatabasesResult::parse(const std::string &payload) for (auto valueDatabaseListDatabase : allDatabaseListNode) { Database databaseListObject; - if(!valueDatabaseListDatabase["SearchName"].isNull()) - databaseListObject.searchName = valueDatabaseListDatabase["SearchName"].asString(); + if(!valueDatabaseListDatabase["DatabaseId"].isNull()) + databaseListObject.databaseId = valueDatabaseListDatabase["DatabaseId"].asString(); + if(!valueDatabaseListDatabase["Host"].isNull()) + databaseListObject.host = valueDatabaseListDatabase["Host"].asString(); + if(!valueDatabaseListDatabase["CatalogName"].isNull()) + databaseListObject.catalogName = valueDatabaseListDatabase["CatalogName"].asString(); + if(!valueDatabaseListDatabase["DbaName"].isNull()) + databaseListObject.dbaName = valueDatabaseListDatabase["DbaName"].asString(); + if(!valueDatabaseListDatabase["State"].isNull()) + databaseListObject.state = valueDatabaseListDatabase["State"].asString(); + if(!valueDatabaseListDatabase["DbaId"].isNull()) + databaseListObject.dbaId = valueDatabaseListDatabase["DbaId"].asString(); + if(!valueDatabaseListDatabase["SchemaName"].isNull()) + databaseListObject.schemaName = valueDatabaseListDatabase["SchemaName"].asString(); if(!valueDatabaseListDatabase["InstanceId"].isNull()) databaseListObject.instanceId = valueDatabaseListDatabase["InstanceId"].asString(); if(!valueDatabaseListDatabase["Port"].isNull()) databaseListObject.port = std::stoi(valueDatabaseListDatabase["Port"].asString()); - if(!valueDatabaseListDatabase["Encoding"].isNull()) - databaseListObject.encoding = valueDatabaseListDatabase["Encoding"].asString(); - if(!valueDatabaseListDatabase["Host"].isNull()) - databaseListObject.host = valueDatabaseListDatabase["Host"].asString(); - if(!valueDatabaseListDatabase["DatabaseId"].isNull()) - databaseListObject.databaseId = valueDatabaseListDatabase["DatabaseId"].asString(); - if(!valueDatabaseListDatabase["DbType"].isNull()) - databaseListObject.dbType = valueDatabaseListDatabase["DbType"].asString(); if(!valueDatabaseListDatabase["EnvType"].isNull()) databaseListObject.envType = valueDatabaseListDatabase["EnvType"].asString(); if(!valueDatabaseListDatabase["Sid"].isNull()) databaseListObject.sid = valueDatabaseListDatabase["Sid"].asString(); - if(!valueDatabaseListDatabase["DbaName"].isNull()) - databaseListObject.dbaName = valueDatabaseListDatabase["DbaName"].asString(); - if(!valueDatabaseListDatabase["DbaId"].isNull()) - databaseListObject.dbaId = valueDatabaseListDatabase["DbaId"].asString(); - if(!valueDatabaseListDatabase["State"].isNull()) - databaseListObject.state = valueDatabaseListDatabase["State"].asString(); - if(!valueDatabaseListDatabase["CatalogName"].isNull()) - databaseListObject.catalogName = valueDatabaseListDatabase["CatalogName"].asString(); - if(!valueDatabaseListDatabase["SchemaName"].isNull()) - databaseListObject.schemaName = valueDatabaseListDatabase["SchemaName"].asString(); - auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; - for (auto value : allOwnerNameList) - databaseListObject.ownerNameList.push_back(value.asString()); + if(!valueDatabaseListDatabase["Encoding"].isNull()) + databaseListObject.encoding = valueDatabaseListDatabase["Encoding"].asString(); + if(!valueDatabaseListDatabase["DbType"].isNull()) + databaseListObject.dbType = valueDatabaseListDatabase["DbType"].asString(); + if(!valueDatabaseListDatabase["SearchName"].isNull()) + databaseListObject.searchName = valueDatabaseListDatabase["SearchName"].asString(); auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) databaseListObject.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + databaseListObject.ownerNameList.push_back(value.asString()); databaseList_.push_back(databaseListObject); } if(!value["TotalCount"].isNull()) diff --git a/dms-enterprise/src/model/ListIndexesRequest.cc b/dms-enterprise/src/model/ListIndexesRequest.cc index ffd701847..35465a4f1 100644 --- a/dms-enterprise/src/model/ListIndexesRequest.cc +++ b/dms-enterprise/src/model/ListIndexesRequest.cc @@ -1,62 +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::ListIndexesRequest; - -ListIndexesRequest::ListIndexesRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListIndexes") -{ - setMethod(HttpRequest::Method::Post); -} - -ListIndexesRequest::~ListIndexesRequest() -{} - -long ListIndexesRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListIndexesRequest; + +ListIndexesRequest::ListIndexesRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListIndexes") { + setMethod(HttpRequest::Method::Post); } -void ListIndexesRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +ListIndexesRequest::~ListIndexesRequest() {} + +long ListIndexesRequest::getTid() const { + return tid_; } -std::string ListIndexesRequest::getTableId()const -{ - return tableId_; +void ListIndexesRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ListIndexesRequest::setTableId(const std::string& tableId) -{ - tableId_ = tableId; - setParameter("TableId", tableId); +std::string ListIndexesRequest::getTableId() const { + return tableId_; } -bool ListIndexesRequest::getLogic()const -{ - return logic_; +void ListIndexesRequest::setTableId(const std::string &tableId) { + tableId_ = tableId; + setParameter(std::string("TableId"), tableId); } -void ListIndexesRequest::setLogic(bool logic) -{ - logic_ = logic; - setParameter("Logic", logic ? "true" : "false"); +bool ListIndexesRequest::getLogic() const { + return logic_; +} + +void ListIndexesRequest::setLogic(bool logic) { + logic_ = logic; + setParameter(std::string("Logic"), logic ? "true" : "false"); } diff --git a/dms-enterprise/src/model/ListIndexesResult.cc b/dms-enterprise/src/model/ListIndexesResult.cc index 08ec90a6b..4f00be893 100644 --- a/dms-enterprise/src/model/ListIndexesResult.cc +++ b/dms-enterprise/src/model/ListIndexesResult.cc @@ -43,16 +43,16 @@ void ListIndexesResult::parse(const std::string &payload) for (auto valueIndexListIndex : allIndexListNode) { Index indexListObject; - if(!valueIndexListIndex["TableId"].isNull()) - indexListObject.tableId = valueIndexListIndex["TableId"].asString(); if(!valueIndexListIndex["IndexName"].isNull()) indexListObject.indexName = valueIndexListIndex["IndexName"].asString(); + if(!valueIndexListIndex["IndexType"].isNull()) + indexListObject.indexType = valueIndexListIndex["IndexType"].asString(); + if(!valueIndexListIndex["TableId"].isNull()) + indexListObject.tableId = valueIndexListIndex["TableId"].asString(); if(!valueIndexListIndex["IndexId"].isNull()) indexListObject.indexId = valueIndexListIndex["IndexId"].asString(); if(!valueIndexListIndex["IndexComment"].isNull()) indexListObject.indexComment = valueIndexListIndex["IndexComment"].asString(); - if(!valueIndexListIndex["IndexType"].isNull()) - indexListObject.indexType = valueIndexListIndex["IndexType"].asString(); indexList_.push_back(indexListObject); } if(!value["ErrorCode"].isNull()) diff --git a/dms-enterprise/src/model/ListInstancesRequest.cc b/dms-enterprise/src/model/ListInstancesRequest.cc index 287693e04..425e0b7be 100644 --- a/dms-enterprise/src/model/ListInstancesRequest.cc +++ b/dms-enterprise/src/model/ListInstancesRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::ListInstancesRequest; - -ListInstancesRequest::ListInstancesRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -ListInstancesRequest::~ListInstancesRequest() -{} - -std::string ListInstancesRequest::getSearchKey()const -{ - return searchKey_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListInstancesRequest; + +ListInstancesRequest::ListInstancesRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListInstances") { + setMethod(HttpRequest::Method::Post); } -void ListInstancesRequest::setSearchKey(const std::string& searchKey) -{ - searchKey_ = searchKey; - setParameter("SearchKey", searchKey); +ListInstancesRequest::~ListInstancesRequest() {} + +std::string ListInstancesRequest::getSearchKey() const { + return searchKey_; } -long ListInstancesRequest::getTid()const -{ - return tid_; +void ListInstancesRequest::setSearchKey(const std::string &searchKey) { + searchKey_ = searchKey; + setParameter(std::string("SearchKey"), searchKey); } -void ListInstancesRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long ListInstancesRequest::getTid() const { + return tid_; } -std::string ListInstancesRequest::getInstanceState()const -{ - return instanceState_; +void ListInstancesRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ListInstancesRequest::setInstanceState(const std::string& instanceState) -{ - instanceState_ = instanceState; - setParameter("InstanceState", instanceState); +std::string ListInstancesRequest::getInstanceState() const { + return instanceState_; } -int ListInstancesRequest::getPageNumber()const -{ - return pageNumber_; +void ListInstancesRequest::setInstanceState(const std::string &instanceState) { + instanceState_ = instanceState; + setParameter(std::string("InstanceState"), instanceState); } -void ListInstancesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListInstancesRequest::getPageNumber() const { + return pageNumber_; } -std::string ListInstancesRequest::getNetType()const -{ - return netType_; +void ListInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListInstancesRequest::setNetType(const std::string& netType) -{ - netType_ = netType; - setParameter("NetType", netType); +std::string ListInstancesRequest::getNetType() const { + return netType_; } -std::string ListInstancesRequest::getDbType()const -{ - return dbType_; +void ListInstancesRequest::setNetType(const std::string &netType) { + netType_ = netType; + setParameter(std::string("NetType"), netType); } -void ListInstancesRequest::setDbType(const std::string& dbType) -{ - dbType_ = dbType; - setParameter("DbType", dbType); +std::string ListInstancesRequest::getDbType() const { + return dbType_; } -std::string ListInstancesRequest::getEnvType()const -{ - return envType_; +void ListInstancesRequest::setDbType(const std::string &dbType) { + dbType_ = dbType; + setParameter(std::string("DbType"), dbType); } -void ListInstancesRequest::setEnvType(const std::string& envType) -{ - envType_ = envType; - setParameter("EnvType", envType); +std::string ListInstancesRequest::getEnvType() const { + return envType_; } -std::string ListInstancesRequest::getInstanceSource()const -{ - return instanceSource_; +void ListInstancesRequest::setEnvType(const std::string &envType) { + envType_ = envType; + setParameter(std::string("EnvType"), envType); } -void ListInstancesRequest::setInstanceSource(const std::string& instanceSource) -{ - instanceSource_ = instanceSource; - setParameter("InstanceSource", instanceSource); +std::string ListInstancesRequest::getInstanceSource() const { + return instanceSource_; } -int ListInstancesRequest::getPageSize()const -{ - return pageSize_; +void ListInstancesRequest::setInstanceSource(const std::string &instanceSource) { + instanceSource_ = instanceSource; + setParameter(std::string("InstanceSource"), instanceSource); } -void ListInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListInstancesRequest::getPageSize() const { + return pageSize_; +} + +void ListInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/dms-enterprise/src/model/ListInstancesResult.cc b/dms-enterprise/src/model/ListInstancesResult.cc index cfc3881e5..a3846386f 100644 --- a/dms-enterprise/src/model/ListInstancesResult.cc +++ b/dms-enterprise/src/model/ListInstancesResult.cc @@ -43,56 +43,56 @@ void ListInstancesResult::parse(const std::string &payload) for (auto valueInstanceListInstance : allInstanceListNode) { Instance instanceListObject; - if(!valueInstanceListInstance["InstanceSource"].isNull()) - instanceListObject.instanceSource = valueInstanceListInstance["InstanceSource"].asString(); - if(!valueInstanceListInstance["InstanceId"].isNull()) - instanceListObject.instanceId = valueInstanceListInstance["InstanceId"].asString(); - if(!valueInstanceListInstance["DatabasePassword"].isNull()) - instanceListObject.databasePassword = valueInstanceListInstance["DatabasePassword"].asString(); + if(!valueInstanceListInstance["VpcId"].isNull()) + instanceListObject.vpcId = valueInstanceListInstance["VpcId"].asString(); + if(!valueInstanceListInstance["DatabaseUser"].isNull()) + instanceListObject.databaseUser = valueInstanceListInstance["DatabaseUser"].asString(); + if(!valueInstanceListInstance["DbaId"].isNull()) + instanceListObject.dbaId = valueInstanceListInstance["DbaId"].asString(); + if(!valueInstanceListInstance["UseDsql"].isNull()) + instanceListObject.useDsql = std::stoi(valueInstanceListInstance["UseDsql"].asString()); if(!valueInstanceListInstance["Port"].isNull()) instanceListObject.port = std::stoi(valueInstanceListInstance["Port"].asString()); - if(!valueInstanceListInstance["Host"].isNull()) - instanceListObject.host = valueInstanceListInstance["Host"].asString(); - if(!valueInstanceListInstance["ExportTimeout"].isNull()) - instanceListObject.exportTimeout = std::stoi(valueInstanceListInstance["ExportTimeout"].asString()); - if(!valueInstanceListInstance["DdlOnline"].isNull()) - instanceListObject.ddlOnline = std::stoi(valueInstanceListInstance["DdlOnline"].asString()); + if(!valueInstanceListInstance["EcsInstanceId"].isNull()) + instanceListObject.ecsInstanceId = valueInstanceListInstance["EcsInstanceId"].asString(); if(!valueInstanceListInstance["EnvType"].isNull()) instanceListObject.envType = valueInstanceListInstance["EnvType"].asString(); if(!valueInstanceListInstance["Sid"].isNull()) instanceListObject.sid = valueInstanceListInstance["Sid"].asString(); - if(!valueInstanceListInstance["UseDsql"].isNull()) - instanceListObject.useDsql = std::stoi(valueInstanceListInstance["UseDsql"].asString()); - if(!valueInstanceListInstance["EcsInstanceId"].isNull()) - instanceListObject.ecsInstanceId = valueInstanceListInstance["EcsInstanceId"].asString(); - if(!valueInstanceListInstance["DbaId"].isNull()) - instanceListObject.dbaId = valueInstanceListInstance["DbaId"].asString(); - if(!valueInstanceListInstance["VpcId"].isNull()) - instanceListObject.vpcId = valueInstanceListInstance["VpcId"].asString(); - if(!valueInstanceListInstance["EcsRegion"].isNull()) - instanceListObject.ecsRegion = valueInstanceListInstance["EcsRegion"].asString(); - if(!valueInstanceListInstance["InstanceAlias"].isNull()) - instanceListObject.instanceAlias = valueInstanceListInstance["InstanceAlias"].asString(); - if(!valueInstanceListInstance["State"].isNull()) - instanceListObject.state = valueInstanceListInstance["State"].asString(); - if(!valueInstanceListInstance["DatabaseUser"].isNull()) - instanceListObject.databaseUser = valueInstanceListInstance["DatabaseUser"].asString(); - if(!valueInstanceListInstance["InstanceType"].isNull()) - instanceListObject.instanceType = valueInstanceListInstance["InstanceType"].asString(); - if(!valueInstanceListInstance["DbaNickName"].isNull()) - instanceListObject.dbaNickName = valueInstanceListInstance["DbaNickName"].asString(); - if(!valueInstanceListInstance["DataLinkName"].isNull()) - instanceListObject.dataLinkName = valueInstanceListInstance["DataLinkName"].asString(); - if(!valueInstanceListInstance["QueryTimeout"].isNull()) - instanceListObject.queryTimeout = std::stoi(valueInstanceListInstance["QueryTimeout"].asString()); if(!valueInstanceListInstance["SafeRuleId"].isNull()) instanceListObject.safeRuleId = valueInstanceListInstance["SafeRuleId"].asString(); - auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; - for (auto value : allOwnerNameList) - instanceListObject.ownerNameList.push_back(value.asString()); + if(!valueInstanceListInstance["DbaNickName"].isNull()) + instanceListObject.dbaNickName = valueInstanceListInstance["DbaNickName"].asString(); + if(!valueInstanceListInstance["QueryTimeout"].isNull()) + instanceListObject.queryTimeout = std::stoi(valueInstanceListInstance["QueryTimeout"].asString()); + if(!valueInstanceListInstance["InstanceSource"].isNull()) + instanceListObject.instanceSource = valueInstanceListInstance["InstanceSource"].asString(); + if(!valueInstanceListInstance["Host"].isNull()) + instanceListObject.host = valueInstanceListInstance["Host"].asString(); + if(!valueInstanceListInstance["State"].isNull()) + instanceListObject.state = valueInstanceListInstance["State"].asString(); + if(!valueInstanceListInstance["DataLinkName"].isNull()) + instanceListObject.dataLinkName = valueInstanceListInstance["DataLinkName"].asString(); + if(!valueInstanceListInstance["ExportTimeout"].isNull()) + instanceListObject.exportTimeout = std::stoi(valueInstanceListInstance["ExportTimeout"].asString()); + if(!valueInstanceListInstance["InstanceId"].isNull()) + instanceListObject.instanceId = valueInstanceListInstance["InstanceId"].asString(); + if(!valueInstanceListInstance["InstanceType"].isNull()) + instanceListObject.instanceType = valueInstanceListInstance["InstanceType"].asString(); + if(!valueInstanceListInstance["DatabasePassword"].isNull()) + instanceListObject.databasePassword = valueInstanceListInstance["DatabasePassword"].asString(); + if(!valueInstanceListInstance["InstanceAlias"].isNull()) + instanceListObject.instanceAlias = valueInstanceListInstance["InstanceAlias"].asString(); + if(!valueInstanceListInstance["DdlOnline"].isNull()) + instanceListObject.ddlOnline = std::stoi(valueInstanceListInstance["DdlOnline"].asString()); + if(!valueInstanceListInstance["EcsRegion"].isNull()) + instanceListObject.ecsRegion = valueInstanceListInstance["EcsRegion"].asString(); auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) instanceListObject.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + instanceListObject.ownerNameList.push_back(value.asString()); instanceList_.push_back(instanceListObject); } if(!value["TotalCount"].isNull()) diff --git a/dms-enterprise/src/model/ListLogicDatabasesRequest.cc b/dms-enterprise/src/model/ListLogicDatabasesRequest.cc index 71cd4e986..02d0eaa93 100644 --- a/dms-enterprise/src/model/ListLogicDatabasesRequest.cc +++ b/dms-enterprise/src/model/ListLogicDatabasesRequest.cc @@ -1,62 +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::ListLogicDatabasesRequest; - -ListLogicDatabasesRequest::ListLogicDatabasesRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListLogicDatabases") -{ - setMethod(HttpRequest::Method::Post); -} - -ListLogicDatabasesRequest::~ListLogicDatabasesRequest() -{} - -long ListLogicDatabasesRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListLogicDatabasesRequest; + +ListLogicDatabasesRequest::ListLogicDatabasesRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListLogicDatabases") { + setMethod(HttpRequest::Method::Post); } -void ListLogicDatabasesRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +ListLogicDatabasesRequest::~ListLogicDatabasesRequest() {} + +long ListLogicDatabasesRequest::getTid() const { + return tid_; } -int ListLogicDatabasesRequest::getPageNumber()const -{ - return pageNumber_; +void ListLogicDatabasesRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ListLogicDatabasesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListLogicDatabasesRequest::getPageNumber() const { + return pageNumber_; } -int ListLogicDatabasesRequest::getPageSize()const -{ - return pageSize_; +void ListLogicDatabasesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListLogicDatabasesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListLogicDatabasesRequest::getPageSize() const { + return pageSize_; +} + +void ListLogicDatabasesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/dms-enterprise/src/model/ListLogicDatabasesResult.cc b/dms-enterprise/src/model/ListLogicDatabasesResult.cc index ab14843c0..12b2e62bd 100644 --- a/dms-enterprise/src/model/ListLogicDatabasesResult.cc +++ b/dms-enterprise/src/model/ListLogicDatabasesResult.cc @@ -43,24 +43,24 @@ void ListLogicDatabasesResult::parse(const std::string &payload) for (auto valueLogicDatabaseListLogicDatabase : allLogicDatabaseListNode) { LogicDatabase logicDatabaseListObject; - if(!valueLogicDatabaseListLogicDatabase["SearchName"].isNull()) - logicDatabaseListObject.searchName = valueLogicDatabaseListLogicDatabase["SearchName"].asString(); if(!valueLogicDatabaseListLogicDatabase["DatabaseId"].isNull()) logicDatabaseListObject.databaseId = valueLogicDatabaseListLogicDatabase["DatabaseId"].asString(); - if(!valueLogicDatabaseListLogicDatabase["Logic"].isNull()) - logicDatabaseListObject.logic = valueLogicDatabaseListLogicDatabase["Logic"].asString() == "true"; - if(!valueLogicDatabaseListLogicDatabase["EnvType"].isNull()) - logicDatabaseListObject.envType = valueLogicDatabaseListLogicDatabase["EnvType"].asString(); - if(!valueLogicDatabaseListLogicDatabase["SchemaName"].isNull()) - logicDatabaseListObject.schemaName = valueLogicDatabaseListLogicDatabase["SchemaName"].asString(); if(!valueLogicDatabaseListLogicDatabase["DbType"].isNull()) logicDatabaseListObject.dbType = valueLogicDatabaseListLogicDatabase["DbType"].asString(); - auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; - for (auto value : allOwnerNameList) - logicDatabaseListObject.ownerNameList.push_back(value.asString()); + if(!valueLogicDatabaseListLogicDatabase["Logic"].isNull()) + logicDatabaseListObject.logic = valueLogicDatabaseListLogicDatabase["Logic"].asString() == "true"; + if(!valueLogicDatabaseListLogicDatabase["SchemaName"].isNull()) + logicDatabaseListObject.schemaName = valueLogicDatabaseListLogicDatabase["SchemaName"].asString(); + if(!valueLogicDatabaseListLogicDatabase["SearchName"].isNull()) + logicDatabaseListObject.searchName = valueLogicDatabaseListLogicDatabase["SearchName"].asString(); + if(!valueLogicDatabaseListLogicDatabase["EnvType"].isNull()) + logicDatabaseListObject.envType = valueLogicDatabaseListLogicDatabase["EnvType"].asString(); auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) logicDatabaseListObject.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + logicDatabaseListObject.ownerNameList.push_back(value.asString()); logicDatabaseList_.push_back(logicDatabaseListObject); } if(!value["TotalCount"].isNull()) diff --git a/dms-enterprise/src/model/ListLogicTablesRequest.cc b/dms-enterprise/src/model/ListLogicTablesRequest.cc index e00da5e93..0a0d444d4 100644 --- a/dms-enterprise/src/model/ListLogicTablesRequest.cc +++ b/dms-enterprise/src/model/ListLogicTablesRequest.cc @@ -1,95 +1,81 @@ /* * 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::ListLogicTablesRequest; - -ListLogicTablesRequest::ListLogicTablesRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListLogicTables") -{ - setMethod(HttpRequest::Method::Post); -} - -ListLogicTablesRequest::~ListLogicTablesRequest() -{} - -std::string ListLogicTablesRequest::getSearchName()const -{ - return searchName_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListLogicTablesRequest; + +ListLogicTablesRequest::ListLogicTablesRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListLogicTables") { + setMethod(HttpRequest::Method::Post); } -void ListLogicTablesRequest::setSearchName(const std::string& searchName) -{ - searchName_ = searchName; - setParameter("SearchName", searchName); +ListLogicTablesRequest::~ListLogicTablesRequest() {} + +std::string ListLogicTablesRequest::getSearchName() const { + return searchName_; } -bool ListLogicTablesRequest::getReturnGuid()const -{ - return returnGuid_; +void ListLogicTablesRequest::setSearchName(const std::string &searchName) { + searchName_ = searchName; + setParameter(std::string("SearchName"), searchName); } -void ListLogicTablesRequest::setReturnGuid(bool returnGuid) -{ - returnGuid_ = returnGuid; - setParameter("ReturnGuid", returnGuid ? "true" : "false"); +bool ListLogicTablesRequest::getReturnGuid() const { + return returnGuid_; } -long ListLogicTablesRequest::getTid()const -{ - return tid_; +void ListLogicTablesRequest::setReturnGuid(bool returnGuid) { + returnGuid_ = returnGuid; + setParameter(std::string("ReturnGuid"), returnGuid ? "true" : "false"); } -void ListLogicTablesRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long ListLogicTablesRequest::getTid() const { + return tid_; } -int ListLogicTablesRequest::getPageNumber()const -{ - return pageNumber_; +void ListLogicTablesRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ListLogicTablesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListLogicTablesRequest::getPageNumber() const { + return pageNumber_; } -int ListLogicTablesRequest::getPageSize()const -{ - return pageSize_; +void ListLogicTablesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListLogicTablesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListLogicTablesRequest::getPageSize() const { + return pageSize_; } -std::string ListLogicTablesRequest::getDatabaseId()const -{ - return databaseId_; +void ListLogicTablesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListLogicTablesRequest::setDatabaseId(const std::string& databaseId) -{ - databaseId_ = databaseId; - setParameter("DatabaseId", databaseId); +std::string ListLogicTablesRequest::getDatabaseId() const { + return databaseId_; +} + +void ListLogicTablesRequest::setDatabaseId(const std::string &databaseId) { + databaseId_ = databaseId; + setParameter(std::string("DatabaseId"), databaseId); } diff --git a/dms-enterprise/src/model/ListLogicTablesResult.cc b/dms-enterprise/src/model/ListLogicTablesResult.cc index 2c60e3e54..b07cac832 100644 --- a/dms-enterprise/src/model/ListLogicTablesResult.cc +++ b/dms-enterprise/src/model/ListLogicTablesResult.cc @@ -43,28 +43,28 @@ void ListLogicTablesResult::parse(const std::string &payload) for (auto valueLogicTableListLogicTable : allLogicTableListNode) { LogicTable logicTableListObject; - if(!valueLogicTableListLogicTable["TableId"].isNull()) - logicTableListObject.tableId = valueLogicTableListLogicTable["TableId"].asString(); - if(!valueLogicTableListLogicTable["TableName"].isNull()) - logicTableListObject.tableName = valueLogicTableListLogicTable["TableName"].asString(); - if(!valueLogicTableListLogicTable["TableGuid"].isNull()) - logicTableListObject.tableGuid = valueLogicTableListLogicTable["TableGuid"].asString(); - if(!valueLogicTableListLogicTable["TableExpr"].isNull()) - logicTableListObject.tableExpr = valueLogicTableListLogicTable["TableExpr"].asString(); - if(!valueLogicTableListLogicTable["TableCount"].isNull()) - logicTableListObject.tableCount = valueLogicTableListLogicTable["TableCount"].asString(); if(!valueLogicTableListLogicTable["DatabaseId"].isNull()) logicTableListObject.databaseId = valueLogicTableListLogicTable["DatabaseId"].asString(); - if(!valueLogicTableListLogicTable["Logic"].isNull()) - logicTableListObject.logic = valueLogicTableListLogicTable["Logic"].asString() == "true"; + if(!valueLogicTableListLogicTable["TableName"].isNull()) + logicTableListObject.tableName = valueLogicTableListLogicTable["TableName"].asString(); + if(!valueLogicTableListLogicTable["TableCount"].isNull()) + logicTableListObject.tableCount = valueLogicTableListLogicTable["TableCount"].asString(); if(!valueLogicTableListLogicTable["SchemaName"].isNull()) logicTableListObject.schemaName = valueLogicTableListLogicTable["SchemaName"].asString(); - auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; - for (auto value : allOwnerNameList) - logicTableListObject.ownerNameList.push_back(value.asString()); + if(!valueLogicTableListLogicTable["Logic"].isNull()) + logicTableListObject.logic = valueLogicTableListLogicTable["Logic"].asString() == "true"; + if(!valueLogicTableListLogicTable["TableExpr"].isNull()) + logicTableListObject.tableExpr = valueLogicTableListLogicTable["TableExpr"].asString(); + if(!valueLogicTableListLogicTable["TableGuid"].isNull()) + logicTableListObject.tableGuid = valueLogicTableListLogicTable["TableGuid"].asString(); + if(!valueLogicTableListLogicTable["TableId"].isNull()) + logicTableListObject.tableId = valueLogicTableListLogicTable["TableId"].asString(); auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) logicTableListObject.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + logicTableListObject.ownerNameList.push_back(value.asString()); logicTableList_.push_back(logicTableListObject); } if(!value["TotalCount"].isNull()) diff --git a/dms-enterprise/src/model/ListOrdersRequest.cc b/dms-enterprise/src/model/ListOrdersRequest.cc index 4cdda38b2..a748dc030 100644 --- a/dms-enterprise/src/model/ListOrdersRequest.cc +++ b/dms-enterprise/src/model/ListOrdersRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::ListOrdersRequest; - -ListOrdersRequest::ListOrdersRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListOrders") -{ - setMethod(HttpRequest::Method::Post); -} - -ListOrdersRequest::~ListOrdersRequest() -{} - -std::string ListOrdersRequest::getOrderStatus()const -{ - return orderStatus_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListOrdersRequest; + +ListOrdersRequest::ListOrdersRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListOrders") { + setMethod(HttpRequest::Method::Post); } -void ListOrdersRequest::setOrderStatus(const std::string& orderStatus) -{ - orderStatus_ = orderStatus; - setParameter("OrderStatus", orderStatus); +ListOrdersRequest::~ListOrdersRequest() {} + +std::string ListOrdersRequest::getOrderStatus() const { + return orderStatus_; } -std::string ListOrdersRequest::getSearchContent()const -{ - return searchContent_; +void ListOrdersRequest::setOrderStatus(const std::string &orderStatus) { + orderStatus_ = orderStatus; + setParameter(std::string("OrderStatus"), orderStatus); } -void ListOrdersRequest::setSearchContent(const std::string& searchContent) -{ - searchContent_ = searchContent; - setParameter("SearchContent", searchContent); +std::string ListOrdersRequest::getSearchContent() const { + return searchContent_; } -std::string ListOrdersRequest::getSearchDateType()const -{ - return searchDateType_; +void ListOrdersRequest::setSearchContent(const std::string &searchContent) { + searchContent_ = searchContent; + setParameter(std::string("SearchContent"), searchContent); } -void ListOrdersRequest::setSearchDateType(const std::string& searchDateType) -{ - searchDateType_ = searchDateType; - setParameter("SearchDateType", searchDateType); +std::string ListOrdersRequest::getSearchDateType() const { + return searchDateType_; } -std::string ListOrdersRequest::getEndTime()const -{ - return endTime_; +void ListOrdersRequest::setSearchDateType(const std::string &searchDateType) { + searchDateType_ = searchDateType; + setParameter(std::string("SearchDateType"), searchDateType); } -void ListOrdersRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string ListOrdersRequest::getEndTime() const { + return endTime_; } -std::string ListOrdersRequest::getStartTime()const -{ - return startTime_; +void ListOrdersRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void ListOrdersRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string ListOrdersRequest::getStartTime() const { + return startTime_; } -long ListOrdersRequest::getTid()const -{ - return tid_; +void ListOrdersRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void ListOrdersRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long ListOrdersRequest::getTid() const { + return tid_; } -int ListOrdersRequest::getPageNumber()const -{ - return pageNumber_; +void ListOrdersRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ListOrdersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListOrdersRequest::getPageNumber() const { + return pageNumber_; } -std::string ListOrdersRequest::getPluginType()const -{ - return pluginType_; +void ListOrdersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListOrdersRequest::setPluginType(const std::string& pluginType) -{ - pluginType_ = pluginType; - setParameter("PluginType", pluginType); +std::string ListOrdersRequest::getPluginType() const { + return pluginType_; } -int ListOrdersRequest::getPageSize()const -{ - return pageSize_; +void ListOrdersRequest::setPluginType(const std::string &pluginType) { + pluginType_ = pluginType; + setParameter(std::string("PluginType"), pluginType); } -void ListOrdersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListOrdersRequest::getPageSize() const { + return pageSize_; } -std::string ListOrdersRequest::getOrderResultType()const -{ - return orderResultType_; +void ListOrdersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListOrdersRequest::setOrderResultType(const std::string& orderResultType) -{ - orderResultType_ = orderResultType; - setParameter("OrderResultType", orderResultType); +std::string ListOrdersRequest::getOrderResultType() const { + return orderResultType_; +} + +void ListOrdersRequest::setOrderResultType(const std::string &orderResultType) { + orderResultType_ = orderResultType; + setParameter(std::string("OrderResultType"), orderResultType); } diff --git a/dms-enterprise/src/model/ListOrdersResult.cc b/dms-enterprise/src/model/ListOrdersResult.cc index 89e2f5d64..593a7441a 100644 --- a/dms-enterprise/src/model/ListOrdersResult.cc +++ b/dms-enterprise/src/model/ListOrdersResult.cc @@ -43,24 +43,24 @@ void ListOrdersResult::parse(const std::string &payload) for (auto valueOrdersOrder : allOrdersNode) { Order ordersObject; - if(!valueOrdersOrder["StatusDesc"].isNull()) - ordersObject.statusDesc = valueOrdersOrder["StatusDesc"].asString(); if(!valueOrdersOrder["Comment"].isNull()) ordersObject.comment = valueOrdersOrder["Comment"].asString(); + if(!valueOrdersOrder["LastModifyTime"].isNull()) + ordersObject.lastModifyTime = valueOrdersOrder["LastModifyTime"].asString(); + if(!valueOrdersOrder["StatusCode"].isNull()) + ordersObject.statusCode = valueOrdersOrder["StatusCode"].asString(); if(!valueOrdersOrder["CreateTime"].isNull()) ordersObject.createTime = valueOrdersOrder["CreateTime"].asString(); if(!valueOrdersOrder["Committer"].isNull()) ordersObject.committer = valueOrdersOrder["Committer"].asString(); - if(!valueOrdersOrder["OrderId"].isNull()) - ordersObject.orderId = std::stol(valueOrdersOrder["OrderId"].asString()); - if(!valueOrdersOrder["LastModifyTime"].isNull()) - ordersObject.lastModifyTime = valueOrdersOrder["LastModifyTime"].asString(); - if(!valueOrdersOrder["PluginType"].isNull()) - ordersObject.pluginType = valueOrdersOrder["PluginType"].asString(); if(!valueOrdersOrder["CommitterId"].isNull()) ordersObject.committerId = std::stol(valueOrdersOrder["CommitterId"].asString()); - if(!valueOrdersOrder["StatusCode"].isNull()) - ordersObject.statusCode = valueOrdersOrder["StatusCode"].asString(); + if(!valueOrdersOrder["StatusDesc"].isNull()) + ordersObject.statusDesc = valueOrdersOrder["StatusDesc"].asString(); + if(!valueOrdersOrder["PluginType"].isNull()) + ordersObject.pluginType = valueOrdersOrder["PluginType"].asString(); + if(!valueOrdersOrder["OrderId"].isNull()) + ordersObject.orderId = std::stol(valueOrdersOrder["OrderId"].asString()); orders_.push_back(ordersObject); } if(!value["TotalCount"].isNull()) diff --git a/dms-enterprise/src/model/ListSQLReviewOriginSQLRequest.cc b/dms-enterprise/src/model/ListSQLReviewOriginSQLRequest.cc new file mode 100644 index 000000000..ca5c0767a --- /dev/null +++ b/dms-enterprise/src/model/ListSQLReviewOriginSQLRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListSQLReviewOriginSQLRequest; + +ListSQLReviewOriginSQLRequest::ListSQLReviewOriginSQLRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListSQLReviewOriginSQL") { + setMethod(HttpRequest::Method::Post); +} + +ListSQLReviewOriginSQLRequest::~ListSQLReviewOriginSQLRequest() {} + +long ListSQLReviewOriginSQLRequest::getOrderId() const { + return orderId_; +} + +void ListSQLReviewOriginSQLRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); +} + +ListSQLReviewOriginSQLRequest::OrderActionDetail ListSQLReviewOriginSQLRequest::getOrderActionDetail() const { + return orderActionDetail_; +} + +void ListSQLReviewOriginSQLRequest::setOrderActionDetail(const ListSQLReviewOriginSQLRequest::OrderActionDetail &orderActionDetail) { + orderActionDetail_ = orderActionDetail; + setParameter(std::string("OrderActionDetail") + ".CheckStatusResult", orderActionDetail.checkStatusResult); + setParameter(std::string("OrderActionDetail") + ".SQLReviewResult", orderActionDetail.sQLReviewResult); + setParameter(std::string("OrderActionDetail") + ".Page.PageSize", std::to_string(orderActionDetail.page.pageSize)); + setParameter(std::string("OrderActionDetail") + ".Page.PageNumber", std::to_string(orderActionDetail.page.pageNumber)); + setParameter(std::string("OrderActionDetail") + ".FileId", std::to_string(orderActionDetail.fileId)); +} + +long ListSQLReviewOriginSQLRequest::getTid() const { + return tid_; +} + +void ListSQLReviewOriginSQLRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +std::string ListSQLReviewOriginSQLRequest::getOrderActionName() const { + return orderActionName_; +} + +void ListSQLReviewOriginSQLRequest::setOrderActionName(const std::string &orderActionName) { + orderActionName_ = orderActionName; + setParameter(std::string("OrderActionName"), orderActionName); +} + diff --git a/dms-enterprise/src/model/ListSQLReviewOriginSQLResult.cc b/dms-enterprise/src/model/ListSQLReviewOriginSQLResult.cc new file mode 100644 index 000000000..b8f6be670 --- /dev/null +++ b/dms-enterprise/src/model/ListSQLReviewOriginSQLResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListSQLReviewOriginSQLResult::ListSQLReviewOriginSQLResult() : + ServiceResult() +{} + +ListSQLReviewOriginSQLResult::ListSQLReviewOriginSQLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSQLReviewOriginSQLResult::~ListSQLReviewOriginSQLResult() +{} + +void ListSQLReviewOriginSQLResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allOriginSQLListNode = value["OriginSQLList"]["OriginSQLListItem"]; + for (auto valueOriginSQLListOriginSQLListItem : allOriginSQLListNode) + { + OriginSQLListItem originSQLListObject; + if(!valueOriginSQLListOriginSQLListItem["SQLId"].isNull()) + originSQLListObject.sQLId = std::stol(valueOriginSQLListOriginSQLListItem["SQLId"].asString()); + if(!valueOriginSQLListOriginSQLListItem["FileId"].isNull()) + originSQLListObject.fileId = std::stol(valueOriginSQLListOriginSQLListItem["FileId"].asString()); + if(!valueOriginSQLListOriginSQLListItem["FileName"].isNull()) + originSQLListObject.fileName = valueOriginSQLListOriginSQLListItem["FileName"].asString(); + if(!valueOriginSQLListOriginSQLListItem["SQLContent"].isNull()) + originSQLListObject.sQLContent = valueOriginSQLListOriginSQLListItem["SQLContent"].asString(); + if(!valueOriginSQLListOriginSQLListItem["CheckStatus"].isNull()) + originSQLListObject.checkStatus = valueOriginSQLListOriginSQLListItem["CheckStatus"].asString(); + if(!valueOriginSQLListOriginSQLListItem["StatusDesc"].isNull()) + originSQLListObject.statusDesc = valueOriginSQLListOriginSQLListItem["StatusDesc"].asString(); + if(!valueOriginSQLListOriginSQLListItem["CheckedTime"].isNull()) + originSQLListObject.checkedTime = valueOriginSQLListOriginSQLListItem["CheckedTime"].asString(); + originSQLList_.push_back(originSQLListObject); + } + 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"; + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListSQLReviewOriginSQLResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListSQLReviewOriginSQLResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListSQLReviewOriginSQLResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::vector ListSQLReviewOriginSQLResult::getOriginSQLList()const +{ + return originSQLList_; +} + +bool ListSQLReviewOriginSQLResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListSensitiveColumnsDetailRequest.cc b/dms-enterprise/src/model/ListSensitiveColumnsDetailRequest.cc index b1cf3748e..dcf8bd3c8 100644 --- a/dms-enterprise/src/model/ListSensitiveColumnsDetailRequest.cc +++ b/dms-enterprise/src/model/ListSensitiveColumnsDetailRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::ListSensitiveColumnsDetailRequest; - -ListSensitiveColumnsDetailRequest::ListSensitiveColumnsDetailRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListSensitiveColumnsDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -ListSensitiveColumnsDetailRequest::~ListSensitiveColumnsDetailRequest() -{} - -std::string ListSensitiveColumnsDetailRequest::getSchemaName()const -{ - return schemaName_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListSensitiveColumnsDetailRequest; + +ListSensitiveColumnsDetailRequest::ListSensitiveColumnsDetailRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListSensitiveColumnsDetail") { + setMethod(HttpRequest::Method::Post); } -void ListSensitiveColumnsDetailRequest::setSchemaName(const std::string& schemaName) -{ - schemaName_ = schemaName; - setParameter("SchemaName", schemaName); +ListSensitiveColumnsDetailRequest::~ListSensitiveColumnsDetailRequest() {} + +std::string ListSensitiveColumnsDetailRequest::getSchemaName() const { + return schemaName_; } -std::string ListSensitiveColumnsDetailRequest::getColumnName()const -{ - return columnName_; +void ListSensitiveColumnsDetailRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); } -void ListSensitiveColumnsDetailRequest::setColumnName(const std::string& columnName) -{ - columnName_ = columnName; - setParameter("ColumnName", columnName); +std::string ListSensitiveColumnsDetailRequest::getColumnName() const { + return columnName_; } -long ListSensitiveColumnsDetailRequest::getTid()const -{ - return tid_; +void ListSensitiveColumnsDetailRequest::setColumnName(const std::string &columnName) { + columnName_ = columnName; + setParameter(std::string("ColumnName"), columnName); } -void ListSensitiveColumnsDetailRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long ListSensitiveColumnsDetailRequest::getTid() const { + return tid_; } -std::string ListSensitiveColumnsDetailRequest::getTableName()const -{ - return tableName_; +void ListSensitiveColumnsDetailRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ListSensitiveColumnsDetailRequest::setTableName(const std::string& tableName) -{ - tableName_ = tableName; - setParameter("TableName", tableName); +std::string ListSensitiveColumnsDetailRequest::getTableName() const { + return tableName_; +} + +void ListSensitiveColumnsDetailRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); } diff --git a/dms-enterprise/src/model/ListSensitiveColumnsDetailResult.cc b/dms-enterprise/src/model/ListSensitiveColumnsDetailResult.cc index ce9b44792..5216dca86 100644 --- a/dms-enterprise/src/model/ListSensitiveColumnsDetailResult.cc +++ b/dms-enterprise/src/model/ListSensitiveColumnsDetailResult.cc @@ -43,26 +43,26 @@ void ListSensitiveColumnsDetailResult::parse(const std::string &payload) for (auto valueSensitiveColumnsDetailListSensitiveColumnsDetail : allSensitiveColumnsDetailListNode) { SensitiveColumnsDetail sensitiveColumnsDetailListObject; - if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["TableName"].isNull()) - sensitiveColumnsDetailListObject.tableName = valueSensitiveColumnsDetailListSensitiveColumnsDetail["TableName"].asString(); - if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["ColumnName"].isNull()) - sensitiveColumnsDetailListObject.columnName = valueSensitiveColumnsDetailListSensitiveColumnsDetail["ColumnName"].asString(); - if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["ColumnType"].isNull()) - sensitiveColumnsDetailListObject.columnType = valueSensitiveColumnsDetailListSensitiveColumnsDetail["ColumnType"].asString(); - if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["SearchName"].isNull()) - sensitiveColumnsDetailListObject.searchName = valueSensitiveColumnsDetailListSensitiveColumnsDetail["SearchName"].asString(); - if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["ColumnDescription"].isNull()) - sensitiveColumnsDetailListObject.columnDescription = valueSensitiveColumnsDetailListSensitiveColumnsDetail["ColumnDescription"].asString(); if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["DbId"].isNull()) sensitiveColumnsDetailListObject.dbId = std::stol(valueSensitiveColumnsDetailListSensitiveColumnsDetail["DbId"].asString()); - if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["Logic"].isNull()) - sensitiveColumnsDetailListObject.logic = valueSensitiveColumnsDetailListSensitiveColumnsDetail["Logic"].asString() == "true"; - if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["EnvType"].isNull()) - sensitiveColumnsDetailListObject.envType = valueSensitiveColumnsDetailListSensitiveColumnsDetail["EnvType"].asString(); - if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["SchemaName"].isNull()) - sensitiveColumnsDetailListObject.schemaName = valueSensitiveColumnsDetailListSensitiveColumnsDetail["SchemaName"].asString(); + if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["ColumnName"].isNull()) + sensitiveColumnsDetailListObject.columnName = valueSensitiveColumnsDetailListSensitiveColumnsDetail["ColumnName"].asString(); + if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["ColumnDescription"].isNull()) + sensitiveColumnsDetailListObject.columnDescription = valueSensitiveColumnsDetailListSensitiveColumnsDetail["ColumnDescription"].asString(); + if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["TableName"].isNull()) + sensitiveColumnsDetailListObject.tableName = valueSensitiveColumnsDetailListSensitiveColumnsDetail["TableName"].asString(); if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["DbType"].isNull()) sensitiveColumnsDetailListObject.dbType = valueSensitiveColumnsDetailListSensitiveColumnsDetail["DbType"].asString(); + if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["ColumnType"].isNull()) + sensitiveColumnsDetailListObject.columnType = valueSensitiveColumnsDetailListSensitiveColumnsDetail["ColumnType"].asString(); + if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["Logic"].isNull()) + sensitiveColumnsDetailListObject.logic = valueSensitiveColumnsDetailListSensitiveColumnsDetail["Logic"].asString() == "true"; + if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["SchemaName"].isNull()) + sensitiveColumnsDetailListObject.schemaName = valueSensitiveColumnsDetailListSensitiveColumnsDetail["SchemaName"].asString(); + if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["SearchName"].isNull()) + sensitiveColumnsDetailListObject.searchName = valueSensitiveColumnsDetailListSensitiveColumnsDetail["SearchName"].asString(); + if(!valueSensitiveColumnsDetailListSensitiveColumnsDetail["EnvType"].isNull()) + sensitiveColumnsDetailListObject.envType = valueSensitiveColumnsDetailListSensitiveColumnsDetail["EnvType"].asString(); sensitiveColumnsDetailList_.push_back(sensitiveColumnsDetailListObject); } if(!value["ErrorCode"].isNull()) diff --git a/dms-enterprise/src/model/ListSensitiveColumnsRequest.cc b/dms-enterprise/src/model/ListSensitiveColumnsRequest.cc index bcd84d6d5..54cbc106e 100644 --- a/dms-enterprise/src/model/ListSensitiveColumnsRequest.cc +++ b/dms-enterprise/src/model/ListSensitiveColumnsRequest.cc @@ -1,106 +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::ListSensitiveColumnsRequest; - -ListSensitiveColumnsRequest::ListSensitiveColumnsRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListSensitiveColumns") -{ - setMethod(HttpRequest::Method::Post); -} - -ListSensitiveColumnsRequest::~ListSensitiveColumnsRequest() -{} - -std::string ListSensitiveColumnsRequest::getSchemaName()const -{ - return schemaName_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListSensitiveColumnsRequest; + +ListSensitiveColumnsRequest::ListSensitiveColumnsRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListSensitiveColumns") { + setMethod(HttpRequest::Method::Post); } -void ListSensitiveColumnsRequest::setSchemaName(const std::string& schemaName) -{ - schemaName_ = schemaName; - setParameter("SchemaName", schemaName); +ListSensitiveColumnsRequest::~ListSensitiveColumnsRequest() {} + +std::string ListSensitiveColumnsRequest::getSchemaName() const { + return schemaName_; } -std::string ListSensitiveColumnsRequest::getColumnName()const -{ - return columnName_; +void ListSensitiveColumnsRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); } -void ListSensitiveColumnsRequest::setColumnName(const std::string& columnName) -{ - columnName_ = columnName; - setParameter("ColumnName", columnName); +std::string ListSensitiveColumnsRequest::getColumnName() const { + return columnName_; } -long ListSensitiveColumnsRequest::getTid()const -{ - return tid_; +void ListSensitiveColumnsRequest::setColumnName(const std::string &columnName) { + columnName_ = columnName; + setParameter(std::string("ColumnName"), columnName); } -void ListSensitiveColumnsRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long ListSensitiveColumnsRequest::getTid() const { + return tid_; } -int ListSensitiveColumnsRequest::getPageNumber()const -{ - return pageNumber_; +void ListSensitiveColumnsRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ListSensitiveColumnsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListSensitiveColumnsRequest::getPageNumber() const { + return pageNumber_; } -std::string ListSensitiveColumnsRequest::getSecurityLevel()const -{ - return securityLevel_; +void ListSensitiveColumnsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListSensitiveColumnsRequest::setSecurityLevel(const std::string& securityLevel) -{ - securityLevel_ = securityLevel; - setParameter("SecurityLevel", securityLevel); +std::string ListSensitiveColumnsRequest::getSecurityLevel() const { + return securityLevel_; } -int ListSensitiveColumnsRequest::getPageSize()const -{ - return pageSize_; +void ListSensitiveColumnsRequest::setSecurityLevel(const std::string &securityLevel) { + securityLevel_ = securityLevel; + setParameter(std::string("SecurityLevel"), securityLevel); } -void ListSensitiveColumnsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListSensitiveColumnsRequest::getPageSize() const { + return pageSize_; } -std::string ListSensitiveColumnsRequest::getTableName()const -{ - return tableName_; +void ListSensitiveColumnsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListSensitiveColumnsRequest::setTableName(const std::string& tableName) -{ - tableName_ = tableName; - setParameter("TableName", tableName); +std::string ListSensitiveColumnsRequest::getTableName() const { + return tableName_; +} + +void ListSensitiveColumnsRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); } diff --git a/dms-enterprise/src/model/ListSensitiveColumnsResult.cc b/dms-enterprise/src/model/ListSensitiveColumnsResult.cc index 42b66dccc..e9144c01d 100644 --- a/dms-enterprise/src/model/ListSensitiveColumnsResult.cc +++ b/dms-enterprise/src/model/ListSensitiveColumnsResult.cc @@ -43,18 +43,18 @@ void ListSensitiveColumnsResult::parse(const std::string &payload) for (auto valueSensitiveColumnListSensitiveColumn : allSensitiveColumnListNode) { SensitiveColumn sensitiveColumnListObject; - if(!valueSensitiveColumnListSensitiveColumn["TableName"].isNull()) - sensitiveColumnListObject.tableName = valueSensitiveColumnListSensitiveColumn["TableName"].asString(); if(!valueSensitiveColumnListSensitiveColumn["ColumnName"].isNull()) sensitiveColumnListObject.columnName = valueSensitiveColumnListSensitiveColumn["ColumnName"].asString(); - if(!valueSensitiveColumnListSensitiveColumn["ColumnCount"].isNull()) - sensitiveColumnListObject.columnCount = std::stol(valueSensitiveColumnListSensitiveColumn["ColumnCount"].asString()); - if(!valueSensitiveColumnListSensitiveColumn["FunctionType"].isNull()) - sensitiveColumnListObject.functionType = valueSensitiveColumnListSensitiveColumn["FunctionType"].asString(); + if(!valueSensitiveColumnListSensitiveColumn["TableName"].isNull()) + sensitiveColumnListObject.tableName = valueSensitiveColumnListSensitiveColumn["TableName"].asString(); if(!valueSensitiveColumnListSensitiveColumn["SecurityLevel"].isNull()) sensitiveColumnListObject.securityLevel = valueSensitiveColumnListSensitiveColumn["SecurityLevel"].asString(); + if(!valueSensitiveColumnListSensitiveColumn["ColumnCount"].isNull()) + sensitiveColumnListObject.columnCount = std::stol(valueSensitiveColumnListSensitiveColumn["ColumnCount"].asString()); if(!valueSensitiveColumnListSensitiveColumn["SchemaName"].isNull()) sensitiveColumnListObject.schemaName = valueSensitiveColumnListSensitiveColumn["SchemaName"].asString(); + if(!valueSensitiveColumnListSensitiveColumn["FunctionType"].isNull()) + sensitiveColumnListObject.functionType = valueSensitiveColumnListSensitiveColumn["FunctionType"].asString(); sensitiveColumnList_.push_back(sensitiveColumnListObject); } if(!value["TotalCount"].isNull()) diff --git a/dms-enterprise/src/model/ListTablesRequest.cc b/dms-enterprise/src/model/ListTablesRequest.cc index 9dd1950a9..376ddb0a0 100644 --- a/dms-enterprise/src/model/ListTablesRequest.cc +++ b/dms-enterprise/src/model/ListTablesRequest.cc @@ -1,95 +1,81 @@ /* * 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::ListTablesRequest; - -ListTablesRequest::ListTablesRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListTables") -{ - setMethod(HttpRequest::Method::Post); -} - -ListTablesRequest::~ListTablesRequest() -{} - -std::string ListTablesRequest::getSearchName()const -{ - return searchName_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListTablesRequest; + +ListTablesRequest::ListTablesRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListTables") { + setMethod(HttpRequest::Method::Post); } -void ListTablesRequest::setSearchName(const std::string& searchName) -{ - searchName_ = searchName; - setParameter("SearchName", searchName); +ListTablesRequest::~ListTablesRequest() {} + +std::string ListTablesRequest::getSearchName() const { + return searchName_; } -bool ListTablesRequest::getReturnGuid()const -{ - return returnGuid_; +void ListTablesRequest::setSearchName(const std::string &searchName) { + searchName_ = searchName; + setParameter(std::string("SearchName"), searchName); } -void ListTablesRequest::setReturnGuid(bool returnGuid) -{ - returnGuid_ = returnGuid; - setParameter("ReturnGuid", returnGuid ? "true" : "false"); +bool ListTablesRequest::getReturnGuid() const { + return returnGuid_; } -long ListTablesRequest::getTid()const -{ - return tid_; +void ListTablesRequest::setReturnGuid(bool returnGuid) { + returnGuid_ = returnGuid; + setParameter(std::string("ReturnGuid"), returnGuid ? "true" : "false"); } -void ListTablesRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long ListTablesRequest::getTid() const { + return tid_; } -int ListTablesRequest::getPageNumber()const -{ - return pageNumber_; +void ListTablesRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ListTablesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListTablesRequest::getPageNumber() const { + return pageNumber_; } -int ListTablesRequest::getPageSize()const -{ - return pageSize_; +void ListTablesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListTablesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListTablesRequest::getPageSize() const { + return pageSize_; } -std::string ListTablesRequest::getDatabaseId()const -{ - return databaseId_; +void ListTablesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListTablesRequest::setDatabaseId(const std::string& databaseId) -{ - databaseId_ = databaseId; - setParameter("DatabaseId", databaseId); +std::string ListTablesRequest::getDatabaseId() const { + return databaseId_; +} + +void ListTablesRequest::setDatabaseId(const std::string &databaseId) { + databaseId_ = databaseId; + setParameter(std::string("DatabaseId"), databaseId); } diff --git a/dms-enterprise/src/model/ListTablesResult.cc b/dms-enterprise/src/model/ListTablesResult.cc index d51232fb2..b53d78fbc 100644 --- a/dms-enterprise/src/model/ListTablesResult.cc +++ b/dms-enterprise/src/model/ListTablesResult.cc @@ -43,34 +43,34 @@ void ListTablesResult::parse(const std::string &payload) for (auto valueTableListTable : allTableListNode) { Table tableListObject; - if(!valueTableListTable["TableId"].isNull()) - tableListObject.tableId = valueTableListTable["TableId"].asString(); - if(!valueTableListTable["TableName"].isNull()) - tableListObject.tableName = valueTableListTable["TableName"].asString(); - if(!valueTableListTable["TableGuid"].isNull()) - tableListObject.tableGuid = valueTableListTable["TableGuid"].asString(); - if(!valueTableListTable["TableType"].isNull()) - tableListObject.tableType = valueTableListTable["TableType"].asString(); - if(!valueTableListTable["Description"].isNull()) - tableListObject.description = valueTableListTable["Description"].asString(); - if(!valueTableListTable["TableSchemaName"].isNull()) - tableListObject.tableSchemaName = valueTableListTable["TableSchemaName"].asString(); - if(!valueTableListTable["Encoding"].isNull()) - tableListObject.encoding = valueTableListTable["Encoding"].asString(); if(!valueTableListTable["DatabaseId"].isNull()) tableListObject.databaseId = valueTableListTable["DatabaseId"].asString(); - if(!valueTableListTable["NumRows"].isNull()) - tableListObject.numRows = std::stol(valueTableListTable["NumRows"].asString()); + if(!valueTableListTable["TableName"].isNull()) + tableListObject.tableName = valueTableListTable["TableName"].asString(); if(!valueTableListTable["StoreCapacity"].isNull()) tableListObject.storeCapacity = std::stol(valueTableListTable["StoreCapacity"].asString()); + if(!valueTableListTable["Description"].isNull()) + tableListObject.description = valueTableListTable["Description"].asString(); + if(!valueTableListTable["Encoding"].isNull()) + tableListObject.encoding = valueTableListTable["Encoding"].asString(); + if(!valueTableListTable["TableSchemaName"].isNull()) + tableListObject.tableSchemaName = valueTableListTable["TableSchemaName"].asString(); + if(!valueTableListTable["TableType"].isNull()) + tableListObject.tableType = valueTableListTable["TableType"].asString(); + if(!valueTableListTable["TableGuid"].isNull()) + tableListObject.tableGuid = valueTableListTable["TableGuid"].asString(); if(!valueTableListTable["Engine"].isNull()) tableListObject.engine = valueTableListTable["Engine"].asString(); - auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; - for (auto value : allOwnerNameList) - tableListObject.ownerNameList.push_back(value.asString()); + if(!valueTableListTable["NumRows"].isNull()) + tableListObject.numRows = std::stol(valueTableListTable["NumRows"].asString()); + if(!valueTableListTable["TableId"].isNull()) + tableListObject.tableId = valueTableListTable["TableId"].asString(); auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) tableListObject.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + tableListObject.ownerNameList.push_back(value.asString()); tableList_.push_back(tableListObject); } if(!value["TotalCount"].isNull()) diff --git a/dms-enterprise/src/model/ListUserPermissionsRequest.cc b/dms-enterprise/src/model/ListUserPermissionsRequest.cc index e22c1d160..7edaa7b6d 100644 --- a/dms-enterprise/src/model/ListUserPermissionsRequest.cc +++ b/dms-enterprise/src/model/ListUserPermissionsRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::ListUserPermissionsRequest; - -ListUserPermissionsRequest::ListUserPermissionsRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListUserPermissions") -{ - setMethod(HttpRequest::Method::Post); -} - -ListUserPermissionsRequest::~ListUserPermissionsRequest() -{} - -std::string ListUserPermissionsRequest::getUserId()const -{ - return userId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListUserPermissionsRequest; + +ListUserPermissionsRequest::ListUserPermissionsRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListUserPermissions") { + setMethod(HttpRequest::Method::Post); } -void ListUserPermissionsRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); +ListUserPermissionsRequest::~ListUserPermissionsRequest() {} + +std::string ListUserPermissionsRequest::getUserId() const { + return userId_; } -long ListUserPermissionsRequest::getTid()const -{ - return tid_; +void ListUserPermissionsRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); } -void ListUserPermissionsRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long ListUserPermissionsRequest::getTid() const { + return tid_; } -int ListUserPermissionsRequest::getPageNumber()const -{ - return pageNumber_; +void ListUserPermissionsRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ListUserPermissionsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListUserPermissionsRequest::getPageNumber() const { + return pageNumber_; } -std::string ListUserPermissionsRequest::getPermType()const -{ - return permType_; +void ListUserPermissionsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListUserPermissionsRequest::setPermType(const std::string& permType) -{ - permType_ = permType; - setParameter("PermType", permType); +std::string ListUserPermissionsRequest::getPermType() const { + return permType_; } -std::string ListUserPermissionsRequest::getDatabaseName()const -{ - return databaseName_; +void ListUserPermissionsRequest::setPermType(const std::string &permType) { + permType_ = permType; + setParameter(std::string("PermType"), permType); } -void ListUserPermissionsRequest::setDatabaseName(const std::string& databaseName) -{ - databaseName_ = databaseName; - setParameter("DatabaseName", databaseName); +std::string ListUserPermissionsRequest::getDatabaseName() const { + return databaseName_; } -std::string ListUserPermissionsRequest::getEnvType()const -{ - return envType_; +void ListUserPermissionsRequest::setDatabaseName(const std::string &databaseName) { + databaseName_ = databaseName; + setParameter(std::string("DatabaseName"), databaseName); } -void ListUserPermissionsRequest::setEnvType(const std::string& envType) -{ - envType_ = envType; - setParameter("EnvType", envType); +std::string ListUserPermissionsRequest::getEnvType() const { + return envType_; } -std::string ListUserPermissionsRequest::getDbType()const -{ - return dbType_; +void ListUserPermissionsRequest::setEnvType(const std::string &envType) { + envType_ = envType; + setParameter(std::string("EnvType"), envType); } -void ListUserPermissionsRequest::setDbType(const std::string& dbType) -{ - dbType_ = dbType; - setParameter("DbType", dbType); +std::string ListUserPermissionsRequest::getDbType() const { + return dbType_; } -int ListUserPermissionsRequest::getPageSize()const -{ - return pageSize_; +void ListUserPermissionsRequest::setDbType(const std::string &dbType) { + dbType_ = dbType; + setParameter(std::string("DbType"), dbType); } -void ListUserPermissionsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListUserPermissionsRequest::getPageSize() const { + return pageSize_; } -bool ListUserPermissionsRequest::getLogic()const -{ - return logic_; +void ListUserPermissionsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListUserPermissionsRequest::setLogic(bool logic) -{ - logic_ = logic; - setParameter("Logic", logic ? "true" : "false"); +bool ListUserPermissionsRequest::getLogic() const { + return logic_; +} + +void ListUserPermissionsRequest::setLogic(bool logic) { + logic_ = logic; + setParameter(std::string("Logic"), logic ? "true" : "false"); } diff --git a/dms-enterprise/src/model/ListUserPermissionsResult.cc b/dms-enterprise/src/model/ListUserPermissionsResult.cc index c39be9764..a08aa40ea 100644 --- a/dms-enterprise/src/model/ListUserPermissionsResult.cc +++ b/dms-enterprise/src/model/ListUserPermissionsResult.cc @@ -43,50 +43,50 @@ void ListUserPermissionsResult::parse(const std::string &payload) for (auto valueUserPermissionsUserPermission : allUserPermissionsNode) { UserPermission userPermissionsObject; + if(!valueUserPermissionsUserPermission["DbId"].isNull()) + userPermissionsObject.dbId = valueUserPermissionsUserPermission["DbId"].asString(); + if(!valueUserPermissionsUserPermission["TableName"].isNull()) + userPermissionsObject.tableName = valueUserPermissionsUserPermission["TableName"].asString(); + if(!valueUserPermissionsUserPermission["UserId"].isNull()) + userPermissionsObject.userId = valueUserPermissionsUserPermission["UserId"].asString(); + if(!valueUserPermissionsUserPermission["SchemaName"].isNull()) + userPermissionsObject.schemaName = valueUserPermissionsUserPermission["SchemaName"].asString(); + if(!valueUserPermissionsUserPermission["Logic"].isNull()) + userPermissionsObject.logic = valueUserPermissionsUserPermission["Logic"].asString() == "true"; + if(!valueUserPermissionsUserPermission["UserNickName"].isNull()) + userPermissionsObject.userNickName = valueUserPermissionsUserPermission["UserNickName"].asString(); + if(!valueUserPermissionsUserPermission["InstanceId"].isNull()) + userPermissionsObject.instanceId = valueUserPermissionsUserPermission["InstanceId"].asString(); + if(!valueUserPermissionsUserPermission["EnvType"].isNull()) + userPermissionsObject.envType = valueUserPermissionsUserPermission["EnvType"].asString(); + if(!valueUserPermissionsUserPermission["ColumnName"].isNull()) + userPermissionsObject.columnName = valueUserPermissionsUserPermission["ColumnName"].asString(); + if(!valueUserPermissionsUserPermission["DbType"].isNull()) + userPermissionsObject.dbType = valueUserPermissionsUserPermission["DbType"].asString(); + if(!valueUserPermissionsUserPermission["DsType"].isNull()) + userPermissionsObject.dsType = valueUserPermissionsUserPermission["DsType"].asString(); if(!valueUserPermissionsUserPermission["TableId"].isNull()) userPermissionsObject.tableId = valueUserPermissionsUserPermission["TableId"].asString(); if(!valueUserPermissionsUserPermission["SearchName"].isNull()) userPermissionsObject.searchName = valueUserPermissionsUserPermission["SearchName"].asString(); - if(!valueUserPermissionsUserPermission["InstanceId"].isNull()) - userPermissionsObject.instanceId = valueUserPermissionsUserPermission["InstanceId"].asString(); - if(!valueUserPermissionsUserPermission["DbType"].isNull()) - userPermissionsObject.dbType = valueUserPermissionsUserPermission["DbType"].asString(); - if(!valueUserPermissionsUserPermission["EnvType"].isNull()) - userPermissionsObject.envType = valueUserPermissionsUserPermission["EnvType"].asString(); - if(!valueUserPermissionsUserPermission["DsType"].isNull()) - userPermissionsObject.dsType = valueUserPermissionsUserPermission["DsType"].asString(); - if(!valueUserPermissionsUserPermission["ColumnName"].isNull()) - userPermissionsObject.columnName = valueUserPermissionsUserPermission["ColumnName"].asString(); - if(!valueUserPermissionsUserPermission["TableName"].isNull()) - userPermissionsObject.tableName = valueUserPermissionsUserPermission["TableName"].asString(); - if(!valueUserPermissionsUserPermission["UserNickName"].isNull()) - userPermissionsObject.userNickName = valueUserPermissionsUserPermission["UserNickName"].asString(); if(!valueUserPermissionsUserPermission["Alias"].isNull()) userPermissionsObject.alias = valueUserPermissionsUserPermission["Alias"].asString(); - if(!valueUserPermissionsUserPermission["UserId"].isNull()) - userPermissionsObject.userId = valueUserPermissionsUserPermission["UserId"].asString(); - if(!valueUserPermissionsUserPermission["DbId"].isNull()) - userPermissionsObject.dbId = valueUserPermissionsUserPermission["DbId"].asString(); - if(!valueUserPermissionsUserPermission["Logic"].isNull()) - userPermissionsObject.logic = valueUserPermissionsUserPermission["Logic"].asString() == "true"; - if(!valueUserPermissionsUserPermission["SchemaName"].isNull()) - userPermissionsObject.schemaName = valueUserPermissionsUserPermission["SchemaName"].asString(); auto allPermDetailsNode = valueUserPermissionsUserPermission["PermDetails"]["PermDetail"]; for (auto valueUserPermissionsUserPermissionPermDetailsPermDetail : allPermDetailsNode) { UserPermission::PermDetail permDetailsObject; - if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].isNull()) - permDetailsObject.expireDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].asString(); - if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].isNull()) - permDetailsObject.permType = valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].asString(); - if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].isNull()) - permDetailsObject.extraData = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].asString(); - if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].isNull()) - permDetailsObject.createDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].asString(); if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["OriginFrom"].isNull()) permDetailsObject.originFrom = valueUserPermissionsUserPermissionPermDetailsPermDetail["OriginFrom"].asString(); + if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].isNull()) + permDetailsObject.permType = valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].asString(); + if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].isNull()) + permDetailsObject.expireDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].asString(); + if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].isNull()) + permDetailsObject.createDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].asString(); if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["UserAccessId"].isNull()) permDetailsObject.userAccessId = valueUserPermissionsUserPermissionPermDetailsPermDetail["UserAccessId"].asString(); + if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].isNull()) + permDetailsObject.extraData = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].asString(); userPermissionsObject.permDetails.push_back(permDetailsObject); } userPermissions_.push_back(userPermissionsObject); diff --git a/dms-enterprise/src/model/ListUserTenantsRequest.cc b/dms-enterprise/src/model/ListUserTenantsRequest.cc index 485cf2a4b..ef665201e 100644 --- a/dms-enterprise/src/model/ListUserTenantsRequest.cc +++ b/dms-enterprise/src/model/ListUserTenantsRequest.cc @@ -1,40 +1,36 @@ /* * 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::ListUserTenantsRequest; - -ListUserTenantsRequest::ListUserTenantsRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListUserTenants") -{ - setMethod(HttpRequest::Method::Post); -} - -ListUserTenantsRequest::~ListUserTenantsRequest() -{} - -long ListUserTenantsRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListUserTenantsRequest; + +ListUserTenantsRequest::ListUserTenantsRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListUserTenants") { + setMethod(HttpRequest::Method::Post); } -void ListUserTenantsRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +ListUserTenantsRequest::~ListUserTenantsRequest() {} + +long ListUserTenantsRequest::getTid() const { + return tid_; +} + +void ListUserTenantsRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/ListUserTenantsResult.cc b/dms-enterprise/src/model/ListUserTenantsResult.cc index 132990d91..4019d8e8e 100644 --- a/dms-enterprise/src/model/ListUserTenantsResult.cc +++ b/dms-enterprise/src/model/ListUserTenantsResult.cc @@ -45,10 +45,10 @@ void ListUserTenantsResult::parse(const std::string &payload) Tenant tenantListObject; if(!valueTenantListTenant["Status"].isNull()) tenantListObject.status = valueTenantListTenant["Status"].asString(); - if(!valueTenantListTenant["TenantName"].isNull()) - tenantListObject.tenantName = valueTenantListTenant["TenantName"].asString(); if(!valueTenantListTenant["Tid"].isNull()) tenantListObject.tid = std::stol(valueTenantListTenant["Tid"].asString()); + if(!valueTenantListTenant["TenantName"].isNull()) + tenantListObject.tenantName = valueTenantListTenant["TenantName"].asString(); tenantList_.push_back(tenantListObject); } if(!value["ErrorCode"].isNull()) diff --git a/dms-enterprise/src/model/ListUsersRequest.cc b/dms-enterprise/src/model/ListUsersRequest.cc index 9233e58f7..cb66901f5 100644 --- a/dms-enterprise/src/model/ListUsersRequest.cc +++ b/dms-enterprise/src/model/ListUsersRequest.cc @@ -1,95 +1,81 @@ /* * 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::ListUsersRequest; - -ListUsersRequest::ListUsersRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListUsers") -{ - setMethod(HttpRequest::Method::Post); -} - -ListUsersRequest::~ListUsersRequest() -{} - -std::string ListUsersRequest::getRole()const -{ - return role_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListUsersRequest; + +ListUsersRequest::ListUsersRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListUsers") { + setMethod(HttpRequest::Method::Post); } -void ListUsersRequest::setRole(const std::string& role) -{ - role_ = role; - setParameter("Role", role); +ListUsersRequest::~ListUsersRequest() {} + +std::string ListUsersRequest::getRole() const { + return role_; } -std::string ListUsersRequest::getSearchKey()const -{ - return searchKey_; +void ListUsersRequest::setRole(const std::string &role) { + role_ = role; + setParameter(std::string("Role"), role); } -void ListUsersRequest::setSearchKey(const std::string& searchKey) -{ - searchKey_ = searchKey; - setParameter("SearchKey", searchKey); +std::string ListUsersRequest::getSearchKey() const { + return searchKey_; } -long ListUsersRequest::getTid()const -{ - return tid_; +void ListUsersRequest::setSearchKey(const std::string &searchKey) { + searchKey_ = searchKey; + setParameter(std::string("SearchKey"), searchKey); } -void ListUsersRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long ListUsersRequest::getTid() const { + return tid_; } -int ListUsersRequest::getPageNumber()const -{ - return pageNumber_; +void ListUsersRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void ListUsersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListUsersRequest::getPageNumber() const { + return pageNumber_; } -std::string ListUsersRequest::getUserState()const -{ - return userState_; +void ListUsersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListUsersRequest::setUserState(const std::string& userState) -{ - userState_ = userState; - setParameter("UserState", userState); +std::string ListUsersRequest::getUserState() const { + return userState_; } -int ListUsersRequest::getPageSize()const -{ - return pageSize_; +void ListUsersRequest::setUserState(const std::string &userState) { + userState_ = userState; + setParameter(std::string("UserState"), userState); } -void ListUsersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListUsersRequest::getPageSize() const { + return pageSize_; +} + +void ListUsersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/dms-enterprise/src/model/ListUsersResult.cc b/dms-enterprise/src/model/ListUsersResult.cc index 4e8e0ec88..db33d2b94 100644 --- a/dms-enterprise/src/model/ListUsersResult.cc +++ b/dms-enterprise/src/model/ListUsersResult.cc @@ -43,28 +43,28 @@ void ListUsersResult::parse(const std::string &payload) for (auto valueUserListUser : allUserListNode) { User userListObject; - if(!valueUserListUser["Uid"].isNull()) - userListObject.uid = valueUserListUser["Uid"].asString(); - if(!valueUserListUser["LastLoginTime"].isNull()) - userListObject.lastLoginTime = valueUserListUser["LastLoginTime"].asString(); - if(!valueUserListUser["CurResultCount"].isNull()) - userListObject.curResultCount = std::stol(valueUserListUser["CurResultCount"].asString()); - if(!valueUserListUser["MaxResultCount"].isNull()) - userListObject.maxResultCount = std::stol(valueUserListUser["MaxResultCount"].asString()); - if(!valueUserListUser["UserId"].isNull()) - userListObject.userId = valueUserListUser["UserId"].asString(); if(!valueUserListUser["State"].isNull()) userListObject.state = valueUserListUser["State"].asString(); - if(!valueUserListUser["CurExecuteCount"].isNull()) - userListObject.curExecuteCount = std::stol(valueUserListUser["CurExecuteCount"].asString()); - if(!valueUserListUser["NickName"].isNull()) - userListObject.nickName = valueUserListUser["NickName"].asString(); - if(!valueUserListUser["Mobile"].isNull()) - userListObject.mobile = valueUserListUser["Mobile"].asString(); - if(!valueUserListUser["MaxExecuteCount"].isNull()) - userListObject.maxExecuteCount = std::stol(valueUserListUser["MaxExecuteCount"].asString()); + if(!valueUserListUser["CurResultCount"].isNull()) + userListObject.curResultCount = std::stol(valueUserListUser["CurResultCount"].asString()); + if(!valueUserListUser["UserId"].isNull()) + userListObject.userId = valueUserListUser["UserId"].asString(); + if(!valueUserListUser["LastLoginTime"].isNull()) + userListObject.lastLoginTime = valueUserListUser["LastLoginTime"].asString(); + if(!valueUserListUser["MaxResultCount"].isNull()) + userListObject.maxResultCount = std::stol(valueUserListUser["MaxResultCount"].asString()); if(!valueUserListUser["ParentUid"].isNull()) userListObject.parentUid = valueUserListUser["ParentUid"].asString(); + if(!valueUserListUser["NickName"].isNull()) + userListObject.nickName = valueUserListUser["NickName"].asString(); + if(!valueUserListUser["MaxExecuteCount"].isNull()) + userListObject.maxExecuteCount = std::stol(valueUserListUser["MaxExecuteCount"].asString()); + if(!valueUserListUser["CurExecuteCount"].isNull()) + userListObject.curExecuteCount = std::stol(valueUserListUser["CurExecuteCount"].asString()); + if(!valueUserListUser["Mobile"].isNull()) + userListObject.mobile = valueUserListUser["Mobile"].asString(); + if(!valueUserListUser["Uid"].isNull()) + userListObject.uid = valueUserListUser["Uid"].asString(); auto allRoleIdList = value["RoleIdList"]["RoleIds"]; for (auto value : allRoleIdList) userListObject.roleIdList.push_back(value.asString()); diff --git a/dms-enterprise/src/model/ListWorkFlowNodesRequest.cc b/dms-enterprise/src/model/ListWorkFlowNodesRequest.cc index c18fdd345..ccd86afe1 100644 --- a/dms-enterprise/src/model/ListWorkFlowNodesRequest.cc +++ b/dms-enterprise/src/model/ListWorkFlowNodesRequest.cc @@ -1,51 +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::ListWorkFlowNodesRequest; - -ListWorkFlowNodesRequest::ListWorkFlowNodesRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListWorkFlowNodes") -{ - setMethod(HttpRequest::Method::Post); -} - -ListWorkFlowNodesRequest::~ListWorkFlowNodesRequest() -{} - -std::string ListWorkFlowNodesRequest::getSearchName()const -{ - return searchName_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListWorkFlowNodesRequest; + +ListWorkFlowNodesRequest::ListWorkFlowNodesRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListWorkFlowNodes") { + setMethod(HttpRequest::Method::Post); } -void ListWorkFlowNodesRequest::setSearchName(const std::string& searchName) -{ - searchName_ = searchName; - setParameter("SearchName", searchName); +ListWorkFlowNodesRequest::~ListWorkFlowNodesRequest() {} + +std::string ListWorkFlowNodesRequest::getSearchName() const { + return searchName_; } -long ListWorkFlowNodesRequest::getTid()const -{ - return tid_; +void ListWorkFlowNodesRequest::setSearchName(const std::string &searchName) { + searchName_ = searchName; + setParameter(std::string("SearchName"), searchName); } -void ListWorkFlowNodesRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long ListWorkFlowNodesRequest::getTid() const { + return tid_; +} + +void ListWorkFlowNodesRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/ListWorkFlowNodesResult.cc b/dms-enterprise/src/model/ListWorkFlowNodesResult.cc index 7b947cb8b..6b272aee5 100644 --- a/dms-enterprise/src/model/ListWorkFlowNodesResult.cc +++ b/dms-enterprise/src/model/ListWorkFlowNodesResult.cc @@ -47,22 +47,22 @@ void ListWorkFlowNodesResult::parse(const std::string &payload) workflowNodesObject.comment = valueWorkflowNodesWorkflowNode["Comment"].asString(); if(!valueWorkflowNodesWorkflowNode["CreateUserNickName"].isNull()) workflowNodesObject.createUserNickName = valueWorkflowNodesWorkflowNode["CreateUserNickName"].asString(); - if(!valueWorkflowNodesWorkflowNode["NodeName"].isNull()) - workflowNodesObject.nodeName = valueWorkflowNodesWorkflowNode["NodeName"].asString(); if(!valueWorkflowNodesWorkflowNode["NodeType"].isNull()) workflowNodesObject.nodeType = valueWorkflowNodesWorkflowNode["NodeType"].asString(); - if(!valueWorkflowNodesWorkflowNode["NodeId"].isNull()) - workflowNodesObject.nodeId = std::stol(valueWorkflowNodesWorkflowNode["NodeId"].asString()); + if(!valueWorkflowNodesWorkflowNode["NodeName"].isNull()) + workflowNodesObject.nodeName = valueWorkflowNodesWorkflowNode["NodeName"].asString(); if(!valueWorkflowNodesWorkflowNode["CreateUserId"].isNull()) workflowNodesObject.createUserId = std::stol(valueWorkflowNodesWorkflowNode["CreateUserId"].asString()); + if(!valueWorkflowNodesWorkflowNode["NodeId"].isNull()) + workflowNodesObject.nodeId = std::stol(valueWorkflowNodesWorkflowNode["NodeId"].asString()); auto allAuditUsersNode = valueWorkflowNodesWorkflowNode["AuditUsers"]["AuditUser"]; for (auto valueWorkflowNodesWorkflowNodeAuditUsersAuditUser : allAuditUsersNode) { WorkflowNode::AuditUser auditUsersObject; - if(!valueWorkflowNodesWorkflowNodeAuditUsersAuditUser["UserId"].isNull()) - auditUsersObject.userId = std::stol(valueWorkflowNodesWorkflowNodeAuditUsersAuditUser["UserId"].asString()); if(!valueWorkflowNodesWorkflowNodeAuditUsersAuditUser["RealName"].isNull()) auditUsersObject.realName = valueWorkflowNodesWorkflowNodeAuditUsersAuditUser["RealName"].asString(); + if(!valueWorkflowNodesWorkflowNodeAuditUsersAuditUser["UserId"].isNull()) + auditUsersObject.userId = std::stol(valueWorkflowNodesWorkflowNodeAuditUsersAuditUser["UserId"].asString()); if(!valueWorkflowNodesWorkflowNodeAuditUsersAuditUser["NickName"].isNull()) auditUsersObject.nickName = valueWorkflowNodesWorkflowNodeAuditUsersAuditUser["NickName"].asString(); workflowNodesObject.auditUsers.push_back(auditUsersObject); diff --git a/dms-enterprise/src/model/ListWorkFlowTemplatesRequest.cc b/dms-enterprise/src/model/ListWorkFlowTemplatesRequest.cc index a27221d45..40dc72902 100644 --- a/dms-enterprise/src/model/ListWorkFlowTemplatesRequest.cc +++ b/dms-enterprise/src/model/ListWorkFlowTemplatesRequest.cc @@ -1,51 +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::ListWorkFlowTemplatesRequest; - -ListWorkFlowTemplatesRequest::ListWorkFlowTemplatesRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "ListWorkFlowTemplates") -{ - setMethod(HttpRequest::Method::Post); -} - -ListWorkFlowTemplatesRequest::~ListWorkFlowTemplatesRequest() -{} - -std::string ListWorkFlowTemplatesRequest::getSearchName()const -{ - return searchName_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListWorkFlowTemplatesRequest; + +ListWorkFlowTemplatesRequest::ListWorkFlowTemplatesRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListWorkFlowTemplates") { + setMethod(HttpRequest::Method::Post); } -void ListWorkFlowTemplatesRequest::setSearchName(const std::string& searchName) -{ - searchName_ = searchName; - setParameter("SearchName", searchName); +ListWorkFlowTemplatesRequest::~ListWorkFlowTemplatesRequest() {} + +std::string ListWorkFlowTemplatesRequest::getSearchName() const { + return searchName_; } -long ListWorkFlowTemplatesRequest::getTid()const -{ - return tid_; +void ListWorkFlowTemplatesRequest::setSearchName(const std::string &searchName) { + searchName_ = searchName; + setParameter(std::string("SearchName"), searchName); } -void ListWorkFlowTemplatesRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long ListWorkFlowTemplatesRequest::getTid() const { + return tid_; +} + +void ListWorkFlowTemplatesRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/ListWorkFlowTemplatesResult.cc b/dms-enterprise/src/model/ListWorkFlowTemplatesResult.cc index e4851521a..860d10347 100644 --- a/dms-enterprise/src/model/ListWorkFlowTemplatesResult.cc +++ b/dms-enterprise/src/model/ListWorkFlowTemplatesResult.cc @@ -43,36 +43,36 @@ void ListWorkFlowTemplatesResult::parse(const std::string &payload) for (auto valueWorkFlowTemplatesWorkFlowTemplate : allWorkFlowTemplatesNode) { WorkFlowTemplate workFlowTemplatesObject; - if(!valueWorkFlowTemplatesWorkFlowTemplate["Comment"].isNull()) - workFlowTemplatesObject.comment = valueWorkFlowTemplatesWorkFlowTemplate["Comment"].asString(); - if(!valueWorkFlowTemplatesWorkFlowTemplate["CreateUserId"].isNull()) - workFlowTemplatesObject.createUserId = std::stol(valueWorkFlowTemplatesWorkFlowTemplate["CreateUserId"].asString()); - if(!valueWorkFlowTemplatesWorkFlowTemplate["TemplateName"].isNull()) - workFlowTemplatesObject.templateName = valueWorkFlowTemplatesWorkFlowTemplate["TemplateName"].asString(); - if(!valueWorkFlowTemplatesWorkFlowTemplate["Enabled"].isNull()) - workFlowTemplatesObject.enabled = valueWorkFlowTemplatesWorkFlowTemplate["Enabled"].asString(); if(!valueWorkFlowTemplatesWorkFlowTemplate["IsSystem"].isNull()) workFlowTemplatesObject.isSystem = std::stoi(valueWorkFlowTemplatesWorkFlowTemplate["IsSystem"].asString()); + if(!valueWorkFlowTemplatesWorkFlowTemplate["Comment"].isNull()) + workFlowTemplatesObject.comment = valueWorkFlowTemplatesWorkFlowTemplate["Comment"].asString(); + if(!valueWorkFlowTemplatesWorkFlowTemplate["Enabled"].isNull()) + workFlowTemplatesObject.enabled = valueWorkFlowTemplatesWorkFlowTemplate["Enabled"].asString(); + if(!valueWorkFlowTemplatesWorkFlowTemplate["TemplateName"].isNull()) + workFlowTemplatesObject.templateName = valueWorkFlowTemplatesWorkFlowTemplate["TemplateName"].asString(); if(!valueWorkFlowTemplatesWorkFlowTemplate["TemplateId"].isNull()) workFlowTemplatesObject.templateId = std::stol(valueWorkFlowTemplatesWorkFlowTemplate["TemplateId"].asString()); + if(!valueWorkFlowTemplatesWorkFlowTemplate["CreateUserId"].isNull()) + workFlowTemplatesObject.createUserId = std::stol(valueWorkFlowTemplatesWorkFlowTemplate["CreateUserId"].asString()); auto allWorkflowNodesNode = valueWorkFlowTemplatesWorkFlowTemplate["WorkflowNodes"]["WorkflowNode"]; for (auto valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode : allWorkflowNodesNode) { WorkFlowTemplate::WorkflowNode workflowNodesObject; if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["Comment"].isNull()) workflowNodesObject.comment = valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["Comment"].asString(); - if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["Position"].isNull()) - workflowNodesObject.position = std::stoi(valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["Position"].asString()); - if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["NodeName"].isNull()) - workflowNodesObject.nodeName = valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["NodeName"].asString(); if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["NodeType"].isNull()) workflowNodesObject.nodeType = valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["NodeType"].asString(); - if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["NodeId"].isNull()) - workflowNodesObject.nodeId = std::stol(valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["NodeId"].asString()); + if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["NodeName"].isNull()) + workflowNodesObject.nodeName = valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["NodeName"].asString(); + if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["Position"].isNull()) + workflowNodesObject.position = std::stoi(valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["Position"].asString()); if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["CreateUserId"].isNull()) workflowNodesObject.createUserId = std::stol(valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["CreateUserId"].asString()); if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["TemplateId"].isNull()) workflowNodesObject.templateId = std::stol(valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["TemplateId"].asString()); + if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["NodeId"].isNull()) + workflowNodesObject.nodeId = std::stol(valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["NodeId"].asString()); workFlowTemplatesObject.workflowNodes.push_back(workflowNodesObject); } workFlowTemplates_.push_back(workFlowTemplatesObject); diff --git a/dms-enterprise/src/model/RegisterInstanceRequest.cc b/dms-enterprise/src/model/RegisterInstanceRequest.cc index a20413937..a3c1508b3 100644 --- a/dms-enterprise/src/model/RegisterInstanceRequest.cc +++ b/dms-enterprise/src/model/RegisterInstanceRequest.cc @@ -1,271 +1,225 @@ /* * 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::RegisterInstanceRequest; - -RegisterInstanceRequest::RegisterInstanceRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "RegisterInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -RegisterInstanceRequest::~RegisterInstanceRequest() -{} - -std::string RegisterInstanceRequest::getEcsRegion()const -{ - return ecsRegion_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::RegisterInstanceRequest; + +RegisterInstanceRequest::RegisterInstanceRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "RegisterInstance") { + setMethod(HttpRequest::Method::Post); } -void RegisterInstanceRequest::setEcsRegion(const std::string& ecsRegion) -{ - ecsRegion_ = ecsRegion; - setParameter("EcsRegion", ecsRegion); +RegisterInstanceRequest::~RegisterInstanceRequest() {} + +std::string RegisterInstanceRequest::getEcsRegion() const { + return ecsRegion_; } -int RegisterInstanceRequest::getDdlOnline()const -{ - return ddlOnline_; +void RegisterInstanceRequest::setEcsRegion(const std::string &ecsRegion) { + ecsRegion_ = ecsRegion; + setParameter(std::string("EcsRegion"), ecsRegion); } -void RegisterInstanceRequest::setDdlOnline(int ddlOnline) -{ - ddlOnline_ = ddlOnline; - setParameter("DdlOnline", std::to_string(ddlOnline)); +int RegisterInstanceRequest::getDdlOnline() const { + return ddlOnline_; } -int RegisterInstanceRequest::getUseDsql()const -{ - return useDsql_; +void RegisterInstanceRequest::setDdlOnline(int ddlOnline) { + ddlOnline_ = ddlOnline; + setParameter(std::string("DdlOnline"), std::to_string(ddlOnline)); } -void RegisterInstanceRequest::setUseDsql(int useDsql) -{ - useDsql_ = useDsql; - setParameter("UseDsql", std::to_string(useDsql)); +int RegisterInstanceRequest::getUseDsql() const { + return useDsql_; } -std::string RegisterInstanceRequest::getNetworkType()const -{ - return networkType_; +void RegisterInstanceRequest::setUseDsql(int useDsql) { + useDsql_ = useDsql; + setParameter(std::string("UseDsql"), std::to_string(useDsql)); } -void RegisterInstanceRequest::setNetworkType(const std::string& networkType) -{ - networkType_ = networkType; - setParameter("NetworkType", networkType); +std::string RegisterInstanceRequest::getNetworkType() const { + return networkType_; } -long RegisterInstanceRequest::getTid()const -{ - return tid_; +void RegisterInstanceRequest::setNetworkType(const std::string &networkType) { + networkType_ = networkType; + setParameter(std::string("NetworkType"), networkType); } -void RegisterInstanceRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long RegisterInstanceRequest::getTid() const { + return tid_; } -std::string RegisterInstanceRequest::getSid()const -{ - return sid_; +void RegisterInstanceRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void RegisterInstanceRequest::setSid(const std::string& sid) -{ - sid_ = sid; - setParameter("Sid", sid); +std::string RegisterInstanceRequest::getSid() const { + return sid_; } -std::string RegisterInstanceRequest::getDataLinkName()const -{ - return dataLinkName_; +void RegisterInstanceRequest::setSid(const std::string &sid) { + sid_ = sid; + setParameter(std::string("Sid"), sid); } -void RegisterInstanceRequest::setDataLinkName(const std::string& dataLinkName) -{ - dataLinkName_ = dataLinkName; - setParameter("DataLinkName", dataLinkName); +std::string RegisterInstanceRequest::getDataLinkName() const { + return dataLinkName_; } -std::string RegisterInstanceRequest::getInstanceSource()const -{ - return instanceSource_; +void RegisterInstanceRequest::setDataLinkName(const std::string &dataLinkName) { + dataLinkName_ = dataLinkName; + setParameter(std::string("DataLinkName"), dataLinkName); } -void RegisterInstanceRequest::setInstanceSource(const std::string& instanceSource) -{ - instanceSource_ = instanceSource; - setParameter("InstanceSource", instanceSource); +std::string RegisterInstanceRequest::getInstanceSource() const { + return instanceSource_; } -std::string RegisterInstanceRequest::getEnvType()const -{ - return envType_; +void RegisterInstanceRequest::setInstanceSource(const std::string &instanceSource) { + instanceSource_ = instanceSource; + setParameter(std::string("InstanceSource"), instanceSource); } -void RegisterInstanceRequest::setEnvType(const std::string& envType) -{ - envType_ = envType; - setParameter("EnvType", envType); +std::string RegisterInstanceRequest::getEnvType() const { + return envType_; } -std::string RegisterInstanceRequest::getHost()const -{ - return host_; +void RegisterInstanceRequest::setEnvType(const std::string &envType) { + envType_ = envType; + setParameter(std::string("EnvType"), envType); } -void RegisterInstanceRequest::setHost(const std::string& host) -{ - host_ = host; - setParameter("Host", host); +std::string RegisterInstanceRequest::getHost() const { + return host_; } -std::string RegisterInstanceRequest::getInstanceType()const -{ - return instanceType_; +void RegisterInstanceRequest::setHost(const std::string &host) { + host_ = host; + setParameter(std::string("Host"), host); } -void RegisterInstanceRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string RegisterInstanceRequest::getInstanceType() const { + return instanceType_; } -int RegisterInstanceRequest::getQueryTimeout()const -{ - return queryTimeout_; +void RegisterInstanceRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void RegisterInstanceRequest::setQueryTimeout(int queryTimeout) -{ - queryTimeout_ = queryTimeout; - setParameter("QueryTimeout", std::to_string(queryTimeout)); +int RegisterInstanceRequest::getQueryTimeout() const { + return queryTimeout_; } -std::string RegisterInstanceRequest::getEcsInstanceId()const -{ - return ecsInstanceId_; +void RegisterInstanceRequest::setQueryTimeout(int queryTimeout) { + queryTimeout_ = queryTimeout; + setParameter(std::string("QueryTimeout"), std::to_string(queryTimeout)); } -void RegisterInstanceRequest::setEcsInstanceId(const std::string& ecsInstanceId) -{ - ecsInstanceId_ = ecsInstanceId; - setParameter("EcsInstanceId", ecsInstanceId); +std::string RegisterInstanceRequest::getEcsInstanceId() const { + return ecsInstanceId_; } -int RegisterInstanceRequest::getExportTimeout()const -{ - return exportTimeout_; +void RegisterInstanceRequest::setEcsInstanceId(const std::string &ecsInstanceId) { + ecsInstanceId_ = ecsInstanceId; + setParameter(std::string("EcsInstanceId"), ecsInstanceId); } -void RegisterInstanceRequest::setExportTimeout(int exportTimeout) -{ - exportTimeout_ = exportTimeout; - setParameter("ExportTimeout", std::to_string(exportTimeout)); +int RegisterInstanceRequest::getExportTimeout() const { + return exportTimeout_; } -std::string RegisterInstanceRequest::getDatabasePassword()const -{ - return databasePassword_; +void RegisterInstanceRequest::setExportTimeout(int exportTimeout) { + exportTimeout_ = exportTimeout; + setParameter(std::string("ExportTimeout"), std::to_string(exportTimeout)); } -void RegisterInstanceRequest::setDatabasePassword(const std::string& databasePassword) -{ - databasePassword_ = databasePassword; - setParameter("DatabasePassword", databasePassword); +std::string RegisterInstanceRequest::getDatabasePassword() const { + return databasePassword_; } -std::string RegisterInstanceRequest::getInstanceAlias()const -{ - return instanceAlias_; +void RegisterInstanceRequest::setDatabasePassword(const std::string &databasePassword) { + databasePassword_ = databasePassword; + setParameter(std::string("DatabasePassword"), databasePassword); } -void RegisterInstanceRequest::setInstanceAlias(const std::string& instanceAlias) -{ - instanceAlias_ = instanceAlias; - setParameter("InstanceAlias", instanceAlias); +std::string RegisterInstanceRequest::getInstanceAlias() const { + return instanceAlias_; } -std::string RegisterInstanceRequest::getDatabaseUser()const -{ - return databaseUser_; +void RegisterInstanceRequest::setInstanceAlias(const std::string &instanceAlias) { + instanceAlias_ = instanceAlias; + setParameter(std::string("InstanceAlias"), instanceAlias); } -void RegisterInstanceRequest::setDatabaseUser(const std::string& databaseUser) -{ - databaseUser_ = databaseUser; - setParameter("DatabaseUser", databaseUser); +std::string RegisterInstanceRequest::getDatabaseUser() const { + return databaseUser_; } -int RegisterInstanceRequest::getPort()const -{ - return port_; +void RegisterInstanceRequest::setDatabaseUser(const std::string &databaseUser) { + databaseUser_ = databaseUser; + setParameter(std::string("DatabaseUser"), databaseUser); } -void RegisterInstanceRequest::setPort(int port) -{ - port_ = port; - setParameter("Port", std::to_string(port)); +int RegisterInstanceRequest::getPort() const { + return port_; } -std::string RegisterInstanceRequest::getVpcId()const -{ - return vpcId_; +void RegisterInstanceRequest::setPort(int port) { + port_ = port; + setParameter(std::string("Port"), std::to_string(port)); } -void RegisterInstanceRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string RegisterInstanceRequest::getVpcId() const { + return vpcId_; } -long RegisterInstanceRequest::getDbaUid()const -{ - return dbaUid_; +void RegisterInstanceRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -void RegisterInstanceRequest::setDbaUid(long dbaUid) -{ - dbaUid_ = dbaUid; - setParameter("DbaUid", std::to_string(dbaUid)); +long RegisterInstanceRequest::getDbaUid() const { + return dbaUid_; } -bool RegisterInstanceRequest::getSkipTest()const -{ - return skipTest_; +void RegisterInstanceRequest::setDbaUid(long dbaUid) { + dbaUid_ = dbaUid; + setParameter(std::string("DbaUid"), std::to_string(dbaUid)); } -void RegisterInstanceRequest::setSkipTest(bool skipTest) -{ - skipTest_ = skipTest; - setParameter("SkipTest", skipTest ? "true" : "false"); +bool RegisterInstanceRequest::getSkipTest() const { + return skipTest_; } -std::string RegisterInstanceRequest::getSafeRule()const -{ - return safeRule_; +void RegisterInstanceRequest::setSkipTest(bool skipTest) { + skipTest_ = skipTest; + setParameter(std::string("SkipTest"), skipTest ? "true" : "false"); } -void RegisterInstanceRequest::setSafeRule(const std::string& safeRule) -{ - safeRule_ = safeRule; - setParameter("SafeRule", safeRule); +std::string RegisterInstanceRequest::getSafeRule() const { + return safeRule_; +} + +void RegisterInstanceRequest::setSafeRule(const std::string &safeRule) { + safeRule_ = safeRule; + setParameter(std::string("SafeRule"), safeRule); } diff --git a/dms-enterprise/src/model/RegisterUserRequest.cc b/dms-enterprise/src/model/RegisterUserRequest.cc index 62100cbf2..b31a8ed93 100644 --- a/dms-enterprise/src/model/RegisterUserRequest.cc +++ b/dms-enterprise/src/model/RegisterUserRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::RegisterUserRequest; - -RegisterUserRequest::RegisterUserRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "RegisterUser") -{ - setMethod(HttpRequest::Method::Post); -} - -RegisterUserRequest::~RegisterUserRequest() -{} - -std::string RegisterUserRequest::getRoleNames()const -{ - return roleNames_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::RegisterUserRequest; + +RegisterUserRequest::RegisterUserRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "RegisterUser") { + setMethod(HttpRequest::Method::Post); } -void RegisterUserRequest::setRoleNames(const std::string& roleNames) -{ - roleNames_ = roleNames; - setParameter("RoleNames", roleNames); +RegisterUserRequest::~RegisterUserRequest() {} + +std::string RegisterUserRequest::getRoleNames() const { + return roleNames_; } -std::string RegisterUserRequest::getUserNick()const -{ - return userNick_; +void RegisterUserRequest::setRoleNames(const std::string &roleNames) { + roleNames_ = roleNames; + setParameter(std::string("RoleNames"), roleNames); } -void RegisterUserRequest::setUserNick(const std::string& userNick) -{ - userNick_ = userNick; - setParameter("UserNick", userNick); +std::string RegisterUserRequest::getUserNick() const { + return userNick_; } -std::string RegisterUserRequest::getMobile()const -{ - return mobile_; +void RegisterUserRequest::setUserNick(const std::string &userNick) { + userNick_ = userNick; + setParameter(std::string("UserNick"), userNick); } -void RegisterUserRequest::setMobile(const std::string& mobile) -{ - mobile_ = mobile; - setParameter("Mobile", mobile); +std::string RegisterUserRequest::getMobile() const { + return mobile_; } -long RegisterUserRequest::getTid()const -{ - return tid_; +void RegisterUserRequest::setMobile(const std::string &mobile) { + mobile_ = mobile; + setParameter(std::string("Mobile"), mobile); } -void RegisterUserRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long RegisterUserRequest::getTid() const { + return tid_; } -std::string RegisterUserRequest::getUid()const -{ - return uid_; +void RegisterUserRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void RegisterUserRequest::setUid(const std::string& uid) -{ - uid_ = uid; - setParameter("Uid", uid); +std::string RegisterUserRequest::getUid() const { + return uid_; +} + +void RegisterUserRequest::setUid(const std::string &uid) { + uid_ = uid; + setParameter(std::string("Uid"), uid); } diff --git a/dms-enterprise/src/model/RevokeUserPermissionRequest.cc b/dms-enterprise/src/model/RevokeUserPermissionRequest.cc index 0135c6985..3cf079155 100644 --- a/dms-enterprise/src/model/RevokeUserPermissionRequest.cc +++ b/dms-enterprise/src/model/RevokeUserPermissionRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::RevokeUserPermissionRequest; - -RevokeUserPermissionRequest::RevokeUserPermissionRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "RevokeUserPermission") -{ - setMethod(HttpRequest::Method::Post); -} - -RevokeUserPermissionRequest::~RevokeUserPermissionRequest() -{} - -std::string RevokeUserPermissionRequest::getPermTypes()const -{ - return permTypes_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::RevokeUserPermissionRequest; + +RevokeUserPermissionRequest::RevokeUserPermissionRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "RevokeUserPermission") { + setMethod(HttpRequest::Method::Post); } -void RevokeUserPermissionRequest::setPermTypes(const std::string& permTypes) -{ - permTypes_ = permTypes; - setParameter("PermTypes", permTypes); +RevokeUserPermissionRequest::~RevokeUserPermissionRequest() {} + +std::string RevokeUserPermissionRequest::getPermTypes() const { + return permTypes_; } -std::string RevokeUserPermissionRequest::getUserAccessId()const -{ - return userAccessId_; +void RevokeUserPermissionRequest::setPermTypes(const std::string &permTypes) { + permTypes_ = permTypes; + setParameter(std::string("PermTypes"), permTypes); } -void RevokeUserPermissionRequest::setUserAccessId(const std::string& userAccessId) -{ - userAccessId_ = userAccessId; - setParameter("UserAccessId", userAccessId); +std::string RevokeUserPermissionRequest::getUserAccessId() const { + return userAccessId_; } -std::string RevokeUserPermissionRequest::getDsType()const -{ - return dsType_; +void RevokeUserPermissionRequest::setUserAccessId(const std::string &userAccessId) { + userAccessId_ = userAccessId; + setParameter(std::string("UserAccessId"), userAccessId); } -void RevokeUserPermissionRequest::setDsType(const std::string& dsType) -{ - dsType_ = dsType; - setParameter("DsType", dsType); +std::string RevokeUserPermissionRequest::getDsType() const { + return dsType_; } -std::string RevokeUserPermissionRequest::getUserId()const -{ - return userId_; +void RevokeUserPermissionRequest::setDsType(const std::string &dsType) { + dsType_ = dsType; + setParameter(std::string("DsType"), dsType); } -void RevokeUserPermissionRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); +std::string RevokeUserPermissionRequest::getUserId() const { + return userId_; } -long RevokeUserPermissionRequest::getTid()const -{ - return tid_; +void RevokeUserPermissionRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); } -void RevokeUserPermissionRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long RevokeUserPermissionRequest::getTid() const { + return tid_; } -std::string RevokeUserPermissionRequest::getDbId()const -{ - return dbId_; +void RevokeUserPermissionRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void RevokeUserPermissionRequest::setDbId(const std::string& dbId) -{ - dbId_ = dbId; - setParameter("DbId", dbId); +std::string RevokeUserPermissionRequest::getDbId() const { + return dbId_; } -std::string RevokeUserPermissionRequest::getTableId()const -{ - return tableId_; +void RevokeUserPermissionRequest::setDbId(const std::string &dbId) { + dbId_ = dbId; + setParameter(std::string("DbId"), dbId); } -void RevokeUserPermissionRequest::setTableId(const std::string& tableId) -{ - tableId_ = tableId; - setParameter("TableId", tableId); +std::string RevokeUserPermissionRequest::getTableId() const { + return tableId_; } -bool RevokeUserPermissionRequest::getLogic()const -{ - return logic_; +void RevokeUserPermissionRequest::setTableId(const std::string &tableId) { + tableId_ = tableId; + setParameter(std::string("TableId"), tableId); } -void RevokeUserPermissionRequest::setLogic(bool logic) -{ - logic_ = logic; - setParameter("Logic", logic ? "true" : "false"); +bool RevokeUserPermissionRequest::getLogic() const { + return logic_; } -std::string RevokeUserPermissionRequest::getTableName()const -{ - return tableName_; +void RevokeUserPermissionRequest::setLogic(bool logic) { + logic_ = logic; + setParameter(std::string("Logic"), logic ? "true" : "false"); } -void RevokeUserPermissionRequest::setTableName(const std::string& tableName) -{ - tableName_ = tableName; - setParameter("TableName", tableName); +std::string RevokeUserPermissionRequest::getTableName() const { + return tableName_; +} + +void RevokeUserPermissionRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); } diff --git a/dms-enterprise/src/model/SearchDatabaseRequest.cc b/dms-enterprise/src/model/SearchDatabaseRequest.cc index eff8aef7f..2ae91c2e8 100644 --- a/dms-enterprise/src/model/SearchDatabaseRequest.cc +++ b/dms-enterprise/src/model/SearchDatabaseRequest.cc @@ -1,117 +1,99 @@ /* * 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::SearchDatabaseRequest; - -SearchDatabaseRequest::SearchDatabaseRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "SearchDatabase") -{ - setMethod(HttpRequest::Method::Post); -} - -SearchDatabaseRequest::~SearchDatabaseRequest() -{} - -std::string SearchDatabaseRequest::getSearchKey()const -{ - return searchKey_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::SearchDatabaseRequest; + +SearchDatabaseRequest::SearchDatabaseRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "SearchDatabase") { + setMethod(HttpRequest::Method::Post); } -void SearchDatabaseRequest::setSearchKey(const std::string& searchKey) -{ - searchKey_ = searchKey; - setParameter("SearchKey", searchKey); +SearchDatabaseRequest::~SearchDatabaseRequest() {} + +std::string SearchDatabaseRequest::getSearchKey() const { + return searchKey_; } -std::string SearchDatabaseRequest::getSearchRange()const -{ - return searchRange_; +void SearchDatabaseRequest::setSearchKey(const std::string &searchKey) { + searchKey_ = searchKey; + setParameter(std::string("SearchKey"), searchKey); } -void SearchDatabaseRequest::setSearchRange(const std::string& searchRange) -{ - searchRange_ = searchRange; - setParameter("SearchRange", searchRange); +std::string SearchDatabaseRequest::getSearchRange() const { + return searchRange_; } -long SearchDatabaseRequest::getTid()const -{ - return tid_; +void SearchDatabaseRequest::setSearchRange(const std::string &searchRange) { + searchRange_ = searchRange; + setParameter(std::string("SearchRange"), searchRange); } -void SearchDatabaseRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long SearchDatabaseRequest::getTid() const { + return tid_; } -int SearchDatabaseRequest::getPageNumber()const -{ - return pageNumber_; +void SearchDatabaseRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void SearchDatabaseRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int SearchDatabaseRequest::getPageNumber() const { + return pageNumber_; } -std::string SearchDatabaseRequest::getSearchTarget()const -{ - return searchTarget_; +void SearchDatabaseRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void SearchDatabaseRequest::setSearchTarget(const std::string& searchTarget) -{ - searchTarget_ = searchTarget; - setParameter("SearchTarget", searchTarget); +std::string SearchDatabaseRequest::getSearchTarget() const { + return searchTarget_; } -int SearchDatabaseRequest::getPageSize()const -{ - return pageSize_; +void SearchDatabaseRequest::setSearchTarget(const std::string &searchTarget) { + searchTarget_ = searchTarget; + setParameter(std::string("SearchTarget"), searchTarget); } -void SearchDatabaseRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int SearchDatabaseRequest::getPageSize() const { + return pageSize_; } -std::string SearchDatabaseRequest::getEnvType()const -{ - return envType_; +void SearchDatabaseRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void SearchDatabaseRequest::setEnvType(const std::string& envType) -{ - envType_ = envType; - setParameter("EnvType", envType); +std::string SearchDatabaseRequest::getEnvType() const { + return envType_; } -std::string SearchDatabaseRequest::getDbType()const -{ - return dbType_; +void SearchDatabaseRequest::setEnvType(const std::string &envType) { + envType_ = envType; + setParameter(std::string("EnvType"), envType); } -void SearchDatabaseRequest::setDbType(const std::string& dbType) -{ - dbType_ = dbType; - setParameter("DbType", dbType); +std::string SearchDatabaseRequest::getDbType() const { + return dbType_; +} + +void SearchDatabaseRequest::setDbType(const std::string &dbType) { + dbType_ = dbType; + setParameter(std::string("DbType"), dbType); } diff --git a/dms-enterprise/src/model/SearchDatabaseResult.cc b/dms-enterprise/src/model/SearchDatabaseResult.cc index 429ae4ea7..aa774bbf4 100644 --- a/dms-enterprise/src/model/SearchDatabaseResult.cc +++ b/dms-enterprise/src/model/SearchDatabaseResult.cc @@ -43,38 +43,38 @@ void SearchDatabaseResult::parse(const std::string &payload) for (auto valueSearchDatabaseListSearchDatabase : allSearchDatabaseListNode) { SearchDatabase searchDatabaseListObject; + if(!valueSearchDatabaseListSearchDatabase["DatabaseId"].isNull()) + searchDatabaseListObject.databaseId = valueSearchDatabaseListSearchDatabase["DatabaseId"].asString(); + if(!valueSearchDatabaseListSearchDatabase["Host"].isNull()) + searchDatabaseListObject.host = valueSearchDatabaseListSearchDatabase["Host"].asString(); if(!valueSearchDatabaseListSearchDatabase["DbaId"].isNull()) searchDatabaseListObject.dbaId = valueSearchDatabaseListSearchDatabase["DbaId"].asString(); + if(!valueSearchDatabaseListSearchDatabase["SchemaName"].isNull()) + searchDatabaseListObject.schemaName = valueSearchDatabaseListSearchDatabase["SchemaName"].asString(); + if(!valueSearchDatabaseListSearchDatabase["Logic"].isNull()) + searchDatabaseListObject.logic = valueSearchDatabaseListSearchDatabase["Logic"].asString() == "true"; + if(!valueSearchDatabaseListSearchDatabase["DatalinkName"].isNull()) + searchDatabaseListObject.datalinkName = valueSearchDatabaseListSearchDatabase["DatalinkName"].asString(); + if(!valueSearchDatabaseListSearchDatabase["Port"].isNull()) + searchDatabaseListObject.port = std::stoi(valueSearchDatabaseListSearchDatabase["Port"].asString()); + if(!valueSearchDatabaseListSearchDatabase["EnvType"].isNull()) + searchDatabaseListObject.envType = valueSearchDatabaseListSearchDatabase["EnvType"].asString(); + if(!valueSearchDatabaseListSearchDatabase["Sid"].isNull()) + searchDatabaseListObject.sid = valueSearchDatabaseListSearchDatabase["Sid"].asString(); + if(!valueSearchDatabaseListSearchDatabase["Encoding"].isNull()) + searchDatabaseListObject.encoding = valueSearchDatabaseListSearchDatabase["Encoding"].asString(); + if(!valueSearchDatabaseListSearchDatabase["DbType"].isNull()) + searchDatabaseListObject.dbType = valueSearchDatabaseListSearchDatabase["DbType"].asString(); if(!valueSearchDatabaseListSearchDatabase["SearchName"].isNull()) searchDatabaseListObject.searchName = valueSearchDatabaseListSearchDatabase["SearchName"].asString(); if(!valueSearchDatabaseListSearchDatabase["Alias"].isNull()) searchDatabaseListObject.alias = valueSearchDatabaseListSearchDatabase["Alias"].asString(); - if(!valueSearchDatabaseListSearchDatabase["Port"].isNull()) - searchDatabaseListObject.port = std::stoi(valueSearchDatabaseListSearchDatabase["Port"].asString()); - if(!valueSearchDatabaseListSearchDatabase["DatalinkName"].isNull()) - searchDatabaseListObject.datalinkName = valueSearchDatabaseListSearchDatabase["DatalinkName"].asString(); - if(!valueSearchDatabaseListSearchDatabase["Encoding"].isNull()) - searchDatabaseListObject.encoding = valueSearchDatabaseListSearchDatabase["Encoding"].asString(); - if(!valueSearchDatabaseListSearchDatabase["Host"].isNull()) - searchDatabaseListObject.host = valueSearchDatabaseListSearchDatabase["Host"].asString(); - if(!valueSearchDatabaseListSearchDatabase["DatabaseId"].isNull()) - searchDatabaseListObject.databaseId = valueSearchDatabaseListSearchDatabase["DatabaseId"].asString(); - if(!valueSearchDatabaseListSearchDatabase["Logic"].isNull()) - searchDatabaseListObject.logic = valueSearchDatabaseListSearchDatabase["Logic"].asString() == "true"; - if(!valueSearchDatabaseListSearchDatabase["DbType"].isNull()) - searchDatabaseListObject.dbType = valueSearchDatabaseListSearchDatabase["DbType"].asString(); - if(!valueSearchDatabaseListSearchDatabase["EnvType"].isNull()) - searchDatabaseListObject.envType = valueSearchDatabaseListSearchDatabase["EnvType"].asString(); - if(!valueSearchDatabaseListSearchDatabase["SchemaName"].isNull()) - searchDatabaseListObject.schemaName = valueSearchDatabaseListSearchDatabase["SchemaName"].asString(); - if(!valueSearchDatabaseListSearchDatabase["Sid"].isNull()) - searchDatabaseListObject.sid = valueSearchDatabaseListSearchDatabase["Sid"].asString(); - auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; - for (auto value : allOwnerNameList) - searchDatabaseListObject.ownerNameList.push_back(value.asString()); auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) searchDatabaseListObject.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + searchDatabaseListObject.ownerNameList.push_back(value.asString()); searchDatabaseList_.push_back(searchDatabaseListObject); } if(!value["TotalCount"].isNull()) diff --git a/dms-enterprise/src/model/SearchTableRequest.cc b/dms-enterprise/src/model/SearchTableRequest.cc index 5f998d904..d9787f464 100644 --- a/dms-enterprise/src/model/SearchTableRequest.cc +++ b/dms-enterprise/src/model/SearchTableRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::SearchTableRequest; - -SearchTableRequest::SearchTableRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "SearchTable") -{ - setMethod(HttpRequest::Method::Post); -} - -SearchTableRequest::~SearchTableRequest() -{} - -bool SearchTableRequest::getReturnGuid()const -{ - return returnGuid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::SearchTableRequest; + +SearchTableRequest::SearchTableRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "SearchTable") { + setMethod(HttpRequest::Method::Post); } -void SearchTableRequest::setReturnGuid(bool returnGuid) -{ - returnGuid_ = returnGuid; - setParameter("ReturnGuid", returnGuid ? "true" : "false"); +SearchTableRequest::~SearchTableRequest() {} + +bool SearchTableRequest::getReturnGuid() const { + return returnGuid_; } -std::string SearchTableRequest::getSearchKey()const -{ - return searchKey_; +void SearchTableRequest::setReturnGuid(bool returnGuid) { + returnGuid_ = returnGuid; + setParameter(std::string("ReturnGuid"), returnGuid ? "true" : "false"); } -void SearchTableRequest::setSearchKey(const std::string& searchKey) -{ - searchKey_ = searchKey; - setParameter("SearchKey", searchKey); +std::string SearchTableRequest::getSearchKey() const { + return searchKey_; } -std::string SearchTableRequest::getSearchRange()const -{ - return searchRange_; +void SearchTableRequest::setSearchKey(const std::string &searchKey) { + searchKey_ = searchKey; + setParameter(std::string("SearchKey"), searchKey); } -void SearchTableRequest::setSearchRange(const std::string& searchRange) -{ - searchRange_ = searchRange; - setParameter("SearchRange", searchRange); +std::string SearchTableRequest::getSearchRange() const { + return searchRange_; } -long SearchTableRequest::getTid()const -{ - return tid_; +void SearchTableRequest::setSearchRange(const std::string &searchRange) { + searchRange_ = searchRange; + setParameter(std::string("SearchRange"), searchRange); } -void SearchTableRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long SearchTableRequest::getTid() const { + return tid_; } -int SearchTableRequest::getPageNumber()const -{ - return pageNumber_; +void SearchTableRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void SearchTableRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int SearchTableRequest::getPageNumber() const { + return pageNumber_; } -std::string SearchTableRequest::getSearchTarget()const -{ - return searchTarget_; +void SearchTableRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void SearchTableRequest::setSearchTarget(const std::string& searchTarget) -{ - searchTarget_ = searchTarget; - setParameter("SearchTarget", searchTarget); +std::string SearchTableRequest::getSearchTarget() const { + return searchTarget_; } -int SearchTableRequest::getPageSize()const -{ - return pageSize_; +void SearchTableRequest::setSearchTarget(const std::string &searchTarget) { + searchTarget_ = searchTarget; + setParameter(std::string("SearchTarget"), searchTarget); } -void SearchTableRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int SearchTableRequest::getPageSize() const { + return pageSize_; } -std::string SearchTableRequest::getEnvType()const -{ - return envType_; +void SearchTableRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void SearchTableRequest::setEnvType(const std::string& envType) -{ - envType_ = envType; - setParameter("EnvType", envType); +std::string SearchTableRequest::getEnvType() const { + return envType_; } -std::string SearchTableRequest::getDbType()const -{ - return dbType_; +void SearchTableRequest::setEnvType(const std::string &envType) { + envType_ = envType; + setParameter(std::string("EnvType"), envType); } -void SearchTableRequest::setDbType(const std::string& dbType) -{ - dbType_ = dbType; - setParameter("DbType", dbType); +std::string SearchTableRequest::getDbType() const { + return dbType_; +} + +void SearchTableRequest::setDbType(const std::string &dbType) { + dbType_ = dbType; + setParameter(std::string("DbType"), dbType); } diff --git a/dms-enterprise/src/model/SearchTableResult.cc b/dms-enterprise/src/model/SearchTableResult.cc index c020cc740..ffddd3057 100644 --- a/dms-enterprise/src/model/SearchTableResult.cc +++ b/dms-enterprise/src/model/SearchTableResult.cc @@ -43,38 +43,38 @@ void SearchTableResult::parse(const std::string &payload) for (auto valueSearchTableListSearchTable : allSearchTableListNode) { SearchTable searchTableListObject; - if(!valueSearchTableListSearchTable["TableId"].isNull()) - searchTableListObject.tableId = valueSearchTableListSearchTable["TableId"].asString(); - if(!valueSearchTableListSearchTable["TableName"].isNull()) - searchTableListObject.tableName = valueSearchTableListSearchTable["TableName"].asString(); - if(!valueSearchTableListSearchTable["TableGuid"].isNull()) - searchTableListObject.tableGuid = valueSearchTableListSearchTable["TableGuid"].asString(); - if(!valueSearchTableListSearchTable["Description"].isNull()) - searchTableListObject.description = valueSearchTableListSearchTable["Description"].asString(); - if(!valueSearchTableListSearchTable["TableSchemaName"].isNull()) - searchTableListObject.tableSchemaName = valueSearchTableListSearchTable["TableSchemaName"].asString(); - if(!valueSearchTableListSearchTable["Encoding"].isNull()) - searchTableListObject.encoding = valueSearchTableListSearchTable["Encoding"].asString(); - if(!valueSearchTableListSearchTable["DbName"].isNull()) - searchTableListObject.dbName = valueSearchTableListSearchTable["DbName"].asString(); if(!valueSearchTableListSearchTable["DatabaseId"].isNull()) searchTableListObject.databaseId = valueSearchTableListSearchTable["DatabaseId"].asString(); - if(!valueSearchTableListSearchTable["Logic"].isNull()) - searchTableListObject.logic = valueSearchTableListSearchTable["Logic"].asString() == "true"; + if(!valueSearchTableListSearchTable["TableName"].isNull()) + searchTableListObject.tableName = valueSearchTableListSearchTable["TableName"].asString(); if(!valueSearchTableListSearchTable["DBSearchName"].isNull()) searchTableListObject.dBSearchName = valueSearchTableListSearchTable["DBSearchName"].asString(); - if(!valueSearchTableListSearchTable["Engine"].isNull()) - searchTableListObject.engine = valueSearchTableListSearchTable["Engine"].asString(); - if(!valueSearchTableListSearchTable["DbType"].isNull()) - searchTableListObject.dbType = valueSearchTableListSearchTable["DbType"].asString(); + if(!valueSearchTableListSearchTable["Logic"].isNull()) + searchTableListObject.logic = valueSearchTableListSearchTable["Logic"].asString() == "true"; if(!valueSearchTableListSearchTable["EnvType"].isNull()) searchTableListObject.envType = valueSearchTableListSearchTable["EnvType"].asString(); - auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; - for (auto value : allOwnerNameList) - searchTableListObject.ownerNameList.push_back(value.asString()); + if(!valueSearchTableListSearchTable["DbName"].isNull()) + searchTableListObject.dbName = valueSearchTableListSearchTable["DbName"].asString(); + if(!valueSearchTableListSearchTable["Description"].isNull()) + searchTableListObject.description = valueSearchTableListSearchTable["Description"].asString(); + if(!valueSearchTableListSearchTable["Encoding"].isNull()) + searchTableListObject.encoding = valueSearchTableListSearchTable["Encoding"].asString(); + if(!valueSearchTableListSearchTable["DbType"].isNull()) + searchTableListObject.dbType = valueSearchTableListSearchTable["DbType"].asString(); + if(!valueSearchTableListSearchTable["TableSchemaName"].isNull()) + searchTableListObject.tableSchemaName = valueSearchTableListSearchTable["TableSchemaName"].asString(); + if(!valueSearchTableListSearchTable["TableGuid"].isNull()) + searchTableListObject.tableGuid = valueSearchTableListSearchTable["TableGuid"].asString(); + if(!valueSearchTableListSearchTable["Engine"].isNull()) + searchTableListObject.engine = valueSearchTableListSearchTable["Engine"].asString(); + if(!valueSearchTableListSearchTable["TableId"].isNull()) + searchTableListObject.tableId = valueSearchTableListSearchTable["TableId"].asString(); auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) searchTableListObject.ownerIdList.push_back(value.asString()); + auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"]; + for (auto value : allOwnerNameList) + searchTableListObject.ownerNameList.push_back(value.asString()); searchTableList_.push_back(searchTableListObject); } if(!value["TotalCount"].isNull()) diff --git a/dms-enterprise/src/model/SetOwnersRequest.cc b/dms-enterprise/src/model/SetOwnersRequest.cc index d8204e6f2..3c7639ce5 100644 --- a/dms-enterprise/src/model/SetOwnersRequest.cc +++ b/dms-enterprise/src/model/SetOwnersRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dms_enterprise::Model::SetOwnersRequest; - -SetOwnersRequest::SetOwnersRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "SetOwners") -{ - setMethod(HttpRequest::Method::Post); -} - -SetOwnersRequest::~SetOwnersRequest() -{} - -std::string SetOwnersRequest::getResourceId()const -{ - return resourceId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::SetOwnersRequest; + +SetOwnersRequest::SetOwnersRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "SetOwners") { + setMethod(HttpRequest::Method::Post); } -void SetOwnersRequest::setResourceId(const std::string& resourceId) -{ - resourceId_ = resourceId; - setParameter("ResourceId", resourceId); +SetOwnersRequest::~SetOwnersRequest() {} + +std::string SetOwnersRequest::getResourceId() const { + return resourceId_; } -std::string SetOwnersRequest::getOwnerIds()const -{ - return ownerIds_; +void SetOwnersRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } -void SetOwnersRequest::setOwnerIds(const std::string& ownerIds) -{ - ownerIds_ = ownerIds; - setParameter("OwnerIds", ownerIds); +std::string SetOwnersRequest::getOwnerIds() const { + return ownerIds_; } -long SetOwnersRequest::getTid()const -{ - return tid_; +void SetOwnersRequest::setOwnerIds(const std::string &ownerIds) { + ownerIds_ = ownerIds; + setParameter(std::string("OwnerIds"), ownerIds); } -void SetOwnersRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long SetOwnersRequest::getTid() const { + return tid_; } -std::string SetOwnersRequest::getOwnerType()const -{ - return ownerType_; +void SetOwnersRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void SetOwnersRequest::setOwnerType(const std::string& ownerType) -{ - ownerType_ = ownerType; - setParameter("OwnerType", ownerType); +std::string SetOwnersRequest::getOwnerType() const { + return ownerType_; +} + +void SetOwnersRequest::setOwnerType(const std::string &ownerType) { + ownerType_ = ownerType; + setParameter(std::string("OwnerType"), ownerType); } diff --git a/dms-enterprise/src/model/SubmitOrderApprovalRequest.cc b/dms-enterprise/src/model/SubmitOrderApprovalRequest.cc index af3c2ddcd..156991fdb 100644 --- a/dms-enterprise/src/model/SubmitOrderApprovalRequest.cc +++ b/dms-enterprise/src/model/SubmitOrderApprovalRequest.cc @@ -1,51 +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::SubmitOrderApprovalRequest; - -SubmitOrderApprovalRequest::SubmitOrderApprovalRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "SubmitOrderApproval") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitOrderApprovalRequest::~SubmitOrderApprovalRequest() -{} - -long SubmitOrderApprovalRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::SubmitOrderApprovalRequest; + +SubmitOrderApprovalRequest::SubmitOrderApprovalRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "SubmitOrderApproval") { + setMethod(HttpRequest::Method::Post); } -void SubmitOrderApprovalRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +SubmitOrderApprovalRequest::~SubmitOrderApprovalRequest() {} + +long SubmitOrderApprovalRequest::getOrderId() const { + return orderId_; } -long SubmitOrderApprovalRequest::getTid()const -{ - return tid_; +void SubmitOrderApprovalRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void SubmitOrderApprovalRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long SubmitOrderApprovalRequest::getTid() const { + return tid_; +} + +void SubmitOrderApprovalRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/SubmitStructSyncOrderApprovalRequest.cc b/dms-enterprise/src/model/SubmitStructSyncOrderApprovalRequest.cc index cc0263854..6a5502209 100644 --- a/dms-enterprise/src/model/SubmitStructSyncOrderApprovalRequest.cc +++ b/dms-enterprise/src/model/SubmitStructSyncOrderApprovalRequest.cc @@ -1,51 +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::SubmitStructSyncOrderApprovalRequest; - -SubmitStructSyncOrderApprovalRequest::SubmitStructSyncOrderApprovalRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "SubmitStructSyncOrderApproval") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitStructSyncOrderApprovalRequest::~SubmitStructSyncOrderApprovalRequest() -{} - -long SubmitStructSyncOrderApprovalRequest::getOrderId()const -{ - return orderId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::SubmitStructSyncOrderApprovalRequest; + +SubmitStructSyncOrderApprovalRequest::SubmitStructSyncOrderApprovalRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "SubmitStructSyncOrderApproval") { + setMethod(HttpRequest::Method::Post); } -void SubmitStructSyncOrderApprovalRequest::setOrderId(long orderId) -{ - orderId_ = orderId; - setParameter("OrderId", std::to_string(orderId)); +SubmitStructSyncOrderApprovalRequest::~SubmitStructSyncOrderApprovalRequest() {} + +long SubmitStructSyncOrderApprovalRequest::getOrderId() const { + return orderId_; } -long SubmitStructSyncOrderApprovalRequest::getTid()const -{ - return tid_; +void SubmitStructSyncOrderApprovalRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); } -void SubmitStructSyncOrderApprovalRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long SubmitStructSyncOrderApprovalRequest::getTid() const { + return tid_; +} + +void SubmitStructSyncOrderApprovalRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } diff --git a/dms-enterprise/src/model/SubmitStructSyncOrderApprovalResult.cc b/dms-enterprise/src/model/SubmitStructSyncOrderApprovalResult.cc index 1f11eff96..d7a8104cc 100644 --- a/dms-enterprise/src/model/SubmitStructSyncOrderApprovalResult.cc +++ b/dms-enterprise/src/model/SubmitStructSyncOrderApprovalResult.cc @@ -39,14 +39,14 @@ void SubmitStructSyncOrderApprovalResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["WorkflowInstanceId"].isNull()) - workflowInstanceId_ = std::stol(value["WorkflowInstanceId"].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"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["WorkflowInstanceId"].isNull()) + workflowInstanceId_ = std::stol(value["WorkflowInstanceId"].asString()); } diff --git a/dms-enterprise/src/model/SyncDatabaseMetaRequest.cc b/dms-enterprise/src/model/SyncDatabaseMetaRequest.cc index 095ad2f9c..9dad7c933 100644 --- a/dms-enterprise/src/model/SyncDatabaseMetaRequest.cc +++ b/dms-enterprise/src/model/SyncDatabaseMetaRequest.cc @@ -1,62 +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::SyncDatabaseMetaRequest; - -SyncDatabaseMetaRequest::SyncDatabaseMetaRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "SyncDatabaseMeta") -{ - setMethod(HttpRequest::Method::Post); -} - -SyncDatabaseMetaRequest::~SyncDatabaseMetaRequest() -{} - -long SyncDatabaseMetaRequest::getTid()const -{ - return tid_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::SyncDatabaseMetaRequest; + +SyncDatabaseMetaRequest::SyncDatabaseMetaRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "SyncDatabaseMeta") { + setMethod(HttpRequest::Method::Post); } -void SyncDatabaseMetaRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +SyncDatabaseMetaRequest::~SyncDatabaseMetaRequest() {} + +long SyncDatabaseMetaRequest::getTid() const { + return tid_; } -std::string SyncDatabaseMetaRequest::getDbId()const -{ - return dbId_; +void SyncDatabaseMetaRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void SyncDatabaseMetaRequest::setDbId(const std::string& dbId) -{ - dbId_ = dbId; - setParameter("DbId", dbId); +std::string SyncDatabaseMetaRequest::getDbId() const { + return dbId_; } -bool SyncDatabaseMetaRequest::getLogic()const -{ - return logic_; +void SyncDatabaseMetaRequest::setDbId(const std::string &dbId) { + dbId_ = dbId; + setParameter(std::string("DbId"), dbId); } -void SyncDatabaseMetaRequest::setLogic(bool logic) -{ - logic_ = logic; - setParameter("Logic", logic ? "true" : "false"); +bool SyncDatabaseMetaRequest::getLogic() const { + return logic_; +} + +void SyncDatabaseMetaRequest::setLogic(bool logic) { + logic_ = logic; + setParameter(std::string("Logic"), logic ? "true" : "false"); } diff --git a/dms-enterprise/src/model/SyncInstanceMetaRequest.cc b/dms-enterprise/src/model/SyncInstanceMetaRequest.cc index d23bc0cdf..b6e2fa0a5 100644 --- a/dms-enterprise/src/model/SyncInstanceMetaRequest.cc +++ b/dms-enterprise/src/model/SyncInstanceMetaRequest.cc @@ -1,62 +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::SyncInstanceMetaRequest; - -SyncInstanceMetaRequest::SyncInstanceMetaRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "SyncInstanceMeta") -{ - setMethod(HttpRequest::Method::Post); -} - -SyncInstanceMetaRequest::~SyncInstanceMetaRequest() -{} - -bool SyncInstanceMetaRequest::getIgnoreTable()const -{ - return ignoreTable_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::SyncInstanceMetaRequest; + +SyncInstanceMetaRequest::SyncInstanceMetaRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "SyncInstanceMeta") { + setMethod(HttpRequest::Method::Post); } -void SyncInstanceMetaRequest::setIgnoreTable(bool ignoreTable) -{ - ignoreTable_ = ignoreTable; - setParameter("IgnoreTable", ignoreTable ? "true" : "false"); +SyncInstanceMetaRequest::~SyncInstanceMetaRequest() {} + +bool SyncInstanceMetaRequest::getIgnoreTable() const { + return ignoreTable_; } -long SyncInstanceMetaRequest::getTid()const -{ - return tid_; +void SyncInstanceMetaRequest::setIgnoreTable(bool ignoreTable) { + ignoreTable_ = ignoreTable; + setParameter(std::string("IgnoreTable"), ignoreTable ? "true" : "false"); } -void SyncInstanceMetaRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long SyncInstanceMetaRequest::getTid() const { + return tid_; } -std::string SyncInstanceMetaRequest::getInstanceId()const -{ - return instanceId_; +void SyncInstanceMetaRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void SyncInstanceMetaRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string SyncInstanceMetaRequest::getInstanceId() const { + return instanceId_; +} + +void SyncInstanceMetaRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/dms-enterprise/src/model/UpdateInstanceRequest.cc b/dms-enterprise/src/model/UpdateInstanceRequest.cc index beed15384..dbd69b212 100644 --- a/dms-enterprise/src/model/UpdateInstanceRequest.cc +++ b/dms-enterprise/src/model/UpdateInstanceRequest.cc @@ -1,271 +1,225 @@ /* * 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::UpdateInstanceRequest; - -UpdateInstanceRequest::UpdateInstanceRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "UpdateInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateInstanceRequest::~UpdateInstanceRequest() -{} - -std::string UpdateInstanceRequest::getSafeRuleId()const -{ - return safeRuleId_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::UpdateInstanceRequest; + +UpdateInstanceRequest::UpdateInstanceRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "UpdateInstance") { + setMethod(HttpRequest::Method::Post); } -void UpdateInstanceRequest::setSafeRuleId(const std::string& safeRuleId) -{ - safeRuleId_ = safeRuleId; - setParameter("SafeRuleId", safeRuleId); +UpdateInstanceRequest::~UpdateInstanceRequest() {} + +std::string UpdateInstanceRequest::getSafeRuleId() const { + return safeRuleId_; } -std::string UpdateInstanceRequest::getEcsRegion()const -{ - return ecsRegion_; +void UpdateInstanceRequest::setSafeRuleId(const std::string &safeRuleId) { + safeRuleId_ = safeRuleId; + setParameter(std::string("SafeRuleId"), safeRuleId); } -void UpdateInstanceRequest::setEcsRegion(const std::string& ecsRegion) -{ - ecsRegion_ = ecsRegion; - setParameter("EcsRegion", ecsRegion); +std::string UpdateInstanceRequest::getEcsRegion() const { + return ecsRegion_; } -int UpdateInstanceRequest::getDdlOnline()const -{ - return ddlOnline_; +void UpdateInstanceRequest::setEcsRegion(const std::string &ecsRegion) { + ecsRegion_ = ecsRegion; + setParameter(std::string("EcsRegion"), ecsRegion); } -void UpdateInstanceRequest::setDdlOnline(int ddlOnline) -{ - ddlOnline_ = ddlOnline; - setParameter("DdlOnline", std::to_string(ddlOnline)); +int UpdateInstanceRequest::getDdlOnline() const { + return ddlOnline_; } -int UpdateInstanceRequest::getUseDsql()const -{ - return useDsql_; +void UpdateInstanceRequest::setDdlOnline(int ddlOnline) { + ddlOnline_ = ddlOnline; + setParameter(std::string("DdlOnline"), std::to_string(ddlOnline)); } -void UpdateInstanceRequest::setUseDsql(int useDsql) -{ - useDsql_ = useDsql; - setParameter("UseDsql", std::to_string(useDsql)); +int UpdateInstanceRequest::getUseDsql() const { + return useDsql_; } -long UpdateInstanceRequest::getTid()const -{ - return tid_; +void UpdateInstanceRequest::setUseDsql(int useDsql) { + useDsql_ = useDsql; + setParameter(std::string("UseDsql"), std::to_string(useDsql)); } -void UpdateInstanceRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long UpdateInstanceRequest::getTid() const { + return tid_; } -std::string UpdateInstanceRequest::getSid()const -{ - return sid_; +void UpdateInstanceRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void UpdateInstanceRequest::setSid(const std::string& sid) -{ - sid_ = sid; - setParameter("Sid", sid); +std::string UpdateInstanceRequest::getSid() const { + return sid_; } -std::string UpdateInstanceRequest::getDbaId()const -{ - return dbaId_; +void UpdateInstanceRequest::setSid(const std::string &sid) { + sid_ = sid; + setParameter(std::string("Sid"), sid); } -void UpdateInstanceRequest::setDbaId(const std::string& dbaId) -{ - dbaId_ = dbaId; - setParameter("DbaId", dbaId); +std::string UpdateInstanceRequest::getDbaId() const { + return dbaId_; } -std::string UpdateInstanceRequest::getDataLinkName()const -{ - return dataLinkName_; +void UpdateInstanceRequest::setDbaId(const std::string &dbaId) { + dbaId_ = dbaId; + setParameter(std::string("DbaId"), dbaId); } -void UpdateInstanceRequest::setDataLinkName(const std::string& dataLinkName) -{ - dataLinkName_ = dataLinkName; - setParameter("DataLinkName", dataLinkName); +std::string UpdateInstanceRequest::getDataLinkName() const { + return dataLinkName_; } -std::string UpdateInstanceRequest::getInstanceSource()const -{ - return instanceSource_; +void UpdateInstanceRequest::setDataLinkName(const std::string &dataLinkName) { + dataLinkName_ = dataLinkName; + setParameter(std::string("DataLinkName"), dataLinkName); } -void UpdateInstanceRequest::setInstanceSource(const std::string& instanceSource) -{ - instanceSource_ = instanceSource; - setParameter("InstanceSource", instanceSource); +std::string UpdateInstanceRequest::getInstanceSource() const { + return instanceSource_; } -std::string UpdateInstanceRequest::getEnvType()const -{ - return envType_; +void UpdateInstanceRequest::setInstanceSource(const std::string &instanceSource) { + instanceSource_ = instanceSource; + setParameter(std::string("InstanceSource"), instanceSource); } -void UpdateInstanceRequest::setEnvType(const std::string& envType) -{ - envType_ = envType; - setParameter("EnvType", envType); +std::string UpdateInstanceRequest::getEnvType() const { + return envType_; } -std::string UpdateInstanceRequest::getHost()const -{ - return host_; +void UpdateInstanceRequest::setEnvType(const std::string &envType) { + envType_ = envType; + setParameter(std::string("EnvType"), envType); } -void UpdateInstanceRequest::setHost(const std::string& host) -{ - host_ = host; - setParameter("Host", host); +std::string UpdateInstanceRequest::getHost() const { + return host_; } -std::string UpdateInstanceRequest::getInstanceType()const -{ - return instanceType_; +void UpdateInstanceRequest::setHost(const std::string &host) { + host_ = host; + setParameter(std::string("Host"), host); } -void UpdateInstanceRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string UpdateInstanceRequest::getInstanceType() const { + return instanceType_; } -int UpdateInstanceRequest::getQueryTimeout()const -{ - return queryTimeout_; +void UpdateInstanceRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void UpdateInstanceRequest::setQueryTimeout(int queryTimeout) -{ - queryTimeout_ = queryTimeout; - setParameter("QueryTimeout", std::to_string(queryTimeout)); +int UpdateInstanceRequest::getQueryTimeout() const { + return queryTimeout_; } -std::string UpdateInstanceRequest::getEcsInstanceId()const -{ - return ecsInstanceId_; +void UpdateInstanceRequest::setQueryTimeout(int queryTimeout) { + queryTimeout_ = queryTimeout; + setParameter(std::string("QueryTimeout"), std::to_string(queryTimeout)); } -void UpdateInstanceRequest::setEcsInstanceId(const std::string& ecsInstanceId) -{ - ecsInstanceId_ = ecsInstanceId; - setParameter("EcsInstanceId", ecsInstanceId); +std::string UpdateInstanceRequest::getEcsInstanceId() const { + return ecsInstanceId_; } -int UpdateInstanceRequest::getExportTimeout()const -{ - return exportTimeout_; +void UpdateInstanceRequest::setEcsInstanceId(const std::string &ecsInstanceId) { + ecsInstanceId_ = ecsInstanceId; + setParameter(std::string("EcsInstanceId"), ecsInstanceId); } -void UpdateInstanceRequest::setExportTimeout(int exportTimeout) -{ - exportTimeout_ = exportTimeout; - setParameter("ExportTimeout", std::to_string(exportTimeout)); +int UpdateInstanceRequest::getExportTimeout() const { + return exportTimeout_; } -std::string UpdateInstanceRequest::getDatabasePassword()const -{ - return databasePassword_; +void UpdateInstanceRequest::setExportTimeout(int exportTimeout) { + exportTimeout_ = exportTimeout; + setParameter(std::string("ExportTimeout"), std::to_string(exportTimeout)); } -void UpdateInstanceRequest::setDatabasePassword(const std::string& databasePassword) -{ - databasePassword_ = databasePassword; - setParameter("DatabasePassword", databasePassword); +std::string UpdateInstanceRequest::getDatabasePassword() const { + return databasePassword_; } -std::string UpdateInstanceRequest::getInstanceAlias()const -{ - return instanceAlias_; +void UpdateInstanceRequest::setDatabasePassword(const std::string &databasePassword) { + databasePassword_ = databasePassword; + setParameter(std::string("DatabasePassword"), databasePassword); } -void UpdateInstanceRequest::setInstanceAlias(const std::string& instanceAlias) -{ - instanceAlias_ = instanceAlias; - setParameter("InstanceAlias", instanceAlias); +std::string UpdateInstanceRequest::getInstanceAlias() const { + return instanceAlias_; } -std::string UpdateInstanceRequest::getDatabaseUser()const -{ - return databaseUser_; +void UpdateInstanceRequest::setInstanceAlias(const std::string &instanceAlias) { + instanceAlias_ = instanceAlias; + setParameter(std::string("InstanceAlias"), instanceAlias); } -void UpdateInstanceRequest::setDatabaseUser(const std::string& databaseUser) -{ - databaseUser_ = databaseUser; - setParameter("DatabaseUser", databaseUser); +std::string UpdateInstanceRequest::getDatabaseUser() const { + return databaseUser_; } -std::string UpdateInstanceRequest::getInstanceId()const -{ - return instanceId_; +void UpdateInstanceRequest::setDatabaseUser(const std::string &databaseUser) { + databaseUser_ = databaseUser; + setParameter(std::string("DatabaseUser"), databaseUser); } -void UpdateInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string UpdateInstanceRequest::getInstanceId() const { + return instanceId_; } -int UpdateInstanceRequest::getPort()const -{ - return port_; +void UpdateInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void UpdateInstanceRequest::setPort(int port) -{ - port_ = port; - setParameter("Port", std::to_string(port)); +int UpdateInstanceRequest::getPort() const { + return port_; } -std::string UpdateInstanceRequest::getVpcId()const -{ - return vpcId_; +void UpdateInstanceRequest::setPort(int port) { + port_ = port; + setParameter(std::string("Port"), std::to_string(port)); } -void UpdateInstanceRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string UpdateInstanceRequest::getVpcId() const { + return vpcId_; } -bool UpdateInstanceRequest::getSkipTest()const -{ - return skipTest_; +void UpdateInstanceRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -void UpdateInstanceRequest::setSkipTest(bool skipTest) -{ - skipTest_ = skipTest; - setParameter("SkipTest", skipTest ? "true" : "false"); +bool UpdateInstanceRequest::getSkipTest() const { + return skipTest_; +} + +void UpdateInstanceRequest::setSkipTest(bool skipTest) { + skipTest_ = skipTest; + setParameter(std::string("SkipTest"), skipTest ? "true" : "false"); } diff --git a/dms-enterprise/src/model/UpdateUserRequest.cc b/dms-enterprise/src/model/UpdateUserRequest.cc index 107d1c38b..76fa95021 100644 --- a/dms-enterprise/src/model/UpdateUserRequest.cc +++ b/dms-enterprise/src/model/UpdateUserRequest.cc @@ -1,106 +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::UpdateUserRequest; - -UpdateUserRequest::UpdateUserRequest() : - RpcServiceRequest("dms-enterprise", "2018-11-01", "UpdateUser") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateUserRequest::~UpdateUserRequest() -{} - -std::string UpdateUserRequest::getRoleNames()const -{ - return roleNames_; + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::UpdateUserRequest; + +UpdateUserRequest::UpdateUserRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "UpdateUser") { + setMethod(HttpRequest::Method::Post); } -void UpdateUserRequest::setRoleNames(const std::string& roleNames) -{ - roleNames_ = roleNames; - setParameter("RoleNames", roleNames); +UpdateUserRequest::~UpdateUserRequest() {} + +std::string UpdateUserRequest::getRoleNames() const { + return roleNames_; } -long UpdateUserRequest::getMaxResultCount()const -{ - return maxResultCount_; +void UpdateUserRequest::setRoleNames(const std::string &roleNames) { + roleNames_ = roleNames; + setParameter(std::string("RoleNames"), roleNames); } -void UpdateUserRequest::setMaxResultCount(long maxResultCount) -{ - maxResultCount_ = maxResultCount; - setParameter("MaxResultCount", std::to_string(maxResultCount)); +long UpdateUserRequest::getMaxResultCount() const { + return maxResultCount_; } -long UpdateUserRequest::getMaxExecuteCount()const -{ - return maxExecuteCount_; +void UpdateUserRequest::setMaxResultCount(long maxResultCount) { + maxResultCount_ = maxResultCount; + setParameter(std::string("MaxResultCount"), std::to_string(maxResultCount)); } -void UpdateUserRequest::setMaxExecuteCount(long maxExecuteCount) -{ - maxExecuteCount_ = maxExecuteCount; - setParameter("MaxExecuteCount", std::to_string(maxExecuteCount)); +long UpdateUserRequest::getMaxExecuteCount() const { + return maxExecuteCount_; } -std::string UpdateUserRequest::getUserNick()const -{ - return userNick_; +void UpdateUserRequest::setMaxExecuteCount(long maxExecuteCount) { + maxExecuteCount_ = maxExecuteCount; + setParameter(std::string("MaxExecuteCount"), std::to_string(maxExecuteCount)); } -void UpdateUserRequest::setUserNick(const std::string& userNick) -{ - userNick_ = userNick; - setParameter("UserNick", userNick); +std::string UpdateUserRequest::getUserNick() const { + return userNick_; } -std::string UpdateUserRequest::getMobile()const -{ - return mobile_; +void UpdateUserRequest::setUserNick(const std::string &userNick) { + userNick_ = userNick; + setParameter(std::string("UserNick"), userNick); } -void UpdateUserRequest::setMobile(const std::string& mobile) -{ - mobile_ = mobile; - setParameter("Mobile", mobile); +std::string UpdateUserRequest::getMobile() const { + return mobile_; } -long UpdateUserRequest::getTid()const -{ - return tid_; +void UpdateUserRequest::setMobile(const std::string &mobile) { + mobile_ = mobile; + setParameter(std::string("Mobile"), mobile); } -void UpdateUserRequest::setTid(long tid) -{ - tid_ = tid; - setParameter("Tid", std::to_string(tid)); +long UpdateUserRequest::getTid() const { + return tid_; } -long UpdateUserRequest::getUid()const -{ - return uid_; +void UpdateUserRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); } -void UpdateUserRequest::setUid(long uid) -{ - uid_ = uid; - setParameter("Uid", std::to_string(uid)); +long UpdateUserRequest::getUid() const { + return uid_; +} + +void UpdateUserRequest::setUid(long uid) { + uid_ = uid; + setParameter(std::string("Uid"), std::to_string(uid)); }