Support GetDataCorrectOrderDetail API to return execMode type.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2022-06-08 Version: 1.36.1143
|
||||
- Support GetDataCorrectOrderDetail API to return execMode type.
|
||||
- Support CreateDataCorrectOrder, CreateFreeLockCorrectOrder API submit with execMode type.
|
||||
|
||||
|
||||
2022-06-07 Version: 1.36.1142
|
||||
- Support ModifyDBClusterPayType.
|
||||
|
||||
|
||||
@@ -21,6 +21,8 @@ set(dms-enterprise_public_header
|
||||
include/alibabacloud/dms-enterprise/Dms_enterpriseExport.h )
|
||||
|
||||
set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/AddDesensitizationRuleRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/AddDesensitizationRuleResult.h
|
||||
include/alibabacloud/dms-enterprise/model/AddLhMembersRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/AddLhMembersResult.h
|
||||
include/alibabacloud/dms-enterprise/model/AddLogicTableRouteConfigRequest.h
|
||||
@@ -185,6 +187,8 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDatabasesRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDatabasesResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDesensitizationRuleRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDesensitizationRuleResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListIndexesRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListIndexesResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListInstanceLoginAuditLogRequest.h
|
||||
@@ -237,6 +241,8 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ModifyDataCorrectExecSQLRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ModifyDataCorrectExecSQLResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ModifyDesensitizationStrategyRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ModifyDesensitizationStrategyResult.h
|
||||
include/alibabacloud/dms-enterprise/model/OfflineTaskFlowRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/OfflineTaskFlowResult.h
|
||||
include/alibabacloud/dms-enterprise/model/PauseDataCorrectSQLJobRequest.h
|
||||
@@ -274,6 +280,8 @@ set(dms-enterprise_public_header_model
|
||||
|
||||
set(dms-enterprise_src
|
||||
src/Dms-enterpriseClient.cc
|
||||
src/model/AddDesensitizationRuleRequest.cc
|
||||
src/model/AddDesensitizationRuleResult.cc
|
||||
src/model/AddLhMembersRequest.cc
|
||||
src/model/AddLhMembersResult.cc
|
||||
src/model/AddLogicTableRouteConfigRequest.cc
|
||||
@@ -438,6 +446,8 @@ set(dms-enterprise_src
|
||||
src/model/ListDatabaseUserPermssionsResult.cc
|
||||
src/model/ListDatabasesRequest.cc
|
||||
src/model/ListDatabasesResult.cc
|
||||
src/model/ListDesensitizationRuleRequest.cc
|
||||
src/model/ListDesensitizationRuleResult.cc
|
||||
src/model/ListIndexesRequest.cc
|
||||
src/model/ListIndexesResult.cc
|
||||
src/model/ListInstanceLoginAuditLogRequest.cc
|
||||
@@ -490,6 +500,8 @@ set(dms-enterprise_src
|
||||
src/model/ListWorkFlowTemplatesResult.cc
|
||||
src/model/ModifyDataCorrectExecSQLRequest.cc
|
||||
src/model/ModifyDataCorrectExecSQLResult.cc
|
||||
src/model/ModifyDesensitizationStrategyRequest.cc
|
||||
src/model/ModifyDesensitizationStrategyResult.cc
|
||||
src/model/OfflineTaskFlowRequest.cc
|
||||
src/model/OfflineTaskFlowResult.cc
|
||||
src/model/PauseDataCorrectSQLJobRequest.cc
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "Dms_enterpriseExport.h"
|
||||
#include "model/AddDesensitizationRuleRequest.h"
|
||||
#include "model/AddDesensitizationRuleResult.h"
|
||||
#include "model/AddLhMembersRequest.h"
|
||||
#include "model/AddLhMembersResult.h"
|
||||
#include "model/AddLogicTableRouteConfigRequest.h"
|
||||
@@ -186,6 +188,8 @@
|
||||
#include "model/ListDatabaseUserPermssionsResult.h"
|
||||
#include "model/ListDatabasesRequest.h"
|
||||
#include "model/ListDatabasesResult.h"
|
||||
#include "model/ListDesensitizationRuleRequest.h"
|
||||
#include "model/ListDesensitizationRuleResult.h"
|
||||
#include "model/ListIndexesRequest.h"
|
||||
#include "model/ListIndexesResult.h"
|
||||
#include "model/ListInstanceLoginAuditLogRequest.h"
|
||||
@@ -238,6 +242,8 @@
|
||||
#include "model/ListWorkFlowTemplatesResult.h"
|
||||
#include "model/ModifyDataCorrectExecSQLRequest.h"
|
||||
#include "model/ModifyDataCorrectExecSQLResult.h"
|
||||
#include "model/ModifyDesensitizationStrategyRequest.h"
|
||||
#include "model/ModifyDesensitizationStrategyResult.h"
|
||||
#include "model/OfflineTaskFlowRequest.h"
|
||||
#include "model/OfflineTaskFlowResult.h"
|
||||
#include "model/PauseDataCorrectSQLJobRequest.h"
|
||||
@@ -281,6 +287,9 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT Dms_enterpriseClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AddDesensitizationRuleResult> AddDesensitizationRuleOutcome;
|
||||
typedef std::future<AddDesensitizationRuleOutcome> AddDesensitizationRuleOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::AddDesensitizationRuleRequest&, const AddDesensitizationRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddDesensitizationRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddLhMembersResult> AddLhMembersOutcome;
|
||||
typedef std::future<AddLhMembersOutcome> AddLhMembersOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::AddLhMembersRequest&, const AddLhMembersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddLhMembersAsyncHandler;
|
||||
@@ -527,6 +536,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListDatabasesResult> ListDatabasesOutcome;
|
||||
typedef std::future<ListDatabasesOutcome> ListDatabasesOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListDatabasesRequest&, const ListDatabasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDatabasesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDesensitizationRuleResult> ListDesensitizationRuleOutcome;
|
||||
typedef std::future<ListDesensitizationRuleOutcome> ListDesensitizationRuleOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListDesensitizationRuleRequest&, const ListDesensitizationRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDesensitizationRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListIndexesResult> ListIndexesOutcome;
|
||||
typedef std::future<ListIndexesOutcome> ListIndexesOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListIndexesRequest&, const ListIndexesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListIndexesAsyncHandler;
|
||||
@@ -605,6 +617,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyDataCorrectExecSQLResult> ModifyDataCorrectExecSQLOutcome;
|
||||
typedef std::future<ModifyDataCorrectExecSQLOutcome> ModifyDataCorrectExecSQLOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ModifyDataCorrectExecSQLRequest&, const ModifyDataCorrectExecSQLOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDataCorrectExecSQLAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDesensitizationStrategyResult> ModifyDesensitizationStrategyOutcome;
|
||||
typedef std::future<ModifyDesensitizationStrategyOutcome> ModifyDesensitizationStrategyOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ModifyDesensitizationStrategyRequest&, const ModifyDesensitizationStrategyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDesensitizationStrategyAsyncHandler;
|
||||
typedef Outcome<Error, Model::OfflineTaskFlowResult> OfflineTaskFlowOutcome;
|
||||
typedef std::future<OfflineTaskFlowOutcome> OfflineTaskFlowOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::OfflineTaskFlowRequest&, const OfflineTaskFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OfflineTaskFlowAsyncHandler;
|
||||
@@ -661,6 +676,9 @@ namespace AlibabaCloud
|
||||
Dms_enterpriseClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
Dms_enterpriseClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~Dms_enterpriseClient();
|
||||
AddDesensitizationRuleOutcome addDesensitizationRule(const Model::AddDesensitizationRuleRequest &request)const;
|
||||
void addDesensitizationRuleAsync(const Model::AddDesensitizationRuleRequest& request, const AddDesensitizationRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddDesensitizationRuleOutcomeCallable addDesensitizationRuleCallable(const Model::AddDesensitizationRuleRequest& request) const;
|
||||
AddLhMembersOutcome addLhMembers(const Model::AddLhMembersRequest &request)const;
|
||||
void addLhMembersAsync(const Model::AddLhMembersRequest& request, const AddLhMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddLhMembersOutcomeCallable addLhMembersCallable(const Model::AddLhMembersRequest& request) const;
|
||||
@@ -907,6 +925,9 @@ namespace AlibabaCloud
|
||||
ListDatabasesOutcome listDatabases(const Model::ListDatabasesRequest &request)const;
|
||||
void listDatabasesAsync(const Model::ListDatabasesRequest& request, const ListDatabasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDatabasesOutcomeCallable listDatabasesCallable(const Model::ListDatabasesRequest& request) const;
|
||||
ListDesensitizationRuleOutcome listDesensitizationRule(const Model::ListDesensitizationRuleRequest &request)const;
|
||||
void listDesensitizationRuleAsync(const Model::ListDesensitizationRuleRequest& request, const ListDesensitizationRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDesensitizationRuleOutcomeCallable listDesensitizationRuleCallable(const Model::ListDesensitizationRuleRequest& request) const;
|
||||
ListIndexesOutcome listIndexes(const Model::ListIndexesRequest &request)const;
|
||||
void listIndexesAsync(const Model::ListIndexesRequest& request, const ListIndexesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListIndexesOutcomeCallable listIndexesCallable(const Model::ListIndexesRequest& request) const;
|
||||
@@ -985,6 +1006,9 @@ namespace AlibabaCloud
|
||||
ModifyDataCorrectExecSQLOutcome modifyDataCorrectExecSQL(const Model::ModifyDataCorrectExecSQLRequest &request)const;
|
||||
void modifyDataCorrectExecSQLAsync(const Model::ModifyDataCorrectExecSQLRequest& request, const ModifyDataCorrectExecSQLAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDataCorrectExecSQLOutcomeCallable modifyDataCorrectExecSQLCallable(const Model::ModifyDataCorrectExecSQLRequest& request) const;
|
||||
ModifyDesensitizationStrategyOutcome modifyDesensitizationStrategy(const Model::ModifyDesensitizationStrategyRequest &request)const;
|
||||
void modifyDesensitizationStrategyAsync(const Model::ModifyDesensitizationStrategyRequest& request, const ModifyDesensitizationStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDesensitizationStrategyOutcomeCallable modifyDesensitizationStrategyCallable(const Model::ModifyDesensitizationStrategyRequest& request) const;
|
||||
OfflineTaskFlowOutcome offlineTaskFlow(const Model::OfflineTaskFlowRequest &request)const;
|
||||
void offlineTaskFlowAsync(const Model::OfflineTaskFlowRequest& request, const OfflineTaskFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
OfflineTaskFlowOutcomeCallable offlineTaskFlowCallable(const Model::OfflineTaskFlowRequest& request) const;
|
||||
|
||||
@@ -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_ADDDESENSITIZATIONRULEREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ADDDESENSITIZATIONRULEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dms_enterprise {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT AddDesensitizationRuleRequest : public RpcServiceRequest {
|
||||
public:
|
||||
AddDesensitizationRuleRequest();
|
||||
~AddDesensitizationRuleRequest();
|
||||
std::string getRuleDescription() const;
|
||||
void setRuleDescription(const std::string &ruleDescription);
|
||||
std::vector<std::map<std::string, std::string>> getFunctionParams() const;
|
||||
void setFunctionParams(const std::vector<std::map<std::string, std::string>> &functionParams);
|
||||
std::string getRuleType() const;
|
||||
void setRuleType(const std::string &ruleType);
|
||||
std::string getRuleName() const;
|
||||
void setRuleName(const std::string &ruleName);
|
||||
std::string getFunctionType() const;
|
||||
void setFunctionType(const std::string &functionType);
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
|
||||
private:
|
||||
std::string ruleDescription_;
|
||||
std::vector<std::map<std::string, std::string>> functionParams_;
|
||||
std::string ruleType_;
|
||||
std::string ruleName_;
|
||||
std::string functionType_;
|
||||
long tid_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ADDDESENSITIZATIONRULEREQUEST_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_ADDDESENSITIZATIONRULERESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ADDDESENSITIZATIONRULERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT AddDesensitizationRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddDesensitizationRuleResult();
|
||||
explicit AddDesensitizationRuleResult(const std::string &payload);
|
||||
~AddDesensitizationRuleResult();
|
||||
int getRuleId()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int ruleId_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ADDDESENSITIZATIONRULERESULT_H_
|
||||
@@ -40,6 +40,7 @@ public:
|
||||
DbItemListItem dbItemListItem;
|
||||
std::vector<DbItemListItem> dbItemList;
|
||||
std::string execSQL;
|
||||
std::string execMode;
|
||||
long estimateAffectRows;
|
||||
std::string rollbackAttachmentName;
|
||||
std::string attachmentName;
|
||||
|
||||
@@ -40,6 +40,7 @@ public:
|
||||
DbItemListItem dbItemListItem;
|
||||
std::vector<DbItemListItem> dbItemList;
|
||||
std::string execSQL;
|
||||
std::string execMode;
|
||||
std::string rollbackAttachmentName;
|
||||
std::string attachmentName;
|
||||
};
|
||||
|
||||
@@ -66,6 +66,7 @@ namespace AlibabaCloud
|
||||
std::string status;
|
||||
std::vector<Database> databaseList;
|
||||
std::vector<TaskCheckDO> preCheckDetail;
|
||||
std::string execMode;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDESENSITIZATIONRULEREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDESENSITIZATIONRULEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dms_enterprise {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDesensitizationRuleRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListDesensitizationRuleRequest();
|
||||
~ListDesensitizationRuleRequest();
|
||||
std::string getRuleType() const;
|
||||
void setRuleType(const std::string &ruleType);
|
||||
std::string getRuleName() const;
|
||||
void setRuleName(const std::string &ruleName);
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
std::string getFuncType() const;
|
||||
void setFuncType(const std::string &funcType);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
int getRuleId() const;
|
||||
void setRuleId(int ruleId);
|
||||
|
||||
private:
|
||||
std::string ruleType_;
|
||||
std::string ruleName_;
|
||||
int pageNumber_;
|
||||
long tid_;
|
||||
std::string funcType_;
|
||||
int pageSize_;
|
||||
int ruleId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDESENSITIZATIONRULEREQUEST_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDESENSITIZATIONRULERESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDESENSITIZATIONRULERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDesensitizationRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DesensitizationRule
|
||||
{
|
||||
std::string lastModifierId;
|
||||
std::string functionType;
|
||||
int ruleId;
|
||||
std::string ruleDesc;
|
||||
std::string ruleType;
|
||||
std::string funcSample;
|
||||
std::string ruleName;
|
||||
std::string lastModifierName;
|
||||
int referenceCount;
|
||||
std::string funcParams;
|
||||
};
|
||||
|
||||
|
||||
ListDesensitizationRuleResult();
|
||||
explicit ListDesensitizationRuleResult(const std::string &payload);
|
||||
~ListDesensitizationRuleResult();
|
||||
int getTotalCount()const;
|
||||
std::vector<DesensitizationRule> getDesensitizationRuleList()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
std::vector<DesensitizationRule> desensitizationRuleList_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDESENSITIZATIONRULERESULT_H_
|
||||
@@ -0,0 +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_MODIFYDESENSITIZATIONSTRATEGYREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_MODIFYDESENSITIZATIONSTRATEGYREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dms_enterprise {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ModifyDesensitizationStrategyRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ModifyDesensitizationStrategyRequest();
|
||||
~ModifyDesensitizationStrategyRequest();
|
||||
std::string getSchemaName() const;
|
||||
void setSchemaName(const std::string &schemaName);
|
||||
bool getIsReset() const;
|
||||
void setIsReset(bool isReset);
|
||||
bool getIsLogic() const;
|
||||
void setIsLogic(bool isLogic);
|
||||
std::string getColumnName() const;
|
||||
void setColumnName(const std::string &columnName);
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
int getDbId() const;
|
||||
void setDbId(int dbId);
|
||||
std::string getTableName() const;
|
||||
void setTableName(const std::string &tableName);
|
||||
int getRuleId() const;
|
||||
void setRuleId(int ruleId);
|
||||
|
||||
private:
|
||||
std::string schemaName_;
|
||||
bool isReset_;
|
||||
bool isLogic_;
|
||||
std::string columnName_;
|
||||
long tid_;
|
||||
int dbId_;
|
||||
std::string tableName_;
|
||||
int ruleId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_MODIFYDESENSITIZATIONSTRATEGYREQUEST_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_MODIFYDESENSITIZATIONSTRATEGYRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_MODIFYDESENSITIZATIONSTRATEGYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ModifyDesensitizationStrategyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDesensitizationStrategyResult();
|
||||
explicit ModifyDesensitizationStrategyResult(const std::string &payload);
|
||||
~ModifyDesensitizationStrategyResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
bool getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
bool result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_MODIFYDESENSITIZATIONSTRATEGYRESULT_H_
|
||||
@@ -51,6 +51,42 @@ Dms_enterpriseClient::Dms_enterpriseClient(const std::string & accessKeyId, cons
|
||||
Dms_enterpriseClient::~Dms_enterpriseClient()
|
||||
{}
|
||||
|
||||
Dms_enterpriseClient::AddDesensitizationRuleOutcome Dms_enterpriseClient::addDesensitizationRule(const AddDesensitizationRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddDesensitizationRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddDesensitizationRuleOutcome(AddDesensitizationRuleResult(outcome.result()));
|
||||
else
|
||||
return AddDesensitizationRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::addDesensitizationRuleAsync(const AddDesensitizationRuleRequest& request, const AddDesensitizationRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addDesensitizationRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::AddDesensitizationRuleOutcomeCallable Dms_enterpriseClient::addDesensitizationRuleCallable(const AddDesensitizationRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddDesensitizationRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addDesensitizationRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::AddLhMembersOutcome Dms_enterpriseClient::addLhMembers(const AddLhMembersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3003,6 +3039,42 @@ Dms_enterpriseClient::ListDatabasesOutcomeCallable Dms_enterpriseClient::listDat
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListDesensitizationRuleOutcome Dms_enterpriseClient::listDesensitizationRule(const ListDesensitizationRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListDesensitizationRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListDesensitizationRuleOutcome(ListDesensitizationRuleResult(outcome.result()));
|
||||
else
|
||||
return ListDesensitizationRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::listDesensitizationRuleAsync(const ListDesensitizationRuleRequest& request, const ListDesensitizationRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listDesensitizationRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListDesensitizationRuleOutcomeCallable Dms_enterpriseClient::listDesensitizationRuleCallable(const ListDesensitizationRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListDesensitizationRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listDesensitizationRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListIndexesOutcome Dms_enterpriseClient::listIndexes(const ListIndexesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3939,6 +4011,42 @@ Dms_enterpriseClient::ModifyDataCorrectExecSQLOutcomeCallable Dms_enterpriseClie
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ModifyDesensitizationStrategyOutcome Dms_enterpriseClient::modifyDesensitizationStrategy(const ModifyDesensitizationStrategyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDesensitizationStrategyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDesensitizationStrategyOutcome(ModifyDesensitizationStrategyResult(outcome.result()));
|
||||
else
|
||||
return ModifyDesensitizationStrategyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::modifyDesensitizationStrategyAsync(const ModifyDesensitizationStrategyRequest& request, const ModifyDesensitizationStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDesensitizationStrategy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ModifyDesensitizationStrategyOutcomeCallable Dms_enterpriseClient::modifyDesensitizationStrategyCallable(const ModifyDesensitizationStrategyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDesensitizationStrategyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDesensitizationStrategy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::OfflineTaskFlowOutcome Dms_enterpriseClient::offlineTaskFlow(const OfflineTaskFlowRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
85
dms-enterprise/src/model/AddDesensitizationRuleRequest.cc
Normal file
85
dms-enterprise/src/model/AddDesensitizationRuleRequest.cc
Normal file
@@ -0,0 +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 <alibabacloud/dms-enterprise/model/AddDesensitizationRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::AddDesensitizationRuleRequest;
|
||||
|
||||
AddDesensitizationRuleRequest::AddDesensitizationRuleRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "AddDesensitizationRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddDesensitizationRuleRequest::~AddDesensitizationRuleRequest() {}
|
||||
|
||||
std::string AddDesensitizationRuleRequest::getRuleDescription() const {
|
||||
return ruleDescription_;
|
||||
}
|
||||
|
||||
void AddDesensitizationRuleRequest::setRuleDescription(const std::string &ruleDescription) {
|
||||
ruleDescription_ = ruleDescription;
|
||||
setParameter(std::string("RuleDescription"), ruleDescription);
|
||||
}
|
||||
|
||||
std::vector<AddDesensitizationRuleRequest::std::map<std::string, std::string>> AddDesensitizationRuleRequest::getFunctionParams() const {
|
||||
return functionParams_;
|
||||
}
|
||||
|
||||
void AddDesensitizationRuleRequest::setFunctionParams(const std::vector<AddDesensitizationRuleRequest::std::map<std::string, std::string>> &functionParams) {
|
||||
functionParams_ = functionParams;
|
||||
for(int dep1 = 0; dep1 != functionParams.size(); dep1++) {
|
||||
for(auto const &iter2 : functionParams[dep1]) {
|
||||
setBodyParameter(std::string("FunctionParams") + "." + std::to_string(dep1 + 1) + "." + iter2.first, iter2.second);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::string AddDesensitizationRuleRequest::getRuleType() const {
|
||||
return ruleType_;
|
||||
}
|
||||
|
||||
void AddDesensitizationRuleRequest::setRuleType(const std::string &ruleType) {
|
||||
ruleType_ = ruleType;
|
||||
setParameter(std::string("RuleType"), ruleType);
|
||||
}
|
||||
|
||||
std::string AddDesensitizationRuleRequest::getRuleName() const {
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void AddDesensitizationRuleRequest::setRuleName(const std::string &ruleName) {
|
||||
ruleName_ = ruleName;
|
||||
setParameter(std::string("RuleName"), ruleName);
|
||||
}
|
||||
|
||||
std::string AddDesensitizationRuleRequest::getFunctionType() const {
|
||||
return functionType_;
|
||||
}
|
||||
|
||||
void AddDesensitizationRuleRequest::setFunctionType(const std::string &functionType) {
|
||||
functionType_ = functionType;
|
||||
setParameter(std::string("FunctionType"), functionType);
|
||||
}
|
||||
|
||||
long AddDesensitizationRuleRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void AddDesensitizationRuleRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
72
dms-enterprise/src/model/AddDesensitizationRuleResult.cc
Normal file
72
dms-enterprise/src/model/AddDesensitizationRuleResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/AddDesensitizationRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
AddDesensitizationRuleResult::AddDesensitizationRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddDesensitizationRuleResult::AddDesensitizationRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddDesensitizationRuleResult::~AddDesensitizationRuleResult()
|
||||
{}
|
||||
|
||||
void AddDesensitizationRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["RuleId"].isNull())
|
||||
ruleId_ = std::stoi(value["RuleId"].asString());
|
||||
|
||||
}
|
||||
|
||||
int AddDesensitizationRuleResult::getRuleId()const
|
||||
{
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
std::string AddDesensitizationRuleResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string AddDesensitizationRuleResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool AddDesensitizationRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -58,6 +58,7 @@ void CreateDataCorrectOrderRequest::setParam(const CreateDataCorrectOrderRequest
|
||||
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") + ".ExecMode", param.execMode);
|
||||
setParameter(std::string("Param") + ".EstimateAffectRows", std::to_string(param.estimateAffectRows));
|
||||
setParameter(std::string("Param") + ".RollbackAttachmentName", param.rollbackAttachmentName);
|
||||
setParameter(std::string("Param") + ".AttachmentName", param.attachmentName);
|
||||
|
||||
@@ -58,6 +58,7 @@ void CreateFreeLockCorrectOrderRequest::setParam(const CreateFreeLockCorrectOrde
|
||||
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") + ".ExecMode", param.execMode);
|
||||
setParameter(std::string("Param") + ".RollbackAttachmentName", param.rollbackAttachmentName);
|
||||
setParameter(std::string("Param") + ".AttachmentName", param.attachmentName);
|
||||
}
|
||||
|
||||
@@ -42,6 +42,8 @@ void GetDataCorrectOrderDetailResult::parse(const std::string &payload)
|
||||
auto dataCorrectOrderDetailNode = value["DataCorrectOrderDetail"];
|
||||
if(!dataCorrectOrderDetailNode["Status"].isNull())
|
||||
dataCorrectOrderDetail_.status = dataCorrectOrderDetailNode["Status"].asString();
|
||||
if(!dataCorrectOrderDetailNode["ExecMode"].isNull())
|
||||
dataCorrectOrderDetail_.execMode = dataCorrectOrderDetailNode["ExecMode"].asString();
|
||||
auto allPreCheckDetailNode = dataCorrectOrderDetailNode["PreCheckDetail"]["TaskCheckDO"];
|
||||
for (auto dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO : allPreCheckDetailNode)
|
||||
{
|
||||
|
||||
90
dms-enterprise/src/model/ListDesensitizationRuleRequest.cc
Normal file
90
dms-enterprise/src/model/ListDesensitizationRuleRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ListDesensitizationRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListDesensitizationRuleRequest;
|
||||
|
||||
ListDesensitizationRuleRequest::ListDesensitizationRuleRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDesensitizationRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDesensitizationRuleRequest::~ListDesensitizationRuleRequest() {}
|
||||
|
||||
std::string ListDesensitizationRuleRequest::getRuleType() const {
|
||||
return ruleType_;
|
||||
}
|
||||
|
||||
void ListDesensitizationRuleRequest::setRuleType(const std::string &ruleType) {
|
||||
ruleType_ = ruleType;
|
||||
setParameter(std::string("RuleType"), ruleType);
|
||||
}
|
||||
|
||||
std::string ListDesensitizationRuleRequest::getRuleName() const {
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void ListDesensitizationRuleRequest::setRuleName(const std::string &ruleName) {
|
||||
ruleName_ = ruleName;
|
||||
setParameter(std::string("RuleName"), ruleName);
|
||||
}
|
||||
|
||||
int ListDesensitizationRuleRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListDesensitizationRuleRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
long ListDesensitizationRuleRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void ListDesensitizationRuleRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
std::string ListDesensitizationRuleRequest::getFuncType() const {
|
||||
return funcType_;
|
||||
}
|
||||
|
||||
void ListDesensitizationRuleRequest::setFuncType(const std::string &funcType) {
|
||||
funcType_ = funcType;
|
||||
setParameter(std::string("FuncType"), funcType);
|
||||
}
|
||||
|
||||
int ListDesensitizationRuleRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDesensitizationRuleRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListDesensitizationRuleRequest::getRuleId() const {
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void ListDesensitizationRuleRequest::setRuleId(int ruleId) {
|
||||
ruleId_ = ruleId;
|
||||
setParameter(std::string("RuleId"), std::to_string(ruleId));
|
||||
}
|
||||
|
||||
103
dms-enterprise/src/model/ListDesensitizationRuleResult.cc
Normal file
103
dms-enterprise/src/model/ListDesensitizationRuleResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ListDesensitizationRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
ListDesensitizationRuleResult::ListDesensitizationRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDesensitizationRuleResult::ListDesensitizationRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDesensitizationRuleResult::~ListDesensitizationRuleResult()
|
||||
{}
|
||||
|
||||
void ListDesensitizationRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDesensitizationRuleListNode = value["DesensitizationRuleList"]["DesensitizationRule"];
|
||||
for (auto valueDesensitizationRuleListDesensitizationRule : allDesensitizationRuleListNode)
|
||||
{
|
||||
DesensitizationRule desensitizationRuleListObject;
|
||||
if(!valueDesensitizationRuleListDesensitizationRule["RuleName"].isNull())
|
||||
desensitizationRuleListObject.ruleName = valueDesensitizationRuleListDesensitizationRule["RuleName"].asString();
|
||||
if(!valueDesensitizationRuleListDesensitizationRule["RuleType"].isNull())
|
||||
desensitizationRuleListObject.ruleType = valueDesensitizationRuleListDesensitizationRule["RuleType"].asString();
|
||||
if(!valueDesensitizationRuleListDesensitizationRule["RuleDesc"].isNull())
|
||||
desensitizationRuleListObject.ruleDesc = valueDesensitizationRuleListDesensitizationRule["RuleDesc"].asString();
|
||||
if(!valueDesensitizationRuleListDesensitizationRule["FunctionType"].isNull())
|
||||
desensitizationRuleListObject.functionType = valueDesensitizationRuleListDesensitizationRule["FunctionType"].asString();
|
||||
if(!valueDesensitizationRuleListDesensitizationRule["FuncParams"].isNull())
|
||||
desensitizationRuleListObject.funcParams = valueDesensitizationRuleListDesensitizationRule["FuncParams"].asString();
|
||||
if(!valueDesensitizationRuleListDesensitizationRule["FuncSample"].isNull())
|
||||
desensitizationRuleListObject.funcSample = valueDesensitizationRuleListDesensitizationRule["FuncSample"].asString();
|
||||
if(!valueDesensitizationRuleListDesensitizationRule["LastModifierId"].isNull())
|
||||
desensitizationRuleListObject.lastModifierId = valueDesensitizationRuleListDesensitizationRule["LastModifierId"].asString();
|
||||
if(!valueDesensitizationRuleListDesensitizationRule["LastModifierName"].isNull())
|
||||
desensitizationRuleListObject.lastModifierName = valueDesensitizationRuleListDesensitizationRule["LastModifierName"].asString();
|
||||
if(!valueDesensitizationRuleListDesensitizationRule["ReferenceCount"].isNull())
|
||||
desensitizationRuleListObject.referenceCount = std::stoi(valueDesensitizationRuleListDesensitizationRule["ReferenceCount"].asString());
|
||||
if(!valueDesensitizationRuleListDesensitizationRule["RuleId"].isNull())
|
||||
desensitizationRuleListObject.ruleId = std::stoi(valueDesensitizationRuleListDesensitizationRule["RuleId"].asString());
|
||||
desensitizationRuleList_.push_back(desensitizationRuleListObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(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";
|
||||
|
||||
}
|
||||
|
||||
int ListDesensitizationRuleResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<ListDesensitizationRuleResult::DesensitizationRule> ListDesensitizationRuleResult::getDesensitizationRuleList()const
|
||||
{
|
||||
return desensitizationRuleList_;
|
||||
}
|
||||
|
||||
std::string ListDesensitizationRuleResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListDesensitizationRuleResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListDesensitizationRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -0,0 +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 <alibabacloud/dms-enterprise/model/ModifyDesensitizationStrategyRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ModifyDesensitizationStrategyRequest;
|
||||
|
||||
ModifyDesensitizationStrategyRequest::ModifyDesensitizationStrategyRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ModifyDesensitizationStrategy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDesensitizationStrategyRequest::~ModifyDesensitizationStrategyRequest() {}
|
||||
|
||||
std::string ModifyDesensitizationStrategyRequest::getSchemaName() const {
|
||||
return schemaName_;
|
||||
}
|
||||
|
||||
void ModifyDesensitizationStrategyRequest::setSchemaName(const std::string &schemaName) {
|
||||
schemaName_ = schemaName;
|
||||
setParameter(std::string("SchemaName"), schemaName);
|
||||
}
|
||||
|
||||
bool ModifyDesensitizationStrategyRequest::getIsReset() const {
|
||||
return isReset_;
|
||||
}
|
||||
|
||||
void ModifyDesensitizationStrategyRequest::setIsReset(bool isReset) {
|
||||
isReset_ = isReset;
|
||||
setParameter(std::string("IsReset"), isReset ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ModifyDesensitizationStrategyRequest::getIsLogic() const {
|
||||
return isLogic_;
|
||||
}
|
||||
|
||||
void ModifyDesensitizationStrategyRequest::setIsLogic(bool isLogic) {
|
||||
isLogic_ = isLogic;
|
||||
setParameter(std::string("IsLogic"), isLogic ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyDesensitizationStrategyRequest::getColumnName() const {
|
||||
return columnName_;
|
||||
}
|
||||
|
||||
void ModifyDesensitizationStrategyRequest::setColumnName(const std::string &columnName) {
|
||||
columnName_ = columnName;
|
||||
setParameter(std::string("ColumnName"), columnName);
|
||||
}
|
||||
|
||||
long ModifyDesensitizationStrategyRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void ModifyDesensitizationStrategyRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
int ModifyDesensitizationStrategyRequest::getDbId() const {
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
void ModifyDesensitizationStrategyRequest::setDbId(int dbId) {
|
||||
dbId_ = dbId;
|
||||
setParameter(std::string("DbId"), std::to_string(dbId));
|
||||
}
|
||||
|
||||
std::string ModifyDesensitizationStrategyRequest::getTableName() const {
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void ModifyDesensitizationStrategyRequest::setTableName(const std::string &tableName) {
|
||||
tableName_ = tableName;
|
||||
setParameter(std::string("TableName"), tableName);
|
||||
}
|
||||
|
||||
int ModifyDesensitizationStrategyRequest::getRuleId() const {
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void ModifyDesensitizationStrategyRequest::setRuleId(int ruleId) {
|
||||
ruleId_ = ruleId;
|
||||
setParameter(std::string("RuleId"), std::to_string(ruleId));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ModifyDesensitizationStrategyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
ModifyDesensitizationStrategyResult::ModifyDesensitizationStrategyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDesensitizationStrategyResult::ModifyDesensitizationStrategyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDesensitizationStrategyResult::~ModifyDesensitizationStrategyResult()
|
||||
{}
|
||||
|
||||
void ModifyDesensitizationStrategyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyDesensitizationStrategyResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ModifyDesensitizationStrategyResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ModifyDesensitizationStrategyResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
bool ModifyDesensitizationStrategyResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user