Support rd sdk.

This commit is contained in:
sdk-team
2023-07-20 10:26:07 +00:00
parent ba9b236957
commit 0efc4956ec
122 changed files with 5534 additions and 38 deletions

View File

@@ -195,6 +195,42 @@ SasClient::AddClientUserDefineRuleOutcomeCallable SasClient::addClientUserDefine
return task->get_future();
}
SasClient::AddImageVulWhiteListOutcome SasClient::addImageVulWhiteList(const AddImageVulWhiteListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddImageVulWhiteListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddImageVulWhiteListOutcome(AddImageVulWhiteListResult(outcome.result()));
else
return AddImageVulWhiteListOutcome(outcome.error());
}
void SasClient::addImageVulWhiteListAsync(const AddImageVulWhiteListRequest& request, const AddImageVulWhiteListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addImageVulWhiteList(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::AddImageVulWhiteListOutcomeCallable SasClient::addImageVulWhiteListCallable(const AddImageVulWhiteListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddImageVulWhiteListOutcome()>>(
[this, request]()
{
return this->addImageVulWhiteList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::AddInstallCodeOutcome SasClient::addInstallCode(const AddInstallCodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -519,6 +555,42 @@ SasClient::CancelOnceTaskOutcomeCallable SasClient::cancelOnceTaskCallable(const
return task->get_future();
}
SasClient::ChangeAssetRefreshTaskConfigOutcome SasClient::changeAssetRefreshTaskConfig(const ChangeAssetRefreshTaskConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ChangeAssetRefreshTaskConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ChangeAssetRefreshTaskConfigOutcome(ChangeAssetRefreshTaskConfigResult(outcome.result()));
else
return ChangeAssetRefreshTaskConfigOutcome(outcome.error());
}
void SasClient::changeAssetRefreshTaskConfigAsync(const ChangeAssetRefreshTaskConfigRequest& request, const ChangeAssetRefreshTaskConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, changeAssetRefreshTaskConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::ChangeAssetRefreshTaskConfigOutcomeCallable SasClient::changeAssetRefreshTaskConfigCallable(const ChangeAssetRefreshTaskConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ChangeAssetRefreshTaskConfigOutcome()>>(
[this, request]()
{
return this->changeAssetRefreshTaskConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::ChangeCheckConfigOutcome SasClient::changeCheckConfig(const ChangeCheckConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -735,6 +807,42 @@ SasClient::ConfirmVirusEventsOutcomeCallable SasClient::confirmVirusEventsCallab
return task->get_future();
}
SasClient::CreateAgentlessScanTaskOutcome SasClient::createAgentlessScanTask(const CreateAgentlessScanTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateAgentlessScanTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateAgentlessScanTaskOutcome(CreateAgentlessScanTaskResult(outcome.result()));
else
return CreateAgentlessScanTaskOutcome(outcome.error());
}
void SasClient::createAgentlessScanTaskAsync(const CreateAgentlessScanTaskRequest& request, const CreateAgentlessScanTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createAgentlessScanTask(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::CreateAgentlessScanTaskOutcomeCallable SasClient::createAgentlessScanTaskCallable(const CreateAgentlessScanTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateAgentlessScanTaskOutcome()>>(
[this, request]()
{
return this->createAgentlessScanTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::CreateAntiBruteForceRuleOutcome SasClient::createAntiBruteForceRule(const CreateAntiBruteForceRuleRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1419,6 +1527,42 @@ SasClient::CreateServiceLinkedRoleOutcomeCallable SasClient::createServiceLinked
return task->get_future();
}
SasClient::CreateServiceTrailOutcome SasClient::createServiceTrail(const CreateServiceTrailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateServiceTrailOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateServiceTrailOutcome(CreateServiceTrailResult(outcome.result()));
else
return CreateServiceTrailOutcome(outcome.error());
}
void SasClient::createServiceTrailAsync(const CreateServiceTrailRequest& request, const CreateServiceTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createServiceTrail(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::CreateServiceTrailOutcomeCallable SasClient::createServiceTrailCallable(const CreateServiceTrailRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateServiceTrailOutcome()>>(
[this, request]()
{
return this->createServiceTrail(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::CreateSimilarSecurityEventsQueryTaskOutcome SasClient::createSimilarSecurityEventsQueryTask(const CreateSimilarSecurityEventsQueryTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1707,6 +1851,42 @@ SasClient::DeleteBackupPolicyMachineOutcomeCallable SasClient::deleteBackupPolic
return task->get_future();
}
SasClient::DeleteBinarySecurityPolicyOutcome SasClient::deleteBinarySecurityPolicy(const DeleteBinarySecurityPolicyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteBinarySecurityPolicyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteBinarySecurityPolicyOutcome(DeleteBinarySecurityPolicyResult(outcome.result()));
else
return DeleteBinarySecurityPolicyOutcome(outcome.error());
}
void SasClient::deleteBinarySecurityPolicyAsync(const DeleteBinarySecurityPolicyRequest& request, const DeleteBinarySecurityPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteBinarySecurityPolicy(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DeleteBinarySecurityPolicyOutcomeCallable SasClient::deleteBinarySecurityPolicyCallable(const DeleteBinarySecurityPolicyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteBinarySecurityPolicyOutcome()>>(
[this, request]()
{
return this->deleteBinarySecurityPolicy(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DeleteClientUserDefineRuleOutcome SasClient::deleteClientUserDefineRule(const DeleteClientUserDefineRuleRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2211,6 +2391,42 @@ SasClient::DeleteSecurityEventMarkMissListOutcomeCallable SasClient::deleteSecur
return task->get_future();
}
SasClient::DeleteServiceTrailOutcome SasClient::deleteServiceTrail(const DeleteServiceTrailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteServiceTrailOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteServiceTrailOutcome(DeleteServiceTrailResult(outcome.result()));
else
return DeleteServiceTrailOutcome(outcome.error());
}
void SasClient::deleteServiceTrailAsync(const DeleteServiceTrailRequest& request, const DeleteServiceTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteServiceTrail(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DeleteServiceTrailOutcomeCallable SasClient::deleteServiceTrailCallable(const DeleteServiceTrailRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteServiceTrailOutcome()>>(
[this, request]()
{
return this->deleteServiceTrail(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DeleteStrategyOutcome SasClient::deleteStrategy(const DeleteStrategyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6207,6 +6423,42 @@ SasClient::DescribeImageVulListOutcomeCallable SasClient::describeImageVulListCa
return task->get_future();
}
SasClient::DescribeImageVulWhiteListOutcome SasClient::describeImageVulWhiteList(const DescribeImageVulWhiteListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeImageVulWhiteListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeImageVulWhiteListOutcome(DescribeImageVulWhiteListResult(outcome.result()));
else
return DescribeImageVulWhiteListOutcome(outcome.error());
}
void SasClient::describeImageVulWhiteListAsync(const DescribeImageVulWhiteListRequest& request, const DescribeImageVulWhiteListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeImageVulWhiteList(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DescribeImageVulWhiteListOutcomeCallable SasClient::describeImageVulWhiteListCallable(const DescribeImageVulWhiteListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeImageVulWhiteListOutcome()>>(
[this, request]()
{
return this->describeImageVulWhiteList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DescribeInstallCaptchaOutcome SasClient::describeInstallCaptcha(const DescribeInstallCaptchaRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6747,6 +6999,42 @@ SasClient::DescribeModuleConfigOutcomeCallable SasClient::describeModuleConfigCa
return task->get_future();
}
SasClient::DescribeMonitorAccountsOutcome SasClient::describeMonitorAccounts(const DescribeMonitorAccountsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeMonitorAccountsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeMonitorAccountsOutcome(DescribeMonitorAccountsResult(outcome.result()));
else
return DescribeMonitorAccountsOutcome(outcome.error());
}
void SasClient::describeMonitorAccountsAsync(const DescribeMonitorAccountsRequest& request, const DescribeMonitorAccountsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeMonitorAccounts(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DescribeMonitorAccountsOutcomeCallable SasClient::describeMonitorAccountsCallable(const DescribeMonitorAccountsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeMonitorAccountsOutcome()>>(
[this, request]()
{
return this->describeMonitorAccounts(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DescribeNoticeConfigOutcome SasClient::describeNoticeConfig(const DescribeNoticeConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -8079,6 +8367,42 @@ SasClient::DescribeSecurityCheckScheduleConfigOutcomeCallable SasClient::describ
return task->get_future();
}
SasClient::DescribeSecurityEventMarkMissListOutcome SasClient::describeSecurityEventMarkMissList(const DescribeSecurityEventMarkMissListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeSecurityEventMarkMissListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeSecurityEventMarkMissListOutcome(DescribeSecurityEventMarkMissListResult(outcome.result()));
else
return DescribeSecurityEventMarkMissListOutcome(outcome.error());
}
void SasClient::describeSecurityEventMarkMissListAsync(const DescribeSecurityEventMarkMissListRequest& request, const DescribeSecurityEventMarkMissListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeSecurityEventMarkMissList(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DescribeSecurityEventMarkMissListOutcomeCallable SasClient::describeSecurityEventMarkMissListCallable(const DescribeSecurityEventMarkMissListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeSecurityEventMarkMissListOutcome()>>(
[this, request]()
{
return this->describeSecurityEventMarkMissList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DescribeSecurityEventOperationStatusOutcome SasClient::describeSecurityEventOperationStatus(const DescribeSecurityEventOperationStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -10815,6 +11139,42 @@ SasClient::GenerateOnceTaskOutcomeCallable SasClient::generateOnceTaskCallable(c
return task->get_future();
}
SasClient::GetAgentlessTaskCountOutcome SasClient::getAgentlessTaskCount(const GetAgentlessTaskCountRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetAgentlessTaskCountOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetAgentlessTaskCountOutcome(GetAgentlessTaskCountResult(outcome.result()));
else
return GetAgentlessTaskCountOutcome(outcome.error());
}
void SasClient::getAgentlessTaskCountAsync(const GetAgentlessTaskCountRequest& request, const GetAgentlessTaskCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getAgentlessTaskCount(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::GetAgentlessTaskCountOutcomeCallable SasClient::getAgentlessTaskCountCallable(const GetAgentlessTaskCountRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetAgentlessTaskCountOutcome()>>(
[this, request]()
{
return this->getAgentlessTaskCount(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::GetAlarmMachineCountOutcome SasClient::getAlarmMachineCount(const GetAlarmMachineCountRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -11247,6 +11607,42 @@ SasClient::GetCheckSummaryOutcomeCallable SasClient::getCheckSummaryCallable(con
return task->get_future();
}
SasClient::GetClientRatioStatisticOutcome SasClient::getClientRatioStatistic(const GetClientRatioStatisticRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetClientRatioStatisticOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetClientRatioStatisticOutcome(GetClientRatioStatisticResult(outcome.result()));
else
return GetClientRatioStatisticOutcome(outcome.error());
}
void SasClient::getClientRatioStatisticAsync(const GetClientRatioStatisticRequest& request, const GetClientRatioStatisticAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getClientRatioStatistic(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::GetClientRatioStatisticOutcomeCallable SasClient::getClientRatioStatisticCallable(const GetClientRatioStatisticRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetClientRatioStatisticOutcome()>>(
[this, request]()
{
return this->getClientRatioStatistic(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::GetClientUserDefineRuleOutcome SasClient::getClientUserDefineRule(const GetClientUserDefineRuleRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -12003,6 +12399,42 @@ SasClient::GetRulesCountOutcomeCallable SasClient::getRulesCountCallable(const G
return task->get_future();
}
SasClient::GetServiceTrailOutcome SasClient::getServiceTrail(const GetServiceTrailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetServiceTrailOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetServiceTrailOutcome(GetServiceTrailResult(outcome.result()));
else
return GetServiceTrailOutcome(outcome.error());
}
void SasClient::getServiceTrailAsync(const GetServiceTrailRequest& request, const GetServiceTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getServiceTrail(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::GetServiceTrailOutcomeCallable SasClient::getServiceTrailCallable(const GetServiceTrailRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetServiceTrailOutcome()>>(
[this, request]()
{
return this->getServiceTrail(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::GetSuspiciousStatisticsOutcome SasClient::getSuspiciousStatistics(const GetSuspiciousStatisticsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -12435,6 +12867,186 @@ SasClient::JoinWebLockProcessWhiteListOutcomeCallable SasClient::joinWebLockProc
return task->get_future();
}
SasClient::ListAgentlessRegionOutcome SasClient::listAgentlessRegion(const ListAgentlessRegionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListAgentlessRegionOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListAgentlessRegionOutcome(ListAgentlessRegionResult(outcome.result()));
else
return ListAgentlessRegionOutcome(outcome.error());
}
void SasClient::listAgentlessRegionAsync(const ListAgentlessRegionRequest& request, const ListAgentlessRegionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listAgentlessRegion(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::ListAgentlessRegionOutcomeCallable SasClient::listAgentlessRegionCallable(const ListAgentlessRegionRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListAgentlessRegionOutcome()>>(
[this, request]()
{
return this->listAgentlessRegion(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::ListAgentlessRelateMaliciousOutcome SasClient::listAgentlessRelateMalicious(const ListAgentlessRelateMaliciousRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListAgentlessRelateMaliciousOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListAgentlessRelateMaliciousOutcome(ListAgentlessRelateMaliciousResult(outcome.result()));
else
return ListAgentlessRelateMaliciousOutcome(outcome.error());
}
void SasClient::listAgentlessRelateMaliciousAsync(const ListAgentlessRelateMaliciousRequest& request, const ListAgentlessRelateMaliciousAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listAgentlessRelateMalicious(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::ListAgentlessRelateMaliciousOutcomeCallable SasClient::listAgentlessRelateMaliciousCallable(const ListAgentlessRelateMaliciousRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListAgentlessRelateMaliciousOutcome()>>(
[this, request]()
{
return this->listAgentlessRelateMalicious(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::ListAgentlessRiskUuidOutcome SasClient::listAgentlessRiskUuid(const ListAgentlessRiskUuidRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListAgentlessRiskUuidOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListAgentlessRiskUuidOutcome(ListAgentlessRiskUuidResult(outcome.result()));
else
return ListAgentlessRiskUuidOutcome(outcome.error());
}
void SasClient::listAgentlessRiskUuidAsync(const ListAgentlessRiskUuidRequest& request, const ListAgentlessRiskUuidAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listAgentlessRiskUuid(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::ListAgentlessRiskUuidOutcomeCallable SasClient::listAgentlessRiskUuidCallable(const ListAgentlessRiskUuidRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListAgentlessRiskUuidOutcome()>>(
[this, request]()
{
return this->listAgentlessRiskUuid(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::ListAgentlessTaskOutcome SasClient::listAgentlessTask(const ListAgentlessTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListAgentlessTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListAgentlessTaskOutcome(ListAgentlessTaskResult(outcome.result()));
else
return ListAgentlessTaskOutcome(outcome.error());
}
void SasClient::listAgentlessTaskAsync(const ListAgentlessTaskRequest& request, const ListAgentlessTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listAgentlessTask(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::ListAgentlessTaskOutcomeCallable SasClient::listAgentlessTaskCallable(const ListAgentlessTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListAgentlessTaskOutcome()>>(
[this, request]()
{
return this->listAgentlessTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::ListAssetRefreshTaskConfigOutcome SasClient::listAssetRefreshTaskConfig(const ListAssetRefreshTaskConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListAssetRefreshTaskConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListAssetRefreshTaskConfigOutcome(ListAssetRefreshTaskConfigResult(outcome.result()));
else
return ListAssetRefreshTaskConfigOutcome(outcome.error());
}
void SasClient::listAssetRefreshTaskConfigAsync(const ListAssetRefreshTaskConfigRequest& request, const ListAssetRefreshTaskConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listAssetRefreshTaskConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::ListAssetRefreshTaskConfigOutcomeCallable SasClient::listAssetRefreshTaskConfigCallable(const ListAssetRefreshTaskConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListAssetRefreshTaskConfigOutcome()>>(
[this, request]()
{
return this->listAssetRefreshTaskConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::ListAssetSelectionSelectedTargetOutcome SasClient::listAssetSelectionSelectedTarget(const ListAssetSelectionSelectedTargetRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/AddImageVulWhiteListRequest.h>
using AlibabaCloud::Sas::Model::AddImageVulWhiteListRequest;
AddImageVulWhiteListRequest::AddImageVulWhiteListRequest()
: RpcServiceRequest("sas", "2018-12-03", "AddImageVulWhiteList") {
setMethod(HttpRequest::Method::Post);
}
AddImageVulWhiteListRequest::~AddImageVulWhiteListRequest() {}
std::string AddImageVulWhiteListRequest::getReason() const {
return reason_;
}
void AddImageVulWhiteListRequest::setReason(const std::string &reason) {
reason_ = reason;
setParameter(std::string("Reason"), reason);
}
std::string AddImageVulWhiteListRequest::getType() const {
return type_;
}
void AddImageVulWhiteListRequest::setType(const std::string &type) {
type_ = type;
setParameter(std::string("Type"), type);
}
std::string AddImageVulWhiteListRequest::getLang() const {
return lang_;
}
void AddImageVulWhiteListRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}
std::string AddImageVulWhiteListRequest::getWhitelist() const {
return whitelist_;
}
void AddImageVulWhiteListRequest::setWhitelist(const std::string &whitelist) {
whitelist_ = whitelist;
setParameter(std::string("Whitelist"), whitelist);
}
std::string AddImageVulWhiteListRequest::getTarget() const {
return target_;
}
void AddImageVulWhiteListRequest::setTarget(const std::string &target) {
target_ = target;
setParameter(std::string("Target"), target);
}

View File

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

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/ChangeAssetRefreshTaskConfigRequest.h>
using AlibabaCloud::Sas::Model::ChangeAssetRefreshTaskConfigRequest;
ChangeAssetRefreshTaskConfigRequest::ChangeAssetRefreshTaskConfigRequest()
: RpcServiceRequest("sas", "2018-12-03", "ChangeAssetRefreshTaskConfig") {
setMethod(HttpRequest::Method::Post);
}
ChangeAssetRefreshTaskConfigRequest::~ChangeAssetRefreshTaskConfigRequest() {}
std::vector<ChangeAssetRefreshTaskConfigRequest::AssetRefreshConfigs> ChangeAssetRefreshTaskConfigRequest::getAssetRefreshConfigs() const {
return assetRefreshConfigs_;
}
void ChangeAssetRefreshTaskConfigRequest::setAssetRefreshConfigs(const std::vector<ChangeAssetRefreshTaskConfigRequest::AssetRefreshConfigs> &assetRefreshConfigs) {
assetRefreshConfigs_ = assetRefreshConfigs;
for(int dep1 = 0; dep1 != assetRefreshConfigs.size(); dep1++) {
auto assetRefreshConfigsObj = assetRefreshConfigs.at(dep1);
std::string assetRefreshConfigsObjStr = std::string("AssetRefreshConfigs") + "." + std::to_string(dep1 + 1);
setParameter(assetRefreshConfigsObjStr + ".Vendor", std::to_string(assetRefreshConfigsObj.vendor));
setParameter(assetRefreshConfigsObjStr + ".SchedulePeriod", std::to_string(assetRefreshConfigsObj.schedulePeriod));
setParameter(assetRefreshConfigsObjStr + ".Status", std::to_string(assetRefreshConfigsObj.status));
}
}
std::string ChangeAssetRefreshTaskConfigRequest::getSourceIp() const {
return sourceIp_;
}
void ChangeAssetRefreshTaskConfigRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string ChangeAssetRefreshTaskConfigRequest::getRegionId() const {
return regionId_;
}
void ChangeAssetRefreshTaskConfigRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

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

View File

@@ -68,6 +68,36 @@ void ChangeCheckConfigRequest::setRegionId(const std::string &regionId) {
setParameter(std::string("RegionId"), regionId);
}
std::vector<ChangeCheckConfigRequest::RemovedCheck> ChangeCheckConfigRequest::getRemovedCheck() const {
return removedCheck_;
}
void ChangeCheckConfigRequest::setRemovedCheck(const std::vector<ChangeCheckConfigRequest::RemovedCheck> &removedCheck) {
removedCheck_ = removedCheck;
for(int dep1 = 0; dep1 != removedCheck.size(); dep1++) {
setParameter(std::string("RemovedCheck") + "." + std::to_string(dep1 + 1) + ".SectionId", std::to_string(removedCheck[dep1].sectionId));
setParameter(std::string("RemovedCheck") + "." + std::to_string(dep1 + 1) + ".CheckId", std::to_string(removedCheck[dep1].checkId));
}
}
bool ChangeCheckConfigRequest::getEnableAddCheck() const {
return enableAddCheck_;
}
void ChangeCheckConfigRequest::setEnableAddCheck(bool enableAddCheck) {
enableAddCheck_ = enableAddCheck;
setParameter(std::string("EnableAddCheck"), enableAddCheck ? "true" : "false");
}
bool ChangeCheckConfigRequest::getEnableAutoCheck() const {
return enableAutoCheck_;
}
void ChangeCheckConfigRequest::setEnableAutoCheck(bool enableAutoCheck) {
enableAutoCheck_ = enableAutoCheck;
setParameter(std::string("EnableAutoCheck"), enableAutoCheck ? "true" : "false");
}
int ChangeCheckConfigRequest::getEndTime() const {
return endTime_;
}
@@ -77,3 +107,15 @@ void ChangeCheckConfigRequest::setEndTime(int endTime) {
setParameter(std::string("EndTime"), std::to_string(endTime));
}
std::vector<ChangeCheckConfigRequest::AddedCheck> ChangeCheckConfigRequest::getAddedCheck() const {
return addedCheck_;
}
void ChangeCheckConfigRequest::setAddedCheck(const std::vector<ChangeCheckConfigRequest::AddedCheck> &addedCheck) {
addedCheck_ = addedCheck;
for(int dep1 = 0; dep1 != addedCheck.size(); dep1++) {
setParameter(std::string("AddedCheck") + "." + std::to_string(dep1 + 1) + ".SectionId", std::to_string(addedCheck[dep1].sectionId));
setParameter(std::string("AddedCheck") + "." + std::to_string(dep1 + 1) + ".CheckId", std::to_string(addedCheck[dep1].checkId));
}
}

View File

@@ -0,0 +1,80 @@
/*
* 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/sas/model/CreateAgentlessScanTaskRequest.h>
using AlibabaCloud::Sas::Model::CreateAgentlessScanTaskRequest;
CreateAgentlessScanTaskRequest::CreateAgentlessScanTaskRequest()
: RpcServiceRequest("sas", "2018-12-03", "CreateAgentlessScanTask") {
setMethod(HttpRequest::Method::Post);
}
CreateAgentlessScanTaskRequest::~CreateAgentlessScanTaskRequest() {}
int CreateAgentlessScanTaskRequest::getTargetType() const {
return targetType_;
}
void CreateAgentlessScanTaskRequest::setTargetType(int targetType) {
targetType_ = targetType;
setParameter(std::string("TargetType"), std::to_string(targetType));
}
std::string CreateAgentlessScanTaskRequest::getSourceIp() const {
return sourceIp_;
}
void CreateAgentlessScanTaskRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::vector<std::string> CreateAgentlessScanTaskRequest::getUuidList() const {
return uuidList_;
}
void CreateAgentlessScanTaskRequest::setUuidList(const std::vector<std::string> &uuidList) {
uuidList_ = uuidList;
}
bool CreateAgentlessScanTaskRequest::getScanDataDisk() const {
return scanDataDisk_;
}
void CreateAgentlessScanTaskRequest::setScanDataDisk(bool scanDataDisk) {
scanDataDisk_ = scanDataDisk;
setParameter(std::string("ScanDataDisk"), scanDataDisk ? "true" : "false");
}
bool CreateAgentlessScanTaskRequest::getReleaseAfterScan() const {
return releaseAfterScan_;
}
void CreateAgentlessScanTaskRequest::setReleaseAfterScan(bool releaseAfterScan) {
releaseAfterScan_ = releaseAfterScan;
setParameter(std::string("ReleaseAfterScan"), releaseAfterScan ? "true" : "false");
}
int CreateAgentlessScanTaskRequest::getAutoDeleteDays() const {
return autoDeleteDays_;
}
void CreateAgentlessScanTaskRequest::setAutoDeleteDays(int autoDeleteDays) {
autoDeleteDays_ = autoDeleteDays;
setParameter(std::string("AutoDeleteDays"), std::to_string(autoDeleteDays));
}

View 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/sas/model/CreateAgentlessScanTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
CreateAgentlessScanTaskResult::CreateAgentlessScanTaskResult() :
ServiceResult()
{}
CreateAgentlessScanTaskResult::CreateAgentlessScanTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAgentlessScanTaskResult::~CreateAgentlessScanTaskResult()
{}
void CreateAgentlessScanTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/CreateServiceTrailRequest.h>
using AlibabaCloud::Sas::Model::CreateServiceTrailRequest;
CreateServiceTrailRequest::CreateServiceTrailRequest()
: RpcServiceRequest("sas", "2018-12-03", "CreateServiceTrail") {
setMethod(HttpRequest::Method::Post);
}
CreateServiceTrailRequest::~CreateServiceTrailRequest() {}
std::string CreateServiceTrailRequest::getSourceIp() const {
return sourceIp_;
}
void CreateServiceTrailRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string CreateServiceTrailRequest::getRegionId() const {
return regionId_;
}
void CreateServiceTrailRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/sas/model/CreateServiceTrailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
CreateServiceTrailResult::CreateServiceTrailResult() :
ServiceResult()
{}
CreateServiceTrailResult::CreateServiceTrailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateServiceTrailResult::~CreateServiceTrailResult()
{}
void CreateServiceTrailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DeleteBinarySecurityPolicyRequest.h>
using AlibabaCloud::Sas::Model::DeleteBinarySecurityPolicyRequest;
DeleteBinarySecurityPolicyRequest::DeleteBinarySecurityPolicyRequest()
: RpcServiceRequest("sas", "2018-12-03", "DeleteBinarySecurityPolicy") {
setMethod(HttpRequest::Method::Post);
}
DeleteBinarySecurityPolicyRequest::~DeleteBinarySecurityPolicyRequest() {}
long DeleteBinarySecurityPolicyRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DeleteBinarySecurityPolicyRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DeleteBinarySecurityPolicyRequest::getSourceIp() const {
return sourceIp_;
}
void DeleteBinarySecurityPolicyRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DeleteBinarySecurityPolicyRequest::getName() const {
return name_;
}
void DeleteBinarySecurityPolicyRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}

View 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/sas/model/DeleteBinarySecurityPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DeleteBinarySecurityPolicyResult::DeleteBinarySecurityPolicyResult() :
ServiceResult()
{}
DeleteBinarySecurityPolicyResult::DeleteBinarySecurityPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteBinarySecurityPolicyResult::~DeleteBinarySecurityPolicyResult()
{}
void DeleteBinarySecurityPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DeleteServiceTrailRequest.h>
using AlibabaCloud::Sas::Model::DeleteServiceTrailRequest;
DeleteServiceTrailRequest::DeleteServiceTrailRequest()
: RpcServiceRequest("sas", "2018-12-03", "DeleteServiceTrail") {
setMethod(HttpRequest::Method::Post);
}
DeleteServiceTrailRequest::~DeleteServiceTrailRequest() {}
std::string DeleteServiceTrailRequest::getSourceIp() const {
return sourceIp_;
}
void DeleteServiceTrailRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DeleteServiceTrailRequest::getRegionId() const {
return regionId_;
}
void DeleteServiceTrailRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/sas/model/DeleteServiceTrailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DeleteServiceTrailResult::DeleteServiceTrailResult() :
ServiceResult()
{}
DeleteServiceTrailResult::DeleteServiceTrailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteServiceTrailResult::~DeleteServiceTrailResult()
{}
void DeleteServiceTrailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -77,6 +77,10 @@ void DescribeAccessKeyLeakDetailResult::parse(const std::string &payload)
gmtCreate_ = value["GmtCreate"].asString();
if(!value["GithubRepoUrl"].isNull())
githubRepoUrl_ = value["GithubRepoUrl"].asString();
if(!value["TokenValid"].isNull())
tokenValid_ = std::stoi(value["TokenValid"].asString());
if(!value["WhitelistTime"].isNull())
whitelistTime_ = std::stol(value["WhitelistTime"].asString());
}
@@ -125,6 +129,11 @@ std::string DescribeAccessKeyLeakDetailResult::getRemark()const
return remark_;
}
long DescribeAccessKeyLeakDetailResult::getWhitelistTime()const
{
return whitelistTime_;
}
std::string DescribeAccessKeyLeakDetailResult::getType()const
{
return type_;
@@ -145,6 +154,11 @@ std::string DescribeAccessKeyLeakDetailResult::getGmtCreate()const
return gmtCreate_;
}
int DescribeAccessKeyLeakDetailResult::getTokenValid()const
{
return tokenValid_;
}
std::string DescribeAccessKeyLeakDetailResult::getAccesskeyId()const
{
return accesskeyId_;

View File

@@ -61,6 +61,15 @@ void DescribeAlarmEventStackInfoRequest::setLang(const std::string &lang) {
setParameter(std::string("Lang"), lang);
}
long DescribeAlarmEventStackInfoRequest::getResourceDirectoryAccountId() const {
return resourceDirectoryAccountId_;
}
void DescribeAlarmEventStackInfoRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) {
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId));
}
std::string DescribeAlarmEventStackInfoRequest::getUniqueInfo() const {
return uniqueInfo_;
}

View File

@@ -61,6 +61,8 @@ void DescribeAntiBruteForceRulesResult::parse(const std::string &payload)
rulesObject.id = std::stol(valueRulesAntiBruteForceRule["Id"].asString());
if(!valueRulesAntiBruteForceRule["CreateTime"].isNull())
rulesObject.createTime = valueRulesAntiBruteForceRule["CreateTime"].asString();
if(!valueRulesAntiBruteForceRule["CreateTimestamp"].isNull())
rulesObject.createTimestamp = std::stol(valueRulesAntiBruteForceRule["CreateTimestamp"].asString());
auto allUuidList = value["UuidList"]["uuid"];
for (auto value : allUuidList)
rulesObject.uuidList.push_back(value.asString());

View File

@@ -43,6 +43,15 @@ void DescribeAssetDetailByUuidsRequest::setLang(const std::string &lang) {
setParameter(std::string("Lang"), lang);
}
long DescribeAssetDetailByUuidsRequest::getResourceDirectoryAccountId() const {
return resourceDirectoryAccountId_;
}
void DescribeAssetDetailByUuidsRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) {
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId));
}
std::string DescribeAssetDetailByUuidsRequest::getUuids() const {
return uuids_;
}

View File

@@ -70,6 +70,15 @@ void DescribeCloudCenterInstancesRequest::setNoPage(bool noPage) {
setParameter(std::string("NoPage"), noPage ? "true" : "false");
}
std::string DescribeCloudCenterInstancesRequest::getNextToken() const {
return nextToken_;
}
void DescribeCloudCenterInstancesRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
int DescribeCloudCenterInstancesRequest::getPageSize() const {
return pageSize_;
}
@@ -97,13 +106,22 @@ void DescribeCloudCenterInstancesRequest::setLang(const std::string &lang) {
setParameter(std::string("Lang"), lang);
}
std::string DescribeCloudCenterInstancesRequest::getResourceDirectoryAccountId() const {
long DescribeCloudCenterInstancesRequest::getResourceDirectoryAccountId() const {
return resourceDirectoryAccountId_;
}
void DescribeCloudCenterInstancesRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
void DescribeCloudCenterInstancesRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) {
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId));
}
bool DescribeCloudCenterInstancesRequest::getUseNextToken() const {
return useNextToken_;
}
void DescribeCloudCenterInstancesRequest::setUseNextToken(bool useNextToken) {
useNextToken_ = useNextToken;
setParameter(std::string("UseNextToken"), useNextToken ? "true" : "false");
}
int DescribeCloudCenterInstancesRequest::getCurrentPage() const {

View File

@@ -148,6 +148,8 @@ void DescribeCloudCenterInstancesResult::parse(const std::string &payload)
pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString());
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].asString());
if(!pageInfoNode["NextToken"].isNull())
pageInfo_.nextToken = pageInfoNode["NextToken"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";

View File

@@ -101,6 +101,10 @@ void DescribeContainerInstancesResult::parse(const std::string &payload)
containerInstanceListObject.alarmCount = std::stoi(valueContainerInstanceListContainerInstance["AlarmCount"].asString());
if(!valueContainerInstanceListContainerInstance["CreateTimestamp"].isNull())
containerInstanceListObject.createTimestamp = std::stol(valueContainerInstanceListContainerInstance["CreateTimestamp"].asString());
if(!valueContainerInstanceListContainerInstance["Exposed"].isNull())
containerInstanceListObject.exposed = std::stoi(valueContainerInstanceListContainerInstance["Exposed"].asString());
if(!valueContainerInstanceListContainerInstance["ExposedDetail"].isNull())
containerInstanceListObject.exposedDetail = valueContainerInstanceListContainerInstance["ExposedDetail"].asString();
containerInstanceList_.push_back(containerInstanceListObject);
}
auto pageInfoNode = value["PageInfo"];

View File

@@ -25,15 +25,6 @@ DescribeFieldStatisticsRequest::DescribeFieldStatisticsRequest()
DescribeFieldStatisticsRequest::~DescribeFieldStatisticsRequest() {}
std::string DescribeFieldStatisticsRequest::getMachineTypes() const {
return machineTypes_;
}
void DescribeFieldStatisticsRequest::setMachineTypes(const std::string &machineTypes) {
machineTypes_ = machineTypes;
setParameter(std::string("MachineTypes"), machineTypes);
}
std::string DescribeFieldStatisticsRequest::getSourceIp() const {
return sourceIp_;
}
@@ -52,3 +43,21 @@ void DescribeFieldStatisticsRequest::setRegionId(const std::string &regionId) {
setParameter(std::string("RegionId"), regionId);
}
long DescribeFieldStatisticsRequest::getResourceDirectoryAccountId() const {
return resourceDirectoryAccountId_;
}
void DescribeFieldStatisticsRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) {
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId));
}
std::string DescribeFieldStatisticsRequest::getMachineTypes() const {
return machineTypes_;
}
void DescribeFieldStatisticsRequest::setMachineTypes(const std::string &machineTypes) {
machineTypes_ = machineTypes;
setParameter(std::string("MachineTypes"), machineTypes);
}

View File

@@ -59,6 +59,8 @@ void DescribeGroupedInstancesResult::parse(const std::string &payload)
instancesObject.groupFlag = std::stoi(valueInstancesInstance["GroupFlag"].asString());
if(!valueInstancesInstance["AuthVersionCheckCount"].isNull())
instancesObject.authVersionCheckCount = std::stoi(valueInstancesInstance["AuthVersionCheckCount"].asString());
if(!valueInstancesInstance["Os"].isNull())
instancesObject.os = valueInstancesInstance["Os"].asString();
auto allGroupPath = value["GroupPath"]["groupPath"];
for (auto value : allGroupPath)
instancesObject.groupPath.push_back(value.asString());

View File

@@ -241,6 +241,15 @@ void DescribeGroupedVulRequest::setLastTsStart(long lastTsStart) {
setParameter(std::string("LastTsStart"), std::to_string(lastTsStart));
}
long DescribeGroupedVulRequest::getResourceDirectoryAccountId() const {
return resourceDirectoryAccountId_;
}
void DescribeGroupedVulRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) {
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId));
}
std::string DescribeGroupedVulRequest::getAssetType() const {
return assetType_;
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeImageVulWhiteListRequest.h>
using AlibabaCloud::Sas::Model::DescribeImageVulWhiteListRequest;
DescribeImageVulWhiteListRequest::DescribeImageVulWhiteListRequest()
: RpcServiceRequest("sas", "2018-12-03", "DescribeImageVulWhiteList") {
setMethod(HttpRequest::Method::Post);
}
DescribeImageVulWhiteListRequest::~DescribeImageVulWhiteListRequest() {}
int DescribeImageVulWhiteListRequest::getPageSize() const {
return pageSize_;
}
void DescribeImageVulWhiteListRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string DescribeImageVulWhiteListRequest::getLang() const {
return lang_;
}
void DescribeImageVulWhiteListRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}
int DescribeImageVulWhiteListRequest::getCurrentPage() const {
return currentPage_;
}
void DescribeImageVulWhiteListRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
std::string DescribeImageVulWhiteListRequest::getAliasName() const {
return aliasName_;
}
void DescribeImageVulWhiteListRequest::setAliasName(const std::string &aliasName) {
aliasName_ = aliasName;
setParameter(std::string("AliasName"), aliasName);
}

View File

@@ -0,0 +1,116 @@
/*
* 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/sas/model/DescribeImageVulWhiteListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeImageVulWhiteListResult::DescribeImageVulWhiteListResult() :
ServiceResult()
{}
DescribeImageVulWhiteListResult::DescribeImageVulWhiteListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeImageVulWhiteListResult::~DescribeImageVulWhiteListResult()
{}
void DescribeImageVulWhiteListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allImageVulWhitelistNode = value["ImageVulWhitelist"]["VulList"];
for (auto valueImageVulWhitelistVulList : allImageVulWhitelistNode)
{
VulList imageVulWhitelistObject;
if(!valueImageVulWhitelistVulList["Name"].isNull())
imageVulWhitelistObject.name = valueImageVulWhitelistVulList["Name"].asString();
if(!valueImageVulWhitelistVulList["AliasName"].isNull())
imageVulWhitelistObject.aliasName = valueImageVulWhitelistVulList["AliasName"].asString();
if(!valueImageVulWhitelistVulList["Target"].isNull())
imageVulWhitelistObject.target = valueImageVulWhitelistVulList["Target"].asString();
if(!valueImageVulWhitelistVulList["Reason"].isNull())
imageVulWhitelistObject.reason = valueImageVulWhitelistVulList["Reason"].asString();
if(!valueImageVulWhitelistVulList["Type"].isNull())
imageVulWhitelistObject.type = valueImageVulWhitelistVulList["Type"].asString();
if(!valueImageVulWhitelistVulList["Id"].isNull())
imageVulWhitelistObject.id = std::stol(valueImageVulWhitelistVulList["Id"].asString());
imageVulWhitelist_.push_back(imageVulWhitelistObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
if(!pageInfoNode["PageSize"].isNull())
pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
if(!pageInfoNode["TotalCount"].isNull())
pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString());
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["TimeCost"].isNull())
timeCost_ = std::stol(value["TimeCost"].asString());
}
DescribeImageVulWhiteListResult::PageInfo DescribeImageVulWhiteListResult::getPageInfo()const
{
return pageInfo_;
}
std::string DescribeImageVulWhiteListResult::getMessage()const
{
return message_;
}
int DescribeImageVulWhiteListResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
long DescribeImageVulWhiteListResult::getTimeCost()const
{
return timeCost_;
}
std::string DescribeImageVulWhiteListResult::getCode()const
{
return code_;
}
bool DescribeImageVulWhiteListResult::getSuccess()const
{
return success_;
}
std::vector<DescribeImageVulWhiteListResult::VulList> DescribeImageVulWhiteListResult::getImageVulWhitelist()const
{
return imageVulWhitelist_;
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeMonitorAccountsRequest.h>
using AlibabaCloud::Sas::Model::DescribeMonitorAccountsRequest;
DescribeMonitorAccountsRequest::DescribeMonitorAccountsRequest()
: RpcServiceRequest("sas", "2018-12-03", "DescribeMonitorAccounts") {
setMethod(HttpRequest::Method::Post);
}
DescribeMonitorAccountsRequest::~DescribeMonitorAccountsRequest() {}
std::string DescribeMonitorAccountsRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeMonitorAccountsRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeMonitorAccountsRequest::getAccountIds() const {
return accountIds_;
}
void DescribeMonitorAccountsRequest::setAccountIds(const std::string &accountIds) {
accountIds_ = accountIds;
setParameter(std::string("AccountIds"), accountIds);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/sas/model/DescribeMonitorAccountsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeMonitorAccountsResult::DescribeMonitorAccountsResult() :
ServiceResult()
{}
DescribeMonitorAccountsResult::DescribeMonitorAccountsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeMonitorAccountsResult::~DescribeMonitorAccountsResult()
{}
void DescribeMonitorAccountsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAccountIds = value["AccountIds"]["AccountId"];
for (const auto &item : allAccountIds)
accountIds_.push_back(item.asString());
}
std::vector<std::string> DescribeMonitorAccountsResult::getAccountIds()const
{
return accountIds_;
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeSecurityEventMarkMissListRequest.h>
using AlibabaCloud::Sas::Model::DescribeSecurityEventMarkMissListRequest;
DescribeSecurityEventMarkMissListRequest::DescribeSecurityEventMarkMissListRequest()
: RpcServiceRequest("sas", "2018-12-03", "DescribeSecurityEventMarkMissList") {
setMethod(HttpRequest::Method::Post);
}
DescribeSecurityEventMarkMissListRequest::~DescribeSecurityEventMarkMissListRequest() {}
long DescribeSecurityEventMarkMissListRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DescribeSecurityEventMarkMissListRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DescribeSecurityEventMarkMissListRequest::getRemark() const {
return remark_;
}
void DescribeSecurityEventMarkMissListRequest::setRemark(const std::string &remark) {
remark_ = remark;
setParameter(std::string("Remark"), remark);
}
std::string DescribeSecurityEventMarkMissListRequest::getEventName() const {
return eventName_;
}
void DescribeSecurityEventMarkMissListRequest::setEventName(const std::string &eventName) {
eventName_ = eventName;
setParameter(std::string("EventName"), eventName);
}
std::string DescribeSecurityEventMarkMissListRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeSecurityEventMarkMissListRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
int DescribeSecurityEventMarkMissListRequest::getPageSize() const {
return pageSize_;
}
void DescribeSecurityEventMarkMissListRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
int DescribeSecurityEventMarkMissListRequest::getCurrentPage() const {
return currentPage_;
}
void DescribeSecurityEventMarkMissListRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
}

View File

@@ -0,0 +1,99 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeSecurityEventMarkMissListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeSecurityEventMarkMissListResult::DescribeSecurityEventMarkMissListResult() :
ServiceResult()
{}
DescribeSecurityEventMarkMissListResult::DescribeSecurityEventMarkMissListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSecurityEventMarkMissListResult::~DescribeSecurityEventMarkMissListResult()
{}
void DescribeSecurityEventMarkMissListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allListNode = value["List"]["SecurityEventMarkMissReponse"];
for (auto valueListSecurityEventMarkMissReponse : allListNode)
{
SecurityEventMarkMissReponse listObject;
if(!valueListSecurityEventMarkMissReponse["EventName"].isNull())
listObject.eventName = valueListSecurityEventMarkMissReponse["EventName"].asString();
if(!valueListSecurityEventMarkMissReponse["InternetIp"].isNull())
listObject.internetIp = valueListSecurityEventMarkMissReponse["InternetIp"].asString();
if(!valueListSecurityEventMarkMissReponse["EventNameOriginal"].isNull())
listObject.eventNameOriginal = valueListSecurityEventMarkMissReponse["EventNameOriginal"].asString();
if(!valueListSecurityEventMarkMissReponse["AliUid"].isNull())
listObject.aliUid = std::stol(valueListSecurityEventMarkMissReponse["AliUid"].asString());
if(!valueListSecurityEventMarkMissReponse["FieldValue"].isNull())
listObject.fieldValue = valueListSecurityEventMarkMissReponse["FieldValue"].asString();
if(!valueListSecurityEventMarkMissReponse["InstanceId"].isNull())
listObject.instanceId = valueListSecurityEventMarkMissReponse["InstanceId"].asString();
if(!valueListSecurityEventMarkMissReponse["Field"].isNull())
listObject.field = valueListSecurityEventMarkMissReponse["Field"].asString();
if(!valueListSecurityEventMarkMissReponse["IntranetIp"].isNull())
listObject.intranetIp = valueListSecurityEventMarkMissReponse["IntranetIp"].asString();
if(!valueListSecurityEventMarkMissReponse["FiledAliasName"].isNull())
listObject.filedAliasName = valueListSecurityEventMarkMissReponse["FiledAliasName"].asString();
if(!valueListSecurityEventMarkMissReponse["Uuid"].isNull())
listObject.uuid = valueListSecurityEventMarkMissReponse["Uuid"].asString();
if(!valueListSecurityEventMarkMissReponse["Operate"].isNull())
listObject.operate = valueListSecurityEventMarkMissReponse["Operate"].asString();
if(!valueListSecurityEventMarkMissReponse["EventTypeOriginal"].isNull())
listObject.eventTypeOriginal = valueListSecurityEventMarkMissReponse["EventTypeOriginal"].asString();
if(!valueListSecurityEventMarkMissReponse["EventType"].isNull())
listObject.eventType = valueListSecurityEventMarkMissReponse["EventType"].asString();
if(!valueListSecurityEventMarkMissReponse["InstanceName"].isNull())
listObject.instanceName = valueListSecurityEventMarkMissReponse["InstanceName"].asString();
if(!valueListSecurityEventMarkMissReponse["Id"].isNull())
listObject.id = std::stol(valueListSecurityEventMarkMissReponse["Id"].asString());
list_.push_back(listObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
if(!pageInfoNode["PageSize"].isNull())
pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
if(!pageInfoNode["TotalCount"].isNull())
pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString());
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].asString());
}
DescribeSecurityEventMarkMissListResult::PageInfo DescribeSecurityEventMarkMissListResult::getPageInfo()const
{
return pageInfo_;
}
std::vector<DescribeSecurityEventMarkMissListResult::SecurityEventMarkMissReponse> DescribeSecurityEventMarkMissListResult::getList()const
{
return list_;
}

View File

@@ -52,6 +52,15 @@ void DescribeSuspEventDetailRequest::setLang(const std::string &lang) {
setParameter(std::string("Lang"), lang);
}
long DescribeSuspEventDetailRequest::getResourceDirectoryAccountId() const {
return resourceDirectoryAccountId_;
}
void DescribeSuspEventDetailRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) {
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId));
}
int DescribeSuspEventDetailRequest::getSuspiciousEventId() const {
return suspiciousEventId_;
}

View File

@@ -214,6 +214,15 @@ void DescribeSuspEventsRequest::setLang(const std::string &lang) {
setParameter(std::string("Lang"), lang);
}
long DescribeSuspEventsRequest::getResourceDirectoryAccountId() const {
return resourceDirectoryAccountId_;
}
void DescribeSuspEventsRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) {
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId));
}
std::string DescribeSuspEventsRequest::getDealed() const {
return dealed_;
}

View File

@@ -57,6 +57,8 @@ void DescribeUuidsByVulNamesResult::parse(const std::string &payload)
machineInfoStatisticsObject.regionId = valueMachineInfoStatisticsMachineInfoStatistic["RegionId"].asString();
machineInfoStatistics_.push_back(machineInfoStatisticsObject);
}
if(!value["VulCount"].isNull())
vulCount_ = std::stoi(value["VulCount"].asString());
}
@@ -65,3 +67,8 @@ std::vector<DescribeUuidsByVulNamesResult::MachineInfoStatistic> DescribeUuidsBy
return machineInfoStatistics_;
}
int DescribeUuidsByVulNamesResult::getVulCount()const
{
return vulCount_;
}

View File

@@ -109,6 +109,14 @@ void DescribeVersionConfigResult::parse(const std::string &payload)
isNewMultiVersion_ = value["IsNewMultiVersion"].asString() == "true";
if(!value["ThreatAnalysisCapacity"].isNull())
threatAnalysisCapacity_ = std::stol(value["ThreatAnalysisCapacity"].asString());
if(!value["CspmCapacity"].isNull())
cspmCapacity_ = std::stol(value["CspmCapacity"].asString());
if(!value["VulFixCapacity"].isNull())
vulFixCapacity_ = std::stol(value["VulFixCapacity"].asString());
if(!value["RaspCapacity"].isNull())
raspCapacity_ = std::stol(value["RaspCapacity"].asString());
if(!value["AgentlessCapacity"].isNull())
agentlessCapacity_ = std::stol(value["AgentlessCapacity"].asString());
}
@@ -137,6 +145,11 @@ int DescribeVersionConfigResult::getLogTime()const
return logTime_;
}
long DescribeVersionConfigResult::getRaspCapacity()const
{
return raspCapacity_;
}
int DescribeVersionConfigResult::getSasLog()const
{
return sasLog_;
@@ -187,6 +200,11 @@ int DescribeVersionConfigResult::getAllowPartialBuy()const
return allowPartialBuy_;
}
long DescribeVersionConfigResult::getAgentlessCapacity()const
{
return agentlessCapacity_;
}
int DescribeVersionConfigResult::getWebLock()const
{
return webLock_;
@@ -212,6 +230,11 @@ long DescribeVersionConfigResult::getHoneypotCapacity()const
return honeypotCapacity_;
}
long DescribeVersionConfigResult::getVulFixCapacity()const
{
return vulFixCapacity_;
}
int DescribeVersionConfigResult::getAssetLevel()const
{
return assetLevel_;
@@ -237,6 +260,11 @@ int DescribeVersionConfigResult::getSasScreen()const
return sasScreen_;
}
long DescribeVersionConfigResult::getCspmCapacity()const
{
return cspmCapacity_;
}
bool DescribeVersionConfigResult::getIsSasOpening()const
{
return isSasOpening_;

View File

@@ -52,6 +52,15 @@ void DescribeVulDetailsRequest::setLang(const std::string &lang) {
setParameter(std::string("Lang"), lang);
}
long DescribeVulDetailsRequest::getResourceDirectoryAccountId() const {
return resourceDirectoryAccountId_;
}
void DescribeVulDetailsRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) {
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId));
}
std::string DescribeVulDetailsRequest::getAliasName() const {
return aliasName_;
}

View File

@@ -277,6 +277,15 @@ void DescribeVulListRequest::setLang(const std::string &lang) {
setParameter(std::string("Lang"), lang);
}
long DescribeVulListRequest::getResourceDirectoryAccountId() const {
return resourceDirectoryAccountId_;
}
void DescribeVulListRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) {
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId));
}
std::string DescribeVulListRequest::getAssetType() const {
return assetType_;
}

View File

@@ -0,0 +1,36 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/GetAgentlessTaskCountRequest.h>
using AlibabaCloud::Sas::Model::GetAgentlessTaskCountRequest;
GetAgentlessTaskCountRequest::GetAgentlessTaskCountRequest()
: RpcServiceRequest("sas", "2018-12-03", "GetAgentlessTaskCount") {
setMethod(HttpRequest::Method::Post);
}
GetAgentlessTaskCountRequest::~GetAgentlessTaskCountRequest() {}
std::string GetAgentlessTaskCountRequest::getSourceIp() const {
return sourceIp_;
}
void GetAgentlessTaskCountRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}

View File

@@ -0,0 +1,100 @@
/*
* 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/sas/model/GetAgentlessTaskCountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
GetAgentlessTaskCountResult::GetAgentlessTaskCountResult() :
ServiceResult()
{}
GetAgentlessTaskCountResult::GetAgentlessTaskCountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAgentlessTaskCountResult::~GetAgentlessTaskCountResult()
{}
void GetAgentlessTaskCountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RiskMachine"].isNull())
riskMachine_ = std::stoi(value["RiskMachine"].asString());
if(!value["ScanMachine"].isNull())
scanMachine_ = std::stoi(value["ScanMachine"].asString());
if(!value["MaliciousFile"].isNull())
maliciousFile_ = std::stoi(value["MaliciousFile"].asString());
if(!value["Vulnerability"].isNull())
vulnerability_ = std::stoi(value["Vulnerability"].asString());
if(!value["LastTaskTime"].isNull())
lastTaskTime_ = std::stol(value["LastTaskTime"].asString());
if(!value["BaselineCheckCount"].isNull())
baselineCheckCount_ = std::stoi(value["BaselineCheckCount"].asString());
if(!value["ScaVulCount"].isNull())
scaVulCount_ = std::stoi(value["ScaVulCount"].asString());
if(!value["CveVulCount"].isNull())
cveVulCount_ = std::stoi(value["CveVulCount"].asString());
}
int GetAgentlessTaskCountResult::getBaselineCheckCount()const
{
return baselineCheckCount_;
}
int GetAgentlessTaskCountResult::getMaliciousFile()const
{
return maliciousFile_;
}
long GetAgentlessTaskCountResult::getLastTaskTime()const
{
return lastTaskTime_;
}
int GetAgentlessTaskCountResult::getCveVulCount()const
{
return cveVulCount_;
}
int GetAgentlessTaskCountResult::getVulnerability()const
{
return vulnerability_;
}
int GetAgentlessTaskCountResult::getScaVulCount()const
{
return scaVulCount_;
}
int GetAgentlessTaskCountResult::getRiskMachine()const
{
return riskMachine_;
}
int GetAgentlessTaskCountResult::getScanMachine()const
{
return scanMachine_;
}

View File

@@ -39,21 +39,31 @@ void GetCheckConfigResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allStandardsNode = value["Standards"]["StandardsItem"];
for (auto valueStandardsStandardsItem : allStandardsNode)
auto allStandardsNode = value["Standards"]["Standard"];
for (auto valueStandardsStandard : allStandardsNode)
{
StandardsItem standardsObject;
if(!valueStandardsStandardsItem["Id"].isNull())
standardsObject.id = std::stol(valueStandardsStandardsItem["Id"].asString());
if(!valueStandardsStandardsItem["ShowName"].isNull())
standardsObject.showName = valueStandardsStandardsItem["ShowName"].asString();
if(!valueStandardsStandardsItem["Type"].isNull())
standardsObject.type = valueStandardsStandardsItem["Type"].asString();
if(!valueStandardsStandardsItem["Status"].isNull())
standardsObject.status = valueStandardsStandardsItem["Status"].asString();
Standard standardsObject;
if(!valueStandardsStandard["Id"].isNull())
standardsObject.id = std::stol(valueStandardsStandard["Id"].asString());
if(!valueStandardsStandard["ShowName"].isNull())
standardsObject.showName = valueStandardsStandard["ShowName"].asString();
if(!valueStandardsStandard["Type"].isNull())
standardsObject.type = valueStandardsStandard["Type"].asString();
if(!valueStandardsStandard["Status"].isNull())
standardsObject.status = valueStandardsStandard["Status"].asString();
standards_.push_back(standardsObject);
}
auto allCycleDays = value["CycleDays"]["CycleDays"];
auto allSelectedChecksNode = value["SelectedChecks"]["SelectedCheck"];
for (auto valueSelectedChecksSelectedCheck : allSelectedChecksNode)
{
SelectedCheck selectedChecksObject;
if(!valueSelectedChecksSelectedCheck["CheckId"].isNull())
selectedChecksObject.checkId = std::stol(valueSelectedChecksSelectedCheck["CheckId"].asString());
if(!valueSelectedChecksSelectedCheck["SectionId"].isNull())
selectedChecksObject.sectionId = std::stol(valueSelectedChecksSelectedCheck["SectionId"].asString());
selectedChecks_.push_back(selectedChecksObject);
}
auto allCycleDays = value["CycleDays"]["CycleDay"];
for (const auto &item : allCycleDays)
cycleDays_.push_back(item.asString());
if(!value["StartTime"].isNull())
@@ -62,19 +72,38 @@ void GetCheckConfigResult::parse(const std::string &payload)
endTime_ = std::stoi(value["EndTime"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["EnableAutoCheck"].isNull())
enableAutoCheck_ = value["EnableAutoCheck"].asString() == "true";
if(!value["EnableAddCheck"].isNull())
enableAddCheck_ = value["EnableAddCheck"].asString() == "true";
}
std::vector<GetCheckConfigResult::SelectedCheck> GetCheckConfigResult::getSelectedChecks()const
{
return selectedChecks_;
}
int GetCheckConfigResult::getEndTime()const
{
return endTime_;
}
bool GetCheckConfigResult::getEnableAutoCheck()const
{
return enableAutoCheck_;
}
std::vector<std::string> GetCheckConfigResult::getCycleDays()const
{
return cycleDays_;
}
bool GetCheckConfigResult::getEnableAddCheck()const
{
return enableAddCheck_;
}
int GetCheckConfigResult::getStartTime()const
{
return startTime_;
@@ -85,7 +114,7 @@ std::string GetCheckConfigResult::getData()const
return data_;
}
std::vector<GetCheckConfigResult::StandardsItem> GetCheckConfigResult::getStandards()const
std::vector<GetCheckConfigResult::Standard> GetCheckConfigResult::getStandards()const
{
return standards_;
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/GetClientRatioStatisticRequest.h>
using AlibabaCloud::Sas::Model::GetClientRatioStatisticRequest;
GetClientRatioStatisticRequest::GetClientRatioStatisticRequest()
: RpcServiceRequest("sas", "2018-12-03", "GetClientRatioStatistic") {
setMethod(HttpRequest::Method::Post);
}
GetClientRatioStatisticRequest::~GetClientRatioStatisticRequest() {}
long GetClientRatioStatisticRequest::getTimeEnd() const {
return timeEnd_;
}
void GetClientRatioStatisticRequest::setTimeEnd(long timeEnd) {
timeEnd_ = timeEnd;
setParameter(std::string("TimeEnd"), std::to_string(timeEnd));
}
long GetClientRatioStatisticRequest::getResourceDirectoryAccountId() const {
return resourceDirectoryAccountId_;
}
void GetClientRatioStatisticRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) {
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId));
}
std::vector<GetClientRatioStatisticRequest::std::string> GetClientRatioStatisticRequest::getStatisticTypes() const {
return statisticTypes_;
}
void GetClientRatioStatisticRequest::setStatisticTypes(const std::vector<GetClientRatioStatisticRequest::std::string> &statisticTypes) {
statisticTypes_ = statisticTypes;
for(int dep1 = 0; dep1 != statisticTypes.size(); dep1++) {
setParameter(std::string("StatisticTypes") + "." + std::to_string(dep1 + 1), statisticTypes[dep1]);
}
}
long GetClientRatioStatisticRequest::getTimeStart() const {
return timeStart_;
}
void GetClientRatioStatisticRequest::setTimeStart(long timeStart) {
timeStart_ = timeStart;
setParameter(std::string("TimeStart"), std::to_string(timeStart));
}

View File

@@ -0,0 +1,152 @@
/*
* 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/sas/model/GetClientRatioStatisticResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
GetClientRatioStatisticResult::GetClientRatioStatisticResult() :
ServiceResult()
{}
GetClientRatioStatisticResult::GetClientRatioStatisticResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetClientRatioStatisticResult::~GetClientRatioStatisticResult()
{}
void GetClientRatioStatisticResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto clientInstallRatioNode = value["ClientInstallRatio"];
auto allHistoryItemsNode = clientInstallRatioNode["HistoryItems"]["historyItemsItem"];
for (auto clientInstallRatioNodeHistoryItemshistoryItemsItem : allHistoryItemsNode)
{
ClientInstallRatio::HistoryItemsItem historyItemsItemObject;
if(!clientInstallRatioNodeHistoryItemshistoryItemsItem["Vendor"].isNull())
historyItemsItemObject.vendor = std::stol(clientInstallRatioNodeHistoryItemshistoryItemsItem["Vendor"].asString());
auto allItemsNode = clientInstallRatioNodeHistoryItemshistoryItemsItem["Items"]["historyItem"];
for (auto clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem : allItemsNode)
{
ClientInstallRatio::HistoryItemsItem::HistoryItem itemsObject;
if(!clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["CalculateTime"].isNull())
itemsObject.calculateTime = std::stol(clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["CalculateTime"].asString());
if(!clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["AssetTotalCount"].isNull())
itemsObject.assetTotalCount = std::stoi(clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["AssetTotalCount"].asString());
if(!clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["InstallRatio"].isNull())
itemsObject.installRatio = clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["InstallRatio"].asString();
if(!clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["InstalledAssetCount"].isNull())
itemsObject.installedAssetCount = std::stoi(clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["InstalledAssetCount"].asString());
historyItemsItemObject.items.push_back(itemsObject);
}
clientInstallRatio_.historyItems.push_back(historyItemsItemObject);
}
auto allCurrentItemsNode = clientInstallRatioNode["CurrentItems"]["currentItemsItem"];
for (auto clientInstallRatioNodeCurrentItemscurrentItemsItem : allCurrentItemsNode)
{
ClientInstallRatio::CurrentItemsItem currentItemsItemObject;
if(!clientInstallRatioNodeCurrentItemscurrentItemsItem["Vendor"].isNull())
currentItemsItemObject.vendor = std::stol(clientInstallRatioNodeCurrentItemscurrentItemsItem["Vendor"].asString());
auto allItems1Node = clientInstallRatioNodeCurrentItemscurrentItemsItem["Items"]["itemsItem"];
for (auto clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem : allItems1Node)
{
ClientInstallRatio::CurrentItemsItem::ItemsItem items1Object;
if(!clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["CalculateTime"].isNull())
items1Object.calculateTime = std::stol(clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["CalculateTime"].asString());
if(!clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["AssetTotalCount"].isNull())
items1Object.assetTotalCount = std::stoi(clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["AssetTotalCount"].asString());
if(!clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["InstallRatio"].isNull())
items1Object.installRatio = clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["InstallRatio"].asString();
if(!clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["InstalledAssetCount"].isNull())
items1Object.installedAssetCount = std::stoi(clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["InstalledAssetCount"].asString());
currentItemsItemObject.items1.push_back(items1Object);
}
clientInstallRatio_.currentItems.push_back(currentItemsItemObject);
}
auto clientOnlineRatioNode = value["ClientOnlineRatio"];
auto allHistoryItems2Node = clientOnlineRatioNode["HistoryItems"]["historyItemsItem"];
for (auto clientOnlineRatioNodeHistoryItemshistoryItemsItem : allHistoryItems2Node)
{
ClientOnlineRatio::HistoryItemsItem4 historyItemsItem4Object;
if(!clientOnlineRatioNodeHistoryItemshistoryItemsItem["Vendor"].isNull())
historyItemsItem4Object.vendor = std::stol(clientOnlineRatioNodeHistoryItemshistoryItemsItem["Vendor"].asString());
auto allItems5Node = clientOnlineRatioNodeHistoryItemshistoryItemsItem["Items"]["historyItem"];
for (auto clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem : allItems5Node)
{
ClientOnlineRatio::HistoryItemsItem4::HistoryItem6 items5Object;
if(!clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["CalculateTime"].isNull())
items5Object.calculateTime = std::stol(clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["CalculateTime"].asString());
if(!clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["AssetInstallCount"].isNull())
items5Object.assetInstallCount = std::stoi(clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["AssetInstallCount"].asString());
if(!clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["OnlineRatio"].isNull())
items5Object.onlineRatio = clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["OnlineRatio"].asString();
if(!clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["OnlineAssetCount"].isNull())
items5Object.onlineAssetCount = std::stoi(clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["OnlineAssetCount"].asString());
historyItemsItem4Object.items5.push_back(items5Object);
}
clientOnlineRatio_.historyItems2.push_back(historyItemsItem4Object);
}
auto allCurrentItems3Node = clientOnlineRatioNode["CurrentItems"]["currentItemsItem"];
for (auto clientOnlineRatioNodeCurrentItemscurrentItemsItem : allCurrentItems3Node)
{
ClientOnlineRatio::CurrentItemsItem7 currentItemsItem7Object;
if(!clientOnlineRatioNodeCurrentItemscurrentItemsItem["Vendor"].isNull())
currentItemsItem7Object.vendor = std::stol(clientOnlineRatioNodeCurrentItemscurrentItemsItem["Vendor"].asString());
auto allItems8Node = clientOnlineRatioNodeCurrentItemscurrentItemsItem["Items"]["itemsItem"];
for (auto clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem : allItems8Node)
{
ClientOnlineRatio::CurrentItemsItem7::ItemsItem9 items8Object;
if(!clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["CalculateTime"].isNull())
items8Object.calculateTime = std::stol(clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["CalculateTime"].asString());
if(!clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["AssetInstallCount"].isNull())
items8Object.assetInstallCount = std::stoi(clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["AssetInstallCount"].asString());
if(!clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["OnlineRatio"].isNull())
items8Object.onlineRatio = clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["OnlineRatio"].asString();
if(!clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["OnlineAssetCount"].isNull())
items8Object.onlineAssetCount = std::stoi(clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["OnlineAssetCount"].asString());
currentItemsItem7Object.items8.push_back(items8Object);
}
clientOnlineRatio_.currentItems3.push_back(currentItemsItem7Object);
}
auto allDates = value["Dates"]["dates"];
for (const auto &item : allDates)
dates_.push_back(item.asString());
}
GetClientRatioStatisticResult::ClientOnlineRatio GetClientRatioStatisticResult::getClientOnlineRatio()const
{
return clientOnlineRatio_;
}
std::vector<std::string> GetClientRatioStatisticResult::getDates()const
{
return dates_;
}
GetClientRatioStatisticResult::ClientInstallRatio GetClientRatioStatisticResult::getClientInstallRatio()const
{
return clientInstallRatio_;
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/GetServiceTrailRequest.h>
using AlibabaCloud::Sas::Model::GetServiceTrailRequest;
GetServiceTrailRequest::GetServiceTrailRequest()
: RpcServiceRequest("sas", "2018-12-03", "GetServiceTrail") {
setMethod(HttpRequest::Method::Post);
}
GetServiceTrailRequest::~GetServiceTrailRequest() {}
std::string GetServiceTrailRequest::getSourceIp() const {
return sourceIp_;
}
void GetServiceTrailRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string GetServiceTrailRequest::getRegionId() const {
return regionId_;
}
void GetServiceTrailRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,56 @@
/*
* 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/sas/model/GetServiceTrailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
GetServiceTrailResult::GetServiceTrailResult() :
ServiceResult()
{}
GetServiceTrailResult::GetServiceTrailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetServiceTrailResult::~GetServiceTrailResult()
{}
void GetServiceTrailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto serviceTrailNode = value["ServiceTrail"];
if(!serviceTrailNode["Config"].isNull())
serviceTrail_.config = serviceTrailNode["Config"].asString();
if(!serviceTrailNode["CreateTime"].isNull())
serviceTrail_.createTime = std::stol(serviceTrailNode["CreateTime"].asString());
if(!serviceTrailNode["UpdateTime"].isNull())
serviceTrail_.updateTime = std::stol(serviceTrailNode["UpdateTime"].asString());
}
GetServiceTrailResult::ServiceTrail GetServiceTrailResult::getServiceTrail()const
{
return serviceTrail_;
}

View File

@@ -51,6 +51,15 @@ void HandleSecurityEventsRequest::setSecurityEventIds(const std::vector<std::str
securityEventIds_ = securityEventIds;
}
std::string HandleSecurityEventsRequest::getRemark() const {
return remark_;
}
void HandleSecurityEventsRequest::setRemark(const std::string &remark) {
remark_ = remark;
setParameter(std::string("Remark"), remark);
}
std::string HandleSecurityEventsRequest::getSourceIp() const {
return sourceIp_;
}

View File

@@ -43,6 +43,15 @@ void HandleSimilarSecurityEventsRequest::setResourceOwnerId(long resourceOwnerId
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string HandleSimilarSecurityEventsRequest::getRemark() const {
return remark_;
}
void HandleSimilarSecurityEventsRequest::setRemark(const std::string &remark) {
remark_ = remark;
setParameter(std::string("Remark"), remark);
}
std::string HandleSimilarSecurityEventsRequest::getSourceIp() const {
return sourceIp_;
}

View File

@@ -0,0 +1,36 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/ListAgentlessRegionRequest.h>
using AlibabaCloud::Sas::Model::ListAgentlessRegionRequest;
ListAgentlessRegionRequest::ListAgentlessRegionRequest()
: RpcServiceRequest("sas", "2018-12-03", "ListAgentlessRegion") {
setMethod(HttpRequest::Method::Post);
}
ListAgentlessRegionRequest::~ListAgentlessRegionRequest() {}
std::string ListAgentlessRegionRequest::getSourceIp() const {
return sourceIp_;
}
void ListAgentlessRegionRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/sas/model/ListAgentlessRegionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
ListAgentlessRegionResult::ListAgentlessRegionResult() :
ServiceResult()
{}
ListAgentlessRegionResult::ListAgentlessRegionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAgentlessRegionResult::~ListAgentlessRegionResult()
{}
void ListAgentlessRegionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRegionList = value["RegionList"]["RegionList"];
for (const auto &item : allRegionList)
regionList_.push_back(item.asString());
}
std::vector<std::string> ListAgentlessRegionResult::getRegionList()const
{
return regionList_;
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/ListAgentlessRelateMaliciousRequest.h>
using AlibabaCloud::Sas::Model::ListAgentlessRelateMaliciousRequest;
ListAgentlessRelateMaliciousRequest::ListAgentlessRelateMaliciousRequest()
: RpcServiceRequest("sas", "2018-12-03", "ListAgentlessRelateMalicious") {
setMethod(HttpRequest::Method::Post);
}
ListAgentlessRelateMaliciousRequest::~ListAgentlessRelateMaliciousRequest() {}
long ListAgentlessRelateMaliciousRequest::getEventId() const {
return eventId_;
}
void ListAgentlessRelateMaliciousRequest::setEventId(long eventId) {
eventId_ = eventId;
setParameter(std::string("EventId"), std::to_string(eventId));
}
std::string ListAgentlessRelateMaliciousRequest::getSourceIp() const {
return sourceIp_;
}
void ListAgentlessRelateMaliciousRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string ListAgentlessRelateMaliciousRequest::getPageSize() const {
return pageSize_;
}
void ListAgentlessRelateMaliciousRequest::setPageSize(const std::string &pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), pageSize);
}
int ListAgentlessRelateMaliciousRequest::getCurrentPage() const {
return currentPage_;
}
void ListAgentlessRelateMaliciousRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
}

View File

@@ -0,0 +1,83 @@
/*
* 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/sas/model/ListAgentlessRelateMaliciousResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
ListAgentlessRelateMaliciousResult::ListAgentlessRelateMaliciousResult() :
ServiceResult()
{}
ListAgentlessRelateMaliciousResult::ListAgentlessRelateMaliciousResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAgentlessRelateMaliciousResult::~ListAgentlessRelateMaliciousResult()
{}
void ListAgentlessRelateMaliciousResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allListNode = value["List"]["ListItem"];
for (auto valueListListItem : allListNode)
{
ListItem listObject;
if(!valueListListItem["InstanceName"].isNull())
listObject.instanceName = valueListListItem["InstanceName"].asString();
if(!valueListListItem["InternetIp"].isNull())
listObject.internetIp = valueListListItem["InternetIp"].asString();
if(!valueListListItem["IntranetIp"].isNull())
listObject.intranetIp = valueListListItem["IntranetIp"].asString();
if(!valueListListItem["Uuid"].isNull())
listObject.uuid = valueListListItem["Uuid"].asString();
if(!valueListListItem["FirstScanTimestamp"].isNull())
listObject.firstScanTimestamp = std::stol(valueListListItem["FirstScanTimestamp"].asString());
if(!valueListListItem["LatestScanTimestamp"].isNull())
listObject.latestScanTimestamp = std::stol(valueListListItem["LatestScanTimestamp"].asString());
if(!valueListListItem["FilePath"].isNull())
listObject.filePath = valueListListItem["FilePath"].asString();
list_.push_back(listObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
if(!pageInfoNode["PageSize"].isNull())
pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
if(!pageInfoNode["TotalCount"].isNull())
pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString());
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].asString());
}
ListAgentlessRelateMaliciousResult::PageInfo ListAgentlessRelateMaliciousResult::getPageInfo()const
{
return pageInfo_;
}
std::vector<ListAgentlessRelateMaliciousResult::ListItem> ListAgentlessRelateMaliciousResult::getList()const
{
return list_;
}

View File

@@ -0,0 +1,99 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/ListAgentlessRiskUuidRequest.h>
using AlibabaCloud::Sas::Model::ListAgentlessRiskUuidRequest;
ListAgentlessRiskUuidRequest::ListAgentlessRiskUuidRequest()
: RpcServiceRequest("sas", "2018-12-03", "ListAgentlessRiskUuid") {
setMethod(HttpRequest::Method::Post);
}
ListAgentlessRiskUuidRequest::~ListAgentlessRiskUuidRequest() {}
std::string ListAgentlessRiskUuidRequest::getInternetIp() const {
return internetIp_;
}
void ListAgentlessRiskUuidRequest::setInternetIp(const std::string &internetIp) {
internetIp_ = internetIp;
setParameter(std::string("InternetIp"), internetIp);
}
std::string ListAgentlessRiskUuidRequest::getTargetName() const {
return targetName_;
}
void ListAgentlessRiskUuidRequest::setTargetName(const std::string &targetName) {
targetName_ = targetName;
setParameter(std::string("TargetName"), targetName);
}
std::string ListAgentlessRiskUuidRequest::getSourceIp() const {
return sourceIp_;
}
void ListAgentlessRiskUuidRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
int ListAgentlessRiskUuidRequest::getPageSize() const {
return pageSize_;
}
void ListAgentlessRiskUuidRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListAgentlessRiskUuidRequest::getMachineName() const {
return machineName_;
}
void ListAgentlessRiskUuidRequest::setMachineName(const std::string &machineName) {
machineName_ = machineName;
setParameter(std::string("MachineName"), machineName);
}
int ListAgentlessRiskUuidRequest::getCurrentPage() const {
return currentPage_;
}
void ListAgentlessRiskUuidRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
bool ListAgentlessRiskUuidRequest::getRisk() const {
return risk_;
}
void ListAgentlessRiskUuidRequest::setRisk(bool risk) {
risk_ = risk;
setParameter(std::string("Risk"), risk ? "true" : "false");
}
std::string ListAgentlessRiskUuidRequest::getIntranetIp() const {
return intranetIp_;
}
void ListAgentlessRiskUuidRequest::setIntranetIp(const std::string &intranetIp) {
intranetIp_ = intranetIp;
setParameter(std::string("IntranetIp"), intranetIp);
}

View File

@@ -0,0 +1,87 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/ListAgentlessRiskUuidResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
ListAgentlessRiskUuidResult::ListAgentlessRiskUuidResult() :
ServiceResult()
{}
ListAgentlessRiskUuidResult::ListAgentlessRiskUuidResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAgentlessRiskUuidResult::~ListAgentlessRiskUuidResult()
{}
void ListAgentlessRiskUuidResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allListNode = value["List"]["ListItem"];
for (auto valueListListItem : allListNode)
{
ListItem listObject;
if(!valueListListItem["Uuid"].isNull())
listObject.uuid = valueListListItem["Uuid"].asString();
if(!valueListListItem["InstanceName"].isNull())
listObject.instanceName = valueListListItem["InstanceName"].asString();
if(!valueListListItem["InternetIp"].isNull())
listObject.internetIp = valueListListItem["InternetIp"].asString();
if(!valueListListItem["IntranetIp"].isNull())
listObject.intranetIp = valueListListItem["IntranetIp"].asString();
if(!valueListListItem["VulCount"].isNull())
listObject.vulCount = std::stoi(valueListListItem["VulCount"].asString());
if(!valueListListItem["MaliciousCount"].isNull())
listObject.maliciousCount = std::stoi(valueListListItem["MaliciousCount"].asString());
if(!valueListListItem["BaselineCount"].isNull())
listObject.baselineCount = std::stoi(valueListListItem["BaselineCount"].asString());
if(!valueListListItem["TargetId"].isNull())
listObject.targetId = valueListListItem["TargetId"].asString();
if(!valueListListItem["TargetName"].isNull())
listObject.targetName = valueListListItem["TargetName"].asString();
if(!valueListListItem["ScanTime"].isNull())
listObject.scanTime = std::stol(valueListListItem["ScanTime"].asString());
list_.push_back(listObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
if(!pageInfoNode["PageSize"].isNull())
pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
if(!pageInfoNode["TotalCount"].isNull())
pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString());
}
ListAgentlessRiskUuidResult::PageInfo ListAgentlessRiskUuidResult::getPageInfo()const
{
return pageInfo_;
}
std::vector<ListAgentlessRiskUuidResult::ListItem> ListAgentlessRiskUuidResult::getList()const
{
return list_;
}

View File

@@ -0,0 +1,171 @@
/*
* 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/sas/model/ListAgentlessTaskRequest.h>
using AlibabaCloud::Sas::Model::ListAgentlessTaskRequest;
ListAgentlessTaskRequest::ListAgentlessTaskRequest()
: RpcServiceRequest("sas", "2018-12-03", "ListAgentlessTask") {
setMethod(HttpRequest::Method::Post);
}
ListAgentlessTaskRequest::~ListAgentlessTaskRequest() {}
std::string ListAgentlessTaskRequest::getInternetIp() const {
return internetIp_;
}
void ListAgentlessTaskRequest::setInternetIp(const std::string &internetIp) {
internetIp_ = internetIp;
setParameter(std::string("InternetIp"), internetIp);
}
int ListAgentlessTaskRequest::getTargetType() const {
return targetType_;
}
void ListAgentlessTaskRequest::setTargetType(int targetType) {
targetType_ = targetType;
setParameter(std::string("TargetType"), std::to_string(targetType));
}
long ListAgentlessTaskRequest::getStartTime() const {
return startTime_;
}
void ListAgentlessTaskRequest::setStartTime(long startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), std::to_string(startTime));
}
std::string ListAgentlessTaskRequest::getUuid() const {
return uuid_;
}
void ListAgentlessTaskRequest::setUuid(const std::string &uuid) {
uuid_ = uuid;
setParameter(std::string("Uuid"), uuid);
}
std::string ListAgentlessTaskRequest::getTargetName() const {
return targetName_;
}
void ListAgentlessTaskRequest::setTargetName(const std::string &targetName) {
targetName_ = targetName;
setParameter(std::string("TargetName"), targetName);
}
std::string ListAgentlessTaskRequest::getSourceIp() const {
return sourceIp_;
}
void ListAgentlessTaskRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string ListAgentlessTaskRequest::getRootTaskId() const {
return rootTaskId_;
}
void ListAgentlessTaskRequest::setRootTaskId(const std::string &rootTaskId) {
rootTaskId_ = rootTaskId;
setParameter(std::string("RootTaskId"), rootTaskId);
}
int ListAgentlessTaskRequest::getPageSize() const {
return pageSize_;
}
void ListAgentlessTaskRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListAgentlessTaskRequest::getMachineName() const {
return machineName_;
}
void ListAgentlessTaskRequest::setMachineName(const std::string &machineName) {
machineName_ = machineName;
setParameter(std::string("MachineName"), machineName);
}
std::string ListAgentlessTaskRequest::getLang() const {
return lang_;
}
void ListAgentlessTaskRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}
std::string ListAgentlessTaskRequest::getTaskId() const {
return taskId_;
}
void ListAgentlessTaskRequest::setTaskId(const std::string &taskId) {
taskId_ = taskId;
setParameter(std::string("TaskId"), taskId);
}
long ListAgentlessTaskRequest::getEndTime() const {
return endTime_;
}
void ListAgentlessTaskRequest::setEndTime(long endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
int ListAgentlessTaskRequest::getCurrentPage() const {
return currentPage_;
}
void ListAgentlessTaskRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
bool ListAgentlessTaskRequest::getRootTask() const {
return rootTask_;
}
void ListAgentlessTaskRequest::setRootTask(bool rootTask) {
rootTask_ = rootTask;
setParameter(std::string("RootTask"), rootTask ? "true" : "false");
}
int ListAgentlessTaskRequest::getStatus() const {
return status_;
}
void ListAgentlessTaskRequest::setStatus(int status) {
status_ = status;
setParameter(std::string("Status"), std::to_string(status));
}
std::string ListAgentlessTaskRequest::getIntranetIp() const {
return intranetIp_;
}
void ListAgentlessTaskRequest::setIntranetIp(const std::string &intranetIp) {
intranetIp_ = intranetIp;
setParameter(std::string("IntranetIp"), intranetIp);
}

View File

@@ -0,0 +1,93 @@
/*
* 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/sas/model/ListAgentlessTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
ListAgentlessTaskResult::ListAgentlessTaskResult() :
ServiceResult()
{}
ListAgentlessTaskResult::ListAgentlessTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAgentlessTaskResult::~ListAgentlessTaskResult()
{}
void ListAgentlessTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allListNode = value["List"]["ListItem"];
for (auto valueListListItem : allListNode)
{
ListItem listObject;
if(!valueListListItem["TaskId"].isNull())
listObject.taskId = valueListListItem["TaskId"].asString();
if(!valueListListItem["TaskName"].isNull())
listObject.taskName = valueListListItem["TaskName"].asString();
if(!valueListListItem["TargetType"].isNull())
listObject.targetType = std::stoi(valueListListItem["TargetType"].asString());
if(!valueListListItem["Status"].isNull())
listObject.status = std::stoi(valueListListItem["Status"].asString());
if(!valueListListItem["Progress"].isNull())
listObject.progress = std::stoi(valueListListItem["Progress"].asString());
if(!valueListListItem["StartTime"].isNull())
listObject.startTime = std::stol(valueListListItem["StartTime"].asString());
if(!valueListListItem["EndTime"].isNull())
listObject.endTime = std::stol(valueListListItem["EndTime"].asString());
if(!valueListListItem["Result"].isNull())
listObject.result = valueListListItem["Result"].asString();
if(!valueListListItem["Uuid"].isNull())
listObject.uuid = valueListListItem["Uuid"].asString();
if(!valueListListItem["InternetIp"].isNull())
listObject.internetIp = valueListListItem["InternetIp"].asString();
if(!valueListListItem["IntranetIp"].isNull())
listObject.intranetIp = valueListListItem["IntranetIp"].asString();
if(!valueListListItem["InstanceName"].isNull())
listObject.instanceName = valueListListItem["InstanceName"].asString();
if(!valueListListItem["TargetName"].isNull())
listObject.targetName = valueListListItem["TargetName"].asString();
list_.push_back(listObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
if(!pageInfoNode["PageSize"].isNull())
pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
if(!pageInfoNode["TotalCount"].isNull())
pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString());
}
ListAgentlessTaskResult::PageInfo ListAgentlessTaskResult::getPageInfo()const
{
return pageInfo_;
}
std::vector<ListAgentlessTaskResult::ListItem> ListAgentlessTaskResult::getList()const
{
return list_;
}

View File

@@ -0,0 +1,36 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/ListAssetRefreshTaskConfigRequest.h>
using AlibabaCloud::Sas::Model::ListAssetRefreshTaskConfigRequest;
ListAssetRefreshTaskConfigRequest::ListAssetRefreshTaskConfigRequest()
: RpcServiceRequest("sas", "2018-12-03", "ListAssetRefreshTaskConfig") {
setMethod(HttpRequest::Method::Post);
}
ListAssetRefreshTaskConfigRequest::~ListAssetRefreshTaskConfigRequest() {}
std::string ListAssetRefreshTaskConfigRequest::getRegionId() const {
return regionId_;
}
void ListAssetRefreshTaskConfigRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/ListAssetRefreshTaskConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
ListAssetRefreshTaskConfigResult::ListAssetRefreshTaskConfigResult() :
ServiceResult()
{}
ListAssetRefreshTaskConfigResult::ListAssetRefreshTaskConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAssetRefreshTaskConfigResult::~ListAssetRefreshTaskConfigResult()
{}
void ListAssetRefreshTaskConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAssetRefreshConfigNode = value["AssetRefreshConfig"]["AssetRefreshConfigItem"];
for (auto valueAssetRefreshConfigAssetRefreshConfigItem : allAssetRefreshConfigNode)
{
AssetRefreshConfigItem assetRefreshConfigObject;
if(!valueAssetRefreshConfigAssetRefreshConfigItem["Vendor"].isNull())
assetRefreshConfigObject.vendor = std::stoi(valueAssetRefreshConfigAssetRefreshConfigItem["Vendor"].asString());
if(!valueAssetRefreshConfigAssetRefreshConfigItem["SchedulePeriod"].isNull())
assetRefreshConfigObject.schedulePeriod = std::stoi(valueAssetRefreshConfigAssetRefreshConfigItem["SchedulePeriod"].asString());
if(!valueAssetRefreshConfigAssetRefreshConfigItem["Status"].isNull())
assetRefreshConfigObject.status = std::stoi(valueAssetRefreshConfigAssetRefreshConfigItem["Status"].asString());
assetRefreshConfig_.push_back(assetRefreshConfigObject);
}
}
std::vector<ListAssetRefreshTaskConfigResult::AssetRefreshConfigItem> ListAssetRefreshTaskConfigResult::getAssetRefreshConfig()const
{
return assetRefreshConfig_;
}

View File

@@ -53,6 +53,8 @@ void ListCheckInstanceResultResult::parse(const std::string &payload)
basicDataObject.instanceId = valueBasicDataBasicDataItem["InstanceId"].asString();
if(!valueBasicDataBasicDataItem["InstanceName"].isNull())
basicDataObject.instanceName = valueBasicDataBasicDataItem["InstanceName"].asString();
if(!valueBasicDataBasicDataItem["StatusMessage"].isNull())
basicDataObject.statusMessage = valueBasicDataBasicDataItem["StatusMessage"].asString();
basicData_.push_back(basicDataObject);
}
auto allColumnsNode = value["Columns"]["ColumnsItem"];

View File

@@ -57,6 +57,15 @@ void ListCheckResultRequest::setInstanceTypes(const std::vector<std::string> &in
instanceTypes_ = instanceTypes;
}
bool ListCheckResultRequest::getCustomParam() const {
return customParam_;
}
void ListCheckResultRequest::setCustomParam(bool customParam) {
customParam_ = customParam;
setParameter(std::string("CustomParam"), customParam ? "true" : "false");
}
std::string ListCheckResultRequest::getCheckKey() const {
return checkKey_;
}

View File

@@ -65,6 +65,8 @@ void ListCheckResultResult::parse(const std::string &payload)
checksObject.lastCheckTime = std::stol(valueChecksChecksItem["LastCheckTime"].asString());
if(!valueChecksChecksItem["TrialPermission"].isNull())
checksObject.trialPermission = valueChecksChecksItem["TrialPermission"].asString() == "true";
if(!valueChecksChecksItem["StatusMessage"].isNull())
checksObject.statusMessage = valueChecksChecksItem["StatusMessage"].asString();
auto allCheckPoliciesNode = valueChecksChecksItem["CheckPolicies"]["CheckPolicie"];
for (auto valueChecksChecksItemCheckPoliciesCheckPolicie : allCheckPoliciesNode)
{

View File

@@ -33,3 +33,12 @@ void OperationCancelIgnoreSuspEventRequest::setSecurityEventIds(const std::vecto
securityEventIds_ = securityEventIds;
}
std::string OperationCancelIgnoreSuspEventRequest::getRemark() const {
return remark_;
}
void OperationCancelIgnoreSuspEventRequest::setRemark(const std::string &remark) {
remark_ = remark;
setParameter(std::string("Remark"), remark);
}

View File

@@ -34,3 +34,12 @@ void SubmitCheckRequest::setSourceIp(const std::string &sourceIp) {
setParameter(std::string("SourceIp"), sourceIp);
}
std::string SubmitCheckRequest::getScanRange() const {
return scanRange_;
}
void SubmitCheckRequest::setScanRange(const std::string &scanRange) {
scanRange_ = scanRange;
setParameter(std::string("ScanRange"), scanRange);
}