Supported DescribeMaskingRules.

This commit is contained in:
sdk-team
2021-07-29 08:42:01 +00:00
parent d10310dfdf
commit 59cfd7acc2
24 changed files with 889 additions and 35 deletions

View File

@@ -1,3 +1,8 @@
2021-07-29 Version: 1.36.832
- Supported DescribeMaskingRules.
- ModifyMaskingRules.
- DeleteMaskingRules.
2021-07-29 Version: 1.36.831
- ListAppInstanceResponse add status field.

View File

@@ -1 +1 @@
1.36.831
1.36.832

View File

@@ -67,6 +67,8 @@ set(polardb_public_header_model
include/alibabacloud/polardb/model/DeleteDatabaseResult.h
include/alibabacloud/polardb/model/DeleteGlobalDatabaseNetworkRequest.h
include/alibabacloud/polardb/model/DeleteGlobalDatabaseNetworkResult.h
include/alibabacloud/polardb/model/DeleteMaskingRulesRequest.h
include/alibabacloud/polardb/model/DeleteMaskingRulesResult.h
include/alibabacloud/polardb/model/DeleteParameterGroupRequest.h
include/alibabacloud/polardb/model/DeleteParameterGroupResult.h
include/alibabacloud/polardb/model/DescribeAccountsRequest.h
@@ -127,6 +129,8 @@ set(polardb_public_header_model
include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksResult.h
include/alibabacloud/polardb/model/DescribeLogBackupPolicyRequest.h
include/alibabacloud/polardb/model/DescribeLogBackupPolicyResult.h
include/alibabacloud/polardb/model/DescribeMaskingRulesRequest.h
include/alibabacloud/polardb/model/DescribeMaskingRulesResult.h
include/alibabacloud/polardb/model/DescribeMetaListRequest.h
include/alibabacloud/polardb/model/DescribeMetaListResult.h
include/alibabacloud/polardb/model/DescribeParameterGroupRequest.h
@@ -195,6 +199,8 @@ set(polardb_public_header_model
include/alibabacloud/polardb/model/ModifyGlobalDatabaseNetworkResult.h
include/alibabacloud/polardb/model/ModifyLogBackupPolicyRequest.h
include/alibabacloud/polardb/model/ModifyLogBackupPolicyResult.h
include/alibabacloud/polardb/model/ModifyMaskingRulesRequest.h
include/alibabacloud/polardb/model/ModifyMaskingRulesResult.h
include/alibabacloud/polardb/model/ModifyPendingMaintenanceActionRequest.h
include/alibabacloud/polardb/model/ModifyPendingMaintenanceActionResult.h
include/alibabacloud/polardb/model/RemoveDBClusterFromGDNRequest.h
@@ -266,6 +272,8 @@ set(polardb_src
src/model/DeleteDatabaseResult.cc
src/model/DeleteGlobalDatabaseNetworkRequest.cc
src/model/DeleteGlobalDatabaseNetworkResult.cc
src/model/DeleteMaskingRulesRequest.cc
src/model/DeleteMaskingRulesResult.cc
src/model/DeleteParameterGroupRequest.cc
src/model/DeleteParameterGroupResult.cc
src/model/DescribeAccountsRequest.cc
@@ -326,6 +334,8 @@ set(polardb_src
src/model/DescribeGlobalDatabaseNetworksResult.cc
src/model/DescribeLogBackupPolicyRequest.cc
src/model/DescribeLogBackupPolicyResult.cc
src/model/DescribeMaskingRulesRequest.cc
src/model/DescribeMaskingRulesResult.cc
src/model/DescribeMetaListRequest.cc
src/model/DescribeMetaListResult.cc
src/model/DescribeParameterGroupRequest.cc
@@ -394,6 +404,8 @@ set(polardb_src
src/model/ModifyGlobalDatabaseNetworkResult.cc
src/model/ModifyLogBackupPolicyRequest.cc
src/model/ModifyLogBackupPolicyResult.cc
src/model/ModifyMaskingRulesRequest.cc
src/model/ModifyMaskingRulesResult.cc
src/model/ModifyPendingMaintenanceActionRequest.cc
src/model/ModifyPendingMaintenanceActionResult.cc
src/model/RemoveDBClusterFromGDNRequest.cc

View File

@@ -68,6 +68,8 @@
#include "model/DeleteDatabaseResult.h"
#include "model/DeleteGlobalDatabaseNetworkRequest.h"
#include "model/DeleteGlobalDatabaseNetworkResult.h"
#include "model/DeleteMaskingRulesRequest.h"
#include "model/DeleteMaskingRulesResult.h"
#include "model/DeleteParameterGroupRequest.h"
#include "model/DeleteParameterGroupResult.h"
#include "model/DescribeAccountsRequest.h"
@@ -128,6 +130,8 @@
#include "model/DescribeGlobalDatabaseNetworksResult.h"
#include "model/DescribeLogBackupPolicyRequest.h"
#include "model/DescribeLogBackupPolicyResult.h"
#include "model/DescribeMaskingRulesRequest.h"
#include "model/DescribeMaskingRulesResult.h"
#include "model/DescribeMetaListRequest.h"
#include "model/DescribeMetaListResult.h"
#include "model/DescribeParameterGroupRequest.h"
@@ -196,6 +200,8 @@
#include "model/ModifyGlobalDatabaseNetworkResult.h"
#include "model/ModifyLogBackupPolicyRequest.h"
#include "model/ModifyLogBackupPolicyResult.h"
#include "model/ModifyMaskingRulesRequest.h"
#include "model/ModifyMaskingRulesResult.h"
#include "model/ModifyPendingMaintenanceActionRequest.h"
#include "model/ModifyPendingMaintenanceActionResult.h"
#include "model/RemoveDBClusterFromGDNRequest.h"
@@ -296,6 +302,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteGlobalDatabaseNetworkResult> DeleteGlobalDatabaseNetworkOutcome;
typedef std::future<DeleteGlobalDatabaseNetworkOutcome> DeleteGlobalDatabaseNetworkOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::DeleteGlobalDatabaseNetworkRequest&, const DeleteGlobalDatabaseNetworkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteGlobalDatabaseNetworkAsyncHandler;
typedef Outcome<Error, Model::DeleteMaskingRulesResult> DeleteMaskingRulesOutcome;
typedef std::future<DeleteMaskingRulesOutcome> DeleteMaskingRulesOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::DeleteMaskingRulesRequest&, const DeleteMaskingRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMaskingRulesAsyncHandler;
typedef Outcome<Error, Model::DeleteParameterGroupResult> DeleteParameterGroupOutcome;
typedef std::future<DeleteParameterGroupOutcome> DeleteParameterGroupOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::DeleteParameterGroupRequest&, const DeleteParameterGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteParameterGroupAsyncHandler;
@@ -386,6 +395,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeLogBackupPolicyResult> DescribeLogBackupPolicyOutcome;
typedef std::future<DescribeLogBackupPolicyOutcome> DescribeLogBackupPolicyOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::DescribeLogBackupPolicyRequest&, const DescribeLogBackupPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLogBackupPolicyAsyncHandler;
typedef Outcome<Error, Model::DescribeMaskingRulesResult> DescribeMaskingRulesOutcome;
typedef std::future<DescribeMaskingRulesOutcome> DescribeMaskingRulesOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::DescribeMaskingRulesRequest&, const DescribeMaskingRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMaskingRulesAsyncHandler;
typedef Outcome<Error, Model::DescribeMetaListResult> DescribeMetaListOutcome;
typedef std::future<DescribeMetaListOutcome> DescribeMetaListOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::DescribeMetaListRequest&, const DescribeMetaListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMetaListAsyncHandler;
@@ -488,6 +500,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyLogBackupPolicyResult> ModifyLogBackupPolicyOutcome;
typedef std::future<ModifyLogBackupPolicyOutcome> ModifyLogBackupPolicyOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::ModifyLogBackupPolicyRequest&, const ModifyLogBackupPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyLogBackupPolicyAsyncHandler;
typedef Outcome<Error, Model::ModifyMaskingRulesResult> ModifyMaskingRulesOutcome;
typedef std::future<ModifyMaskingRulesOutcome> ModifyMaskingRulesOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::ModifyMaskingRulesRequest&, const ModifyMaskingRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyMaskingRulesAsyncHandler;
typedef Outcome<Error, Model::ModifyPendingMaintenanceActionResult> ModifyPendingMaintenanceActionOutcome;
typedef std::future<ModifyPendingMaintenanceActionOutcome> ModifyPendingMaintenanceActionOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::ModifyPendingMaintenanceActionRequest&, const ModifyPendingMaintenanceActionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyPendingMaintenanceActionAsyncHandler;
@@ -595,6 +610,9 @@ namespace AlibabaCloud
DeleteGlobalDatabaseNetworkOutcome deleteGlobalDatabaseNetwork(const Model::DeleteGlobalDatabaseNetworkRequest &request)const;
void deleteGlobalDatabaseNetworkAsync(const Model::DeleteGlobalDatabaseNetworkRequest& request, const DeleteGlobalDatabaseNetworkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteGlobalDatabaseNetworkOutcomeCallable deleteGlobalDatabaseNetworkCallable(const Model::DeleteGlobalDatabaseNetworkRequest& request) const;
DeleteMaskingRulesOutcome deleteMaskingRules(const Model::DeleteMaskingRulesRequest &request)const;
void deleteMaskingRulesAsync(const Model::DeleteMaskingRulesRequest& request, const DeleteMaskingRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteMaskingRulesOutcomeCallable deleteMaskingRulesCallable(const Model::DeleteMaskingRulesRequest& request) const;
DeleteParameterGroupOutcome deleteParameterGroup(const Model::DeleteParameterGroupRequest &request)const;
void deleteParameterGroupAsync(const Model::DeleteParameterGroupRequest& request, const DeleteParameterGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteParameterGroupOutcomeCallable deleteParameterGroupCallable(const Model::DeleteParameterGroupRequest& request) const;
@@ -685,6 +703,9 @@ namespace AlibabaCloud
DescribeLogBackupPolicyOutcome describeLogBackupPolicy(const Model::DescribeLogBackupPolicyRequest &request)const;
void describeLogBackupPolicyAsync(const Model::DescribeLogBackupPolicyRequest& request, const DescribeLogBackupPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLogBackupPolicyOutcomeCallable describeLogBackupPolicyCallable(const Model::DescribeLogBackupPolicyRequest& request) const;
DescribeMaskingRulesOutcome describeMaskingRules(const Model::DescribeMaskingRulesRequest &request)const;
void describeMaskingRulesAsync(const Model::DescribeMaskingRulesRequest& request, const DescribeMaskingRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeMaskingRulesOutcomeCallable describeMaskingRulesCallable(const Model::DescribeMaskingRulesRequest& request) const;
DescribeMetaListOutcome describeMetaList(const Model::DescribeMetaListRequest &request)const;
void describeMetaListAsync(const Model::DescribeMetaListRequest& request, const DescribeMetaListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeMetaListOutcomeCallable describeMetaListCallable(const Model::DescribeMetaListRequest& request) const;
@@ -787,6 +808,9 @@ namespace AlibabaCloud
ModifyLogBackupPolicyOutcome modifyLogBackupPolicy(const Model::ModifyLogBackupPolicyRequest &request)const;
void modifyLogBackupPolicyAsync(const Model::ModifyLogBackupPolicyRequest& request, const ModifyLogBackupPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyLogBackupPolicyOutcomeCallable modifyLogBackupPolicyCallable(const Model::ModifyLogBackupPolicyRequest& request) const;
ModifyMaskingRulesOutcome modifyMaskingRules(const Model::ModifyMaskingRulesRequest &request)const;
void modifyMaskingRulesAsync(const Model::ModifyMaskingRulesRequest& request, const ModifyMaskingRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyMaskingRulesOutcomeCallable modifyMaskingRulesCallable(const Model::ModifyMaskingRulesRequest& request) const;
ModifyPendingMaintenanceActionOutcome modifyPendingMaintenanceAction(const Model::ModifyPendingMaintenanceActionRequest &request)const;
void modifyPendingMaintenanceActionAsync(const Model::ModifyPendingMaintenanceActionRequest& request, const ModifyPendingMaintenanceActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyPendingMaintenanceActionOutcomeCallable modifyPendingMaintenanceActionCallable(const Model::ModifyPendingMaintenanceActionRequest& request) const;

View File

@@ -37,10 +37,12 @@ namespace AlibabaCloud
CreateParameterGroupResult();
explicit CreateParameterGroupResult(const std::string &payload);
~CreateParameterGroupResult();
std::string getParameterGroupId()const;
protected:
void parse(const std::string &payload);
private:
std::string parameterGroupId_;
};
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEMASKINGRULESREQUEST_H_
#define ALIBABACLOUD_POLARDB_MODEL_DELETEMASKINGRULESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/polardb/PolardbExport.h>
namespace AlibabaCloud
{
namespace Polardb
{
namespace Model
{
class ALIBABACLOUD_POLARDB_EXPORT DeleteMaskingRulesRequest : public RpcServiceRequest
{
public:
DeleteMaskingRulesRequest();
~DeleteMaskingRulesRequest();
std::string getDBClusterId()const;
void setDBClusterId(const std::string& dBClusterId);
std::string getRuleNameList()const;
void setRuleNameList(const std::string& ruleNameList);
private:
std::string dBClusterId_;
std::string ruleNameList_;
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEMASKINGRULESREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_POLARDB_MODEL_DELETEMASKINGRULESRESULT_H_
#define ALIBABACLOUD_POLARDB_MODEL_DELETEMASKINGRULESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/polardb/PolardbExport.h>
namespace AlibabaCloud
{
namespace Polardb
{
namespace Model
{
class ALIBABACLOUD_POLARDB_EXPORT DeleteMaskingRulesResult : public ServiceResult
{
public:
DeleteMaskingRulesResult();
explicit DeleteMaskingRulesResult(const std::string &payload);
~DeleteMaskingRulesResult();
std::string getMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEMASKINGRULESRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEMASKINGRULESREQUEST_H_
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEMASKINGRULESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/polardb/PolardbExport.h>
namespace AlibabaCloud
{
namespace Polardb
{
namespace Model
{
class ALIBABACLOUD_POLARDB_EXPORT DescribeMaskingRulesRequest : public RpcServiceRequest
{
public:
DescribeMaskingRulesRequest();
~DescribeMaskingRulesRequest();
std::string getDBClusterId()const;
void setDBClusterId(const std::string& dBClusterId);
std::string getRuleNameList()const;
void setRuleNameList(const std::string& ruleNameList);
private:
std::string dBClusterId_;
std::string ruleNameList_;
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEMASKINGRULESREQUEST_H_

View File

@@ -0,0 +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_POLARDB_MODEL_DESCRIBEMASKINGRULESRESULT_H_
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEMASKINGRULESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/polardb/PolardbExport.h>
namespace AlibabaCloud
{
namespace Polardb
{
namespace Model
{
class ALIBABACLOUD_POLARDB_EXPORT DescribeMaskingRulesResult : public ServiceResult
{
public:
struct Data
{
std::vector<std::string> ruleList;
};
DescribeMaskingRulesResult();
explicit DescribeMaskingRulesResult(const std::string &payload);
~DescribeMaskingRulesResult();
std::string getMessage()const;
Data getData()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEMASKINGRULESRESULT_H_

View File

@@ -36,11 +36,11 @@ namespace AlibabaCloud
{
std::string dBVersion;
std::string parameterGroupId;
std::string forceRestart;
std::string parameterGroupName;
std::string createTime;
std::string parameterGroupDesc;
std::string forceRestart;
std::string parameterGroupType;
std::string parameterGroupDesc;
std::string createTime;
long parameterCounts;
std::string dBType;
};

View File

@@ -37,8 +37,8 @@ namespace AlibabaCloud
int status;
std::string createdTime;
std::string deadline;
std::string dBClusterId;
std::string startTime;
std::string dBClusterId;
std::string dBType;
std::string dBVersion;
std::string modifiedTime;

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYMASKINGRULESREQUEST_H_
#define ALIBABACLOUD_POLARDB_MODEL_MODIFYMASKINGRULESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/polardb/PolardbExport.h>
namespace AlibabaCloud
{
namespace Polardb
{
namespace Model
{
class ALIBABACLOUD_POLARDB_EXPORT ModifyMaskingRulesRequest : public RpcServiceRequest
{
public:
ModifyMaskingRulesRequest();
~ModifyMaskingRulesRequest();
std::string getDBClusterId()const;
void setDBClusterId(const std::string& dBClusterId);
std::string getRuleName()const;
void setRuleName(const std::string& ruleName);
std::string getRuleConfig()const;
void setRuleConfig(const std::string& ruleConfig);
std::string getEnable()const;
void setEnable(const std::string& enable);
std::string getRuleNameList()const;
void setRuleNameList(const std::string& ruleNameList);
private:
std::string dBClusterId_;
std::string ruleName_;
std::string ruleConfig_;
std::string enable_;
std::string ruleNameList_;
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYMASKINGRULESREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_POLARDB_MODEL_MODIFYMASKINGRULESRESULT_H_
#define ALIBABACLOUD_POLARDB_MODEL_MODIFYMASKINGRULESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/polardb/PolardbExport.h>
namespace AlibabaCloud
{
namespace Polardb
{
namespace Model
{
class ALIBABACLOUD_POLARDB_EXPORT ModifyMaskingRulesResult : public ServiceResult
{
public:
ModifyMaskingRulesResult();
explicit ModifyMaskingRulesResult(const std::string &payload);
~ModifyMaskingRulesResult();
std::string getMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYMASKINGRULESRESULT_H_

View File

@@ -879,6 +879,42 @@ PolardbClient::DeleteGlobalDatabaseNetworkOutcomeCallable PolardbClient::deleteG
return task->get_future();
}
PolardbClient::DeleteMaskingRulesOutcome PolardbClient::deleteMaskingRules(const DeleteMaskingRulesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteMaskingRulesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteMaskingRulesOutcome(DeleteMaskingRulesResult(outcome.result()));
else
return DeleteMaskingRulesOutcome(outcome.error());
}
void PolardbClient::deleteMaskingRulesAsync(const DeleteMaskingRulesRequest& request, const DeleteMaskingRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteMaskingRules(request), context);
};
asyncExecute(new Runnable(fn));
}
PolardbClient::DeleteMaskingRulesOutcomeCallable PolardbClient::deleteMaskingRulesCallable(const DeleteMaskingRulesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteMaskingRulesOutcome()>>(
[this, request]()
{
return this->deleteMaskingRules(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PolardbClient::DeleteParameterGroupOutcome PolardbClient::deleteParameterGroup(const DeleteParameterGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1959,6 +1995,42 @@ PolardbClient::DescribeLogBackupPolicyOutcomeCallable PolardbClient::describeLog
return task->get_future();
}
PolardbClient::DescribeMaskingRulesOutcome PolardbClient::describeMaskingRules(const DescribeMaskingRulesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeMaskingRulesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeMaskingRulesOutcome(DescribeMaskingRulesResult(outcome.result()));
else
return DescribeMaskingRulesOutcome(outcome.error());
}
void PolardbClient::describeMaskingRulesAsync(const DescribeMaskingRulesRequest& request, const DescribeMaskingRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeMaskingRules(request), context);
};
asyncExecute(new Runnable(fn));
}
PolardbClient::DescribeMaskingRulesOutcomeCallable PolardbClient::describeMaskingRulesCallable(const DescribeMaskingRulesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeMaskingRulesOutcome()>>(
[this, request]()
{
return this->describeMaskingRules(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PolardbClient::DescribeMetaListOutcome PolardbClient::describeMetaList(const DescribeMetaListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3183,6 +3255,42 @@ PolardbClient::ModifyLogBackupPolicyOutcomeCallable PolardbClient::modifyLogBack
return task->get_future();
}
PolardbClient::ModifyMaskingRulesOutcome PolardbClient::modifyMaskingRules(const ModifyMaskingRulesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyMaskingRulesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyMaskingRulesOutcome(ModifyMaskingRulesResult(outcome.result()));
else
return ModifyMaskingRulesOutcome(outcome.error());
}
void PolardbClient::modifyMaskingRulesAsync(const ModifyMaskingRulesRequest& request, const ModifyMaskingRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyMaskingRules(request), context);
};
asyncExecute(new Runnable(fn));
}
PolardbClient::ModifyMaskingRulesOutcomeCallable PolardbClient::modifyMaskingRulesCallable(const ModifyMaskingRulesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyMaskingRulesOutcome()>>(
[this, request]()
{
return this->modifyMaskingRules(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PolardbClient::ModifyPendingMaintenanceActionOutcome PolardbClient::modifyPendingMaintenanceAction(const ModifyPendingMaintenanceActionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -39,6 +39,13 @@ void CreateParameterGroupResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ParameterGroupId"].isNull())
parameterGroupId_ = value["ParameterGroupId"].asString();
}
std::string CreateParameterGroupResult::getParameterGroupId()const
{
return parameterGroupId_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/polardb/model/DeleteMaskingRulesRequest.h>
using AlibabaCloud::Polardb::Model::DeleteMaskingRulesRequest;
DeleteMaskingRulesRequest::DeleteMaskingRulesRequest() :
RpcServiceRequest("polardb", "2017-08-01", "DeleteMaskingRules")
{
setMethod(HttpRequest::Method::Post);
}
DeleteMaskingRulesRequest::~DeleteMaskingRulesRequest()
{}
std::string DeleteMaskingRulesRequest::getDBClusterId()const
{
return dBClusterId_;
}
void DeleteMaskingRulesRequest::setDBClusterId(const std::string& dBClusterId)
{
dBClusterId_ = dBClusterId;
setParameter("DBClusterId", dBClusterId);
}
std::string DeleteMaskingRulesRequest::getRuleNameList()const
{
return ruleNameList_;
}
void DeleteMaskingRulesRequest::setRuleNameList(const std::string& ruleNameList)
{
ruleNameList_ = ruleNameList;
setParameter("RuleNameList", ruleNameList);
}

View File

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

View File

@@ -43,10 +43,10 @@ void DescribeDBClusterAvailableResourcesResult::parse(const std::string &payload
for (auto valueAvailableZonesAvailableZone : allAvailableZonesNode)
{
AvailableZone availableZonesObject;
if(!valueAvailableZonesAvailableZone["RegionId"].isNull())
availableZonesObject.regionId = valueAvailableZonesAvailableZone["RegionId"].asString();
if(!valueAvailableZonesAvailableZone["ZoneId"].isNull())
availableZonesObject.zoneId = valueAvailableZonesAvailableZone["ZoneId"].asString();
if(!valueAvailableZonesAvailableZone["RegionId"].isNull())
availableZonesObject.regionId = valueAvailableZonesAvailableZone["RegionId"].asString();
auto allSupportedEnginesNode = valueAvailableZonesAvailableZone["SupportedEngines"]["SupportedEngine"];
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine : allSupportedEnginesNode)
{

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/polardb/model/DescribeMaskingRulesRequest.h>
using AlibabaCloud::Polardb::Model::DescribeMaskingRulesRequest;
DescribeMaskingRulesRequest::DescribeMaskingRulesRequest() :
RpcServiceRequest("polardb", "2017-08-01", "DescribeMaskingRules")
{
setMethod(HttpRequest::Method::Post);
}
DescribeMaskingRulesRequest::~DescribeMaskingRulesRequest()
{}
std::string DescribeMaskingRulesRequest::getDBClusterId()const
{
return dBClusterId_;
}
void DescribeMaskingRulesRequest::setDBClusterId(const std::string& dBClusterId)
{
dBClusterId_ = dBClusterId;
setParameter("DBClusterId", dBClusterId);
}
std::string DescribeMaskingRulesRequest::getRuleNameList()const
{
return ruleNameList_;
}
void DescribeMaskingRulesRequest::setRuleNameList(const std::string& ruleNameList)
{
ruleNameList_ = ruleNameList;
setParameter("RuleNameList", ruleNameList);
}

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/polardb/model/DescribeMaskingRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Polardb;
using namespace AlibabaCloud::Polardb::Model;
DescribeMaskingRulesResult::DescribeMaskingRulesResult() :
ServiceResult()
{}
DescribeMaskingRulesResult::DescribeMaskingRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeMaskingRulesResult::~DescribeMaskingRulesResult()
{}
void DescribeMaskingRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allRuleList = dataNode["RuleList"]["RuleList"];
for (auto value : allRuleList)
data_.ruleList.push_back(value.asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DescribeMaskingRulesResult::getMessage()const
{
return message_;
}
DescribeMaskingRulesResult::Data DescribeMaskingRulesResult::getData()const
{
return data_;
}
bool DescribeMaskingRulesResult::getSuccess()const
{
return success_;
}

View File

@@ -43,24 +43,24 @@ void DescribeParameterGroupsResult::parse(const std::string &payload)
for (auto valueParameterGroupsParameterGroupsItem : allParameterGroupsNode)
{
ParameterGroupsItem parameterGroupsObject;
if(!valueParameterGroupsParameterGroupsItem["DBType"].isNull())
parameterGroupsObject.dBType = valueParameterGroupsParameterGroupsItem["DBType"].asString();
if(!valueParameterGroupsParameterGroupsItem["DBVersion"].isNull())
parameterGroupsObject.dBVersion = valueParameterGroupsParameterGroupsItem["DBVersion"].asString();
if(!valueParameterGroupsParameterGroupsItem["ParameterGroupId"].isNull())
parameterGroupsObject.parameterGroupId = valueParameterGroupsParameterGroupsItem["ParameterGroupId"].asString();
if(!valueParameterGroupsParameterGroupsItem["ForceRestart"].isNull())
parameterGroupsObject.forceRestart = valueParameterGroupsParameterGroupsItem["ForceRestart"].asString();
if(!valueParameterGroupsParameterGroupsItem["ParameterGroupName"].isNull())
parameterGroupsObject.parameterGroupName = valueParameterGroupsParameterGroupsItem["ParameterGroupName"].asString();
if(!valueParameterGroupsParameterGroupsItem["CreateTime"].isNull())
parameterGroupsObject.createTime = valueParameterGroupsParameterGroupsItem["CreateTime"].asString();
if(!valueParameterGroupsParameterGroupsItem["ParameterGroupDesc"].isNull())
parameterGroupsObject.parameterGroupDesc = valueParameterGroupsParameterGroupsItem["ParameterGroupDesc"].asString();
if(!valueParameterGroupsParameterGroupsItem["ForceRestart"].isNull())
parameterGroupsObject.forceRestart = valueParameterGroupsParameterGroupsItem["ForceRestart"].asString();
if(!valueParameterGroupsParameterGroupsItem["ParameterGroupType"].isNull())
parameterGroupsObject.parameterGroupType = valueParameterGroupsParameterGroupsItem["ParameterGroupType"].asString();
if(!valueParameterGroupsParameterGroupsItem["ParameterCounts"].isNull())
parameterGroupsObject.parameterCounts = std::stol(valueParameterGroupsParameterGroupsItem["ParameterCounts"].asString());
if(!valueParameterGroupsParameterGroupsItem["DBType"].isNull())
parameterGroupsObject.dBType = valueParameterGroupsParameterGroupsItem["DBType"].asString();
if(!valueParameterGroupsParameterGroupsItem["ParameterGroupDesc"].isNull())
parameterGroupsObject.parameterGroupDesc = valueParameterGroupsParameterGroupsItem["ParameterGroupDesc"].asString();
if(!valueParameterGroupsParameterGroupsItem["CreateTime"].isNull())
parameterGroupsObject.createTime = valueParameterGroupsParameterGroupsItem["CreateTime"].asString();
if(!valueParameterGroupsParameterGroupsItem["ParameterGroupId"].isNull())
parameterGroupsObject.parameterGroupId = valueParameterGroupsParameterGroupsItem["ParameterGroupId"].asString();
parameterGroups_.push_back(parameterGroupsObject);
}

View File

@@ -43,34 +43,34 @@ void DescribePendingMaintenanceActionResult::parse(const std::string &payload)
for (auto valueItemsItemsItem : allItemsNode)
{
ItemsItem itemsObject;
if(!valueItemsItemsItem["Id"].isNull())
itemsObject.id = std::stoi(valueItemsItemsItem["Id"].asString());
if(!valueItemsItemsItem["DBClusterId"].isNull())
itemsObject.dBClusterId = valueItemsItemsItem["DBClusterId"].asString();
if(!valueItemsItemsItem["DBType"].isNull())
itemsObject.dBType = valueItemsItemsItem["DBType"].asString();
if(!valueItemsItemsItem["StartTime"].isNull())
itemsObject.startTime = valueItemsItemsItem["StartTime"].asString();
if(!valueItemsItemsItem["SwitchTime"].isNull())
itemsObject.switchTime = valueItemsItemsItem["SwitchTime"].asString();
if(!valueItemsItemsItem["Deadline"].isNull())
itemsObject.deadline = valueItemsItemsItem["Deadline"].asString();
if(!valueItemsItemsItem["Status"].isNull())
itemsObject.status = std::stoi(valueItemsItemsItem["Status"].asString());
if(!valueItemsItemsItem["CreatedTime"].isNull())
itemsObject.createdTime = valueItemsItemsItem["CreatedTime"].asString();
if(!valueItemsItemsItem["ModifiedTime"].isNull())
itemsObject.modifiedTime = valueItemsItemsItem["ModifiedTime"].asString();
if(!valueItemsItemsItem["ResultInfo"].isNull())
itemsObject.resultInfo = valueItemsItemsItem["ResultInfo"].asString();
if(!valueItemsItemsItem["PrepareInterval"].isNull())
itemsObject.prepareInterval = valueItemsItemsItem["PrepareInterval"].asString();
if(!valueItemsItemsItem["Deadline"].isNull())
itemsObject.deadline = valueItemsItemsItem["Deadline"].asString();
if(!valueItemsItemsItem["DBType"].isNull())
itemsObject.dBType = valueItemsItemsItem["DBType"].asString();
if(!valueItemsItemsItem["TaskType"].isNull())
itemsObject.taskType = valueItemsItemsItem["TaskType"].asString();
if(!valueItemsItemsItem["StartTime"].isNull())
itemsObject.startTime = valueItemsItemsItem["StartTime"].asString();
if(!valueItemsItemsItem["DBVersion"].isNull())
itemsObject.dBVersion = valueItemsItemsItem["DBVersion"].asString();
if(!valueItemsItemsItem["ModifiedTime"].isNull())
itemsObject.modifiedTime = valueItemsItemsItem["ModifiedTime"].asString();
if(!valueItemsItemsItem["DBClusterId"].isNull())
itemsObject.dBClusterId = valueItemsItemsItem["DBClusterId"].asString();
if(!valueItemsItemsItem["Region"].isNull())
itemsObject.region = valueItemsItemsItem["Region"].asString();
if(!valueItemsItemsItem["ResultInfo"].isNull())
itemsObject.resultInfo = valueItemsItemsItem["ResultInfo"].asString();
if(!valueItemsItemsItem["CreatedTime"].isNull())
itemsObject.createdTime = valueItemsItemsItem["CreatedTime"].asString();
if(!valueItemsItemsItem["Id"].isNull())
itemsObject.id = std::stoi(valueItemsItemsItem["Id"].asString());
if(!valueItemsItemsItem["SwitchTime"].isNull())
itemsObject.switchTime = valueItemsItemsItem["SwitchTime"].asString();
items_.push_back(itemsObject);
}
if(!value["TotalRecordCount"].isNull())

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/polardb/model/ModifyMaskingRulesRequest.h>
using AlibabaCloud::Polardb::Model::ModifyMaskingRulesRequest;
ModifyMaskingRulesRequest::ModifyMaskingRulesRequest() :
RpcServiceRequest("polardb", "2017-08-01", "ModifyMaskingRules")
{
setMethod(HttpRequest::Method::Post);
}
ModifyMaskingRulesRequest::~ModifyMaskingRulesRequest()
{}
std::string ModifyMaskingRulesRequest::getDBClusterId()const
{
return dBClusterId_;
}
void ModifyMaskingRulesRequest::setDBClusterId(const std::string& dBClusterId)
{
dBClusterId_ = dBClusterId;
setParameter("DBClusterId", dBClusterId);
}
std::string ModifyMaskingRulesRequest::getRuleName()const
{
return ruleName_;
}
void ModifyMaskingRulesRequest::setRuleName(const std::string& ruleName)
{
ruleName_ = ruleName;
setParameter("RuleName", ruleName);
}
std::string ModifyMaskingRulesRequest::getRuleConfig()const
{
return ruleConfig_;
}
void ModifyMaskingRulesRequest::setRuleConfig(const std::string& ruleConfig)
{
ruleConfig_ = ruleConfig;
setParameter("RuleConfig", ruleConfig);
}
std::string ModifyMaskingRulesRequest::getEnable()const
{
return enable_;
}
void ModifyMaskingRulesRequest::setEnable(const std::string& enable)
{
enable_ = enable;
setParameter("Enable", enable);
}
std::string ModifyMaskingRulesRequest::getRuleNameList()const
{
return ruleNameList_;
}
void ModifyMaskingRulesRequest::setRuleNameList(const std::string& ruleNameList)
{
ruleNameList_ = ruleNameList;
setParameter("RuleNameList", ruleNameList);
}

View File

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