SAS SDK Auto Released By lai.zhoulai,Version:1.35.4
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
989
sas/src/SasClient.cc
Normal file
989
sas/src/SasClient.cc
Normal file
@@ -0,0 +1,989 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/SasClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "Sas";
|
||||
}
|
||||
|
||||
SasClient::SasClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "sas");
|
||||
}
|
||||
|
||||
SasClient::SasClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "sas");
|
||||
}
|
||||
|
||||
SasClient::SasClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "sas");
|
||||
}
|
||||
|
||||
SasClient::~SasClient()
|
||||
{}
|
||||
|
||||
SasClient::DescribeAlarmEventDetailOutcome SasClient::describeAlarmEventDetail(const DescribeAlarmEventDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAlarmEventDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAlarmEventDetailOutcome(DescribeAlarmEventDetailResult(outcome.result()));
|
||||
else
|
||||
return DescribeAlarmEventDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeAlarmEventDetailAsync(const DescribeAlarmEventDetailRequest& request, const DescribeAlarmEventDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAlarmEventDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeAlarmEventDetailOutcomeCallable SasClient::describeAlarmEventDetailCallable(const DescribeAlarmEventDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAlarmEventDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAlarmEventDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeAlarmEventListOutcome SasClient::describeAlarmEventList(const DescribeAlarmEventListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAlarmEventListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAlarmEventListOutcome(DescribeAlarmEventListResult(outcome.result()));
|
||||
else
|
||||
return DescribeAlarmEventListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeAlarmEventListAsync(const DescribeAlarmEventListRequest& request, const DescribeAlarmEventListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAlarmEventList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeAlarmEventListOutcomeCallable SasClient::describeAlarmEventListCallable(const DescribeAlarmEventListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAlarmEventListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAlarmEventList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeSuspEventsOutcome SasClient::describeSuspEvents(const DescribeSuspEventsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSuspEventsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSuspEventsOutcome(DescribeSuspEventsResult(outcome.result()));
|
||||
else
|
||||
return DescribeSuspEventsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeSuspEventsAsync(const DescribeSuspEventsRequest& request, const DescribeSuspEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSuspEvents(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeSuspEventsOutcomeCallable SasClient::describeSuspEventsCallable(const DescribeSuspEventsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSuspEventsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSuspEvents(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeConcernNecessityOutcome SasClient::describeConcernNecessity(const DescribeConcernNecessityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeConcernNecessityOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeConcernNecessityOutcome(DescribeConcernNecessityResult(outcome.result()));
|
||||
else
|
||||
return DescribeConcernNecessityOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeConcernNecessityAsync(const DescribeConcernNecessityRequest& request, const DescribeConcernNecessityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeConcernNecessity(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeConcernNecessityOutcomeCallable SasClient::describeConcernNecessityCallable(const DescribeConcernNecessityRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeConcernNecessityOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeConcernNecessity(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::ModifySecurityCheckScheduleConfigOutcome SasClient::modifySecurityCheckScheduleConfig(const ModifySecurityCheckScheduleConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifySecurityCheckScheduleConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifySecurityCheckScheduleConfigOutcome(ModifySecurityCheckScheduleConfigResult(outcome.result()));
|
||||
else
|
||||
return ModifySecurityCheckScheduleConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::modifySecurityCheckScheduleConfigAsync(const ModifySecurityCheckScheduleConfigRequest& request, const ModifySecurityCheckScheduleConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifySecurityCheckScheduleConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::ModifySecurityCheckScheduleConfigOutcomeCallable SasClient::modifySecurityCheckScheduleConfigCallable(const ModifySecurityCheckScheduleConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifySecurityCheckScheduleConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifySecurityCheckScheduleConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeEmgVulGroupOutcome SasClient::describeEmgVulGroup(const DescribeEmgVulGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeEmgVulGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeEmgVulGroupOutcome(DescribeEmgVulGroupResult(outcome.result()));
|
||||
else
|
||||
return DescribeEmgVulGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeEmgVulGroupAsync(const DescribeEmgVulGroupRequest& request, const DescribeEmgVulGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeEmgVulGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeEmgVulGroupOutcomeCallable SasClient::describeEmgVulGroupCallable(const DescribeEmgVulGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeEmgVulGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeEmgVulGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeAutoDelConfigOutcome SasClient::describeAutoDelConfig(const DescribeAutoDelConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAutoDelConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAutoDelConfigOutcome(DescribeAutoDelConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeAutoDelConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeAutoDelConfigAsync(const DescribeAutoDelConfigRequest& request, const DescribeAutoDelConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAutoDelConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeAutoDelConfigOutcomeCallable SasClient::describeAutoDelConfigCallable(const DescribeAutoDelConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAutoDelConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAutoDelConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeVulListOutcome SasClient::describeVulList(const DescribeVulListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVulListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVulListOutcome(DescribeVulListResult(outcome.result()));
|
||||
else
|
||||
return DescribeVulListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeVulListAsync(const DescribeVulListRequest& request, const DescribeVulListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVulList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeVulListOutcomeCallable SasClient::describeVulListCallable(const DescribeVulListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVulListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVulList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeVulWhitelistOutcome SasClient::describeVulWhitelist(const DescribeVulWhitelistRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVulWhitelistOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVulWhitelistOutcome(DescribeVulWhitelistResult(outcome.result()));
|
||||
else
|
||||
return DescribeVulWhitelistOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeVulWhitelistAsync(const DescribeVulWhitelistRequest& request, const DescribeVulWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVulWhitelist(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeVulWhitelistOutcomeCallable SasClient::describeVulWhitelistCallable(const DescribeVulWhitelistRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVulWhitelistOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVulWhitelist(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::ModifyRiskCheckStatusOutcome SasClient::modifyRiskCheckStatus(const ModifyRiskCheckStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyRiskCheckStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyRiskCheckStatusOutcome(ModifyRiskCheckStatusResult(outcome.result()));
|
||||
else
|
||||
return ModifyRiskCheckStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::modifyRiskCheckStatusAsync(const ModifyRiskCheckStatusRequest& request, const ModifyRiskCheckStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyRiskCheckStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::ModifyRiskCheckStatusOutcomeCallable SasClient::modifyRiskCheckStatusCallable(const ModifyRiskCheckStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyRiskCheckStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyRiskCheckStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeSecurityCheckScheduleConfigOutcome SasClient::describeSecurityCheckScheduleConfig(const DescribeSecurityCheckScheduleConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSecurityCheckScheduleConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSecurityCheckScheduleConfigOutcome(DescribeSecurityCheckScheduleConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeSecurityCheckScheduleConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeSecurityCheckScheduleConfigAsync(const DescribeSecurityCheckScheduleConfigRequest& request, const DescribeSecurityCheckScheduleConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSecurityCheckScheduleConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeSecurityCheckScheduleConfigOutcomeCallable SasClient::describeSecurityCheckScheduleConfigCallable(const DescribeSecurityCheckScheduleConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSecurityCheckScheduleConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSecurityCheckScheduleConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::StartBaselineSecurityCheckOutcome SasClient::startBaselineSecurityCheck(const StartBaselineSecurityCheckRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartBaselineSecurityCheckOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartBaselineSecurityCheckOutcome(StartBaselineSecurityCheckResult(outcome.result()));
|
||||
else
|
||||
return StartBaselineSecurityCheckOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::startBaselineSecurityCheckAsync(const StartBaselineSecurityCheckRequest& request, const StartBaselineSecurityCheckAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startBaselineSecurityCheck(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::StartBaselineSecurityCheckOutcomeCallable SasClient::startBaselineSecurityCheckCallable(const StartBaselineSecurityCheckRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartBaselineSecurityCheckOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startBaselineSecurityCheck(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeRiskCheckResultOutcome SasClient::describeRiskCheckResult(const DescribeRiskCheckResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRiskCheckResultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRiskCheckResultOutcome(DescribeRiskCheckResultResult(outcome.result()));
|
||||
else
|
||||
return DescribeRiskCheckResultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeRiskCheckResultAsync(const DescribeRiskCheckResultRequest& request, const DescribeRiskCheckResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRiskCheckResult(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeRiskCheckResultOutcomeCallable SasClient::describeRiskCheckResultCallable(const DescribeRiskCheckResultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRiskCheckResultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRiskCheckResult(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeSuspEventDetailOutcome SasClient::describeSuspEventDetail(const DescribeSuspEventDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSuspEventDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSuspEventDetailOutcome(DescribeSuspEventDetailResult(outcome.result()));
|
||||
else
|
||||
return DescribeSuspEventDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeSuspEventDetailAsync(const DescribeSuspEventDetailRequest& request, const DescribeSuspEventDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSuspEventDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeSuspEventDetailOutcomeCallable SasClient::describeSuspEventDetailCallable(const DescribeSuspEventDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSuspEventDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSuspEventDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::ModifyRiskSingleResultStatusOutcome SasClient::modifyRiskSingleResultStatus(const ModifyRiskSingleResultStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyRiskSingleResultStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyRiskSingleResultStatusOutcome(ModifyRiskSingleResultStatusResult(outcome.result()));
|
||||
else
|
||||
return ModifyRiskSingleResultStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::modifyRiskSingleResultStatusAsync(const ModifyRiskSingleResultStatusRequest& request, const ModifyRiskSingleResultStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyRiskSingleResultStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::ModifyRiskSingleResultStatusOutcomeCallable SasClient::modifyRiskSingleResultStatusCallable(const ModifyRiskSingleResultStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyRiskSingleResultStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyRiskSingleResultStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::ModifyAutoDelConfigOutcome SasClient::modifyAutoDelConfig(const ModifyAutoDelConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyAutoDelConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyAutoDelConfigOutcome(ModifyAutoDelConfigResult(outcome.result()));
|
||||
else
|
||||
return ModifyAutoDelConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::modifyAutoDelConfigAsync(const ModifyAutoDelConfigRequest& request, const ModifyAutoDelConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyAutoDelConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::ModifyAutoDelConfigOutcomeCallable SasClient::modifyAutoDelConfigCallable(const ModifyAutoDelConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyAutoDelConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyAutoDelConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::ModifyEmgVulSubmitOutcome SasClient::modifyEmgVulSubmit(const ModifyEmgVulSubmitRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyEmgVulSubmitOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyEmgVulSubmitOutcome(ModifyEmgVulSubmitResult(outcome.result()));
|
||||
else
|
||||
return ModifyEmgVulSubmitOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::modifyEmgVulSubmitAsync(const ModifyEmgVulSubmitRequest& request, const ModifyEmgVulSubmitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyEmgVulSubmit(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::ModifyEmgVulSubmitOutcomeCallable SasClient::modifyEmgVulSubmitCallable(const ModifyEmgVulSubmitRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyEmgVulSubmitOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyEmgVulSubmit(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeVulDetailsOutcome SasClient::describeVulDetails(const DescribeVulDetailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVulDetailsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVulDetailsOutcome(DescribeVulDetailsResult(outcome.result()));
|
||||
else
|
||||
return DescribeVulDetailsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeVulDetailsAsync(const DescribeVulDetailsRequest& request, const DescribeVulDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVulDetails(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeVulDetailsOutcomeCallable SasClient::describeVulDetailsCallable(const DescribeVulDetailsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVulDetailsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVulDetails(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::ModifyCreateVulWhitelistOutcome SasClient::modifyCreateVulWhitelist(const ModifyCreateVulWhitelistRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyCreateVulWhitelistOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyCreateVulWhitelistOutcome(ModifyCreateVulWhitelistResult(outcome.result()));
|
||||
else
|
||||
return ModifyCreateVulWhitelistOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::modifyCreateVulWhitelistAsync(const ModifyCreateVulWhitelistRequest& request, const ModifyCreateVulWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyCreateVulWhitelist(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::ModifyCreateVulWhitelistOutcomeCallable SasClient::modifyCreateVulWhitelistCallable(const ModifyCreateVulWhitelistRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyCreateVulWhitelistOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyCreateVulWhitelist(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeGroupedVulOutcome SasClient::describeGroupedVul(const DescribeGroupedVulRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeGroupedVulOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeGroupedVulOutcome(DescribeGroupedVulResult(outcome.result()));
|
||||
else
|
||||
return DescribeGroupedVulOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeGroupedVulAsync(const DescribeGroupedVulRequest& request, const DescribeGroupedVulAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeGroupedVul(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeGroupedVulOutcomeCallable SasClient::describeGroupedVulCallable(const DescribeGroupedVulRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeGroupedVulOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeGroupedVul(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::ModifyDeleteVulWhitelistOutcome SasClient::modifyDeleteVulWhitelist(const ModifyDeleteVulWhitelistRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDeleteVulWhitelistOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDeleteVulWhitelistOutcome(ModifyDeleteVulWhitelistResult(outcome.result()));
|
||||
else
|
||||
return ModifyDeleteVulWhitelistOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::modifyDeleteVulWhitelistAsync(const ModifyDeleteVulWhitelistRequest& request, const ModifyDeleteVulWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDeleteVulWhitelist(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::ModifyDeleteVulWhitelistOutcomeCallable SasClient::modifyDeleteVulWhitelistCallable(const ModifyDeleteVulWhitelistRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDeleteVulWhitelistOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDeleteVulWhitelist(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeRiskCheckSummaryOutcome SasClient::describeRiskCheckSummary(const DescribeRiskCheckSummaryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRiskCheckSummaryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRiskCheckSummaryOutcome(DescribeRiskCheckSummaryResult(outcome.result()));
|
||||
else
|
||||
return DescribeRiskCheckSummaryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeRiskCheckSummaryAsync(const DescribeRiskCheckSummaryRequest& request, const DescribeRiskCheckSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRiskCheckSummary(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeRiskCheckSummaryOutcomeCallable SasClient::describeRiskCheckSummaryCallable(const DescribeRiskCheckSummaryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRiskCheckSummaryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRiskCheckSummary(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::ModifyOperateVulOutcome SasClient::modifyOperateVul(const ModifyOperateVulRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyOperateVulOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyOperateVulOutcome(ModifyOperateVulResult(outcome.result()));
|
||||
else
|
||||
return ModifyOperateVulOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::modifyOperateVulAsync(const ModifyOperateVulRequest& request, const ModifyOperateVulAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyOperateVul(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::ModifyOperateVulOutcomeCallable SasClient::modifyOperateVulCallable(const ModifyOperateVulRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyOperateVulOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyOperateVul(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeRiskItemTypeOutcome SasClient::describeRiskItemType(const DescribeRiskItemTypeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRiskItemTypeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRiskItemTypeOutcome(DescribeRiskItemTypeResult(outcome.result()));
|
||||
else
|
||||
return DescribeRiskItemTypeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeRiskItemTypeAsync(const DescribeRiskItemTypeRequest& request, const DescribeRiskItemTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRiskItemType(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeRiskItemTypeOutcomeCallable SasClient::describeRiskItemTypeCallable(const DescribeRiskItemTypeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRiskItemTypeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRiskItemType(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeUserBaselineAuthorizationOutcome SasClient::describeUserBaselineAuthorization(const DescribeUserBaselineAuthorizationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeUserBaselineAuthorizationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeUserBaselineAuthorizationOutcome(DescribeUserBaselineAuthorizationResult(outcome.result()));
|
||||
else
|
||||
return DescribeUserBaselineAuthorizationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeUserBaselineAuthorizationAsync(const DescribeUserBaselineAuthorizationRequest& request, const DescribeUserBaselineAuthorizationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeUserBaselineAuthorization(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeUserBaselineAuthorizationOutcomeCallable SasClient::describeUserBaselineAuthorizationCallable(const DescribeUserBaselineAuthorizationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeUserBaselineAuthorizationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeUserBaselineAuthorization(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::ModifyConcernNecessityOutcome SasClient::modifyConcernNecessity(const ModifyConcernNecessityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyConcernNecessityOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyConcernNecessityOutcome(ModifyConcernNecessityResult(outcome.result()));
|
||||
else
|
||||
return ModifyConcernNecessityOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::modifyConcernNecessityAsync(const ModifyConcernNecessityRequest& request, const ModifyConcernNecessityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyConcernNecessity(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::ModifyConcernNecessityOutcomeCallable SasClient::modifyConcernNecessityCallable(const ModifyConcernNecessityRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyConcernNecessityOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyConcernNecessity(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
71
sas/src/model/DescribeAlarmEventDetailRequest.cc
Normal file
71
sas/src/model/DescribeAlarmEventDetailRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeAlarmEventDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeAlarmEventDetailRequest;
|
||||
|
||||
DescribeAlarmEventDetailRequest::DescribeAlarmEventDetailRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeAlarmEventDetail")
|
||||
{}
|
||||
|
||||
DescribeAlarmEventDetailRequest::~DescribeAlarmEventDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAlarmEventDetailRequest::getAlarmUniqueInfo()const
|
||||
{
|
||||
return alarmUniqueInfo_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventDetailRequest::setAlarmUniqueInfo(const std::string& alarmUniqueInfo)
|
||||
{
|
||||
alarmUniqueInfo_ = alarmUniqueInfo;
|
||||
setCoreParameter("AlarmUniqueInfo", alarmUniqueInfo);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventDetailRequest::getFrom()const
|
||||
{
|
||||
return from_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventDetailRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setCoreParameter("From", from);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventDetailRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventDetailRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
101
sas/src/model/DescribeAlarmEventDetailResult.cc
Normal file
101
sas/src/model/DescribeAlarmEventDetailResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeAlarmEventDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeAlarmEventDetailResult::DescribeAlarmEventDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAlarmEventDetailResult::DescribeAlarmEventDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAlarmEventDetailResult::~DescribeAlarmEventDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeAlarmEventDetailResult::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["InternetIp"].isNull())
|
||||
data_.internetIp = dataNode["InternetIp"].asString();
|
||||
if(!dataNode["Level"].isNull())
|
||||
data_.level = dataNode["Level"].asString();
|
||||
if(!dataNode["InstanceName"].isNull())
|
||||
data_.instanceName = dataNode["InstanceName"].asString();
|
||||
if(!dataNode["AlarmEventAliasName"].isNull())
|
||||
data_.alarmEventAliasName = dataNode["AlarmEventAliasName"].asString();
|
||||
if(!dataNode["Type"].isNull())
|
||||
data_.type = dataNode["Type"].asString();
|
||||
if(!dataNode["Uuid"].isNull())
|
||||
data_.uuid = dataNode["Uuid"].asString();
|
||||
if(!dataNode["Solution"].isNull())
|
||||
data_.solution = dataNode["Solution"].asString();
|
||||
if(!dataNode["StartTime"].isNull())
|
||||
data_.startTime = std::stol(dataNode["StartTime"].asString());
|
||||
if(!dataNode["EndTime"].isNull())
|
||||
data_.endTime = std::stol(dataNode["EndTime"].asString());
|
||||
if(!dataNode["AlarmEventDesc"].isNull())
|
||||
data_.alarmEventDesc = dataNode["AlarmEventDesc"].asString();
|
||||
if(!dataNode["IntranetIp"].isNull())
|
||||
data_.intranetIp = dataNode["IntranetIp"].asString();
|
||||
if(!dataNode["CanBeDealOnLine"].isNull())
|
||||
data_.canBeDealOnLine = dataNode["CanBeDealOnLine"].asString() == "true";
|
||||
if(!dataNode["AlarmUniqueInfo"].isNull())
|
||||
data_.alarmUniqueInfo = dataNode["AlarmUniqueInfo"].asString();
|
||||
if(!dataNode["DataSource"].isNull())
|
||||
data_.dataSource = dataNode["DataSource"].asString();
|
||||
if(!dataNode["CanCancelFault"].isNull())
|
||||
data_.canCancelFault = dataNode["CanCancelFault"].asString() == "true";
|
||||
auto allCauseDetails = value["CauseDetails"]["CauseDetail"];
|
||||
for (auto value : allCauseDetails)
|
||||
{
|
||||
Data::CauseDetail causeDetailObject;
|
||||
if(!value["Key"].isNull())
|
||||
causeDetailObject.key = value["Key"].asString();
|
||||
auto allValue = value["Value"]["ValueItem"];
|
||||
for (auto value : allValue)
|
||||
{
|
||||
Data::CauseDetail::ValueItem valueObject;
|
||||
if(!value["Name"].isNull())
|
||||
valueObject.name = value["Name"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
valueObject.type = value["Type"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
valueObject.value = value["Value"].asString();
|
||||
causeDetailObject.value.push_back(valueObject);
|
||||
}
|
||||
data_.causeDetails.push_back(causeDetailObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeAlarmEventDetailResult::Data DescribeAlarmEventDetailResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
137
sas/src/model/DescribeAlarmEventListRequest.cc
Normal file
137
sas/src/model/DescribeAlarmEventListRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeAlarmEventListRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeAlarmEventListRequest;
|
||||
|
||||
DescribeAlarmEventListRequest::DescribeAlarmEventListRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeAlarmEventList")
|
||||
{}
|
||||
|
||||
DescribeAlarmEventListRequest::~DescribeAlarmEventListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getAlarmEventName()const
|
||||
{
|
||||
return alarmEventName_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventListRequest::setAlarmEventName(const std::string& alarmEventName)
|
||||
{
|
||||
alarmEventName_ = alarmEventName;
|
||||
setCoreParameter("AlarmEventName", alarmEventName);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventListRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventListRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getAlarmEventType()const
|
||||
{
|
||||
return alarmEventType_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventListRequest::setAlarmEventType(const std::string& alarmEventType)
|
||||
{
|
||||
alarmEventType_ = alarmEventType;
|
||||
setCoreParameter("AlarmEventType", alarmEventType);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getDealed()const
|
||||
{
|
||||
return dealed_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventListRequest::setDealed(const std::string& dealed)
|
||||
{
|
||||
dealed_ = dealed;
|
||||
setCoreParameter("Dealed", dealed);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getFrom()const
|
||||
{
|
||||
return from_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventListRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setCoreParameter("From", from);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventListRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setCoreParameter("Remark", remark);
|
||||
}
|
||||
|
||||
int DescribeAlarmEventListRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventListRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventListRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getLevels()const
|
||||
{
|
||||
return levels_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventListRequest::setLevels(const std::string& levels)
|
||||
{
|
||||
levels_ = levels;
|
||||
setCoreParameter("Levels", levels);
|
||||
}
|
||||
|
||||
104
sas/src/model/DescribeAlarmEventListResult.cc
Normal file
104
sas/src/model/DescribeAlarmEventListResult.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeAlarmEventListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeAlarmEventListResult::DescribeAlarmEventListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAlarmEventListResult::DescribeAlarmEventListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAlarmEventListResult::~DescribeAlarmEventListResult()
|
||||
{}
|
||||
|
||||
void DescribeAlarmEventListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSuspEvents = value["SuspEvents"]["SuspEventsItem"];
|
||||
for (auto value : allSuspEvents)
|
||||
{
|
||||
SuspEventsItem suspEventsObject;
|
||||
if(!value["AlarmUniqueInfo"].isNull())
|
||||
suspEventsObject.alarmUniqueInfo = value["AlarmUniqueInfo"].asString();
|
||||
if(!value["Solution"].isNull())
|
||||
suspEventsObject.solution = value["Solution"].asString();
|
||||
if(!value["Level"].isNull())
|
||||
suspEventsObject.level = value["Level"].asString();
|
||||
if(!value["CanBeDealOnLine"].isNull())
|
||||
suspEventsObject.canBeDealOnLine = value["CanBeDealOnLine"].asString() == "true";
|
||||
if(!value["Description"].isNull())
|
||||
suspEventsObject.description = value["Description"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
suspEventsObject.startTime = std::stol(value["StartTime"].asString());
|
||||
if(!value["EndTime"].isNull())
|
||||
suspEventsObject.endTime = std::stol(value["EndTime"].asString());
|
||||
if(!value["AlarmEventType"].isNull())
|
||||
suspEventsObject.alarmEventType = value["AlarmEventType"].asString();
|
||||
if(!value["SuspiciousEventCount"].isNull())
|
||||
suspEventsObject.suspiciousEventCount = std::stoi(value["SuspiciousEventCount"].asString());
|
||||
if(!value["Uuid"].isNull())
|
||||
suspEventsObject.uuid = value["Uuid"].asString();
|
||||
if(!value["InstanceName"].isNull())
|
||||
suspEventsObject.instanceName = value["InstanceName"].asString();
|
||||
if(!value["InternetIp"].isNull())
|
||||
suspEventsObject.internetIp = value["InternetIp"].asString();
|
||||
if(!value["IntranetIp"].isNull())
|
||||
suspEventsObject.intranetIp = value["IntranetIp"].asString();
|
||||
if(!value["AlarmEventName"].isNull())
|
||||
suspEventsObject.alarmEventName = value["AlarmEventName"].asString();
|
||||
if(!value["SaleVersion"].isNull())
|
||||
suspEventsObject.saleVersion = value["SaleVersion"].asString();
|
||||
if(!value["DataSource"].isNull())
|
||||
suspEventsObject.dataSource = value["DataSource"].asString();
|
||||
if(!value["CanCancelFault"].isNull())
|
||||
suspEventsObject.canCancelFault = value["CanCancelFault"].asString() == "true";
|
||||
suspEvents_.push_back(suspEventsObject);
|
||||
}
|
||||
auto pageInfoNode = value["PageInfo"];
|
||||
if(!pageInfoNode["Count"].isNull())
|
||||
pageInfo_.count = std::stoi(pageInfoNode["Count"].asString());
|
||||
if(!pageInfoNode["PageSize"].isNull())
|
||||
pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
|
||||
if(!pageInfoNode["TotalCount"].isNull())
|
||||
pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString());
|
||||
if(!pageInfoNode["CurrentPage"].isNull())
|
||||
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeAlarmEventListResult::PageInfo DescribeAlarmEventListResult::getPageInfo()const
|
||||
{
|
||||
return pageInfo_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAlarmEventListResult::SuspEventsItem> DescribeAlarmEventListResult::getSuspEvents()const
|
||||
{
|
||||
return suspEvents_;
|
||||
}
|
||||
|
||||
38
sas/src/model/DescribeAutoDelConfigRequest.cc
Normal file
38
sas/src/model/DescribeAutoDelConfigRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeAutoDelConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeAutoDelConfigRequest;
|
||||
|
||||
DescribeAutoDelConfigRequest::DescribeAutoDelConfigRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeAutoDelConfig")
|
||||
{}
|
||||
|
||||
DescribeAutoDelConfigRequest::~DescribeAutoDelConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAutoDelConfigRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeAutoDelConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
52
sas/src/model/DescribeAutoDelConfigResult.cc
Normal file
52
sas/src/model/DescribeAutoDelConfigResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeAutoDelConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeAutoDelConfigResult::DescribeAutoDelConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAutoDelConfigResult::DescribeAutoDelConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAutoDelConfigResult::~DescribeAutoDelConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeAutoDelConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Days"].isNull())
|
||||
days_ = std::stoi(value["Days"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeAutoDelConfigResult::getDays()const
|
||||
{
|
||||
return days_;
|
||||
}
|
||||
|
||||
49
sas/src/model/DescribeConcernNecessityRequest.cc
Normal file
49
sas/src/model/DescribeConcernNecessityRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeConcernNecessityRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeConcernNecessityRequest;
|
||||
|
||||
DescribeConcernNecessityRequest::DescribeConcernNecessityRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeConcernNecessity")
|
||||
{}
|
||||
|
||||
DescribeConcernNecessityRequest::~DescribeConcernNecessityRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeConcernNecessityRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeConcernNecessityRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeConcernNecessityRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeConcernNecessityRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
53
sas/src/model/DescribeConcernNecessityResult.cc
Normal file
53
sas/src/model/DescribeConcernNecessityResult.cc
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeConcernNecessityResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeConcernNecessityResult::DescribeConcernNecessityResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeConcernNecessityResult::DescribeConcernNecessityResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeConcernNecessityResult::~DescribeConcernNecessityResult()
|
||||
{}
|
||||
|
||||
void DescribeConcernNecessityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allConcernNecessity = value["ConcernNecessity"]["Necessity"];
|
||||
for (const auto &item : allConcernNecessity)
|
||||
concernNecessity_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeConcernNecessityResult::getConcernNecessity()const
|
||||
{
|
||||
return concernNecessity_;
|
||||
}
|
||||
|
||||
49
sas/src/model/DescribeEmgVulGroupRequest.cc
Normal file
49
sas/src/model/DescribeEmgVulGroupRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeEmgVulGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeEmgVulGroupRequest;
|
||||
|
||||
DescribeEmgVulGroupRequest::DescribeEmgVulGroupRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeEmgVulGroup")
|
||||
{}
|
||||
|
||||
DescribeEmgVulGroupRequest::~DescribeEmgVulGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeEmgVulGroupRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeEmgVulGroupRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeEmgVulGroupRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeEmgVulGroupRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
75
sas/src/model/DescribeEmgVulGroupResult.cc
Normal file
75
sas/src/model/DescribeEmgVulGroupResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeEmgVulGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeEmgVulGroupResult::DescribeEmgVulGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEmgVulGroupResult::DescribeEmgVulGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEmgVulGroupResult::~DescribeEmgVulGroupResult()
|
||||
{}
|
||||
|
||||
void DescribeEmgVulGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEmgVulGroupList = value["EmgVulGroupList"]["EmgVulGroup"];
|
||||
for (auto value : allEmgVulGroupList)
|
||||
{
|
||||
EmgVulGroup emgVulGroupListObject;
|
||||
if(!value["AliasName"].isNull())
|
||||
emgVulGroupListObject.aliasName = value["AliasName"].asString();
|
||||
if(!value["PendingCount"].isNull())
|
||||
emgVulGroupListObject.pendingCount = std::stoi(value["PendingCount"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
emgVulGroupListObject.name = value["Name"].asString();
|
||||
if(!value["GmtPublish"].isNull())
|
||||
emgVulGroupListObject.gmtPublish = std::stol(value["GmtPublish"].asString());
|
||||
if(!value["Description"].isNull())
|
||||
emgVulGroupListObject.description = value["Description"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
emgVulGroupListObject.type = value["Type"].asString();
|
||||
emgVulGroupList_.push_back(emgVulGroupListObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeEmgVulGroupResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeEmgVulGroupResult::EmgVulGroup> DescribeEmgVulGroupResult::getEmgVulGroupList()const
|
||||
{
|
||||
return emgVulGroupList_;
|
||||
}
|
||||
|
||||
126
sas/src/model/DescribeGroupedVulRequest.cc
Normal file
126
sas/src/model/DescribeGroupedVulRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeGroupedVulRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeGroupedVulRequest;
|
||||
|
||||
DescribeGroupedVulRequest::DescribeGroupedVulRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeGroupedVul")
|
||||
{}
|
||||
|
||||
DescribeGroupedVulRequest::~DescribeGroupedVulRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getAliasName()const
|
||||
{
|
||||
return aliasName_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setAliasName(const std::string& aliasName)
|
||||
{
|
||||
aliasName_ = aliasName;
|
||||
setCoreParameter("AliasName", aliasName);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeGroupedVulRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getDealed()const
|
||||
{
|
||||
return dealed_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setDealed(const std::string& dealed)
|
||||
{
|
||||
dealed_ = dealed;
|
||||
setCoreParameter("Dealed", dealed);
|
||||
}
|
||||
|
||||
int DescribeGroupedVulRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getNecessity()const
|
||||
{
|
||||
return necessity_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setNecessity(const std::string& necessity)
|
||||
{
|
||||
necessity_ = necessity;
|
||||
setCoreParameter("Necessity", necessity);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getUuids()const
|
||||
{
|
||||
return uuids_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setUuids(const std::string& uuids)
|
||||
{
|
||||
uuids_ = uuids;
|
||||
setCoreParameter("Uuids", uuids);
|
||||
}
|
||||
|
||||
93
sas/src/model/DescribeGroupedVulResult.cc
Normal file
93
sas/src/model/DescribeGroupedVulResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeGroupedVulResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeGroupedVulResult::DescribeGroupedVulResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeGroupedVulResult::DescribeGroupedVulResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeGroupedVulResult::~DescribeGroupedVulResult()
|
||||
{}
|
||||
|
||||
void DescribeGroupedVulResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allGroupedVulItems = value["GroupedVulItems"]["GroupedVulItem"];
|
||||
for (auto value : allGroupedVulItems)
|
||||
{
|
||||
GroupedVulItem groupedVulItemsObject;
|
||||
if(!value["AliasName"].isNull())
|
||||
groupedVulItemsObject.aliasName = value["AliasName"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
groupedVulItemsObject.type = value["Type"].asString();
|
||||
if(!value["GmtLast"].isNull())
|
||||
groupedVulItemsObject.gmtLast = std::stol(value["GmtLast"].asString());
|
||||
if(!value["AsapCount"].isNull())
|
||||
groupedVulItemsObject.asapCount = std::stoi(value["AsapCount"].asString());
|
||||
if(!value["LaterCount"].isNull())
|
||||
groupedVulItemsObject.laterCount = std::stoi(value["LaterCount"].asString());
|
||||
if(!value["NntfCount"].isNull())
|
||||
groupedVulItemsObject.nntfCount = std::stoi(value["NntfCount"].asString());
|
||||
if(!value["HandledCount"].isNull())
|
||||
groupedVulItemsObject.handledCount = std::stoi(value["HandledCount"].asString());
|
||||
if(!value["Tags"].isNull())
|
||||
groupedVulItemsObject.tags = value["Tags"].asString();
|
||||
groupedVulItems_.push_back(groupedVulItemsObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeGroupedVulResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeGroupedVulResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeGroupedVulResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeGroupedVulResult::GroupedVulItem> DescribeGroupedVulResult::getGroupedVulItems()const
|
||||
{
|
||||
return groupedVulItems_;
|
||||
}
|
||||
|
||||
115
sas/src/model/DescribeRiskCheckResultRequest.cc
Normal file
115
sas/src/model/DescribeRiskCheckResultRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeRiskCheckResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeRiskCheckResultRequest;
|
||||
|
||||
DescribeRiskCheckResultRequest::DescribeRiskCheckResultRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeRiskCheckResult")
|
||||
{}
|
||||
|
||||
DescribeRiskCheckResultRequest::~DescribeRiskCheckResultRequest()
|
||||
{}
|
||||
|
||||
long DescribeRiskCheckResultRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckResultRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckResultRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckResultRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
long DescribeRiskCheckResultRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckResultRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckResultRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckResultRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
int DescribeRiskCheckResultRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckResultRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeRiskCheckResultRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckResultRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckResultRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckResultRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckResultRequest::getRiskLevel()const
|
||||
{
|
||||
return riskLevel_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckResultRequest::setRiskLevel(const std::string& riskLevel)
|
||||
{
|
||||
riskLevel_ = riskLevel;
|
||||
setCoreParameter("RiskLevel", riskLevel);
|
||||
}
|
||||
|
||||
121
sas/src/model/DescribeRiskCheckResultResult.cc
Normal file
121
sas/src/model/DescribeRiskCheckResultResult.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeRiskCheckResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeRiskCheckResultResult::DescribeRiskCheckResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRiskCheckResultResult::DescribeRiskCheckResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRiskCheckResultResult::~DescribeRiskCheckResultResult()
|
||||
{}
|
||||
|
||||
void DescribeRiskCheckResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allList = value["List"]["RiskCheckResultForDisplay"];
|
||||
for (auto value : allList)
|
||||
{
|
||||
RiskCheckResultForDisplay listObject;
|
||||
if(!value["ItemId"].isNull())
|
||||
listObject.itemId = std::stol(value["ItemId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
listObject.taskId = std::stol(value["TaskId"].asString());
|
||||
if(!value["Title"].isNull())
|
||||
listObject.title = value["Title"].asString();
|
||||
if(!value["RiskLevel"].isNull())
|
||||
listObject.riskLevel = value["RiskLevel"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
listObject.status = value["Status"].asString();
|
||||
if(!value["AffectedCount"].isNull())
|
||||
listObject.affectedCount = std::stoi(value["AffectedCount"].asString());
|
||||
if(!value["CheckTime"].isNull())
|
||||
listObject.checkTime = std::stol(value["CheckTime"].asString());
|
||||
if(!value["RemainingTime"].isNull())
|
||||
listObject.remainingTime = std::stoi(value["RemainingTime"].asString());
|
||||
if(!value["Sort"].isNull())
|
||||
listObject.sort = std::stoi(value["Sort"].asString());
|
||||
if(!value["Type"].isNull())
|
||||
listObject.type = value["Type"].asString();
|
||||
auto allRiskItemResources = value["RiskItemResources"]["RiskItemResource"];
|
||||
for (auto value : allRiskItemResources)
|
||||
{
|
||||
RiskCheckResultForDisplay::RiskItemResource riskItemResourcesObject;
|
||||
if(!value["ResourceName"].isNull())
|
||||
riskItemResourcesObject.resourceName = value["ResourceName"].asString();
|
||||
if(!value["ContentResource"].isNull())
|
||||
riskItemResourcesObject.contentResource = value["ContentResource"].asString();
|
||||
listObject.riskItemResources.push_back(riskItemResourcesObject);
|
||||
}
|
||||
list_.push_back(listObject);
|
||||
}
|
||||
if(!value["PageCount"].isNull())
|
||||
pageCount_ = std::stoi(value["PageCount"].asString());
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeRiskCheckResultResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeRiskCheckResultResult::getPageCount()const
|
||||
{
|
||||
return pageCount_;
|
||||
}
|
||||
|
||||
int DescribeRiskCheckResultResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeRiskCheckResultResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRiskCheckResultResult::RiskCheckResultForDisplay> DescribeRiskCheckResultResult::getList()const
|
||||
{
|
||||
return list_;
|
||||
}
|
||||
|
||||
int DescribeRiskCheckResultResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
60
sas/src/model/DescribeRiskCheckSummaryRequest.cc
Normal file
60
sas/src/model/DescribeRiskCheckSummaryRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeRiskCheckSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeRiskCheckSummaryRequest;
|
||||
|
||||
DescribeRiskCheckSummaryRequest::DescribeRiskCheckSummaryRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeRiskCheckSummary")
|
||||
{}
|
||||
|
||||
DescribeRiskCheckSummaryRequest::~DescribeRiskCheckSummaryRequest()
|
||||
{}
|
||||
|
||||
long DescribeRiskCheckSummaryRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckSummaryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckSummaryRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckSummaryRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckSummaryRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckSummaryRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
99
sas/src/model/DescribeRiskCheckSummaryResult.cc
Normal file
99
sas/src/model/DescribeRiskCheckSummaryResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeRiskCheckSummaryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeRiskCheckSummaryResult::DescribeRiskCheckSummaryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRiskCheckSummaryResult::DescribeRiskCheckSummaryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRiskCheckSummaryResult::~DescribeRiskCheckSummaryResult()
|
||||
{}
|
||||
|
||||
void DescribeRiskCheckSummaryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto riskCheckSummaryNode = value["RiskCheckSummary"];
|
||||
if(!riskCheckSummaryNode["RiskCount"].isNull())
|
||||
riskCheckSummary_.riskCount = std::stoi(riskCheckSummaryNode["RiskCount"].asString());
|
||||
if(!riskCheckSummaryNode["PreviousCount"].isNull())
|
||||
riskCheckSummary_.previousCount = std::stoi(riskCheckSummaryNode["PreviousCount"].asString());
|
||||
if(!riskCheckSummaryNode["ItemCount"].isNull())
|
||||
riskCheckSummary_.itemCount = std::stoi(riskCheckSummaryNode["ItemCount"].asString());
|
||||
if(!riskCheckSummaryNode["RiskRate"].isNull())
|
||||
riskCheckSummary_.riskRate = std::stof(riskCheckSummaryNode["RiskRate"].asString());
|
||||
if(!riskCheckSummaryNode["AffectedAssetCount"].isNull())
|
||||
riskCheckSummary_.affectedAssetCount = std::stoi(riskCheckSummaryNode["AffectedAssetCount"].asString());
|
||||
if(!riskCheckSummaryNode["PreviousTime"].isNull())
|
||||
riskCheckSummary_.previousTime = std::stol(riskCheckSummaryNode["PreviousTime"].asString());
|
||||
auto allRiskLevelCount = value["RiskLevelCount"]["levelCount"];
|
||||
for (auto value : allRiskLevelCount)
|
||||
{
|
||||
RiskCheckSummary::LevelCount levelCountObject;
|
||||
if(!value["Key"].isNull())
|
||||
levelCountObject.key = value["Key"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
levelCountObject.count = std::stoi(value["Count"].asString());
|
||||
riskCheckSummary_.riskLevelCount.push_back(levelCountObject);
|
||||
}
|
||||
auto allGroups = value["Groups"]["group"];
|
||||
for (auto value : allGroups)
|
||||
{
|
||||
RiskCheckSummary::Group groupObject;
|
||||
if(!value["Id"].isNull())
|
||||
groupObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["Title"].isNull())
|
||||
groupObject.title = value["Title"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
groupObject.status = value["Status"].asString();
|
||||
if(!value["RemainingTime"].isNull())
|
||||
groupObject.remainingTime = std::stoi(value["RemainingTime"].asString());
|
||||
if(!value["Sort"].isNull())
|
||||
groupObject.sort = std::stoi(value["Sort"].asString());
|
||||
auto allCountByStatus = value["CountByStatus"]["statusCount"];
|
||||
for (auto value : allCountByStatus)
|
||||
{
|
||||
RiskCheckSummary::Group::StatusCount countByStatusObject;
|
||||
if(!value["Status"].isNull())
|
||||
countByStatusObject.status = value["Status"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
countByStatusObject.count = std::stoi(value["Count"].asString());
|
||||
groupObject.countByStatus.push_back(countByStatusObject);
|
||||
}
|
||||
riskCheckSummary_.groups.push_back(groupObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeRiskCheckSummaryResult::RiskCheckSummary DescribeRiskCheckSummaryResult::getRiskCheckSummary()const
|
||||
{
|
||||
return riskCheckSummary_;
|
||||
}
|
||||
|
||||
60
sas/src/model/DescribeRiskItemTypeRequest.cc
Normal file
60
sas/src/model/DescribeRiskItemTypeRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeRiskItemTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeRiskItemTypeRequest;
|
||||
|
||||
DescribeRiskItemTypeRequest::DescribeRiskItemTypeRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeRiskItemType")
|
||||
{}
|
||||
|
||||
DescribeRiskItemTypeRequest::~DescribeRiskItemTypeRequest()
|
||||
{}
|
||||
|
||||
long DescribeRiskItemTypeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRiskItemTypeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRiskItemTypeRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeRiskItemTypeRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeRiskItemTypeRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeRiskItemTypeRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
60
sas/src/model/DescribeRiskItemTypeResult.cc
Normal file
60
sas/src/model/DescribeRiskItemTypeResult.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeRiskItemTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeRiskItemTypeResult::DescribeRiskItemTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRiskItemTypeResult::DescribeRiskItemTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRiskItemTypeResult::~DescribeRiskItemTypeResult()
|
||||
{}
|
||||
|
||||
void DescribeRiskItemTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allList = value["List"]["ItemType"];
|
||||
for (auto value : allList)
|
||||
{
|
||||
ItemType listObject;
|
||||
if(!value["Id"].isNull())
|
||||
listObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["Title"].isNull())
|
||||
listObject.title = value["Title"].asString();
|
||||
list_.push_back(listObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRiskItemTypeResult::ItemType> DescribeRiskItemTypeResult::getList()const
|
||||
{
|
||||
return list_;
|
||||
}
|
||||
|
||||
60
sas/src/model/DescribeSecurityCheckScheduleConfigRequest.cc
Normal file
60
sas/src/model/DescribeSecurityCheckScheduleConfigRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeSecurityCheckScheduleConfigRequest;
|
||||
|
||||
DescribeSecurityCheckScheduleConfigRequest::DescribeSecurityCheckScheduleConfigRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeSecurityCheckScheduleConfig")
|
||||
{}
|
||||
|
||||
DescribeSecurityCheckScheduleConfigRequest::~DescribeSecurityCheckScheduleConfigRequest()
|
||||
{}
|
||||
|
||||
long DescribeSecurityCheckScheduleConfigRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSecurityCheckScheduleConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSecurityCheckScheduleConfigRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeSecurityCheckScheduleConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeSecurityCheckScheduleConfigRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeSecurityCheckScheduleConfigRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
57
sas/src/model/DescribeSecurityCheckScheduleConfigResult.cc
Normal file
57
sas/src/model/DescribeSecurityCheckScheduleConfigResult.cc
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeSecurityCheckScheduleConfigResult::DescribeSecurityCheckScheduleConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSecurityCheckScheduleConfigResult::DescribeSecurityCheckScheduleConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSecurityCheckScheduleConfigResult::~DescribeSecurityCheckScheduleConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeSecurityCheckScheduleConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto riskCheckJobConfigNode = value["RiskCheckJobConfig"];
|
||||
if(!riskCheckJobConfigNode["StartTime"].isNull())
|
||||
riskCheckJobConfig_.startTime = std::stoi(riskCheckJobConfigNode["StartTime"].asString());
|
||||
if(!riskCheckJobConfigNode["EndTime"].isNull())
|
||||
riskCheckJobConfig_.endTime = std::stoi(riskCheckJobConfigNode["EndTime"].asString());
|
||||
if(!riskCheckJobConfigNode["DaysOfWeek"].isNull())
|
||||
riskCheckJobConfig_.daysOfWeek = riskCheckJobConfigNode["DaysOfWeek"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeSecurityCheckScheduleConfigResult::RiskCheckJobConfig DescribeSecurityCheckScheduleConfigResult::getRiskCheckJobConfig()const
|
||||
{
|
||||
return riskCheckJobConfig_;
|
||||
}
|
||||
|
||||
71
sas/src/model/DescribeSuspEventDetailRequest.cc
Normal file
71
sas/src/model/DescribeSuspEventDetailRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSuspEventDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeSuspEventDetailRequest;
|
||||
|
||||
DescribeSuspEventDetailRequest::DescribeSuspEventDetailRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeSuspEventDetail")
|
||||
{}
|
||||
|
||||
DescribeSuspEventDetailRequest::~DescribeSuspEventDetailRequest()
|
||||
{}
|
||||
|
||||
int DescribeSuspEventDetailRequest::getSuspiciousEventId()const
|
||||
{
|
||||
return suspiciousEventId_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventDetailRequest::setSuspiciousEventId(int suspiciousEventId)
|
||||
{
|
||||
suspiciousEventId_ = suspiciousEventId;
|
||||
setCoreParameter("SuspiciousEventId", std::to_string(suspiciousEventId));
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailRequest::getFrom()const
|
||||
{
|
||||
return from_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventDetailRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setCoreParameter("From", from);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventDetailRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
183
sas/src/model/DescribeSuspEventDetailResult.cc
Normal file
183
sas/src/model/DescribeSuspEventDetailResult.cc
Normal file
@@ -0,0 +1,183 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSuspEventDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeSuspEventDetailResult::DescribeSuspEventDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSuspEventDetailResult::DescribeSuspEventDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSuspEventDetailResult::~DescribeSuspEventDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeSuspEventDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDetails = value["Details"]["QuaraFile"];
|
||||
for (auto value : allDetails)
|
||||
{
|
||||
QuaraFile detailsObject;
|
||||
if(!value["Name"].isNull())
|
||||
detailsObject.name = value["Name"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
detailsObject.type = value["Type"].asString();
|
||||
if(!value["InfoType"].isNull())
|
||||
detailsObject.infoType = value["InfoType"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
detailsObject.value = value["Value"].asString();
|
||||
details_.push_back(detailsObject);
|
||||
}
|
||||
if(!value["LastTime"].isNull())
|
||||
lastTime_ = value["LastTime"].asString();
|
||||
if(!value["Id"].isNull())
|
||||
id_ = std::stoi(value["Id"].asString());
|
||||
if(!value["InstanceName"].isNull())
|
||||
instanceName_ = value["InstanceName"].asString();
|
||||
if(!value["InternetIp"].isNull())
|
||||
internetIp_ = value["InternetIp"].asString();
|
||||
if(!value["IntranetIp"].isNull())
|
||||
intranetIp_ = value["IntranetIp"].asString();
|
||||
if(!value["Uuid"].isNull())
|
||||
uuid_ = value["Uuid"].asString();
|
||||
if(!value["EventDesc"].isNull())
|
||||
eventDesc_ = value["EventDesc"].asString();
|
||||
if(!value["EventTypeDesc"].isNull())
|
||||
eventTypeDesc_ = value["EventTypeDesc"].asString();
|
||||
if(!value["Level"].isNull())
|
||||
level_ = value["Level"].asString();
|
||||
if(!value["EventStatus"].isNull())
|
||||
eventStatus_ = value["EventStatus"].asString();
|
||||
if(!value["SaleVersion"].isNull())
|
||||
saleVersion_ = value["SaleVersion"].asString();
|
||||
if(!value["DataSource"].isNull())
|
||||
dataSource_ = value["DataSource"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
type_ = value["Type"].asString();
|
||||
if(!value["OperateMsg"].isNull())
|
||||
operateMsg_ = value["OperateMsg"].asString();
|
||||
if(!value["SasId"].isNull())
|
||||
sasId_ = value["SasId"].asString();
|
||||
if(!value["EventName"].isNull())
|
||||
eventName_ = value["EventName"].asString();
|
||||
if(!value["CanBeDealOnLine"].isNull())
|
||||
canBeDealOnLine_ = value["CanBeDealOnLine"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailResult::getEventDesc()const
|
||||
{
|
||||
return eventDesc_;
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailResult::getEventTypeDesc()const
|
||||
{
|
||||
return eventTypeDesc_;
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailResult::getEventStatus()const
|
||||
{
|
||||
return eventStatus_;
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailResult::getEventName()const
|
||||
{
|
||||
return eventName_;
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailResult::getSaleVersion()const
|
||||
{
|
||||
return saleVersion_;
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailResult::getIntranetIp()const
|
||||
{
|
||||
return intranetIp_;
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailResult::getDataSource()const
|
||||
{
|
||||
return dataSource_;
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailResult::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailResult::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailResult::getOperateMsg()const
|
||||
{
|
||||
return operateMsg_;
|
||||
}
|
||||
|
||||
bool DescribeSuspEventDetailResult::getCanBeDealOnLine()const
|
||||
{
|
||||
return canBeDealOnLine_;
|
||||
}
|
||||
|
||||
std::vector<DescribeSuspEventDetailResult::QuaraFile> DescribeSuspEventDetailResult::getDetails()const
|
||||
{
|
||||
return details_;
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailResult::getUuid()const
|
||||
{
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailResult::getInternetIp()const
|
||||
{
|
||||
return internetIp_;
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailResult::getLevel()const
|
||||
{
|
||||
return level_;
|
||||
}
|
||||
|
||||
int DescribeSuspEventDetailResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailResult::getLastTime()const
|
||||
{
|
||||
return lastTime_;
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailResult::getSasId()const
|
||||
{
|
||||
return sasId_;
|
||||
}
|
||||
|
||||
148
sas/src/model/DescribeSuspEventsRequest.cc
Normal file
148
sas/src/model/DescribeSuspEventsRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSuspEventsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeSuspEventsRequest;
|
||||
|
||||
DescribeSuspEventsRequest::DescribeSuspEventsRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeSuspEvents")
|
||||
{}
|
||||
|
||||
DescribeSuspEventsRequest::~DescribeSuspEventsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getAlarmUniqueInfo()const
|
||||
{
|
||||
return alarmUniqueInfo_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setAlarmUniqueInfo(const std::string& alarmUniqueInfo)
|
||||
{
|
||||
alarmUniqueInfo_ = alarmUniqueInfo;
|
||||
setCoreParameter("AlarmUniqueInfo", alarmUniqueInfo);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getDealed()const
|
||||
{
|
||||
return dealed_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setDealed(const std::string& dealed)
|
||||
{
|
||||
dealed_ = dealed;
|
||||
setCoreParameter("Dealed", dealed);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setCoreParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setCurrentPage(const std::string& currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", currentPage);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getFrom()const
|
||||
{
|
||||
return from_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setCoreParameter("From", from);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getLevels()const
|
||||
{
|
||||
return levels_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setLevels(const std::string& levels)
|
||||
{
|
||||
levels_ = levels;
|
||||
setCoreParameter("Levels", levels);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getParentEventTypes()const
|
||||
{
|
||||
return parentEventTypes_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setParentEventTypes(const std::string& parentEventTypes)
|
||||
{
|
||||
parentEventTypes_ = parentEventTypes;
|
||||
setCoreParameter("ParentEventTypes", parentEventTypes);
|
||||
}
|
||||
|
||||
122
sas/src/model/DescribeSuspEventsResult.cc
Normal file
122
sas/src/model/DescribeSuspEventsResult.cc
Normal file
@@ -0,0 +1,122 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSuspEventsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeSuspEventsResult::DescribeSuspEventsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSuspEventsResult::DescribeSuspEventsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSuspEventsResult::~DescribeSuspEventsResult()
|
||||
{}
|
||||
|
||||
void DescribeSuspEventsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSuspEvents = value["SuspEvents"]["WarningSummary"];
|
||||
for (auto value : allSuspEvents)
|
||||
{
|
||||
WarningSummary suspEventsObject;
|
||||
if(!value["LastTime"].isNull())
|
||||
suspEventsObject.lastTime = value["LastTime"].asString();
|
||||
if(!value["OccurrenceTime"].isNull())
|
||||
suspEventsObject.occurrenceTime = value["OccurrenceTime"].asString();
|
||||
if(!value["Id"].isNull())
|
||||
suspEventsObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["InstanceName"].isNull())
|
||||
suspEventsObject.instanceName = value["InstanceName"].asString();
|
||||
if(!value["InternetIp"].isNull())
|
||||
suspEventsObject.internetIp = value["InternetIp"].asString();
|
||||
if(!value["IntranetIp"].isNull())
|
||||
suspEventsObject.intranetIp = value["IntranetIp"].asString();
|
||||
if(!value["Uuid"].isNull())
|
||||
suspEventsObject.uuid = value["Uuid"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
suspEventsObject.name = value["Name"].asString();
|
||||
if(!value["EventSubType"].isNull())
|
||||
suspEventsObject.eventSubType = value["EventSubType"].asString();
|
||||
if(!value["Level"].isNull())
|
||||
suspEventsObject.level = value["Level"].asString();
|
||||
if(!value["EventStatus"].isNull())
|
||||
suspEventsObject.eventStatus = std::stoi(value["EventStatus"].asString());
|
||||
if(!value["Desc"].isNull())
|
||||
suspEventsObject.desc = value["Desc"].asString();
|
||||
if(!value["OperateMsg"].isNull())
|
||||
suspEventsObject.operateMsg = value["OperateMsg"].asString();
|
||||
if(!value["DataSource"].isNull())
|
||||
suspEventsObject.dataSource = value["DataSource"].asString();
|
||||
if(!value["CanBeDealOnLine"].isNull())
|
||||
suspEventsObject.canBeDealOnLine = value["CanBeDealOnLine"].asString() == "true";
|
||||
if(!value["SaleVersion"].isNull())
|
||||
suspEventsObject.saleVersion = value["SaleVersion"].asString();
|
||||
if(!value["AlarmEventType"].isNull())
|
||||
suspEventsObject.alarmEventType = value["AlarmEventType"].asString();
|
||||
if(!value["AlarmEventName"].isNull())
|
||||
suspEventsObject.alarmEventName = value["AlarmEventName"].asString();
|
||||
if(!value["AlarmUniqueInfo"].isNull())
|
||||
suspEventsObject.alarmUniqueInfo = value["AlarmUniqueInfo"].asString();
|
||||
suspEvents_.push_back(suspEventsObject);
|
||||
}
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeSuspEventsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeSuspEventsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeSuspEventsResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
int DescribeSuspEventsResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::vector<DescribeSuspEventsResult::WarningSummary> DescribeSuspEventsResult::getSuspEvents()const
|
||||
{
|
||||
return suspEvents_;
|
||||
}
|
||||
|
||||
60
sas/src/model/DescribeUserBaselineAuthorizationRequest.cc
Normal file
60
sas/src/model/DescribeUserBaselineAuthorizationRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeUserBaselineAuthorizationRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeUserBaselineAuthorizationRequest;
|
||||
|
||||
DescribeUserBaselineAuthorizationRequest::DescribeUserBaselineAuthorizationRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeUserBaselineAuthorization")
|
||||
{}
|
||||
|
||||
DescribeUserBaselineAuthorizationRequest::~DescribeUserBaselineAuthorizationRequest()
|
||||
{}
|
||||
|
||||
long DescribeUserBaselineAuthorizationRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeUserBaselineAuthorizationRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeUserBaselineAuthorizationRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeUserBaselineAuthorizationRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeUserBaselineAuthorizationRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeUserBaselineAuthorizationRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
53
sas/src/model/DescribeUserBaselineAuthorizationResult.cc
Normal file
53
sas/src/model/DescribeUserBaselineAuthorizationResult.cc
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeUserBaselineAuthorizationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeUserBaselineAuthorizationResult::DescribeUserBaselineAuthorizationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeUserBaselineAuthorizationResult::DescribeUserBaselineAuthorizationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeUserBaselineAuthorizationResult::~DescribeUserBaselineAuthorizationResult()
|
||||
{}
|
||||
|
||||
void DescribeUserBaselineAuthorizationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto userBaselineAuthorizationNode = value["UserBaselineAuthorization"];
|
||||
if(!userBaselineAuthorizationNode["Status"].isNull())
|
||||
userBaselineAuthorization_.status = std::stoi(userBaselineAuthorizationNode["Status"].asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeUserBaselineAuthorizationResult::UserBaselineAuthorization DescribeUserBaselineAuthorizationResult::getUserBaselineAuthorization()const
|
||||
{
|
||||
return userBaselineAuthorization_;
|
||||
}
|
||||
|
||||
82
sas/src/model/DescribeVulDetailsRequest.cc
Normal file
82
sas/src/model/DescribeVulDetailsRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeVulDetailsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeVulDetailsRequest;
|
||||
|
||||
DescribeVulDetailsRequest::DescribeVulDetailsRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeVulDetails")
|
||||
{}
|
||||
|
||||
DescribeVulDetailsRequest::~DescribeVulDetailsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVulDetailsRequest::getAliasName()const
|
||||
{
|
||||
return aliasName_;
|
||||
}
|
||||
|
||||
void DescribeVulDetailsRequest::setAliasName(const std::string& aliasName)
|
||||
{
|
||||
aliasName_ = aliasName;
|
||||
setCoreParameter("AliasName", aliasName);
|
||||
}
|
||||
|
||||
std::string DescribeVulDetailsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeVulDetailsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeVulDetailsRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeVulDetailsRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string DescribeVulDetailsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeVulDetailsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeVulDetailsRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribeVulDetailsRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
104
sas/src/model/DescribeVulDetailsResult.cc
Normal file
104
sas/src/model/DescribeVulDetailsResult.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeVulDetailsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeVulDetailsResult::DescribeVulDetailsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVulDetailsResult::DescribeVulDetailsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVulDetailsResult::~DescribeVulDetailsResult()
|
||||
{}
|
||||
|
||||
void DescribeVulDetailsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCves = value["Cves"]["Cve"];
|
||||
for (auto value : allCves)
|
||||
{
|
||||
Cve cvesObject;
|
||||
if(!value["CveId"].isNull())
|
||||
cvesObject.cveId = value["CveId"].asString();
|
||||
if(!value["CnvdId"].isNull())
|
||||
cvesObject.cnvdId = value["CnvdId"].asString();
|
||||
if(!value["Title"].isNull())
|
||||
cvesObject.title = value["Title"].asString();
|
||||
if(!value["CvssScore"].isNull())
|
||||
cvesObject.cvssScore = value["CvssScore"].asString();
|
||||
if(!value["CvssVector"].isNull())
|
||||
cvesObject.cvssVector = value["CvssVector"].asString();
|
||||
if(!value["ReleaseTime"].isNull())
|
||||
cvesObject.releaseTime = std::stol(value["ReleaseTime"].asString());
|
||||
if(!value["Complexity"].isNull())
|
||||
cvesObject.complexity = value["Complexity"].asString();
|
||||
if(!value["Poc"].isNull())
|
||||
cvesObject.poc = value["Poc"].asString();
|
||||
if(!value["PocCreateTime"].isNull())
|
||||
cvesObject.pocCreateTime = std::stol(value["PocCreateTime"].asString());
|
||||
if(!value["PocDisclosureTime"].isNull())
|
||||
cvesObject.pocDisclosureTime = std::stol(value["PocDisclosureTime"].asString());
|
||||
if(!value["Summary"].isNull())
|
||||
cvesObject.summary = value["Summary"].asString();
|
||||
if(!value["Solution"].isNull())
|
||||
cvesObject.solution = value["Solution"].asString();
|
||||
if(!value["Content"].isNull())
|
||||
cvesObject.content = value["Content"].asString();
|
||||
if(!value["Vendor"].isNull())
|
||||
cvesObject.vendor = value["Vendor"].asString();
|
||||
if(!value["Product"].isNull())
|
||||
cvesObject.product = value["Product"].asString();
|
||||
if(!value["VulLevel"].isNull())
|
||||
cvesObject.vulLevel = value["VulLevel"].asString();
|
||||
if(!value["Reference"].isNull())
|
||||
cvesObject.reference = value["Reference"].asString();
|
||||
if(!value["Classify"].isNull())
|
||||
cvesObject.classify = value["Classify"].asString();
|
||||
auto allClassifys = value["Classifys"]["Classify"];
|
||||
for (auto value : allClassifys)
|
||||
{
|
||||
Cve::Classify classifysObject;
|
||||
if(!value["Classify"].isNull())
|
||||
classifysObject.classify = value["Classify"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
classifysObject.description = value["Description"].asString();
|
||||
if(!value["DemoVideoUrl"].isNull())
|
||||
classifysObject.demoVideoUrl = value["DemoVideoUrl"].asString();
|
||||
cvesObject.classifys.push_back(classifysObject);
|
||||
}
|
||||
cves_.push_back(cvesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeVulDetailsResult::Cve> DescribeVulDetailsResult::getCves()const
|
||||
{
|
||||
return cves_;
|
||||
}
|
||||
|
||||
137
sas/src/model/DescribeVulListRequest.cc
Normal file
137
sas/src/model/DescribeVulListRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeVulListRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeVulListRequest;
|
||||
|
||||
DescribeVulListRequest::DescribeVulListRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeVulList")
|
||||
{}
|
||||
|
||||
DescribeVulListRequest::~DescribeVulListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVulListRequest::getAliasName()const
|
||||
{
|
||||
return aliasName_;
|
||||
}
|
||||
|
||||
void DescribeVulListRequest::setAliasName(const std::string& aliasName)
|
||||
{
|
||||
aliasName_ = aliasName;
|
||||
setCoreParameter("AliasName", aliasName);
|
||||
}
|
||||
|
||||
std::string DescribeVulListRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeVulListRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeVulListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeVulListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeVulListRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void DescribeVulListRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setCoreParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string DescribeVulListRequest::getDealed()const
|
||||
{
|
||||
return dealed_;
|
||||
}
|
||||
|
||||
void DescribeVulListRequest::setDealed(const std::string& dealed)
|
||||
{
|
||||
dealed_ = dealed;
|
||||
setCoreParameter("Dealed", dealed);
|
||||
}
|
||||
|
||||
int DescribeVulListRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeVulListRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeVulListRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeVulListRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeVulListRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribeVulListRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DescribeVulListRequest::getNecessity()const
|
||||
{
|
||||
return necessity_;
|
||||
}
|
||||
|
||||
void DescribeVulListRequest::setNecessity(const std::string& necessity)
|
||||
{
|
||||
necessity_ = necessity;
|
||||
setCoreParameter("Necessity", necessity);
|
||||
}
|
||||
|
||||
std::string DescribeVulListRequest::getUuids()const
|
||||
{
|
||||
return uuids_;
|
||||
}
|
||||
|
||||
void DescribeVulListRequest::setUuids(const std::string& uuids)
|
||||
{
|
||||
uuids_ = uuids;
|
||||
setCoreParameter("Uuids", uuids);
|
||||
}
|
||||
|
||||
178
sas/src/model/DescribeVulListResult.cc
Normal file
178
sas/src/model/DescribeVulListResult.cc
Normal file
@@ -0,0 +1,178 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeVulListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeVulListResult::DescribeVulListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVulListResult::DescribeVulListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVulListResult::~DescribeVulListResult()
|
||||
{}
|
||||
|
||||
void DescribeVulListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVulRecords = value["VulRecords"]["VulRecord"];
|
||||
for (auto value : allVulRecords)
|
||||
{
|
||||
VulRecord vulRecordsObject;
|
||||
if(!value["PrimaryId"].isNull())
|
||||
vulRecordsObject.primaryId = std::stol(value["PrimaryId"].asString());
|
||||
if(!value["Uuid"].isNull())
|
||||
vulRecordsObject.uuid = value["Uuid"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
vulRecordsObject.name = value["Name"].asString();
|
||||
if(!value["Tag"].isNull())
|
||||
vulRecordsObject.tag = value["Tag"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
vulRecordsObject.type = value["Type"].asString();
|
||||
if(!value["AliasName"].isNull())
|
||||
vulRecordsObject.aliasName = value["AliasName"].asString();
|
||||
if(!value["FirstTs"].isNull())
|
||||
vulRecordsObject.firstTs = std::stol(value["FirstTs"].asString());
|
||||
if(!value["LastTs"].isNull())
|
||||
vulRecordsObject.lastTs = std::stol(value["LastTs"].asString());
|
||||
if(!value["RepairTs"].isNull())
|
||||
vulRecordsObject.repairTs = std::stol(value["RepairTs"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
vulRecordsObject.status = std::stoi(value["Status"].asString());
|
||||
if(!value["Related"].isNull())
|
||||
vulRecordsObject.related = value["Related"].asString();
|
||||
if(!value["ResultCode"].isNull())
|
||||
vulRecordsObject.resultCode = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
vulRecordsObject.resultMessage = value["ResultMessage"].asString();
|
||||
if(!value["ModifyTs"].isNull())
|
||||
vulRecordsObject.modifyTs = std::stol(value["ModifyTs"].asString());
|
||||
if(!value["Necessity"].isNull())
|
||||
vulRecordsObject.necessity = value["Necessity"].asString();
|
||||
if(!value["GroupId"].isNull())
|
||||
vulRecordsObject.groupId = std::stoi(value["GroupId"].asString());
|
||||
if(!value["InstanceId"].isNull())
|
||||
vulRecordsObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["InstanceName"].isNull())
|
||||
vulRecordsObject.instanceName = value["InstanceName"].asString();
|
||||
if(!value["InternetIp"].isNull())
|
||||
vulRecordsObject.internetIp = value["InternetIp"].asString();
|
||||
if(!value["IntranetIp"].isNull())
|
||||
vulRecordsObject.intranetIp = value["IntranetIp"].asString();
|
||||
if(!value["Ip"].isNull())
|
||||
vulRecordsObject.ip = value["Ip"].asString();
|
||||
if(!value["OsVersion"].isNull())
|
||||
vulRecordsObject.osVersion = value["OsVersion"].asString();
|
||||
if(!value["NeedReboot"].isNull())
|
||||
vulRecordsObject.needReboot = value["NeedReboot"].asString();
|
||||
auto extendContentJsonNode = value["ExtendContentJson"];
|
||||
if(!extendContentJsonNode["Os"].isNull())
|
||||
vulRecordsObject.extendContentJson.os = extendContentJsonNode["Os"].asString();
|
||||
if(!extendContentJsonNode["OsRelease"].isNull())
|
||||
vulRecordsObject.extendContentJson.osRelease = extendContentJsonNode["OsRelease"].asString();
|
||||
if(!extendContentJsonNode["Status"].isNull())
|
||||
vulRecordsObject.extendContentJson.status = std::stoi(extendContentJsonNode["Status"].asString());
|
||||
if(!extendContentJsonNode["LastTs"].isNull())
|
||||
vulRecordsObject.extendContentJson.lastTs = std::stol(extendContentJsonNode["LastTs"].asString());
|
||||
if(!extendContentJsonNode["AliasName"].isNull())
|
||||
vulRecordsObject.extendContentJson.aliasName = extendContentJsonNode["AliasName"].asString();
|
||||
if(!extendContentJsonNode["Tag"].isNull())
|
||||
vulRecordsObject.extendContentJson.tag = extendContentJsonNode["Tag"].asString();
|
||||
if(!extendContentJsonNode["PrimaryId"].isNull())
|
||||
vulRecordsObject.extendContentJson.primaryId = std::stol(extendContentJsonNode["PrimaryId"].asString());
|
||||
if(!extendContentJsonNode["AbsolutePath"].isNull())
|
||||
vulRecordsObject.extendContentJson.absolutePath = extendContentJsonNode["AbsolutePath"].asString();
|
||||
auto allRpmEntityList = value["RpmEntityList"]["RpmEntityListItem"];
|
||||
for (auto value : allRpmEntityList)
|
||||
{
|
||||
VulRecord::ExtendContentJson::RpmEntityListItem rpmEntityListItemObject;
|
||||
if(!value["FullVersion"].isNull())
|
||||
rpmEntityListItemObject.fullVersion = value["FullVersion"].asString();
|
||||
if(!value["MatchDetail"].isNull())
|
||||
rpmEntityListItemObject.matchDetail = value["MatchDetail"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
rpmEntityListItemObject.name = value["Name"].asString();
|
||||
if(!value["Path"].isNull())
|
||||
rpmEntityListItemObject.path = value["Path"].asString();
|
||||
if(!value["UpdateCmd"].isNull())
|
||||
rpmEntityListItemObject.updateCmd = value["UpdateCmd"].asString();
|
||||
if(!value["Version"].isNull())
|
||||
rpmEntityListItemObject.version = value["Version"].asString();
|
||||
vulRecordsObject.extendContentJson.rpmEntityList.push_back(rpmEntityListItemObject);
|
||||
}
|
||||
auto necessityNode = extendContentJsonNode["Necessity"];
|
||||
if(!necessityNode["Cvss_factor"].isNull())
|
||||
vulRecordsObject.extendContentJson.necessity.cvss_factor = necessityNode["Cvss_factor"].asString();
|
||||
if(!necessityNode["Gmt_create"].isNull())
|
||||
vulRecordsObject.extendContentJson.necessity.gmt_create = necessityNode["Gmt_create"].asString();
|
||||
if(!necessityNode["Status"].isNull())
|
||||
vulRecordsObject.extendContentJson.necessity.status = necessityNode["Status"].asString();
|
||||
if(!necessityNode["Enviroment_factor"].isNull())
|
||||
vulRecordsObject.extendContentJson.necessity.enviroment_factor = necessityNode["Enviroment_factor"].asString();
|
||||
if(!necessityNode["Assets_factor"].isNull())
|
||||
vulRecordsObject.extendContentJson.necessity.assets_factor = necessityNode["Assets_factor"].asString();
|
||||
if(!necessityNode["Is_calc"].isNull())
|
||||
vulRecordsObject.extendContentJson.necessity.is_calc = necessityNode["Is_calc"].asString();
|
||||
if(!necessityNode["Total_score"].isNull())
|
||||
vulRecordsObject.extendContentJson.necessity.total_score = necessityNode["Total_score"].asString();
|
||||
if(!necessityNode["Time_factor"].isNull())
|
||||
vulRecordsObject.extendContentJson.necessity.time_factor = necessityNode["Time_factor"].asString();
|
||||
auto allCveList = extendContentJsonNode["cveList"]["CveList"];
|
||||
for (auto value : allCveList)
|
||||
vulRecordsObject.extendContentJson.cveList.push_back(value.asString());
|
||||
vulRecords_.push_back(vulRecordsObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeVulListResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeVulListResult::VulRecord> DescribeVulListResult::getVulRecords()const
|
||||
{
|
||||
return vulRecords_;
|
||||
}
|
||||
|
||||
int DescribeVulListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeVulListResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
60
sas/src/model/DescribeVulWhitelistRequest.cc
Normal file
60
sas/src/model/DescribeVulWhitelistRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeVulWhitelistRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeVulWhitelistRequest;
|
||||
|
||||
DescribeVulWhitelistRequest::DescribeVulWhitelistRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeVulWhitelist")
|
||||
{}
|
||||
|
||||
DescribeVulWhitelistRequest::~DescribeVulWhitelistRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVulWhitelistRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeVulWhitelistRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeVulWhitelistRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeVulWhitelistRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeVulWhitelistRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeVulWhitelistRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
85
sas/src/model/DescribeVulWhitelistResult.cc
Normal file
85
sas/src/model/DescribeVulWhitelistResult.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeVulWhitelistResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeVulWhitelistResult::DescribeVulWhitelistResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVulWhitelistResult::DescribeVulWhitelistResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVulWhitelistResult::~DescribeVulWhitelistResult()
|
||||
{}
|
||||
|
||||
void DescribeVulWhitelistResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVulWhitelists = value["VulWhitelists"]["VulWhitelist"];
|
||||
for (auto value : allVulWhitelists)
|
||||
{
|
||||
VulWhitelist vulWhitelistsObject;
|
||||
if(!value["Name"].isNull())
|
||||
vulWhitelistsObject.name = value["Name"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
vulWhitelistsObject.type = value["Type"].asString();
|
||||
if(!value["AliasName"].isNull())
|
||||
vulWhitelistsObject.aliasName = value["AliasName"].asString();
|
||||
if(!value["Reason"].isNull())
|
||||
vulWhitelistsObject.reason = value["Reason"].asString();
|
||||
vulWhitelists_.push_back(vulWhitelistsObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeVulWhitelistResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeVulWhitelistResult::VulWhitelist> DescribeVulWhitelistResult::getVulWhitelists()const
|
||||
{
|
||||
return vulWhitelists_;
|
||||
}
|
||||
|
||||
int DescribeVulWhitelistResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeVulWhitelistResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
49
sas/src/model/ModifyAutoDelConfigRequest.cc
Normal file
49
sas/src/model/ModifyAutoDelConfigRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyAutoDelConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ModifyAutoDelConfigRequest;
|
||||
|
||||
ModifyAutoDelConfigRequest::ModifyAutoDelConfigRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "ModifyAutoDelConfig")
|
||||
{}
|
||||
|
||||
ModifyAutoDelConfigRequest::~ModifyAutoDelConfigRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyAutoDelConfigRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyAutoDelConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int ModifyAutoDelConfigRequest::getDays()const
|
||||
{
|
||||
return days_;
|
||||
}
|
||||
|
||||
void ModifyAutoDelConfigRequest::setDays(int days)
|
||||
{
|
||||
days_ = days;
|
||||
setCoreParameter("Days", std::to_string(days));
|
||||
}
|
||||
|
||||
45
sas/src/model/ModifyAutoDelConfigResult.cc
Normal file
45
sas/src/model/ModifyAutoDelConfigResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyAutoDelConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ModifyAutoDelConfigResult::ModifyAutoDelConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyAutoDelConfigResult::ModifyAutoDelConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyAutoDelConfigResult::~ModifyAutoDelConfigResult()
|
||||
{}
|
||||
|
||||
void ModifyAutoDelConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
60
sas/src/model/ModifyConcernNecessityRequest.cc
Normal file
60
sas/src/model/ModifyConcernNecessityRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyConcernNecessityRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ModifyConcernNecessityRequest;
|
||||
|
||||
ModifyConcernNecessityRequest::ModifyConcernNecessityRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "ModifyConcernNecessity")
|
||||
{}
|
||||
|
||||
ModifyConcernNecessityRequest::~ModifyConcernNecessityRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyConcernNecessityRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyConcernNecessityRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyConcernNecessityRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void ModifyConcernNecessityRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string ModifyConcernNecessityRequest::getConcernNecessity()const
|
||||
{
|
||||
return concernNecessity_;
|
||||
}
|
||||
|
||||
void ModifyConcernNecessityRequest::setConcernNecessity(const std::string& concernNecessity)
|
||||
{
|
||||
concernNecessity_ = concernNecessity;
|
||||
setCoreParameter("ConcernNecessity", concernNecessity);
|
||||
}
|
||||
|
||||
45
sas/src/model/ModifyConcernNecessityResult.cc
Normal file
45
sas/src/model/ModifyConcernNecessityResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyConcernNecessityResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ModifyConcernNecessityResult::ModifyConcernNecessityResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyConcernNecessityResult::ModifyConcernNecessityResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyConcernNecessityResult::~ModifyConcernNecessityResult()
|
||||
{}
|
||||
|
||||
void ModifyConcernNecessityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
60
sas/src/model/ModifyCreateVulWhitelistRequest.cc
Normal file
60
sas/src/model/ModifyCreateVulWhitelistRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyCreateVulWhitelistRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ModifyCreateVulWhitelistRequest;
|
||||
|
||||
ModifyCreateVulWhitelistRequest::ModifyCreateVulWhitelistRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "ModifyCreateVulWhitelist")
|
||||
{}
|
||||
|
||||
ModifyCreateVulWhitelistRequest::~ModifyCreateVulWhitelistRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyCreateVulWhitelistRequest::getReason()const
|
||||
{
|
||||
return reason_;
|
||||
}
|
||||
|
||||
void ModifyCreateVulWhitelistRequest::setReason(const std::string& reason)
|
||||
{
|
||||
reason_ = reason;
|
||||
setCoreParameter("Reason", reason);
|
||||
}
|
||||
|
||||
std::string ModifyCreateVulWhitelistRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyCreateVulWhitelistRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyCreateVulWhitelistRequest::getWhitelist()const
|
||||
{
|
||||
return whitelist_;
|
||||
}
|
||||
|
||||
void ModifyCreateVulWhitelistRequest::setWhitelist(const std::string& whitelist)
|
||||
{
|
||||
whitelist_ = whitelist;
|
||||
setCoreParameter("Whitelist", whitelist);
|
||||
}
|
||||
|
||||
45
sas/src/model/ModifyCreateVulWhitelistResult.cc
Normal file
45
sas/src/model/ModifyCreateVulWhitelistResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyCreateVulWhitelistResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ModifyCreateVulWhitelistResult::ModifyCreateVulWhitelistResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyCreateVulWhitelistResult::ModifyCreateVulWhitelistResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyCreateVulWhitelistResult::~ModifyCreateVulWhitelistResult()
|
||||
{}
|
||||
|
||||
void ModifyCreateVulWhitelistResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
49
sas/src/model/ModifyDeleteVulWhitelistRequest.cc
Normal file
49
sas/src/model/ModifyDeleteVulWhitelistRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyDeleteVulWhitelistRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ModifyDeleteVulWhitelistRequest;
|
||||
|
||||
ModifyDeleteVulWhitelistRequest::ModifyDeleteVulWhitelistRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "ModifyDeleteVulWhitelist")
|
||||
{}
|
||||
|
||||
ModifyDeleteVulWhitelistRequest::~ModifyDeleteVulWhitelistRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDeleteVulWhitelistRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyDeleteVulWhitelistRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyDeleteVulWhitelistRequest::getWhitelist()const
|
||||
{
|
||||
return whitelist_;
|
||||
}
|
||||
|
||||
void ModifyDeleteVulWhitelistRequest::setWhitelist(const std::string& whitelist)
|
||||
{
|
||||
whitelist_ = whitelist;
|
||||
setCoreParameter("Whitelist", whitelist);
|
||||
}
|
||||
|
||||
45
sas/src/model/ModifyDeleteVulWhitelistResult.cc
Normal file
45
sas/src/model/ModifyDeleteVulWhitelistResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyDeleteVulWhitelistResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ModifyDeleteVulWhitelistResult::ModifyDeleteVulWhitelistResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDeleteVulWhitelistResult::ModifyDeleteVulWhitelistResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDeleteVulWhitelistResult::~ModifyDeleteVulWhitelistResult()
|
||||
{}
|
||||
|
||||
void ModifyDeleteVulWhitelistResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
71
sas/src/model/ModifyEmgVulSubmitRequest.cc
Normal file
71
sas/src/model/ModifyEmgVulSubmitRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyEmgVulSubmitRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ModifyEmgVulSubmitRequest;
|
||||
|
||||
ModifyEmgVulSubmitRequest::ModifyEmgVulSubmitRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "ModifyEmgVulSubmit")
|
||||
{}
|
||||
|
||||
ModifyEmgVulSubmitRequest::~ModifyEmgVulSubmitRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyEmgVulSubmitRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyEmgVulSubmitRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyEmgVulSubmitRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ModifyEmgVulSubmitRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string ModifyEmgVulSubmitRequest::getUserAgreement()const
|
||||
{
|
||||
return userAgreement_;
|
||||
}
|
||||
|
||||
void ModifyEmgVulSubmitRequest::setUserAgreement(const std::string& userAgreement)
|
||||
{
|
||||
userAgreement_ = userAgreement;
|
||||
setCoreParameter("UserAgreement", userAgreement);
|
||||
}
|
||||
|
||||
std::string ModifyEmgVulSubmitRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void ModifyEmgVulSubmitRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
45
sas/src/model/ModifyEmgVulSubmitResult.cc
Normal file
45
sas/src/model/ModifyEmgVulSubmitResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyEmgVulSubmitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ModifyEmgVulSubmitResult::ModifyEmgVulSubmitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyEmgVulSubmitResult::ModifyEmgVulSubmitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyEmgVulSubmitResult::~ModifyEmgVulSubmitResult()
|
||||
{}
|
||||
|
||||
void ModifyEmgVulSubmitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
82
sas/src/model/ModifyOperateVulRequest.cc
Normal file
82
sas/src/model/ModifyOperateVulRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyOperateVulRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ModifyOperateVulRequest;
|
||||
|
||||
ModifyOperateVulRequest::ModifyOperateVulRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "ModifyOperateVul")
|
||||
{}
|
||||
|
||||
ModifyOperateVulRequest::~ModifyOperateVulRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyOperateVulRequest::getReason()const
|
||||
{
|
||||
return reason_;
|
||||
}
|
||||
|
||||
void ModifyOperateVulRequest::setReason(const std::string& reason)
|
||||
{
|
||||
reason_ = reason;
|
||||
setCoreParameter("Reason", reason);
|
||||
}
|
||||
|
||||
std::string ModifyOperateVulRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyOperateVulRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyOperateVulRequest::getOperateType()const
|
||||
{
|
||||
return operateType_;
|
||||
}
|
||||
|
||||
void ModifyOperateVulRequest::setOperateType(const std::string& operateType)
|
||||
{
|
||||
operateType_ = operateType;
|
||||
setCoreParameter("OperateType", operateType);
|
||||
}
|
||||
|
||||
std::string ModifyOperateVulRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void ModifyOperateVulRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string ModifyOperateVulRequest::getInfo()const
|
||||
{
|
||||
return info_;
|
||||
}
|
||||
|
||||
void ModifyOperateVulRequest::setInfo(const std::string& info)
|
||||
{
|
||||
info_ = info;
|
||||
setCoreParameter("Info", info);
|
||||
}
|
||||
|
||||
45
sas/src/model/ModifyOperateVulResult.cc
Normal file
45
sas/src/model/ModifyOperateVulResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyOperateVulResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ModifyOperateVulResult::ModifyOperateVulResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyOperateVulResult::ModifyOperateVulResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyOperateVulResult::~ModifyOperateVulResult()
|
||||
{}
|
||||
|
||||
void ModifyOperateVulResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
93
sas/src/model/ModifyRiskCheckStatusRequest.cc
Normal file
93
sas/src/model/ModifyRiskCheckStatusRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyRiskCheckStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ModifyRiskCheckStatusRequest;
|
||||
|
||||
ModifyRiskCheckStatusRequest::ModifyRiskCheckStatusRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "ModifyRiskCheckStatus")
|
||||
{}
|
||||
|
||||
ModifyRiskCheckStatusRequest::~ModifyRiskCheckStatusRequest()
|
||||
{}
|
||||
|
||||
long ModifyRiskCheckStatusRequest::getItemId()const
|
||||
{
|
||||
return itemId_;
|
||||
}
|
||||
|
||||
void ModifyRiskCheckStatusRequest::setItemId(long itemId)
|
||||
{
|
||||
itemId_ = itemId;
|
||||
setCoreParameter("ItemId", std::to_string(itemId));
|
||||
}
|
||||
|
||||
long ModifyRiskCheckStatusRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyRiskCheckStatusRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyRiskCheckStatusRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyRiskCheckStatusRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyRiskCheckStatusRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void ModifyRiskCheckStatusRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
long ModifyRiskCheckStatusRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void ModifyRiskCheckStatusRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
std::string ModifyRiskCheckStatusRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ModifyRiskCheckStatusRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
45
sas/src/model/ModifyRiskCheckStatusResult.cc
Normal file
45
sas/src/model/ModifyRiskCheckStatusResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyRiskCheckStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ModifyRiskCheckStatusResult::ModifyRiskCheckStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyRiskCheckStatusResult::ModifyRiskCheckStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyRiskCheckStatusResult::~ModifyRiskCheckStatusResult()
|
||||
{}
|
||||
|
||||
void ModifyRiskCheckStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
94
sas/src/model/ModifyRiskSingleResultStatusRequest.cc
Normal file
94
sas/src/model/ModifyRiskSingleResultStatusRequest.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyRiskSingleResultStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ModifyRiskSingleResultStatusRequest;
|
||||
|
||||
ModifyRiskSingleResultStatusRequest::ModifyRiskSingleResultStatusRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "ModifyRiskSingleResultStatus")
|
||||
{}
|
||||
|
||||
ModifyRiskSingleResultStatusRequest::~ModifyRiskSingleResultStatusRequest()
|
||||
{}
|
||||
|
||||
long ModifyRiskSingleResultStatusRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyRiskSingleResultStatusRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyRiskSingleResultStatusRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyRiskSingleResultStatusRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyRiskSingleResultStatusRequest::getIds()const
|
||||
{
|
||||
return ids_;
|
||||
}
|
||||
|
||||
void ModifyRiskSingleResultStatusRequest::setIds(const std::vector<std::string>& ids)
|
||||
{
|
||||
ids_ = ids;
|
||||
for(int i = 0; i!= ids.size(); i++)
|
||||
setCoreParameter("Ids."+ std::to_string(i), ids.at(i));
|
||||
}
|
||||
|
||||
std::string ModifyRiskSingleResultStatusRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void ModifyRiskSingleResultStatusRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
long ModifyRiskSingleResultStatusRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void ModifyRiskSingleResultStatusRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
std::string ModifyRiskSingleResultStatusRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ModifyRiskSingleResultStatusRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
45
sas/src/model/ModifyRiskSingleResultStatusResult.cc
Normal file
45
sas/src/model/ModifyRiskSingleResultStatusResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyRiskSingleResultStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ModifyRiskSingleResultStatusResult::ModifyRiskSingleResultStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyRiskSingleResultStatusResult::ModifyRiskSingleResultStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyRiskSingleResultStatusResult::~ModifyRiskSingleResultStatusResult()
|
||||
{}
|
||||
|
||||
void ModifyRiskSingleResultStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
93
sas/src/model/ModifySecurityCheckScheduleConfigRequest.cc
Normal file
93
sas/src/model/ModifySecurityCheckScheduleConfigRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifySecurityCheckScheduleConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ModifySecurityCheckScheduleConfigRequest;
|
||||
|
||||
ModifySecurityCheckScheduleConfigRequest::ModifySecurityCheckScheduleConfigRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "ModifySecurityCheckScheduleConfig")
|
||||
{}
|
||||
|
||||
ModifySecurityCheckScheduleConfigRequest::~ModifySecurityCheckScheduleConfigRequest()
|
||||
{}
|
||||
|
||||
long ModifySecurityCheckScheduleConfigRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifySecurityCheckScheduleConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifySecurityCheckScheduleConfigRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifySecurityCheckScheduleConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifySecurityCheckScheduleConfigRequest::getDaysOfWeek()const
|
||||
{
|
||||
return daysOfWeek_;
|
||||
}
|
||||
|
||||
void ModifySecurityCheckScheduleConfigRequest::setDaysOfWeek(const std::string& daysOfWeek)
|
||||
{
|
||||
daysOfWeek_ = daysOfWeek;
|
||||
setCoreParameter("DaysOfWeek", daysOfWeek);
|
||||
}
|
||||
|
||||
int ModifySecurityCheckScheduleConfigRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ModifySecurityCheckScheduleConfigRequest::setEndTime(int endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
int ModifySecurityCheckScheduleConfigRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ModifySecurityCheckScheduleConfigRequest::setStartTime(int startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string ModifySecurityCheckScheduleConfigRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void ModifySecurityCheckScheduleConfigRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
45
sas/src/model/ModifySecurityCheckScheduleConfigResult.cc
Normal file
45
sas/src/model/ModifySecurityCheckScheduleConfigResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifySecurityCheckScheduleConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ModifySecurityCheckScheduleConfigResult::ModifySecurityCheckScheduleConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifySecurityCheckScheduleConfigResult::ModifySecurityCheckScheduleConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifySecurityCheckScheduleConfigResult::~ModifySecurityCheckScheduleConfigResult()
|
||||
{}
|
||||
|
||||
void ModifySecurityCheckScheduleConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
95
sas/src/model/StartBaselineSecurityCheckRequest.cc
Normal file
95
sas/src/model/StartBaselineSecurityCheckRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/StartBaselineSecurityCheckRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::StartBaselineSecurityCheckRequest;
|
||||
|
||||
StartBaselineSecurityCheckRequest::StartBaselineSecurityCheckRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "StartBaselineSecurityCheck")
|
||||
{}
|
||||
|
||||
StartBaselineSecurityCheckRequest::~StartBaselineSecurityCheckRequest()
|
||||
{}
|
||||
|
||||
long StartBaselineSecurityCheckRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void StartBaselineSecurityCheckRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> StartBaselineSecurityCheckRequest::getAssets()const
|
||||
{
|
||||
return assets_;
|
||||
}
|
||||
|
||||
void StartBaselineSecurityCheckRequest::setAssets(const std::vector<std::string>& assets)
|
||||
{
|
||||
assets_ = assets;
|
||||
for(int i = 0; i!= assets.size(); i++)
|
||||
setCoreParameter("Assets."+ std::to_string(i), assets.at(i));
|
||||
}
|
||||
|
||||
std::string StartBaselineSecurityCheckRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void StartBaselineSecurityCheckRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::vector<long> StartBaselineSecurityCheckRequest::getItemIds()const
|
||||
{
|
||||
return itemIds_;
|
||||
}
|
||||
|
||||
void StartBaselineSecurityCheckRequest::setItemIds(const std::vector<long>& itemIds)
|
||||
{
|
||||
itemIds_ = itemIds;
|
||||
for(int i = 0; i!= itemIds.size(); i++)
|
||||
setCoreParameter("ItemIds."+ std::to_string(i), std::to_string(itemIds.at(i)));
|
||||
}
|
||||
|
||||
std::string StartBaselineSecurityCheckRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void StartBaselineSecurityCheckRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string StartBaselineSecurityCheckRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void StartBaselineSecurityCheckRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
45
sas/src/model/StartBaselineSecurityCheckResult.cc
Normal file
45
sas/src/model/StartBaselineSecurityCheckResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/StartBaselineSecurityCheckResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
StartBaselineSecurityCheckResult::StartBaselineSecurityCheckResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartBaselineSecurityCheckResult::StartBaselineSecurityCheckResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartBaselineSecurityCheckResult::~StartBaselineSecurityCheckResult()
|
||||
{}
|
||||
|
||||
void StartBaselineSecurityCheckResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user