Add parameters to control different role.
This commit is contained in:
@@ -123,42 +123,6 @@ Cloud_siemClient::AddDataSourceLogOutcomeCallable Cloud_siemClient::addDataSourc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::AddUserOutcome Cloud_siemClient::addUser(const AddUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddUserOutcome(AddUserResult(outcome.result()));
|
||||
else
|
||||
return AddUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::addUserAsync(const AddUserRequest& request, const AddUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::AddUserOutcomeCallable Cloud_siemClient::addUserCallable(const AddUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::AddUserSourceLogConfigOutcome Cloud_siemClient::addUserSourceLogConfig(const AddUserSourceLogConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -195,78 +159,6 @@ Cloud_siemClient::AddUserSourceLogConfigOutcomeCallable Cloud_siemClient::addUse
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::BatchJobCheckOutcome Cloud_siemClient::batchJobCheck(const BatchJobCheckRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BatchJobCheckOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BatchJobCheckOutcome(BatchJobCheckResult(outcome.result()));
|
||||
else
|
||||
return BatchJobCheckOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::batchJobCheckAsync(const BatchJobCheckRequest& request, const BatchJobCheckAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, batchJobCheck(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::BatchJobCheckOutcomeCallable Cloud_siemClient::batchJobCheckCallable(const BatchJobCheckRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BatchJobCheckOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->batchJobCheck(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::BatchJobSubmitOutcome Cloud_siemClient::batchJobSubmit(const BatchJobSubmitRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BatchJobSubmitOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BatchJobSubmitOutcome(BatchJobSubmitResult(outcome.result()));
|
||||
else
|
||||
return BatchJobSubmitOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::batchJobSubmitAsync(const BatchJobSubmitRequest& request, const BatchJobSubmitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, batchJobSubmit(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::BatchJobSubmitOutcomeCallable Cloud_siemClient::batchJobSubmitCallable(const BatchJobSubmitRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BatchJobSubmitOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->batchJobSubmit(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::BindAccountOutcome Cloud_siemClient::bindAccount(const BindAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,78 +411,6 @@ Cloud_siemClient::DeleteDataSourceLogOutcomeCallable Cloud_siemClient::deleteDat
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::DeleteQuickQueryOutcome Cloud_siemClient::deleteQuickQuery(const DeleteQuickQueryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteQuickQueryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteQuickQueryOutcome(DeleteQuickQueryResult(outcome.result()));
|
||||
else
|
||||
return DeleteQuickQueryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::deleteQuickQueryAsync(const DeleteQuickQueryRequest& request, const DeleteQuickQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteQuickQuery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::DeleteQuickQueryOutcomeCallable Cloud_siemClient::deleteQuickQueryCallable(const DeleteQuickQueryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteQuickQueryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteQuickQuery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::DeleteUserOutcome Cloud_siemClient::deleteUser(const DeleteUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteUserOutcome(DeleteUserResult(outcome.result()));
|
||||
else
|
||||
return DeleteUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::deleteUserAsync(const DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::DeleteUserOutcomeCallable Cloud_siemClient::deleteUserCallable(const DeleteUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::DeleteWhiteRuleListOutcome Cloud_siemClient::deleteWhiteRuleList(const DeleteWhiteRuleListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -987,42 +807,6 @@ Cloud_siemClient::DescribeAlertsWithEventOutcomeCallable Cloud_siemClient::descr
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::DescribeAttackTimeLineOutcome Cloud_siemClient::describeAttackTimeLine(const DescribeAttackTimeLineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAttackTimeLineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAttackTimeLineOutcome(DescribeAttackTimeLineResult(outcome.result()));
|
||||
else
|
||||
return DescribeAttackTimeLineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::describeAttackTimeLineAsync(const DescribeAttackTimeLineRequest& request, const DescribeAttackTimeLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAttackTimeLine(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::DescribeAttackTimeLineOutcomeCallable Cloud_siemClient::describeAttackTimeLineCallable(const DescribeAttackTimeLineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAttackTimeLineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAttackTimeLine(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::DescribeAuthOutcome Cloud_siemClient::describeAuth(const DescribeAuthRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1311,78 +1095,6 @@ Cloud_siemClient::DescribeCloudSiemEventsOutcomeCallable Cloud_siemClient::descr
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::DescribeCsImportedProdStatusByUserOutcome Cloud_siemClient::describeCsImportedProdStatusByUser(const DescribeCsImportedProdStatusByUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCsImportedProdStatusByUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCsImportedProdStatusByUserOutcome(DescribeCsImportedProdStatusByUserResult(outcome.result()));
|
||||
else
|
||||
return DescribeCsImportedProdStatusByUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::describeCsImportedProdStatusByUserAsync(const DescribeCsImportedProdStatusByUserRequest& request, const DescribeCsImportedProdStatusByUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCsImportedProdStatusByUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::DescribeCsImportedProdStatusByUserOutcomeCallable Cloud_siemClient::describeCsImportedProdStatusByUserCallable(const DescribeCsImportedProdStatusByUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCsImportedProdStatusByUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCsImportedProdStatusByUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::DescribeCustomizeRuleOutcome Cloud_siemClient::describeCustomizeRule(const DescribeCustomizeRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCustomizeRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCustomizeRuleOutcome(DescribeCustomizeRuleResult(outcome.result()));
|
||||
else
|
||||
return DescribeCustomizeRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::describeCustomizeRuleAsync(const DescribeCustomizeRuleRequest& request, const DescribeCustomizeRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCustomizeRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::DescribeCustomizeRuleOutcomeCallable Cloud_siemClient::describeCustomizeRuleCallable(const DescribeCustomizeRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCustomizeRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCustomizeRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::DescribeCustomizeRuleCountOutcome Cloud_siemClient::describeCustomizeRuleCount(const DescribeCustomizeRuleCountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1779,42 +1491,6 @@ Cloud_siemClient::DescribeImportedLogCountOutcomeCallable Cloud_siemClient::desc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::DescribeJobStatusOutcome Cloud_siemClient::describeJobStatus(const DescribeJobStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeJobStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeJobStatusOutcome(DescribeJobStatusResult(outcome.result()));
|
||||
else
|
||||
return DescribeJobStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::describeJobStatusAsync(const DescribeJobStatusRequest& request, const DescribeJobStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeJobStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::DescribeJobStatusOutcomeCallable Cloud_siemClient::describeJobStatusCallable(const DescribeJobStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeJobStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeJobStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::DescribeLogFieldsOutcome Cloud_siemClient::describeLogFields(const DescribeLogFieldsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1887,42 +1563,6 @@ Cloud_siemClient::DescribeLogSourceOutcomeCallable Cloud_siemClient::describeLog
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::DescribeLogStoreOutcome Cloud_siemClient::describeLogStore(const DescribeLogStoreRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLogStoreOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLogStoreOutcome(DescribeLogStoreResult(outcome.result()));
|
||||
else
|
||||
return DescribeLogStoreOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::describeLogStoreAsync(const DescribeLogStoreRequest& request, const DescribeLogStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLogStore(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::DescribeLogStoreOutcomeCallable Cloud_siemClient::describeLogStoreCallable(const DescribeLogStoreRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLogStoreOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLogStore(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::DescribeLogTypeOutcome Cloud_siemClient::describeLogType(const DescribeLogTypeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2247,78 +1887,6 @@ Cloud_siemClient::DescribeWhiteRuleListOutcomeCallable Cloud_siemClient::describ
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::DoQuickFieldOutcome Cloud_siemClient::doQuickField(const DoQuickFieldRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DoQuickFieldOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DoQuickFieldOutcome(DoQuickFieldResult(outcome.result()));
|
||||
else
|
||||
return DoQuickFieldOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::doQuickFieldAsync(const DoQuickFieldRequest& request, const DoQuickFieldAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, doQuickField(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::DoQuickFieldOutcomeCallable Cloud_siemClient::doQuickFieldCallable(const DoQuickFieldRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DoQuickFieldOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->doQuickField(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::DoSelfDelegateOutcome Cloud_siemClient::doSelfDelegate(const DoSelfDelegateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DoSelfDelegateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DoSelfDelegateOutcome(DoSelfDelegateResult(outcome.result()));
|
||||
else
|
||||
return DoSelfDelegateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::doSelfDelegateAsync(const DoSelfDelegateRequest& request, const DoSelfDelegateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, doSelfDelegate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::DoSelfDelegateOutcomeCallable Cloud_siemClient::doSelfDelegateCallable(const DoSelfDelegateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DoSelfDelegateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->doSelfDelegate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::EnableAccessForCloudSiemOutcome Cloud_siemClient::enableAccessForCloudSiem(const EnableAccessForCloudSiemRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2427,114 +1995,6 @@ Cloud_siemClient::GetCapacityOutcomeCallable Cloud_siemClient::getCapacityCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::GetHistogramsOutcome Cloud_siemClient::getHistograms(const GetHistogramsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetHistogramsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetHistogramsOutcome(GetHistogramsResult(outcome.result()));
|
||||
else
|
||||
return GetHistogramsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::getHistogramsAsync(const GetHistogramsRequest& request, const GetHistogramsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getHistograms(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::GetHistogramsOutcomeCallable Cloud_siemClient::getHistogramsCallable(const GetHistogramsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetHistogramsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getHistograms(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::GetLogsOutcome Cloud_siemClient::getLogs(const GetLogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetLogsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetLogsOutcome(GetLogsResult(outcome.result()));
|
||||
else
|
||||
return GetLogsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::getLogsAsync(const GetLogsRequest& request, const GetLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getLogs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::GetLogsOutcomeCallable Cloud_siemClient::getLogsCallable(const GetLogsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetLogsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getLogs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::GetQuickQueryOutcome Cloud_siemClient::getQuickQuery(const GetQuickQueryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetQuickQueryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetQuickQueryOutcome(GetQuickQueryResult(outcome.result()));
|
||||
else
|
||||
return GetQuickQueryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::getQuickQueryAsync(const GetQuickQueryRequest& request, const GetQuickQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getQuickQuery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::GetQuickQueryOutcomeCallable Cloud_siemClient::getQuickQueryCallable(const GetQuickQueryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetQuickQueryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getQuickQuery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::GetStorageOutcome Cloud_siemClient::getStorage(const GetStorageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3039,6 +2499,42 @@ Cloud_siemClient::ListDisposeStrategyOutcomeCallable Cloud_siemClient::listDispo
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::ListEntitiesOutcome Cloud_siemClient::listEntities(const ListEntitiesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListEntitiesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListEntitiesOutcome(ListEntitiesResult(outcome.result()));
|
||||
else
|
||||
return ListEntitiesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::listEntitiesAsync(const ListEntitiesRequest& request, const ListEntitiesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listEntities(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::ListEntitiesOutcomeCallable Cloud_siemClient::listEntitiesCallable(const ListEntitiesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListEntitiesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listEntities(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::ListImportedLogsByProdOutcome Cloud_siemClient::listImportedLogsByProd(const ListImportedLogsByProdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3075,42 +2571,6 @@ Cloud_siemClient::ListImportedLogsByProdOutcomeCallable Cloud_siemClient::listIm
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::ListOperationOutcome Cloud_siemClient::listOperation(const ListOperationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListOperationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListOperationOutcome(ListOperationResult(outcome.result()));
|
||||
else
|
||||
return ListOperationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::listOperationAsync(const ListOperationRequest& request, const ListOperationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listOperation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::ListOperationOutcomeCallable Cloud_siemClient::listOperationCallable(const ListOperationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListOperationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listOperation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::ListProjectLogStoresOutcome Cloud_siemClient::listProjectLogStores(const ListProjectLogStoresRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3147,42 +2607,6 @@ Cloud_siemClient::ListProjectLogStoresOutcomeCallable Cloud_siemClient::listProj
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::ListQuickQueryOutcome Cloud_siemClient::listQuickQuery(const ListQuickQueryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListQuickQueryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListQuickQueryOutcome(ListQuickQueryResult(outcome.result()));
|
||||
else
|
||||
return ListQuickQueryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::listQuickQueryAsync(const ListQuickQueryRequest& request, const ListQuickQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listQuickQuery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::ListQuickQueryOutcomeCallable Cloud_siemClient::listQuickQueryCallable(const ListQuickQueryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListQuickQueryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listQuickQuery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::ListRdUsersOutcome Cloud_siemClient::listRdUsers(const ListRdUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3219,78 +2643,6 @@ Cloud_siemClient::ListRdUsersOutcomeCallable Cloud_siemClient::listRdUsersCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::ListUserProdLogsOutcome Cloud_siemClient::listUserProdLogs(const ListUserProdLogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListUserProdLogsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListUserProdLogsOutcome(ListUserProdLogsResult(outcome.result()));
|
||||
else
|
||||
return ListUserProdLogsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::listUserProdLogsAsync(const ListUserProdLogsRequest& request, const ListUserProdLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listUserProdLogs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::ListUserProdLogsOutcomeCallable Cloud_siemClient::listUserProdLogsCallable(const ListUserProdLogsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListUserProdLogsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listUserProdLogs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::ListUsersByProdOutcome Cloud_siemClient::listUsersByProd(const ListUsersByProdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListUsersByProdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListUsersByProdOutcome(ListUsersByProdResult(outcome.result()));
|
||||
else
|
||||
return ListUsersByProdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::listUsersByProdAsync(const ListUsersByProdRequest& request, const ListUsersByProdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listUsersByProd(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::ListUsersByProdOutcomeCallable Cloud_siemClient::listUsersByProdCallable(const ListUsersByProdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListUsersByProdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listUsersByProd(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::ModifyBindAccountOutcome Cloud_siemClient::modifyBindAccount(const ModifyBindAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3723,42 +3075,6 @@ Cloud_siemClient::RestoreCapacityOutcomeCallable Cloud_siemClient::restoreCapaci
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::SaveQuickQueryOutcome Cloud_siemClient::saveQuickQuery(const SaveQuickQueryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SaveQuickQueryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SaveQuickQueryOutcome(SaveQuickQueryResult(outcome.result()));
|
||||
else
|
||||
return SaveQuickQueryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::saveQuickQueryAsync(const SaveQuickQueryRequest& request, const SaveQuickQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, saveQuickQuery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::SaveQuickQueryOutcomeCallable Cloud_siemClient::saveQuickQueryCallable(const SaveQuickQueryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SaveQuickQueryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->saveQuickQuery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::SetStorageOutcome Cloud_siemClient::setStorage(const SetStorageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3795,42 +3111,6 @@ Cloud_siemClient::SetStorageOutcomeCallable Cloud_siemClient::setStorageCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::ShowQuickAnalysisOutcome Cloud_siemClient::showQuickAnalysis(const ShowQuickAnalysisRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ShowQuickAnalysisOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ShowQuickAnalysisOutcome(ShowQuickAnalysisResult(outcome.result()));
|
||||
else
|
||||
return ShowQuickAnalysisOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::showQuickAnalysisAsync(const ShowQuickAnalysisRequest& request, const ShowQuickAnalysisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, showQuickAnalysis(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::ShowQuickAnalysisOutcomeCallable Cloud_siemClient::showQuickAnalysisCallable(const ShowQuickAnalysisRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ShowQuickAnalysisOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->showQuickAnalysis(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::SubmitImportLogTasksOutcome Cloud_siemClient::submitImportLogTasks(const SubmitImportLogTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3867,42 +3147,6 @@ Cloud_siemClient::SubmitImportLogTasksOutcomeCallable Cloud_siemClient::submitIm
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::SubmitJobsOutcome Cloud_siemClient::submitJobs(const SubmitJobsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitJobsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitJobsOutcome(SubmitJobsResult(outcome.result()));
|
||||
else
|
||||
return SubmitJobsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Cloud_siemClient::submitJobsAsync(const SubmitJobsRequest& request, const SubmitJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitJobs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Cloud_siemClient::SubmitJobsOutcomeCallable Cloud_siemClient::submitJobsCallable(const SubmitJobsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitJobsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitJobs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Cloud_siemClient::UpdateAutomateResponseConfigStatusOutcome Cloud_siemClient::updateAutomateResponseConfigStatus(const UpdateAutomateResponseConfigStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/AddUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloud_siem::Model::AddUserRequest;
|
||||
|
||||
AddUserRequest::AddUserRequest()
|
||||
: RpcServiceRequest("cloud-siem", "2022-06-16", "AddUser") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddUserRequest::~AddUserRequest() {}
|
||||
|
||||
long AddUserRequest::getAddedUserId() const {
|
||||
return addedUserId_;
|
||||
}
|
||||
|
||||
void AddUserRequest::setAddedUserId(long addedUserId) {
|
||||
addedUserId_ = addedUserId;
|
||||
setBodyParameter(std::string("AddedUserId"), std::to_string(addedUserId));
|
||||
}
|
||||
|
||||
std::string AddUserRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddUserRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/AddUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloud_siem;
|
||||
using namespace AlibabaCloud::Cloud_siem::Model;
|
||||
|
||||
AddUserResult::AddUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddUserResult::AddUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddUserResult::~AddUserResult()
|
||||
{}
|
||||
|
||||
void AddUserResult::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";
|
||||
|
||||
}
|
||||
|
||||
bool AddUserResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/BatchJobCheckRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloud_siem::Model::BatchJobCheckRequest;
|
||||
|
||||
BatchJobCheckRequest::BatchJobCheckRequest()
|
||||
: RpcServiceRequest("cloud-siem", "2022-06-16", "BatchJobCheck") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchJobCheckRequest::~BatchJobCheckRequest() {}
|
||||
|
||||
std::string BatchJobCheckRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void BatchJobCheckRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string BatchJobCheckRequest::getSubmitId() const {
|
||||
return submitId_;
|
||||
}
|
||||
|
||||
void BatchJobCheckRequest::setSubmitId(const std::string &submitId) {
|
||||
submitId_ = submitId;
|
||||
setBodyParameter(std::string("SubmitId"), submitId);
|
||||
}
|
||||
|
||||
@@ -1,124 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/BatchJobCheckResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloud_siem;
|
||||
using namespace AlibabaCloud::Cloud_siem::Model;
|
||||
|
||||
BatchJobCheckResult::BatchJobCheckResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchJobCheckResult::BatchJobCheckResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchJobCheckResult::~BatchJobCheckResult()
|
||||
{}
|
||||
|
||||
void BatchJobCheckResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TaskCount"].isNull())
|
||||
data_.taskCount = std::stoi(dataNode["TaskCount"].asString());
|
||||
if(!dataNode["FinishCount"].isNull())
|
||||
data_.finishCount = std::stoi(dataNode["FinishCount"].asString());
|
||||
if(!dataNode["FailedCount"].isNull())
|
||||
data_.failedCount = std::stoi(dataNode["FailedCount"].asString());
|
||||
if(!dataNode["TaskStatus"].isNull())
|
||||
data_.taskStatus = dataNode["TaskStatus"].asString();
|
||||
if(!dataNode["ConfigId"].isNull())
|
||||
data_.configId = dataNode["ConfigId"].asString();
|
||||
if(!dataNode["FolderId"].isNull())
|
||||
data_.folderId = dataNode["FolderId"].asString();
|
||||
auto allErrTaskListNode = dataNode["ErrTaskList"]["ErrTaskListItem"];
|
||||
for (auto dataNodeErrTaskListErrTaskListItem : allErrTaskListNode)
|
||||
{
|
||||
Data::ErrTaskListItem errTaskListItemObject;
|
||||
if(!dataNodeErrTaskListErrTaskListItem["UserId"].isNull())
|
||||
errTaskListItemObject.userId = std::stol(dataNodeErrTaskListErrTaskListItem["UserId"].asString());
|
||||
auto allProductListNode = dataNodeErrTaskListErrTaskListItem["ProductList"]["ProductListItem"];
|
||||
for (auto dataNodeErrTaskListErrTaskListItemProductListProductListItem : allProductListNode)
|
||||
{
|
||||
Data::ErrTaskListItem::ProductListItem productListObject;
|
||||
if(!dataNodeErrTaskListErrTaskListItemProductListProductListItem["ProductCode"].isNull())
|
||||
productListObject.productCode = dataNodeErrTaskListErrTaskListItemProductListProductListItem["ProductCode"].asString();
|
||||
auto allLogListNode = dataNodeErrTaskListErrTaskListItemProductListProductListItem["LogList"]["LogListItem"];
|
||||
for (auto dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem : allLogListNode)
|
||||
{
|
||||
Data::ErrTaskListItem::ProductListItem::LogListItem logListObject;
|
||||
if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ProductCode"].isNull())
|
||||
logListObject.productCode = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ProductCode"].asString();
|
||||
if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["LogCode"].isNull())
|
||||
logListObject.logCode = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["LogCode"].asString();
|
||||
if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["RegionCode"].isNull())
|
||||
logListObject.regionCode = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["RegionCode"].asString();
|
||||
if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ProjectNamePattern"].isNull())
|
||||
logListObject.projectNamePattern = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ProjectNamePattern"].asString();
|
||||
if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["LogStoreNamePattern"].isNull())
|
||||
logListObject.logStoreNamePattern = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["LogStoreNamePattern"].asString();
|
||||
if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ErrorCode"].isNull())
|
||||
logListObject.errorCode = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ErrorCode"].asString();
|
||||
productListObject.logList.push_back(logListObject);
|
||||
}
|
||||
errTaskListItemObject.productList.push_back(productListObject);
|
||||
}
|
||||
data_.errTaskList.push_back(errTaskListItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BatchJobCheckResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
BatchJobCheckResult::Data BatchJobCheckResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int BatchJobCheckResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchJobCheckResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string BatchJobCheckResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/BatchJobSubmitRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloud_siem::Model::BatchJobSubmitRequest;
|
||||
|
||||
BatchJobSubmitRequest::BatchJobSubmitRequest()
|
||||
: RpcServiceRequest("cloud-siem", "2022-06-16", "BatchJobSubmit") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchJobSubmitRequest::~BatchJobSubmitRequest() {}
|
||||
|
||||
std::string BatchJobSubmitRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void BatchJobSubmitRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string BatchJobSubmitRequest::getJsonConfig() const {
|
||||
return jsonConfig_;
|
||||
}
|
||||
|
||||
void BatchJobSubmitRequest::setJsonConfig(const std::string &jsonConfig) {
|
||||
jsonConfig_ = jsonConfig;
|
||||
setBodyParameter(std::string("JsonConfig"), jsonConfig);
|
||||
}
|
||||
|
||||
@@ -1,118 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/BatchJobSubmitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloud_siem;
|
||||
using namespace AlibabaCloud::Cloud_siem::Model;
|
||||
|
||||
BatchJobSubmitResult::BatchJobSubmitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchJobSubmitResult::BatchJobSubmitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchJobSubmitResult::~BatchJobSubmitResult()
|
||||
{}
|
||||
|
||||
void BatchJobSubmitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["SubmitId"].isNull())
|
||||
data_.submitId = dataNode["SubmitId"].asString();
|
||||
if(!dataNode["TaskCount"].isNull())
|
||||
data_.taskCount = std::stoi(dataNode["TaskCount"].asString());
|
||||
if(!dataNode["ConfigId"].isNull())
|
||||
data_.configId = dataNode["ConfigId"].asString();
|
||||
auto allConfigListNode = dataNode["ConfigList"]["ConfigListItem"];
|
||||
for (auto dataNodeConfigListConfigListItem : allConfigListNode)
|
||||
{
|
||||
Data::ConfigListItem configListItemObject;
|
||||
if(!dataNodeConfigListConfigListItem["UserId"].isNull())
|
||||
configListItemObject.userId = std::stol(dataNodeConfigListConfigListItem["UserId"].asString());
|
||||
auto allProductListNode = dataNodeConfigListConfigListItem["ProductList"]["ProductListItem"];
|
||||
for (auto dataNodeConfigListConfigListItemProductListProductListItem : allProductListNode)
|
||||
{
|
||||
Data::ConfigListItem::ProductListItem productListObject;
|
||||
if(!dataNodeConfigListConfigListItemProductListProductListItem["ProductCode"].isNull())
|
||||
productListObject.productCode = dataNodeConfigListConfigListItemProductListProductListItem["ProductCode"].asString();
|
||||
auto allLogListNode = dataNodeConfigListConfigListItemProductListProductListItem["LogList"]["LogListItem"];
|
||||
for (auto dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem : allLogListNode)
|
||||
{
|
||||
Data::ConfigListItem::ProductListItem::LogListItem logListObject;
|
||||
if(!dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["ProductCode"].isNull())
|
||||
logListObject.productCode = dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["ProductCode"].asString();
|
||||
if(!dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["LogCode"].isNull())
|
||||
logListObject.logCode = dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["LogCode"].asString();
|
||||
if(!dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["RegionCode"].isNull())
|
||||
logListObject.regionCode = dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["RegionCode"].asString();
|
||||
if(!dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["ProjectNamePattern"].isNull())
|
||||
logListObject.projectNamePattern = dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["ProjectNamePattern"].asString();
|
||||
if(!dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["LogStoreNamePattern"].isNull())
|
||||
logListObject.logStoreNamePattern = dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["LogStoreNamePattern"].asString();
|
||||
if(!dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["ErrorCode"].isNull())
|
||||
logListObject.errorCode = dataNodeConfigListConfigListItemProductListProductListItemLogListLogListItem["ErrorCode"].asString();
|
||||
productListObject.logList.push_back(logListObject);
|
||||
}
|
||||
configListItemObject.productList.push_back(productListObject);
|
||||
}
|
||||
data_.configList.push_back(configListItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BatchJobSubmitResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
BatchJobSubmitResult::Data BatchJobSubmitResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int BatchJobSubmitResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchJobSubmitResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string BatchJobSubmitResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void BindAccountRequest::setCloudCode(const std::string &cloudCode) {
|
||||
setBodyParameter(std::string("CloudCode"), cloudCode);
|
||||
}
|
||||
|
||||
long BindAccountRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void BindAccountRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string BindAccountRequest::getAccountId() const {
|
||||
return accountId_;
|
||||
}
|
||||
@@ -61,6 +70,15 @@ void BindAccountRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int BindAccountRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void BindAccountRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::string BindAccountRequest::getAccessId() const {
|
||||
return accessId_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void CloseDeliveryRequest::setProductCode(const std::string &productCode) {
|
||||
setBodyParameter(std::string("ProductCode"), productCode);
|
||||
}
|
||||
|
||||
long CloseDeliveryRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void CloseDeliveryRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string CloseDeliveryRequest::getLogCode() const {
|
||||
return logCode_;
|
||||
}
|
||||
@@ -52,3 +61,12 @@ void CloseDeliveryRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int CloseDeliveryRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void CloseDeliveryRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DeleteAutomateResponseConfigRequest::DeleteAutomateResponseConfigRequest()
|
||||
|
||||
DeleteAutomateResponseConfigRequest::~DeleteAutomateResponseConfigRequest() {}
|
||||
|
||||
long DeleteAutomateResponseConfigRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DeleteAutomateResponseConfigRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DeleteAutomateResponseConfigRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,6 +43,15 @@ void DeleteAutomateResponseConfigRequest::setRegionId(const std::string ®ionI
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DeleteAutomateResponseConfigRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DeleteAutomateResponseConfigRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
long DeleteAutomateResponseConfigRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteAutomateResponseConfigResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,15 @@ void DeleteBindAccountRequest::setCloudCode(const std::string &cloudCode) {
|
||||
setBodyParameter(std::string("CloudCode"), cloudCode);
|
||||
}
|
||||
|
||||
long DeleteBindAccountRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DeleteBindAccountRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DeleteBindAccountRequest::getAccountId() const {
|
||||
return accountId_;
|
||||
}
|
||||
@@ -52,6 +61,15 @@ void DeleteBindAccountRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DeleteBindAccountRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DeleteBindAccountRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
long DeleteBindAccountRequest::getBindId() const {
|
||||
return bindId_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DeleteCustomizeRuleRequest::DeleteCustomizeRuleRequest()
|
||||
|
||||
DeleteCustomizeRuleRequest::~DeleteCustomizeRuleRequest() {}
|
||||
|
||||
long DeleteCustomizeRuleRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DeleteCustomizeRuleRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DeleteCustomizeRuleRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,6 +43,15 @@ void DeleteCustomizeRuleRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DeleteCustomizeRuleRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DeleteCustomizeRuleRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
long DeleteCustomizeRuleRequest::getRuleId() const {
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteCustomizeRuleResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stoi(value["Data"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stoi(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DeleteQuickQueryRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloud_siem::Model::DeleteQuickQueryRequest;
|
||||
|
||||
DeleteQuickQueryRequest::DeleteQuickQueryRequest()
|
||||
: RpcServiceRequest("cloud-siem", "2022-06-16", "DeleteQuickQuery") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteQuickQueryRequest::~DeleteQuickQueryRequest() {}
|
||||
|
||||
std::string DeleteQuickQueryRequest::getSearchName() const {
|
||||
return searchName_;
|
||||
}
|
||||
|
||||
void DeleteQuickQueryRequest::setSearchName(const std::string &searchName) {
|
||||
searchName_ = searchName;
|
||||
setBodyParameter(std::string("SearchName"), searchName);
|
||||
}
|
||||
|
||||
std::string DeleteQuickQueryRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteQuickQueryRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DeleteQuickQueryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloud_siem;
|
||||
using namespace AlibabaCloud::Cloud_siem::Model;
|
||||
|
||||
DeleteQuickQueryResult::DeleteQuickQueryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteQuickQueryResult::DeleteQuickQueryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteQuickQueryResult::~DeleteQuickQueryResult()
|
||||
{}
|
||||
|
||||
void DeleteQuickQueryResult::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";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteQuickQueryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DeleteUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloud_siem::Model::DeleteUserRequest;
|
||||
|
||||
DeleteUserRequest::DeleteUserRequest()
|
||||
: RpcServiceRequest("cloud-siem", "2022-06-16", "DeleteUser") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteUserRequest::~DeleteUserRequest() {}
|
||||
|
||||
long DeleteUserRequest::getAddedUserId() const {
|
||||
return addedUserId_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setAddedUserId(long addedUserId) {
|
||||
addedUserId_ = addedUserId;
|
||||
setBodyParameter(std::string("AddedUserId"), std::to_string(addedUserId));
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DeleteUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloud_siem;
|
||||
using namespace AlibabaCloud::Cloud_siem::Model;
|
||||
|
||||
DeleteUserResult::DeleteUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteUserResult::DeleteUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteUserResult::~DeleteUserResult()
|
||||
{}
|
||||
|
||||
void DeleteUserResult::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";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteUserResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DeleteWhiteRuleListRequest::DeleteWhiteRuleListRequest()
|
||||
|
||||
DeleteWhiteRuleListRequest::~DeleteWhiteRuleListRequest() {}
|
||||
|
||||
long DeleteWhiteRuleListRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DeleteWhiteRuleListRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DeleteWhiteRuleListRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,6 +43,15 @@ void DeleteWhiteRuleListRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DeleteWhiteRuleListRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DeleteWhiteRuleListRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
long DeleteWhiteRuleListRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeAggregateFunctionRequest::DescribeAggregateFunctionRequest()
|
||||
|
||||
DescribeAggregateFunctionRequest::~DescribeAggregateFunctionRequest() {}
|
||||
|
||||
long DescribeAggregateFunctionRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeAggregateFunctionRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeAggregateFunctionRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,3 +43,12 @@ void DescribeAggregateFunctionRequest::setRegionId(const std::string ®ionId)
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeAggregateFunctionRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeAggregateFunctionRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeAlertSceneByEventRequest::DescribeAlertSceneByEventRequest()
|
||||
|
||||
DescribeAlertSceneByEventRequest::~DescribeAlertSceneByEventRequest() {}
|
||||
|
||||
long DescribeAlertSceneByEventRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeAlertSceneByEventRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeAlertSceneByEventRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,6 +43,15 @@ void DescribeAlertSceneByEventRequest::setRegionId(const std::string ®ionId)
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeAlertSceneByEventRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeAlertSceneByEventRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::string DescribeAlertSceneByEventRequest::getIncidentUuid() const {
|
||||
return incidentUuid_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeAlertSceneRequest::DescribeAlertSceneRequest()
|
||||
|
||||
DescribeAlertSceneRequest::~DescribeAlertSceneRequest() {}
|
||||
|
||||
long DescribeAlertSceneRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeAlertSceneRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeAlertSceneRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,3 +43,12 @@ void DescribeAlertSceneRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeAlertSceneRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeAlertSceneRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeAlertSourceRequest::DescribeAlertSourceRequest()
|
||||
|
||||
DescribeAlertSourceRequest::~DescribeAlertSourceRequest() {}
|
||||
|
||||
long DescribeAlertSourceRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeAlertSourceRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
long DescribeAlertSourceRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
@@ -43,6 +52,15 @@ void DescribeAlertSourceRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeAlertSourceRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeAlertSourceRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeAlertSourceRequest::getLevel() const {
|
||||
return level_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeAlertSourceWithEventRequest::DescribeAlertSourceWithEventRequest()
|
||||
|
||||
DescribeAlertSourceWithEventRequest::~DescribeAlertSourceWithEventRequest() {}
|
||||
|
||||
long DescribeAlertSourceWithEventRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeAlertSourceWithEventRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeAlertSourceWithEventRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,6 +43,15 @@ void DescribeAlertSourceWithEventRequest::setRegionId(const std::string ®ionI
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeAlertSourceWithEventRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeAlertSourceWithEventRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::string DescribeAlertSourceWithEventRequest::getIncidentUuid() const {
|
||||
return incidentUuid_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeAlertTypeRequest::DescribeAlertTypeRequest()
|
||||
|
||||
DescribeAlertTypeRequest::~DescribeAlertTypeRequest() {}
|
||||
|
||||
long DescribeAlertTypeRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeAlertTypeRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeAlertTypeRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,3 +43,21 @@ void DescribeAlertTypeRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeAlertTypeRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeAlertTypeRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::string DescribeAlertTypeRequest::getRuleType() const {
|
||||
return ruleType_;
|
||||
}
|
||||
|
||||
void DescribeAlertTypeRequest::setRuleType(const std::string &ruleType) {
|
||||
ruleType_ = ruleType;
|
||||
setBodyParameter(std::string("RuleType"), ruleType);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeAlertsCountRequest::DescribeAlertsCountRequest()
|
||||
|
||||
DescribeAlertsCountRequest::~DescribeAlertsCountRequest() {}
|
||||
|
||||
long DescribeAlertsCountRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeAlertsCountRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
long DescribeAlertsCountRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
@@ -43,6 +52,24 @@ void DescribeAlertsCountRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeAlertsCountRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeAlertsCountRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::string DescribeAlertsCountRequest::getQueryType() const {
|
||||
return queryType_;
|
||||
}
|
||||
|
||||
void DescribeAlertsCountRequest::setQueryType(const std::string &queryType) {
|
||||
queryType_ = queryType;
|
||||
setBodyParameter(std::string("QueryType"), queryType);
|
||||
}
|
||||
|
||||
long DescribeAlertsCountRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
@@ -50,6 +50,8 @@ void DescribeAlertsCountResult::parse(const std::string &payload)
|
||||
data_.all = std::stol(dataNode["All"].asString());
|
||||
if(!dataNode["ProductNum"].isNull())
|
||||
data_.productNum = std::stoi(dataNode["ProductNum"].asString());
|
||||
if(!dataNode["CountMap"].isNull())
|
||||
data_.countMap = dataNode["CountMap"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -25,6 +25,51 @@ DescribeAlertsRequest::DescribeAlertsRequest()
|
||||
|
||||
DescribeAlertsRequest::~DescribeAlertsRequest() {}
|
||||
|
||||
long DescribeAlertsRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeAlertsRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeAlertsRequest::getAlertName() const {
|
||||
return alertName_;
|
||||
}
|
||||
|
||||
void DescribeAlertsRequest::setAlertName(const std::string &alertName) {
|
||||
alertName_ = alertName;
|
||||
setBodyParameter(std::string("AlertName"), alertName);
|
||||
}
|
||||
|
||||
std::string DescribeAlertsRequest::getEntityName() const {
|
||||
return entityName_;
|
||||
}
|
||||
|
||||
void DescribeAlertsRequest::setEntityName(const std::string &entityName) {
|
||||
entityName_ = entityName;
|
||||
setBodyParameter(std::string("EntityName"), entityName);
|
||||
}
|
||||
|
||||
std::string DescribeAlertsRequest::getAssetName() const {
|
||||
return assetName_;
|
||||
}
|
||||
|
||||
void DescribeAlertsRequest::setAssetName(const std::string &assetName) {
|
||||
assetName_ = assetName;
|
||||
setBodyParameter(std::string("AssetName"), assetName);
|
||||
}
|
||||
|
||||
std::string DescribeAlertsRequest::getEntityId() const {
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
void DescribeAlertsRequest::setEntityId(const std::string &entityId) {
|
||||
entityId_ = entityId;
|
||||
setBodyParameter(std::string("EntityId"), entityId);
|
||||
}
|
||||
|
||||
std::string DescribeAlertsRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
@@ -79,6 +124,15 @@ void DescribeAlertsRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeAlertsRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeAlertsRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeAlertsRequest::getLevel() const {
|
||||
return level_;
|
||||
}
|
||||
@@ -114,6 +168,15 @@ void DescribeAlertsRequest::setCurrentPage(int currentPage) {
|
||||
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeAlertsRequest::getAlertType() const {
|
||||
return alertType_;
|
||||
}
|
||||
|
||||
void DescribeAlertsRequest::setAlertType(const std::string &alertType) {
|
||||
alertType_ = alertType;
|
||||
setBodyParameter(std::string("AlertType"), alertType);
|
||||
}
|
||||
|
||||
std::string DescribeAlertsRequest::getAlertUuid() const {
|
||||
return alertUuid_;
|
||||
}
|
||||
@@ -123,3 +186,21 @@ void DescribeAlertsRequest::setAlertUuid(const std::string &alertUuid) {
|
||||
setBodyParameter(std::string("AlertUuid"), alertUuid);
|
||||
}
|
||||
|
||||
std::string DescribeAlertsRequest::getAssetId() const {
|
||||
return assetId_;
|
||||
}
|
||||
|
||||
void DescribeAlertsRequest::setAssetId(const std::string &assetId) {
|
||||
assetId_ = assetId;
|
||||
setBodyParameter(std::string("AssetId"), assetId);
|
||||
}
|
||||
|
||||
std::string DescribeAlertsRequest::getLabelType() const {
|
||||
return labelType_;
|
||||
}
|
||||
|
||||
void DescribeAlertsRequest::setLabelType(const std::string &labelType) {
|
||||
labelType_ = labelType;
|
||||
setBodyParameter(std::string("LabelType"), labelType);
|
||||
}
|
||||
|
||||
|
||||
@@ -98,10 +98,14 @@ void DescribeAlertsResult::parse(const std::string &payload)
|
||||
responseDataItemObject.alertDetail = dataNodeResponseDataResponseDataItem["AlertDetail"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["LogUuid"].isNull())
|
||||
responseDataItemObject.logUuid = dataNodeResponseDataResponseDataItem["LogUuid"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["EntityList"].isNull())
|
||||
responseDataItemObject.entityList = dataNodeResponseDataResponseDataItem["EntityList"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["AttCk"].isNull())
|
||||
responseDataItemObject.attCk = dataNodeResponseDataResponseDataItem["AttCk"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["SubUserId"].isNull())
|
||||
responseDataItemObject.subUserId = std::stol(dataNodeResponseDataResponseDataItem["SubUserId"].asString());
|
||||
if(!dataNodeResponseDataResponseDataItem["SubUserName"].isNull())
|
||||
responseDataItemObject.subUserName = dataNodeResponseDataResponseDataItem["SubUserName"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["CloudCode"].isNull())
|
||||
responseDataItemObject.cloudCode = dataNodeResponseDataResponseDataItem["CloudCode"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["IsDefend"].isNull())
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeAlertsWithEntityRequest::DescribeAlertsWithEntityRequest()
|
||||
|
||||
DescribeAlertsWithEntityRequest::~DescribeAlertsWithEntityRequest() {}
|
||||
|
||||
long DescribeAlertsWithEntityRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeAlertsWithEntityRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
long DescribeAlertsWithEntityRequest::getEntityId() const {
|
||||
return entityId_;
|
||||
}
|
||||
@@ -34,6 +43,15 @@ void DescribeAlertsWithEntityRequest::setEntityId(long entityId) {
|
||||
setBodyParameter(std::string("EntityId"), std::to_string(entityId));
|
||||
}
|
||||
|
||||
long DescribeAlertsWithEntityRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAlertsWithEntityRequest::setStartTime(long startTime) {
|
||||
startTime_ = startTime;
|
||||
setBodyParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string DescribeAlertsWithEntityRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -52,6 +70,15 @@ void DescribeAlertsWithEntityRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeAlertsWithEntityRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeAlertsWithEntityRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::string DescribeAlertsWithEntityRequest::getSophonTaskId() const {
|
||||
return sophonTaskId_;
|
||||
}
|
||||
@@ -61,6 +88,15 @@ void DescribeAlertsWithEntityRequest::setSophonTaskId(const std::string &sophonT
|
||||
setBodyParameter(std::string("SophonTaskId"), sophonTaskId);
|
||||
}
|
||||
|
||||
long DescribeAlertsWithEntityRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAlertsWithEntityRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setBodyParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
int DescribeAlertsWithEntityRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
@@ -70,6 +106,15 @@ void DescribeAlertsWithEntityRequest::setCurrentPage(int currentPage) {
|
||||
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeAlertsWithEntityRequest::getEntityUuid() const {
|
||||
return entityUuid_;
|
||||
}
|
||||
|
||||
void DescribeAlertsWithEntityRequest::setEntityUuid(const std::string &entityUuid) {
|
||||
entityUuid_ = entityUuid;
|
||||
setBodyParameter(std::string("EntityUuid"), entityUuid);
|
||||
}
|
||||
|
||||
std::string DescribeAlertsWithEntityRequest::getIncidentUuid() const {
|
||||
return incidentUuid_;
|
||||
}
|
||||
|
||||
@@ -98,10 +98,14 @@ void DescribeAlertsWithEntityResult::parse(const std::string &payload)
|
||||
responseDataItemObject.alertDetail = dataNodeResponseDataResponseDataItem["AlertDetail"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["LogUuid"].isNull())
|
||||
responseDataItemObject.logUuid = dataNodeResponseDataResponseDataItem["LogUuid"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["EntityList"].isNull())
|
||||
responseDataItemObject.entityList = dataNodeResponseDataResponseDataItem["EntityList"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["AttCk"].isNull())
|
||||
responseDataItemObject.attCk = dataNodeResponseDataResponseDataItem["AttCk"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["SubUserId"].isNull())
|
||||
responseDataItemObject.subUserId = std::stol(dataNodeResponseDataResponseDataItem["SubUserId"].asString());
|
||||
if(!dataNodeResponseDataResponseDataItem["SubUserName"].isNull())
|
||||
responseDataItemObject.subUserName = dataNodeResponseDataResponseDataItem["SubUserName"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["CloudCode"].isNull())
|
||||
responseDataItemObject.cloudCode = dataNodeResponseDataResponseDataItem["CloudCode"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["IsDefend"].isNull())
|
||||
|
||||
@@ -25,6 +25,51 @@ DescribeAlertsWithEventRequest::DescribeAlertsWithEventRequest()
|
||||
|
||||
DescribeAlertsWithEventRequest::~DescribeAlertsWithEventRequest() {}
|
||||
|
||||
long DescribeAlertsWithEventRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeAlertsWithEventRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeAlertsWithEventRequest::getAlertName() const {
|
||||
return alertName_;
|
||||
}
|
||||
|
||||
void DescribeAlertsWithEventRequest::setAlertName(const std::string &alertName) {
|
||||
alertName_ = alertName;
|
||||
setBodyParameter(std::string("AlertName"), alertName);
|
||||
}
|
||||
|
||||
std::string DescribeAlertsWithEventRequest::getEntityName() const {
|
||||
return entityName_;
|
||||
}
|
||||
|
||||
void DescribeAlertsWithEventRequest::setEntityName(const std::string &entityName) {
|
||||
entityName_ = entityName;
|
||||
setBodyParameter(std::string("EntityName"), entityName);
|
||||
}
|
||||
|
||||
std::string DescribeAlertsWithEventRequest::getAssetName() const {
|
||||
return assetName_;
|
||||
}
|
||||
|
||||
void DescribeAlertsWithEventRequest::setAssetName(const std::string &assetName) {
|
||||
assetName_ = assetName;
|
||||
setBodyParameter(std::string("AssetName"), assetName);
|
||||
}
|
||||
|
||||
std::string DescribeAlertsWithEventRequest::getEntityId() const {
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
void DescribeAlertsWithEventRequest::setEntityId(const std::string &entityId) {
|
||||
entityId_ = entityId;
|
||||
setBodyParameter(std::string("EntityId"), entityId);
|
||||
}
|
||||
|
||||
std::string DescribeAlertsWithEventRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
@@ -43,6 +88,15 @@ void DescribeAlertsWithEventRequest::setIsDefend(const std::string &isDefend) {
|
||||
setBodyParameter(std::string("IsDefend"), isDefend);
|
||||
}
|
||||
|
||||
long DescribeAlertsWithEventRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAlertsWithEventRequest::setStartTime(long startTime) {
|
||||
startTime_ = startTime;
|
||||
setBodyParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
long DescribeAlertsWithEventRequest::getSubUserId() const {
|
||||
return subUserId_;
|
||||
}
|
||||
@@ -70,6 +124,15 @@ void DescribeAlertsWithEventRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeAlertsWithEventRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeAlertsWithEventRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeAlertsWithEventRequest::getLevel() const {
|
||||
return level_;
|
||||
}
|
||||
@@ -78,6 +141,15 @@ void DescribeAlertsWithEventRequest::setLevel(const std::vector<std::string> &le
|
||||
level_ = level;
|
||||
}
|
||||
|
||||
long DescribeAlertsWithEventRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAlertsWithEventRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setBodyParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string DescribeAlertsWithEventRequest::getAlertTitle() const {
|
||||
return alertTitle_;
|
||||
}
|
||||
@@ -96,6 +168,24 @@ void DescribeAlertsWithEventRequest::setCurrentPage(int currentPage) {
|
||||
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeAlertsWithEventRequest::getAlertType() const {
|
||||
return alertType_;
|
||||
}
|
||||
|
||||
void DescribeAlertsWithEventRequest::setAlertType(const std::string &alertType) {
|
||||
alertType_ = alertType;
|
||||
setBodyParameter(std::string("AlertType"), alertType);
|
||||
}
|
||||
|
||||
std::string DescribeAlertsWithEventRequest::getAssetId() const {
|
||||
return assetId_;
|
||||
}
|
||||
|
||||
void DescribeAlertsWithEventRequest::setAssetId(const std::string &assetId) {
|
||||
assetId_ = assetId;
|
||||
setBodyParameter(std::string("AssetId"), assetId);
|
||||
}
|
||||
|
||||
std::string DescribeAlertsWithEventRequest::getIncidentUuid() const {
|
||||
return incidentUuid_;
|
||||
}
|
||||
|
||||
@@ -98,10 +98,14 @@ void DescribeAlertsWithEventResult::parse(const std::string &payload)
|
||||
responseDataItemObject.alertDetail = dataNodeResponseDataResponseDataItem["AlertDetail"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["LogUuid"].isNull())
|
||||
responseDataItemObject.logUuid = dataNodeResponseDataResponseDataItem["LogUuid"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["EntityList"].isNull())
|
||||
responseDataItemObject.entityList = dataNodeResponseDataResponseDataItem["EntityList"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["AttCk"].isNull())
|
||||
responseDataItemObject.attCk = dataNodeResponseDataResponseDataItem["AttCk"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["SubUserId"].isNull())
|
||||
responseDataItemObject.subUserId = std::stol(dataNodeResponseDataResponseDataItem["SubUserId"].asString());
|
||||
if(!dataNodeResponseDataResponseDataItem["SubUserName"].isNull())
|
||||
responseDataItemObject.subUserName = dataNodeResponseDataResponseDataItem["SubUserName"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["CloudCode"].isNull())
|
||||
responseDataItemObject.cloudCode = dataNodeResponseDataResponseDataItem["CloudCode"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["IsDefend"].isNull())
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DescribeAttackTimeLineRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloud_siem::Model::DescribeAttackTimeLineRequest;
|
||||
|
||||
DescribeAttackTimeLineRequest::DescribeAttackTimeLineRequest()
|
||||
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeAttackTimeLine") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAttackTimeLineRequest::~DescribeAttackTimeLineRequest() {}
|
||||
|
||||
std::string DescribeAttackTimeLineRequest::getAssetName() const {
|
||||
return assetName_;
|
||||
}
|
||||
|
||||
void DescribeAttackTimeLineRequest::setAssetName(const std::string &assetName) {
|
||||
assetName_ = assetName;
|
||||
setBodyParameter(std::string("AssetName"), assetName);
|
||||
}
|
||||
|
||||
long DescribeAttackTimeLineRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAttackTimeLineRequest::setStartTime(long startTime) {
|
||||
startTime_ = startTime;
|
||||
setBodyParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string DescribeAttackTimeLineRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAttackTimeLineRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
long DescribeAttackTimeLineRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAttackTimeLineRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setBodyParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string DescribeAttackTimeLineRequest::getIncidentUuid() const {
|
||||
return incidentUuid_;
|
||||
}
|
||||
|
||||
void DescribeAttackTimeLineRequest::setIncidentUuid(const std::string &incidentUuid) {
|
||||
incidentUuid_ = incidentUuid;
|
||||
setBodyParameter(std::string("IncidentUuid"), incidentUuid);
|
||||
}
|
||||
|
||||
@@ -1,116 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DescribeAttackTimeLineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloud_siem;
|
||||
using namespace AlibabaCloud::Cloud_siem::Model;
|
||||
|
||||
DescribeAttackTimeLineResult::DescribeAttackTimeLineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAttackTimeLineResult::DescribeAttackTimeLineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAttackTimeLineResult::~DescribeAttackTimeLineResult()
|
||||
{}
|
||||
|
||||
void DescribeAttackTimeLineResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["AssetName"].isNull())
|
||||
dataObject.assetName = valueDataDataItem["AssetName"].asString();
|
||||
if(!valueDataDataItem["AlertTime"].isNull())
|
||||
dataObject.alertTime = std::stol(valueDataDataItem["AlertTime"].asString());
|
||||
if(!valueDataDataItem["AssetId"].isNull())
|
||||
dataObject.assetId = valueDataDataItem["AssetId"].asString();
|
||||
if(!valueDataDataItem["IncidentUuid"].isNull())
|
||||
dataObject.incidentUuid = valueDataDataItem["IncidentUuid"].asString();
|
||||
if(!valueDataDataItem["AlertUuid"].isNull())
|
||||
dataObject.alertUuid = valueDataDataItem["AlertUuid"].asString();
|
||||
if(!valueDataDataItem["LogTime"].isNull())
|
||||
dataObject.logTime = valueDataDataItem["LogTime"].asString();
|
||||
if(!valueDataDataItem["AlertSrcProd"].isNull())
|
||||
dataObject.alertSrcProd = valueDataDataItem["AlertSrcProd"].asString();
|
||||
if(!valueDataDataItem["AlertTitle"].isNull())
|
||||
dataObject.alertTitle = valueDataDataItem["AlertTitle"].asString();
|
||||
if(!valueDataDataItem["AlertLevel"].isNull())
|
||||
dataObject.alertLevel = valueDataDataItem["AlertLevel"].asString();
|
||||
if(!valueDataDataItem["AssetList"].isNull())
|
||||
dataObject.assetList = valueDataDataItem["AssetList"].asString();
|
||||
if(!valueDataDataItem["AlertSrcProdModule"].isNull())
|
||||
dataObject.alertSrcProdModule = valueDataDataItem["AlertSrcProdModule"].asString();
|
||||
if(!valueDataDataItem["AttCk"].isNull())
|
||||
dataObject.attCk = valueDataDataItem["AttCk"].asString();
|
||||
if(!valueDataDataItem["CloudCode"].isNull())
|
||||
dataObject.cloudCode = valueDataDataItem["CloudCode"].asString();
|
||||
if(!valueDataDataItem["AlertTitleEn"].isNull())
|
||||
dataObject.alertTitleEn = valueDataDataItem["AlertTitleEn"].asString();
|
||||
if(!valueDataDataItem["AlertType"].isNull())
|
||||
dataObject.alertType = valueDataDataItem["AlertType"].asString();
|
||||
if(!valueDataDataItem["AlertTypeEn"].isNull())
|
||||
dataObject.alertTypeEn = valueDataDataItem["AlertTypeEn"].asString();
|
||||
if(!valueDataDataItem["AlertTypeCode"].isNull())
|
||||
dataObject.alertTypeCode = valueDataDataItem["AlertTypeCode"].asString();
|
||||
if(!valueDataDataItem["AlertName"].isNull())
|
||||
dataObject.alertName = valueDataDataItem["AlertName"].asString();
|
||||
if(!valueDataDataItem["AlertNameEn"].isNull())
|
||||
dataObject.alertNameEn = valueDataDataItem["AlertNameEn"].asString();
|
||||
if(!valueDataDataItem["AlertNameCode"].isNull())
|
||||
dataObject.alertNameCode = valueDataDataItem["AlertNameCode"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeAttackTimeLineResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAttackTimeLineResult::DataItem> DescribeAttackTimeLineResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DescribeAttackTimeLineResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeAttackTimeLineResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeAutomateResponseConfigCounterRequest::DescribeAutomateResponseConfigCoun
|
||||
|
||||
DescribeAutomateResponseConfigCounterRequest::~DescribeAutomateResponseConfigCounterRequest() {}
|
||||
|
||||
long DescribeAutomateResponseConfigCounterRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeAutomateResponseConfigCounterRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeAutomateResponseConfigCounterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,3 +43,12 @@ void DescribeAutomateResponseConfigCounterRequest::setRegionId(const std::string
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeAutomateResponseConfigCounterRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeAutomateResponseConfigCounterRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeAutomateResponseConfigFeatureRequest::DescribeAutomateResponseConfigFeat
|
||||
|
||||
DescribeAutomateResponseConfigFeatureRequest::~DescribeAutomateResponseConfigFeatureRequest() {}
|
||||
|
||||
long DescribeAutomateResponseConfigFeatureRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeAutomateResponseConfigFeatureRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeAutomateResponseConfigFeatureRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -43,3 +52,12 @@ void DescribeAutomateResponseConfigFeatureRequest::setAutoResponseType(const std
|
||||
setBodyParameter(std::string("AutoResponseType"), autoResponseType);
|
||||
}
|
||||
|
||||
int DescribeAutomateResponseConfigFeatureRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeAutomateResponseConfigFeatureRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeAutomateResponseConfigPlayBooksRequest::DescribeAutomateResponseConfigPl
|
||||
|
||||
DescribeAutomateResponseConfigPlayBooksRequest::~DescribeAutomateResponseConfigPlayBooksRequest() {}
|
||||
|
||||
long DescribeAutomateResponseConfigPlayBooksRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeAutomateResponseConfigPlayBooksRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeAutomateResponseConfigPlayBooksRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -43,6 +52,15 @@ void DescribeAutomateResponseConfigPlayBooksRequest::setAutoResponseType(const s
|
||||
setBodyParameter(std::string("AutoResponseType"), autoResponseType);
|
||||
}
|
||||
|
||||
int DescribeAutomateResponseConfigPlayBooksRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeAutomateResponseConfigPlayBooksRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::string DescribeAutomateResponseConfigPlayBooksRequest::getEntityType() const {
|
||||
return entityType_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeCloudSiemAssetsCounterRequest::DescribeCloudSiemAssetsCounterRequest()
|
||||
|
||||
DescribeCloudSiemAssetsCounterRequest::~DescribeCloudSiemAssetsCounterRequest() {}
|
||||
|
||||
long DescribeCloudSiemAssetsCounterRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeCloudSiemAssetsCounterRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeCloudSiemAssetsCounterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,6 +43,15 @@ void DescribeCloudSiemAssetsCounterRequest::setRegionId(const std::string ®io
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeCloudSiemAssetsCounterRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeCloudSiemAssetsCounterRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::string DescribeCloudSiemAssetsCounterRequest::getIncidentUuid() const {
|
||||
return incidentUuid_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,24 @@ DescribeCloudSiemAssetsRequest::DescribeCloudSiemAssetsRequest()
|
||||
|
||||
DescribeCloudSiemAssetsRequest::~DescribeCloudSiemAssetsRequest() {}
|
||||
|
||||
long DescribeCloudSiemAssetsRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeCloudSiemAssetsRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeCloudSiemAssetsRequest::getAssetName() const {
|
||||
return assetName_;
|
||||
}
|
||||
|
||||
void DescribeCloudSiemAssetsRequest::setAssetName(const std::string &assetName) {
|
||||
assetName_ = assetName;
|
||||
setBodyParameter(std::string("AssetName"), assetName);
|
||||
}
|
||||
|
||||
std::string DescribeCloudSiemAssetsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -43,6 +61,15 @@ void DescribeCloudSiemAssetsRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeCloudSiemAssetsRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeCloudSiemAssetsRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::string DescribeCloudSiemAssetsRequest::getAssetType() const {
|
||||
return assetType_;
|
||||
}
|
||||
@@ -52,6 +79,15 @@ void DescribeCloudSiemAssetsRequest::setAssetType(const std::string &assetType)
|
||||
setBodyParameter(std::string("AssetType"), assetType);
|
||||
}
|
||||
|
||||
std::string DescribeCloudSiemAssetsRequest::getAssetUuid() const {
|
||||
return assetUuid_;
|
||||
}
|
||||
|
||||
void DescribeCloudSiemAssetsRequest::setAssetUuid(const std::string &assetUuid) {
|
||||
assetUuid_ = assetUuid;
|
||||
setBodyParameter(std::string("AssetUuid"), assetUuid);
|
||||
}
|
||||
|
||||
int DescribeCloudSiemAssetsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeCloudSiemEventDetailRequest::DescribeCloudSiemEventDetailRequest()
|
||||
|
||||
DescribeCloudSiemEventDetailRequest::~DescribeCloudSiemEventDetailRequest() {}
|
||||
|
||||
long DescribeCloudSiemEventDetailRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeCloudSiemEventDetailRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeCloudSiemEventDetailRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,6 +43,15 @@ void DescribeCloudSiemEventDetailRequest::setRegionId(const std::string ®ionI
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeCloudSiemEventDetailRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeCloudSiemEventDetailRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::string DescribeCloudSiemEventDetailRequest::getIncidentUuid() const {
|
||||
return incidentUuid_;
|
||||
}
|
||||
|
||||
@@ -68,8 +68,26 @@ void DescribeCloudSiemEventDetailResult::parse(const std::string &payload)
|
||||
data_.extContent = dataNode["ExtContent"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
if(!dataNode["ReferAccount"].isNull())
|
||||
data_.referAccount = dataNode["ReferAccount"].asString();
|
||||
if(!dataNode["IncidentType"].isNull())
|
||||
data_.incidentType = dataNode["IncidentType"].asString();
|
||||
if(!dataNode["RuleId"].isNull())
|
||||
data_.ruleId = dataNode["RuleId"].asString();
|
||||
if(!dataNode["Remark"].isNull())
|
||||
data_.remark = dataNode["Remark"].asString();
|
||||
auto allAttckStagesNode = dataNode["AttckStages"]["AttckStage"];
|
||||
for (auto dataNodeAttckStagesAttckStage : allAttckStagesNode)
|
||||
{
|
||||
Data::AttckStage attckStageObject;
|
||||
if(!dataNodeAttckStagesAttckStage["TacticId"].isNull())
|
||||
attckStageObject.tacticId = dataNodeAttckStagesAttckStage["TacticId"].asString();
|
||||
if(!dataNodeAttckStagesAttckStage["TacticName"].isNull())
|
||||
attckStageObject.tacticName = dataNodeAttckStagesAttckStage["TacticName"].asString();
|
||||
if(!dataNodeAttckStagesAttckStage["AlertNum"].isNull())
|
||||
attckStageObject.alertNum = std::stoi(dataNodeAttckStagesAttckStage["AlertNum"].asString());
|
||||
data_.attckStages.push_back(attckStageObject);
|
||||
}
|
||||
auto allDataSources = dataNode["DataSources"]["DataSource"];
|
||||
for (auto value : allDataSources)
|
||||
data_.dataSources.push_back(value.asString());
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeCloudSiemEventsRequest::DescribeCloudSiemEventsRequest()
|
||||
|
||||
DescribeCloudSiemEventsRequest::~DescribeCloudSiemEventsRequest() {}
|
||||
|
||||
long DescribeCloudSiemEventsRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeCloudSiemEventsRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
long DescribeCloudSiemEventsRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
@@ -61,6 +70,15 @@ void DescribeCloudSiemEventsRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeCloudSiemEventsRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeCloudSiemEventsRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::string DescribeCloudSiemEventsRequest::getOrderField() const {
|
||||
return orderField_;
|
||||
}
|
||||
@@ -105,6 +123,15 @@ void DescribeCloudSiemEventsRequest::setThreadLevel(const std::vector<std::strin
|
||||
threadLevel_ = threadLevel;
|
||||
}
|
||||
|
||||
std::string DescribeCloudSiemEventsRequest::getEntityUuid() const {
|
||||
return entityUuid_;
|
||||
}
|
||||
|
||||
void DescribeCloudSiemEventsRequest::setEntityUuid(const std::string &entityUuid) {
|
||||
entityUuid_ = entityUuid;
|
||||
setBodyParameter(std::string("EntityUuid"), entityUuid);
|
||||
}
|
||||
|
||||
std::string DescribeCloudSiemEventsRequest::getAssetId() const {
|
||||
return assetId_;
|
||||
}
|
||||
|
||||
@@ -72,8 +72,26 @@ void DescribeCloudSiemEventsResult::parse(const std::string &payload)
|
||||
responseDataItemObject.extContent = dataNodeResponseDataResponseDataItem["ExtContent"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["Status"].isNull())
|
||||
responseDataItemObject.status = std::stoi(dataNodeResponseDataResponseDataItem["Status"].asString());
|
||||
if(!dataNodeResponseDataResponseDataItem["ReferAccount"].isNull())
|
||||
responseDataItemObject.referAccount = dataNodeResponseDataResponseDataItem["ReferAccount"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["IncidentType"].isNull())
|
||||
responseDataItemObject.incidentType = dataNodeResponseDataResponseDataItem["IncidentType"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["RuleId"].isNull())
|
||||
responseDataItemObject.ruleId = dataNodeResponseDataResponseDataItem["RuleId"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["Remark"].isNull())
|
||||
responseDataItemObject.remark = dataNodeResponseDataResponseDataItem["Remark"].asString();
|
||||
auto allAttckStagesNode = dataNodeResponseDataResponseDataItem["AttckStages"]["AttckStage"];
|
||||
for (auto dataNodeResponseDataResponseDataItemAttckStagesAttckStage : allAttckStagesNode)
|
||||
{
|
||||
Data::ResponseDataItem::AttckStage attckStagesObject;
|
||||
if(!dataNodeResponseDataResponseDataItemAttckStagesAttckStage["TacticId"].isNull())
|
||||
attckStagesObject.tacticId = dataNodeResponseDataResponseDataItemAttckStagesAttckStage["TacticId"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItemAttckStagesAttckStage["TacticName"].isNull())
|
||||
attckStagesObject.tacticName = dataNodeResponseDataResponseDataItemAttckStagesAttckStage["TacticName"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItemAttckStagesAttckStage["AlertNum"].isNull())
|
||||
attckStagesObject.alertNum = std::stoi(dataNodeResponseDataResponseDataItemAttckStagesAttckStage["AlertNum"].asString());
|
||||
responseDataItemObject.attckStages.push_back(attckStagesObject);
|
||||
}
|
||||
auto allDataSources = value["DataSources"]["DataSource"];
|
||||
for (auto value : allDataSources)
|
||||
responseDataItemObject.dataSources.push_back(value.asString());
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DescribeCsImportedProdStatusByUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloud_siem::Model::DescribeCsImportedProdStatusByUserRequest;
|
||||
|
||||
DescribeCsImportedProdStatusByUserRequest::DescribeCsImportedProdStatusByUserRequest()
|
||||
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeCsImportedProdStatusByUser") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCsImportedProdStatusByUserRequest::~DescribeCsImportedProdStatusByUserRequest() {}
|
||||
|
||||
long DescribeCsImportedProdStatusByUserRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void DescribeCsImportedProdStatusByUserRequest::setUserId(long userId) {
|
||||
userId_ = userId;
|
||||
setBodyParameter(std::string("UserId"), std::to_string(userId));
|
||||
}
|
||||
|
||||
std::string DescribeCsImportedProdStatusByUserRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeCsImportedProdStatusByUserRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeCsImportedProdStatusByUserRequest::getSourceLogProd() const {
|
||||
return sourceLogProd_;
|
||||
}
|
||||
|
||||
void DescribeCsImportedProdStatusByUserRequest::setSourceLogProd(const std::string &sourceLogProd) {
|
||||
sourceLogProd_ = sourceLogProd;
|
||||
setBodyParameter(std::string("SourceLogProd"), sourceLogProd);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DescribeCsImportedProdStatusByUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloud_siem;
|
||||
using namespace AlibabaCloud::Cloud_siem::Model;
|
||||
|
||||
DescribeCsImportedProdStatusByUserResult::DescribeCsImportedProdStatusByUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCsImportedProdStatusByUserResult::DescribeCsImportedProdStatusByUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCsImportedProdStatusByUserResult::~DescribeCsImportedProdStatusByUserResult()
|
||||
{}
|
||||
|
||||
void DescribeCsImportedProdStatusByUserResult::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";
|
||||
|
||||
}
|
||||
|
||||
bool DescribeCsImportedProdStatusByUserResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeCustomizeRuleCountRequest::DescribeCustomizeRuleCountRequest()
|
||||
|
||||
DescribeCustomizeRuleCountRequest::~DescribeCustomizeRuleCountRequest() {}
|
||||
|
||||
long DescribeCustomizeRuleCountRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeCustomizeRuleCountRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeCustomizeRuleCountRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,3 +43,12 @@ void DescribeCustomizeRuleCountRequest::setRegionId(const std::string ®ionId)
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeCustomizeRuleCountRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeCustomizeRuleCountRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -48,6 +48,22 @@ void DescribeCustomizeRuleCountResult::parse(const std::string &payload)
|
||||
data_.mediumRuleNum = std::stoi(dataNode["MediumRuleNum"].asString());
|
||||
if(!dataNode["LowRuleNum"].isNull())
|
||||
data_.lowRuleNum = std::stoi(dataNode["LowRuleNum"].asString());
|
||||
if(!dataNode["TotalRuleNum"].isNull())
|
||||
data_.totalRuleNum = std::stoi(dataNode["TotalRuleNum"].asString());
|
||||
if(!dataNode["CustomizeRuleNum"].isNull())
|
||||
data_.customizeRuleNum = std::stoi(dataNode["CustomizeRuleNum"].asString());
|
||||
if(!dataNode["PredefinedRuleNum"].isNull())
|
||||
data_.predefinedRuleNum = std::stoi(dataNode["PredefinedRuleNum"].asString());
|
||||
if(!dataNode["UnEventRuleNum"].isNull())
|
||||
data_.unEventRuleNum = std::stoi(dataNode["UnEventRuleNum"].asString());
|
||||
if(!dataNode["ExpertRuleNum"].isNull())
|
||||
data_.expertRuleNum = std::stoi(dataNode["ExpertRuleNum"].asString());
|
||||
if(!dataNode["GraphComputingRuleNum"].isNull())
|
||||
data_.graphComputingRuleNum = std::stoi(dataNode["GraphComputingRuleNum"].asString());
|
||||
if(!dataNode["SingleAlertRuleNum"].isNull())
|
||||
data_.singleAlertRuleNum = std::stoi(dataNode["SingleAlertRuleNum"].asString());
|
||||
if(!dataNode["AggregationRuleNum"].isNull())
|
||||
data_.aggregationRuleNum = std::stoi(dataNode["AggregationRuleNum"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DescribeCustomizeRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloud_siem::Model::DescribeCustomizeRuleRequest;
|
||||
|
||||
DescribeCustomizeRuleRequest::DescribeCustomizeRuleRequest()
|
||||
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeCustomizeRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCustomizeRuleRequest::~DescribeCustomizeRuleRequest() {}
|
||||
|
||||
std::string DescribeCustomizeRuleRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeCustomizeRuleRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
long DescribeCustomizeRuleRequest::getRuleId() const {
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void DescribeCustomizeRuleRequest::setRuleId(long ruleId) {
|
||||
ruleId_ = ruleId;
|
||||
setBodyParameter(std::string("RuleId"), std::to_string(ruleId));
|
||||
}
|
||||
|
||||
@@ -1,115 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DescribeCustomizeRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloud_siem;
|
||||
using namespace AlibabaCloud::Cloud_siem::Model;
|
||||
|
||||
DescribeCustomizeRuleResult::DescribeCustomizeRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCustomizeRuleResult::DescribeCustomizeRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCustomizeRuleResult::~DescribeCustomizeRuleResult()
|
||||
{}
|
||||
|
||||
void DescribeCustomizeRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = dataNode["GmtCreate"].asString();
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
data_.gmtModified = dataNode["GmtModified"].asString();
|
||||
if(!dataNode["Aliuid"].isNull())
|
||||
data_.aliuid = std::stol(dataNode["Aliuid"].asString());
|
||||
if(!dataNode["RuleName"].isNull())
|
||||
data_.ruleName = dataNode["RuleName"].asString();
|
||||
if(!dataNode["RuleDesc"].isNull())
|
||||
data_.ruleDesc = dataNode["RuleDesc"].asString();
|
||||
if(!dataNode["RuleType"].isNull())
|
||||
data_.ruleType = dataNode["RuleType"].asString();
|
||||
if(!dataNode["ThreatLevel"].isNull())
|
||||
data_.threatLevel = dataNode["ThreatLevel"].asString();
|
||||
if(!dataNode["AlertType"].isNull())
|
||||
data_.alertType = dataNode["AlertType"].asString();
|
||||
if(!dataNode["AlertTypeMds"].isNull())
|
||||
data_.alertTypeMds = dataNode["AlertTypeMds"].asString();
|
||||
if(!dataNode["LogType"].isNull())
|
||||
data_.logType = dataNode["LogType"].asString();
|
||||
if(!dataNode["LogTypeMds"].isNull())
|
||||
data_.logTypeMds = dataNode["LogTypeMds"].asString();
|
||||
if(!dataNode["LogSource"].isNull())
|
||||
data_.logSource = dataNode["LogSource"].asString();
|
||||
if(!dataNode["LogSourceMds"].isNull())
|
||||
data_.logSourceMds = dataNode["LogSourceMds"].asString();
|
||||
if(!dataNode["RuleCondition"].isNull())
|
||||
data_.ruleCondition = dataNode["RuleCondition"].asString();
|
||||
if(!dataNode["RuleGroup"].isNull())
|
||||
data_.ruleGroup = dataNode["RuleGroup"].asString();
|
||||
if(!dataNode["RuleThreshold"].isNull())
|
||||
data_.ruleThreshold = dataNode["RuleThreshold"].asString();
|
||||
if(!dataNode["QueryCycle"].isNull())
|
||||
data_.queryCycle = dataNode["QueryCycle"].asString();
|
||||
if(!dataNode["EventTransferSwitch"].isNull())
|
||||
data_.eventTransferSwitch = std::stoi(dataNode["EventTransferSwitch"].asString());
|
||||
if(!dataNode["EventTransferType"].isNull())
|
||||
data_.eventTransferType = dataNode["EventTransferType"].asString();
|
||||
if(!dataNode["EventTransferExt"].isNull())
|
||||
data_.eventTransferExt = dataNode["EventTransferExt"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeCustomizeRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DescribeCustomizeRuleResult::Data DescribeCustomizeRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DescribeCustomizeRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeCustomizeRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeCustomizeRuleTestHistogramRequest::DescribeCustomizeRuleTestHistogramReq
|
||||
|
||||
DescribeCustomizeRuleTestHistogramRequest::~DescribeCustomizeRuleTestHistogramRequest() {}
|
||||
|
||||
long DescribeCustomizeRuleTestHistogramRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeCustomizeRuleTestHistogramRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeCustomizeRuleTestHistogramRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,6 +43,15 @@ void DescribeCustomizeRuleTestHistogramRequest::setRegionId(const std::string &r
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeCustomizeRuleTestHistogramRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeCustomizeRuleTestHistogramRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
long DescribeCustomizeRuleTestHistogramRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeCustomizeRuleTestRequest::DescribeCustomizeRuleTestRequest()
|
||||
|
||||
DescribeCustomizeRuleTestRequest::~DescribeCustomizeRuleTestRequest() {}
|
||||
|
||||
long DescribeCustomizeRuleTestRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeCustomizeRuleTestRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeCustomizeRuleTestRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,6 +43,15 @@ void DescribeCustomizeRuleTestRequest::setRegionId(const std::string ®ionId)
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeCustomizeRuleTestRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeCustomizeRuleTestRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
long DescribeCustomizeRuleTestRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeDisposeAndPlaybookRequest::DescribeDisposeAndPlaybookRequest()
|
||||
|
||||
DescribeDisposeAndPlaybookRequest::~DescribeDisposeAndPlaybookRequest() {}
|
||||
|
||||
long DescribeDisposeAndPlaybookRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeDisposeAndPlaybookRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeDisposeAndPlaybookRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -43,6 +52,15 @@ void DescribeDisposeAndPlaybookRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeDisposeAndPlaybookRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeDisposeAndPlaybookRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
int DescribeDisposeAndPlaybookRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
@@ -61,6 +79,15 @@ void DescribeDisposeAndPlaybookRequest::setEntityType(const std::string &entityT
|
||||
setBodyParameter(std::string("EntityType"), entityType);
|
||||
}
|
||||
|
||||
std::string DescribeDisposeAndPlaybookRequest::getEntityUuid() const {
|
||||
return entityUuid_;
|
||||
}
|
||||
|
||||
void DescribeDisposeAndPlaybookRequest::setEntityUuid(const std::string &entityUuid) {
|
||||
entityUuid_ = entityUuid;
|
||||
setBodyParameter(std::string("EntityUuid"), entityUuid);
|
||||
}
|
||||
|
||||
std::string DescribeDisposeAndPlaybookRequest::getIncidentUuid() const {
|
||||
return incidentUuid_;
|
||||
}
|
||||
|
||||
@@ -46,6 +46,8 @@ void DescribeDisposeAndPlaybookResult::parse(const std::string &payload)
|
||||
Data::ResponseDataItem responseDataItemObject;
|
||||
if(!dataNodeResponseDataResponseDataItem["EntityId"].isNull())
|
||||
responseDataItemObject.entityId = std::stol(dataNodeResponseDataResponseDataItem["EntityId"].asString());
|
||||
if(!dataNodeResponseDataResponseDataItem["EntityType"].isNull())
|
||||
responseDataItemObject.entityType = dataNodeResponseDataResponseDataItem["EntityType"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["OpcodeMap"].isNull())
|
||||
responseDataItemObject.opcodeMap = dataNodeResponseDataResponseDataItem["OpcodeMap"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["EntityInfo"].isNull())
|
||||
@@ -70,8 +72,15 @@ void DescribeDisposeAndPlaybookResult::parse(const std::string &payload)
|
||||
playbookListObject.taskConfig = dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["TaskConfig"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["Name"].isNull())
|
||||
playbookListObject.name = dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["Name"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["Uuid"].isNull())
|
||||
playbookListObject.uuid = dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["Uuid"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["WafPlaybook"].isNull())
|
||||
playbookListObject.wafPlaybook = dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["WafPlaybook"].asString() == "true";
|
||||
if(!dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["Available"].isNull())
|
||||
playbookListObject.available = dataNodeResponseDataResponseDataItemPlaybookListPlaybookListItem["Available"].asString();
|
||||
auto allParamConfig = value["ParamConfig"]["ParamConfig"];
|
||||
for (auto value : allParamConfig)
|
||||
playbookListObject.paramConfig.push_back(value.asString());
|
||||
responseDataItemObject.playbookList.push_back(playbookListObject);
|
||||
}
|
||||
auto allOpcodeSet = value["OpcodeSet"]["OpcodeSet"];
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeDisposeStrategyPlaybookRequest::DescribeDisposeStrategyPlaybookRequest()
|
||||
|
||||
DescribeDisposeStrategyPlaybookRequest::~DescribeDisposeStrategyPlaybookRequest() {}
|
||||
|
||||
long DescribeDisposeStrategyPlaybookRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeDisposeStrategyPlaybookRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
long DescribeDisposeStrategyPlaybookRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
@@ -43,6 +52,15 @@ void DescribeDisposeStrategyPlaybookRequest::setRegionId(const std::string ®i
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeDisposeStrategyPlaybookRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeDisposeStrategyPlaybookRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
long DescribeDisposeStrategyPlaybookRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void DescribeEntityInfoRequest::setEntityIdentity(const std::string &entityIdent
|
||||
setBodyParameter(std::string("EntityIdentity"), entityIdentity);
|
||||
}
|
||||
|
||||
long DescribeEntityInfoRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeEntityInfoRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
long DescribeEntityInfoRequest::getEntityId() const {
|
||||
return entityId_;
|
||||
}
|
||||
@@ -52,6 +61,15 @@ void DescribeEntityInfoRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeEntityInfoRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeEntityInfoRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::string DescribeEntityInfoRequest::getSophonTaskId() const {
|
||||
return sophonTaskId_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,24 @@ DescribeEventCountByThreatLevelRequest::DescribeEventCountByThreatLevelRequest()
|
||||
|
||||
DescribeEventCountByThreatLevelRequest::~DescribeEventCountByThreatLevelRequest() {}
|
||||
|
||||
long DescribeEventCountByThreatLevelRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeEventCountByThreatLevelRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
long DescribeEventCountByThreatLevelRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeEventCountByThreatLevelRequest::setStartTime(long startTime) {
|
||||
startTime_ = startTime;
|
||||
setBodyParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string DescribeEventCountByThreatLevelRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,3 +52,21 @@ void DescribeEventCountByThreatLevelRequest::setRegionId(const std::string ®i
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeEventCountByThreatLevelRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeEventCountByThreatLevelRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
long DescribeEventCountByThreatLevelRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeEventCountByThreatLevelRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setBodyParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeEventDisposeRequest::DescribeEventDisposeRequest()
|
||||
|
||||
DescribeEventDisposeRequest::~DescribeEventDisposeRequest() {}
|
||||
|
||||
long DescribeEventDisposeRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeEventDisposeRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeEventDisposeRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -43,6 +52,15 @@ void DescribeEventDisposeRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeEventDisposeRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeEventDisposeRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
int DescribeEventDisposeRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeImportedLogCountRequest::DescribeImportedLogCountRequest()
|
||||
|
||||
DescribeImportedLogCountRequest::~DescribeImportedLogCountRequest() {}
|
||||
|
||||
std::string DescribeImportedLogCountRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeImportedLogCountRequest::setRoleFor(const std::string &roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), roleFor);
|
||||
}
|
||||
|
||||
std::string DescribeImportedLogCountRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,3 +43,12 @@ void DescribeImportedLogCountRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeImportedLogCountRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeImportedLogCountRequest::setRoleType(const std::string &roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), roleType);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DescribeJobStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloud_siem::Model::DescribeJobStatusRequest;
|
||||
|
||||
DescribeJobStatusRequest::DescribeJobStatusRequest()
|
||||
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeJobStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeJobStatusRequest::~DescribeJobStatusRequest() {}
|
||||
|
||||
std::string DescribeJobStatusRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeJobStatusRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeJobStatusRequest::getSubmitId() const {
|
||||
return submitId_;
|
||||
}
|
||||
|
||||
void DescribeJobStatusRequest::setSubmitId(const std::string &submitId) {
|
||||
submitId_ = submitId;
|
||||
setBodyParameter(std::string("SubmitId"), submitId);
|
||||
}
|
||||
|
||||
@@ -1,124 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DescribeJobStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloud_siem;
|
||||
using namespace AlibabaCloud::Cloud_siem::Model;
|
||||
|
||||
DescribeJobStatusResult::DescribeJobStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeJobStatusResult::DescribeJobStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeJobStatusResult::~DescribeJobStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeJobStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TaskCount"].isNull())
|
||||
data_.taskCount = std::stoi(dataNode["TaskCount"].asString());
|
||||
if(!dataNode["FinishCount"].isNull())
|
||||
data_.finishCount = std::stoi(dataNode["FinishCount"].asString());
|
||||
if(!dataNode["FailedCount"].isNull())
|
||||
data_.failedCount = std::stoi(dataNode["FailedCount"].asString());
|
||||
if(!dataNode["TaskStatus"].isNull())
|
||||
data_.taskStatus = dataNode["TaskStatus"].asString();
|
||||
if(!dataNode["ConfigId"].isNull())
|
||||
data_.configId = dataNode["ConfigId"].asString();
|
||||
if(!dataNode["FolderId"].isNull())
|
||||
data_.folderId = dataNode["FolderId"].asString();
|
||||
auto allErrTaskListNode = dataNode["ErrTaskList"]["ErrTaskListItem"];
|
||||
for (auto dataNodeErrTaskListErrTaskListItem : allErrTaskListNode)
|
||||
{
|
||||
Data::ErrTaskListItem errTaskListItemObject;
|
||||
if(!dataNodeErrTaskListErrTaskListItem["UserId"].isNull())
|
||||
errTaskListItemObject.userId = std::stol(dataNodeErrTaskListErrTaskListItem["UserId"].asString());
|
||||
auto allProductListNode = dataNodeErrTaskListErrTaskListItem["ProductList"]["ProductListItem"];
|
||||
for (auto dataNodeErrTaskListErrTaskListItemProductListProductListItem : allProductListNode)
|
||||
{
|
||||
Data::ErrTaskListItem::ProductListItem productListObject;
|
||||
if(!dataNodeErrTaskListErrTaskListItemProductListProductListItem["ProductCode"].isNull())
|
||||
productListObject.productCode = dataNodeErrTaskListErrTaskListItemProductListProductListItem["ProductCode"].asString();
|
||||
auto allLogListNode = dataNodeErrTaskListErrTaskListItemProductListProductListItem["LogList"]["LogListItem"];
|
||||
for (auto dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem : allLogListNode)
|
||||
{
|
||||
Data::ErrTaskListItem::ProductListItem::LogListItem logListObject;
|
||||
if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ProductCode"].isNull())
|
||||
logListObject.productCode = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ProductCode"].asString();
|
||||
if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["LogCode"].isNull())
|
||||
logListObject.logCode = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["LogCode"].asString();
|
||||
if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["RegionCode"].isNull())
|
||||
logListObject.regionCode = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["RegionCode"].asString();
|
||||
if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ProjectNamePattern"].isNull())
|
||||
logListObject.projectNamePattern = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ProjectNamePattern"].asString();
|
||||
if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["LogStoreNamePattern"].isNull())
|
||||
logListObject.logStoreNamePattern = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["LogStoreNamePattern"].asString();
|
||||
if(!dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ErrorCode"].isNull())
|
||||
logListObject.errorCode = dataNodeErrTaskListErrTaskListItemProductListProductListItemLogListLogListItem["ErrorCode"].asString();
|
||||
productListObject.logList.push_back(logListObject);
|
||||
}
|
||||
errTaskListItemObject.productList.push_back(productListObject);
|
||||
}
|
||||
data_.errTaskList.push_back(errTaskListItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeJobStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DescribeJobStatusResult::Data DescribeJobStatusResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DescribeJobStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeJobStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DescribeJobStatusResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeLogFieldsRequest::DescribeLogFieldsRequest()
|
||||
|
||||
DescribeLogFieldsRequest::~DescribeLogFieldsRequest() {}
|
||||
|
||||
long DescribeLogFieldsRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeLogFieldsRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeLogFieldsRequest::getLogType() const {
|
||||
return logType_;
|
||||
}
|
||||
@@ -43,6 +52,15 @@ void DescribeLogFieldsRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeLogFieldsRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeLogFieldsRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::string DescribeLogFieldsRequest::getLogSource() const {
|
||||
return logSource_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeLogSourceRequest::DescribeLogSourceRequest()
|
||||
|
||||
DescribeLogSourceRequest::~DescribeLogSourceRequest() {}
|
||||
|
||||
long DescribeLogSourceRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeLogSourceRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeLogSourceRequest::getLogType() const {
|
||||
return logType_;
|
||||
}
|
||||
@@ -43,3 +52,12 @@ void DescribeLogSourceRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeLogSourceRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeLogSourceRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DescribeLogStoreRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloud_siem::Model::DescribeLogStoreRequest;
|
||||
|
||||
DescribeLogStoreRequest::DescribeLogStoreRequest()
|
||||
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeLogStore") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLogStoreRequest::~DescribeLogStoreRequest() {}
|
||||
|
||||
std::string DescribeLogStoreRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DescribeLogStoreResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloud_siem;
|
||||
using namespace AlibabaCloud::Cloud_siem::Model;
|
||||
|
||||
DescribeLogStoreResult::DescribeLogStoreResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLogStoreResult::DescribeLogStoreResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLogStoreResult::~DescribeLogStoreResult()
|
||||
{}
|
||||
|
||||
void DescribeLogStoreResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["LogStoreName"].isNull())
|
||||
data_.logStoreName = dataNode["LogStoreName"].asString();
|
||||
if(!dataNode["Ttl"].isNull())
|
||||
data_.ttl = std::stoi(dataNode["Ttl"].asString());
|
||||
if(!dataNode["ShardCount"].isNull())
|
||||
data_.shardCount = std::stoi(dataNode["ShardCount"].asString());
|
||||
if(!dataNode["EnableTracking"].isNull())
|
||||
data_.enableTracking = dataNode["EnableTracking"].asString() == "true";
|
||||
if(!dataNode["AutoSplit"].isNull())
|
||||
data_.autoSplit = dataNode["AutoSplit"].asString() == "true";
|
||||
if(!dataNode["MaxSplitShard"].isNull())
|
||||
data_.maxSplitShard = std::stoi(dataNode["MaxSplitShard"].asString());
|
||||
if(!dataNode["AppendMeta"].isNull())
|
||||
data_.appendMeta = dataNode["AppendMeta"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
DescribeLogStoreResult::Data DescribeLogStoreResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeLogTypeRequest::DescribeLogTypeRequest()
|
||||
|
||||
DescribeLogTypeRequest::~DescribeLogTypeRequest() {}
|
||||
|
||||
long DescribeLogTypeRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeLogTypeRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeLogTypeRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,3 +43,12 @@ void DescribeLogTypeRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeLogTypeRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeLogTypeRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,13 +25,13 @@ DescribeOperatorsRequest::DescribeOperatorsRequest()
|
||||
|
||||
DescribeOperatorsRequest::~DescribeOperatorsRequest() {}
|
||||
|
||||
std::string DescribeOperatorsRequest::getSceneType() const {
|
||||
return sceneType_;
|
||||
long DescribeOperatorsRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeOperatorsRequest::setSceneType(const std::string &sceneType) {
|
||||
sceneType_ = sceneType;
|
||||
setBodyParameter(std::string("SceneType"), sceneType);
|
||||
void DescribeOperatorsRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeOperatorsRequest::getRegionId() const {
|
||||
@@ -43,3 +43,21 @@ void DescribeOperatorsRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeOperatorsRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeOperatorsRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::string DescribeOperatorsRequest::getSceneType() const {
|
||||
return sceneType_;
|
||||
}
|
||||
|
||||
void DescribeOperatorsRequest::setSceneType(const std::string &sceneType) {
|
||||
sceneType_ = sceneType;
|
||||
setBodyParameter(std::string("SceneType"), sceneType);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeProdCountRequest::DescribeProdCountRequest()
|
||||
|
||||
DescribeProdCountRequest::~DescribeProdCountRequest() {}
|
||||
|
||||
long DescribeProdCountRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeProdCountRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeProdCountRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,3 +43,12 @@ void DescribeProdCountRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeProdCountRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeProdCountRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,16 @@ void DescribeProdCountResult::parse(const std::string &payload)
|
||||
data_.hcloudProdCount = std::stoi(dataNode["HcloudProdCount"].asString());
|
||||
if(!dataNode["QcloudProdCount"].isNull())
|
||||
data_.qcloudProdCount = std::stoi(dataNode["QcloudProdCount"].asString());
|
||||
if(!dataNode["IdcProdCount"].isNull())
|
||||
data_.idcProdCount = std::stoi(dataNode["IdcProdCount"].asString());
|
||||
if(!dataNode["AliyunImportedCount"].isNull())
|
||||
data_.aliyunImportedCount = std::stoi(dataNode["AliyunImportedCount"].asString());
|
||||
if(!dataNode["HcloudImportedCount"].isNull())
|
||||
data_.hcloudImportedCount = std::stoi(dataNode["HcloudImportedCount"].asString());
|
||||
if(!dataNode["QcloudImportedCount"].isNull())
|
||||
data_.qcloudImportedCount = std::stoi(dataNode["QcloudImportedCount"].asString());
|
||||
if(!dataNode["IdcImportedCount"].isNull())
|
||||
data_.idcImportedCount = std::stoi(dataNode["IdcImportedCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeScopeUsersRequest::DescribeScopeUsersRequest()
|
||||
|
||||
DescribeScopeUsersRequest::~DescribeScopeUsersRequest() {}
|
||||
|
||||
long DescribeScopeUsersRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeScopeUsersRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeScopeUsersRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,3 +43,12 @@ void DescribeScopeUsersRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeScopeUsersRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeScopeUsersRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +47,10 @@ void DescribeScopeUsersResult::parse(const std::string &payload)
|
||||
dataObject.aliUid = std::stol(valueDataDataItem["AliUid"].asString());
|
||||
if(!valueDataDataItem["UserName"].isNull())
|
||||
dataObject.userName = valueDataDataItem["UserName"].asString();
|
||||
if(!valueDataDataItem["UserId"].isNull())
|
||||
dataObject.userId = valueDataDataItem["UserId"].asString();
|
||||
if(!valueDataDataItem["CloudCode"].isNull())
|
||||
dataObject.cloudCode = valueDataDataItem["CloudCode"].asString();
|
||||
if(!valueDataDataItem["InstanceId"].isNull())
|
||||
dataObject.instanceId = valueDataDataItem["InstanceId"].asString();
|
||||
auto allDomains = value["Domains"]["Domain"];
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeStorageRequest::DescribeStorageRequest()
|
||||
|
||||
DescribeStorageRequest::~DescribeStorageRequest() {}
|
||||
|
||||
long DescribeStorageRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeStorageRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeStorageRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,3 +43,12 @@ void DescribeStorageRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeStorageRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeStorageRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -62,6 +62,8 @@ void DescribeUserBuyStatusResult::parse(const std::string &payload)
|
||||
data_.endTime = std::stol(dataNode["EndTime"].asString());
|
||||
if(!dataNode["DurationDays"].isNull())
|
||||
data_.durationDays = std::stol(dataNode["DurationDays"].asString());
|
||||
if(!dataNode["RdOrder"].isNull())
|
||||
data_.rdOrder = std::stoi(dataNode["RdOrder"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeWafScopeRequest::DescribeWafScopeRequest()
|
||||
|
||||
DescribeWafScopeRequest::~DescribeWafScopeRequest() {}
|
||||
|
||||
long DescribeWafScopeRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeWafScopeRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
long DescribeWafScopeRequest::getEntityId() const {
|
||||
return entityId_;
|
||||
}
|
||||
@@ -43,3 +52,12 @@ void DescribeWafScopeRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeWafScopeRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeWafScopeRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeWhiteRuleListRequest::DescribeWhiteRuleListRequest()
|
||||
|
||||
DescribeWhiteRuleListRequest::~DescribeWhiteRuleListRequest() {}
|
||||
|
||||
long DescribeWhiteRuleListRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void DescribeWhiteRuleListRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string DescribeWhiteRuleListRequest::getAlertName() const {
|
||||
return alertName_;
|
||||
}
|
||||
@@ -52,6 +61,15 @@ void DescribeWhiteRuleListRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeWhiteRuleListRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void DescribeWhiteRuleListRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
int DescribeWhiteRuleListRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DoQuickFieldRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloud_siem::Model::DoQuickFieldRequest;
|
||||
|
||||
DoQuickFieldRequest::DoQuickFieldRequest()
|
||||
: RpcServiceRequest("cloud-siem", "2022-06-16", "DoQuickField") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DoQuickFieldRequest::~DoQuickFieldRequest() {}
|
||||
|
||||
std::string DoQuickFieldRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DoQuickFieldRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DoQuickFieldRequest::getFrom() const {
|
||||
return from_;
|
||||
}
|
||||
|
||||
void DoQuickFieldRequest::setFrom(int from) {
|
||||
from_ = from;
|
||||
setBodyParameter(std::string("From"), std::to_string(from));
|
||||
}
|
||||
|
||||
std::string DoQuickFieldRequest::getIndex() const {
|
||||
return index_;
|
||||
}
|
||||
|
||||
void DoQuickFieldRequest::setIndex(const std::string &index) {
|
||||
index_ = index;
|
||||
setBodyParameter(std::string("Index"), index);
|
||||
}
|
||||
|
||||
bool DoQuickFieldRequest::getReverse() const {
|
||||
return reverse_;
|
||||
}
|
||||
|
||||
void DoQuickFieldRequest::setReverse(bool reverse) {
|
||||
reverse_ = reverse;
|
||||
setBodyParameter(std::string("Reverse"), reverse ? "true" : "false");
|
||||
}
|
||||
|
||||
int DoQuickFieldRequest::getSize() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
void DoQuickFieldRequest::setSize(int size) {
|
||||
size_ = size;
|
||||
setBodyParameter(std::string("Size"), std::to_string(size));
|
||||
}
|
||||
|
||||
int DoQuickFieldRequest::getTo() const {
|
||||
return to_;
|
||||
}
|
||||
|
||||
void DoQuickFieldRequest::setTo(int to) {
|
||||
to_ = to;
|
||||
setBodyParameter(std::string("To"), std::to_string(to));
|
||||
}
|
||||
|
||||
int DoQuickFieldRequest::getPage() const {
|
||||
return page_;
|
||||
}
|
||||
|
||||
void DoQuickFieldRequest::setPage(int page) {
|
||||
page_ = page;
|
||||
setBodyParameter(std::string("Page"), std::to_string(page));
|
||||
}
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DoQuickFieldResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloud_siem;
|
||||
using namespace AlibabaCloud::Cloud_siem::Model;
|
||||
|
||||
DoQuickFieldResult::DoQuickFieldResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DoQuickFieldResult::DoQuickFieldResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DoQuickFieldResult::~DoQuickFieldResult()
|
||||
{}
|
||||
|
||||
void DoQuickFieldResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["QueryMode"].isNull())
|
||||
data_.queryMode = std::stoi(dataNode["QueryMode"].asString());
|
||||
if(!dataNode["Limited"].isNull())
|
||||
data_.limited = std::stol(dataNode["Limited"].asString());
|
||||
if(!dataNode["Count"].isNull())
|
||||
data_.count = std::stoi(dataNode["Count"].asString());
|
||||
if(!dataNode["HasSQL"].isNull())
|
||||
data_.hasSQL = dataNode["HasSQL"].asString() == "true";
|
||||
if(!dataNode["WhereQuery"].isNull())
|
||||
data_.whereQuery = dataNode["WhereQuery"].asString();
|
||||
if(!dataNode["PQuery"].isNull())
|
||||
data_.pQuery = dataNode["PQuery"].asString();
|
||||
if(!dataNode["ProcessedRows"].isNull())
|
||||
data_.processedRows = std::stol(dataNode["ProcessedRows"].asString());
|
||||
if(!dataNode["CompleteOrNot"].isNull())
|
||||
data_.completeOrNot = dataNode["CompleteOrNot"].asString() == "true";
|
||||
if(!dataNode["AggQueryd"].isNull())
|
||||
data_.aggQueryd = dataNode["AggQueryd"].asString();
|
||||
auto allKeys = dataNode["Keys"]["Key"];
|
||||
for (auto value : allKeys)
|
||||
data_.keys.push_back(value.asString());
|
||||
auto allLogs = dataNode["Logs"]["Log"];
|
||||
for (auto value : allLogs)
|
||||
data_.logs.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
DoQuickFieldResult::Data DoQuickFieldResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DoSelfDelegateRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloud_siem::Model::DoSelfDelegateRequest;
|
||||
|
||||
DoSelfDelegateRequest::DoSelfDelegateRequest()
|
||||
: RpcServiceRequest("cloud-siem", "2022-06-16", "DoSelfDelegate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DoSelfDelegateRequest::~DoSelfDelegateRequest() {}
|
||||
|
||||
std::string DoSelfDelegateRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DoSelfDelegateRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
long DoSelfDelegateRequest::getAliUid() const {
|
||||
return aliUid_;
|
||||
}
|
||||
|
||||
void DoSelfDelegateRequest::setAliUid(long aliUid) {
|
||||
aliUid_ = aliUid;
|
||||
setBodyParameter(std::string("AliUid"), std::to_string(aliUid));
|
||||
}
|
||||
|
||||
int DoSelfDelegateRequest::getDelegateOrNot() const {
|
||||
return delegateOrNot_;
|
||||
}
|
||||
|
||||
void DoSelfDelegateRequest::setDelegateOrNot(int delegateOrNot) {
|
||||
delegateOrNot_ = delegateOrNot;
|
||||
setBodyParameter(std::string("DelegateOrNot"), std::to_string(delegateOrNot));
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/DoSelfDelegateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloud_siem;
|
||||
using namespace AlibabaCloud::Cloud_siem::Model;
|
||||
|
||||
DoSelfDelegateResult::DoSelfDelegateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DoSelfDelegateResult::DoSelfDelegateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DoSelfDelegateResult::~DoSelfDelegateResult()
|
||||
{}
|
||||
|
||||
void DoSelfDelegateResult::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";
|
||||
|
||||
}
|
||||
|
||||
bool DoSelfDelegateResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,24 @@ EnableAccessForCloudSiemRequest::EnableAccessForCloudSiemRequest()
|
||||
|
||||
EnableAccessForCloudSiemRequest::~EnableAccessForCloudSiemRequest() {}
|
||||
|
||||
long EnableAccessForCloudSiemRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void EnableAccessForCloudSiemRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
int EnableAccessForCloudSiemRequest::getAutoSubmit() const {
|
||||
return autoSubmit_;
|
||||
}
|
||||
|
||||
void EnableAccessForCloudSiemRequest::setAutoSubmit(int autoSubmit) {
|
||||
autoSubmit_ = autoSubmit;
|
||||
setBodyParameter(std::string("AutoSubmit"), std::to_string(autoSubmit));
|
||||
}
|
||||
|
||||
std::string EnableAccessForCloudSiemRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,3 +52,12 @@ void EnableAccessForCloudSiemRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int EnableAccessForCloudSiemRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void EnableAccessForCloudSiemRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ GetCapacityRequest::GetCapacityRequest()
|
||||
|
||||
GetCapacityRequest::~GetCapacityRequest() {}
|
||||
|
||||
long GetCapacityRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void GetCapacityRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string GetCapacityRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,3 +43,12 @@ void GetCapacityRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int GetCapacityRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void GetCapacityRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/GetHistogramsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloud_siem::Model::GetHistogramsRequest;
|
||||
|
||||
GetHistogramsRequest::GetHistogramsRequest()
|
||||
: RpcServiceRequest("cloud-siem", "2022-06-16", "GetHistograms") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetHistogramsRequest::~GetHistogramsRequest() {}
|
||||
|
||||
std::string GetHistogramsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetHistogramsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int GetHistogramsRequest::getFrom() const {
|
||||
return from_;
|
||||
}
|
||||
|
||||
void GetHistogramsRequest::setFrom(int from) {
|
||||
from_ = from;
|
||||
setBodyParameter(std::string("From"), std::to_string(from));
|
||||
}
|
||||
|
||||
std::string GetHistogramsRequest::getQuery() const {
|
||||
return query_;
|
||||
}
|
||||
|
||||
void GetHistogramsRequest::setQuery(const std::string &query) {
|
||||
query_ = query;
|
||||
setBodyParameter(std::string("Query"), query);
|
||||
}
|
||||
|
||||
int GetHistogramsRequest::getTo() const {
|
||||
return to_;
|
||||
}
|
||||
|
||||
void GetHistogramsRequest::setTo(int to) {
|
||||
to_ = to;
|
||||
setBodyParameter(std::string("To"), std::to_string(to));
|
||||
}
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/GetHistogramsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloud_siem;
|
||||
using namespace AlibabaCloud::Cloud_siem::Model;
|
||||
|
||||
GetHistogramsResult::GetHistogramsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetHistogramsResult::GetHistogramsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetHistogramsResult::~GetHistogramsResult()
|
||||
{}
|
||||
|
||||
void GetHistogramsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Server"].isNull())
|
||||
data_.server = dataNode["Server"].asString();
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||
auto allHistogramsNode = dataNode["Histograms"]["Histogram"];
|
||||
for (auto dataNodeHistogramsHistogram : allHistogramsNode)
|
||||
{
|
||||
Data::Histogram histogramObject;
|
||||
if(!dataNodeHistogramsHistogram["From"].isNull())
|
||||
histogramObject.from = std::stoi(dataNodeHistogramsHistogram["From"].asString());
|
||||
if(!dataNodeHistogramsHistogram["To"].isNull())
|
||||
histogramObject.to = std::stoi(dataNodeHistogramsHistogram["To"].asString());
|
||||
if(!dataNodeHistogramsHistogram["Count"].isNull())
|
||||
histogramObject.count = std::stol(dataNodeHistogramsHistogram["Count"].asString());
|
||||
if(!dataNodeHistogramsHistogram["CompletedOrNot"].isNull())
|
||||
histogramObject.completedOrNot = dataNodeHistogramsHistogram["CompletedOrNot"].asString() == "true";
|
||||
data_.histograms.push_back(histogramObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GetHistogramsResult::Data GetHistogramsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,99 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/GetLogsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloud_siem::Model::GetLogsRequest;
|
||||
|
||||
GetLogsRequest::GetLogsRequest()
|
||||
: RpcServiceRequest("cloud-siem", "2022-06-16", "GetLogs") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetLogsRequest::~GetLogsRequest() {}
|
||||
|
||||
long GetLogsRequest::getTotal() const {
|
||||
return total_;
|
||||
}
|
||||
|
||||
void GetLogsRequest::setTotal(long total) {
|
||||
total_ = total;
|
||||
setBodyParameter(std::string("Total"), std::to_string(total));
|
||||
}
|
||||
|
||||
std::string GetLogsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetLogsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int GetLogsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetLogsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int GetLogsRequest::getFrom() const {
|
||||
return from_;
|
||||
}
|
||||
|
||||
void GetLogsRequest::setFrom(int from) {
|
||||
from_ = from;
|
||||
setBodyParameter(std::string("From"), std::to_string(from));
|
||||
}
|
||||
|
||||
int GetLogsRequest::getPageIndex() const {
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
void GetLogsRequest::setPageIndex(int pageIndex) {
|
||||
pageIndex_ = pageIndex;
|
||||
setBodyParameter(std::string("PageIndex"), std::to_string(pageIndex));
|
||||
}
|
||||
|
||||
bool GetLogsRequest::getReverseOrNot() const {
|
||||
return reverseOrNot_;
|
||||
}
|
||||
|
||||
void GetLogsRequest::setReverseOrNot(bool reverseOrNot) {
|
||||
reverseOrNot_ = reverseOrNot;
|
||||
setBodyParameter(std::string("ReverseOrNot"), reverseOrNot ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetLogsRequest::getQuery() const {
|
||||
return query_;
|
||||
}
|
||||
|
||||
void GetLogsRequest::setQuery(const std::string &query) {
|
||||
query_ = query;
|
||||
setBodyParameter(std::string("Query"), query);
|
||||
}
|
||||
|
||||
int GetLogsRequest::getTo() const {
|
||||
return to_;
|
||||
}
|
||||
|
||||
void GetLogsRequest::setTo(int to) {
|
||||
to_ = to;
|
||||
setBodyParameter(std::string("To"), std::to_string(to));
|
||||
}
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/GetLogsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloud_siem;
|
||||
using namespace AlibabaCloud::Cloud_siem::Model;
|
||||
|
||||
GetLogsResult::GetLogsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetLogsResult::GetLogsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetLogsResult::~GetLogsResult()
|
||||
{}
|
||||
|
||||
void GetLogsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto pageInfoNode = dataNode["PageInfo"];
|
||||
if(!pageInfoNode["CurrentPage"].isNull())
|
||||
data_.pageInfo.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
|
||||
if(!pageInfoNode["PageSize"].isNull())
|
||||
data_.pageInfo.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
|
||||
if(!pageInfoNode["TotalCount"].isNull())
|
||||
data_.pageInfo.totalCount = std::stol(pageInfoNode["TotalCount"].asString());
|
||||
auto responseDataNode = dataNode["ResponseData"];
|
||||
if(!responseDataNode["CompleteOrNot"].isNull())
|
||||
data_.responseData.completeOrNot = responseDataNode["CompleteOrNot"].asString() == "true";
|
||||
if(!responseDataNode["Count"].isNull())
|
||||
data_.responseData.count = std::stoi(responseDataNode["Count"].asString());
|
||||
if(!responseDataNode["Cost"].isNull())
|
||||
data_.responseData.cost = std::stol(responseDataNode["Cost"].asString());
|
||||
if(!responseDataNode["HasSql"].isNull())
|
||||
data_.responseData.hasSql = responseDataNode["HasSql"].asString() == "true";
|
||||
auto allKeys = responseDataNode["Keys"]["Key"];
|
||||
for (auto value : allKeys)
|
||||
data_.responseData.keys.push_back(value.asString());
|
||||
auto allLines = responseDataNode["Lines"]["Line"];
|
||||
for (auto value : allLines)
|
||||
data_.responseData.lines.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetLogsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetLogsResult::Data GetLogsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetLogsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetLogsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/GetQuickQueryRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloud_siem::Model::GetQuickQueryRequest;
|
||||
|
||||
GetQuickQueryRequest::GetQuickQueryRequest()
|
||||
: RpcServiceRequest("cloud-siem", "2022-06-16", "GetQuickQuery") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetQuickQueryRequest::~GetQuickQueryRequest() {}
|
||||
|
||||
std::string GetQuickQueryRequest::getSearchName() const {
|
||||
return searchName_;
|
||||
}
|
||||
|
||||
void GetQuickQueryRequest::setSearchName(const std::string &searchName) {
|
||||
searchName_ = searchName;
|
||||
setBodyParameter(std::string("SearchName"), searchName);
|
||||
}
|
||||
|
||||
std::string GetQuickQueryRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetQuickQueryRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* 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/cloud-siem/model/GetQuickQueryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloud_siem;
|
||||
using namespace AlibabaCloud::Cloud_siem::Model;
|
||||
|
||||
GetQuickQueryResult::GetQuickQueryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetQuickQueryResult::GetQuickQueryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetQuickQueryResult::~GetQuickQueryResult()
|
||||
{}
|
||||
|
||||
void GetQuickQueryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetQuickQueryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ GetStorageRequest::GetStorageRequest()
|
||||
|
||||
GetStorageRequest::~GetStorageRequest() {}
|
||||
|
||||
long GetStorageRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void GetStorageRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string GetStorageRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,3 +43,12 @@ void GetStorageRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int GetStorageRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void GetStorageRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,15 @@ void ListAccountAccessIdRequest::setCloudCode(const std::string &cloudCode) {
|
||||
setBodyParameter(std::string("CloudCode"), cloudCode);
|
||||
}
|
||||
|
||||
long ListAccountAccessIdRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void ListAccountAccessIdRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string ListAccountAccessIdRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -43,3 +52,12 @@ void ListAccountAccessIdRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int ListAccountAccessIdRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void ListAccountAccessIdRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,15 @@ void ListAccountsByLogRequest::setCloudCode(const std::string &cloudCode) {
|
||||
setBodyParameter(std::string("CloudCode"), cloudCode);
|
||||
}
|
||||
|
||||
long ListAccountsByLogRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void ListAccountsByLogRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string ListAccountsByLogRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -43,6 +52,15 @@ void ListAccountsByLogRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int ListAccountsByLogRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void ListAccountsByLogRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::vector<std::string> ListAccountsByLogRequest::getLogCodes() const {
|
||||
return logCodes_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ ListAllProdsRequest::ListAllProdsRequest()
|
||||
|
||||
ListAllProdsRequest::~ListAllProdsRequest() {}
|
||||
|
||||
long ListAllProdsRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void ListAllProdsRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string ListAllProdsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -34,3 +43,12 @@ void ListAllProdsRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int ListAllProdsRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void ListAllProdsRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,15 @@ void ListAutomateResponseConfigsRequest::setActionType(const std::string &action
|
||||
setBodyParameter(std::string("ActionType"), actionType);
|
||||
}
|
||||
|
||||
long ListAutomateResponseConfigsRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void ListAutomateResponseConfigsRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string ListAutomateResponseConfigsRequest::getRuleName() const {
|
||||
return ruleName_;
|
||||
}
|
||||
@@ -79,6 +88,15 @@ void ListAutomateResponseConfigsRequest::setAutoResponseType(const std::string &
|
||||
setBodyParameter(std::string("AutoResponseType"), autoResponseType);
|
||||
}
|
||||
|
||||
int ListAutomateResponseConfigsRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void ListAutomateResponseConfigsRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
long ListAutomateResponseConfigsRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
@@ -66,6 +66,8 @@ void ListAutomateResponseConfigsResult::parse(const std::string &payload)
|
||||
responseDataItemObject.actionConfig = dataNodeResponseDataResponseDataItem["ActionConfig"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["Status"].isNull())
|
||||
responseDataItemObject.status = std::stoi(dataNodeResponseDataResponseDataItem["Status"].asString());
|
||||
if(!dataNodeResponseDataResponseDataItem["DataType"].isNull())
|
||||
responseDataItemObject.dataType = std::stoi(dataNodeResponseDataResponseDataItem["DataType"].asString());
|
||||
data_.responseData.push_back(responseDataItemObject);
|
||||
}
|
||||
auto pageInfoNode = dataNode["PageInfo"];
|
||||
|
||||
@@ -34,6 +34,15 @@ void ListBindAccountRequest::setCloudCode(const std::string &cloudCode) {
|
||||
setBodyParameter(std::string("CloudCode"), cloudCode);
|
||||
}
|
||||
|
||||
long ListBindAccountRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void ListBindAccountRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string ListBindAccountRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -43,3 +52,12 @@ void ListBindAccountRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int ListBindAccountRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void ListBindAccountRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ ListCloudSiemCustomizeRulesRequest::ListCloudSiemCustomizeRulesRequest()
|
||||
|
||||
ListCloudSiemCustomizeRulesRequest::~ListCloudSiemCustomizeRulesRequest() {}
|
||||
|
||||
long ListCloudSiemCustomizeRulesRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void ListCloudSiemCustomizeRulesRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string ListCloudSiemCustomizeRulesRequest::getRuleName() const {
|
||||
return ruleName_;
|
||||
}
|
||||
@@ -61,6 +70,15 @@ void ListCloudSiemCustomizeRulesRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListCloudSiemCustomizeRulesRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void ListCloudSiemCustomizeRulesRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::string ListCloudSiemCustomizeRulesRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
@@ -70,6 +88,24 @@ void ListCloudSiemCustomizeRulesRequest::setId(const std::string &id) {
|
||||
setBodyParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
std::string ListCloudSiemCustomizeRulesRequest::getOrderField() const {
|
||||
return orderField_;
|
||||
}
|
||||
|
||||
void ListCloudSiemCustomizeRulesRequest::setOrderField(const std::string &orderField) {
|
||||
orderField_ = orderField;
|
||||
setBodyParameter(std::string("OrderField"), orderField);
|
||||
}
|
||||
|
||||
std::string ListCloudSiemCustomizeRulesRequest::getOrder() const {
|
||||
return order_;
|
||||
}
|
||||
|
||||
void ListCloudSiemCustomizeRulesRequest::setOrder(const std::string &order) {
|
||||
order_ = order;
|
||||
setBodyParameter(std::string("Order"), order);
|
||||
}
|
||||
|
||||
std::string ListCloudSiemCustomizeRulesRequest::getRuleType() const {
|
||||
return ruleType_;
|
||||
}
|
||||
|
||||
@@ -80,6 +80,8 @@ void ListCloudSiemCustomizeRulesResult::parse(const std::string &payload)
|
||||
responseDataItemObject.ruleThreshold = dataNodeResponseDataResponseDataItem["RuleThreshold"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["QueryCycle"].isNull())
|
||||
responseDataItemObject.queryCycle = dataNodeResponseDataResponseDataItem["QueryCycle"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["AttCk"].isNull())
|
||||
responseDataItemObject.attCk = dataNodeResponseDataResponseDataItem["AttCk"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["EventTransferSwitch"].isNull())
|
||||
responseDataItemObject.eventTransferSwitch = std::stoi(dataNodeResponseDataResponseDataItem["EventTransferSwitch"].asString());
|
||||
if(!dataNodeResponseDataResponseDataItem["EventTransferType"].isNull())
|
||||
@@ -88,6 +90,8 @@ void ListCloudSiemCustomizeRulesResult::parse(const std::string &payload)
|
||||
responseDataItemObject.eventTransferExt = dataNodeResponseDataResponseDataItem["EventTransferExt"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["Status"].isNull())
|
||||
responseDataItemObject.status = std::stoi(dataNodeResponseDataResponseDataItem["Status"].asString());
|
||||
if(!dataNodeResponseDataResponseDataItem["DataType"].isNull())
|
||||
responseDataItemObject.dataType = std::stoi(dataNodeResponseDataResponseDataItem["DataType"].asString());
|
||||
data_.responseData.push_back(responseDataItemObject);
|
||||
}
|
||||
auto pageInfoNode = dataNode["PageInfo"];
|
||||
|
||||
@@ -25,6 +25,24 @@ ListCloudSiemPredefinedRulesRequest::ListCloudSiemPredefinedRulesRequest()
|
||||
|
||||
ListCloudSiemPredefinedRulesRequest::~ListCloudSiemPredefinedRulesRequest() {}
|
||||
|
||||
long ListCloudSiemPredefinedRulesRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void ListCloudSiemPredefinedRulesRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
std::string ListCloudSiemPredefinedRulesRequest::getAttCk() const {
|
||||
return attCk_;
|
||||
}
|
||||
|
||||
void ListCloudSiemPredefinedRulesRequest::setAttCk(const std::string &attCk) {
|
||||
attCk_ = attCk;
|
||||
setBodyParameter(std::string("AttCk"), attCk);
|
||||
}
|
||||
|
||||
std::string ListCloudSiemPredefinedRulesRequest::getRuleName() const {
|
||||
return ruleName_;
|
||||
}
|
||||
@@ -61,6 +79,15 @@ void ListCloudSiemPredefinedRulesRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListCloudSiemPredefinedRulesRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void ListCloudSiemPredefinedRulesRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
std::string ListCloudSiemPredefinedRulesRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
@@ -70,6 +97,24 @@ void ListCloudSiemPredefinedRulesRequest::setId(const std::string &id) {
|
||||
setBodyParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
std::string ListCloudSiemPredefinedRulesRequest::getOrderField() const {
|
||||
return orderField_;
|
||||
}
|
||||
|
||||
void ListCloudSiemPredefinedRulesRequest::setOrderField(const std::string &orderField) {
|
||||
orderField_ = orderField;
|
||||
setBodyParameter(std::string("OrderField"), orderField);
|
||||
}
|
||||
|
||||
std::string ListCloudSiemPredefinedRulesRequest::getOrder() const {
|
||||
return order_;
|
||||
}
|
||||
|
||||
void ListCloudSiemPredefinedRulesRequest::setOrder(const std::string &order) {
|
||||
order_ = order;
|
||||
setBodyParameter(std::string("Order"), order);
|
||||
}
|
||||
|
||||
std::string ListCloudSiemPredefinedRulesRequest::getRuleType() const {
|
||||
return ruleType_;
|
||||
}
|
||||
@@ -97,6 +142,15 @@ void ListCloudSiemPredefinedRulesRequest::setCurrentPage(int currentPage) {
|
||||
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListCloudSiemPredefinedRulesRequest::getLogSource() const {
|
||||
return logSource_;
|
||||
}
|
||||
|
||||
void ListCloudSiemPredefinedRulesRequest::setLogSource(const std::string &logSource) {
|
||||
logSource_ = logSource;
|
||||
setBodyParameter(std::string("LogSource"), logSource);
|
||||
}
|
||||
|
||||
std::string ListCloudSiemPredefinedRulesRequest::getAlertType() const {
|
||||
return alertType_;
|
||||
}
|
||||
@@ -106,6 +160,15 @@ void ListCloudSiemPredefinedRulesRequest::setAlertType(const std::string &alertT
|
||||
setBodyParameter(std::string("AlertType"), alertType);
|
||||
}
|
||||
|
||||
std::string ListCloudSiemPredefinedRulesRequest::getEventTransferType() const {
|
||||
return eventTransferType_;
|
||||
}
|
||||
|
||||
void ListCloudSiemPredefinedRulesRequest::setEventTransferType(const std::string &eventTransferType) {
|
||||
eventTransferType_ = eventTransferType;
|
||||
setBodyParameter(std::string("EventTransferType"), eventTransferType);
|
||||
}
|
||||
|
||||
std::vector<std::string> ListCloudSiemPredefinedRulesRequest::getThreatLevel() const {
|
||||
return threatLevel_;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,10 @@ void ListCloudSiemPredefinedRulesResult::parse(const std::string &payload)
|
||||
responseDataItemObject.gmtModified = dataNodeResponseDataResponseDataItem["GmtModified"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["RuleName"].isNull())
|
||||
responseDataItemObject.ruleName = dataNodeResponseDataResponseDataItem["RuleName"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["RuleNameCn"].isNull())
|
||||
responseDataItemObject.ruleNameCn = dataNodeResponseDataResponseDataItem["RuleNameCn"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["RuleNameEn"].isNull())
|
||||
responseDataItemObject.ruleNameEn = dataNodeResponseDataResponseDataItem["RuleNameEn"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["RuleNameMds"].isNull())
|
||||
responseDataItemObject.ruleNameMds = dataNodeResponseDataResponseDataItem["RuleNameMds"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["RuleDescMds"].isNull())
|
||||
@@ -62,6 +66,10 @@ void ListCloudSiemPredefinedRulesResult::parse(const std::string &payload)
|
||||
responseDataItemObject.alertType = dataNodeResponseDataResponseDataItem["AlertType"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["Source"].isNull())
|
||||
responseDataItemObject.source = dataNodeResponseDataResponseDataItem["Source"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["EventTransferType"].isNull())
|
||||
responseDataItemObject.eventTransferType = dataNodeResponseDataResponseDataItem["EventTransferType"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["AttCk"].isNull())
|
||||
responseDataItemObject.attCk = dataNodeResponseDataResponseDataItem["AttCk"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["Status"].isNull())
|
||||
responseDataItemObject.status = std::stoi(dataNodeResponseDataResponseDataItem["Status"].asString());
|
||||
data_.responseData.push_back(responseDataItemObject);
|
||||
|
||||
@@ -25,6 +25,33 @@ ListCustomizeRuleTestResultRequest::ListCustomizeRuleTestResultRequest()
|
||||
|
||||
ListCustomizeRuleTestResultRequest::~ListCustomizeRuleTestResultRequest() {}
|
||||
|
||||
long ListCustomizeRuleTestResultRequest::getRoleFor() const {
|
||||
return roleFor_;
|
||||
}
|
||||
|
||||
void ListCustomizeRuleTestResultRequest::setRoleFor(long roleFor) {
|
||||
roleFor_ = roleFor;
|
||||
setBodyParameter(std::string("RoleFor"), std::to_string(roleFor));
|
||||
}
|
||||
|
||||
long ListCustomizeRuleTestResultRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListCustomizeRuleTestResultRequest::setStartTime(long startTime) {
|
||||
startTime_ = startTime;
|
||||
setBodyParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string ListCustomizeRuleTestResultRequest::getVerifyType() const {
|
||||
return verifyType_;
|
||||
}
|
||||
|
||||
void ListCustomizeRuleTestResultRequest::setVerifyType(const std::string &verifyType) {
|
||||
verifyType_ = verifyType;
|
||||
setBodyParameter(std::string("VerifyType"), verifyType);
|
||||
}
|
||||
|
||||
std::string ListCustomizeRuleTestResultRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -43,6 +70,15 @@ void ListCustomizeRuleTestResultRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListCustomizeRuleTestResultRequest::getRoleType() const {
|
||||
return roleType_;
|
||||
}
|
||||
|
||||
void ListCustomizeRuleTestResultRequest::setRoleType(int roleType) {
|
||||
roleType_ = roleType;
|
||||
setBodyParameter(std::string("RoleType"), std::to_string(roleType));
|
||||
}
|
||||
|
||||
long ListCustomizeRuleTestResultRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
@@ -52,6 +88,15 @@ void ListCustomizeRuleTestResultRequest::setId(long id) {
|
||||
setBodyParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
long ListCustomizeRuleTestResultRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListCustomizeRuleTestResultRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setBodyParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
int ListCustomizeRuleTestResultRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
@@ -61,3 +106,12 @@ void ListCustomizeRuleTestResultRequest::setCurrentPage(int currentPage) {
|
||||
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListCustomizeRuleTestResultRequest::getDetectionRuleId() const {
|
||||
return detectionRuleId_;
|
||||
}
|
||||
|
||||
void ListCustomizeRuleTestResultRequest::setDetectionRuleId(const std::string &detectionRuleId) {
|
||||
detectionRuleId_ = detectionRuleId;
|
||||
setBodyParameter(std::string("DetectionRuleId"), detectionRuleId);
|
||||
}
|
||||
|
||||
|
||||
@@ -74,6 +74,8 @@ void ListCustomizeRuleTestResultResult::parse(const std::string &payload)
|
||||
responseDataItemObject.alertDetail = dataNodeResponseDataResponseDataItem["AlertDetail"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["LogTime"].isNull())
|
||||
responseDataItemObject.logTime = dataNodeResponseDataResponseDataItem["LogTime"].asString();
|
||||
if(!dataNodeResponseDataResponseDataItem["VerifyType"].isNull())
|
||||
responseDataItemObject.verifyType = dataNodeResponseDataResponseDataItem["VerifyType"].asString();
|
||||
data_.responseData.push_back(responseDataItemObject);
|
||||
}
|
||||
auto pageInfoNode = dataNode["PageInfo"];
|
||||
@@ -83,6 +85,8 @@ void ListCustomizeRuleTestResultResult::parse(const std::string &payload)
|
||||
data_.pageInfo.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
|
||||
if(!pageInfoNode["TotalCount"].isNull())
|
||||
data_.pageInfo.totalCount = std::stol(pageInfoNode["TotalCount"].asString());
|
||||
if(!pageInfoNode["VerifiedCount"].isNull())
|
||||
data_.pageInfo.verifiedCount = std::stol(pageInfoNode["VerifiedCount"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user