regenerate code
This commit is contained in:
@@ -339,6 +339,42 @@ SddpClient::DescribeAccountsOutcomeCallable SddpClient::describeAccountsCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SddpClient::DescribeAuditLogsOutcome SddpClient::describeAuditLogs(const DescribeAuditLogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAuditLogsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAuditLogsOutcome(DescribeAuditLogsResult(outcome.result()));
|
||||
else
|
||||
return DescribeAuditLogsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SddpClient::describeAuditLogsAsync(const DescribeAuditLogsRequest& request, const DescribeAuditLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAuditLogs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SddpClient::DescribeAuditLogsOutcomeCallable SddpClient::describeAuditLogsCallable(const DescribeAuditLogsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAuditLogsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAuditLogs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SddpClient::DescribeAuthAccountsOutcome SddpClient::describeAuthAccounts(const DescribeAuthAccountsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -771,6 +807,78 @@ SddpClient::DescribeDataLimitsOutcomeCallable SddpClient::describeDataLimitsCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SddpClient::DescribeDataMaskingRunHistoryOutcome SddpClient::describeDataMaskingRunHistory(const DescribeDataMaskingRunHistoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDataMaskingRunHistoryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDataMaskingRunHistoryOutcome(DescribeDataMaskingRunHistoryResult(outcome.result()));
|
||||
else
|
||||
return DescribeDataMaskingRunHistoryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SddpClient::describeDataMaskingRunHistoryAsync(const DescribeDataMaskingRunHistoryRequest& request, const DescribeDataMaskingRunHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDataMaskingRunHistory(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SddpClient::DescribeDataMaskingRunHistoryOutcomeCallable SddpClient::describeDataMaskingRunHistoryCallable(const DescribeDataMaskingRunHistoryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDataMaskingRunHistoryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDataMaskingRunHistory(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SddpClient::DescribeDataMaskingTasksOutcome SddpClient::describeDataMaskingTasks(const DescribeDataMaskingTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDataMaskingTasksOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDataMaskingTasksOutcome(DescribeDataMaskingTasksResult(outcome.result()));
|
||||
else
|
||||
return DescribeDataMaskingTasksOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SddpClient::describeDataMaskingTasksAsync(const DescribeDataMaskingTasksRequest& request, const DescribeDataMaskingTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDataMaskingTasks(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SddpClient::DescribeDataMaskingTasksOutcomeCallable SddpClient::describeDataMaskingTasksCallable(const DescribeDataMaskingTasksRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDataMaskingTasksOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDataMaskingTasks(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SddpClient::DescribeDepartsOutcome SddpClient::describeDeparts(const DescribeDepartsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -951,6 +1059,42 @@ SddpClient::DescribeInstancesOutcomeCallable SddpClient::describeInstancesCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SddpClient::DescribeOriginalLogsOutcome SddpClient::describeOriginalLogs(const DescribeOriginalLogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeOriginalLogsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeOriginalLogsOutcome(DescribeOriginalLogsResult(outcome.result()));
|
||||
else
|
||||
return DescribeOriginalLogsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SddpClient::describeOriginalLogsAsync(const DescribeOriginalLogsRequest& request, const DescribeOriginalLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeOriginalLogs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SddpClient::DescribeOriginalLogsOutcomeCallable SddpClient::describeOriginalLogsCallable(const DescribeOriginalLogsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeOriginalLogsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeOriginalLogs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SddpClient::DescribeOssObjectDetailOutcome SddpClient::describeOssObjectDetail(const DescribeOssObjectDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1167,6 +1311,42 @@ SddpClient::DescribeTablesOutcomeCallable SddpClient::describeTablesCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SddpClient::DescribeUseFlowOutcome SddpClient::describeUseFlow(const DescribeUseFlowRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeUseFlowOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeUseFlowOutcome(DescribeUseFlowResult(outcome.result()));
|
||||
else
|
||||
return DescribeUseFlowOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SddpClient::describeUseFlowAsync(const DescribeUseFlowRequest& request, const DescribeUseFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeUseFlow(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SddpClient::DescribeUseFlowOutcomeCallable SddpClient::describeUseFlowCallable(const DescribeUseFlowRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeUseFlowOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeUseFlow(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SddpClient::DescribeUserStatusOutcome SddpClient::describeUserStatus(const DescribeUserStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1203,6 +1383,78 @@ SddpClient::DescribeUserStatusOutcomeCallable SddpClient::describeUserStatusCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SddpClient::ExecDatamaskOutcome SddpClient::execDatamask(const ExecDatamaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ExecDatamaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ExecDatamaskOutcome(ExecDatamaskResult(outcome.result()));
|
||||
else
|
||||
return ExecDatamaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SddpClient::execDatamaskAsync(const ExecDatamaskRequest& request, const ExecDatamaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, execDatamask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SddpClient::ExecDatamaskOutcomeCallable SddpClient::execDatamaskCallable(const ExecDatamaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ExecDatamaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->execDatamask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SddpClient::ManualTriggerMaskingProcessOutcome SddpClient::manualTriggerMaskingProcess(const ManualTriggerMaskingProcessRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ManualTriggerMaskingProcessOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ManualTriggerMaskingProcessOutcome(ManualTriggerMaskingProcessResult(outcome.result()));
|
||||
else
|
||||
return ManualTriggerMaskingProcessOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SddpClient::manualTriggerMaskingProcessAsync(const ManualTriggerMaskingProcessRequest& request, const ManualTriggerMaskingProcessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, manualTriggerMaskingProcess(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SddpClient::ManualTriggerMaskingProcessOutcomeCallable SddpClient::manualTriggerMaskingProcessCallable(const ManualTriggerMaskingProcessRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ManualTriggerMaskingProcessOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->manualTriggerMaskingProcess(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SddpClient::ModifyDataLimitOutcome SddpClient::modifyDataLimit(const ModifyDataLimitRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1419,6 +1671,42 @@ SddpClient::ModifyRuleStatusOutcomeCallable SddpClient::modifyRuleStatusCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SddpClient::ModifySaleFlowCountTypeOutcome SddpClient::modifySaleFlowCountType(const ModifySaleFlowCountTypeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifySaleFlowCountTypeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifySaleFlowCountTypeOutcome(ModifySaleFlowCountTypeResult(outcome.result()));
|
||||
else
|
||||
return ModifySaleFlowCountTypeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SddpClient::modifySaleFlowCountTypeAsync(const ModifySaleFlowCountTypeRequest& request, const ModifySaleFlowCountTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifySaleFlowCountType(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SddpClient::ModifySaleFlowCountTypeOutcomeCallable SddpClient::modifySaleFlowCountTypeCallable(const ModifySaleFlowCountTypeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifySaleFlowCountTypeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifySaleFlowCountType(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SddpClient::ValidateConnectorOutcome SddpClient::validateConnector(const ValidateConnectorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::CreateConfigRequest;
|
||||
|
||||
CreateConfigRequest::CreateConfigRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "CreateConfig")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateConfigRequest::~CreateConfigRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateConfigRequest::getCode()const
|
||||
void CreateConfigRequest::setCode(const std::string& code)
|
||||
{
|
||||
code_ = code;
|
||||
setCoreParameter("Code", code);
|
||||
setParameter("Code", code);
|
||||
}
|
||||
|
||||
std::string CreateConfigRequest::getDescription()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateConfigRequest::getDescription()const
|
||||
void CreateConfigRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateConfigRequest::getSourceIp()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateConfigRequest::getSourceIp()const
|
||||
void CreateConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateConfigRequest::getLang()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateConfigRequest::getLang()const
|
||||
void CreateConfigRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string CreateConfigRequest::getValue()const
|
||||
@@ -77,7 +79,7 @@ std::string CreateConfigRequest::getValue()const
|
||||
void CreateConfigRequest::setValue(const std::string& value)
|
||||
{
|
||||
value_ = value;
|
||||
setCoreParameter("Value", value);
|
||||
setParameter("Value", value);
|
||||
}
|
||||
|
||||
int CreateConfigRequest::getFeatureType()const
|
||||
@@ -88,7 +90,7 @@ int CreateConfigRequest::getFeatureType()const
|
||||
void CreateConfigRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
std::string CreateConfigRequest::getConfigList()const
|
||||
@@ -99,6 +101,6 @@ std::string CreateConfigRequest::getConfigList()const
|
||||
void CreateConfigRequest::setConfigList(const std::string& configList)
|
||||
{
|
||||
configList_ = configList;
|
||||
setCoreParameter("ConfigList", configList);
|
||||
setParameter("ConfigList", configList);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::CreateDataLimitRequest;
|
||||
|
||||
CreateDataLimitRequest::CreateDataLimitRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "CreateDataLimit")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataLimitRequest::~CreateDataLimitRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateDataLimitRequest::getParentId()const
|
||||
void CreateDataLimitRequest::setParentId(const std::string& parentId)
|
||||
{
|
||||
parentId_ = parentId;
|
||||
setCoreParameter("ParentId", parentId);
|
||||
setParameter("ParentId", parentId);
|
||||
}
|
||||
|
||||
std::string CreateDataLimitRequest::getPassword()const
|
||||
@@ -44,7 +46,18 @@ std::string CreateDataLimitRequest::getPassword()const
|
||||
void CreateDataLimitRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setCoreParameter("Password", password);
|
||||
setParameter("Password", password);
|
||||
}
|
||||
|
||||
bool CreateDataLimitRequest::getBatchCreate()const
|
||||
{
|
||||
return batchCreate_;
|
||||
}
|
||||
|
||||
void CreateDataLimitRequest::setBatchCreate(bool batchCreate)
|
||||
{
|
||||
batchCreate_ = batchCreate;
|
||||
setParameter("BatchCreate", batchCreate ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateDataLimitRequest::getSourceIp()const
|
||||
@@ -55,7 +68,7 @@ std::string CreateDataLimitRequest::getSourceIp()const
|
||||
void CreateDataLimitRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateDataLimitRequest::getDataLimitList()const
|
||||
@@ -66,7 +79,7 @@ std::string CreateDataLimitRequest::getDataLimitList()const
|
||||
void CreateDataLimitRequest::setDataLimitList(const std::string& dataLimitList)
|
||||
{
|
||||
dataLimitList_ = dataLimitList;
|
||||
setCoreParameter("DataLimitList", dataLimitList);
|
||||
setParameter("DataLimitList", dataLimitList);
|
||||
}
|
||||
|
||||
std::string CreateDataLimitRequest::getLang()const
|
||||
@@ -77,7 +90,7 @@ std::string CreateDataLimitRequest::getLang()const
|
||||
void CreateDataLimitRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string CreateDataLimitRequest::getServiceRegionId()const
|
||||
@@ -88,7 +101,51 @@ std::string CreateDataLimitRequest::getServiceRegionId()const
|
||||
void CreateDataLimitRequest::setServiceRegionId(const std::string& serviceRegionId)
|
||||
{
|
||||
serviceRegionId_ = serviceRegionId;
|
||||
setCoreParameter("ServiceRegionId", serviceRegionId);
|
||||
setParameter("ServiceRegionId", serviceRegionId);
|
||||
}
|
||||
|
||||
std::string CreateDataLimitRequest::getEngineType()const
|
||||
{
|
||||
return engineType_;
|
||||
}
|
||||
|
||||
void CreateDataLimitRequest::setEngineType(const std::string& engineType)
|
||||
{
|
||||
engineType_ = engineType;
|
||||
setParameter("EngineType", engineType);
|
||||
}
|
||||
|
||||
int CreateDataLimitRequest::getAuditStatus()const
|
||||
{
|
||||
return auditStatus_;
|
||||
}
|
||||
|
||||
void CreateDataLimitRequest::setAuditStatus(int auditStatus)
|
||||
{
|
||||
auditStatus_ = auditStatus;
|
||||
setParameter("AuditStatus", std::to_string(auditStatus));
|
||||
}
|
||||
|
||||
int CreateDataLimitRequest::getAutoScan()const
|
||||
{
|
||||
return autoScan_;
|
||||
}
|
||||
|
||||
void CreateDataLimitRequest::setAutoScan(int autoScan)
|
||||
{
|
||||
autoScan_ = autoScan;
|
||||
setParameter("AutoScan", std::to_string(autoScan));
|
||||
}
|
||||
|
||||
int CreateDataLimitRequest::getLogStoreDay()const
|
||||
{
|
||||
return logStoreDay_;
|
||||
}
|
||||
|
||||
void CreateDataLimitRequest::setLogStoreDay(int logStoreDay)
|
||||
{
|
||||
logStoreDay_ = logStoreDay;
|
||||
setParameter("LogStoreDay", std::to_string(logStoreDay));
|
||||
}
|
||||
|
||||
int CreateDataLimitRequest::getResourceType()const
|
||||
@@ -99,7 +156,7 @@ int CreateDataLimitRequest::getResourceType()const
|
||||
void CreateDataLimitRequest::setResourceType(int resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setCoreParameter("ResourceType", std::to_string(resourceType));
|
||||
setParameter("ResourceType", std::to_string(resourceType));
|
||||
}
|
||||
|
||||
std::string CreateDataLimitRequest::getConnector()const
|
||||
@@ -110,7 +167,18 @@ std::string CreateDataLimitRequest::getConnector()const
|
||||
void CreateDataLimitRequest::setConnector(const std::string& connector)
|
||||
{
|
||||
connector_ = connector;
|
||||
setCoreParameter("Connector", connector);
|
||||
setParameter("Connector", connector);
|
||||
}
|
||||
|
||||
int CreateDataLimitRequest::getPort()const
|
||||
{
|
||||
return port_;
|
||||
}
|
||||
|
||||
void CreateDataLimitRequest::setPort(int port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", std::to_string(port));
|
||||
}
|
||||
|
||||
std::string CreateDataLimitRequest::getUserName()const
|
||||
@@ -121,6 +189,6 @@ std::string CreateDataLimitRequest::getUserName()const
|
||||
void CreateDataLimitRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setCoreParameter("UserName", userName);
|
||||
setParameter("UserName", userName);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,13 @@ void CreateDataLimitResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = std::stoi(value["Id"].asString());
|
||||
|
||||
}
|
||||
|
||||
int CreateDataLimitResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,11 +20,46 @@ using AlibabaCloud::Sddp::Model::CreateRuleRequest;
|
||||
|
||||
CreateRuleRequest::CreateRuleRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "CreateRule")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRuleRequest::~CreateRuleRequest()
|
||||
{}
|
||||
|
||||
int CreateRuleRequest::getWarnLevel()const
|
||||
{
|
||||
return warnLevel_;
|
||||
}
|
||||
|
||||
void CreateRuleRequest::setWarnLevel(int warnLevel)
|
||||
{
|
||||
warnLevel_ = warnLevel;
|
||||
setParameter("WarnLevel", std::to_string(warnLevel));
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void CreateRuleRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
long CreateRuleRequest::getProductId()const
|
||||
{
|
||||
return productId_;
|
||||
}
|
||||
|
||||
void CreateRuleRequest::setProductId(long productId)
|
||||
{
|
||||
productId_ = productId;
|
||||
setParameter("ProductId", std::to_string(productId));
|
||||
}
|
||||
|
||||
long CreateRuleRequest::getRiskLevelId()const
|
||||
{
|
||||
return riskLevelId_;
|
||||
@@ -33,7 +68,7 @@ long CreateRuleRequest::getRiskLevelId()const
|
||||
void CreateRuleRequest::setRiskLevelId(long riskLevelId)
|
||||
{
|
||||
riskLevelId_ = riskLevelId;
|
||||
setCoreParameter("RiskLevelId", std::to_string(riskLevelId));
|
||||
setParameter("RiskLevelId", std::to_string(riskLevelId));
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getContent()const
|
||||
@@ -44,7 +79,7 @@ std::string CreateRuleRequest::getContent()const
|
||||
void CreateRuleRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setCoreParameter("Content", content);
|
||||
setParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getSourceIp()const
|
||||
@@ -55,7 +90,7 @@ std::string CreateRuleRequest::getSourceIp()const
|
||||
void CreateRuleRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getLang()const
|
||||
@@ -66,7 +101,7 @@ std::string CreateRuleRequest::getLang()const
|
||||
void CreateRuleRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int CreateRuleRequest::getFeatureType()const
|
||||
@@ -77,7 +112,29 @@ int CreateRuleRequest::getFeatureType()const
|
||||
void CreateRuleRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
int CreateRuleRequest::getRuleType()const
|
||||
{
|
||||
return ruleType_;
|
||||
}
|
||||
|
||||
void CreateRuleRequest::setRuleType(int ruleType)
|
||||
{
|
||||
ruleType_ = ruleType;
|
||||
setParameter("RuleType", std::to_string(ruleType));
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getStatExpress()const
|
||||
{
|
||||
return statExpress_;
|
||||
}
|
||||
|
||||
void CreateRuleRequest::setStatExpress(const std::string& statExpress)
|
||||
{
|
||||
statExpress_ = statExpress;
|
||||
setParameter("StatExpress", statExpress);
|
||||
}
|
||||
|
||||
long CreateRuleRequest::getCustomType()const
|
||||
@@ -88,7 +145,7 @@ long CreateRuleRequest::getCustomType()const
|
||||
void CreateRuleRequest::setCustomType(long customType)
|
||||
{
|
||||
customType_ = customType;
|
||||
setCoreParameter("CustomType", std::to_string(customType));
|
||||
setParameter("CustomType", std::to_string(customType));
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getName()const
|
||||
@@ -99,7 +156,7 @@ std::string CreateRuleRequest::getName()const
|
||||
void CreateRuleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int CreateRuleRequest::getCategory()const
|
||||
@@ -110,6 +167,6 @@ int CreateRuleRequest::getCategory()const
|
||||
void CreateRuleRequest::setCategory(int category)
|
||||
{
|
||||
category_ = category;
|
||||
setCoreParameter("Category", std::to_string(category));
|
||||
setParameter("Category", std::to_string(category));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,13 @@ void CreateRuleResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = std::stoi(value["Id"].asString());
|
||||
|
||||
}
|
||||
|
||||
int CreateRuleResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DeleteDataLimitRequest;
|
||||
|
||||
DeleteDataLimitRequest::DeleteDataLimitRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DeleteDataLimit")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDataLimitRequest::~DeleteDataLimitRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int DeleteDataLimitRequest::getFeatureType()const
|
||||
void DeleteDataLimitRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
std::string DeleteDataLimitRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteDataLimitRequest::getSourceIp()const
|
||||
void DeleteDataLimitRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
long DeleteDataLimitRequest::getId()const
|
||||
@@ -55,7 +57,7 @@ long DeleteDataLimitRequest::getId()const
|
||||
void DeleteDataLimitRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", std::to_string(id));
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string DeleteDataLimitRequest::getLang()const
|
||||
@@ -66,6 +68,6 @@ std::string DeleteDataLimitRequest::getLang()const
|
||||
void DeleteDataLimitRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DeleteRuleRequest;
|
||||
|
||||
DeleteRuleRequest::DeleteRuleRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DeleteRule")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRuleRequest::~DeleteRuleRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int DeleteRuleRequest::getFeatureType()const
|
||||
void DeleteRuleRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
std::string DeleteRuleRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteRuleRequest::getSourceIp()const
|
||||
void DeleteRuleRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
long DeleteRuleRequest::getId()const
|
||||
@@ -55,7 +57,7 @@ long DeleteRuleRequest::getId()const
|
||||
void DeleteRuleRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", std::to_string(id));
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string DeleteRuleRequest::getLang()const
|
||||
@@ -66,6 +68,6 @@ std::string DeleteRuleRequest::getLang()const
|
||||
void DeleteRuleRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeAccountDetailRequest;
|
||||
|
||||
DescribeAccountDetailRequest::DescribeAccountDetailRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeAccountDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAccountDetailRequest::~DescribeAccountDetailRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeAccountDetailRequest::getUserId()const
|
||||
void DescribeAccountDetailRequest::setUserId(long userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setCoreParameter("UserId", std::to_string(userId));
|
||||
setParameter("UserId", std::to_string(userId));
|
||||
}
|
||||
|
||||
long DescribeAccountDetailRequest::getAccountTypeId()const
|
||||
@@ -44,7 +46,7 @@ long DescribeAccountDetailRequest::getAccountTypeId()const
|
||||
void DescribeAccountDetailRequest::setAccountTypeId(long accountTypeId)
|
||||
{
|
||||
accountTypeId_ = accountTypeId;
|
||||
setCoreParameter("AccountTypeId", std::to_string(accountTypeId));
|
||||
setParameter("AccountTypeId", std::to_string(accountTypeId));
|
||||
}
|
||||
|
||||
std::string DescribeAccountDetailRequest::getSourceIp()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeAccountDetailRequest::getSourceIp()const
|
||||
void DescribeAccountDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeAccountDetailRequest::getLang()const
|
||||
@@ -66,6 +68,6 @@ std::string DescribeAccountDetailRequest::getLang()const
|
||||
void DescribeAccountDetailRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeAccountsRequest;
|
||||
|
||||
DescribeAccountsRequest::DescribeAccountsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeAccounts")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAccountsRequest::~DescribeAccountsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeAccountsRequest::getProductCode()const
|
||||
void DescribeAccountsRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getPackageId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeAccountsRequest::getPackageId()const
|
||||
void DescribeAccountsRequest::setPackageId(const std::string& packageId)
|
||||
{
|
||||
packageId_ = packageId;
|
||||
setCoreParameter("PackageId", packageId);
|
||||
setParameter("PackageId", packageId);
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getSourceIp()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeAccountsRequest::getSourceIp()const
|
||||
void DescribeAccountsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeAccountsRequest::getPageSize()const
|
||||
@@ -66,7 +68,7 @@ int DescribeAccountsRequest::getPageSize()const
|
||||
void DescribeAccountsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getTableId()const
|
||||
@@ -77,7 +79,7 @@ std::string DescribeAccountsRequest::getTableId()const
|
||||
void DescribeAccountsRequest::setTableId(const std::string& tableId)
|
||||
{
|
||||
tableId_ = tableId;
|
||||
setCoreParameter("TableId", tableId);
|
||||
setParameter("TableId", tableId);
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getLang()const
|
||||
@@ -88,7 +90,7 @@ std::string DescribeAccountsRequest::getLang()const
|
||||
void DescribeAccountsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getKey()const
|
||||
@@ -99,7 +101,7 @@ std::string DescribeAccountsRequest::getKey()const
|
||||
void DescribeAccountsRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setCoreParameter("Key", key);
|
||||
setParameter("Key", key);
|
||||
}
|
||||
|
||||
int DescribeAccountsRequest::getQueryType()const
|
||||
@@ -110,7 +112,7 @@ int DescribeAccountsRequest::getQueryType()const
|
||||
void DescribeAccountsRequest::setQueryType(int queryType)
|
||||
{
|
||||
queryType_ = queryType;
|
||||
setCoreParameter("QueryType", std::to_string(queryType));
|
||||
setParameter("QueryType", std::to_string(queryType));
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getLoginName()const
|
||||
@@ -121,7 +123,7 @@ std::string DescribeAccountsRequest::getLoginName()const
|
||||
void DescribeAccountsRequest::setLoginName(const std::string& loginName)
|
||||
{
|
||||
loginName_ = loginName;
|
||||
setCoreParameter("LoginName", loginName);
|
||||
setParameter("LoginName", loginName);
|
||||
}
|
||||
|
||||
int DescribeAccountsRequest::getFeatureType()const
|
||||
@@ -132,7 +134,7 @@ int DescribeAccountsRequest::getFeatureType()const
|
||||
void DescribeAccountsRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getColumnId()const
|
||||
@@ -143,7 +145,7 @@ std::string DescribeAccountsRequest::getColumnId()const
|
||||
void DescribeAccountsRequest::setColumnId(const std::string& columnId)
|
||||
{
|
||||
columnId_ = columnId;
|
||||
setCoreParameter("ColumnId", columnId);
|
||||
setParameter("ColumnId", columnId);
|
||||
}
|
||||
|
||||
int DescribeAccountsRequest::getCurrentPage()const
|
||||
@@ -154,7 +156,7 @@ int DescribeAccountsRequest::getCurrentPage()const
|
||||
void DescribeAccountsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeAccountsRequest::getInstanceId()const
|
||||
@@ -165,7 +167,7 @@ std::string DescribeAccountsRequest::getInstanceId()const
|
||||
void DescribeAccountsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
long DescribeAccountsRequest::getDepartId()const
|
||||
@@ -176,7 +178,7 @@ long DescribeAccountsRequest::getDepartId()const
|
||||
void DescribeAccountsRequest::setDepartId(long departId)
|
||||
{
|
||||
departId_ = departId;
|
||||
setCoreParameter("DepartId", std::to_string(departId));
|
||||
setParameter("DepartId", std::to_string(departId));
|
||||
}
|
||||
|
||||
int DescribeAccountsRequest::getOperationId()const
|
||||
@@ -187,6 +189,6 @@ int DescribeAccountsRequest::getOperationId()const
|
||||
void DescribeAccountsRequest::setOperationId(int operationId)
|
||||
{
|
||||
operationId_ = operationId;
|
||||
setCoreParameter("OperationId", std::to_string(operationId));
|
||||
setParameter("OperationId", std::to_string(operationId));
|
||||
}
|
||||
|
||||
|
||||
172
sddp/src/model/DescribeAuditLogsRequest.cc
Normal file
172
sddp/src/model/DescribeAuditLogsRequest.cc
Normal file
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
* 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/sddp/model/DescribeAuditLogsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeAuditLogsRequest;
|
||||
|
||||
DescribeAuditLogsRequest::DescribeAuditLogsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeAuditLogs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAuditLogsRequest::~DescribeAuditLogsRequest()
|
||||
{}
|
||||
|
||||
int DescribeAuditLogsRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogsRequest::setProductCode(int productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", std::to_string(productCode));
|
||||
}
|
||||
|
||||
long DescribeAuditLogsRequest::getProductId()const
|
||||
{
|
||||
return productId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogsRequest::setProductId(long productId)
|
||||
{
|
||||
productId_ = productId;
|
||||
setParameter("ProductId", std::to_string(productId));
|
||||
}
|
||||
|
||||
long DescribeAuditLogsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogsRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogsRequest::getClientIp()const
|
||||
{
|
||||
return clientIp_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogsRequest::setClientIp(const std::string& clientIp)
|
||||
{
|
||||
clientIp_ = clientIp;
|
||||
setParameter("ClientIp", clientIp);
|
||||
}
|
||||
|
||||
int DescribeAuditLogsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int DescribeAuditLogsRequest::getFeatureType()const
|
||||
{
|
||||
return featureType_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogsRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
long DescribeAuditLogsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogsRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
int DescribeAuditLogsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogsRequest::getClientUa()const
|
||||
{
|
||||
return clientUa_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogsRequest::setClientUa(const std::string& clientUa)
|
||||
{
|
||||
clientUa_ = clientUa;
|
||||
setParameter("ClientUa", clientUa);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogsRequest::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogsRequest::setInstanceName(const std::string& instanceName)
|
||||
{
|
||||
instanceName_ = instanceName;
|
||||
setParameter("InstanceName", instanceName);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogsRequest::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogsRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setParameter("UserName", userName);
|
||||
}
|
||||
|
||||
122
sddp/src/model/DescribeAuditLogsResult.cc
Normal file
122
sddp/src/model/DescribeAuditLogsResult.cc
Normal file
@@ -0,0 +1,122 @@
|
||||
/*
|
||||
* 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/sddp/model/DescribeAuditLogsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeAuditLogsResult::DescribeAuditLogsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAuditLogsResult::DescribeAuditLogsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAuditLogsResult::~DescribeAuditLogsResult()
|
||||
{}
|
||||
|
||||
void DescribeAuditLogsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["Log"];
|
||||
for (auto valueItemsLog : allItemsNode)
|
||||
{
|
||||
Log itemsObject;
|
||||
if(!valueItemsLog["Id"].isNull())
|
||||
itemsObject.id = std::stol(valueItemsLog["Id"].asString());
|
||||
if(!valueItemsLog["ProductCode"].isNull())
|
||||
itemsObject.productCode = valueItemsLog["ProductCode"].asString();
|
||||
if(!valueItemsLog["ProductId"].isNull())
|
||||
itemsObject.productId = std::stol(valueItemsLog["ProductId"].asString());
|
||||
if(!valueItemsLog["LogTime"].isNull())
|
||||
itemsObject.logTime = std::stol(valueItemsLog["LogTime"].asString());
|
||||
if(!valueItemsLog["UserId"].isNull())
|
||||
itemsObject.userId = valueItemsLog["UserId"].asString();
|
||||
if(!valueItemsLog["UserName"].isNull())
|
||||
itemsObject.userName = valueItemsLog["UserName"].asString();
|
||||
if(!valueItemsLog["ClientIp"].isNull())
|
||||
itemsObject.clientIp = valueItemsLog["ClientIp"].asString();
|
||||
if(!valueItemsLog["ClientPort"].isNull())
|
||||
itemsObject.clientPort = valueItemsLog["ClientPort"].asString();
|
||||
if(!valueItemsLog["ClientUa"].isNull())
|
||||
itemsObject.clientUa = valueItemsLog["ClientUa"].asString();
|
||||
if(!valueItemsLog["InstanceName"].isNull())
|
||||
itemsObject.instanceName = valueItemsLog["InstanceName"].asString();
|
||||
if(!valueItemsLog["CreationTime"].isNull())
|
||||
itemsObject.creationTime = std::stol(valueItemsLog["CreationTime"].asString());
|
||||
if(!valueItemsLog["DatabaseName"].isNull())
|
||||
itemsObject.databaseName = valueItemsLog["DatabaseName"].asString();
|
||||
if(!valueItemsLog["TableName"].isNull())
|
||||
itemsObject.tableName = valueItemsLog["TableName"].asString();
|
||||
if(!valueItemsLog["ColumnName"].isNull())
|
||||
itemsObject.columnName = valueItemsLog["ColumnName"].asString();
|
||||
if(!valueItemsLog["PackageName"].isNull())
|
||||
itemsObject.packageName = valueItemsLog["PackageName"].asString();
|
||||
if(!valueItemsLog["OssObjectKey"].isNull())
|
||||
itemsObject.ossObjectKey = valueItemsLog["OssObjectKey"].asString();
|
||||
if(!valueItemsLog["ExecuteTime"].isNull())
|
||||
itemsObject.executeTime = std::stol(valueItemsLog["ExecuteTime"].asString());
|
||||
if(!valueItemsLog["EffectRow"].isNull())
|
||||
itemsObject.effectRow = std::stol(valueItemsLog["EffectRow"].asString());
|
||||
if(!valueItemsLog["OperateType"].isNull())
|
||||
itemsObject.operateType = valueItemsLog["OperateType"].asString();
|
||||
if(!valueItemsLog["RuleId"].isNull())
|
||||
itemsObject.ruleId = valueItemsLog["RuleId"].asString();
|
||||
if(!valueItemsLog["RuleName"].isNull())
|
||||
itemsObject.ruleName = valueItemsLog["RuleName"].asString();
|
||||
if(!valueItemsLog["WarnLevel"].isNull())
|
||||
itemsObject.warnLevel = valueItemsLog["WarnLevel"].asString();
|
||||
if(!valueItemsLog["ExecuteStatus"].isNull())
|
||||
itemsObject.executeStatus = std::stoi(valueItemsLog["ExecuteStatus"].asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeAuditLogsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeAuditLogsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeAuditLogsResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAuditLogsResult::Log> DescribeAuditLogsResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeAuthAccountsRequest;
|
||||
|
||||
DescribeAuthAccountsRequest::DescribeAuthAccountsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeAuthAccounts")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAuthAccountsRequest::~DescribeAuthAccountsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int DescribeAuthAccountsRequest::getFeatureType()const
|
||||
void DescribeAuthAccountsRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
int DescribeAuthAccountsRequest::getCurrentPage()const
|
||||
@@ -44,7 +46,7 @@ int DescribeAuthAccountsRequest::getCurrentPage()const
|
||||
void DescribeAuthAccountsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeAuthAccountsRequest::getSourceIp()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeAuthAccountsRequest::getSourceIp()const
|
||||
void DescribeAuthAccountsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeAuthAccountsRequest::getPageSize()const
|
||||
@@ -66,7 +68,7 @@ int DescribeAuthAccountsRequest::getPageSize()const
|
||||
void DescribeAuthAccountsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAuthAccountsRequest::getLang()const
|
||||
@@ -77,6 +79,6 @@ std::string DescribeAuthAccountsRequest::getLang()const
|
||||
void DescribeAuthAccountsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeColumnsRequest;
|
||||
|
||||
DescribeColumnsRequest::DescribeColumnsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeColumns")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeColumnsRequest::~DescribeColumnsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeColumnsRequest::getProductCode()const
|
||||
void DescribeColumnsRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string DescribeColumnsRequest::getRiskLevels()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeColumnsRequest::getRiskLevels()const
|
||||
void DescribeColumnsRequest::setRiskLevels(const std::string& riskLevels)
|
||||
{
|
||||
riskLevels_ = riskLevels;
|
||||
setCoreParameter("RiskLevels", riskLevels);
|
||||
setParameter("RiskLevels", riskLevels);
|
||||
}
|
||||
|
||||
std::string DescribeColumnsRequest::getQueryName()const
|
||||
@@ -55,7 +57,18 @@ std::string DescribeColumnsRequest::getQueryName()const
|
||||
void DescribeColumnsRequest::setQueryName(const std::string& queryName)
|
||||
{
|
||||
queryName_ = queryName;
|
||||
setCoreParameter("QueryName", queryName);
|
||||
setParameter("QueryName", queryName);
|
||||
}
|
||||
|
||||
long DescribeColumnsRequest::getRiskLevelId()const
|
||||
{
|
||||
return riskLevelId_;
|
||||
}
|
||||
|
||||
void DescribeColumnsRequest::setRiskLevelId(long riskLevelId)
|
||||
{
|
||||
riskLevelId_ = riskLevelId;
|
||||
setParameter("RiskLevelId", std::to_string(riskLevelId));
|
||||
}
|
||||
|
||||
std::string DescribeColumnsRequest::getSourceIp()const
|
||||
@@ -66,7 +79,7 @@ std::string DescribeColumnsRequest::getSourceIp()const
|
||||
void DescribeColumnsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeColumnsRequest::getPageSize()const
|
||||
@@ -77,7 +90,7 @@ int DescribeColumnsRequest::getPageSize()const
|
||||
void DescribeColumnsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeColumnsRequest::getTableId()const
|
||||
@@ -88,7 +101,7 @@ long DescribeColumnsRequest::getTableId()const
|
||||
void DescribeColumnsRequest::setTableId(long tableId)
|
||||
{
|
||||
tableId_ = tableId;
|
||||
setCoreParameter("TableId", std::to_string(tableId));
|
||||
setParameter("TableId", std::to_string(tableId));
|
||||
}
|
||||
|
||||
std::string DescribeColumnsRequest::getLang()const
|
||||
@@ -99,7 +112,7 @@ std::string DescribeColumnsRequest::getLang()const
|
||||
void DescribeColumnsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int DescribeColumnsRequest::getFeatureType()const
|
||||
@@ -110,7 +123,18 @@ int DescribeColumnsRequest::getFeatureType()const
|
||||
void DescribeColumnsRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
std::string DescribeColumnsRequest::getOrderBy()const
|
||||
{
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void DescribeColumnsRequest::setOrderBy(const std::string& orderBy)
|
||||
{
|
||||
orderBy_ = orderBy;
|
||||
setParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
int DescribeColumnsRequest::getCurrentPage()const
|
||||
@@ -121,7 +145,7 @@ int DescribeColumnsRequest::getCurrentPage()const
|
||||
void DescribeColumnsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribeColumnsRequest::getInstanceId()const
|
||||
@@ -132,7 +156,7 @@ long DescribeColumnsRequest::getInstanceId()const
|
||||
void DescribeColumnsRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
setParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string DescribeColumnsRequest::getName()const
|
||||
@@ -143,7 +167,7 @@ std::string DescribeColumnsRequest::getName()const
|
||||
void DescribeColumnsRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
long DescribeColumnsRequest::getRuleId()const
|
||||
@@ -154,6 +178,6 @@ long DescribeColumnsRequest::getRuleId()const
|
||||
void DescribeColumnsRequest::setRuleId(long ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setCoreParameter("RuleId", std::to_string(ruleId));
|
||||
setParameter("RuleId", std::to_string(ruleId));
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ void DescribeColumnsResult::parse(const std::string &payload)
|
||||
{
|
||||
Column itemsObject;
|
||||
if(!valueItemsColumn["Id"].isNull())
|
||||
itemsObject.id = std::stol(valueItemsColumn["Id"].asString());
|
||||
itemsObject.id = valueItemsColumn["Id"].asString();
|
||||
if(!valueItemsColumn["Name"].isNull())
|
||||
itemsObject.name = valueItemsColumn["Name"].asString();
|
||||
if(!valueItemsColumn["InstanceId"].isNull())
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeConfigsRequest;
|
||||
|
||||
DescribeConfigsRequest::DescribeConfigsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeConfigs")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeConfigsRequest::~DescribeConfigsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int DescribeConfigsRequest::getFeatureType()const
|
||||
void DescribeConfigsRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
std::string DescribeConfigsRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeConfigsRequest::getSourceIp()const
|
||||
void DescribeConfigsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeConfigsRequest::getLang()const
|
||||
@@ -55,6 +57,6 @@ std::string DescribeConfigsRequest::getLang()const
|
||||
void DescribeConfigsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeDataAssetsRequest;
|
||||
|
||||
DescribeDataAssetsRequest::DescribeDataAssetsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataAssets")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataAssetsRequest::~DescribeDataAssetsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeDataAssetsRequest::getRiskLevels()const
|
||||
void DescribeDataAssetsRequest::setRiskLevels(const std::string& riskLevels)
|
||||
{
|
||||
riskLevels_ = riskLevels;
|
||||
setCoreParameter("RiskLevels", riskLevels);
|
||||
setParameter("RiskLevels", riskLevels);
|
||||
}
|
||||
|
||||
int DescribeDataAssetsRequest::getRangeId()const
|
||||
@@ -44,7 +46,7 @@ int DescribeDataAssetsRequest::getRangeId()const
|
||||
void DescribeDataAssetsRequest::setRangeId(int rangeId)
|
||||
{
|
||||
rangeId_ = rangeId;
|
||||
setCoreParameter("RangeId", std::to_string(rangeId));
|
||||
setParameter("RangeId", std::to_string(rangeId));
|
||||
}
|
||||
|
||||
std::string DescribeDataAssetsRequest::getSourceIp()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeDataAssetsRequest::getSourceIp()const
|
||||
void DescribeDataAssetsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeDataAssetsRequest::getPageSize()const
|
||||
@@ -66,7 +68,7 @@ int DescribeDataAssetsRequest::getPageSize()const
|
||||
void DescribeDataAssetsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDataAssetsRequest::getLang()const
|
||||
@@ -77,7 +79,7 @@ std::string DescribeDataAssetsRequest::getLang()const
|
||||
void DescribeDataAssetsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int DescribeDataAssetsRequest::getFeatureType()const
|
||||
@@ -88,7 +90,7 @@ int DescribeDataAssetsRequest::getFeatureType()const
|
||||
void DescribeDataAssetsRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
int DescribeDataAssetsRequest::getCurrentPage()const
|
||||
@@ -99,7 +101,7 @@ int DescribeDataAssetsRequest::getCurrentPage()const
|
||||
void DescribeDataAssetsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeDataAssetsRequest::getName()const
|
||||
@@ -110,7 +112,7 @@ std::string DescribeDataAssetsRequest::getName()const
|
||||
void DescribeDataAssetsRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
long DescribeDataAssetsRequest::getRuleId()const
|
||||
@@ -121,6 +123,6 @@ long DescribeDataAssetsRequest::getRuleId()const
|
||||
void DescribeDataAssetsRequest::setRuleId(long ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setCoreParameter("RuleId", std::to_string(ruleId));
|
||||
setParameter("RuleId", std::to_string(ruleId));
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ void DescribeDataAssetsResult::parse(const std::string &payload)
|
||||
{
|
||||
Asset itemsObject;
|
||||
if(!valueItemsAsset["Id"].isNull())
|
||||
itemsObject.id = std::stol(valueItemsAsset["Id"].asString());
|
||||
itemsObject.id = valueItemsAsset["Id"].asString();
|
||||
if(!valueItemsAsset["Name"].isNull())
|
||||
itemsObject.name = valueItemsAsset["Name"].asString();
|
||||
if(!valueItemsAsset["Owner"].isNull())
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeDataHubConnectorsRequest;
|
||||
|
||||
DescribeDataHubConnectorsRequest::DescribeDataHubConnectorsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubConnectors")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataHubConnectorsRequest::~DescribeDataHubConnectorsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeDataHubConnectorsRequest::getTopicId()const
|
||||
void DescribeDataHubConnectorsRequest::setTopicId(long topicId)
|
||||
{
|
||||
topicId_ = topicId;
|
||||
setCoreParameter("TopicId", std::to_string(topicId));
|
||||
setParameter("TopicId", std::to_string(topicId));
|
||||
}
|
||||
|
||||
std::string DescribeDataHubConnectorsRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeDataHubConnectorsRequest::getSourceIp()const
|
||||
void DescribeDataHubConnectorsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeDataHubConnectorsRequest::getPageSize()const
|
||||
@@ -55,7 +57,7 @@ int DescribeDataHubConnectorsRequest::getPageSize()const
|
||||
void DescribeDataHubConnectorsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDataHubConnectorsRequest::getLang()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeDataHubConnectorsRequest::getLang()const
|
||||
void DescribeDataHubConnectorsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
long DescribeDataHubConnectorsRequest::getProjectId()const
|
||||
@@ -77,7 +79,7 @@ long DescribeDataHubConnectorsRequest::getProjectId()const
|
||||
void DescribeDataHubConnectorsRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", std::to_string(projectId));
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
std::string DescribeDataHubConnectorsRequest::getKey()const
|
||||
@@ -88,7 +90,7 @@ std::string DescribeDataHubConnectorsRequest::getKey()const
|
||||
void DescribeDataHubConnectorsRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setCoreParameter("Key", key);
|
||||
setParameter("Key", key);
|
||||
}
|
||||
|
||||
int DescribeDataHubConnectorsRequest::getFeatureType()const
|
||||
@@ -99,7 +101,7 @@ int DescribeDataHubConnectorsRequest::getFeatureType()const
|
||||
void DescribeDataHubConnectorsRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
int DescribeDataHubConnectorsRequest::getCurrentPage()const
|
||||
@@ -110,7 +112,7 @@ int DescribeDataHubConnectorsRequest::getCurrentPage()const
|
||||
void DescribeDataHubConnectorsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribeDataHubConnectorsRequest::getDepartId()const
|
||||
@@ -121,6 +123,6 @@ long DescribeDataHubConnectorsRequest::getDepartId()const
|
||||
void DescribeDataHubConnectorsRequest::setDepartId(long departId)
|
||||
{
|
||||
departId_ = departId;
|
||||
setCoreParameter("DepartId", std::to_string(departId));
|
||||
setParameter("DepartId", std::to_string(departId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeDataHubProjectsRequest;
|
||||
|
||||
DescribeDataHubProjectsRequest::DescribeDataHubProjectsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubProjects")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataHubProjectsRequest::~DescribeDataHubProjectsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeDataHubProjectsRequest::getSourceIp()const
|
||||
void DescribeDataHubProjectsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeDataHubProjectsRequest::getPageSize()const
|
||||
@@ -44,7 +46,7 @@ int DescribeDataHubProjectsRequest::getPageSize()const
|
||||
void DescribeDataHubProjectsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDataHubProjectsRequest::getLang()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeDataHubProjectsRequest::getLang()const
|
||||
void DescribeDataHubProjectsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeDataHubProjectsRequest::getKey()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeDataHubProjectsRequest::getKey()const
|
||||
void DescribeDataHubProjectsRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setCoreParameter("Key", key);
|
||||
setParameter("Key", key);
|
||||
}
|
||||
|
||||
int DescribeDataHubProjectsRequest::getQueryType()const
|
||||
@@ -77,7 +79,7 @@ int DescribeDataHubProjectsRequest::getQueryType()const
|
||||
void DescribeDataHubProjectsRequest::setQueryType(int queryType)
|
||||
{
|
||||
queryType_ = queryType;
|
||||
setCoreParameter("QueryType", std::to_string(queryType));
|
||||
setParameter("QueryType", std::to_string(queryType));
|
||||
}
|
||||
|
||||
int DescribeDataHubProjectsRequest::getFeatureType()const
|
||||
@@ -88,7 +90,7 @@ int DescribeDataHubProjectsRequest::getFeatureType()const
|
||||
void DescribeDataHubProjectsRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
int DescribeDataHubProjectsRequest::getCurrentPage()const
|
||||
@@ -99,7 +101,7 @@ int DescribeDataHubProjectsRequest::getCurrentPage()const
|
||||
void DescribeDataHubProjectsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribeDataHubProjectsRequest::getDepartId()const
|
||||
@@ -110,6 +112,6 @@ long DescribeDataHubProjectsRequest::getDepartId()const
|
||||
void DescribeDataHubProjectsRequest::setDepartId(long departId)
|
||||
{
|
||||
departId_ = departId;
|
||||
setCoreParameter("DepartId", std::to_string(departId));
|
||||
setParameter("DepartId", std::to_string(departId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeDataHubSubscriptionsRequest;
|
||||
|
||||
DescribeDataHubSubscriptionsRequest::DescribeDataHubSubscriptionsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubSubscriptions")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataHubSubscriptionsRequest::~DescribeDataHubSubscriptionsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeDataHubSubscriptionsRequest::getTopicId()const
|
||||
void DescribeDataHubSubscriptionsRequest::setTopicId(long topicId)
|
||||
{
|
||||
topicId_ = topicId;
|
||||
setCoreParameter("TopicId", std::to_string(topicId));
|
||||
setParameter("TopicId", std::to_string(topicId));
|
||||
}
|
||||
|
||||
std::string DescribeDataHubSubscriptionsRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeDataHubSubscriptionsRequest::getSourceIp()const
|
||||
void DescribeDataHubSubscriptionsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeDataHubSubscriptionsRequest::getPageSize()const
|
||||
@@ -55,7 +57,7 @@ int DescribeDataHubSubscriptionsRequest::getPageSize()const
|
||||
void DescribeDataHubSubscriptionsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDataHubSubscriptionsRequest::getLang()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeDataHubSubscriptionsRequest::getLang()const
|
||||
void DescribeDataHubSubscriptionsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
long DescribeDataHubSubscriptionsRequest::getProjectId()const
|
||||
@@ -77,7 +79,7 @@ long DescribeDataHubSubscriptionsRequest::getProjectId()const
|
||||
void DescribeDataHubSubscriptionsRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", std::to_string(projectId));
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
std::string DescribeDataHubSubscriptionsRequest::getKey()const
|
||||
@@ -88,7 +90,7 @@ std::string DescribeDataHubSubscriptionsRequest::getKey()const
|
||||
void DescribeDataHubSubscriptionsRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setCoreParameter("Key", key);
|
||||
setParameter("Key", key);
|
||||
}
|
||||
|
||||
int DescribeDataHubSubscriptionsRequest::getFeatureType()const
|
||||
@@ -99,7 +101,7 @@ int DescribeDataHubSubscriptionsRequest::getFeatureType()const
|
||||
void DescribeDataHubSubscriptionsRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
int DescribeDataHubSubscriptionsRequest::getCurrentPage()const
|
||||
@@ -110,7 +112,7 @@ int DescribeDataHubSubscriptionsRequest::getCurrentPage()const
|
||||
void DescribeDataHubSubscriptionsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribeDataHubSubscriptionsRequest::getDepartId()const
|
||||
@@ -121,6 +123,6 @@ long DescribeDataHubSubscriptionsRequest::getDepartId()const
|
||||
void DescribeDataHubSubscriptionsRequest::setDepartId(long departId)
|
||||
{
|
||||
departId_ = departId;
|
||||
setCoreParameter("DepartId", std::to_string(departId));
|
||||
setParameter("DepartId", std::to_string(departId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeDataHubTopicsRequest;
|
||||
|
||||
DescribeDataHubTopicsRequest::DescribeDataHubTopicsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataHubTopics")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataHubTopicsRequest::~DescribeDataHubTopicsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeDataHubTopicsRequest::getSourceIp()const
|
||||
void DescribeDataHubTopicsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeDataHubTopicsRequest::getPageSize()const
|
||||
@@ -44,7 +46,7 @@ int DescribeDataHubTopicsRequest::getPageSize()const
|
||||
void DescribeDataHubTopicsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDataHubTopicsRequest::getLang()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeDataHubTopicsRequest::getLang()const
|
||||
void DescribeDataHubTopicsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
long DescribeDataHubTopicsRequest::getProjectId()const
|
||||
@@ -66,7 +68,7 @@ long DescribeDataHubTopicsRequest::getProjectId()const
|
||||
void DescribeDataHubTopicsRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", std::to_string(projectId));
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
std::string DescribeDataHubTopicsRequest::getKey()const
|
||||
@@ -77,7 +79,7 @@ std::string DescribeDataHubTopicsRequest::getKey()const
|
||||
void DescribeDataHubTopicsRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setCoreParameter("Key", key);
|
||||
setParameter("Key", key);
|
||||
}
|
||||
|
||||
int DescribeDataHubTopicsRequest::getFeatureType()const
|
||||
@@ -88,7 +90,7 @@ int DescribeDataHubTopicsRequest::getFeatureType()const
|
||||
void DescribeDataHubTopicsRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
int DescribeDataHubTopicsRequest::getCurrentPage()const
|
||||
@@ -99,7 +101,7 @@ int DescribeDataHubTopicsRequest::getCurrentPage()const
|
||||
void DescribeDataHubTopicsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribeDataHubTopicsRequest::getDepartId()const
|
||||
@@ -110,6 +112,6 @@ long DescribeDataHubTopicsRequest::getDepartId()const
|
||||
void DescribeDataHubTopicsRequest::setDepartId(long departId)
|
||||
{
|
||||
departId_ = departId;
|
||||
setCoreParameter("DepartId", std::to_string(departId));
|
||||
setParameter("DepartId", std::to_string(departId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeDataLimitDetailRequest;
|
||||
|
||||
DescribeDataLimitDetailRequest::DescribeDataLimitDetailRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataLimitDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataLimitDetailRequest::~DescribeDataLimitDetailRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int DescribeDataLimitDetailRequest::getNetworkType()const
|
||||
void DescribeDataLimitDetailRequest::setNetworkType(int networkType)
|
||||
{
|
||||
networkType_ = networkType;
|
||||
setCoreParameter("NetworkType", std::to_string(networkType));
|
||||
setParameter("NetworkType", std::to_string(networkType));
|
||||
}
|
||||
|
||||
std::string DescribeDataLimitDetailRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeDataLimitDetailRequest::getSourceIp()const
|
||||
void DescribeDataLimitDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
long DescribeDataLimitDetailRequest::getId()const
|
||||
@@ -55,7 +57,7 @@ long DescribeDataLimitDetailRequest::getId()const
|
||||
void DescribeDataLimitDetailRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", std::to_string(id));
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string DescribeDataLimitDetailRequest::getLang()const
|
||||
@@ -66,6 +68,6 @@ std::string DescribeDataLimitDetailRequest::getLang()const
|
||||
void DescribeDataLimitDetailRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -62,6 +62,12 @@ void DescribeDataLimitDetailResult::parse(const std::string &payload)
|
||||
dataLimit_.resourceType = std::stol(dataLimitNode["ResourceType"].asString());
|
||||
if(!dataLimitNode["ResourceTypeCode"].isNull())
|
||||
dataLimit_.resourceTypeCode = dataLimitNode["ResourceTypeCode"].asString();
|
||||
if(!dataLimitNode["AuditStatus"].isNull())
|
||||
dataLimit_.auditStatus = std::stoi(dataLimitNode["AuditStatus"].asString());
|
||||
if(!dataLimitNode["LogStoreDay"].isNull())
|
||||
dataLimit_.logStoreDay = std::stoi(dataLimitNode["LogStoreDay"].asString());
|
||||
if(!dataLimitNode["Port"].isNull())
|
||||
dataLimit_.port = std::stoi(dataLimitNode["Port"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -20,22 +20,13 @@ using AlibabaCloud::Sddp::Model::DescribeDataLimitsRequest;
|
||||
|
||||
DescribeDataLimitsRequest::DescribeDataLimitsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataLimits")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataLimitsRequest::~DescribeDataLimitsRequest()
|
||||
{}
|
||||
|
||||
int DescribeDataLimitsRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void DescribeDataLimitsRequest::setResourceType(int resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setCoreParameter("ResourceType", std::to_string(resourceType));
|
||||
}
|
||||
|
||||
std::string DescribeDataLimitsRequest::getParentId()const
|
||||
{
|
||||
return parentId_;
|
||||
@@ -44,7 +35,7 @@ std::string DescribeDataLimitsRequest::getParentId()const
|
||||
void DescribeDataLimitsRequest::setParentId(const std::string& parentId)
|
||||
{
|
||||
parentId_ = parentId;
|
||||
setCoreParameter("ParentId", parentId);
|
||||
setParameter("ParentId", parentId);
|
||||
}
|
||||
|
||||
std::string DescribeDataLimitsRequest::getSourceIp()const
|
||||
@@ -55,7 +46,40 @@ std::string DescribeDataLimitsRequest::getSourceIp()const
|
||||
void DescribeDataLimitsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeDataLimitsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDataLimitsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeDataLimitsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDataLimitsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeDataLimitsRequest::getCheckStatus()const
|
||||
{
|
||||
return checkStatus_;
|
||||
}
|
||||
|
||||
void DescribeDataLimitsRequest::setCheckStatus(int checkStatus)
|
||||
{
|
||||
checkStatus_ = checkStatus;
|
||||
setParameter("CheckStatus", std::to_string(checkStatus));
|
||||
}
|
||||
|
||||
std::string DescribeDataLimitsRequest::getLang()const
|
||||
@@ -66,6 +90,61 @@ std::string DescribeDataLimitsRequest::getLang()const
|
||||
void DescribeDataLimitsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeDataLimitsRequest::getServiceRegionId()const
|
||||
{
|
||||
return serviceRegionId_;
|
||||
}
|
||||
|
||||
void DescribeDataLimitsRequest::setServiceRegionId(const std::string& serviceRegionId)
|
||||
{
|
||||
serviceRegionId_ = serviceRegionId;
|
||||
setParameter("ServiceRegionId", serviceRegionId);
|
||||
}
|
||||
|
||||
std::string DescribeDataLimitsRequest::getEngineType()const
|
||||
{
|
||||
return engineType_;
|
||||
}
|
||||
|
||||
void DescribeDataLimitsRequest::setEngineType(const std::string& engineType)
|
||||
{
|
||||
engineType_ = engineType;
|
||||
setParameter("EngineType", engineType);
|
||||
}
|
||||
|
||||
int DescribeDataLimitsRequest::getAuditStatus()const
|
||||
{
|
||||
return auditStatus_;
|
||||
}
|
||||
|
||||
void DescribeDataLimitsRequest::setAuditStatus(int auditStatus)
|
||||
{
|
||||
auditStatus_ = auditStatus;
|
||||
setParameter("AuditStatus", std::to_string(auditStatus));
|
||||
}
|
||||
|
||||
int DescribeDataLimitsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeDataLimitsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
int DescribeDataLimitsRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void DescribeDataLimitsRequest::setResourceType(int resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", std::to_string(resourceType));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,39 +39,84 @@ void DescribeDataLimitsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataLimitListNode = value["DataLimitList"]["DataLimit"];
|
||||
for (auto valueDataLimitListDataLimit : allDataLimitListNode)
|
||||
auto allItemsNode = value["Items"]["DataLimit"];
|
||||
for (auto valueItemsDataLimit : allItemsNode)
|
||||
{
|
||||
DataLimit dataLimitListObject;
|
||||
if(!valueDataLimitListDataLimit["RegionId"].isNull())
|
||||
dataLimitListObject.regionId = valueDataLimitListDataLimit["RegionId"].asString();
|
||||
if(!valueDataLimitListDataLimit["LocalName"].isNull())
|
||||
dataLimitListObject.localName = valueDataLimitListDataLimit["LocalName"].asString();
|
||||
if(!valueDataLimitListDataLimit["ParentId"].isNull())
|
||||
dataLimitListObject.parentId = valueDataLimitListDataLimit["ParentId"].asString();
|
||||
if(!valueDataLimitListDataLimit["Id"].isNull())
|
||||
dataLimitListObject.id = std::stol(valueDataLimitListDataLimit["Id"].asString());
|
||||
if(!valueDataLimitListDataLimit["UserName"].isNull())
|
||||
dataLimitListObject.userName = valueDataLimitListDataLimit["UserName"].asString();
|
||||
if(!valueDataLimitListDataLimit["GmtCreate"].isNull())
|
||||
dataLimitListObject.gmtCreate = std::stol(valueDataLimitListDataLimit["GmtCreate"].asString());
|
||||
if(!valueDataLimitListDataLimit["Connector"].isNull())
|
||||
dataLimitListObject.connector = valueDataLimitListDataLimit["Connector"].asString();
|
||||
if(!valueDataLimitListDataLimit["CheckStatus"].isNull())
|
||||
dataLimitListObject.checkStatus = std::stoi(valueDataLimitListDataLimit["CheckStatus"].asString());
|
||||
if(!valueDataLimitListDataLimit["CheckStatusName"].isNull())
|
||||
dataLimitListObject.checkStatusName = valueDataLimitListDataLimit["CheckStatusName"].asString();
|
||||
if(!valueDataLimitListDataLimit["ResourceType"].isNull())
|
||||
dataLimitListObject.resourceType = std::stol(valueDataLimitListDataLimit["ResourceType"].asString());
|
||||
if(!valueDataLimitListDataLimit["ResourceTypeCode"].isNull())
|
||||
dataLimitListObject.resourceTypeCode = valueDataLimitListDataLimit["ResourceTypeCode"].asString();
|
||||
dataLimitList_.push_back(dataLimitListObject);
|
||||
DataLimit itemsObject;
|
||||
if(!valueItemsDataLimit["RegionId"].isNull())
|
||||
itemsObject.regionId = valueItemsDataLimit["RegionId"].asString();
|
||||
if(!valueItemsDataLimit["LocalName"].isNull())
|
||||
itemsObject.localName = valueItemsDataLimit["LocalName"].asString();
|
||||
if(!valueItemsDataLimit["ParentId"].isNull())
|
||||
itemsObject.parentId = valueItemsDataLimit["ParentId"].asString();
|
||||
if(!valueItemsDataLimit["Id"].isNull())
|
||||
itemsObject.id = std::stol(valueItemsDataLimit["Id"].asString());
|
||||
if(!valueItemsDataLimit["UserName"].isNull())
|
||||
itemsObject.userName = valueItemsDataLimit["UserName"].asString();
|
||||
if(!valueItemsDataLimit["GmtCreate"].isNull())
|
||||
itemsObject.gmtCreate = std::stol(valueItemsDataLimit["GmtCreate"].asString());
|
||||
if(!valueItemsDataLimit["Connector"].isNull())
|
||||
itemsObject.connector = valueItemsDataLimit["Connector"].asString();
|
||||
if(!valueItemsDataLimit["CheckStatus"].isNull())
|
||||
itemsObject.checkStatus = std::stoi(valueItemsDataLimit["CheckStatus"].asString());
|
||||
if(!valueItemsDataLimit["CheckStatusName"].isNull())
|
||||
itemsObject.checkStatusName = valueItemsDataLimit["CheckStatusName"].asString();
|
||||
if(!valueItemsDataLimit["ResourceType"].isNull())
|
||||
itemsObject.resourceType = std::stol(valueItemsDataLimit["ResourceType"].asString());
|
||||
if(!valueItemsDataLimit["ResourceTypeCode"].isNull())
|
||||
itemsObject.resourceTypeCode = valueItemsDataLimit["ResourceTypeCode"].asString();
|
||||
if(!valueItemsDataLimit["AuditStatus"].isNull())
|
||||
itemsObject.auditStatus = std::stoi(valueItemsDataLimit["AuditStatus"].asString());
|
||||
if(!valueItemsDataLimit["LogStoreDay"].isNull())
|
||||
itemsObject.logStoreDay = std::stoi(valueItemsDataLimit["LogStoreDay"].asString());
|
||||
if(!valueItemsDataLimit["Enable"].isNull())
|
||||
itemsObject.enable = std::stoi(valueItemsDataLimit["Enable"].asString());
|
||||
if(!valueItemsDataLimit["AutoScan"].isNull())
|
||||
itemsObject.autoScan = std::stoi(valueItemsDataLimit["AutoScan"].asString());
|
||||
if(!valueItemsDataLimit["EngineType"].isNull())
|
||||
itemsObject.engineType = valueItemsDataLimit["EngineType"].asString();
|
||||
if(!valueItemsDataLimit["ProcessStatus"].isNull())
|
||||
itemsObject.processStatus = std::stoi(valueItemsDataLimit["ProcessStatus"].asString());
|
||||
if(!valueItemsDataLimit["ProcessTotalCount"].isNull())
|
||||
itemsObject.processTotalCount = std::stoi(valueItemsDataLimit["ProcessTotalCount"].asString());
|
||||
if(!valueItemsDataLimit["TotalCount"].isNull())
|
||||
itemsObject.totalCount = std::stoi(valueItemsDataLimit["TotalCount"].asString());
|
||||
if(!valueItemsDataLimit["LastFinishedTime"].isNull())
|
||||
itemsObject.lastFinishedTime = std::stol(valueItemsDataLimit["LastFinishedTime"].asString());
|
||||
if(!valueItemsDataLimit["ErrorCode"].isNull())
|
||||
itemsObject.errorCode = valueItemsDataLimit["ErrorCode"].asString();
|
||||
if(!valueItemsDataLimit["ErrorMessage"].isNull())
|
||||
itemsObject.errorMessage = valueItemsDataLimit["ErrorMessage"].asString();
|
||||
if(!valueItemsDataLimit["Port"].isNull())
|
||||
itemsObject.port = std::stoi(valueItemsDataLimit["Port"].asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDataLimitsResult::DataLimit> DescribeDataLimitsResult::getDataLimitList()const
|
||||
int DescribeDataLimitsResult::getTotalCount()const
|
||||
{
|
||||
return dataLimitList_;
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeDataLimitsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeDataLimitsResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDataLimitsResult::DataLimit> DescribeDataLimitsResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
|
||||
150
sddp/src/model/DescribeDataMaskingRunHistoryRequest.cc
Normal file
150
sddp/src/model/DescribeDataMaskingRunHistoryRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* 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/sddp/model/DescribeDataMaskingRunHistoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDataMaskingRunHistoryRequest;
|
||||
|
||||
DescribeDataMaskingRunHistoryRequest::DescribeDataMaskingRunHistoryRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataMaskingRunHistory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataMaskingRunHistoryRequest::~DescribeDataMaskingRunHistoryRequest()
|
||||
{}
|
||||
|
||||
int DescribeDataMaskingRunHistoryRequest::getSrcType()const
|
||||
{
|
||||
return srcType_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingRunHistoryRequest::setSrcType(int srcType)
|
||||
{
|
||||
srcType_ = srcType;
|
||||
setParameter("SrcType", std::to_string(srcType));
|
||||
}
|
||||
|
||||
long DescribeDataMaskingRunHistoryRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingRunHistoryRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string DescribeDataMaskingRunHistoryRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingRunHistoryRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeDataMaskingRunHistoryRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingRunHistoryRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDataMaskingRunHistoryRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingRunHistoryRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeDataMaskingRunHistoryRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingRunHistoryRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
int DescribeDataMaskingRunHistoryRequest::getFeatureType()const
|
||||
{
|
||||
return featureType_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingRunHistoryRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
long DescribeDataMaskingRunHistoryRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingRunHistoryRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
int DescribeDataMaskingRunHistoryRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingRunHistoryRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
int DescribeDataMaskingRunHistoryRequest::getDstType()const
|
||||
{
|
||||
return dstType_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingRunHistoryRequest::setDstType(int dstType)
|
||||
{
|
||||
dstType_ = dstType;
|
||||
setParameter("DstType", std::to_string(dstType));
|
||||
}
|
||||
|
||||
int DescribeDataMaskingRunHistoryRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingRunHistoryRequest::setStatus(int status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", std::to_string(status));
|
||||
}
|
||||
|
||||
104
sddp/src/model/DescribeDataMaskingRunHistoryResult.cc
Normal file
104
sddp/src/model/DescribeDataMaskingRunHistoryResult.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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/sddp/model/DescribeDataMaskingRunHistoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDataMaskingRunHistoryResult::DescribeDataMaskingRunHistoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataMaskingRunHistoryResult::DescribeDataMaskingRunHistoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataMaskingRunHistoryResult::~DescribeDataMaskingRunHistoryResult()
|
||||
{}
|
||||
|
||||
void DescribeDataMaskingRunHistoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["Task"];
|
||||
for (auto valueItemsTask : allItemsNode)
|
||||
{
|
||||
Task itemsObject;
|
||||
if(!valueItemsTask["Id"].isNull())
|
||||
itemsObject.id = std::stol(valueItemsTask["Id"].asString());
|
||||
if(!valueItemsTask["TaskId"].isNull())
|
||||
itemsObject.taskId = valueItemsTask["TaskId"].asString();
|
||||
if(!valueItemsTask["StartTime"].isNull())
|
||||
itemsObject.startTime = std::stol(valueItemsTask["StartTime"].asString());
|
||||
if(!valueItemsTask["RunIndex"].isNull())
|
||||
itemsObject.runIndex = std::stoi(valueItemsTask["RunIndex"].asString());
|
||||
if(!valueItemsTask["Type"].isNull())
|
||||
itemsObject.type = std::stoi(valueItemsTask["Type"].asString());
|
||||
if(!valueItemsTask["DstType"].isNull())
|
||||
itemsObject.dstType = std::stoi(valueItemsTask["DstType"].asString());
|
||||
if(!valueItemsTask["Percentage"].isNull())
|
||||
itemsObject.percentage = std::stoi(valueItemsTask["Percentage"].asString());
|
||||
if(!valueItemsTask["SrcType"].isNull())
|
||||
itemsObject.srcType = std::stoi(valueItemsTask["SrcType"].asString());
|
||||
if(!valueItemsTask["MaskingCount"].isNull())
|
||||
itemsObject.maskingCount = std::stol(valueItemsTask["MaskingCount"].asString());
|
||||
if(!valueItemsTask["ConflictCount"].isNull())
|
||||
itemsObject.conflictCount = std::stol(valueItemsTask["ConflictCount"].asString());
|
||||
if(!valueItemsTask["Status"].isNull())
|
||||
itemsObject.status = std::stoi(valueItemsTask["Status"].asString());
|
||||
if(!valueItemsTask["FailCode"].isNull())
|
||||
itemsObject.failCode = valueItemsTask["FailCode"].asString();
|
||||
if(!valueItemsTask["DstTypeCode"].isNull())
|
||||
itemsObject.dstTypeCode = valueItemsTask["DstTypeCode"].asString();
|
||||
if(!valueItemsTask["SrcTypeCode"].isNull())
|
||||
itemsObject.srcTypeCode = valueItemsTask["SrcTypeCode"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeDataMaskingRunHistoryResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeDataMaskingRunHistoryResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeDataMaskingRunHistoryResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDataMaskingRunHistoryResult::Task> DescribeDataMaskingRunHistoryResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
128
sddp/src/model/DescribeDataMaskingTasksRequest.cc
Normal file
128
sddp/src/model/DescribeDataMaskingTasksRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/sddp/model/DescribeDataMaskingTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeDataMaskingTasksRequest;
|
||||
|
||||
DescribeDataMaskingTasksRequest::DescribeDataMaskingTasksRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDataMaskingTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataMaskingTasksRequest::~DescribeDataMaskingTasksRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDataMaskingTasksRequest::getSearchKey()const
|
||||
{
|
||||
return searchKey_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingTasksRequest::setSearchKey(const std::string& searchKey)
|
||||
{
|
||||
searchKey_ = searchKey;
|
||||
setParameter("SearchKey", searchKey);
|
||||
}
|
||||
|
||||
long DescribeDataMaskingTasksRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingTasksRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string DescribeDataMaskingTasksRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingTasksRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeDataMaskingTasksRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingTasksRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDataMaskingTasksRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingTasksRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int DescribeDataMaskingTasksRequest::getFeatureType()const
|
||||
{
|
||||
return featureType_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingTasksRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
long DescribeDataMaskingTasksRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingTasksRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
int DescribeDataMaskingTasksRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingTasksRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
int DescribeDataMaskingTasksRequest::getDstType()const
|
||||
{
|
||||
return dstType_;
|
||||
}
|
||||
|
||||
void DescribeDataMaskingTasksRequest::setDstType(int dstType)
|
||||
{
|
||||
dstType_ = dstType;
|
||||
setParameter("DstType", std::to_string(dstType));
|
||||
}
|
||||
|
||||
106
sddp/src/model/DescribeDataMaskingTasksResult.cc
Normal file
106
sddp/src/model/DescribeDataMaskingTasksResult.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/sddp/model/DescribeDataMaskingTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeDataMaskingTasksResult::DescribeDataMaskingTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataMaskingTasksResult::DescribeDataMaskingTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataMaskingTasksResult::~DescribeDataMaskingTasksResult()
|
||||
{}
|
||||
|
||||
void DescribeDataMaskingTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["Task"];
|
||||
for (auto valueItemsTask : allItemsNode)
|
||||
{
|
||||
Task itemsObject;
|
||||
if(!valueItemsTask["Id"].isNull())
|
||||
itemsObject.id = std::stol(valueItemsTask["Id"].asString());
|
||||
if(!valueItemsTask["TaskId"].isNull())
|
||||
itemsObject.taskId = valueItemsTask["TaskId"].asString();
|
||||
if(!valueItemsTask["TaskName"].isNull())
|
||||
itemsObject.taskName = valueItemsTask["TaskName"].asString();
|
||||
if(!valueItemsTask["Owner"].isNull())
|
||||
itemsObject.owner = valueItemsTask["Owner"].asString();
|
||||
if(!valueItemsTask["GmtCreate"].isNull())
|
||||
itemsObject.gmtCreate = std::stol(valueItemsTask["GmtCreate"].asString());
|
||||
if(!valueItemsTask["DstType"].isNull())
|
||||
itemsObject.dstType = std::stoi(valueItemsTask["DstType"].asString());
|
||||
if(!valueItemsTask["DstPath"].isNull())
|
||||
itemsObject.dstPath = valueItemsTask["DstPath"].asString();
|
||||
if(!valueItemsTask["SrcType"].isNull())
|
||||
itemsObject.srcType = std::stoi(valueItemsTask["SrcType"].asString());
|
||||
if(!valueItemsTask["SrcPath"].isNull())
|
||||
itemsObject.srcPath = valueItemsTask["SrcPath"].asString();
|
||||
if(!valueItemsTask["RunCount"].isNull())
|
||||
itemsObject.runCount = std::stoi(valueItemsTask["RunCount"].asString());
|
||||
if(!valueItemsTask["Status"].isNull())
|
||||
itemsObject.status = std::stoi(valueItemsTask["Status"].asString());
|
||||
if(!valueItemsTask["HasUnfinishProcess"].isNull())
|
||||
itemsObject.hasUnfinishProcess = valueItemsTask["HasUnfinishProcess"].asString() == "true";
|
||||
if(!valueItemsTask["DstTypeCode"].isNull())
|
||||
itemsObject.dstTypeCode = valueItemsTask["DstTypeCode"].asString();
|
||||
if(!valueItemsTask["SrcTypeCode"].isNull())
|
||||
itemsObject.srcTypeCode = valueItemsTask["SrcTypeCode"].asString();
|
||||
if(!valueItemsTask["TriggerType"].isNull())
|
||||
itemsObject.triggerType = std::stoi(valueItemsTask["TriggerType"].asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeDataMaskingTasksResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeDataMaskingTasksResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeDataMaskingTasksResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDataMaskingTasksResult::Task> DescribeDataMaskingTasksResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeDepartsRequest;
|
||||
|
||||
DescribeDepartsRequest::DescribeDepartsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeDeparts")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDepartsRequest::~DescribeDepartsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int DescribeDepartsRequest::getAccountType()const
|
||||
void DescribeDepartsRequest::setAccountType(int accountType)
|
||||
{
|
||||
accountType_ = accountType;
|
||||
setCoreParameter("AccountType", std::to_string(accountType));
|
||||
setParameter("AccountType", std::to_string(accountType));
|
||||
}
|
||||
|
||||
std::string DescribeDepartsRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeDepartsRequest::getSourceIp()const
|
||||
void DescribeDepartsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeDepartsRequest::getPageSize()const
|
||||
@@ -55,7 +57,7 @@ int DescribeDepartsRequest::getPageSize()const
|
||||
void DescribeDepartsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDepartsRequest::getLang()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeDepartsRequest::getLang()const
|
||||
void DescribeDepartsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeDepartsRequest::getKey()const
|
||||
@@ -77,7 +79,7 @@ std::string DescribeDepartsRequest::getKey()const
|
||||
void DescribeDepartsRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setCoreParameter("Key", key);
|
||||
setParameter("Key", key);
|
||||
}
|
||||
|
||||
int DescribeDepartsRequest::getFeatureType()const
|
||||
@@ -88,7 +90,7 @@ int DescribeDepartsRequest::getFeatureType()const
|
||||
void DescribeDepartsRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
int DescribeDepartsRequest::getCurrentPage()const
|
||||
@@ -99,6 +101,6 @@ int DescribeDepartsRequest::getCurrentPage()const
|
||||
void DescribeDepartsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeEventDetailRequest;
|
||||
|
||||
DescribeEventDetailRequest::DescribeEventDetailRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeEventDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeEventDetailRequest::~DescribeEventDetailRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeEventDetailRequest::getFeatureType()const
|
||||
void DescribeEventDetailRequest::setFeatureType(long featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeEventDetailRequest::getSourceIp()const
|
||||
void DescribeEventDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
long DescribeEventDetailRequest::getId()const
|
||||
@@ -55,7 +57,7 @@ long DescribeEventDetailRequest::getId()const
|
||||
void DescribeEventDetailRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", std::to_string(id));
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getLang()const
|
||||
@@ -66,6 +68,6 @@ std::string DescribeEventDetailRequest::getLang()const
|
||||
void DescribeEventDetailRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,8 +54,6 @@ void DescribeEventDetailResult::parse(const std::string &payload)
|
||||
event_.typeCode = eventNode["TypeCode"].asString();
|
||||
if(!eventNode["TypeName"].isNull())
|
||||
event_.typeName = eventNode["TypeName"].asString();
|
||||
if(!eventNode["TelephoneNum"].isNull())
|
||||
event_.telephoneNum = eventNode["TelephoneNum"].asString();
|
||||
if(!eventNode["SubTypeCode"].isNull())
|
||||
event_.subTypeCode = eventNode["SubTypeCode"].asString();
|
||||
if(!eventNode["SubTypeName"].isNull())
|
||||
@@ -105,6 +103,8 @@ void DescribeEventDetailResult::parse(const std::string &payload)
|
||||
chartItemObject.xLabel = detailNodeChartChartItem["XLabel"].asString();
|
||||
if(!detailNodeChartChartItem["YLabel"].isNull())
|
||||
chartItemObject.yLabel = detailNodeChartChartItem["YLabel"].asString();
|
||||
if(!detailNodeChartChartItem["Type"].isNull())
|
||||
chartItemObject.type = detailNodeChartChartItem["Type"].asString();
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["X"].isNull())
|
||||
chartItemObject.data.x = dataNode["X"].asString();
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeEventTypesRequest;
|
||||
|
||||
DescribeEventTypesRequest::DescribeEventTypesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeEventTypes")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeEventTypesRequest::~DescribeEventTypesRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeEventTypesRequest::getParentTypeId()const
|
||||
void DescribeEventTypesRequest::setParentTypeId(long parentTypeId)
|
||||
{
|
||||
parentTypeId_ = parentTypeId;
|
||||
setCoreParameter("ParentTypeId", std::to_string(parentTypeId));
|
||||
setParameter("ParentTypeId", std::to_string(parentTypeId));
|
||||
}
|
||||
|
||||
std::string DescribeEventTypesRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeEventTypesRequest::getSourceIp()const
|
||||
void DescribeEventTypesRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeEventTypesRequest::getLang()const
|
||||
@@ -55,6 +57,6 @@ std::string DescribeEventTypesRequest::getLang()const
|
||||
void DescribeEventTypesRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeEventsRequest;
|
||||
|
||||
DescribeEventsRequest::DescribeEventsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeEvents")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeEventsRequest::~DescribeEventsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeEventsRequest::getProductCode()const
|
||||
void DescribeEventsRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getStartTime()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeEventsRequest::getStartTime()const
|
||||
void DescribeEventsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long DescribeEventsRequest::getUserId()const
|
||||
@@ -55,7 +57,7 @@ long DescribeEventsRequest::getUserId()const
|
||||
void DescribeEventsRequest::setUserId(long userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setCoreParameter("UserId", std::to_string(userId));
|
||||
setParameter("UserId", std::to_string(userId));
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getTypeCode()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeEventsRequest::getTypeCode()const
|
||||
void DescribeEventsRequest::setTypeCode(const std::string& typeCode)
|
||||
{
|
||||
typeCode_ = typeCode;
|
||||
setCoreParameter("TypeCode", typeCode);
|
||||
setParameter("TypeCode", typeCode);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getSubTypeCode()const
|
||||
@@ -77,7 +79,7 @@ std::string DescribeEventsRequest::getSubTypeCode()const
|
||||
void DescribeEventsRequest::setSubTypeCode(const std::string& subTypeCode)
|
||||
{
|
||||
subTypeCode_ = subTypeCode;
|
||||
setCoreParameter("SubTypeCode", subTypeCode);
|
||||
setParameter("SubTypeCode", subTypeCode);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getSourceIp()const
|
||||
@@ -88,7 +90,7 @@ std::string DescribeEventsRequest::getSourceIp()const
|
||||
void DescribeEventsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getTargetProductCode()const
|
||||
@@ -99,7 +101,7 @@ std::string DescribeEventsRequest::getTargetProductCode()const
|
||||
void DescribeEventsRequest::setTargetProductCode(const std::string& targetProductCode)
|
||||
{
|
||||
targetProductCode_ = targetProductCode;
|
||||
setCoreParameter("TargetProductCode", targetProductCode);
|
||||
setParameter("TargetProductCode", targetProductCode);
|
||||
}
|
||||
|
||||
int DescribeEventsRequest::getPageSize()const
|
||||
@@ -110,7 +112,7 @@ int DescribeEventsRequest::getPageSize()const
|
||||
void DescribeEventsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getLang()const
|
||||
@@ -121,7 +123,7 @@ std::string DescribeEventsRequest::getLang()const
|
||||
void DescribeEventsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getDealUserId()const
|
||||
@@ -132,7 +134,7 @@ std::string DescribeEventsRequest::getDealUserId()const
|
||||
void DescribeEventsRequest::setDealUserId(const std::string& dealUserId)
|
||||
{
|
||||
dealUserId_ = dealUserId;
|
||||
setCoreParameter("DealUserId", dealUserId);
|
||||
setParameter("DealUserId", dealUserId);
|
||||
}
|
||||
|
||||
int DescribeEventsRequest::getFeatureType()const
|
||||
@@ -143,7 +145,7 @@ int DescribeEventsRequest::getFeatureType()const
|
||||
void DescribeEventsRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getEndTime()const
|
||||
@@ -154,7 +156,7 @@ std::string DescribeEventsRequest::getEndTime()const
|
||||
void DescribeEventsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
int DescribeEventsRequest::getCurrentPage()const
|
||||
@@ -165,7 +167,7 @@ int DescribeEventsRequest::getCurrentPage()const
|
||||
void DescribeEventsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribeEventsRequest::getDepartId()const
|
||||
@@ -176,7 +178,7 @@ long DescribeEventsRequest::getDepartId()const
|
||||
void DescribeEventsRequest::setDepartId(long departId)
|
||||
{
|
||||
departId_ = departId;
|
||||
setCoreParameter("DepartId", std::to_string(departId));
|
||||
setParameter("DepartId", std::to_string(departId));
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getStatus()const
|
||||
@@ -187,6 +189,6 @@ std::string DescribeEventsRequest::getStatus()const
|
||||
void DescribeEventsRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
@@ -59,8 +59,6 @@ void DescribeEventsResult::parse(const std::string &payload)
|
||||
itemsObject.typeCode = valueItemsEvent["TypeCode"].asString();
|
||||
if(!valueItemsEvent["TypeName"].isNull())
|
||||
itemsObject.typeName = valueItemsEvent["TypeName"].asString();
|
||||
if(!valueItemsEvent["TelephoneNum"].isNull())
|
||||
itemsObject.telephoneNum = valueItemsEvent["TelephoneNum"].asString();
|
||||
if(!valueItemsEvent["SubTypeCode"].isNull())
|
||||
itemsObject.subTypeCode = valueItemsEvent["SubTypeCode"].asString();
|
||||
if(!valueItemsEvent["SubTypeName"].isNull())
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeInstancesRequest;
|
||||
|
||||
DescribeInstancesRequest::DescribeInstancesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeInstances")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeInstancesRequest::~DescribeInstancesRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeInstancesRequest::getProductCode()const
|
||||
void DescribeInstancesRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
long DescribeInstancesRequest::getProductId()const
|
||||
@@ -44,7 +46,18 @@ long DescribeInstancesRequest::getProductId()const
|
||||
void DescribeInstancesRequest::setProductId(long productId)
|
||||
{
|
||||
productId_ = productId;
|
||||
setCoreParameter("ProductId", std::to_string(productId));
|
||||
setParameter("ProductId", std::to_string(productId));
|
||||
}
|
||||
|
||||
std::string DescribeInstancesRequest::getRiskLevels()const
|
||||
{
|
||||
return riskLevels_;
|
||||
}
|
||||
|
||||
void DescribeInstancesRequest::setRiskLevels(const std::string& riskLevels)
|
||||
{
|
||||
riskLevels_ = riskLevels;
|
||||
setParameter("RiskLevels", riskLevels);
|
||||
}
|
||||
|
||||
std::string DescribeInstancesRequest::getQueryName()const
|
||||
@@ -55,7 +68,7 @@ std::string DescribeInstancesRequest::getQueryName()const
|
||||
void DescribeInstancesRequest::setQueryName(const std::string& queryName)
|
||||
{
|
||||
queryName_ = queryName;
|
||||
setCoreParameter("QueryName", queryName);
|
||||
setParameter("QueryName", queryName);
|
||||
}
|
||||
|
||||
long DescribeInstancesRequest::getRiskLevelId()const
|
||||
@@ -66,7 +79,7 @@ long DescribeInstancesRequest::getRiskLevelId()const
|
||||
void DescribeInstancesRequest::setRiskLevelId(long riskLevelId)
|
||||
{
|
||||
riskLevelId_ = riskLevelId;
|
||||
setCoreParameter("RiskLevelId", std::to_string(riskLevelId));
|
||||
setParameter("RiskLevelId", std::to_string(riskLevelId));
|
||||
}
|
||||
|
||||
std::string DescribeInstancesRequest::getSourceIp()const
|
||||
@@ -77,7 +90,7 @@ std::string DescribeInstancesRequest::getSourceIp()const
|
||||
void DescribeInstancesRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeInstancesRequest::getPageSize()const
|
||||
@@ -88,7 +101,7 @@ int DescribeInstancesRequest::getPageSize()const
|
||||
void DescribeInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeInstancesRequest::getLang()const
|
||||
@@ -99,7 +112,7 @@ std::string DescribeInstancesRequest::getLang()const
|
||||
void DescribeInstancesRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int DescribeInstancesRequest::getQueryType()const
|
||||
@@ -110,7 +123,18 @@ int DescribeInstancesRequest::getQueryType()const
|
||||
void DescribeInstancesRequest::setQueryType(int queryType)
|
||||
{
|
||||
queryType_ = queryType;
|
||||
setCoreParameter("QueryType", std::to_string(queryType));
|
||||
setParameter("QueryType", std::to_string(queryType));
|
||||
}
|
||||
|
||||
std::string DescribeInstancesRequest::getServiceRegionId()const
|
||||
{
|
||||
return serviceRegionId_;
|
||||
}
|
||||
|
||||
void DescribeInstancesRequest::setServiceRegionId(const std::string& serviceRegionId)
|
||||
{
|
||||
serviceRegionId_ = serviceRegionId;
|
||||
setParameter("ServiceRegionId", serviceRegionId);
|
||||
}
|
||||
|
||||
int DescribeInstancesRequest::getFeatureType()const
|
||||
@@ -121,7 +145,18 @@ int DescribeInstancesRequest::getFeatureType()const
|
||||
void DescribeInstancesRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
std::string DescribeInstancesRequest::getOrderBy()const
|
||||
{
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void DescribeInstancesRequest::setOrderBy(const std::string& orderBy)
|
||||
{
|
||||
orderBy_ = orderBy;
|
||||
setParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
int DescribeInstancesRequest::getCurrentPage()const
|
||||
@@ -132,7 +167,7 @@ int DescribeInstancesRequest::getCurrentPage()const
|
||||
void DescribeInstancesRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeInstancesRequest::getName()const
|
||||
@@ -143,7 +178,7 @@ std::string DescribeInstancesRequest::getName()const
|
||||
void DescribeInstancesRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
long DescribeInstancesRequest::getRuleId()const
|
||||
@@ -154,6 +189,6 @@ long DescribeInstancesRequest::getRuleId()const
|
||||
void DescribeInstancesRequest::setRuleId(long ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setCoreParameter("RuleId", std::to_string(ruleId));
|
||||
setParameter("RuleId", std::to_string(ruleId));
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
if(!valueItemsInstance["Protection"].isNull())
|
||||
itemsObject.protection = valueItemsInstance["Protection"].asString() == "true";
|
||||
if(!valueItemsInstance["Labelsec"].isNull())
|
||||
itemsObject.labelsec = std::stoi(valueItemsInstance["Labelsec"].asString());
|
||||
itemsObject.labelsec = valueItemsInstance["Labelsec"].asString() == "true";
|
||||
if(!valueItemsInstance["OdpsRiskLevelName"].isNull())
|
||||
itemsObject.odpsRiskLevelName = valueItemsInstance["OdpsRiskLevelName"].asString();
|
||||
if(!valueItemsInstance["Sensitive"].isNull())
|
||||
@@ -77,6 +77,18 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
itemsObject.sensitiveCount = std::stoi(valueItemsInstance["SensitiveCount"].asString());
|
||||
if(!valueItemsInstance["Acl"].isNull())
|
||||
itemsObject.acl = valueItemsInstance["Acl"].asString();
|
||||
if(!valueItemsInstance["S2Count"].isNull())
|
||||
itemsObject.s2Count = std::stoi(valueItemsInstance["S2Count"].asString());
|
||||
if(!valueItemsInstance["S3Count"].isNull())
|
||||
itemsObject.s3Count = std::stoi(valueItemsInstance["S3Count"].asString());
|
||||
if(!valueItemsInstance["LastFinishTime"].isNull())
|
||||
itemsObject.lastFinishTime = std::stol(valueItemsInstance["LastFinishTime"].asString());
|
||||
if(!valueItemsInstance["RegionName"].isNull())
|
||||
itemsObject.regionName = valueItemsInstance["RegionName"].asString();
|
||||
if(!valueItemsInstance["RegionId"].isNull())
|
||||
itemsObject.regionId = valueItemsInstance["RegionId"].asString();
|
||||
if(!valueItemsInstance["EngineType"].isNull())
|
||||
itemsObject.engineType = valueItemsInstance["EngineType"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
|
||||
205
sddp/src/model/DescribeOriginalLogsRequest.cc
Normal file
205
sddp/src/model/DescribeOriginalLogsRequest.cc
Normal file
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
* 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/sddp/model/DescribeOriginalLogsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeOriginalLogsRequest;
|
||||
|
||||
DescribeOriginalLogsRequest::DescribeOriginalLogsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeOriginalLogs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeOriginalLogsRequest::~DescribeOriginalLogsRequest()
|
||||
{}
|
||||
|
||||
long DescribeOriginalLogsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeOriginalLogsRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string DescribeOriginalLogsRequest::getLogType()const
|
||||
{
|
||||
return logType_;
|
||||
}
|
||||
|
||||
void DescribeOriginalLogsRequest::setLogType(const std::string& logType)
|
||||
{
|
||||
logType_ = logType;
|
||||
setParameter("LogType", logType);
|
||||
}
|
||||
|
||||
std::string DescribeOriginalLogsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeOriginalLogsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeOriginalLogsRequest::getClientIp()const
|
||||
{
|
||||
return clientIp_;
|
||||
}
|
||||
|
||||
void DescribeOriginalLogsRequest::setClientIp(const std::string& clientIp)
|
||||
{
|
||||
clientIp_ = clientIp;
|
||||
setParameter("ClientIp", clientIp);
|
||||
}
|
||||
|
||||
int DescribeOriginalLogsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeOriginalLogsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeOriginalLogsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeOriginalLogsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeOriginalLogsRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void DescribeOriginalLogsRequest::setTableName(const std::string& tableName)
|
||||
{
|
||||
tableName_ = tableName;
|
||||
setParameter("TableName", tableName);
|
||||
}
|
||||
|
||||
std::string DescribeOriginalLogsRequest::getOssObjectKey()const
|
||||
{
|
||||
return ossObjectKey_;
|
||||
}
|
||||
|
||||
void DescribeOriginalLogsRequest::setOssObjectKey(const std::string& ossObjectKey)
|
||||
{
|
||||
ossObjectKey_ = ossObjectKey;
|
||||
setParameter("OssObjectKey", ossObjectKey);
|
||||
}
|
||||
|
||||
int DescribeOriginalLogsRequest::getFeatureType()const
|
||||
{
|
||||
return featureType_;
|
||||
}
|
||||
|
||||
void DescribeOriginalLogsRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
long DescribeOriginalLogsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeOriginalLogsRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
int DescribeOriginalLogsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeOriginalLogsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeOriginalLogsRequest::getClientUa()const
|
||||
{
|
||||
return clientUa_;
|
||||
}
|
||||
|
||||
void DescribeOriginalLogsRequest::setClientUa(const std::string& clientUa)
|
||||
{
|
||||
clientUa_ = clientUa;
|
||||
setParameter("ClientUa", clientUa);
|
||||
}
|
||||
|
||||
std::string DescribeOriginalLogsRequest::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
void DescribeOriginalLogsRequest::setInstanceName(const std::string& instanceName)
|
||||
{
|
||||
instanceName_ = instanceName;
|
||||
setParameter("InstanceName", instanceName);
|
||||
}
|
||||
|
||||
std::string DescribeOriginalLogsRequest::getDatabaseName()const
|
||||
{
|
||||
return databaseName_;
|
||||
}
|
||||
|
||||
void DescribeOriginalLogsRequest::setDatabaseName(const std::string& databaseName)
|
||||
{
|
||||
databaseName_ = databaseName;
|
||||
setParameter("DatabaseName", databaseName);
|
||||
}
|
||||
|
||||
std::string DescribeOriginalLogsRequest::getOperateType()const
|
||||
{
|
||||
return operateType_;
|
||||
}
|
||||
|
||||
void DescribeOriginalLogsRequest::setOperateType(const std::string& operateType)
|
||||
{
|
||||
operateType_ = operateType;
|
||||
setParameter("OperateType", operateType);
|
||||
}
|
||||
|
||||
std::string DescribeOriginalLogsRequest::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void DescribeOriginalLogsRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setParameter("UserName", userName);
|
||||
}
|
||||
|
||||
86
sddp/src/model/DescribeOriginalLogsResult.cc
Normal file
86
sddp/src/model/DescribeOriginalLogsResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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/sddp/model/DescribeOriginalLogsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeOriginalLogsResult::DescribeOriginalLogsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeOriginalLogsResult::DescribeOriginalLogsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeOriginalLogsResult::~DescribeOriginalLogsResult()
|
||||
{}
|
||||
|
||||
void DescribeOriginalLogsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["Log"];
|
||||
for (auto valueItemsLog : allItemsNode)
|
||||
{
|
||||
Log itemsObject;
|
||||
auto allLogContentsNode = allItemsNode["LogContents"]["logContent"];
|
||||
for (auto allItemsNodeLogContentslogContent : allLogContentsNode)
|
||||
{
|
||||
Log::LogContent logContentsObject;
|
||||
if(!allItemsNodeLogContentslogContent["Key"].isNull())
|
||||
logContentsObject.key = allItemsNodeLogContentslogContent["Key"].asString();
|
||||
if(!allItemsNodeLogContentslogContent["Value"].isNull())
|
||||
logContentsObject.value = allItemsNodeLogContentslogContent["Value"].asString();
|
||||
itemsObject.logContents.push_back(logContentsObject);
|
||||
}
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeOriginalLogsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeOriginalLogsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeOriginalLogsResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeOriginalLogsResult::Log> DescribeOriginalLogsResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeOssObjectDetailRequest;
|
||||
|
||||
DescribeOssObjectDetailRequest::DescribeOssObjectDetailRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeOssObjectDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeOssObjectDetailRequest::~DescribeOssObjectDetailRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int DescribeOssObjectDetailRequest::getFeatureType()const
|
||||
void DescribeOssObjectDetailRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
std::string DescribeOssObjectDetailRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeOssObjectDetailRequest::getSourceIp()const
|
||||
void DescribeOssObjectDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
long DescribeOssObjectDetailRequest::getId()const
|
||||
@@ -55,7 +57,7 @@ long DescribeOssObjectDetailRequest::getId()const
|
||||
void DescribeOssObjectDetailRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", std::to_string(id));
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string DescribeOssObjectDetailRequest::getLang()const
|
||||
@@ -66,6 +68,6 @@ std::string DescribeOssObjectDetailRequest::getLang()const
|
||||
void DescribeOssObjectDetailRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,6 +58,8 @@ void DescribeOssObjectDetailResult::parse(const std::string &payload)
|
||||
ruleObject.ruleName = ossObjectDetailNodeRuleListRule["RuleName"].asString();
|
||||
if(!ossObjectDetailNodeRuleListRule["Count"].isNull())
|
||||
ruleObject.count = std::stol(ossObjectDetailNodeRuleListRule["Count"].asString());
|
||||
if(!ossObjectDetailNodeRuleListRule["Category"].isNull())
|
||||
ruleObject.category = std::stoi(ossObjectDetailNodeRuleListRule["Category"].asString());
|
||||
ossObjectDetail_.ruleList.push_back(ruleObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,11 +20,24 @@ using AlibabaCloud::Sddp::Model::DescribeOssObjectsRequest;
|
||||
|
||||
DescribeOssObjectsRequest::DescribeOssObjectsRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeOssObjects")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeOssObjectsRequest::~DescribeOssObjectsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeOssObjectsRequest::getRiskLevels()const
|
||||
{
|
||||
return riskLevels_;
|
||||
}
|
||||
|
||||
void DescribeOssObjectsRequest::setRiskLevels(const std::string& riskLevels)
|
||||
{
|
||||
riskLevels_ = riskLevels;
|
||||
setParameter("RiskLevels", riskLevels);
|
||||
}
|
||||
|
||||
std::string DescribeOssObjectsRequest::getQueryName()const
|
||||
{
|
||||
return queryName_;
|
||||
@@ -33,7 +46,7 @@ std::string DescribeOssObjectsRequest::getQueryName()const
|
||||
void DescribeOssObjectsRequest::setQueryName(const std::string& queryName)
|
||||
{
|
||||
queryName_ = queryName;
|
||||
setCoreParameter("QueryName", queryName);
|
||||
setParameter("QueryName", queryName);
|
||||
}
|
||||
|
||||
int DescribeOssObjectsRequest::getRiskLevelId()const
|
||||
@@ -44,7 +57,7 @@ int DescribeOssObjectsRequest::getRiskLevelId()const
|
||||
void DescribeOssObjectsRequest::setRiskLevelId(int riskLevelId)
|
||||
{
|
||||
riskLevelId_ = riskLevelId;
|
||||
setCoreParameter("RiskLevelId", std::to_string(riskLevelId));
|
||||
setParameter("RiskLevelId", std::to_string(riskLevelId));
|
||||
}
|
||||
|
||||
std::string DescribeOssObjectsRequest::getSourceIp()const
|
||||
@@ -55,7 +68,7 @@ std::string DescribeOssObjectsRequest::getSourceIp()const
|
||||
void DescribeOssObjectsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeOssObjectsRequest::getPageSize()const
|
||||
@@ -66,7 +79,7 @@ int DescribeOssObjectsRequest::getPageSize()const
|
||||
void DescribeOssObjectsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeOssObjectsRequest::getLang()const
|
||||
@@ -77,7 +90,7 @@ std::string DescribeOssObjectsRequest::getLang()const
|
||||
void DescribeOssObjectsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int DescribeOssObjectsRequest::getFeatureType()const
|
||||
@@ -88,7 +101,18 @@ int DescribeOssObjectsRequest::getFeatureType()const
|
||||
void DescribeOssObjectsRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
std::string DescribeOssObjectsRequest::getOrderBy()const
|
||||
{
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void DescribeOssObjectsRequest::setOrderBy(const std::string& orderBy)
|
||||
{
|
||||
orderBy_ = orderBy;
|
||||
setParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
int DescribeOssObjectsRequest::getCurrentPage()const
|
||||
@@ -99,7 +123,7 @@ int DescribeOssObjectsRequest::getCurrentPage()const
|
||||
void DescribeOssObjectsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeOssObjectsRequest::getInstanceId()const
|
||||
@@ -110,7 +134,7 @@ std::string DescribeOssObjectsRequest::getInstanceId()const
|
||||
void DescribeOssObjectsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeOssObjectsRequest::getName()const
|
||||
@@ -121,7 +145,7 @@ std::string DescribeOssObjectsRequest::getName()const
|
||||
void DescribeOssObjectsRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
long DescribeOssObjectsRequest::getRuleId()const
|
||||
@@ -132,6 +156,17 @@ long DescribeOssObjectsRequest::getRuleId()const
|
||||
void DescribeOssObjectsRequest::setRuleId(long ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setCoreParameter("RuleId", std::to_string(ruleId));
|
||||
setParameter("RuleId", std::to_string(ruleId));
|
||||
}
|
||||
|
||||
int DescribeOssObjectsRequest::getCategory()const
|
||||
{
|
||||
return category_;
|
||||
}
|
||||
|
||||
void DescribeOssObjectsRequest::setCategory(int category)
|
||||
{
|
||||
category_ = category;
|
||||
setParameter("Category", std::to_string(category));
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ void DescribeOssObjectsResult::parse(const std::string &payload)
|
||||
{
|
||||
Column itemsObject;
|
||||
if(!valueItemsColumn["Id"].isNull())
|
||||
itemsObject.id = std::stol(valueItemsColumn["Id"].asString());
|
||||
itemsObject.id = valueItemsColumn["Id"].asString();
|
||||
if(!valueItemsColumn["Name"].isNull())
|
||||
itemsObject.name = valueItemsColumn["Name"].asString();
|
||||
if(!valueItemsColumn["RegionId"].isNull())
|
||||
@@ -58,7 +58,17 @@ void DescribeOssObjectsResult::parse(const std::string &payload)
|
||||
if(!valueItemsColumn["FileId"].isNull())
|
||||
itemsObject.fileId = valueItemsColumn["FileId"].asString();
|
||||
if(!valueItemsColumn["RiskLevelName"].isNull())
|
||||
itemsObject.riskLevelName = std::stol(valueItemsColumn["RiskLevelName"].asString());
|
||||
itemsObject.riskLevelName = valueItemsColumn["RiskLevelName"].asString();
|
||||
if(!valueItemsColumn["Size"].isNull())
|
||||
itemsObject.size = std::stol(valueItemsColumn["Size"].asString());
|
||||
if(!valueItemsColumn["SensitiveCount"].isNull())
|
||||
itemsObject.sensitiveCount = std::stoi(valueItemsColumn["SensitiveCount"].asString());
|
||||
if(!valueItemsColumn["RuleCount"].isNull())
|
||||
itemsObject.ruleCount = std::stoi(valueItemsColumn["RuleCount"].asString());
|
||||
if(!valueItemsColumn["CategoryName"].isNull())
|
||||
itemsObject.categoryName = valueItemsColumn["CategoryName"].asString();
|
||||
if(!valueItemsColumn["BucketName"].isNull())
|
||||
itemsObject.bucketName = valueItemsColumn["BucketName"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribePackagesRequest;
|
||||
|
||||
DescribePackagesRequest::DescribePackagesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribePackages")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePackagesRequest::~DescribePackagesRequest()
|
||||
{}
|
||||
@@ -33,7 +35,18 @@ long DescribePackagesRequest::getProductId()const
|
||||
void DescribePackagesRequest::setProductId(long productId)
|
||||
{
|
||||
productId_ = productId;
|
||||
setCoreParameter("ProductId", std::to_string(productId));
|
||||
setParameter("ProductId", std::to_string(productId));
|
||||
}
|
||||
|
||||
std::string DescribePackagesRequest::getRiskLevels()const
|
||||
{
|
||||
return riskLevels_;
|
||||
}
|
||||
|
||||
void DescribePackagesRequest::setRiskLevels(const std::string& riskLevels)
|
||||
{
|
||||
riskLevels_ = riskLevels;
|
||||
setParameter("RiskLevels", riskLevels);
|
||||
}
|
||||
|
||||
std::string DescribePackagesRequest::getQueryName()const
|
||||
@@ -44,7 +57,7 @@ std::string DescribePackagesRequest::getQueryName()const
|
||||
void DescribePackagesRequest::setQueryName(const std::string& queryName)
|
||||
{
|
||||
queryName_ = queryName;
|
||||
setCoreParameter("QueryName", queryName);
|
||||
setParameter("QueryName", queryName);
|
||||
}
|
||||
|
||||
long DescribePackagesRequest::getRiskLevelId()const
|
||||
@@ -55,7 +68,7 @@ long DescribePackagesRequest::getRiskLevelId()const
|
||||
void DescribePackagesRequest::setRiskLevelId(long riskLevelId)
|
||||
{
|
||||
riskLevelId_ = riskLevelId;
|
||||
setCoreParameter("RiskLevelId", std::to_string(riskLevelId));
|
||||
setParameter("RiskLevelId", std::to_string(riskLevelId));
|
||||
}
|
||||
|
||||
std::string DescribePackagesRequest::getSourceIp()const
|
||||
@@ -66,7 +79,7 @@ std::string DescribePackagesRequest::getSourceIp()const
|
||||
void DescribePackagesRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribePackagesRequest::getPageSize()const
|
||||
@@ -77,7 +90,7 @@ int DescribePackagesRequest::getPageSize()const
|
||||
void DescribePackagesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribePackagesRequest::getLang()const
|
||||
@@ -88,7 +101,7 @@ std::string DescribePackagesRequest::getLang()const
|
||||
void DescribePackagesRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int DescribePackagesRequest::getQueryType()const
|
||||
@@ -99,7 +112,7 @@ int DescribePackagesRequest::getQueryType()const
|
||||
void DescribePackagesRequest::setQueryType(int queryType)
|
||||
{
|
||||
queryType_ = queryType;
|
||||
setCoreParameter("QueryType", std::to_string(queryType));
|
||||
setParameter("QueryType", std::to_string(queryType));
|
||||
}
|
||||
|
||||
int DescribePackagesRequest::getFeatureType()const
|
||||
@@ -110,7 +123,18 @@ int DescribePackagesRequest::getFeatureType()const
|
||||
void DescribePackagesRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
std::string DescribePackagesRequest::getOrderBy()const
|
||||
{
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void DescribePackagesRequest::setOrderBy(const std::string& orderBy)
|
||||
{
|
||||
orderBy_ = orderBy;
|
||||
setParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
int DescribePackagesRequest::getCurrentPage()const
|
||||
@@ -121,7 +145,7 @@ int DescribePackagesRequest::getCurrentPage()const
|
||||
void DescribePackagesRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribePackagesRequest::getInstanceId()const
|
||||
@@ -132,7 +156,7 @@ long DescribePackagesRequest::getInstanceId()const
|
||||
void DescribePackagesRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
setParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string DescribePackagesRequest::getName()const
|
||||
@@ -143,7 +167,7 @@ std::string DescribePackagesRequest::getName()const
|
||||
void DescribePackagesRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
long DescribePackagesRequest::getRuleId()const
|
||||
@@ -154,6 +178,6 @@ long DescribePackagesRequest::getRuleId()const
|
||||
void DescribePackagesRequest::setRuleId(long ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setCoreParameter("RuleId", std::to_string(ruleId));
|
||||
setParameter("RuleId", std::to_string(ruleId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,11 +20,24 @@ using AlibabaCloud::Sddp::Model::DescribePrivilegesRequest;
|
||||
|
||||
DescribePrivilegesRequest::DescribePrivilegesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribePrivileges")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePrivilegesRequest::~DescribePrivilegesRequest()
|
||||
{}
|
||||
|
||||
int DescribePrivilegesRequest::getAccountType()const
|
||||
{
|
||||
return accountType_;
|
||||
}
|
||||
|
||||
void DescribePrivilegesRequest::setAccountType(int accountType)
|
||||
{
|
||||
accountType_ = accountType;
|
||||
setParameter("AccountType", std::to_string(accountType));
|
||||
}
|
||||
|
||||
long DescribePrivilegesRequest::getAccountId()const
|
||||
{
|
||||
return accountId_;
|
||||
@@ -33,7 +46,7 @@ long DescribePrivilegesRequest::getAccountId()const
|
||||
void DescribePrivilegesRequest::setAccountId(long accountId)
|
||||
{
|
||||
accountId_ = accountId;
|
||||
setCoreParameter("AccountId", std::to_string(accountId));
|
||||
setParameter("AccountId", std::to_string(accountId));
|
||||
}
|
||||
|
||||
std::string DescribePrivilegesRequest::getSourceIp()const
|
||||
@@ -44,7 +57,7 @@ std::string DescribePrivilegesRequest::getSourceIp()const
|
||||
void DescribePrivilegesRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribePrivilegesRequest::getPageSize()const
|
||||
@@ -55,7 +68,7 @@ int DescribePrivilegesRequest::getPageSize()const
|
||||
void DescribePrivilegesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribePrivilegesRequest::getLang()const
|
||||
@@ -66,7 +79,7 @@ std::string DescribePrivilegesRequest::getLang()const
|
||||
void DescribePrivilegesRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribePrivilegesRequest::getKey()const
|
||||
@@ -77,7 +90,7 @@ std::string DescribePrivilegesRequest::getKey()const
|
||||
void DescribePrivilegesRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setCoreParameter("Key", key);
|
||||
setParameter("Key", key);
|
||||
}
|
||||
|
||||
long DescribePrivilegesRequest::getUseAccountId()const
|
||||
@@ -88,7 +101,7 @@ long DescribePrivilegesRequest::getUseAccountId()const
|
||||
void DescribePrivilegesRequest::setUseAccountId(long useAccountId)
|
||||
{
|
||||
useAccountId_ = useAccountId;
|
||||
setCoreParameter("UseAccountId", std::to_string(useAccountId));
|
||||
setParameter("UseAccountId", std::to_string(useAccountId));
|
||||
}
|
||||
|
||||
int DescribePrivilegesRequest::getFeatureType()const
|
||||
@@ -99,7 +112,7 @@ int DescribePrivilegesRequest::getFeatureType()const
|
||||
void DescribePrivilegesRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
int DescribePrivilegesRequest::getCurrentPage()const
|
||||
@@ -110,7 +123,7 @@ int DescribePrivilegesRequest::getCurrentPage()const
|
||||
void DescribePrivilegesRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePrivilegesRequest::getDataTypeIds()const
|
||||
@@ -121,6 +134,6 @@ std::string DescribePrivilegesRequest::getDataTypeIds()const
|
||||
void DescribePrivilegesRequest::setDataTypeIds(const std::string& dataTypeIds)
|
||||
{
|
||||
dataTypeIds_ = dataTypeIds;
|
||||
setCoreParameter("DataTypeIds", dataTypeIds);
|
||||
setParameter("DataTypeIds", dataTypeIds);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,11 +20,46 @@ using AlibabaCloud::Sddp::Model::DescribeRulesRequest;
|
||||
|
||||
DescribeRulesRequest::DescribeRulesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeRules")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRulesRequest::~DescribeRulesRequest()
|
||||
{}
|
||||
|
||||
int DescribeRulesRequest::getWarnLevel()const
|
||||
{
|
||||
return warnLevel_;
|
||||
}
|
||||
|
||||
void DescribeRulesRequest::setWarnLevel(int warnLevel)
|
||||
{
|
||||
warnLevel_ = warnLevel;
|
||||
setParameter("WarnLevel", std::to_string(warnLevel));
|
||||
}
|
||||
|
||||
int DescribeRulesRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void DescribeRulesRequest::setProductCode(int productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", std::to_string(productCode));
|
||||
}
|
||||
|
||||
long DescribeRulesRequest::getProductId()const
|
||||
{
|
||||
return productId_;
|
||||
}
|
||||
|
||||
void DescribeRulesRequest::setProductId(long productId)
|
||||
{
|
||||
productId_ = productId;
|
||||
setParameter("ProductId", std::to_string(productId));
|
||||
}
|
||||
|
||||
long DescribeRulesRequest::getRiskLevelId()const
|
||||
{
|
||||
return riskLevelId_;
|
||||
@@ -33,7 +68,7 @@ long DescribeRulesRequest::getRiskLevelId()const
|
||||
void DescribeRulesRequest::setRiskLevelId(long riskLevelId)
|
||||
{
|
||||
riskLevelId_ = riskLevelId;
|
||||
setCoreParameter("RiskLevelId", std::to_string(riskLevelId));
|
||||
setParameter("RiskLevelId", std::to_string(riskLevelId));
|
||||
}
|
||||
|
||||
std::string DescribeRulesRequest::getSourceIp()const
|
||||
@@ -44,7 +79,7 @@ std::string DescribeRulesRequest::getSourceIp()const
|
||||
void DescribeRulesRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeRulesRequest::getPageSize()const
|
||||
@@ -55,7 +90,7 @@ int DescribeRulesRequest::getPageSize()const
|
||||
void DescribeRulesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRulesRequest::getLang()const
|
||||
@@ -66,7 +101,18 @@ std::string DescribeRulesRequest::getLang()const
|
||||
void DescribeRulesRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int DescribeRulesRequest::getRuleType()const
|
||||
{
|
||||
return ruleType_;
|
||||
}
|
||||
|
||||
void DescribeRulesRequest::setRuleType(int ruleType)
|
||||
{
|
||||
ruleType_ = ruleType;
|
||||
setParameter("RuleType", std::to_string(ruleType));
|
||||
}
|
||||
|
||||
int DescribeRulesRequest::getCurrentPage()const
|
||||
@@ -77,7 +123,7 @@ int DescribeRulesRequest::getCurrentPage()const
|
||||
void DescribeRulesRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
int DescribeRulesRequest::getCustomType()const
|
||||
@@ -88,7 +134,7 @@ int DescribeRulesRequest::getCustomType()const
|
||||
void DescribeRulesRequest::setCustomType(int customType)
|
||||
{
|
||||
customType_ = customType;
|
||||
setCoreParameter("CustomType", std::to_string(customType));
|
||||
setParameter("CustomType", std::to_string(customType));
|
||||
}
|
||||
|
||||
std::string DescribeRulesRequest::getName()const
|
||||
@@ -99,7 +145,7 @@ std::string DescribeRulesRequest::getName()const
|
||||
void DescribeRulesRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int DescribeRulesRequest::getCategory()const
|
||||
@@ -110,6 +156,6 @@ int DescribeRulesRequest::getCategory()const
|
||||
void DescribeRulesRequest::setCategory(int category)
|
||||
{
|
||||
category_ = category;
|
||||
setCoreParameter("Category", std::to_string(category));
|
||||
setParameter("Category", std::to_string(category));
|
||||
}
|
||||
|
||||
|
||||
@@ -75,6 +75,16 @@ void DescribeRulesResult::parse(const std::string &payload)
|
||||
itemsObject.content = valueItemsRule["Content"].asString();
|
||||
if(!valueItemsRule["DepartName"].isNull())
|
||||
itemsObject.departName = valueItemsRule["DepartName"].asString();
|
||||
if(!valueItemsRule["StatExpress"].isNull())
|
||||
itemsObject.statExpress = valueItemsRule["StatExpress"].asString();
|
||||
if(!valueItemsRule["ProductId"].isNull())
|
||||
itemsObject.productId = std::stol(valueItemsRule["ProductId"].asString());
|
||||
if(!valueItemsRule["HitTotalCount"].isNull())
|
||||
itemsObject.hitTotalCount = std::stoi(valueItemsRule["HitTotalCount"].asString());
|
||||
if(!valueItemsRule["ProductCode"].isNull())
|
||||
itemsObject.productCode = valueItemsRule["ProductCode"].asString();
|
||||
if(!valueItemsRule["WarnLevel"].isNull())
|
||||
itemsObject.warnLevel = std::stoi(valueItemsRule["WarnLevel"].asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::DescribeTablesRequest;
|
||||
|
||||
DescribeTablesRequest::DescribeTablesRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeTables")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTablesRequest::~DescribeTablesRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeTablesRequest::getProductCode()const
|
||||
void DescribeTablesRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
long DescribeTablesRequest::getProductId()const
|
||||
@@ -44,7 +46,18 @@ long DescribeTablesRequest::getProductId()const
|
||||
void DescribeTablesRequest::setProductId(long productId)
|
||||
{
|
||||
productId_ = productId;
|
||||
setCoreParameter("ProductId", std::to_string(productId));
|
||||
setParameter("ProductId", std::to_string(productId));
|
||||
}
|
||||
|
||||
std::string DescribeTablesRequest::getRiskLevels()const
|
||||
{
|
||||
return riskLevels_;
|
||||
}
|
||||
|
||||
void DescribeTablesRequest::setRiskLevels(const std::string& riskLevels)
|
||||
{
|
||||
riskLevels_ = riskLevels;
|
||||
setParameter("RiskLevels", riskLevels);
|
||||
}
|
||||
|
||||
long DescribeTablesRequest::getPackageId()const
|
||||
@@ -55,7 +68,7 @@ long DescribeTablesRequest::getPackageId()const
|
||||
void DescribeTablesRequest::setPackageId(long packageId)
|
||||
{
|
||||
packageId_ = packageId;
|
||||
setCoreParameter("PackageId", std::to_string(packageId));
|
||||
setParameter("PackageId", std::to_string(packageId));
|
||||
}
|
||||
|
||||
std::string DescribeTablesRequest::getQueryName()const
|
||||
@@ -66,7 +79,7 @@ std::string DescribeTablesRequest::getQueryName()const
|
||||
void DescribeTablesRequest::setQueryName(const std::string& queryName)
|
||||
{
|
||||
queryName_ = queryName;
|
||||
setCoreParameter("QueryName", queryName);
|
||||
setParameter("QueryName", queryName);
|
||||
}
|
||||
|
||||
long DescribeTablesRequest::getRiskLevelId()const
|
||||
@@ -77,7 +90,7 @@ long DescribeTablesRequest::getRiskLevelId()const
|
||||
void DescribeTablesRequest::setRiskLevelId(long riskLevelId)
|
||||
{
|
||||
riskLevelId_ = riskLevelId;
|
||||
setCoreParameter("RiskLevelId", std::to_string(riskLevelId));
|
||||
setParameter("RiskLevelId", std::to_string(riskLevelId));
|
||||
}
|
||||
|
||||
std::string DescribeTablesRequest::getSourceIp()const
|
||||
@@ -88,7 +101,7 @@ std::string DescribeTablesRequest::getSourceIp()const
|
||||
void DescribeTablesRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeTablesRequest::getPageSize()const
|
||||
@@ -99,7 +112,7 @@ int DescribeTablesRequest::getPageSize()const
|
||||
void DescribeTablesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeTablesRequest::getLang()const
|
||||
@@ -110,7 +123,7 @@ std::string DescribeTablesRequest::getLang()const
|
||||
void DescribeTablesRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int DescribeTablesRequest::getQueryType()const
|
||||
@@ -121,7 +134,7 @@ int DescribeTablesRequest::getQueryType()const
|
||||
void DescribeTablesRequest::setQueryType(int queryType)
|
||||
{
|
||||
queryType_ = queryType;
|
||||
setCoreParameter("QueryType", std::to_string(queryType));
|
||||
setParameter("QueryType", std::to_string(queryType));
|
||||
}
|
||||
|
||||
int DescribeTablesRequest::getFeatureType()const
|
||||
@@ -132,7 +145,18 @@ int DescribeTablesRequest::getFeatureType()const
|
||||
void DescribeTablesRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
std::string DescribeTablesRequest::getOrderBy()const
|
||||
{
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void DescribeTablesRequest::setOrderBy(const std::string& orderBy)
|
||||
{
|
||||
orderBy_ = orderBy;
|
||||
setParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
int DescribeTablesRequest::getCurrentPage()const
|
||||
@@ -143,7 +167,7 @@ int DescribeTablesRequest::getCurrentPage()const
|
||||
void DescribeTablesRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribeTablesRequest::getInstanceId()const
|
||||
@@ -154,7 +178,7 @@ long DescribeTablesRequest::getInstanceId()const
|
||||
void DescribeTablesRequest::setInstanceId(long instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", std::to_string(instanceId));
|
||||
setParameter("InstanceId", std::to_string(instanceId));
|
||||
}
|
||||
|
||||
std::string DescribeTablesRequest::getName()const
|
||||
@@ -165,7 +189,7 @@ std::string DescribeTablesRequest::getName()const
|
||||
void DescribeTablesRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
long DescribeTablesRequest::getRuleId()const
|
||||
@@ -176,6 +200,6 @@ long DescribeTablesRequest::getRuleId()const
|
||||
void DescribeTablesRequest::setRuleId(long ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setCoreParameter("RuleId", std::to_string(ruleId));
|
||||
setParameter("RuleId", std::to_string(ruleId));
|
||||
}
|
||||
|
||||
|
||||
@@ -71,6 +71,14 @@ void DescribeTablesResult::parse(const std::string &payload)
|
||||
itemsObject.sensitiveRatio = valueItemsTable["SensitiveRatio"].asString();
|
||||
if(!valueItemsTable["InstanceId"].isNull())
|
||||
itemsObject.instanceId = std::stol(valueItemsTable["InstanceId"].asString());
|
||||
if(!valueItemsTable["S2Count"].isNull())
|
||||
itemsObject.s2Count = std::stoi(valueItemsTable["S2Count"].asString());
|
||||
if(!valueItemsTable["S3Count"].isNull())
|
||||
itemsObject.s3Count = std::stoi(valueItemsTable["S3Count"].asString());
|
||||
if(!valueItemsTable["TotalRows"].isNull())
|
||||
itemsObject.totalRows = std::stoi(valueItemsTable["TotalRows"].asString());
|
||||
if(!valueItemsTable["LastScanTime"].isNull())
|
||||
itemsObject.lastScanTime = std::stol(valueItemsTable["LastScanTime"].asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
|
||||
84
sddp/src/model/DescribeUseFlowRequest.cc
Normal file
84
sddp/src/model/DescribeUseFlowRequest.cc
Normal 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/sddp/model/DescribeUseFlowRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::DescribeUseFlowRequest;
|
||||
|
||||
DescribeUseFlowRequest::DescribeUseFlowRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "DescribeUseFlow")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeUseFlowRequest::~DescribeUseFlowRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeUseFlowRequest::getDateType()const
|
||||
{
|
||||
return dateType_;
|
||||
}
|
||||
|
||||
void DescribeUseFlowRequest::setDateType(const std::string& dateType)
|
||||
{
|
||||
dateType_ = dateType;
|
||||
setParameter("DateType", dateType);
|
||||
}
|
||||
|
||||
int DescribeUseFlowRequest::getFeatureType()const
|
||||
{
|
||||
return featureType_;
|
||||
}
|
||||
|
||||
void DescribeUseFlowRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
std::string DescribeUseFlowRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeUseFlowRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeUseFlowRequest::getDays()const
|
||||
{
|
||||
return days_;
|
||||
}
|
||||
|
||||
void DescribeUseFlowRequest::setDays(int days)
|
||||
{
|
||||
days_ = days;
|
||||
setParameter("Days", std::to_string(days));
|
||||
}
|
||||
|
||||
std::string DescribeUseFlowRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeUseFlowRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
60
sddp/src/model/DescribeUseFlowResult.cc
Normal file
60
sddp/src/model/DescribeUseFlowResult.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/DescribeUseFlowResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
DescribeUseFlowResult::DescribeUseFlowResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeUseFlowResult::DescribeUseFlowResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeUseFlowResult::~DescribeUseFlowResult()
|
||||
{}
|
||||
|
||||
void DescribeUseFlowResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto useFlowNode = value["UseFlow"];
|
||||
if(!useFlowNode["TableNum"].isNull())
|
||||
useFlow_.tableNum = std::stol(useFlowNode["TableNum"].asString());
|
||||
if(!useFlowNode["OssSize"].isNull())
|
||||
useFlow_.ossSize = std::stol(useFlowNode["OssSize"].asString());
|
||||
if(!useFlowNode["DataMaskCells"].isNull())
|
||||
useFlow_.dataMaskCells = std::stol(useFlowNode["DataMaskCells"].asString());
|
||||
if(!useFlowNode["SddpCredits"].isNull())
|
||||
useFlow_.sddpCredits = std::stol(useFlowNode["SddpCredits"].asString());
|
||||
if(!useFlowNode["SaleFlowCountType"].isNull())
|
||||
useFlow_.saleFlowCountType = std::stoi(useFlowNode["SaleFlowCountType"].asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeUseFlowResult::UseFlow DescribeUseFlowResult::getUseFlow()const
|
||||
{
|
||||
return useFlow_;
|
||||
}
|
||||
|
||||
62
sddp/src/model/ExecDatamaskRequest.cc
Normal file
62
sddp/src/model/ExecDatamaskRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/sddp/model/ExecDatamaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ExecDatamaskRequest;
|
||||
|
||||
ExecDatamaskRequest::ExecDatamaskRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ExecDatamask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ExecDatamaskRequest::~ExecDatamaskRequest()
|
||||
{}
|
||||
|
||||
std::string ExecDatamaskRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void ExecDatamaskRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long ExecDatamaskRequest::getTemplateId()const
|
||||
{
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void ExecDatamaskRequest::setTemplateId(long templateId)
|
||||
{
|
||||
templateId_ = templateId;
|
||||
setParameter("TemplateId", std::to_string(templateId));
|
||||
}
|
||||
|
||||
std::string ExecDatamaskRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ExecDatamaskRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
51
sddp/src/model/ExecDatamaskResult.cc
Normal file
51
sddp/src/model/ExecDatamaskResult.cc
Normal 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/sddp/model/ExecDatamaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ExecDatamaskResult::ExecDatamaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ExecDatamaskResult::ExecDatamaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ExecDatamaskResult::~ExecDatamaskResult()
|
||||
{}
|
||||
|
||||
void ExecDatamaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ExecDatamaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
73
sddp/src/model/ManualTriggerMaskingProcessRequest.cc
Normal file
73
sddp/src/model/ManualTriggerMaskingProcessRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sddp/model/ManualTriggerMaskingProcessRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ManualTriggerMaskingProcessRequest;
|
||||
|
||||
ManualTriggerMaskingProcessRequest::ManualTriggerMaskingProcessRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ManualTriggerMaskingProcess")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ManualTriggerMaskingProcessRequest::~ManualTriggerMaskingProcessRequest()
|
||||
{}
|
||||
|
||||
int ManualTriggerMaskingProcessRequest::getFeatureType()const
|
||||
{
|
||||
return featureType_;
|
||||
}
|
||||
|
||||
void ManualTriggerMaskingProcessRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
std::string ManualTriggerMaskingProcessRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ManualTriggerMaskingProcessRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
long ManualTriggerMaskingProcessRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void ManualTriggerMaskingProcessRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string ManualTriggerMaskingProcessRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void ManualTriggerMaskingProcessRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
44
sddp/src/model/ManualTriggerMaskingProcessResult.cc
Normal file
44
sddp/src/model/ManualTriggerMaskingProcessResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/sddp/model/ManualTriggerMaskingProcessResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ManualTriggerMaskingProcessResult::ManualTriggerMaskingProcessResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ManualTriggerMaskingProcessResult::ManualTriggerMaskingProcessResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ManualTriggerMaskingProcessResult::~ManualTriggerMaskingProcessResult()
|
||||
{}
|
||||
|
||||
void ManualTriggerMaskingProcessResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -20,11 +20,24 @@ using AlibabaCloud::Sddp::Model::ModifyDataLimitRequest;
|
||||
|
||||
ModifyDataLimitRequest::ModifyDataLimitRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyDataLimit")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDataLimitRequest::~ModifyDataLimitRequest()
|
||||
{}
|
||||
|
||||
bool ModifyDataLimitRequest::getModifyPassword()const
|
||||
{
|
||||
return modifyPassword_;
|
||||
}
|
||||
|
||||
void ModifyDataLimitRequest::setModifyPassword(bool modifyPassword)
|
||||
{
|
||||
modifyPassword_ = modifyPassword;
|
||||
setParameter("ModifyPassword", modifyPassword ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyDataLimitRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
@@ -33,7 +46,7 @@ std::string ModifyDataLimitRequest::getPassword()const
|
||||
void ModifyDataLimitRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setCoreParameter("Password", password);
|
||||
setParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string ModifyDataLimitRequest::getSourceIp()const
|
||||
@@ -44,7 +57,7 @@ std::string ModifyDataLimitRequest::getSourceIp()const
|
||||
void ModifyDataLimitRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
long ModifyDataLimitRequest::getId()const
|
||||
@@ -55,7 +68,7 @@ long ModifyDataLimitRequest::getId()const
|
||||
void ModifyDataLimitRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", std::to_string(id));
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string ModifyDataLimitRequest::getLang()const
|
||||
@@ -66,7 +79,7 @@ std::string ModifyDataLimitRequest::getLang()const
|
||||
void ModifyDataLimitRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string ModifyDataLimitRequest::getServiceRegionId()const
|
||||
@@ -77,7 +90,51 @@ std::string ModifyDataLimitRequest::getServiceRegionId()const
|
||||
void ModifyDataLimitRequest::setServiceRegionId(const std::string& serviceRegionId)
|
||||
{
|
||||
serviceRegionId_ = serviceRegionId;
|
||||
setCoreParameter("ServiceRegionId", serviceRegionId);
|
||||
setParameter("ServiceRegionId", serviceRegionId);
|
||||
}
|
||||
|
||||
std::string ModifyDataLimitRequest::getEngineType()const
|
||||
{
|
||||
return engineType_;
|
||||
}
|
||||
|
||||
void ModifyDataLimitRequest::setEngineType(const std::string& engineType)
|
||||
{
|
||||
engineType_ = engineType;
|
||||
setParameter("EngineType", engineType);
|
||||
}
|
||||
|
||||
int ModifyDataLimitRequest::getAuditStatus()const
|
||||
{
|
||||
return auditStatus_;
|
||||
}
|
||||
|
||||
void ModifyDataLimitRequest::setAuditStatus(int auditStatus)
|
||||
{
|
||||
auditStatus_ = auditStatus;
|
||||
setParameter("AuditStatus", std::to_string(auditStatus));
|
||||
}
|
||||
|
||||
int ModifyDataLimitRequest::getAutoScan()const
|
||||
{
|
||||
return autoScan_;
|
||||
}
|
||||
|
||||
void ModifyDataLimitRequest::setAutoScan(int autoScan)
|
||||
{
|
||||
autoScan_ = autoScan;
|
||||
setParameter("AutoScan", std::to_string(autoScan));
|
||||
}
|
||||
|
||||
int ModifyDataLimitRequest::getLogStoreDay()const
|
||||
{
|
||||
return logStoreDay_;
|
||||
}
|
||||
|
||||
void ModifyDataLimitRequest::setLogStoreDay(int logStoreDay)
|
||||
{
|
||||
logStoreDay_ = logStoreDay;
|
||||
setParameter("LogStoreDay", std::to_string(logStoreDay));
|
||||
}
|
||||
|
||||
int ModifyDataLimitRequest::getResourceType()const
|
||||
@@ -88,7 +145,7 @@ int ModifyDataLimitRequest::getResourceType()const
|
||||
void ModifyDataLimitRequest::setResourceType(int resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setCoreParameter("ResourceType", std::to_string(resourceType));
|
||||
setParameter("ResourceType", std::to_string(resourceType));
|
||||
}
|
||||
|
||||
std::string ModifyDataLimitRequest::getConnector()const
|
||||
@@ -99,7 +156,18 @@ std::string ModifyDataLimitRequest::getConnector()const
|
||||
void ModifyDataLimitRequest::setConnector(const std::string& connector)
|
||||
{
|
||||
connector_ = connector;
|
||||
setCoreParameter("Connector", connector);
|
||||
setParameter("Connector", connector);
|
||||
}
|
||||
|
||||
int ModifyDataLimitRequest::getPort()const
|
||||
{
|
||||
return port_;
|
||||
}
|
||||
|
||||
void ModifyDataLimitRequest::setPort(int port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", std::to_string(port));
|
||||
}
|
||||
|
||||
std::string ModifyDataLimitRequest::getUserName()const
|
||||
@@ -110,6 +178,6 @@ std::string ModifyDataLimitRequest::getUserName()const
|
||||
void ModifyDataLimitRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setCoreParameter("UserName", userName);
|
||||
setParameter("UserName", userName);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::ModifyDefaultLevelRequest;
|
||||
|
||||
ModifyDefaultLevelRequest::ModifyDefaultLevelRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyDefaultLevel")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDefaultLevelRequest::~ModifyDefaultLevelRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int ModifyDefaultLevelRequest::getFeatureType()const
|
||||
void ModifyDefaultLevelRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
long ModifyDefaultLevelRequest::getDefaultId()const
|
||||
@@ -44,7 +46,7 @@ long ModifyDefaultLevelRequest::getDefaultId()const
|
||||
void ModifyDefaultLevelRequest::setDefaultId(long defaultId)
|
||||
{
|
||||
defaultId_ = defaultId;
|
||||
setCoreParameter("DefaultId", std::to_string(defaultId));
|
||||
setParameter("DefaultId", std::to_string(defaultId));
|
||||
}
|
||||
|
||||
std::string ModifyDefaultLevelRequest::getSourceIp()const
|
||||
@@ -55,7 +57,7 @@ std::string ModifyDefaultLevelRequest::getSourceIp()const
|
||||
void ModifyDefaultLevelRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyDefaultLevelRequest::getLang()const
|
||||
@@ -66,7 +68,7 @@ std::string ModifyDefaultLevelRequest::getLang()const
|
||||
void ModifyDefaultLevelRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string ModifyDefaultLevelRequest::getSensitiveIds()const
|
||||
@@ -77,6 +79,6 @@ std::string ModifyDefaultLevelRequest::getSensitiveIds()const
|
||||
void ModifyDefaultLevelRequest::setSensitiveIds(const std::string& sensitiveIds)
|
||||
{
|
||||
sensitiveIds_ = sensitiveIds;
|
||||
setCoreParameter("SensitiveIds", sensitiveIds);
|
||||
setParameter("SensitiveIds", sensitiveIds);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::ModifyEventStatusRequest;
|
||||
|
||||
ModifyEventStatusRequest::ModifyEventStatusRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyEventStatus")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyEventStatusRequest::~ModifyEventStatusRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ bool ModifyEventStatusRequest::getBacked()const
|
||||
void ModifyEventStatusRequest::setBacked(bool backed)
|
||||
{
|
||||
backed_ = backed;
|
||||
setCoreParameter("Backed", backed ? "true" : "false");
|
||||
setParameter("Backed", backed ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyEventStatusRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string ModifyEventStatusRequest::getSourceIp()const
|
||||
void ModifyEventStatusRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyEventStatusRequest::getDealReason()const
|
||||
@@ -55,7 +57,7 @@ std::string ModifyEventStatusRequest::getDealReason()const
|
||||
void ModifyEventStatusRequest::setDealReason(const std::string& dealReason)
|
||||
{
|
||||
dealReason_ = dealReason;
|
||||
setCoreParameter("DealReason", dealReason);
|
||||
setParameter("DealReason", dealReason);
|
||||
}
|
||||
|
||||
long ModifyEventStatusRequest::getId()const
|
||||
@@ -66,7 +68,7 @@ long ModifyEventStatusRequest::getId()const
|
||||
void ModifyEventStatusRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", std::to_string(id));
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string ModifyEventStatusRequest::getLang()const
|
||||
@@ -77,7 +79,7 @@ std::string ModifyEventStatusRequest::getLang()const
|
||||
void ModifyEventStatusRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int ModifyEventStatusRequest::getFeatureType()const
|
||||
@@ -88,7 +90,7 @@ int ModifyEventStatusRequest::getFeatureType()const
|
||||
void ModifyEventStatusRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
int ModifyEventStatusRequest::getStatus()const
|
||||
@@ -99,6 +101,6 @@ int ModifyEventStatusRequest::getStatus()const
|
||||
void ModifyEventStatusRequest::setStatus(int status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", std::to_string(status));
|
||||
setParameter("Status", std::to_string(status));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::ModifyEventTypeStatusRequest;
|
||||
|
||||
ModifyEventTypeStatusRequest::ModifyEventTypeStatusRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyEventTypeStatus")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyEventTypeStatusRequest::~ModifyEventTypeStatusRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string ModifyEventTypeStatusRequest::getSubTypeIds()const
|
||||
void ModifyEventTypeStatusRequest::setSubTypeIds(const std::string& subTypeIds)
|
||||
{
|
||||
subTypeIds_ = subTypeIds;
|
||||
setCoreParameter("SubTypeIds", subTypeIds);
|
||||
setParameter("SubTypeIds", subTypeIds);
|
||||
}
|
||||
|
||||
std::string ModifyEventTypeStatusRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string ModifyEventTypeStatusRequest::getSourceIp()const
|
||||
void ModifyEventTypeStatusRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyEventTypeStatusRequest::getLang()const
|
||||
@@ -55,6 +57,6 @@ std::string ModifyEventTypeStatusRequest::getLang()const
|
||||
void ModifyEventTypeStatusRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,11 +20,46 @@ using AlibabaCloud::Sddp::Model::ModifyRuleRequest;
|
||||
|
||||
ModifyRuleRequest::ModifyRuleRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyRule")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyRuleRequest::~ModifyRuleRequest()
|
||||
{}
|
||||
|
||||
int ModifyRuleRequest::getWarnLevel()const
|
||||
{
|
||||
return warnLevel_;
|
||||
}
|
||||
|
||||
void ModifyRuleRequest::setWarnLevel(int warnLevel)
|
||||
{
|
||||
warnLevel_ = warnLevel;
|
||||
setParameter("WarnLevel", std::to_string(warnLevel));
|
||||
}
|
||||
|
||||
std::string ModifyRuleRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void ModifyRuleRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
long ModifyRuleRequest::getProductId()const
|
||||
{
|
||||
return productId_;
|
||||
}
|
||||
|
||||
void ModifyRuleRequest::setProductId(long productId)
|
||||
{
|
||||
productId_ = productId;
|
||||
setParameter("ProductId", std::to_string(productId));
|
||||
}
|
||||
|
||||
long ModifyRuleRequest::getRiskLevelId()const
|
||||
{
|
||||
return riskLevelId_;
|
||||
@@ -33,7 +68,7 @@ long ModifyRuleRequest::getRiskLevelId()const
|
||||
void ModifyRuleRequest::setRiskLevelId(long riskLevelId)
|
||||
{
|
||||
riskLevelId_ = riskLevelId;
|
||||
setCoreParameter("RiskLevelId", std::to_string(riskLevelId));
|
||||
setParameter("RiskLevelId", std::to_string(riskLevelId));
|
||||
}
|
||||
|
||||
std::string ModifyRuleRequest::getContent()const
|
||||
@@ -44,7 +79,7 @@ std::string ModifyRuleRequest::getContent()const
|
||||
void ModifyRuleRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setCoreParameter("Content", content);
|
||||
setParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string ModifyRuleRequest::getSourceIp()const
|
||||
@@ -55,7 +90,7 @@ std::string ModifyRuleRequest::getSourceIp()const
|
||||
void ModifyRuleRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
long ModifyRuleRequest::getId()const
|
||||
@@ -66,7 +101,7 @@ long ModifyRuleRequest::getId()const
|
||||
void ModifyRuleRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", std::to_string(id));
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string ModifyRuleRequest::getLang()const
|
||||
@@ -77,7 +112,7 @@ std::string ModifyRuleRequest::getLang()const
|
||||
void ModifyRuleRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int ModifyRuleRequest::getFeatureType()const
|
||||
@@ -88,7 +123,29 @@ int ModifyRuleRequest::getFeatureType()const
|
||||
void ModifyRuleRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
int ModifyRuleRequest::getRuleType()const
|
||||
{
|
||||
return ruleType_;
|
||||
}
|
||||
|
||||
void ModifyRuleRequest::setRuleType(int ruleType)
|
||||
{
|
||||
ruleType_ = ruleType;
|
||||
setParameter("RuleType", std::to_string(ruleType));
|
||||
}
|
||||
|
||||
std::string ModifyRuleRequest::getStatExpress()const
|
||||
{
|
||||
return statExpress_;
|
||||
}
|
||||
|
||||
void ModifyRuleRequest::setStatExpress(const std::string& statExpress)
|
||||
{
|
||||
statExpress_ = statExpress;
|
||||
setParameter("StatExpress", statExpress);
|
||||
}
|
||||
|
||||
int ModifyRuleRequest::getCustomType()const
|
||||
@@ -99,7 +156,7 @@ int ModifyRuleRequest::getCustomType()const
|
||||
void ModifyRuleRequest::setCustomType(int customType)
|
||||
{
|
||||
customType_ = customType;
|
||||
setCoreParameter("CustomType", std::to_string(customType));
|
||||
setParameter("CustomType", std::to_string(customType));
|
||||
}
|
||||
|
||||
std::string ModifyRuleRequest::getName()const
|
||||
@@ -110,7 +167,7 @@ std::string ModifyRuleRequest::getName()const
|
||||
void ModifyRuleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int ModifyRuleRequest::getCategory()const
|
||||
@@ -121,6 +178,6 @@ int ModifyRuleRequest::getCategory()const
|
||||
void ModifyRuleRequest::setCategory(int category)
|
||||
{
|
||||
category_ = category;
|
||||
setCoreParameter("Category", std::to_string(category));
|
||||
setParameter("Category", std::to_string(category));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sddp::Model::ModifyRuleStatusRequest;
|
||||
|
||||
ModifyRuleStatusRequest::ModifyRuleStatusRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifyRuleStatus")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyRuleStatusRequest::~ModifyRuleStatusRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int ModifyRuleStatusRequest::getFeatureType()const
|
||||
void ModifyRuleStatusRequest::setFeatureType(int featureType)
|
||||
{
|
||||
featureType_ = featureType;
|
||||
setCoreParameter("FeatureType", std::to_string(featureType));
|
||||
setParameter("FeatureType", std::to_string(featureType));
|
||||
}
|
||||
|
||||
std::string ModifyRuleStatusRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string ModifyRuleStatusRequest::getSourceIp()const
|
||||
void ModifyRuleStatusRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
long ModifyRuleStatusRequest::getId()const
|
||||
@@ -55,7 +57,7 @@ long ModifyRuleStatusRequest::getId()const
|
||||
void ModifyRuleStatusRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", std::to_string(id));
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string ModifyRuleStatusRequest::getLang()const
|
||||
@@ -66,7 +68,7 @@ std::string ModifyRuleStatusRequest::getLang()const
|
||||
void ModifyRuleStatusRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int ModifyRuleStatusRequest::getStatus()const
|
||||
@@ -77,6 +79,6 @@ int ModifyRuleStatusRequest::getStatus()const
|
||||
void ModifyRuleStatusRequest::setStatus(int status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", std::to_string(status));
|
||||
setParameter("Status", std::to_string(status));
|
||||
}
|
||||
|
||||
|
||||
62
sddp/src/model/ModifySaleFlowCountTypeRequest.cc
Normal file
62
sddp/src/model/ModifySaleFlowCountTypeRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/sddp/model/ModifySaleFlowCountTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Sddp::Model::ModifySaleFlowCountTypeRequest;
|
||||
|
||||
ModifySaleFlowCountTypeRequest::ModifySaleFlowCountTypeRequest() :
|
||||
RpcServiceRequest("sddp", "2019-01-03", "ModifySaleFlowCountType")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifySaleFlowCountTypeRequest::~ModifySaleFlowCountTypeRequest()
|
||||
{}
|
||||
|
||||
int ModifySaleFlowCountTypeRequest::getSaleFlowCountType()const
|
||||
{
|
||||
return saleFlowCountType_;
|
||||
}
|
||||
|
||||
void ModifySaleFlowCountTypeRequest::setSaleFlowCountType(int saleFlowCountType)
|
||||
{
|
||||
saleFlowCountType_ = saleFlowCountType;
|
||||
setParameter("SaleFlowCountType", std::to_string(saleFlowCountType));
|
||||
}
|
||||
|
||||
std::string ModifySaleFlowCountTypeRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifySaleFlowCountTypeRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifySaleFlowCountTypeRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void ModifySaleFlowCountTypeRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
44
sddp/src/model/ModifySaleFlowCountTypeResult.cc
Normal file
44
sddp/src/model/ModifySaleFlowCountTypeResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/sddp/model/ModifySaleFlowCountTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sddp;
|
||||
using namespace AlibabaCloud::Sddp::Model;
|
||||
|
||||
ModifySaleFlowCountTypeResult::ModifySaleFlowCountTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifySaleFlowCountTypeResult::ModifySaleFlowCountTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifySaleFlowCountTypeResult::~ModifySaleFlowCountTypeResult()
|
||||
{}
|
||||
|
||||
void ModifySaleFlowCountTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user