regenerate code
This commit is contained in:
1440
sas/src/SasClient.cc
1440
sas/src/SasClient.cc
File diff suppressed because it is too large
Load Diff
130
sas/src/model/CreateAntiBruteForceRuleRequest.cc
Normal file
130
sas/src/model/CreateAntiBruteForceRuleRequest.cc
Normal file
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* 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/CreateAntiBruteForceRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::CreateAntiBruteForceRuleRequest;
|
||||
|
||||
CreateAntiBruteForceRuleRequest::CreateAntiBruteForceRuleRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "CreateAntiBruteForceRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAntiBruteForceRuleRequest::~CreateAntiBruteForceRuleRequest()
|
||||
{}
|
||||
|
||||
long CreateAntiBruteForceRuleRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateAntiBruteForceRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int CreateAntiBruteForceRuleRequest::getForbiddenTime()const
|
||||
{
|
||||
return forbiddenTime_;
|
||||
}
|
||||
|
||||
void CreateAntiBruteForceRuleRequest::setForbiddenTime(int forbiddenTime)
|
||||
{
|
||||
forbiddenTime_ = forbiddenTime;
|
||||
setParameter("ForbiddenTime", std::to_string(forbiddenTime));
|
||||
}
|
||||
|
||||
int CreateAntiBruteForceRuleRequest::getFailCount()const
|
||||
{
|
||||
return failCount_;
|
||||
}
|
||||
|
||||
void CreateAntiBruteForceRuleRequest::setFailCount(int failCount)
|
||||
{
|
||||
failCount_ = failCount;
|
||||
setParameter("FailCount", std::to_string(failCount));
|
||||
}
|
||||
|
||||
std::string CreateAntiBruteForceRuleRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateAntiBruteForceRuleRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
bool CreateAntiBruteForceRuleRequest::getEnableSmartRule()const
|
||||
{
|
||||
return enableSmartRule_;
|
||||
}
|
||||
|
||||
void CreateAntiBruteForceRuleRequest::setEnableSmartRule(bool enableSmartRule)
|
||||
{
|
||||
enableSmartRule_ = enableSmartRule;
|
||||
setParameter("EnableSmartRule", enableSmartRule ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateAntiBruteForceRuleRequest::getUuidList()const
|
||||
{
|
||||
return uuidList_;
|
||||
}
|
||||
|
||||
void CreateAntiBruteForceRuleRequest::setUuidList(const std::vector<std::string>& uuidList)
|
||||
{
|
||||
uuidList_ = uuidList;
|
||||
for(int dep1 = 0; dep1!= uuidList.size(); dep1++) {
|
||||
setParameter("UuidList."+ std::to_string(dep1), uuidList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateAntiBruteForceRuleRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateAntiBruteForceRuleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int CreateAntiBruteForceRuleRequest::getSpan()const
|
||||
{
|
||||
return span_;
|
||||
}
|
||||
|
||||
void CreateAntiBruteForceRuleRequest::setSpan(int span)
|
||||
{
|
||||
span_ = span;
|
||||
setParameter("Span", std::to_string(span));
|
||||
}
|
||||
|
||||
bool CreateAntiBruteForceRuleRequest::getDefaultRule()const
|
||||
{
|
||||
return defaultRule_;
|
||||
}
|
||||
|
||||
void CreateAntiBruteForceRuleRequest::setDefaultRule(bool defaultRule)
|
||||
{
|
||||
defaultRule_ = defaultRule;
|
||||
setParameter("DefaultRule", defaultRule ? "true" : "false");
|
||||
}
|
||||
|
||||
52
sas/src/model/CreateAntiBruteForceRuleResult.cc
Normal file
52
sas/src/model/CreateAntiBruteForceRuleResult.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/CreateAntiBruteForceRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
CreateAntiBruteForceRuleResult::CreateAntiBruteForceRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAntiBruteForceRuleResult::CreateAntiBruteForceRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAntiBruteForceRuleResult::~CreateAntiBruteForceRuleResult()
|
||||
{}
|
||||
|
||||
void CreateAntiBruteForceRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto createAntiBruteForceRuleNode = value["CreateAntiBruteForceRule"];
|
||||
if(!createAntiBruteForceRuleNode["RuleId"].isNull())
|
||||
createAntiBruteForceRule_.ruleId = std::stol(createAntiBruteForceRuleNode["RuleId"].asString());
|
||||
|
||||
}
|
||||
|
||||
CreateAntiBruteForceRuleResult::CreateAntiBruteForceRule CreateAntiBruteForceRuleResult::getCreateAntiBruteForceRule()const
|
||||
{
|
||||
return createAntiBruteForceRule_;
|
||||
}
|
||||
|
||||
@@ -20,52 +20,54 @@ using AlibabaCloud::Sas::Model::CreateOrUpdateAssetGroupRequest;
|
||||
|
||||
CreateOrUpdateAssetGroupRequest::CreateOrUpdateAssetGroupRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "CreateOrUpdateAssetGroup")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOrUpdateAssetGroupRequest::~CreateOrUpdateAssetGroupRequest()
|
||||
{}
|
||||
|
||||
long CreateOrUpdateAssetGroupRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAssetGroupRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAssetGroupRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAssetGroupRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setCoreParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAssetGroupRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAssetGroupRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAssetGroupRequest::getUuids()const
|
||||
{
|
||||
return uuids_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAssetGroupRequest::setUuids(const std::string& uuids)
|
||||
{
|
||||
uuids_ = uuids;
|
||||
setCoreParameter("Uuids", uuids);
|
||||
}
|
||||
|
||||
long CreateOrUpdateAssetGroupRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAssetGroupRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAssetGroupRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAssetGroupRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAssetGroupRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAssetGroupRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateOrUpdateAssetGroupRequest::getUuids()const
|
||||
{
|
||||
return uuids_;
|
||||
}
|
||||
|
||||
void CreateOrUpdateAssetGroupRequest::setUuids(const std::string& uuids)
|
||||
{
|
||||
uuids_ = uuids;
|
||||
setParameter("Uuids", uuids);
|
||||
}
|
||||
|
||||
|
||||
73
sas/src/model/CreateSimilarSecurityEventsQueryTaskRequest.cc
Normal file
73
sas/src/model/CreateSimilarSecurityEventsQueryTaskRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/CreateSimilarSecurityEventsQueryTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::CreateSimilarSecurityEventsQueryTaskRequest;
|
||||
|
||||
CreateSimilarSecurityEventsQueryTaskRequest::CreateSimilarSecurityEventsQueryTaskRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "CreateSimilarSecurityEventsQueryTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSimilarSecurityEventsQueryTaskRequest::~CreateSimilarSecurityEventsQueryTaskRequest()
|
||||
{}
|
||||
|
||||
long CreateSimilarSecurityEventsQueryTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateSimilarSecurityEventsQueryTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateSimilarSecurityEventsQueryTaskRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateSimilarSecurityEventsQueryTaskRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
long CreateSimilarSecurityEventsQueryTaskRequest::getSecurityEventId()const
|
||||
{
|
||||
return securityEventId_;
|
||||
}
|
||||
|
||||
void CreateSimilarSecurityEventsQueryTaskRequest::setSecurityEventId(long securityEventId)
|
||||
{
|
||||
securityEventId_ = securityEventId;
|
||||
setParameter("SecurityEventId", std::to_string(securityEventId));
|
||||
}
|
||||
|
||||
std::string CreateSimilarSecurityEventsQueryTaskRequest::getSimilarEventScenarioCode()const
|
||||
{
|
||||
return similarEventScenarioCode_;
|
||||
}
|
||||
|
||||
void CreateSimilarSecurityEventsQueryTaskRequest::setSimilarEventScenarioCode(const std::string& similarEventScenarioCode)
|
||||
{
|
||||
similarEventScenarioCode_ = similarEventScenarioCode;
|
||||
setParameter("SimilarEventScenarioCode", similarEventScenarioCode);
|
||||
}
|
||||
|
||||
54
sas/src/model/CreateSimilarSecurityEventsQueryTaskResult.cc
Normal file
54
sas/src/model/CreateSimilarSecurityEventsQueryTaskResult.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/CreateSimilarSecurityEventsQueryTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
CreateSimilarSecurityEventsQueryTaskResult::CreateSimilarSecurityEventsQueryTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateSimilarSecurityEventsQueryTaskResult::CreateSimilarSecurityEventsQueryTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateSimilarSecurityEventsQueryTaskResult::~CreateSimilarSecurityEventsQueryTaskResult()
|
||||
{}
|
||||
|
||||
void CreateSimilarSecurityEventsQueryTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto createSimilarSecurityEventsQueryTaskResponse1Node = value["CreateSimilarSecurityEventsQueryTaskResponse"];
|
||||
if(!createSimilarSecurityEventsQueryTaskResponse1Node["TaskId"].isNull())
|
||||
createSimilarSecurityEventsQueryTaskResponse1_.taskId = std::stol(createSimilarSecurityEventsQueryTaskResponse1Node["TaskId"].asString());
|
||||
if(!createSimilarSecurityEventsQueryTaskResponse1Node["Status"].isNull())
|
||||
createSimilarSecurityEventsQueryTaskResponse1_.status = createSimilarSecurityEventsQueryTaskResponse1Node["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateSimilarSecurityEventsQueryTaskResult::CreateSimilarSecurityEventsQueryTaskResponse1 CreateSimilarSecurityEventsQueryTaskResult::getCreateSimilarSecurityEventsQueryTaskResponse1()const
|
||||
{
|
||||
return createSimilarSecurityEventsQueryTaskResponse1_;
|
||||
}
|
||||
|
||||
@@ -20,30 +20,32 @@ using AlibabaCloud::Sas::Model::DeleteGroupRequest;
|
||||
|
||||
DeleteGroupRequest::DeleteGroupRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DeleteGroup")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteGroupRequest::~DeleteGroupRequest()
|
||||
{}
|
||||
|
||||
long DeleteGroupRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DeleteGroupRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string DeleteGroupRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeleteGroupRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
long DeleteGroupRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DeleteGroupRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string DeleteGroupRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeleteGroupRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
|
||||
73
sas/src/model/DeleteLoginBaseConfigRequest.cc
Normal file
73
sas/src/model/DeleteLoginBaseConfigRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DeleteLoginBaseConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DeleteLoginBaseConfigRequest;
|
||||
|
||||
DeleteLoginBaseConfigRequest::DeleteLoginBaseConfigRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DeleteLoginBaseConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteLoginBaseConfigRequest::~DeleteLoginBaseConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteLoginBaseConfigRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DeleteLoginBaseConfigRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DeleteLoginBaseConfigRequest::getTarget()const
|
||||
{
|
||||
return target_;
|
||||
}
|
||||
|
||||
void DeleteLoginBaseConfigRequest::setTarget(const std::string& target)
|
||||
{
|
||||
target_ = target;
|
||||
setParameter("Target", target);
|
||||
}
|
||||
|
||||
std::string DeleteLoginBaseConfigRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeleteLoginBaseConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DeleteLoginBaseConfigRequest::getConfig()const
|
||||
{
|
||||
return config_;
|
||||
}
|
||||
|
||||
void DeleteLoginBaseConfigRequest::setConfig(const std::string& config)
|
||||
{
|
||||
config_ = config;
|
||||
setParameter("Config", config);
|
||||
}
|
||||
|
||||
44
sas/src/model/DeleteLoginBaseConfigResult.cc
Normal file
44
sas/src/model/DeleteLoginBaseConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DeleteLoginBaseConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DeleteLoginBaseConfigResult::DeleteLoginBaseConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLoginBaseConfigResult::DeleteLoginBaseConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLoginBaseConfigResult::~DeleteLoginBaseConfigResult()
|
||||
{}
|
||||
|
||||
void DeleteLoginBaseConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
sas/src/model/DeleteTagWithUuidRequest.cc
Normal file
62
sas/src/model/DeleteTagWithUuidRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DeleteTagWithUuidRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DeleteTagWithUuidRequest;
|
||||
|
||||
DeleteTagWithUuidRequest::DeleteTagWithUuidRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DeleteTagWithUuid")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTagWithUuidRequest::~DeleteTagWithUuidRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteTagWithUuidRequest::getTagName()const
|
||||
{
|
||||
return tagName_;
|
||||
}
|
||||
|
||||
void DeleteTagWithUuidRequest::setTagName(const std::string& tagName)
|
||||
{
|
||||
tagName_ = tagName;
|
||||
setParameter("TagName", tagName);
|
||||
}
|
||||
|
||||
std::string DeleteTagWithUuidRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeleteTagWithUuidRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DeleteTagWithUuidRequest::getUuidList()const
|
||||
{
|
||||
return uuidList_;
|
||||
}
|
||||
|
||||
void DeleteTagWithUuidRequest::setUuidList(const std::string& uuidList)
|
||||
{
|
||||
uuidList_ = uuidList;
|
||||
setParameter("UuidList", uuidList);
|
||||
}
|
||||
|
||||
44
sas/src/model/DeleteTagWithUuidResult.cc
Normal file
44
sas/src/model/DeleteTagWithUuidResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DeleteTagWithUuidResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DeleteTagWithUuidResult::DeleteTagWithUuidResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTagWithUuidResult::DeleteTagWithUuidResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTagWithUuidResult::~DeleteTagWithUuidResult()
|
||||
{}
|
||||
|
||||
void DeleteTagWithUuidResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeAlarmEventDetailRequest;
|
||||
|
||||
DescribeAlarmEventDetailRequest::DescribeAlarmEventDetailRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeAlarmEventDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAlarmEventDetailRequest::~DescribeAlarmEventDetailRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeAlarmEventDetailRequest::getAlarmUniqueInfo()const
|
||||
void DescribeAlarmEventDetailRequest::setAlarmUniqueInfo(const std::string& alarmUniqueInfo)
|
||||
{
|
||||
alarmUniqueInfo_ = alarmUniqueInfo;
|
||||
setCoreParameter("AlarmUniqueInfo", alarmUniqueInfo);
|
||||
setParameter("AlarmUniqueInfo", alarmUniqueInfo);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventDetailRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeAlarmEventDetailRequest::getSourceIp()const
|
||||
void DescribeAlarmEventDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventDetailRequest::getFrom()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeAlarmEventDetailRequest::getFrom()const
|
||||
void DescribeAlarmEventDetailRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setCoreParameter("From", from);
|
||||
setParameter("From", from);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventDetailRequest::getLang()const
|
||||
@@ -66,6 +68,6 @@ std::string DescribeAlarmEventDetailRequest::getLang()const
|
||||
void DescribeAlarmEventDetailRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeAlarmEventListRequest;
|
||||
|
||||
DescribeAlarmEventListRequest::DescribeAlarmEventListRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeAlarmEventList")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAlarmEventListRequest::~DescribeAlarmEventListRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeAlarmEventListRequest::getAlarmEventType()const
|
||||
void DescribeAlarmEventListRequest::setAlarmEventType(const std::string& alarmEventType)
|
||||
{
|
||||
alarmEventType_ = alarmEventType;
|
||||
setCoreParameter("AlarmEventType", alarmEventType);
|
||||
setParameter("AlarmEventType", alarmEventType);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getRemark()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeAlarmEventListRequest::getRemark()const
|
||||
void DescribeAlarmEventListRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setCoreParameter("Remark", remark);
|
||||
setParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getAlarmEventName()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeAlarmEventListRequest::getAlarmEventName()const
|
||||
void DescribeAlarmEventListRequest::setAlarmEventName(const std::string& alarmEventName)
|
||||
{
|
||||
alarmEventName_ = alarmEventName;
|
||||
setCoreParameter("AlarmEventName", alarmEventName);
|
||||
setParameter("AlarmEventName", alarmEventName);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getSourceIp()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeAlarmEventListRequest::getSourceIp()const
|
||||
void DescribeAlarmEventListRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getPageSize()const
|
||||
@@ -77,7 +79,7 @@ std::string DescribeAlarmEventListRequest::getPageSize()const
|
||||
void DescribeAlarmEventListRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", pageSize);
|
||||
setParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getFrom()const
|
||||
@@ -88,7 +90,7 @@ std::string DescribeAlarmEventListRequest::getFrom()const
|
||||
void DescribeAlarmEventListRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setCoreParameter("From", from);
|
||||
setParameter("From", from);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getLang()const
|
||||
@@ -99,7 +101,7 @@ std::string DescribeAlarmEventListRequest::getLang()const
|
||||
void DescribeAlarmEventListRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getGroupId()const
|
||||
@@ -110,7 +112,7 @@ std::string DescribeAlarmEventListRequest::getGroupId()const
|
||||
void DescribeAlarmEventListRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getDealed()const
|
||||
@@ -121,7 +123,7 @@ std::string DescribeAlarmEventListRequest::getDealed()const
|
||||
void DescribeAlarmEventListRequest::setDealed(const std::string& dealed)
|
||||
{
|
||||
dealed_ = dealed;
|
||||
setCoreParameter("Dealed", dealed);
|
||||
setParameter("Dealed", dealed);
|
||||
}
|
||||
|
||||
int DescribeAlarmEventListRequest::getCurrentPage()const
|
||||
@@ -132,7 +134,7 @@ int DescribeAlarmEventListRequest::getCurrentPage()const
|
||||
void DescribeAlarmEventListRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeAlarmEventListRequest::getOperateErrorCodeList()const
|
||||
@@ -143,8 +145,9 @@ std::vector<std::string> DescribeAlarmEventListRequest::getOperateErrorCodeList(
|
||||
void DescribeAlarmEventListRequest::setOperateErrorCodeList(const std::vector<std::string>& operateErrorCodeList)
|
||||
{
|
||||
operateErrorCodeList_ = operateErrorCodeList;
|
||||
for(int i = 0; i!= operateErrorCodeList.size(); i++)
|
||||
setCoreParameter("OperateErrorCodeList."+ std::to_string(i), operateErrorCodeList.at(i));
|
||||
for(int dep1 = 0; dep1!= operateErrorCodeList.size(); dep1++) {
|
||||
setParameter("OperateErrorCodeList."+ std::to_string(dep1), operateErrorCodeList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getLevels()const
|
||||
@@ -155,6 +158,6 @@ std::string DescribeAlarmEventListRequest::getLevels()const
|
||||
void DescribeAlarmEventListRequest::setLevels(const std::string& levels)
|
||||
{
|
||||
levels_ = levels;
|
||||
setCoreParameter("Levels", levels);
|
||||
setParameter("Levels", levels);
|
||||
}
|
||||
|
||||
|
||||
40
sas/src/model/DescribeAllEntityRequest.cc
Normal file
40
sas/src/model/DescribeAllEntityRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/DescribeAllEntityRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeAllEntityRequest;
|
||||
|
||||
DescribeAllEntityRequest::DescribeAllEntityRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeAllEntity")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAllEntityRequest::~DescribeAllEntityRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAllEntityRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeAllEntityRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
67
sas/src/model/DescribeAllEntityResult.cc
Normal file
67
sas/src/model/DescribeAllEntityResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeAllEntityResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeAllEntityResult::DescribeAllEntityResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAllEntityResult::DescribeAllEntityResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAllEntityResult::~DescribeAllEntityResult()
|
||||
{}
|
||||
|
||||
void DescribeAllEntityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEntityListNode = value["EntityList"]["Entity"];
|
||||
for (auto valueEntityListEntity : allEntityListNode)
|
||||
{
|
||||
Entity entityListObject;
|
||||
if(!valueEntityListEntity["GroupId"].isNull())
|
||||
entityListObject.groupId = std::stoi(valueEntityListEntity["GroupId"].asString());
|
||||
if(!valueEntityListEntity["InstanceName"].isNull())
|
||||
entityListObject.instanceName = valueEntityListEntity["InstanceName"].asString();
|
||||
if(!valueEntityListEntity["Ip"].isNull())
|
||||
entityListObject.ip = valueEntityListEntity["Ip"].asString();
|
||||
if(!valueEntityListEntity["Uuid"].isNull())
|
||||
entityListObject.uuid = valueEntityListEntity["Uuid"].asString();
|
||||
if(!valueEntityListEntity["InternetIp"].isNull())
|
||||
entityListObject.internetIp = valueEntityListEntity["InternetIp"].asString();
|
||||
if(!valueEntityListEntity["IntranetIp"].isNull())
|
||||
entityListObject.intranetIp = valueEntityListEntity["IntranetIp"].asString();
|
||||
entityList_.push_back(entityListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAllEntityResult::Entity> DescribeAllEntityResult::getEntityList()const
|
||||
{
|
||||
return entityList_;
|
||||
}
|
||||
|
||||
@@ -20,30 +20,32 @@ using AlibabaCloud::Sas::Model::DescribeAllGroupsRequest;
|
||||
|
||||
DescribeAllGroupsRequest::DescribeAllGroupsRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeAllGroups")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAllGroupsRequest::~DescribeAllGroupsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAllGroupsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeAllGroupsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeAllGroupsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeAllGroupsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeAllGroupsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeAllGroupsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeAllGroupsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeAllGroupsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
260
sas/src/model/DescribeAllRegionsStatisticsRequest.cc
Normal file
260
sas/src/model/DescribeAllRegionsStatisticsRequest.cc
Normal file
@@ -0,0 +1,260 @@
|
||||
/*
|
||||
* 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/DescribeAllRegionsStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeAllRegionsStatisticsRequest;
|
||||
|
||||
DescribeAllRegionsStatisticsRequest::DescribeAllRegionsStatisticsRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeAllRegionsStatistics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAllRegionsStatisticsRequest::~DescribeAllRegionsStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAllRegionsStatisticsRequest::getStatusList()const
|
||||
{
|
||||
return statusList_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setStatusList(const std::string& statusList)
|
||||
{
|
||||
statusList_ = statusList;
|
||||
setParameter("StatusList", statusList);
|
||||
}
|
||||
|
||||
bool DescribeAllRegionsStatisticsRequest::getAllRegion()const
|
||||
{
|
||||
return allRegion_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setAllRegion(bool allRegion)
|
||||
{
|
||||
allRegion_ = allRegion;
|
||||
setParameter("AllRegion", allRegion ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeAllRegionsStatisticsRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string DescribeAllRegionsStatisticsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeAllRegionsStatisticsRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DescribeAllRegionsStatisticsRequest::getUuid()const
|
||||
{
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setUuid(const std::string& uuid)
|
||||
{
|
||||
uuid_ = uuid;
|
||||
setParameter("Uuid", uuid);
|
||||
}
|
||||
|
||||
std::string DescribeAllRegionsStatisticsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
long DescribeAllRegionsStatisticsRequest::getWebGroupId()const
|
||||
{
|
||||
return webGroupId_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setWebGroupId(long webGroupId)
|
||||
{
|
||||
webGroupId_ = webGroupId;
|
||||
setParameter("WebGroupId", std::to_string(webGroupId));
|
||||
}
|
||||
|
||||
int DescribeAllRegionsStatisticsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAllRegionsStatisticsRequest::getFrom()const
|
||||
{
|
||||
return from_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setParameter("From", from);
|
||||
}
|
||||
|
||||
std::string DescribeAllRegionsStatisticsRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setTag(const std::string& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
setParameter("Tag", tag);
|
||||
}
|
||||
|
||||
int DescribeAllRegionsStatisticsRequest::getFlow()const
|
||||
{
|
||||
return flow_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setFlow(int flow)
|
||||
{
|
||||
flow_ = flow;
|
||||
setParameter("Flow", std::to_string(flow));
|
||||
}
|
||||
|
||||
std::string DescribeAllRegionsStatisticsRequest::getSaleId()const
|
||||
{
|
||||
return saleId_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setSaleId(const std::string& saleId)
|
||||
{
|
||||
saleId_ = saleId;
|
||||
setParameter("SaleId", saleId);
|
||||
}
|
||||
|
||||
int DescribeAllRegionsStatisticsRequest::getRuleType()const
|
||||
{
|
||||
return ruleType_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setRuleType(int ruleType)
|
||||
{
|
||||
ruleType_ = ruleType;
|
||||
setParameter("RuleType", std::to_string(ruleType));
|
||||
}
|
||||
|
||||
long DescribeAllRegionsStatisticsRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string DescribeAllRegionsStatisticsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeAllRegionsStatisticsRequest::getDealed()const
|
||||
{
|
||||
return dealed_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setDealed(const std::string& dealed)
|
||||
{
|
||||
dealed_ = dealed;
|
||||
setParameter("Dealed", dealed);
|
||||
}
|
||||
|
||||
int DescribeAllRegionsStatisticsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeAllRegionsStatisticsRequest::getSecureToken()const
|
||||
{
|
||||
return secureToken_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setSecureToken(const std::string& secureToken)
|
||||
{
|
||||
secureToken_ = secureToken;
|
||||
setParameter("SecureToken", secureToken);
|
||||
}
|
||||
|
||||
int DescribeAllRegionsStatisticsRequest::getAction1()const
|
||||
{
|
||||
return action1_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setAction1(int action1)
|
||||
{
|
||||
action1_ = action1;
|
||||
setParameter("Action1", std::to_string(action1));
|
||||
}
|
||||
|
||||
int DescribeAllRegionsStatisticsRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeAllRegionsStatisticsRequest::setStatus(int status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", std::to_string(status));
|
||||
}
|
||||
|
||||
62
sas/src/model/DescribeAllRegionsStatisticsResult.cc
Normal file
62
sas/src/model/DescribeAllRegionsStatisticsResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeAllRegionsStatisticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeAllRegionsStatisticsResult::DescribeAllRegionsStatisticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAllRegionsStatisticsResult::DescribeAllRegionsStatisticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAllRegionsStatisticsResult::~DescribeAllRegionsStatisticsResult()
|
||||
{}
|
||||
|
||||
void DescribeAllRegionsStatisticsResult::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["Account"].isNull())
|
||||
data_.account = std::stoi(dataNode["Account"].asString());
|
||||
if(!dataNode["Health"].isNull())
|
||||
data_.health = std::stoi(dataNode["Health"].asString());
|
||||
if(!dataNode["Trojan"].isNull())
|
||||
data_.trojan = std::stoi(dataNode["Trojan"].asString());
|
||||
if(!dataNode["Suspicious"].isNull())
|
||||
data_.suspicious = std::stoi(dataNode["Suspicious"].asString());
|
||||
if(!dataNode["Vul"].isNull())
|
||||
data_.vul = std::stoi(dataNode["Vul"].asString());
|
||||
if(!dataNode["NewSuspicious"].isNull())
|
||||
data_.newSuspicious = std::stoi(dataNode["NewSuspicious"].asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeAllRegionsStatisticsResult::Data DescribeAllRegionsStatisticsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
62
sas/src/model/DescribeAssetDetailByUuidRequest.cc
Normal file
62
sas/src/model/DescribeAssetDetailByUuidRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeAssetDetailByUuidRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeAssetDetailByUuidRequest;
|
||||
|
||||
DescribeAssetDetailByUuidRequest::DescribeAssetDetailByUuidRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeAssetDetailByUuid")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAssetDetailByUuidRequest::~DescribeAssetDetailByUuidRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAssetDetailByUuidRequest::getUuid()const
|
||||
{
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
void DescribeAssetDetailByUuidRequest::setUuid(const std::string& uuid)
|
||||
{
|
||||
uuid_ = uuid;
|
||||
setParameter("Uuid", uuid);
|
||||
}
|
||||
|
||||
std::string DescribeAssetDetailByUuidRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeAssetDetailByUuidRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeAssetDetailByUuidRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeAssetDetailByUuidRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
105
sas/src/model/DescribeAssetDetailByUuidResult.cc
Normal file
105
sas/src/model/DescribeAssetDetailByUuidResult.cc
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* 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/DescribeAssetDetailByUuidResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeAssetDetailByUuidResult::DescribeAssetDetailByUuidResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAssetDetailByUuidResult::DescribeAssetDetailByUuidResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAssetDetailByUuidResult::~DescribeAssetDetailByUuidResult()
|
||||
{}
|
||||
|
||||
void DescribeAssetDetailByUuidResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto assetDetailNode = value["AssetDetail"];
|
||||
if(!assetDetailNode["InternetIp"].isNull())
|
||||
assetDetail_.internetIp = assetDetailNode["InternetIp"].asString();
|
||||
if(!assetDetailNode["IntranetIp"].isNull())
|
||||
assetDetail_.intranetIp = assetDetailNode["IntranetIp"].asString();
|
||||
if(!assetDetailNode["InstanceName"].isNull())
|
||||
assetDetail_.instanceName = std::stoi(assetDetailNode["InstanceName"].asString());
|
||||
if(!assetDetailNode["InstanceId"].isNull())
|
||||
assetDetail_.instanceId = std::stoi(assetDetailNode["InstanceId"].asString());
|
||||
if(!assetDetailNode["Ip"].isNull())
|
||||
assetDetail_.ip = assetDetailNode["Ip"].asString();
|
||||
if(!assetDetailNode["Uuid"].isNull())
|
||||
assetDetail_.uuid = assetDetailNode["Uuid"].asString();
|
||||
if(!assetDetailNode["AssetType"].isNull())
|
||||
assetDetail_.assetType = assetDetailNode["AssetType"].asString();
|
||||
if(!assetDetailNode["Os"].isNull())
|
||||
assetDetail_.os = assetDetailNode["Os"].asString();
|
||||
if(!assetDetailNode["ClientStatus"].isNull())
|
||||
assetDetail_.clientStatus = assetDetailNode["ClientStatus"].asString();
|
||||
if(!assetDetailNode["Region"].isNull())
|
||||
assetDetail_.region = assetDetailNode["Region"].asString();
|
||||
if(!assetDetailNode["RegionName"].isNull())
|
||||
assetDetail_.regionName = assetDetailNode["RegionName"].asString();
|
||||
if(!assetDetailNode["Tag"].isNull())
|
||||
assetDetail_.tag = assetDetailNode["Tag"].asString();
|
||||
if(!assetDetailNode["GroupTrace"].isNull())
|
||||
assetDetail_.groupTrace = assetDetailNode["GroupTrace"].asString();
|
||||
if(!assetDetailNode["Cpu"].isNull())
|
||||
assetDetail_.cpu = std::stoi(assetDetailNode["Cpu"].asString());
|
||||
if(!assetDetailNode["CpuInfo"].isNull())
|
||||
assetDetail_.cpuInfo = assetDetailNode["CpuInfo"].asString();
|
||||
if(!assetDetailNode["Kernel"].isNull())
|
||||
assetDetail_.kernel = assetDetailNode["Kernel"].asString();
|
||||
if(!assetDetailNode["OsDetail"].isNull())
|
||||
assetDetail_.osDetail = assetDetailNode["OsDetail"].asString();
|
||||
if(!assetDetailNode["Mem"].isNull())
|
||||
assetDetail_.mem = std::stoi(assetDetailNode["Mem"].asString());
|
||||
if(!assetDetailNode["SysInfo"].isNull())
|
||||
assetDetail_.sysInfo = assetDetailNode["SysInfo"].asString();
|
||||
if(!assetDetailNode["HostName"].isNull())
|
||||
assetDetail_.hostName = assetDetailNode["HostName"].asString();
|
||||
if(!assetDetailNode["OsName"].isNull())
|
||||
assetDetail_.osName = assetDetailNode["OsName"].asString();
|
||||
if(!assetDetailNode["VpcInstanceId"].isNull())
|
||||
assetDetail_.vpcInstanceId = assetDetailNode["VpcInstanceId"].asString();
|
||||
if(!assetDetailNode["OsName"].isNull())
|
||||
assetDetail_.osName1 = assetDetailNode["OsName"].asString();
|
||||
auto allIpList = assetDetailNode["IpList"]["Ip"];
|
||||
for (auto value : allIpList)
|
||||
assetDetail_.ipList.push_back(value.asString());
|
||||
auto allMacList = assetDetailNode["MacList"]["Mac"];
|
||||
for (auto value : allMacList)
|
||||
assetDetail_.macList.push_back(value.asString());
|
||||
auto allDiskInfoList = assetDetailNode["DiskInfoList"]["DiskInfo"];
|
||||
for (auto value : allDiskInfoList)
|
||||
assetDetail_.diskInfoList.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeAssetDetailByUuidResult::AssetDetail DescribeAssetDetailByUuidResult::getAssetDetail()const
|
||||
{
|
||||
return assetDetail_;
|
||||
}
|
||||
|
||||
51
sas/src/model/DescribeAssetDetailByUuidsRequest.cc
Normal file
51
sas/src/model/DescribeAssetDetailByUuidsRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeAssetDetailByUuidsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeAssetDetailByUuidsRequest;
|
||||
|
||||
DescribeAssetDetailByUuidsRequest::DescribeAssetDetailByUuidsRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeAssetDetailByUuids")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAssetDetailByUuidsRequest::~DescribeAssetDetailByUuidsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAssetDetailByUuidsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeAssetDetailByUuidsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeAssetDetailByUuidsRequest::getUuids()const
|
||||
{
|
||||
return uuids_;
|
||||
}
|
||||
|
||||
void DescribeAssetDetailByUuidsRequest::setUuids(const std::string& uuids)
|
||||
{
|
||||
uuids_ = uuids;
|
||||
setParameter("Uuids", uuids);
|
||||
}
|
||||
|
||||
81
sas/src/model/DescribeAssetDetailByUuidsResult.cc
Normal file
81
sas/src/model/DescribeAssetDetailByUuidsResult.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeAssetDetailByUuidsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeAssetDetailByUuidsResult::DescribeAssetDetailByUuidsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAssetDetailByUuidsResult::DescribeAssetDetailByUuidsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAssetDetailByUuidsResult::~DescribeAssetDetailByUuidsResult()
|
||||
{}
|
||||
|
||||
void DescribeAssetDetailByUuidsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAssetListNode = value["AssetList"]["Asset"];
|
||||
for (auto valueAssetListAsset : allAssetListNode)
|
||||
{
|
||||
Asset assetListObject;
|
||||
if(!valueAssetListAsset["InternetIp"].isNull())
|
||||
assetListObject.internetIp = valueAssetListAsset["InternetIp"].asString();
|
||||
if(!valueAssetListAsset["IntranetIp"].isNull())
|
||||
assetListObject.intranetIp = valueAssetListAsset["IntranetIp"].asString();
|
||||
if(!valueAssetListAsset["InstanceName"].isNull())
|
||||
assetListObject.instanceName = std::stoi(valueAssetListAsset["InstanceName"].asString());
|
||||
if(!valueAssetListAsset["InstanceId"].isNull())
|
||||
assetListObject.instanceId = std::stoi(valueAssetListAsset["InstanceId"].asString());
|
||||
if(!valueAssetListAsset["Ip"].isNull())
|
||||
assetListObject.ip = valueAssetListAsset["Ip"].asString();
|
||||
if(!valueAssetListAsset["Uuid"].isNull())
|
||||
assetListObject.uuid = valueAssetListAsset["Uuid"].asString();
|
||||
if(!valueAssetListAsset["AssetType"].isNull())
|
||||
assetListObject.assetType = valueAssetListAsset["AssetType"].asString();
|
||||
if(!valueAssetListAsset["Os"].isNull())
|
||||
assetListObject.os = valueAssetListAsset["Os"].asString();
|
||||
if(!valueAssetListAsset["ClientStatus"].isNull())
|
||||
assetListObject.clientStatus = valueAssetListAsset["ClientStatus"].asString();
|
||||
if(!valueAssetListAsset["Region"].isNull())
|
||||
assetListObject.region = valueAssetListAsset["Region"].asString();
|
||||
if(!valueAssetListAsset["RegionName"].isNull())
|
||||
assetListObject.regionName = valueAssetListAsset["RegionName"].asString();
|
||||
if(!valueAssetListAsset["VpcInstanceId"].isNull())
|
||||
assetListObject.vpcInstanceId = valueAssetListAsset["VpcInstanceId"].asString();
|
||||
if(!valueAssetListAsset["OsName"].isNull())
|
||||
assetListObject.osName = valueAssetListAsset["OsName"].asString();
|
||||
assetList_.push_back(assetListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAssetDetailByUuidsResult::Asset> DescribeAssetDetailByUuidsResult::getAssetList()const
|
||||
{
|
||||
return assetList_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeAutoDelConfigRequest;
|
||||
|
||||
DescribeAutoDelConfigRequest::DescribeAutoDelConfigRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeAutoDelConfig")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAutoDelConfigRequest::~DescribeAutoDelConfigRequest()
|
||||
{}
|
||||
@@ -33,6 +35,6 @@ std::string DescribeAutoDelConfigRequest::getSourceIp()const
|
||||
void DescribeAutoDelConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeCheckWarningDetailRequest;
|
||||
|
||||
DescribeCheckWarningDetailRequest::DescribeCheckWarningDetailRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeCheckWarningDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCheckWarningDetailRequest::~DescribeCheckWarningDetailRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeCheckWarningDetailRequest::getSourceIp()const
|
||||
void DescribeCheckWarningDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningDetailRequest::getLang()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeCheckWarningDetailRequest::getLang()const
|
||||
void DescribeCheckWarningDetailRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
long DescribeCheckWarningDetailRequest::getCheckWarningId()const
|
||||
@@ -55,6 +57,6 @@ long DescribeCheckWarningDetailRequest::getCheckWarningId()const
|
||||
void DescribeCheckWarningDetailRequest::setCheckWarningId(long checkWarningId)
|
||||
{
|
||||
checkWarningId_ = checkWarningId;
|
||||
setCoreParameter("CheckWarningId", std::to_string(checkWarningId));
|
||||
setParameter("CheckWarningId", std::to_string(checkWarningId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeCheckWarningSummaryRequest;
|
||||
|
||||
DescribeCheckWarningSummaryRequest::DescribeCheckWarningSummaryRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeCheckWarningSummary")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCheckWarningSummaryRequest::~DescribeCheckWarningSummaryRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeCheckWarningSummaryRequest::getRiskName()const
|
||||
void DescribeCheckWarningSummaryRequest::setRiskName(const std::string& riskName)
|
||||
{
|
||||
riskName_ = riskName;
|
||||
setCoreParameter("RiskName", riskName);
|
||||
setParameter("RiskName", riskName);
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningSummaryRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeCheckWarningSummaryRequest::getSourceIp()const
|
||||
void DescribeCheckWarningSummaryRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeCheckWarningSummaryRequest::getPageSize()const
|
||||
@@ -55,7 +57,7 @@ int DescribeCheckWarningSummaryRequest::getPageSize()const
|
||||
void DescribeCheckWarningSummaryRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningSummaryRequest::getLang()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeCheckWarningSummaryRequest::getLang()const
|
||||
void DescribeCheckWarningSummaryRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int DescribeCheckWarningSummaryRequest::getCurrentPage()const
|
||||
@@ -77,7 +79,7 @@ int DescribeCheckWarningSummaryRequest::getCurrentPage()const
|
||||
void DescribeCheckWarningSummaryRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
int DescribeCheckWarningSummaryRequest::getRiskStatus()const
|
||||
@@ -88,7 +90,7 @@ int DescribeCheckWarningSummaryRequest::getRiskStatus()const
|
||||
void DescribeCheckWarningSummaryRequest::setRiskStatus(int riskStatus)
|
||||
{
|
||||
riskStatus_ = riskStatus;
|
||||
setCoreParameter("RiskStatus", std::to_string(riskStatus));
|
||||
setParameter("RiskStatus", std::to_string(riskStatus));
|
||||
}
|
||||
|
||||
long DescribeCheckWarningSummaryRequest::getStrategyId()const
|
||||
@@ -99,7 +101,7 @@ long DescribeCheckWarningSummaryRequest::getStrategyId()const
|
||||
void DescribeCheckWarningSummaryRequest::setStrategyId(long strategyId)
|
||||
{
|
||||
strategyId_ = strategyId;
|
||||
setCoreParameter("StrategyId", std::to_string(strategyId));
|
||||
setParameter("StrategyId", std::to_string(strategyId));
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningSummaryRequest::getTypeName()const
|
||||
@@ -110,7 +112,7 @@ std::string DescribeCheckWarningSummaryRequest::getTypeName()const
|
||||
void DescribeCheckWarningSummaryRequest::setTypeName(const std::string& typeName)
|
||||
{
|
||||
typeName_ = typeName;
|
||||
setCoreParameter("TypeName", typeName);
|
||||
setParameter("TypeName", typeName);
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningSummaryRequest::getStatus()const
|
||||
@@ -121,7 +123,7 @@ std::string DescribeCheckWarningSummaryRequest::getStatus()const
|
||||
void DescribeCheckWarningSummaryRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningSummaryRequest::getUuids()const
|
||||
@@ -132,6 +134,6 @@ std::string DescribeCheckWarningSummaryRequest::getUuids()const
|
||||
void DescribeCheckWarningSummaryRequest::setUuids(const std::string& uuids)
|
||||
{
|
||||
uuids_ = uuids;
|
||||
setCoreParameter("Uuids", uuids);
|
||||
setParameter("Uuids", uuids);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeCheckWarningsRequest;
|
||||
|
||||
DescribeCheckWarningsRequest::DescribeCheckWarningsRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeCheckWarnings")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCheckWarningsRequest::~DescribeCheckWarningsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int DescribeCheckWarningsRequest::getCurrentPage()const
|
||||
void DescribeCheckWarningsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribeCheckWarningsRequest::getRiskId()const
|
||||
@@ -44,7 +46,7 @@ long DescribeCheckWarningsRequest::getRiskId()const
|
||||
void DescribeCheckWarningsRequest::setRiskId(long riskId)
|
||||
{
|
||||
riskId_ = riskId;
|
||||
setCoreParameter("RiskId", std::to_string(riskId));
|
||||
setParameter("RiskId", std::to_string(riskId));
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningsRequest::getUuid()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeCheckWarningsRequest::getUuid()const
|
||||
void DescribeCheckWarningsRequest::setUuid(const std::string& uuid)
|
||||
{
|
||||
uuid_ = uuid;
|
||||
setCoreParameter("Uuid", uuid);
|
||||
setParameter("Uuid", uuid);
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningsRequest::getSourceIp()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeCheckWarningsRequest::getSourceIp()const
|
||||
void DescribeCheckWarningsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeCheckWarningsRequest::getPageSize()const
|
||||
@@ -77,7 +79,7 @@ int DescribeCheckWarningsRequest::getPageSize()const
|
||||
void DescribeCheckWarningsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningsRequest::getLang()const
|
||||
@@ -88,6 +90,6 @@ std::string DescribeCheckWarningsRequest::getLang()const
|
||||
void DescribeCheckWarningsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,85 +20,87 @@ using AlibabaCloud::Sas::Model::DescribeCloudCenterInstancesRequest;
|
||||
|
||||
DescribeCloudCenterInstancesRequest::DescribeCloudCenterInstancesRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeCloudCenterInstances")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCloudCenterInstancesRequest::~DescribeCloudCenterInstancesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCloudCenterInstancesRequest::getCriteria()const
|
||||
{
|
||||
return criteria_;
|
||||
}
|
||||
|
||||
void DescribeCloudCenterInstancesRequest::setCriteria(const std::string& criteria)
|
||||
{
|
||||
criteria_ = criteria;
|
||||
setCoreParameter("Criteria", criteria);
|
||||
}
|
||||
|
||||
std::string DescribeCloudCenterInstancesRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeCloudCenterInstancesRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
bool DescribeCloudCenterInstancesRequest::getNoPage()const
|
||||
{
|
||||
return noPage_;
|
||||
}
|
||||
|
||||
void DescribeCloudCenterInstancesRequest::setNoPage(bool noPage)
|
||||
{
|
||||
noPage_ = noPage;
|
||||
setCoreParameter("NoPage", noPage ? "true" : "false");
|
||||
}
|
||||
|
||||
int DescribeCloudCenterInstancesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCloudCenterInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeCloudCenterInstancesRequest::getLogicalExp()const
|
||||
{
|
||||
return logicalExp_;
|
||||
}
|
||||
|
||||
void DescribeCloudCenterInstancesRequest::setLogicalExp(const std::string& logicalExp)
|
||||
{
|
||||
logicalExp_ = logicalExp;
|
||||
setCoreParameter("LogicalExp", logicalExp);
|
||||
}
|
||||
|
||||
int DescribeCloudCenterInstancesRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeCloudCenterInstancesRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeCloudCenterInstancesRequest::getMachineTypes()const
|
||||
{
|
||||
return machineTypes_;
|
||||
}
|
||||
|
||||
void DescribeCloudCenterInstancesRequest::setMachineTypes(const std::string& machineTypes)
|
||||
{
|
||||
machineTypes_ = machineTypes;
|
||||
setCoreParameter("MachineTypes", machineTypes);
|
||||
}
|
||||
|
||||
std::string DescribeCloudCenterInstancesRequest::getCriteria()const
|
||||
{
|
||||
return criteria_;
|
||||
}
|
||||
|
||||
void DescribeCloudCenterInstancesRequest::setCriteria(const std::string& criteria)
|
||||
{
|
||||
criteria_ = criteria;
|
||||
setParameter("Criteria", criteria);
|
||||
}
|
||||
|
||||
std::string DescribeCloudCenterInstancesRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeCloudCenterInstancesRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
bool DescribeCloudCenterInstancesRequest::getNoPage()const
|
||||
{
|
||||
return noPage_;
|
||||
}
|
||||
|
||||
void DescribeCloudCenterInstancesRequest::setNoPage(bool noPage)
|
||||
{
|
||||
noPage_ = noPage;
|
||||
setParameter("NoPage", noPage ? "true" : "false");
|
||||
}
|
||||
|
||||
int DescribeCloudCenterInstancesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCloudCenterInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeCloudCenterInstancesRequest::getLogicalExp()const
|
||||
{
|
||||
return logicalExp_;
|
||||
}
|
||||
|
||||
void DescribeCloudCenterInstancesRequest::setLogicalExp(const std::string& logicalExp)
|
||||
{
|
||||
logicalExp_ = logicalExp;
|
||||
setParameter("LogicalExp", logicalExp);
|
||||
}
|
||||
|
||||
int DescribeCloudCenterInstancesRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeCloudCenterInstancesRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeCloudCenterInstancesRequest::getMachineTypes()const
|
||||
{
|
||||
return machineTypes_;
|
||||
}
|
||||
|
||||
void DescribeCloudCenterInstancesRequest::setMachineTypes(const std::string& machineTypes)
|
||||
{
|
||||
machineTypes_ = machineTypes;
|
||||
setParameter("MachineTypes", machineTypes);
|
||||
}
|
||||
|
||||
|
||||
@@ -91,6 +91,8 @@ void DescribeCloudCenterInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.safeEventCount = std::stoi(valueInstancesInstance["SafeEventCount"].asString());
|
||||
if(!valueInstancesInstance["RegionId"].isNull())
|
||||
instancesObject.regionId = valueInstancesInstance["RegionId"].asString();
|
||||
if(!valueInstancesInstance["GroupId"].isNull())
|
||||
instancesObject.groupId = valueInstancesInstance["GroupId"].asString();
|
||||
instances_.push_back(instancesObject);
|
||||
}
|
||||
auto pageInfoNode = value["PageInfo"];
|
||||
|
||||
@@ -20,19 +20,21 @@ using AlibabaCloud::Sas::Model::DescribeCloudProductFieldStatisticsRequest;
|
||||
|
||||
DescribeCloudProductFieldStatisticsRequest::DescribeCloudProductFieldStatisticsRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeCloudProductFieldStatistics")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCloudProductFieldStatisticsRequest::~DescribeCloudProductFieldStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCloudProductFieldStatisticsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeCloudProductFieldStatisticsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeCloudProductFieldStatisticsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeCloudProductFieldStatisticsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeConcernNecessityRequest;
|
||||
|
||||
DescribeConcernNecessityRequest::DescribeConcernNecessityRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeConcernNecessity")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeConcernNecessityRequest::~DescribeConcernNecessityRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeConcernNecessityRequest::getSourceIp()const
|
||||
void DescribeConcernNecessityRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeConcernNecessityRequest::getLang()const
|
||||
@@ -44,6 +46,6 @@ std::string DescribeConcernNecessityRequest::getLang()const
|
||||
void DescribeConcernNecessityRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
62
sas/src/model/DescribeCriteriaRequest.cc
Normal file
62
sas/src/model/DescribeCriteriaRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeCriteriaRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeCriteriaRequest;
|
||||
|
||||
DescribeCriteriaRequest::DescribeCriteriaRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeCriteria")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCriteriaRequest::~DescribeCriteriaRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCriteriaRequest::getMachineTypes()const
|
||||
{
|
||||
return machineTypes_;
|
||||
}
|
||||
|
||||
void DescribeCriteriaRequest::setMachineTypes(const std::string& machineTypes)
|
||||
{
|
||||
machineTypes_ = machineTypes;
|
||||
setParameter("MachineTypes", machineTypes);
|
||||
}
|
||||
|
||||
std::string DescribeCriteriaRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeCriteriaRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeCriteriaRequest::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
void DescribeCriteriaRequest::setValue(const std::string& value)
|
||||
{
|
||||
value_ = value;
|
||||
setParameter("Value", value);
|
||||
}
|
||||
|
||||
61
sas/src/model/DescribeCriteriaResult.cc
Normal file
61
sas/src/model/DescribeCriteriaResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeCriteriaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeCriteriaResult::DescribeCriteriaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCriteriaResult::DescribeCriteriaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCriteriaResult::~DescribeCriteriaResult()
|
||||
{}
|
||||
|
||||
void DescribeCriteriaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCriteriaListNode = value["CriteriaList"]["Criteria"];
|
||||
for (auto valueCriteriaListCriteria : allCriteriaListNode)
|
||||
{
|
||||
Criteria criteriaListObject;
|
||||
if(!valueCriteriaListCriteria["Values"].isNull())
|
||||
criteriaListObject.values = valueCriteriaListCriteria["Values"].asString();
|
||||
if(!valueCriteriaListCriteria["Name"].isNull())
|
||||
criteriaListObject.name = valueCriteriaListCriteria["Name"].asString();
|
||||
if(!valueCriteriaListCriteria["Type"].isNull())
|
||||
criteriaListObject.type = valueCriteriaListCriteria["Type"].asString();
|
||||
criteriaList_.push_back(criteriaListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCriteriaResult::Criteria> DescribeCriteriaResult::getCriteriaList()const
|
||||
{
|
||||
return criteriaList_;
|
||||
}
|
||||
|
||||
40
sas/src/model/DescribeDialogMessagesRequest.cc
Normal file
40
sas/src/model/DescribeDialogMessagesRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/DescribeDialogMessagesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeDialogMessagesRequest;
|
||||
|
||||
DescribeDialogMessagesRequest::DescribeDialogMessagesRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeDialogMessages")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDialogMessagesRequest::~DescribeDialogMessagesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDialogMessagesRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeDialogMessagesRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
68
sas/src/model/DescribeDialogMessagesResult.cc
Normal file
68
sas/src/model/DescribeDialogMessagesResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/DescribeDialogMessagesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeDialogMessagesResult::DescribeDialogMessagesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDialogMessagesResult::DescribeDialogMessagesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDialogMessagesResult::~DescribeDialogMessagesResult()
|
||||
{}
|
||||
|
||||
void DescribeDialogMessagesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDialogListNode = value["DialogList"]["AegisDynamicDialogDTO"];
|
||||
for (auto valueDialogListAegisDynamicDialogDTO : allDialogListNode)
|
||||
{
|
||||
AegisDynamicDialogDTO dialogListObject;
|
||||
if(!valueDialogListAegisDynamicDialogDTO["ID"].isNull())
|
||||
dialogListObject.iD = std::stol(valueDialogListAegisDynamicDialogDTO["ID"].asString());
|
||||
if(!valueDialogListAegisDynamicDialogDTO["DialogKey"].isNull())
|
||||
dialogListObject.dialogKey = valueDialogListAegisDynamicDialogDTO["DialogKey"].asString();
|
||||
if(!valueDialogListAegisDynamicDialogDTO["Params"].isNull())
|
||||
dialogListObject.params = valueDialogListAegisDynamicDialogDTO["Params"].asString();
|
||||
dialogList_.push_back(dialogListObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeDialogMessagesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDialogMessagesResult::AegisDynamicDialogDTO> DescribeDialogMessagesResult::getDialogList()const
|
||||
{
|
||||
return dialogList_;
|
||||
}
|
||||
|
||||
73
sas/src/model/DescribeDingTalkRequest.cc
Normal file
73
sas/src/model/DescribeDingTalkRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeDingTalkRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeDingTalkRequest;
|
||||
|
||||
DescribeDingTalkRequest::DescribeDingTalkRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeDingTalk")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDingTalkRequest::~DescribeDingTalkRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDingTalkRequest::getRuleActionName()const
|
||||
{
|
||||
return ruleActionName_;
|
||||
}
|
||||
|
||||
void DescribeDingTalkRequest::setRuleActionName(const std::string& ruleActionName)
|
||||
{
|
||||
ruleActionName_ = ruleActionName;
|
||||
setParameter("RuleActionName", ruleActionName);
|
||||
}
|
||||
|
||||
int DescribeDingTalkRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeDingTalkRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeDingTalkRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeDingTalkRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeDingTalkRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDingTalkRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
89
sas/src/model/DescribeDingTalkResult.cc
Normal file
89
sas/src/model/DescribeDingTalkResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* 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/DescribeDingTalkResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeDingTalkResult::DescribeDingTalkResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDingTalkResult::DescribeDingTalkResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDingTalkResult::~DescribeDingTalkResult()
|
||||
{}
|
||||
|
||||
void DescribeDingTalkResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allActionListNode = value["ActionList"]["ActionListArr"];
|
||||
for (auto valueActionListActionListArr : allActionListNode)
|
||||
{
|
||||
ActionListArr actionListObject;
|
||||
if(!valueActionListActionListArr["GmtModified"].isNull())
|
||||
actionListObject.gmtModified = std::stol(valueActionListActionListArr["GmtModified"].asString());
|
||||
if(!valueActionListActionListArr["Id"].isNull())
|
||||
actionListObject.id = std::stoi(valueActionListActionListArr["Id"].asString());
|
||||
if(!valueActionListActionListArr["AliUid"].isNull())
|
||||
actionListObject.aliUid = std::stol(valueActionListActionListArr["AliUid"].asString());
|
||||
if(!valueActionListActionListArr["GmtCreate"].isNull())
|
||||
actionListObject.gmtCreate = std::stol(valueActionListActionListArr["GmtCreate"].asString());
|
||||
if(!valueActionListActionListArr["Url"].isNull())
|
||||
actionListObject.url = valueActionListActionListArr["Url"].asString();
|
||||
if(!valueActionListActionListArr["IntervalTime"].isNull())
|
||||
actionListObject.intervalTime = std::stoi(valueActionListActionListArr["IntervalTime"].asString());
|
||||
if(!valueActionListActionListArr["ActionName"].isNull())
|
||||
actionListObject.actionName = valueActionListActionListArr["ActionName"].asString();
|
||||
if(!valueActionListActionListArr["Status"].isNull())
|
||||
actionListObject.status = std::stoi(valueActionListActionListArr["Status"].asString());
|
||||
if(!valueActionListActionListArr["ConfigList"].isNull())
|
||||
actionListObject.configList = valueActionListActionListArr["ConfigList"].asString();
|
||||
if(!valueActionListActionListArr["GroupIdList"].isNull())
|
||||
actionListObject.groupIdList = valueActionListActionListArr["GroupIdList"].asString();
|
||||
if(!valueActionListActionListArr["DingTalkLang"].isNull())
|
||||
actionListObject.dingTalkLang = valueActionListActionListArr["DingTalkLang"].asString();
|
||||
actionList_.push_back(actionListObject);
|
||||
}
|
||||
auto pageInfoNode = value["PageInfo"];
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
DescribeDingTalkResult::PageInfo DescribeDingTalkResult::getPageInfo()const
|
||||
{
|
||||
return pageInfo_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDingTalkResult::ActionListArr> DescribeDingTalkResult::getActionList()const
|
||||
{
|
||||
return actionList_;
|
||||
}
|
||||
|
||||
@@ -20,19 +20,21 @@ using AlibabaCloud::Sas::Model::DescribeDomainCountRequest;
|
||||
|
||||
DescribeDomainCountRequest::DescribeDomainCountRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeDomainCount")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDomainCountRequest::~DescribeDomainCountRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDomainCountRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeDomainCountRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCountRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeDomainCountRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,30 +20,32 @@ using AlibabaCloud::Sas::Model::DescribeDomainDetailRequest;
|
||||
|
||||
DescribeDomainDetailRequest::DescribeDomainDetailRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeDomainDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDomainDetailRequest::~DescribeDomainDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDomainDetailRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeDomainDetailRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribeDomainDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeDomainDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeDomainDetailRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeDomainDetailRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribeDomainDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeDomainDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,63 +20,65 @@ using AlibabaCloud::Sas::Model::DescribeDomainListRequest;
|
||||
|
||||
DescribeDomainListRequest::DescribeDomainListRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeDomainList")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDomainListRequest::~DescribeDomainListRequest()
|
||||
{}
|
||||
|
||||
int DescribeDomainListRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeDomainListRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeDomainListRequest::getFuzzyDomain()const
|
||||
{
|
||||
return fuzzyDomain_;
|
||||
}
|
||||
|
||||
void DescribeDomainListRequest::setFuzzyDomain(const std::string& fuzzyDomain)
|
||||
{
|
||||
fuzzyDomain_ = fuzzyDomain;
|
||||
setCoreParameter("FuzzyDomain", fuzzyDomain);
|
||||
}
|
||||
|
||||
std::string DescribeDomainListRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeDomainListRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeDomainListRequest::getDomainType()const
|
||||
{
|
||||
return domainType_;
|
||||
}
|
||||
|
||||
void DescribeDomainListRequest::setDomainType(const std::string& domainType)
|
||||
{
|
||||
domainType_ = domainType;
|
||||
setCoreParameter("DomainType", domainType);
|
||||
}
|
||||
|
||||
int DescribeDomainListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDomainListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeDomainListRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeDomainListRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeDomainListRequest::getFuzzyDomain()const
|
||||
{
|
||||
return fuzzyDomain_;
|
||||
}
|
||||
|
||||
void DescribeDomainListRequest::setFuzzyDomain(const std::string& fuzzyDomain)
|
||||
{
|
||||
fuzzyDomain_ = fuzzyDomain;
|
||||
setParameter("FuzzyDomain", fuzzyDomain);
|
||||
}
|
||||
|
||||
std::string DescribeDomainListRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeDomainListRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeDomainListRequest::getDomainType()const
|
||||
{
|
||||
return domainType_;
|
||||
}
|
||||
|
||||
void DescribeDomainListRequest::setDomainType(const std::string& domainType)
|
||||
{
|
||||
domainType_ = domainType;
|
||||
setParameter("DomainType", domainType);
|
||||
}
|
||||
|
||||
int DescribeDomainListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDomainListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeEmgVulGroupRequest;
|
||||
|
||||
DescribeEmgVulGroupRequest::DescribeEmgVulGroupRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeEmgVulGroup")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeEmgVulGroupRequest::~DescribeEmgVulGroupRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeEmgVulGroupRequest::getSourceIp()const
|
||||
void DescribeEmgVulGroupRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeEmgVulGroupRequest::getLang()const
|
||||
@@ -44,6 +46,6 @@ std::string DescribeEmgVulGroupRequest::getLang()const
|
||||
void DescribeEmgVulGroupRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -55,6 +55,12 @@ void DescribeEmgVulGroupResult::parse(const std::string &payload)
|
||||
emgVulGroupListObject.description = valueEmgVulGroupListEmgVulGroup["Description"].asString();
|
||||
if(!valueEmgVulGroupListEmgVulGroup["Type"].isNull())
|
||||
emgVulGroupListObject.type = valueEmgVulGroupListEmgVulGroup["Type"].asString();
|
||||
if(!valueEmgVulGroupListEmgVulGroup["Status"].isNull())
|
||||
emgVulGroupListObject.status = std::stoi(valueEmgVulGroupListEmgVulGroup["Status"].asString());
|
||||
if(!valueEmgVulGroupListEmgVulGroup["Progress"].isNull())
|
||||
emgVulGroupListObject.progress = std::stoi(valueEmgVulGroupListEmgVulGroup["Progress"].asString());
|
||||
if(!valueEmgVulGroupListEmgVulGroup["GmtLastCheck"].isNull())
|
||||
emgVulGroupListObject.gmtLastCheck = std::stol(valueEmgVulGroupListEmgVulGroup["GmtLastCheck"].asString());
|
||||
emgVulGroupList_.push_back(emgVulGroupListObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
51
sas/src/model/DescribeExportInfoRequest.cc
Normal file
51
sas/src/model/DescribeExportInfoRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeExportInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeExportInfoRequest;
|
||||
|
||||
DescribeExportInfoRequest::DescribeExportInfoRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeExportInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeExportInfoRequest::~DescribeExportInfoRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeExportInfoRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeExportInfoRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
long DescribeExportInfoRequest::getExportId()const
|
||||
{
|
||||
return exportId_;
|
||||
}
|
||||
|
||||
void DescribeExportInfoRequest::setExportId(long exportId)
|
||||
{
|
||||
exportId_ = exportId;
|
||||
setParameter("ExportId", std::to_string(exportId));
|
||||
}
|
||||
|
||||
100
sas/src/model/DescribeExportInfoResult.cc
Normal file
100
sas/src/model/DescribeExportInfoResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeExportInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeExportInfoResult::DescribeExportInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeExportInfoResult::DescribeExportInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeExportInfoResult::~DescribeExportInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeExportInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = std::stol(value["Id"].asString());
|
||||
if(!value["FileName"].isNull())
|
||||
fileName_ = value["FileName"].asString();
|
||||
if(!value["CurrentCount"].isNull())
|
||||
currentCount_ = std::stoi(value["CurrentCount"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["Progress"].isNull())
|
||||
progress_ = std::stoi(value["Progress"].asString());
|
||||
if(!value["ExportStatus"].isNull())
|
||||
exportStatus_ = value["ExportStatus"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Link"].isNull())
|
||||
link_ = value["Link"].asString();
|
||||
|
||||
}
|
||||
|
||||
int DescribeExportInfoResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeExportInfoResult::getProgress()const
|
||||
{
|
||||
return progress_;
|
||||
}
|
||||
|
||||
std::string DescribeExportInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeExportInfoResult::getFileName()const
|
||||
{
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
std::string DescribeExportInfoResult::getExportStatus()const
|
||||
{
|
||||
return exportStatus_;
|
||||
}
|
||||
|
||||
int DescribeExportInfoResult::getCurrentCount()const
|
||||
{
|
||||
return currentCount_;
|
||||
}
|
||||
|
||||
long DescribeExportInfoResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::string DescribeExportInfoResult::getLink()const
|
||||
{
|
||||
return link_;
|
||||
}
|
||||
|
||||
@@ -20,30 +20,32 @@ using AlibabaCloud::Sas::Model::DescribeFieldStatisticsRequest;
|
||||
|
||||
DescribeFieldStatisticsRequest::DescribeFieldStatisticsRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeFieldStatistics")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFieldStatisticsRequest::~DescribeFieldStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeFieldStatisticsRequest::getMachineTypes()const
|
||||
{
|
||||
return machineTypes_;
|
||||
}
|
||||
|
||||
void DescribeFieldStatisticsRequest::setMachineTypes(const std::string& machineTypes)
|
||||
{
|
||||
machineTypes_ = machineTypes;
|
||||
setCoreParameter("MachineTypes", machineTypes);
|
||||
}
|
||||
|
||||
std::string DescribeFieldStatisticsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeFieldStatisticsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeFieldStatisticsRequest::getMachineTypes()const
|
||||
{
|
||||
return machineTypes_;
|
||||
}
|
||||
|
||||
void DescribeFieldStatisticsRequest::setMachineTypes(const std::string& machineTypes)
|
||||
{
|
||||
machineTypes_ = machineTypes;
|
||||
setParameter("MachineTypes", machineTypes);
|
||||
}
|
||||
|
||||
std::string DescribeFieldStatisticsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeFieldStatisticsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
|
||||
117
sas/src/model/DescribeGraph4InvestigationOnlineRequest.cc
Normal file
117
sas/src/model/DescribeGraph4InvestigationOnlineRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/DescribeGraph4InvestigationOnlineRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeGraph4InvestigationOnlineRequest;
|
||||
|
||||
DescribeGraph4InvestigationOnlineRequest::DescribeGraph4InvestigationOnlineRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeGraph4InvestigationOnline")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeGraph4InvestigationOnlineRequest::~DescribeGraph4InvestigationOnlineRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeGraph4InvestigationOnlineRequest::getVertexId()const
|
||||
{
|
||||
return vertexId_;
|
||||
}
|
||||
|
||||
void DescribeGraph4InvestigationOnlineRequest::setVertexId(const std::string& vertexId)
|
||||
{
|
||||
vertexId_ = vertexId;
|
||||
setParameter("VertexId", vertexId);
|
||||
}
|
||||
|
||||
std::string DescribeGraph4InvestigationOnlineRequest::getAnomalyId()const
|
||||
{
|
||||
return anomalyId_;
|
||||
}
|
||||
|
||||
void DescribeGraph4InvestigationOnlineRequest::setAnomalyId(const std::string& anomalyId)
|
||||
{
|
||||
anomalyId_ = anomalyId;
|
||||
setParameter("AnomalyId", anomalyId);
|
||||
}
|
||||
|
||||
std::string DescribeGraph4InvestigationOnlineRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeGraph4InvestigationOnlineRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeGraph4InvestigationOnlineRequest::getAnomalyUuid()const
|
||||
{
|
||||
return anomalyUuid_;
|
||||
}
|
||||
|
||||
void DescribeGraph4InvestigationOnlineRequest::setAnomalyUuid(const std::string& anomalyUuid)
|
||||
{
|
||||
anomalyUuid_ = anomalyUuid;
|
||||
setParameter("AnomalyUuid", anomalyUuid);
|
||||
}
|
||||
|
||||
std::string DescribeGraph4InvestigationOnlineRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeGraph4InvestigationOnlineRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeGraph4InvestigationOnlineRequest::getDirection()const
|
||||
{
|
||||
return direction_;
|
||||
}
|
||||
|
||||
void DescribeGraph4InvestigationOnlineRequest::setDirection(const std::string& direction)
|
||||
{
|
||||
direction_ = direction;
|
||||
setParameter("Direction", direction);
|
||||
}
|
||||
|
||||
int DescribeGraph4InvestigationOnlineRequest::getPathLength()const
|
||||
{
|
||||
return pathLength_;
|
||||
}
|
||||
|
||||
void DescribeGraph4InvestigationOnlineRequest::setPathLength(int pathLength)
|
||||
{
|
||||
pathLength_ = pathLength;
|
||||
setParameter("PathLength", std::to_string(pathLength));
|
||||
}
|
||||
|
||||
std::string DescribeGraph4InvestigationOnlineRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DescribeGraph4InvestigationOnlineRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
138
sas/src/model/DescribeGraph4InvestigationOnlineResult.cc
Normal file
138
sas/src/model/DescribeGraph4InvestigationOnlineResult.cc
Normal file
@@ -0,0 +1,138 @@
|
||||
/*
|
||||
* 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/DescribeGraph4InvestigationOnlineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeGraph4InvestigationOnlineResult::DescribeGraph4InvestigationOnlineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeGraph4InvestigationOnlineResult::DescribeGraph4InvestigationOnlineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeGraph4InvestigationOnlineResult::~DescribeGraph4InvestigationOnlineResult()
|
||||
{}
|
||||
|
||||
void DescribeGraph4InvestigationOnlineResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allVertexListNode = dataNode["VertexList"]["Vertex"];
|
||||
for (auto dataNodeVertexListVertex : allVertexListNode)
|
||||
{
|
||||
Data::Vertex vertexObject;
|
||||
if(!dataNodeVertexListVertex["Id"].isNull())
|
||||
vertexObject.id = dataNodeVertexListVertex["Id"].asString();
|
||||
if(!dataNodeVertexListVertex["Name"].isNull())
|
||||
vertexObject.name = dataNodeVertexListVertex["Name"].asString();
|
||||
if(!dataNodeVertexListVertex["Type"].isNull())
|
||||
vertexObject.type = dataNodeVertexListVertex["Type"].asString();
|
||||
if(!dataNodeVertexListVertex["Time"].isNull())
|
||||
vertexObject.time = dataNodeVertexListVertex["Time"].asString();
|
||||
if(!dataNodeVertexListVertex["Uuid"].isNull())
|
||||
vertexObject.uuid = dataNodeVertexListVertex["Uuid"].asString();
|
||||
if(!dataNodeVertexListVertex["Aliuid"].isNull())
|
||||
vertexObject.aliuid = dataNodeVertexListVertex["Aliuid"].asString();
|
||||
if(!dataNodeVertexListVertex["Properties"].isNull())
|
||||
vertexObject.properties = dataNodeVertexListVertex["Properties"].asString();
|
||||
if(!dataNodeVertexListVertex["PositionId"].isNull())
|
||||
vertexObject.positionId = dataNodeVertexListVertex["PositionId"].asString();
|
||||
if(!dataNodeVertexListVertex["Position"].isNull())
|
||||
vertexObject.position = dataNodeVertexListVertex["Position"].asString();
|
||||
auto allNeighborListNode = allVertexListNode["NeighborList"]["Neighbor"];
|
||||
for (auto allVertexListNodeNeighborListNeighbor : allNeighborListNode)
|
||||
{
|
||||
Data::Vertex::Neighbor neighborListObject;
|
||||
if(!allVertexListNodeNeighborListNeighbor["Type"].isNull())
|
||||
neighborListObject.type = allVertexListNodeNeighborListNeighbor["Type"].asString();
|
||||
if(!allVertexListNodeNeighborListNeighbor["Count"].isNull())
|
||||
neighborListObject.count = std::stoi(allVertexListNodeNeighborListNeighbor["Count"].asString());
|
||||
if(!allVertexListNodeNeighborListNeighbor["HasMore"].isNull())
|
||||
neighborListObject.hasMore = allVertexListNodeNeighborListNeighbor["HasMore"].asString() == "true";
|
||||
vertexObject.neighborList.push_back(neighborListObject);
|
||||
}
|
||||
data_.vertexList.push_back(vertexObject);
|
||||
}
|
||||
auto allEdgeListNode = dataNode["EdgeList"]["Edge"];
|
||||
for (auto dataNodeEdgeListEdge : allEdgeListNode)
|
||||
{
|
||||
Data::Edge edgeObject;
|
||||
if(!dataNodeEdgeListEdge["Id"].isNull())
|
||||
edgeObject.id = std::stoi(dataNodeEdgeListEdge["Id"].asString());
|
||||
if(!dataNodeEdgeListEdge["StartId"].isNull())
|
||||
edgeObject.startId = dataNodeEdgeListEdge["StartId"].asString();
|
||||
if(!dataNodeEdgeListEdge["EndId"].isNull())
|
||||
edgeObject.endId = dataNodeEdgeListEdge["EndId"].asString();
|
||||
if(!dataNodeEdgeListEdge["StartType"].isNull())
|
||||
edgeObject.startType = dataNodeEdgeListEdge["StartType"].asString();
|
||||
if(!dataNodeEdgeListEdge["EndType"].isNull())
|
||||
edgeObject.endType = dataNodeEdgeListEdge["EndType"].asString();
|
||||
if(!dataNodeEdgeListEdge["Name"].isNull())
|
||||
edgeObject.name = dataNodeEdgeListEdge["Name"].asString();
|
||||
if(!dataNodeEdgeListEdge["Type"].isNull())
|
||||
edgeObject.type = dataNodeEdgeListEdge["Type"].asString();
|
||||
if(!dataNodeEdgeListEdge["Time"].isNull())
|
||||
edgeObject.time = dataNodeEdgeListEdge["Time"].asString();
|
||||
data_.edgeList.push_back(edgeObject);
|
||||
}
|
||||
auto allEntityTypeListNode = dataNode["EntityTypeList"]["EntityType"];
|
||||
for (auto dataNodeEntityTypeListEntityType : allEntityTypeListNode)
|
||||
{
|
||||
Data::EntityType entityTypeObject;
|
||||
if(!dataNodeEntityTypeListEntityType["Id"].isNull())
|
||||
entityTypeObject.id = dataNodeEntityTypeListEntityType["Id"].asString();
|
||||
if(!dataNodeEntityTypeListEntityType["Name"].isNull())
|
||||
entityTypeObject.name = dataNodeEntityTypeListEntityType["Name"].asString();
|
||||
if(!dataNodeEntityTypeListEntityType["DisplayColor"].isNull())
|
||||
entityTypeObject.displayColor = dataNodeEntityTypeListEntityType["DisplayColor"].asString();
|
||||
if(!dataNodeEntityTypeListEntityType["DisplayIcon"].isNull())
|
||||
entityTypeObject.displayIcon = dataNodeEntityTypeListEntityType["DisplayIcon"].asString();
|
||||
if(!dataNodeEntityTypeListEntityType["DisplayOrder"].isNull())
|
||||
entityTypeObject.displayOrder = dataNodeEntityTypeListEntityType["DisplayOrder"].asString();
|
||||
data_.entityTypeList.push_back(entityTypeObject);
|
||||
}
|
||||
auto allRelationTypeListNode = dataNode["RelationTypeList"]["RelationType"];
|
||||
for (auto dataNodeRelationTypeListRelationType : allRelationTypeListNode)
|
||||
{
|
||||
Data::RelationType relationTypeObject;
|
||||
if(!dataNodeRelationTypeListRelationType["Id"].isNull())
|
||||
relationTypeObject.id = dataNodeRelationTypeListRelationType["Id"].asString();
|
||||
if(!dataNodeRelationTypeListRelationType["ShowType"].isNull())
|
||||
relationTypeObject.showType = dataNodeRelationTypeListRelationType["ShowType"].asString();
|
||||
if(!dataNodeRelationTypeListRelationType["Directed"].isNull())
|
||||
relationTypeObject.directed = std::stoi(dataNodeRelationTypeListRelationType["Directed"].asString());
|
||||
if(!dataNodeRelationTypeListRelationType["Name"].isNull())
|
||||
relationTypeObject.name = dataNodeRelationTypeListRelationType["Name"].asString();
|
||||
data_.relationTypeList.push_back(relationTypeObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeGraph4InvestigationOnlineResult::Data DescribeGraph4InvestigationOnlineResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -20,30 +20,32 @@ using AlibabaCloud::Sas::Model::DescribeGroupedTagsRequest;
|
||||
|
||||
DescribeGroupedTagsRequest::DescribeGroupedTagsRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeGroupedTags")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeGroupedTagsRequest::~DescribeGroupedTagsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeGroupedTagsRequest::getMachineTypes()const
|
||||
{
|
||||
return machineTypes_;
|
||||
}
|
||||
|
||||
void DescribeGroupedTagsRequest::setMachineTypes(const std::string& machineTypes)
|
||||
{
|
||||
machineTypes_ = machineTypes;
|
||||
setCoreParameter("MachineTypes", machineTypes);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedTagsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeGroupedTagsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedTagsRequest::getMachineTypes()const
|
||||
{
|
||||
return machineTypes_;
|
||||
}
|
||||
|
||||
void DescribeGroupedTagsRequest::setMachineTypes(const std::string& machineTypes)
|
||||
{
|
||||
machineTypes_ = machineTypes;
|
||||
setParameter("MachineTypes", machineTypes);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedTagsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeGroupedTagsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,11 +20,24 @@ using AlibabaCloud::Sas::Model::DescribeGroupedVulRequest;
|
||||
|
||||
DescribeGroupedVulRequest::DescribeGroupedVulRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeGroupedVul")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeGroupedVulRequest::~DescribeGroupedVulRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getStatusList()const
|
||||
{
|
||||
return statusList_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setStatusList(const std::string& statusList)
|
||||
{
|
||||
statusList_ = statusList;
|
||||
setParameter("StatusList", statusList);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
@@ -33,7 +46,7 @@ std::string DescribeGroupedVulRequest::getType()const
|
||||
void DescribeGroupedVulRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getSourceIp()const
|
||||
@@ -44,7 +57,7 @@ std::string DescribeGroupedVulRequest::getSourceIp()const
|
||||
void DescribeGroupedVulRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeGroupedVulRequest::getPageSize()const
|
||||
@@ -55,7 +68,7 @@ int DescribeGroupedVulRequest::getPageSize()const
|
||||
void DescribeGroupedVulRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getLang()const
|
||||
@@ -66,7 +79,18 @@ std::string DescribeGroupedVulRequest::getLang()const
|
||||
void DescribeGroupedVulRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getDealed()const
|
||||
@@ -77,7 +101,7 @@ std::string DescribeGroupedVulRequest::getDealed()const
|
||||
void DescribeGroupedVulRequest::setDealed(const std::string& dealed)
|
||||
{
|
||||
dealed_ = dealed;
|
||||
setCoreParameter("Dealed", dealed);
|
||||
setParameter("Dealed", dealed);
|
||||
}
|
||||
|
||||
int DescribeGroupedVulRequest::getCurrentPage()const
|
||||
@@ -88,7 +112,7 @@ int DescribeGroupedVulRequest::getCurrentPage()const
|
||||
void DescribeGroupedVulRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getAliasName()const
|
||||
@@ -99,7 +123,7 @@ std::string DescribeGroupedVulRequest::getAliasName()const
|
||||
void DescribeGroupedVulRequest::setAliasName(const std::string& aliasName)
|
||||
{
|
||||
aliasName_ = aliasName;
|
||||
setCoreParameter("AliasName", aliasName);
|
||||
setParameter("AliasName", aliasName);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getNecessity()const
|
||||
@@ -110,7 +134,7 @@ std::string DescribeGroupedVulRequest::getNecessity()const
|
||||
void DescribeGroupedVulRequest::setNecessity(const std::string& necessity)
|
||||
{
|
||||
necessity_ = necessity;
|
||||
setCoreParameter("Necessity", necessity);
|
||||
setParameter("Necessity", necessity);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getUuids()const
|
||||
@@ -121,6 +145,6 @@ std::string DescribeGroupedVulRequest::getUuids()const
|
||||
void DescribeGroupedVulRequest::setUuids(const std::string& uuids)
|
||||
{
|
||||
uuids_ = uuids;
|
||||
setCoreParameter("Uuids", uuids);
|
||||
setParameter("Uuids", uuids);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,6 +43,8 @@ void DescribeGroupedVulResult::parse(const std::string &payload)
|
||||
for (auto valueGroupedVulItemsGroupedVulItem : allGroupedVulItemsNode)
|
||||
{
|
||||
GroupedVulItem groupedVulItemsObject;
|
||||
if(!valueGroupedVulItemsGroupedVulItem["Name"].isNull())
|
||||
groupedVulItemsObject.name = valueGroupedVulItemsGroupedVulItem["Name"].asString();
|
||||
if(!valueGroupedVulItemsGroupedVulItem["AliasName"].isNull())
|
||||
groupedVulItemsObject.aliasName = valueGroupedVulItemsGroupedVulItem["AliasName"].asString();
|
||||
if(!valueGroupedVulItemsGroupedVulItem["Type"].isNull())
|
||||
|
||||
@@ -20,52 +20,54 @@ using AlibabaCloud::Sas::Model::DescribeInstanceStatisticsRequest;
|
||||
|
||||
DescribeInstanceStatisticsRequest::DescribeInstanceStatisticsRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeInstanceStatistics")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeInstanceStatisticsRequest::~DescribeInstanceStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeInstanceStatisticsRequest::getUuid()const
|
||||
{
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
void DescribeInstanceStatisticsRequest::setUuid(const std::string& uuid)
|
||||
{
|
||||
uuid_ = uuid;
|
||||
setCoreParameter("Uuid", uuid);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceStatisticsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeInstanceStatisticsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceStatisticsRequest::getFrom()const
|
||||
{
|
||||
return from_;
|
||||
}
|
||||
|
||||
void DescribeInstanceStatisticsRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setCoreParameter("From", from);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceStatisticsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeInstanceStatisticsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceStatisticsRequest::getUuid()const
|
||||
{
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
void DescribeInstanceStatisticsRequest::setUuid(const std::string& uuid)
|
||||
{
|
||||
uuid_ = uuid;
|
||||
setParameter("Uuid", uuid);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceStatisticsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeInstanceStatisticsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceStatisticsRequest::getFrom()const
|
||||
{
|
||||
return from_;
|
||||
}
|
||||
|
||||
void DescribeInstanceStatisticsRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setParameter("From", from);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceStatisticsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeInstanceStatisticsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
62
sas/src/model/DescribeIpInfoRequest.cc
Normal file
62
sas/src/model/DescribeIpInfoRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeIpInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeIpInfoRequest;
|
||||
|
||||
DescribeIpInfoRequest::DescribeIpInfoRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeIpInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeIpInfoRequest::~DescribeIpInfoRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeIpInfoRequest::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void DescribeIpInfoRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeIpInfoRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoRequest::getField()const
|
||||
{
|
||||
return field_;
|
||||
}
|
||||
|
||||
void DescribeIpInfoRequest::setField(const std::string& field)
|
||||
{
|
||||
field_ = field;
|
||||
setParameter("Field", field);
|
||||
}
|
||||
|
||||
471
sas/src/model/DescribeIpInfoResult.cc
Normal file
471
sas/src/model/DescribeIpInfoResult.cc
Normal file
@@ -0,0 +1,471 @@
|
||||
/*
|
||||
* 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/DescribeIpInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeIpInfoResult::DescribeIpInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeIpInfoResult::DescribeIpInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeIpInfoResult::~DescribeIpInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeIpInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ip"].isNull())
|
||||
ip_ = value["ip"].asString();
|
||||
if(!value["geo"].isNull())
|
||||
geo_ = value["geo"].asString();
|
||||
if(!value["is_proxy"].isNull())
|
||||
is_proxy_ = value["is_proxy"].asString();
|
||||
if(!value["gmt_last_tor"].isNull())
|
||||
gmt_last_tor_ = value["gmt_last_tor"].asString();
|
||||
if(!value["tor_day_trace"].isNull())
|
||||
tor_day_trace_ = value["tor_day_trace"].asString();
|
||||
if(!value["total_day_cnt_tor"].isNull())
|
||||
total_day_cnt_tor_ = value["total_day_cnt_tor"].asString();
|
||||
if(!value["day_cnt_7d_tor"].isNull())
|
||||
day_cnt_7d_tor_ = value["day_cnt_7d_tor"].asString();
|
||||
if(!value["day_cnt_30d_tor"].isNull())
|
||||
day_cnt_30d_tor_ = value["day_cnt_30d_tor"].asString();
|
||||
if(!value["is_tor"].isNull())
|
||||
is_tor_ = value["is_tor"].asString();
|
||||
if(!value["gmt_last_web_attack"].isNull())
|
||||
gmt_last_web_attack_ = value["gmt_last_web_attack"].asString();
|
||||
if(!value["web_attack_day_trace"].isNull())
|
||||
web_attack_day_trace_ = value["web_attack_day_trace"].asString();
|
||||
if(!value["total_day_cnt_web_attack"].isNull())
|
||||
total_day_cnt_web_attack_ = value["total_day_cnt_web_attack"].asString();
|
||||
if(!value["day_cnt_7d_web_attack"].isNull())
|
||||
day_cnt_7d_web_attack_ = value["day_cnt_7d_web_attack"].asString();
|
||||
if(!value["day_cnt_30d_web_attack"].isNull())
|
||||
day_cnt_30d_web_attack_ = value["day_cnt_30d_web_attack"].asString();
|
||||
if(!value["is_web_attack"].isNull())
|
||||
is_web_attack_ = value["is_web_attack"].asString();
|
||||
if(!value["gmt_last_proxy"].isNull())
|
||||
gmt_last_proxy_ = value["gmt_last_proxy"].asString();
|
||||
if(!value["proxy_day_trace"].isNull())
|
||||
proxy_day_trace_ = value["proxy_day_trace"].asString();
|
||||
if(!value["is_proxy_1d"].isNull())
|
||||
is_proxy_1d_ = value["is_proxy_1d"].asString();
|
||||
if(!value["is_proxy_7d"].isNull())
|
||||
is_proxy_7d_ = value["is_proxy_7d"].asString();
|
||||
if(!value["is_tor_1d"].isNull())
|
||||
is_tor_1d_ = value["is_tor_1d"].asString();
|
||||
if(!value["is_tor_7d"].isNull())
|
||||
is_tor_7d_ = value["is_tor_7d"].asString();
|
||||
if(!value["is_web_attack_1d"].isNull())
|
||||
is_web_attack_1d_ = value["is_web_attack_1d"].asString();
|
||||
if(!value["is_web_attack_7d"].isNull())
|
||||
is_web_attack_7d_ = value["is_web_attack_7d"].asString();
|
||||
if(!value["is_web_attack_30d"].isNull())
|
||||
is_web_attack_30d_ = value["is_web_attack_30d"].asString();
|
||||
if(!value["province"].isNull())
|
||||
province_ = value["province"].asString();
|
||||
if(!value["city"].isNull())
|
||||
city_ = value["city"].asString();
|
||||
if(!value["isp"].isNull())
|
||||
isp_ = value["isp"].asString();
|
||||
if(!value["country"].isNull())
|
||||
country_ = value["country"].asString();
|
||||
if(!value["gmt_last_nat"].isNull())
|
||||
gmt_last_nat_ = value["gmt_last_nat"].asString();
|
||||
if(!value["nat_day_trace"].isNull())
|
||||
nat_day_trace_ = value["nat_day_trace"].asString();
|
||||
if(!value["is_nat"].isNull())
|
||||
is_nat_ = value["is_nat"].asString();
|
||||
if(!value["is_nat_1d"].isNull())
|
||||
is_nat_1d_ = value["is_nat_1d"].asString();
|
||||
if(!value["is_nat_7d"].isNull())
|
||||
is_nat_7d_ = value["is_nat_7d"].asString();
|
||||
if(!value["gmt_first_mining_pool"].isNull())
|
||||
gmt_first_mining_pool_ = value["gmt_first_mining_pool"].asString();
|
||||
if(!value["gmt_last_mining_pool"].isNull())
|
||||
gmt_last_mining_pool_ = value["gmt_last_mining_pool"].asString();
|
||||
if(!value["mining_pool_day_trace"].isNull())
|
||||
mining_pool_day_trace_ = value["mining_pool_day_trace"].asString();
|
||||
if(!value["is_mining_pool"].isNull())
|
||||
is_mining_pool_ = value["is_mining_pool"].asString();
|
||||
if(!value["is_mining_pool_1d"].isNull())
|
||||
is_mining_pool_1d_ = value["is_mining_pool_1d"].asString();
|
||||
if(!value["is_mining_pool_7d"].isNull())
|
||||
is_mining_pool_7d_ = value["is_mining_pool_7d"].asString();
|
||||
if(!value["gmt_first_c2"].isNull())
|
||||
gmt_first_c2_ = value["gmt_first_c2"].asString();
|
||||
if(!value["gmt_last_c2"].isNull())
|
||||
gmt_last_c2_ = value["gmt_last_c2"].asString();
|
||||
if(!value["c2_day_trace"].isNull())
|
||||
c2_day_trace_ = value["c2_day_trace"].asString();
|
||||
if(!value["is_c2"].isNull())
|
||||
is_c2_ = value["is_c2"].asString();
|
||||
if(!value["is_c2_1d"].isNull())
|
||||
is_c2_1d_ = value["is_c2_1d"].asString();
|
||||
if(!value["is_c2_7d"].isNull())
|
||||
is_c2_7d_ = value["is_c2_7d"].asString();
|
||||
if(!value["gmt_last_malicious_source"].isNull())
|
||||
gmt_last_malicious_source_ = value["gmt_last_malicious_source"].asString();
|
||||
if(!value["malicious_source_day_trace"].isNull())
|
||||
malicious_source_day_trace_ = value["malicious_source_day_trace"].asString();
|
||||
if(!value["is_malicious_source"].isNull())
|
||||
is_malicious_source_ = value["is_malicious_source"].asString();
|
||||
if(!value["is_malicious_source_1d"].isNull())
|
||||
is_malicious_source_1d_ = value["is_malicious_source_1d"].asString();
|
||||
if(!value["is_malicious_source_7d"].isNull())
|
||||
is_malicious_source_7d_ = value["is_malicious_source_7d"].asString();
|
||||
if(!value["is_malicious_source_30d"].isNull())
|
||||
is_malicious_source_30d_ = value["is_malicious_source_30d"].asString();
|
||||
if(!value["is_idc"].isNull())
|
||||
is_idc_ = value["is_idc"].asString();
|
||||
if(!value["idc_name"].isNull())
|
||||
idc_name_ = value["idc_name"].asString();
|
||||
if(!value["is_malicious_login"].isNull())
|
||||
is_malicious_login_ = value["is_malicious_login"].asString();
|
||||
if(!value["gmt_last_malicious_login"].isNull())
|
||||
gmt_last_malicious_login_ = value["gmt_last_malicious_login"].asString();
|
||||
if(!value["malicious_login_day_trace"].isNull())
|
||||
malicious_login_day_trace_ = value["malicious_login_day_trace"].asString();
|
||||
if(!value["is_malicious_login_1d"].isNull())
|
||||
is_malicious_login_1d_ = value["is_malicious_login_1d"].asString();
|
||||
if(!value["is_malicious_login_7d"].isNull())
|
||||
is_malicious_login_7d_ = value["is_malicious_login_7d"].asString();
|
||||
if(!value["malicious_score"].isNull())
|
||||
malicious_score_ = value["malicious_score"].asString();
|
||||
if(!value["tags"].isNull())
|
||||
tags_ = value["tags"].asString();
|
||||
if(!value["rdns"].isNull())
|
||||
rdns_ = value["rdns"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getGmt_first_c2()const
|
||||
{
|
||||
return gmt_first_c2_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_malicious_source_30d()const
|
||||
{
|
||||
return is_malicious_source_30d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_tor_1d()const
|
||||
{
|
||||
return is_tor_1d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getC2_day_trace()const
|
||||
{
|
||||
return c2_day_trace_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getGmt_last_c2()const
|
||||
{
|
||||
return gmt_last_c2_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getDay_cnt_30d_tor()const
|
||||
{
|
||||
return day_cnt_30d_tor_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getNat_day_trace()const
|
||||
{
|
||||
return nat_day_trace_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getMining_pool_day_trace()const
|
||||
{
|
||||
return mining_pool_day_trace_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_nat_1d()const
|
||||
{
|
||||
return is_nat_1d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getMalicious_source_day_trace()const
|
||||
{
|
||||
return malicious_source_day_trace_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_idc()const
|
||||
{
|
||||
return is_idc_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_c2_7d()const
|
||||
{
|
||||
return is_c2_7d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getGmt_last_malicious_login()const
|
||||
{
|
||||
return gmt_last_malicious_login_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_proxy()const
|
||||
{
|
||||
return is_proxy_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getDay_cnt_7d_web_attack()const
|
||||
{
|
||||
return day_cnt_7d_web_attack_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getCity()const
|
||||
{
|
||||
return city_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getProvince()const
|
||||
{
|
||||
return province_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getGeo()const
|
||||
{
|
||||
return geo_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getGmt_last_nat()const
|
||||
{
|
||||
return gmt_last_nat_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_malicious_login_7d()const
|
||||
{
|
||||
return is_malicious_login_7d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getMalicious_login_day_trace()const
|
||||
{
|
||||
return malicious_login_day_trace_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getRdns()const
|
||||
{
|
||||
return rdns_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_proxy_7d()const
|
||||
{
|
||||
return is_proxy_7d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_web_attack_7d()const
|
||||
{
|
||||
return is_web_attack_7d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_web_attack_30d()const
|
||||
{
|
||||
return is_web_attack_30d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_mining_pool_1d()const
|
||||
{
|
||||
return is_mining_pool_1d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getTotal_day_cnt_web_attack()const
|
||||
{
|
||||
return total_day_cnt_web_attack_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getCountry()const
|
||||
{
|
||||
return country_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_malicious_source_7d()const
|
||||
{
|
||||
return is_malicious_source_7d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getGmt_last_proxy()const
|
||||
{
|
||||
return gmt_last_proxy_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_nat()const
|
||||
{
|
||||
return is_nat_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_web_attack()const
|
||||
{
|
||||
return is_web_attack_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getGmt_last_tor()const
|
||||
{
|
||||
return gmt_last_tor_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getTotal_day_cnt_tor()const
|
||||
{
|
||||
return total_day_cnt_tor_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_tor_7d()const
|
||||
{
|
||||
return is_tor_7d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getWeb_attack_day_trace()const
|
||||
{
|
||||
return web_attack_day_trace_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_nat_7d()const
|
||||
{
|
||||
return is_nat_7d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_malicious_login()const
|
||||
{
|
||||
return is_malicious_login_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_mining_pool()const
|
||||
{
|
||||
return is_mining_pool_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIdc_name()const
|
||||
{
|
||||
return idc_name_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_malicious_source()const
|
||||
{
|
||||
return is_malicious_source_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_c2_1d()const
|
||||
{
|
||||
return is_c2_1d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getProxy_day_trace()const
|
||||
{
|
||||
return proxy_day_trace_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIsp()const
|
||||
{
|
||||
return isp_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getTor_day_trace()const
|
||||
{
|
||||
return tor_day_trace_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getDay_cnt_30d_web_attack()const
|
||||
{
|
||||
return day_cnt_30d_web_attack_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getDay_cnt_7d_tor()const
|
||||
{
|
||||
return day_cnt_7d_tor_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_tor()const
|
||||
{
|
||||
return is_tor_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_malicious_source_1d()const
|
||||
{
|
||||
return is_malicious_source_1d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_malicious_login_1d()const
|
||||
{
|
||||
return is_malicious_login_1d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getMalicious_score()const
|
||||
{
|
||||
return malicious_score_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_proxy_1d()const
|
||||
{
|
||||
return is_proxy_1d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getGmt_last_malicious_source()const
|
||||
{
|
||||
return gmt_last_malicious_source_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getGmt_first_mining_pool()const
|
||||
{
|
||||
return gmt_first_mining_pool_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getGmt_last_web_attack()const
|
||||
{
|
||||
return gmt_last_web_attack_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_web_attack_1d()const
|
||||
{
|
||||
return is_web_attack_1d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getGmt_last_mining_pool()const
|
||||
{
|
||||
return gmt_last_mining_pool_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_mining_pool_7d()const
|
||||
{
|
||||
return is_mining_pool_7d_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIs_c2()const
|
||||
{
|
||||
return is_c2_;
|
||||
}
|
||||
|
||||
40
sas/src/model/DescribeModuleConfigRequest.cc
Normal file
40
sas/src/model/DescribeModuleConfigRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/DescribeModuleConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeModuleConfigRequest;
|
||||
|
||||
DescribeModuleConfigRequest::DescribeModuleConfigRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeModuleConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeModuleConfigRequest::~DescribeModuleConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeModuleConfigRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeModuleConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
98
sas/src/model/DescribeModuleConfigResult.cc
Normal file
98
sas/src/model/DescribeModuleConfigResult.cc
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* 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/DescribeModuleConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeModuleConfigResult::DescribeModuleConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeModuleConfigResult::DescribeModuleConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeModuleConfigResult::~DescribeModuleConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeModuleConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allModuleConfigListNode = value["ModuleConfigList"]["ModuleConfig"];
|
||||
for (auto valueModuleConfigListModuleConfig : allModuleConfigListNode)
|
||||
{
|
||||
ModuleConfig moduleConfigListObject;
|
||||
if(!valueModuleConfigListModuleConfig["ConfigName"].isNull())
|
||||
moduleConfigListObject.configName = valueModuleConfigListModuleConfig["ConfigName"].asString();
|
||||
if(!valueModuleConfigListModuleConfig["ModuleName"].isNull())
|
||||
moduleConfigListObject.moduleName = valueModuleConfigListModuleConfig["ModuleName"].asString();
|
||||
auto allItemsNode = allModuleConfigListNode["Items"]["Item"];
|
||||
for (auto allModuleConfigListNodeItemsItem : allItemsNode)
|
||||
{
|
||||
ModuleConfig::Item itemsObject;
|
||||
if(!allModuleConfigListNodeItemsItem["InstanceId"].isNull())
|
||||
itemsObject.instanceId = allModuleConfigListNodeItemsItem["InstanceId"].asString();
|
||||
if(!allModuleConfigListNodeItemsItem["InstanceName"].isNull())
|
||||
itemsObject.instanceName = allModuleConfigListNodeItemsItem["InstanceName"].asString();
|
||||
if(!allModuleConfigListNodeItemsItem["GroupId"].isNull())
|
||||
itemsObject.groupId = std::stoi(allModuleConfigListNodeItemsItem["GroupId"].asString());
|
||||
if(!allModuleConfigListNodeItemsItem["Ip"].isNull())
|
||||
itemsObject.ip = allModuleConfigListNodeItemsItem["Ip"].asString();
|
||||
if(!allModuleConfigListNodeItemsItem["Region"].isNull())
|
||||
itemsObject.region = allModuleConfigListNodeItemsItem["Region"].asString();
|
||||
if(!allModuleConfigListNodeItemsItem["Uuid"].isNull())
|
||||
itemsObject.uuid = allModuleConfigListNodeItemsItem["Uuid"].asString();
|
||||
moduleConfigListObject.items.push_back(itemsObject);
|
||||
}
|
||||
moduleConfigList_.push_back(moduleConfigListObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeModuleConfigResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
int DescribeModuleConfigResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::vector<DescribeModuleConfigResult::ModuleConfig> DescribeModuleConfigResult::getModuleConfigList()const
|
||||
{
|
||||
return moduleConfigList_;
|
||||
}
|
||||
|
||||
bool DescribeModuleConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
sas/src/model/DescribeNoticeConfigRequest.cc
Normal file
40
sas/src/model/DescribeNoticeConfigRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/DescribeNoticeConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeNoticeConfigRequest;
|
||||
|
||||
DescribeNoticeConfigRequest::DescribeNoticeConfigRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeNoticeConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeNoticeConfigRequest::~DescribeNoticeConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeNoticeConfigRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeNoticeConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
65
sas/src/model/DescribeNoticeConfigResult.cc
Normal file
65
sas/src/model/DescribeNoticeConfigResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeNoticeConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeNoticeConfigResult::DescribeNoticeConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNoticeConfigResult::DescribeNoticeConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNoticeConfigResult::~DescribeNoticeConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeNoticeConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNoticeConfigListNode = value["NoticeConfigList"]["NoticeConfig"];
|
||||
for (auto valueNoticeConfigListNoticeConfig : allNoticeConfigListNode)
|
||||
{
|
||||
NoticeConfig noticeConfigListObject;
|
||||
if(!valueNoticeConfigListNoticeConfig["TimeLimit"].isNull())
|
||||
noticeConfigListObject.timeLimit = std::stoi(valueNoticeConfigListNoticeConfig["TimeLimit"].asString());
|
||||
if(!valueNoticeConfigListNoticeConfig["Route"].isNull())
|
||||
noticeConfigListObject.route = std::stoi(valueNoticeConfigListNoticeConfig["Route"].asString());
|
||||
if(!valueNoticeConfigListNoticeConfig["Project"].isNull())
|
||||
noticeConfigListObject.project = valueNoticeConfigListNoticeConfig["Project"].asString();
|
||||
if(!valueNoticeConfigListNoticeConfig["AliUid"].isNull())
|
||||
noticeConfigListObject.aliUid = std::stol(valueNoticeConfigListNoticeConfig["AliUid"].asString());
|
||||
if(!valueNoticeConfigListNoticeConfig["CurrentPage"].isNull())
|
||||
noticeConfigListObject.currentPage = std::stoi(valueNoticeConfigListNoticeConfig["CurrentPage"].asString());
|
||||
noticeConfigList_.push_back(noticeConfigListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeNoticeConfigResult::NoticeConfig> DescribeNoticeConfigResult::getNoticeConfigList()const
|
||||
{
|
||||
return noticeConfigList_;
|
||||
}
|
||||
|
||||
@@ -20,41 +20,43 @@ using AlibabaCloud::Sas::Model::DescribePropertyCountRequest;
|
||||
|
||||
DescribePropertyCountRequest::DescribePropertyCountRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribePropertyCount")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePropertyCountRequest::~DescribePropertyCountRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePropertyCountRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribePropertyCountRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DescribePropertyCountRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertyCountRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribePropertyCountRequest::getUuidList()const
|
||||
{
|
||||
return uuidList_;
|
||||
}
|
||||
|
||||
void DescribePropertyCountRequest::setUuidList(const std::string& uuidList)
|
||||
{
|
||||
uuidList_ = uuidList;
|
||||
setCoreParameter("UuidList", uuidList);
|
||||
}
|
||||
|
||||
std::string DescribePropertyCountRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribePropertyCountRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DescribePropertyCountRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertyCountRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribePropertyCountRequest::getUuidList()const
|
||||
{
|
||||
return uuidList_;
|
||||
}
|
||||
|
||||
void DescribePropertyCountRequest::setUuidList(const std::string& uuidList)
|
||||
{
|
||||
uuidList_ = uuidList;
|
||||
setParameter("UuidList", uuidList);
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +47,8 @@ void DescribePropertyCountResult::parse(const std::string &payload)
|
||||
software_ = std::stoi(value["Software"].asString());
|
||||
if(!value["User"].isNull())
|
||||
user_ = std::stoi(value["User"].asString());
|
||||
if(!value["Cron"].isNull())
|
||||
cron_ = std::stoi(value["Cron"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -70,3 +72,8 @@ int DescribePropertyCountResult::getSoftware()const
|
||||
return software_;
|
||||
}
|
||||
|
||||
int DescribePropertyCountResult::getCron()const
|
||||
{
|
||||
return cron_;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,85 +20,87 @@ using AlibabaCloud::Sas::Model::DescribePropertyPortDetailRequest;
|
||||
|
||||
DescribePropertyPortDetailRequest::DescribePropertyPortDetailRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribePropertyPortDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePropertyPortDetailRequest::~DescribePropertyPortDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePropertyPortDetailRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortDetailRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setCoreParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string DescribePropertyPortDetailRequest::getUuid()const
|
||||
{
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortDetailRequest::setUuid(const std::string& uuid)
|
||||
{
|
||||
uuid_ = uuid;
|
||||
setCoreParameter("Uuid", uuid);
|
||||
}
|
||||
|
||||
std::string DescribePropertyPortDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribePropertyPortDetailRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortDetailRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribePropertyPortDetailRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortDetailRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePropertyPortDetailRequest::getPort()const
|
||||
{
|
||||
return port_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortDetailRequest::setPort(const std::string& port)
|
||||
{
|
||||
port_ = port;
|
||||
setCoreParameter("Port", port);
|
||||
}
|
||||
|
||||
std::string DescribePropertyPortDetailRequest::getProcName()const
|
||||
{
|
||||
return procName_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortDetailRequest::setProcName(const std::string& procName)
|
||||
{
|
||||
procName_ = procName;
|
||||
setCoreParameter("ProcName", procName);
|
||||
}
|
||||
|
||||
std::string DescribePropertyPortDetailRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortDetailRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string DescribePropertyPortDetailRequest::getUuid()const
|
||||
{
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortDetailRequest::setUuid(const std::string& uuid)
|
||||
{
|
||||
uuid_ = uuid;
|
||||
setParameter("Uuid", uuid);
|
||||
}
|
||||
|
||||
std::string DescribePropertyPortDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribePropertyPortDetailRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortDetailRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribePropertyPortDetailRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortDetailRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePropertyPortDetailRequest::getPort()const
|
||||
{
|
||||
return port_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortDetailRequest::setPort(const std::string& port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", port);
|
||||
}
|
||||
|
||||
std::string DescribePropertyPortDetailRequest::getProcName()const
|
||||
{
|
||||
return procName_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortDetailRequest::setProcName(const std::string& procName)
|
||||
{
|
||||
procName_ = procName;
|
||||
setParameter("ProcName", procName);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,63 +20,65 @@ using AlibabaCloud::Sas::Model::DescribePropertyPortItemRequest;
|
||||
|
||||
DescribePropertyPortItemRequest::DescribePropertyPortItemRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribePropertyPortItem")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePropertyPortItemRequest::~DescribePropertyPortItemRequest()
|
||||
{}
|
||||
|
||||
int DescribePropertyPortItemRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortItemRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePropertyPortItemRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortItemRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribePropertyPortItemRequest::getPort()const
|
||||
{
|
||||
return port_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortItemRequest::setPort(const std::string& port)
|
||||
{
|
||||
port_ = port;
|
||||
setCoreParameter("Port", port);
|
||||
}
|
||||
|
||||
int DescribePropertyPortItemRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortItemRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
bool DescribePropertyPortItemRequest::getForceFlush()const
|
||||
{
|
||||
return forceFlush_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortItemRequest::setForceFlush(bool forceFlush)
|
||||
{
|
||||
forceFlush_ = forceFlush;
|
||||
setCoreParameter("ForceFlush", forceFlush ? "true" : "false");
|
||||
}
|
||||
|
||||
int DescribePropertyPortItemRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortItemRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePropertyPortItemRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortItemRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribePropertyPortItemRequest::getPort()const
|
||||
{
|
||||
return port_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortItemRequest::setPort(const std::string& port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", port);
|
||||
}
|
||||
|
||||
int DescribePropertyPortItemRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortItemRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
bool DescribePropertyPortItemRequest::getForceFlush()const
|
||||
{
|
||||
return forceFlush_;
|
||||
}
|
||||
|
||||
void DescribePropertyPortItemRequest::setForceFlush(bool forceFlush)
|
||||
{
|
||||
forceFlush_ = forceFlush;
|
||||
setParameter("ForceFlush", forceFlush ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -20,96 +20,98 @@ using AlibabaCloud::Sas::Model::DescribePropertyProcDetailRequest;
|
||||
|
||||
DescribePropertyProcDetailRequest::DescribePropertyProcDetailRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribePropertyProcDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePropertyProcDetailRequest::~DescribePropertyProcDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePropertyProcDetailRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcDetailRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setCoreParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string DescribePropertyProcDetailRequest::getUuid()const
|
||||
{
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcDetailRequest::setUuid(const std::string& uuid)
|
||||
{
|
||||
uuid_ = uuid;
|
||||
setCoreParameter("Uuid", uuid);
|
||||
}
|
||||
|
||||
std::string DescribePropertyProcDetailRequest::getCmdline()const
|
||||
{
|
||||
return cmdline_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcDetailRequest::setCmdline(const std::string& cmdline)
|
||||
{
|
||||
cmdline_ = cmdline;
|
||||
setCoreParameter("Cmdline", cmdline);
|
||||
}
|
||||
|
||||
std::string DescribePropertyProcDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribePropertyProcDetailRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcDetailRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribePropertyProcDetailRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcDetailRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePropertyProcDetailRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcDetailRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string DescribePropertyProcDetailRequest::getUser()const
|
||||
{
|
||||
return user_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcDetailRequest::setUser(const std::string& user)
|
||||
{
|
||||
user_ = user;
|
||||
setCoreParameter("User", user);
|
||||
}
|
||||
|
||||
std::string DescribePropertyProcDetailRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcDetailRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string DescribePropertyProcDetailRequest::getUuid()const
|
||||
{
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcDetailRequest::setUuid(const std::string& uuid)
|
||||
{
|
||||
uuid_ = uuid;
|
||||
setParameter("Uuid", uuid);
|
||||
}
|
||||
|
||||
std::string DescribePropertyProcDetailRequest::getCmdline()const
|
||||
{
|
||||
return cmdline_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcDetailRequest::setCmdline(const std::string& cmdline)
|
||||
{
|
||||
cmdline_ = cmdline;
|
||||
setParameter("Cmdline", cmdline);
|
||||
}
|
||||
|
||||
std::string DescribePropertyProcDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribePropertyProcDetailRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcDetailRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribePropertyProcDetailRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcDetailRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePropertyProcDetailRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcDetailRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string DescribePropertyProcDetailRequest::getUser()const
|
||||
{
|
||||
return user_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcDetailRequest::setUser(const std::string& user)
|
||||
{
|
||||
user_ = user;
|
||||
setParameter("User", user);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,63 +20,65 @@ using AlibabaCloud::Sas::Model::DescribePropertyProcItemRequest;
|
||||
|
||||
DescribePropertyProcItemRequest::DescribePropertyProcItemRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribePropertyProcItem")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePropertyProcItemRequest::~DescribePropertyProcItemRequest()
|
||||
{}
|
||||
|
||||
int DescribePropertyProcItemRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcItemRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePropertyProcItemRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcItemRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribePropertyProcItemRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcItemRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
int DescribePropertyProcItemRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcItemRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
bool DescribePropertyProcItemRequest::getForceFlush()const
|
||||
{
|
||||
return forceFlush_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcItemRequest::setForceFlush(bool forceFlush)
|
||||
{
|
||||
forceFlush_ = forceFlush;
|
||||
setCoreParameter("ForceFlush", forceFlush ? "true" : "false");
|
||||
}
|
||||
|
||||
int DescribePropertyProcItemRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcItemRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePropertyProcItemRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcItemRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribePropertyProcItemRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcItemRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int DescribePropertyProcItemRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcItemRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
bool DescribePropertyProcItemRequest::getForceFlush()const
|
||||
{
|
||||
return forceFlush_;
|
||||
}
|
||||
|
||||
void DescribePropertyProcItemRequest::setForceFlush(bool forceFlush)
|
||||
{
|
||||
forceFlush_ = forceFlush;
|
||||
setParameter("ForceFlush", forceFlush ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -20,96 +20,98 @@ using AlibabaCloud::Sas::Model::DescribePropertySoftwareDetailRequest;
|
||||
|
||||
DescribePropertySoftwareDetailRequest::DescribePropertySoftwareDetailRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribePropertySoftwareDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePropertySoftwareDetailRequest::~DescribePropertySoftwareDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePropertySoftwareDetailRequest::getSoftwareVersion()const
|
||||
{
|
||||
return softwareVersion_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareDetailRequest::setSoftwareVersion(const std::string& softwareVersion)
|
||||
{
|
||||
softwareVersion_ = softwareVersion;
|
||||
setCoreParameter("SoftwareVersion", softwareVersion);
|
||||
}
|
||||
|
||||
std::string DescribePropertySoftwareDetailRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareDetailRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setCoreParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string DescribePropertySoftwareDetailRequest::getUuid()const
|
||||
{
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareDetailRequest::setUuid(const std::string& uuid)
|
||||
{
|
||||
uuid_ = uuid;
|
||||
setCoreParameter("Uuid", uuid);
|
||||
}
|
||||
|
||||
std::string DescribePropertySoftwareDetailRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareDetailRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setCoreParameter("Path", path);
|
||||
}
|
||||
|
||||
std::string DescribePropertySoftwareDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribePropertySoftwareDetailRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareDetailRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribePropertySoftwareDetailRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareDetailRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePropertySoftwareDetailRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareDetailRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string DescribePropertySoftwareDetailRequest::getSoftwareVersion()const
|
||||
{
|
||||
return softwareVersion_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareDetailRequest::setSoftwareVersion(const std::string& softwareVersion)
|
||||
{
|
||||
softwareVersion_ = softwareVersion;
|
||||
setParameter("SoftwareVersion", softwareVersion);
|
||||
}
|
||||
|
||||
std::string DescribePropertySoftwareDetailRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareDetailRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string DescribePropertySoftwareDetailRequest::getUuid()const
|
||||
{
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareDetailRequest::setUuid(const std::string& uuid)
|
||||
{
|
||||
uuid_ = uuid;
|
||||
setParameter("Uuid", uuid);
|
||||
}
|
||||
|
||||
std::string DescribePropertySoftwareDetailRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareDetailRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setParameter("Path", path);
|
||||
}
|
||||
|
||||
std::string DescribePropertySoftwareDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribePropertySoftwareDetailRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareDetailRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribePropertySoftwareDetailRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareDetailRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePropertySoftwareDetailRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareDetailRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,63 +20,65 @@ using AlibabaCloud::Sas::Model::DescribePropertySoftwareItemRequest;
|
||||
|
||||
DescribePropertySoftwareItemRequest::DescribePropertySoftwareItemRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribePropertySoftwareItem")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePropertySoftwareItemRequest::~DescribePropertySoftwareItemRequest()
|
||||
{}
|
||||
|
||||
int DescribePropertySoftwareItemRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareItemRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePropertySoftwareItemRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareItemRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribePropertySoftwareItemRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareItemRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
int DescribePropertySoftwareItemRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareItemRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
bool DescribePropertySoftwareItemRequest::getForceFlush()const
|
||||
{
|
||||
return forceFlush_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareItemRequest::setForceFlush(bool forceFlush)
|
||||
{
|
||||
forceFlush_ = forceFlush;
|
||||
setCoreParameter("ForceFlush", forceFlush ? "true" : "false");
|
||||
}
|
||||
|
||||
int DescribePropertySoftwareItemRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareItemRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePropertySoftwareItemRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareItemRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribePropertySoftwareItemRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareItemRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int DescribePropertySoftwareItemRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareItemRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
bool DescribePropertySoftwareItemRequest::getForceFlush()const
|
||||
{
|
||||
return forceFlush_;
|
||||
}
|
||||
|
||||
void DescribePropertySoftwareItemRequest::setForceFlush(bool forceFlush)
|
||||
{
|
||||
forceFlush_ = forceFlush;
|
||||
setParameter("ForceFlush", forceFlush ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
51
sas/src/model/DescribePropertyUsageNewestRequest.cc
Normal file
51
sas/src/model/DescribePropertyUsageNewestRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribePropertyUsageNewestRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribePropertyUsageNewestRequest;
|
||||
|
||||
DescribePropertyUsageNewestRequest::DescribePropertyUsageNewestRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribePropertyUsageNewest")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePropertyUsageNewestRequest::~DescribePropertyUsageNewestRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePropertyUsageNewestRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribePropertyUsageNewestRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DescribePropertyUsageNewestRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertyUsageNewestRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
73
sas/src/model/DescribePropertyUsageNewestResult.cc
Normal file
73
sas/src/model/DescribePropertyUsageNewestResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribePropertyUsageNewestResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribePropertyUsageNewestResult::DescribePropertyUsageNewestResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePropertyUsageNewestResult::DescribePropertyUsageNewestResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePropertyUsageNewestResult::~DescribePropertyUsageNewestResult()
|
||||
{}
|
||||
|
||||
void DescribePropertyUsageNewestResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNewestStatisticItemsNode = value["NewestStatisticItems"]["NewestStatisticItem"];
|
||||
for (auto valueNewestStatisticItemsNewestStatisticItem : allNewestStatisticItemsNode)
|
||||
{
|
||||
NewestStatisticItem newestStatisticItemsObject;
|
||||
if(!valueNewestStatisticItemsNewestStatisticItem["Name"].isNull())
|
||||
newestStatisticItemsObject.name = valueNewestStatisticItemsNewestStatisticItem["Name"].asString();
|
||||
if(!valueNewestStatisticItemsNewestStatisticItem["Create"].isNull())
|
||||
newestStatisticItemsObject.create = std::stol(valueNewestStatisticItemsNewestStatisticItem["Create"].asString());
|
||||
newestStatisticItems_.push_back(newestStatisticItemsObject);
|
||||
}
|
||||
if(!value["ItemCount"].isNull())
|
||||
itemCount_ = std::stoi(value["ItemCount"].asString());
|
||||
if(!value["Type"].isNull())
|
||||
type_ = value["Type"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribePropertyUsageNewestResult::NewestStatisticItem> DescribePropertyUsageNewestResult::getNewestStatisticItems()const
|
||||
{
|
||||
return newestStatisticItems_;
|
||||
}
|
||||
|
||||
std::string DescribePropertyUsageNewestResult::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
int DescribePropertyUsageNewestResult::getItemCount()const
|
||||
{
|
||||
return itemCount_;
|
||||
}
|
||||
|
||||
@@ -20,85 +20,87 @@ using AlibabaCloud::Sas::Model::DescribePropertyUserDetailRequest;
|
||||
|
||||
DescribePropertyUserDetailRequest::DescribePropertyUserDetailRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribePropertyUserDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePropertyUserDetailRequest::~DescribePropertyUserDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePropertyUserDetailRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserDetailRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setCoreParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string DescribePropertyUserDetailRequest::getUuid()const
|
||||
{
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserDetailRequest::setUuid(const std::string& uuid)
|
||||
{
|
||||
uuid_ = uuid;
|
||||
setCoreParameter("Uuid", uuid);
|
||||
}
|
||||
|
||||
std::string DescribePropertyUserDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribePropertyUserDetailRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserDetailRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribePropertyUserDetailRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserDetailRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePropertyUserDetailRequest::getIsRoot()const
|
||||
{
|
||||
return isRoot_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserDetailRequest::setIsRoot(const std::string& isRoot)
|
||||
{
|
||||
isRoot_ = isRoot;
|
||||
setCoreParameter("IsRoot", isRoot);
|
||||
}
|
||||
|
||||
std::string DescribePropertyUserDetailRequest::getUser()const
|
||||
{
|
||||
return user_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserDetailRequest::setUser(const std::string& user)
|
||||
{
|
||||
user_ = user;
|
||||
setCoreParameter("User", user);
|
||||
}
|
||||
|
||||
std::string DescribePropertyUserDetailRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserDetailRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string DescribePropertyUserDetailRequest::getUuid()const
|
||||
{
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserDetailRequest::setUuid(const std::string& uuid)
|
||||
{
|
||||
uuid_ = uuid;
|
||||
setParameter("Uuid", uuid);
|
||||
}
|
||||
|
||||
std::string DescribePropertyUserDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribePropertyUserDetailRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserDetailRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribePropertyUserDetailRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserDetailRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePropertyUserDetailRequest::getIsRoot()const
|
||||
{
|
||||
return isRoot_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserDetailRequest::setIsRoot(const std::string& isRoot)
|
||||
{
|
||||
isRoot_ = isRoot;
|
||||
setParameter("IsRoot", isRoot);
|
||||
}
|
||||
|
||||
std::string DescribePropertyUserDetailRequest::getUser()const
|
||||
{
|
||||
return user_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserDetailRequest::setUser(const std::string& user)
|
||||
{
|
||||
user_ = user;
|
||||
setParameter("User", user);
|
||||
}
|
||||
|
||||
|
||||
@@ -71,6 +71,8 @@ void DescribePropertyUserDetailResult::parse(const std::string &payload)
|
||||
propertysObject.intranetIp = valuePropertysPropertyUser["IntranetIp"].asString();
|
||||
if(!valuePropertysPropertyUser["InternetIp"].isNull())
|
||||
propertysObject.internetIp = valuePropertysPropertyUser["InternetIp"].asString();
|
||||
if(!valuePropertysPropertyUser["Status"].isNull())
|
||||
propertysObject.status = valuePropertysPropertyUser["Status"].asString();
|
||||
auto allGroupNames = value["GroupNames"]["GroupName"];
|
||||
for (auto value : allGroupNames)
|
||||
propertysObject.groupNames.push_back(value.asString());
|
||||
|
||||
@@ -20,63 +20,65 @@ using AlibabaCloud::Sas::Model::DescribePropertyUserItemRequest;
|
||||
|
||||
DescribePropertyUserItemRequest::DescribePropertyUserItemRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribePropertyUserItem")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePropertyUserItemRequest::~DescribePropertyUserItemRequest()
|
||||
{}
|
||||
|
||||
int DescribePropertyUserItemRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserItemRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePropertyUserItemRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserItemRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribePropertyUserItemRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserItemRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribePropertyUserItemRequest::getUser()const
|
||||
{
|
||||
return user_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserItemRequest::setUser(const std::string& user)
|
||||
{
|
||||
user_ = user;
|
||||
setCoreParameter("User", user);
|
||||
}
|
||||
|
||||
bool DescribePropertyUserItemRequest::getForceFlush()const
|
||||
{
|
||||
return forceFlush_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserItemRequest::setForceFlush(bool forceFlush)
|
||||
{
|
||||
forceFlush_ = forceFlush;
|
||||
setCoreParameter("ForceFlush", forceFlush ? "true" : "false");
|
||||
}
|
||||
|
||||
int DescribePropertyUserItemRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserItemRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePropertyUserItemRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserItemRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribePropertyUserItemRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserItemRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribePropertyUserItemRequest::getUser()const
|
||||
{
|
||||
return user_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserItemRequest::setUser(const std::string& user)
|
||||
{
|
||||
user_ = user;
|
||||
setParameter("User", user);
|
||||
}
|
||||
|
||||
bool DescribePropertyUserItemRequest::getForceFlush()const
|
||||
{
|
||||
return forceFlush_;
|
||||
}
|
||||
|
||||
void DescribePropertyUserItemRequest::setForceFlush(bool forceFlush)
|
||||
{
|
||||
forceFlush_ = forceFlush;
|
||||
setParameter("ForceFlush", forceFlush ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -20,74 +20,87 @@ using AlibabaCloud::Sas::Model::DescribeRiskCheckItemResultRequest;
|
||||
|
||||
DescribeRiskCheckItemResultRequest::DescribeRiskCheckItemResultRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeRiskCheckItemResult")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRiskCheckItemResultRequest::~DescribeRiskCheckItemResultRequest()
|
||||
{}
|
||||
|
||||
long DescribeRiskCheckItemResultRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckItemResultRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeRiskCheckItemResultRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckItemResultRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribeRiskCheckItemResultRequest::getItemId()const
|
||||
{
|
||||
return itemId_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckItemResultRequest::setItemId(long itemId)
|
||||
{
|
||||
itemId_ = itemId;
|
||||
setCoreParameter("ItemId", std::to_string(itemId));
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckItemResultRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckItemResultRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeRiskCheckItemResultRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckItemResultRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckItemResultRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckItemResultRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
long DescribeRiskCheckItemResultRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckItemResultRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DescribeRiskCheckItemResultRequest::getItemId()const
|
||||
{
|
||||
return itemId_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckItemResultRequest::setItemId(long itemId)
|
||||
{
|
||||
itemId_ = itemId;
|
||||
setParameter("ItemId", std::to_string(itemId));
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckItemResultRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckItemResultRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeRiskCheckItemResultRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckItemResultRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckItemResultRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckItemResultRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int DescribeRiskCheckItemResultRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckItemResultRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckItemResultRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckItemResultRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeRiskCheckResultRequest;
|
||||
|
||||
DescribeRiskCheckResultRequest::DescribeRiskCheckResultRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeRiskCheckResult")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRiskCheckResultRequest::~DescribeRiskCheckResultRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeRiskCheckResultRequest::getResourceOwnerId()const
|
||||
void DescribeRiskCheckResultRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckResultRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeRiskCheckResultRequest::getSourceIp()const
|
||||
void DescribeRiskCheckResultRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeRiskCheckResultRequest::getPageSize()const
|
||||
@@ -55,7 +57,7 @@ int DescribeRiskCheckResultRequest::getPageSize()const
|
||||
void DescribeRiskCheckResultRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckResultRequest::getLang()const
|
||||
@@ -66,7 +68,18 @@ std::string DescribeRiskCheckResultRequest::getLang()const
|
||||
void DescribeRiskCheckResultRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckResultRequest::getAssetType()const
|
||||
{
|
||||
return assetType_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckResultRequest::setAssetType(const std::string& assetType)
|
||||
{
|
||||
assetType_ = assetType;
|
||||
setParameter("AssetType", assetType);
|
||||
}
|
||||
|
||||
long DescribeRiskCheckResultRequest::getGroupId()const
|
||||
@@ -77,7 +90,7 @@ long DescribeRiskCheckResultRequest::getGroupId()const
|
||||
void DescribeRiskCheckResultRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeRiskCheckResultRequest::getItemIds()const
|
||||
@@ -88,8 +101,9 @@ std::vector<std::string> DescribeRiskCheckResultRequest::getItemIds()const
|
||||
void DescribeRiskCheckResultRequest::setItemIds(const std::vector<std::string>& itemIds)
|
||||
{
|
||||
itemIds_ = itemIds;
|
||||
for(int i = 0; i!= itemIds.size(); i++)
|
||||
setCoreParameter("ItemIds."+ std::to_string(i), itemIds.at(i));
|
||||
for(int dep1 = 0; dep1!= itemIds.size(); dep1++) {
|
||||
setParameter("ItemIds."+ std::to_string(dep1), itemIds.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
int DescribeRiskCheckResultRequest::getCurrentPage()const
|
||||
@@ -100,7 +114,7 @@ int DescribeRiskCheckResultRequest::getCurrentPage()const
|
||||
void DescribeRiskCheckResultRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckResultRequest::getRiskLevel()const
|
||||
@@ -111,7 +125,18 @@ std::string DescribeRiskCheckResultRequest::getRiskLevel()const
|
||||
void DescribeRiskCheckResultRequest::setRiskLevel(const std::string& riskLevel)
|
||||
{
|
||||
riskLevel_ = riskLevel;
|
||||
setCoreParameter("RiskLevel", riskLevel);
|
||||
setParameter("RiskLevel", riskLevel);
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckResultRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeRiskCheckResultRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckResultRequest::getName()const
|
||||
@@ -122,7 +147,7 @@ std::string DescribeRiskCheckResultRequest::getName()const
|
||||
void DescribeRiskCheckResultRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckResultRequest::getStatus()const
|
||||
@@ -133,6 +158,6 @@ std::string DescribeRiskCheckResultRequest::getStatus()const
|
||||
void DescribeRiskCheckResultRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
@@ -65,6 +65,8 @@ void DescribeRiskCheckResultResult::parse(const std::string &payload)
|
||||
listObject.type = valueListRiskCheckResultForDisplay["Type"].asString();
|
||||
if(!valueListRiskCheckResultForDisplay["StartStatus"].isNull())
|
||||
listObject.startStatus = valueListRiskCheckResultForDisplay["StartStatus"].asString();
|
||||
if(!valueListRiskCheckResultForDisplay["RepairStatus"].isNull())
|
||||
listObject.repairStatus = valueListRiskCheckResultForDisplay["RepairStatus"].asString();
|
||||
if(!valueListRiskCheckResultForDisplay["RiskAssertType"].isNull())
|
||||
listObject.riskAssertType = valueListRiskCheckResultForDisplay["RiskAssertType"].asString();
|
||||
auto allRiskItemResourcesNode = allListNode["RiskItemResources"]["RiskItemResource"];
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeRiskCheckSummaryRequest;
|
||||
|
||||
DescribeRiskCheckSummaryRequest::DescribeRiskCheckSummaryRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeRiskCheckSummary")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRiskCheckSummaryRequest::~DescribeRiskCheckSummaryRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeRiskCheckSummaryRequest::getResourceOwnerId()const
|
||||
void DescribeRiskCheckSummaryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckSummaryRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeRiskCheckSummaryRequest::getSourceIp()const
|
||||
void DescribeRiskCheckSummaryRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeRiskCheckSummaryRequest::getLang()const
|
||||
@@ -55,6 +57,6 @@ std::string DescribeRiskCheckSummaryRequest::getLang()const
|
||||
void DescribeRiskCheckSummaryRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeRiskItemTypeRequest;
|
||||
|
||||
DescribeRiskItemTypeRequest::DescribeRiskItemTypeRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeRiskItemType")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRiskItemTypeRequest::~DescribeRiskItemTypeRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeRiskItemTypeRequest::getResourceOwnerId()const
|
||||
void DescribeRiskItemTypeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRiskItemTypeRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeRiskItemTypeRequest::getSourceIp()const
|
||||
void DescribeRiskItemTypeRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeRiskItemTypeRequest::getLang()const
|
||||
@@ -55,6 +57,6 @@ std::string DescribeRiskItemTypeRequest::getLang()const
|
||||
void DescribeRiskItemTypeRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
40
sas/src/model/DescribeSasAssetStatisticsColumnRequest.cc
Normal file
40
sas/src/model/DescribeSasAssetStatisticsColumnRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/DescribeSasAssetStatisticsColumnRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeSasAssetStatisticsColumnRequest;
|
||||
|
||||
DescribeSasAssetStatisticsColumnRequest::DescribeSasAssetStatisticsColumnRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeSasAssetStatisticsColumn")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSasAssetStatisticsColumnRequest::~DescribeSasAssetStatisticsColumnRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSasAssetStatisticsColumnRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeSasAssetStatisticsColumnRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
51
sas/src/model/DescribeSasAssetStatisticsColumnResult.cc
Normal file
51
sas/src/model/DescribeSasAssetStatisticsColumnResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSasAssetStatisticsColumnResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeSasAssetStatisticsColumnResult::DescribeSasAssetStatisticsColumnResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSasAssetStatisticsColumnResult::DescribeSasAssetStatisticsColumnResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSasAssetStatisticsColumnResult::~DescribeSasAssetStatisticsColumnResult()
|
||||
{}
|
||||
|
||||
void DescribeSasAssetStatisticsColumnResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["StatisticsColumn"].isNull())
|
||||
statisticsColumn_ = value["StatisticsColumn"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSasAssetStatisticsColumnResult::getStatisticsColumn()const
|
||||
{
|
||||
return statisticsColumn_;
|
||||
}
|
||||
|
||||
62
sas/src/model/DescribeSearchConditionRequest.cc
Normal file
62
sas/src/model/DescribeSearchConditionRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSearchConditionRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeSearchConditionRequest;
|
||||
|
||||
DescribeSearchConditionRequest::DescribeSearchConditionRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeSearchCondition")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSearchConditionRequest::~DescribeSearchConditionRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSearchConditionRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribeSearchConditionRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DescribeSearchConditionRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeSearchConditionRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeSearchConditionRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeSearchConditionRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
63
sas/src/model/DescribeSearchConditionResult.cc
Normal file
63
sas/src/model/DescribeSearchConditionResult.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSearchConditionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeSearchConditionResult::DescribeSearchConditionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSearchConditionResult::DescribeSearchConditionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSearchConditionResult::~DescribeSearchConditionResult()
|
||||
{}
|
||||
|
||||
void DescribeSearchConditionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allConditionListNode = value["ConditionList"]["Condition"];
|
||||
for (auto valueConditionListCondition : allConditionListNode)
|
||||
{
|
||||
Condition conditionListObject;
|
||||
if(!valueConditionListCondition["Name"].isNull())
|
||||
conditionListObject.name = valueConditionListCondition["Name"].asString();
|
||||
if(!valueConditionListCondition["FilterConditions"].isNull())
|
||||
conditionListObject.filterConditions = valueConditionListCondition["FilterConditions"].asString();
|
||||
if(!valueConditionListCondition["NameKey"].isNull())
|
||||
conditionListObject.nameKey = valueConditionListCondition["NameKey"].asString();
|
||||
if(!valueConditionListCondition["ConditionType"].isNull())
|
||||
conditionListObject.conditionType = valueConditionListCondition["ConditionType"].asString();
|
||||
conditionList_.push_back(conditionListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeSearchConditionResult::Condition> DescribeSearchConditionResult::getConditionList()const
|
||||
{
|
||||
return conditionList_;
|
||||
}
|
||||
|
||||
51
sas/src/model/DescribeSecureSuggestionRequest.cc
Normal file
51
sas/src/model/DescribeSecureSuggestionRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSecureSuggestionRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeSecureSuggestionRequest;
|
||||
|
||||
DescribeSecureSuggestionRequest::DescribeSecureSuggestionRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeSecureSuggestion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSecureSuggestionRequest::~DescribeSecureSuggestionRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSecureSuggestionRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeSecureSuggestionRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeSecureSuggestionRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeSecureSuggestionRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
78
sas/src/model/DescribeSecureSuggestionResult.cc
Normal file
78
sas/src/model/DescribeSecureSuggestionResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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/DescribeSecureSuggestionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeSecureSuggestionResult::DescribeSecureSuggestionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSecureSuggestionResult::DescribeSecureSuggestionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSecureSuggestionResult::~DescribeSecureSuggestionResult()
|
||||
{}
|
||||
|
||||
void DescribeSecureSuggestionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSuggestionsNode = value["Suggestions"]["Suggestion"];
|
||||
for (auto valueSuggestionsSuggestion : allSuggestionsNode)
|
||||
{
|
||||
Suggestion suggestionsObject;
|
||||
if(!valueSuggestionsSuggestion["SuggestType"].isNull())
|
||||
suggestionsObject.suggestType = valueSuggestionsSuggestion["SuggestType"].asString();
|
||||
if(!valueSuggestionsSuggestion["Points"].isNull())
|
||||
suggestionsObject.points = std::stoi(valueSuggestionsSuggestion["Points"].asString());
|
||||
auto allDetailNode = allSuggestionsNode["Detail"]["DetailItem"];
|
||||
for (auto allSuggestionsNodeDetailDetailItem : allDetailNode)
|
||||
{
|
||||
Suggestion::DetailItem detailObject;
|
||||
if(!allSuggestionsNodeDetailDetailItem["Description"].isNull())
|
||||
detailObject.description = allSuggestionsNodeDetailDetailItem["Description"].asString();
|
||||
if(!allSuggestionsNodeDetailDetailItem["SubType"].isNull())
|
||||
detailObject.subType = allSuggestionsNodeDetailDetailItem["SubType"].asString();
|
||||
if(!allSuggestionsNodeDetailDetailItem["Title"].isNull())
|
||||
detailObject.title = allSuggestionsNodeDetailDetailItem["Title"].asString();
|
||||
suggestionsObject.detail.push_back(detailObject);
|
||||
}
|
||||
suggestions_.push_back(suggestionsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeSecureSuggestionResult::Suggestion> DescribeSecureSuggestionResult::getSuggestions()const
|
||||
{
|
||||
return suggestions_;
|
||||
}
|
||||
|
||||
int DescribeSecureSuggestionResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeSecurityCheckScheduleConfigRequest;
|
||||
|
||||
DescribeSecurityCheckScheduleConfigRequest::DescribeSecurityCheckScheduleConfigRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeSecurityCheckScheduleConfig")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSecurityCheckScheduleConfigRequest::~DescribeSecurityCheckScheduleConfigRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeSecurityCheckScheduleConfigRequest::getResourceOwnerId()const
|
||||
void DescribeSecurityCheckScheduleConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSecurityCheckScheduleConfigRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeSecurityCheckScheduleConfigRequest::getSourceIp()const
|
||||
void DescribeSecurityCheckScheduleConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeSecurityCheckScheduleConfigRequest::getLang()const
|
||||
@@ -55,6 +57,6 @@ std::string DescribeSecurityCheckScheduleConfigRequest::getLang()const
|
||||
void DescribeSecurityCheckScheduleConfigRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
62
sas/src/model/DescribeSecurityEventOperationsRequest.cc
Normal file
62
sas/src/model/DescribeSecurityEventOperationsRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSecurityEventOperationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeSecurityEventOperationsRequest;
|
||||
|
||||
DescribeSecurityEventOperationsRequest::DescribeSecurityEventOperationsRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeSecurityEventOperations")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSecurityEventOperationsRequest::~DescribeSecurityEventOperationsRequest()
|
||||
{}
|
||||
|
||||
long DescribeSecurityEventOperationsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSecurityEventOperationsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSecurityEventOperationsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeSecurityEventOperationsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
long DescribeSecurityEventOperationsRequest::getSecurityEventId()const
|
||||
{
|
||||
return securityEventId_;
|
||||
}
|
||||
|
||||
void DescribeSecurityEventOperationsRequest::setSecurityEventId(long securityEventId)
|
||||
{
|
||||
securityEventId_ = securityEventId;
|
||||
setParameter("SecurityEventId", std::to_string(securityEventId));
|
||||
}
|
||||
|
||||
61
sas/src/model/DescribeSecurityEventOperationsResult.cc
Normal file
61
sas/src/model/DescribeSecurityEventOperationsResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSecurityEventOperationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeSecurityEventOperationsResult::DescribeSecurityEventOperationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSecurityEventOperationsResult::DescribeSecurityEventOperationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSecurityEventOperationsResult::~DescribeSecurityEventOperationsResult()
|
||||
{}
|
||||
|
||||
void DescribeSecurityEventOperationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSecurityEventOperationsResponseNode = value["SecurityEventOperationsResponse"]["SecurityEventOperation"];
|
||||
for (auto valueSecurityEventOperationsResponseSecurityEventOperation : allSecurityEventOperationsResponseNode)
|
||||
{
|
||||
SecurityEventOperation securityEventOperationsResponseObject;
|
||||
if(!valueSecurityEventOperationsResponseSecurityEventOperation["OperationCode"].isNull())
|
||||
securityEventOperationsResponseObject.operationCode = valueSecurityEventOperationsResponseSecurityEventOperation["OperationCode"].asString();
|
||||
if(!valueSecurityEventOperationsResponseSecurityEventOperation["OperationParams"].isNull())
|
||||
securityEventOperationsResponseObject.operationParams = valueSecurityEventOperationsResponseSecurityEventOperation["OperationParams"].asString();
|
||||
if(!valueSecurityEventOperationsResponseSecurityEventOperation["UserCanOperate"].isNull())
|
||||
securityEventOperationsResponseObject.userCanOperate = valueSecurityEventOperationsResponseSecurityEventOperation["UserCanOperate"].asString() == "true";
|
||||
securityEventOperationsResponse_.push_back(securityEventOperationsResponseObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeSecurityEventOperationsResult::SecurityEventOperation> DescribeSecurityEventOperationsResult::getSecurityEventOperationsResponse()const
|
||||
{
|
||||
return securityEventOperationsResponse_;
|
||||
}
|
||||
|
||||
51
sas/src/model/DescribeSecurityStatInfoRequest.cc
Normal file
51
sas/src/model/DescribeSecurityStatInfoRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSecurityStatInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeSecurityStatInfoRequest;
|
||||
|
||||
DescribeSecurityStatInfoRequest::DescribeSecurityStatInfoRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeSecurityStatInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSecurityStatInfoRequest::~DescribeSecurityStatInfoRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSecurityStatInfoRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeSecurityStatInfoRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeSecurityStatInfoRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeSecurityStatInfoRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
161
sas/src/model/DescribeSecurityStatInfoResult.cc
Normal file
161
sas/src/model/DescribeSecurityStatInfoResult.cc
Normal file
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* 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/DescribeSecurityStatInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeSecurityStatInfoResult::DescribeSecurityStatInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSecurityStatInfoResult::DescribeSecurityStatInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSecurityStatInfoResult::~DescribeSecurityStatInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeSecurityStatInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto securityEventNode = value["SecurityEvent"];
|
||||
if(!securityEventNode["SeriousCount"].isNull())
|
||||
securityEvent_.seriousCount = std::stoi(securityEventNode["SeriousCount"].asString());
|
||||
if(!securityEventNode["SuspiciousCount"].isNull())
|
||||
securityEvent_.suspiciousCount = std::stoi(securityEventNode["SuspiciousCount"].asString());
|
||||
if(!securityEventNode["RemindCount"].isNull())
|
||||
securityEvent_.remindCount = std::stoi(securityEventNode["RemindCount"].asString());
|
||||
if(!securityEventNode["TotalCount"].isNull())
|
||||
securityEvent_.totalCount = std::stoi(securityEventNode["TotalCount"].asString());
|
||||
auto allDateArray = securityEventNode["DateArray"]["StringItem"];
|
||||
for (auto value : allDateArray)
|
||||
securityEvent_.dateArray.push_back(value.asString());
|
||||
auto allValueArray = securityEventNode["ValueArray"]["IntegerItem"];
|
||||
for (auto value : allValueArray)
|
||||
securityEvent_.valueArray.push_back(value.asString());
|
||||
auto allLevelsOn = securityEventNode["LevelsOn"]["StringItem"];
|
||||
for (auto value : allLevelsOn)
|
||||
securityEvent_.levelsOn.push_back(value.asString());
|
||||
auto allSeriousList = securityEventNode["SeriousList"]["IntegerItem"];
|
||||
for (auto value : allSeriousList)
|
||||
securityEvent_.seriousList.push_back(value.asString());
|
||||
auto allSuspiciousList = securityEventNode["SuspiciousList"]["IntegerItem"];
|
||||
for (auto value : allSuspiciousList)
|
||||
securityEvent_.suspiciousList.push_back(value.asString());
|
||||
auto allRemindList = securityEventNode["RemindList"]["IntegerItem"];
|
||||
for (auto value : allRemindList)
|
||||
securityEvent_.remindList.push_back(value.asString());
|
||||
auto attackEventNode = value["AttackEvent"];
|
||||
if(!attackEventNode["TotalCount"].isNull())
|
||||
attackEvent_.totalCount = std::stoi(attackEventNode["TotalCount"].asString());
|
||||
auto allDateArray1 = attackEventNode["DateArray"]["StringItem"];
|
||||
for (auto value : allDateArray1)
|
||||
attackEvent_.dateArray1.push_back(value.asString());
|
||||
auto allValueArray2 = attackEventNode["ValueArray"]["IntegerItem"];
|
||||
for (auto value : allValueArray2)
|
||||
attackEvent_.valueArray2.push_back(value.asString());
|
||||
auto healthCheckNode = value["HealthCheck"];
|
||||
if(!healthCheckNode["MediumCount"].isNull())
|
||||
healthCheck_.mediumCount = std::stoi(healthCheckNode["MediumCount"].asString());
|
||||
if(!healthCheckNode["HighCount"].isNull())
|
||||
healthCheck_.highCount = std::stoi(healthCheckNode["HighCount"].asString());
|
||||
if(!healthCheckNode["LowCount"].isNull())
|
||||
healthCheck_.lowCount = std::stoi(healthCheckNode["LowCount"].asString());
|
||||
if(!healthCheckNode["TotalCount"].isNull())
|
||||
healthCheck_.totalCount = std::stoi(healthCheckNode["TotalCount"].asString());
|
||||
auto allDateArray3 = healthCheckNode["DateArray"]["StringItem"];
|
||||
for (auto value : allDateArray3)
|
||||
healthCheck_.dateArray3.push_back(value.asString());
|
||||
auto allValueArray4 = healthCheckNode["ValueArray"]["IntegerItem"];
|
||||
for (auto value : allValueArray4)
|
||||
healthCheck_.valueArray4.push_back(value.asString());
|
||||
auto allLevelsOn5 = healthCheckNode["LevelsOn"]["StringItem"];
|
||||
for (auto value : allLevelsOn5)
|
||||
healthCheck_.levelsOn5.push_back(value.asString());
|
||||
auto allHighList = healthCheckNode["HighList"]["IntegerItem"];
|
||||
for (auto value : allHighList)
|
||||
healthCheck_.highList.push_back(value.asString());
|
||||
auto allMediumList = healthCheckNode["MediumList"]["IntegerItem"];
|
||||
for (auto value : allMediumList)
|
||||
healthCheck_.mediumList.push_back(value.asString());
|
||||
auto allLowList = healthCheckNode["LowList"]["IntegerItem"];
|
||||
for (auto value : allLowList)
|
||||
healthCheck_.lowList.push_back(value.asString());
|
||||
auto vulnerabilityNode = value["Vulnerability"];
|
||||
if(!vulnerabilityNode["NntfCount"].isNull())
|
||||
vulnerability_.nntfCount = std::stoi(vulnerabilityNode["NntfCount"].asString());
|
||||
if(!vulnerabilityNode["LaterCount"].isNull())
|
||||
vulnerability_.laterCount = std::stoi(vulnerabilityNode["LaterCount"].asString());
|
||||
if(!vulnerabilityNode["AsapCount"].isNull())
|
||||
vulnerability_.asapCount = std::stoi(vulnerabilityNode["AsapCount"].asString());
|
||||
if(!vulnerabilityNode["TotalCount"].isNull())
|
||||
vulnerability_.totalCount = std::stoi(vulnerabilityNode["TotalCount"].asString());
|
||||
auto allDateArray6 = vulnerabilityNode["DateArray"]["StringItem"];
|
||||
for (auto value : allDateArray6)
|
||||
vulnerability_.dateArray6.push_back(value.asString());
|
||||
auto allValueArray7 = vulnerabilityNode["ValueArray"]["IntegerItem"];
|
||||
for (auto value : allValueArray7)
|
||||
vulnerability_.valueArray7.push_back(value.asString());
|
||||
auto allLevelsOn8 = vulnerabilityNode["LevelsOn"]["StringItem"];
|
||||
for (auto value : allLevelsOn8)
|
||||
vulnerability_.levelsOn8.push_back(value.asString());
|
||||
auto allNntfList = vulnerabilityNode["NntfList"]["IntegerItem"];
|
||||
for (auto value : allNntfList)
|
||||
vulnerability_.nntfList.push_back(value.asString());
|
||||
auto allAsapList = vulnerabilityNode["AsapList"]["IntegerItem"];
|
||||
for (auto value : allAsapList)
|
||||
vulnerability_.asapList.push_back(value.asString());
|
||||
auto allLaterList = vulnerabilityNode["LaterList"]["IntegerItem"];
|
||||
for (auto value : allLaterList)
|
||||
vulnerability_.laterList.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
DescribeSecurityStatInfoResult::SecurityEvent DescribeSecurityStatInfoResult::getSecurityEvent()const
|
||||
{
|
||||
return securityEvent_;
|
||||
}
|
||||
|
||||
DescribeSecurityStatInfoResult::HealthCheck DescribeSecurityStatInfoResult::getHealthCheck()const
|
||||
{
|
||||
return healthCheck_;
|
||||
}
|
||||
|
||||
DescribeSecurityStatInfoResult::Vulnerability DescribeSecurityStatInfoResult::getVulnerability()const
|
||||
{
|
||||
return vulnerability_;
|
||||
}
|
||||
|
||||
DescribeSecurityStatInfoResult::AttackEvent DescribeSecurityStatInfoResult::getAttackEvent()const
|
||||
{
|
||||
return attackEvent_;
|
||||
}
|
||||
|
||||
bool DescribeSecurityStatInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
sas/src/model/DescribeSimilarSecurityEventsRequest.cc
Normal file
95
sas/src/model/DescribeSimilarSecurityEventsRequest.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/DescribeSimilarSecurityEventsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeSimilarSecurityEventsRequest;
|
||||
|
||||
DescribeSimilarSecurityEventsRequest::DescribeSimilarSecurityEventsRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeSimilarSecurityEvents")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSimilarSecurityEventsRequest::~DescribeSimilarSecurityEventsRequest()
|
||||
{}
|
||||
|
||||
long DescribeSimilarSecurityEventsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSimilarSecurityEventsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeSimilarSecurityEventsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeSimilarSecurityEventsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeSimilarSecurityEventsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeSimilarSecurityEventsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeSimilarSecurityEventsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeSimilarSecurityEventsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeSimilarSecurityEventsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeSimilarSecurityEventsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
long DescribeSimilarSecurityEventsRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DescribeSimilarSecurityEventsRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
81
sas/src/model/DescribeSimilarSecurityEventsResult.cc
Normal file
81
sas/src/model/DescribeSimilarSecurityEventsResult.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSimilarSecurityEventsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeSimilarSecurityEventsResult::DescribeSimilarSecurityEventsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSimilarSecurityEventsResult::DescribeSimilarSecurityEventsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSimilarSecurityEventsResult::~DescribeSimilarSecurityEventsResult()
|
||||
{}
|
||||
|
||||
void DescribeSimilarSecurityEventsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSecurityEventsResponseNode = value["SecurityEventsResponse"]["SimpleSecurityEvent"];
|
||||
for (auto valueSecurityEventsResponseSimpleSecurityEvent : allSecurityEventsResponseNode)
|
||||
{
|
||||
SimpleSecurityEvent securityEventsResponseObject;
|
||||
if(!valueSecurityEventsResponseSimpleSecurityEvent["SecurityEventId"].isNull())
|
||||
securityEventsResponseObject.securityEventId = std::stol(valueSecurityEventsResponseSimpleSecurityEvent["SecurityEventId"].asString());
|
||||
if(!valueSecurityEventsResponseSimpleSecurityEvent["Uuid"].isNull())
|
||||
securityEventsResponseObject.uuid = valueSecurityEventsResponseSimpleSecurityEvent["Uuid"].asString();
|
||||
if(!valueSecurityEventsResponseSimpleSecurityEvent["EventType"].isNull())
|
||||
securityEventsResponseObject.eventType = valueSecurityEventsResponseSimpleSecurityEvent["EventType"].asString();
|
||||
if(!valueSecurityEventsResponseSimpleSecurityEvent["EventName"].isNull())
|
||||
securityEventsResponseObject.eventName = valueSecurityEventsResponseSimpleSecurityEvent["EventName"].asString();
|
||||
if(!valueSecurityEventsResponseSimpleSecurityEvent["OccurrenceTime"].isNull())
|
||||
securityEventsResponseObject.occurrenceTime = std::stol(valueSecurityEventsResponseSimpleSecurityEvent["OccurrenceTime"].asString());
|
||||
if(!valueSecurityEventsResponseSimpleSecurityEvent["LastTime"].isNull())
|
||||
securityEventsResponseObject.lastTime = std::stol(valueSecurityEventsResponseSimpleSecurityEvent["LastTime"].asString());
|
||||
securityEventsResponse_.push_back(securityEventsResponseObject);
|
||||
}
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
DescribeSimilarSecurityEventsResult::PageInfo DescribeSimilarSecurityEventsResult::getPageInfo()const
|
||||
{
|
||||
return pageInfo_;
|
||||
}
|
||||
|
||||
std::vector<DescribeSimilarSecurityEventsResult::SimpleSecurityEvent> DescribeSimilarSecurityEventsResult::getSecurityEventsResponse()const
|
||||
{
|
||||
return securityEventsResponse_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeStrategyExecDetailRequest;
|
||||
|
||||
DescribeStrategyExecDetailRequest::DescribeStrategyExecDetailRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeStrategyExecDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeStrategyExecDetailRequest::~DescribeStrategyExecDetailRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeStrategyExecDetailRequest::getSourceIp()const
|
||||
void DescribeStrategyExecDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeStrategyExecDetailRequest::getStrategyId()const
|
||||
@@ -44,6 +46,6 @@ int DescribeStrategyExecDetailRequest::getStrategyId()const
|
||||
void DescribeStrategyExecDetailRequest::setStrategyId(int strategyId)
|
||||
{
|
||||
strategyId_ = strategyId;
|
||||
setCoreParameter("StrategyId", std::to_string(strategyId));
|
||||
setParameter("StrategyId", std::to_string(strategyId));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeStratetyRequest;
|
||||
|
||||
DescribeStratetyRequest::DescribeStratetyRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeStratety")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeStratetyRequest::~DescribeStratetyRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeStratetyRequest::getSourceIp()const
|
||||
void DescribeStratetyRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeStratetyRequest::getStrategyIds()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeStratetyRequest::getStrategyIds()const
|
||||
void DescribeStratetyRequest::setStrategyIds(const std::string& strategyIds)
|
||||
{
|
||||
strategyIds_ = strategyIds;
|
||||
setCoreParameter("StrategyIds", strategyIds);
|
||||
setParameter("StrategyIds", strategyIds);
|
||||
}
|
||||
|
||||
std::string DescribeStratetyRequest::getLang()const
|
||||
@@ -55,6 +57,6 @@ std::string DescribeStratetyRequest::getLang()const
|
||||
void DescribeStratetyRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
51
sas/src/model/DescribeSummaryInfoRequest.cc
Normal file
51
sas/src/model/DescribeSummaryInfoRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSummaryInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeSummaryInfoRequest;
|
||||
|
||||
DescribeSummaryInfoRequest::DescribeSummaryInfoRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeSummaryInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSummaryInfoRequest::~DescribeSummaryInfoRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSummaryInfoRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeSummaryInfoRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeSummaryInfoRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeSummaryInfoRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
72
sas/src/model/DescribeSummaryInfoResult.cc
Normal file
72
sas/src/model/DescribeSummaryInfoResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSummaryInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeSummaryInfoResult::DescribeSummaryInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSummaryInfoResult::DescribeSummaryInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSummaryInfoResult::~DescribeSummaryInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeSummaryInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AegisClientOfflineCount"].isNull())
|
||||
aegisClientOfflineCount_ = std::stoi(value["AegisClientOfflineCount"].asString());
|
||||
if(!value["SecurityScore"].isNull())
|
||||
securityScore_ = std::stoi(value["SecurityScore"].asString());
|
||||
if(!value["AegisClientOnlineCount"].isNull())
|
||||
aegisClientOnlineCount_ = std::stoi(value["AegisClientOnlineCount"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
int DescribeSummaryInfoResult::getAegisClientOnlineCount()const
|
||||
{
|
||||
return aegisClientOnlineCount_;
|
||||
}
|
||||
|
||||
int DescribeSummaryInfoResult::getAegisClientOfflineCount()const
|
||||
{
|
||||
return aegisClientOfflineCount_;
|
||||
}
|
||||
|
||||
int DescribeSummaryInfoResult::getSecurityScore()const
|
||||
{
|
||||
return securityScore_;
|
||||
}
|
||||
|
||||
bool DescribeSummaryInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeSuspEventDetailRequest;
|
||||
|
||||
DescribeSuspEventDetailRequest::DescribeSuspEventDetailRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeSuspEventDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSuspEventDetailRequest::~DescribeSuspEventDetailRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int DescribeSuspEventDetailRequest::getSuspiciousEventId()const
|
||||
void DescribeSuspEventDetailRequest::setSuspiciousEventId(int suspiciousEventId)
|
||||
{
|
||||
suspiciousEventId_ = suspiciousEventId;
|
||||
setCoreParameter("SuspiciousEventId", std::to_string(suspiciousEventId));
|
||||
setParameter("SuspiciousEventId", std::to_string(suspiciousEventId));
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeSuspEventDetailRequest::getSourceIp()const
|
||||
void DescribeSuspEventDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailRequest::getFrom()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeSuspEventDetailRequest::getFrom()const
|
||||
void DescribeSuspEventDetailRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setCoreParameter("From", from);
|
||||
setParameter("From", from);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailRequest::getLang()const
|
||||
@@ -66,6 +68,6 @@ std::string DescribeSuspEventDetailRequest::getLang()const
|
||||
void DescribeSuspEventDetailRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeSuspEventsRequest;
|
||||
|
||||
DescribeSuspEventsRequest::DescribeSuspEventsRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeSuspEvents")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSuspEventsRequest::~DescribeSuspEventsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeSuspEventsRequest::getRemark()const
|
||||
void DescribeSuspEventsRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setCoreParameter("Remark", remark);
|
||||
setParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeSuspEventsRequest::getSourceIp()const
|
||||
void DescribeSuspEventsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getPageSize()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeSuspEventsRequest::getPageSize()const
|
||||
void DescribeSuspEventsRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", pageSize);
|
||||
setParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getFrom()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeSuspEventsRequest::getFrom()const
|
||||
void DescribeSuspEventsRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setCoreParameter("From", from);
|
||||
setParameter("From", from);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getLang()const
|
||||
@@ -77,7 +79,7 @@ std::string DescribeSuspEventsRequest::getLang()const
|
||||
void DescribeSuspEventsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getAlarmUniqueInfo()const
|
||||
@@ -88,7 +90,7 @@ std::string DescribeSuspEventsRequest::getAlarmUniqueInfo()const
|
||||
void DescribeSuspEventsRequest::setAlarmUniqueInfo(const std::string& alarmUniqueInfo)
|
||||
{
|
||||
alarmUniqueInfo_ = alarmUniqueInfo;
|
||||
setCoreParameter("AlarmUniqueInfo", alarmUniqueInfo);
|
||||
setParameter("AlarmUniqueInfo", alarmUniqueInfo);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getDealed()const
|
||||
@@ -99,7 +101,7 @@ std::string DescribeSuspEventsRequest::getDealed()const
|
||||
void DescribeSuspEventsRequest::setDealed(const std::string& dealed)
|
||||
{
|
||||
dealed_ = dealed;
|
||||
setCoreParameter("Dealed", dealed);
|
||||
setParameter("Dealed", dealed);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getCurrentPage()const
|
||||
@@ -110,7 +112,7 @@ std::string DescribeSuspEventsRequest::getCurrentPage()const
|
||||
void DescribeSuspEventsRequest::setCurrentPage(const std::string& currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", currentPage);
|
||||
setParameter("CurrentPage", currentPage);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getName()const
|
||||
@@ -121,7 +123,7 @@ std::string DescribeSuspEventsRequest::getName()const
|
||||
void DescribeSuspEventsRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getLevels()const
|
||||
@@ -132,7 +134,7 @@ std::string DescribeSuspEventsRequest::getLevels()const
|
||||
void DescribeSuspEventsRequest::setLevels(const std::string& levels)
|
||||
{
|
||||
levels_ = levels;
|
||||
setCoreParameter("Levels", levels);
|
||||
setParameter("Levels", levels);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getParentEventTypes()const
|
||||
@@ -143,6 +145,6 @@ std::string DescribeSuspEventsRequest::getParentEventTypes()const
|
||||
void DescribeSuspEventsRequest::setParentEventTypes(const std::string& parentEventTypes)
|
||||
{
|
||||
parentEventTypes_ = parentEventTypes;
|
||||
setCoreParameter("ParentEventTypes", parentEventTypes);
|
||||
setParameter("ParentEventTypes", parentEventTypes);
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +83,8 @@ void DescribeSuspEventsResult::parse(const std::string &payload)
|
||||
suspEventsObject.alarmEventName = valueSuspEventsWarningSummary["AlarmEventName"].asString();
|
||||
if(!valueSuspEventsWarningSummary["AlarmUniqueInfo"].isNull())
|
||||
suspEventsObject.alarmUniqueInfo = valueSuspEventsWarningSummary["AlarmUniqueInfo"].asString();
|
||||
if(!valueSuspEventsWarningSummary["Advanced"].isNull())
|
||||
suspEventsObject.advanced = valueSuspEventsWarningSummary["Advanced"].asString() == "true";
|
||||
suspEvents_.push_back(suspEventsObject);
|
||||
}
|
||||
if(!value["Count"].isNull())
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Sas::Model::DescribeUserBaselineAuthorizationRequest;
|
||||
|
||||
DescribeUserBaselineAuthorizationRequest::DescribeUserBaselineAuthorizationRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeUserBaselineAuthorization")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeUserBaselineAuthorizationRequest::~DescribeUserBaselineAuthorizationRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeUserBaselineAuthorizationRequest::getResourceOwnerId()const
|
||||
void DescribeUserBaselineAuthorizationRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeUserBaselineAuthorizationRequest::getSourceIp()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeUserBaselineAuthorizationRequest::getSourceIp()const
|
||||
void DescribeUserBaselineAuthorizationRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeUserBaselineAuthorizationRequest::getLang()const
|
||||
@@ -55,6 +57,6 @@ std::string DescribeUserBaselineAuthorizationRequest::getLang()const
|
||||
void DescribeUserBaselineAuthorizationRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ DescribeUserBaselineAuthorizationResult::~DescribeUserBaselineAuthorizationResul
|
||||
|
||||
void DescribeUserBaselineAuthorizationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto userBaselineAuthorizationNode = value["UserBaselineAuthorization"];
|
||||
if(!userBaselineAuthorizationNode["Status"].isNull())
|
||||
|
||||
@@ -20,41 +20,43 @@ using AlibabaCloud::Sas::Model::DescribeUserLayoutAuthorizationRequest;
|
||||
|
||||
DescribeUserLayoutAuthorizationRequest::DescribeUserLayoutAuthorizationRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeUserLayoutAuthorization")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeUserLayoutAuthorizationRequest::~DescribeUserLayoutAuthorizationRequest()
|
||||
{}
|
||||
|
||||
long DescribeUserLayoutAuthorizationRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeUserLayoutAuthorizationRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeUserLayoutAuthorizationRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeUserLayoutAuthorizationRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeUserLayoutAuthorizationRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeUserLayoutAuthorizationRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
long DescribeUserLayoutAuthorizationRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeUserLayoutAuthorizationRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeUserLayoutAuthorizationRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeUserLayoutAuthorizationRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeUserLayoutAuthorizationRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeUserLayoutAuthorizationRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
51
sas/src/model/DescribeVolDingdingMessageRequest.cc
Normal file
51
sas/src/model/DescribeVolDingdingMessageRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeVolDingdingMessageRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeVolDingdingMessageRequest;
|
||||
|
||||
DescribeVolDingdingMessageRequest::DescribeVolDingdingMessageRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeVolDingdingMessage")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVolDingdingMessageRequest::~DescribeVolDingdingMessageRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVolDingdingMessageRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeVolDingdingMessageRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeVolDingdingMessageRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeVolDingdingMessageRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
51
sas/src/model/DescribeVolDingdingMessageResult.cc
Normal file
51
sas/src/model/DescribeVolDingdingMessageResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeVolDingdingMessageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeVolDingdingMessageResult::DescribeVolDingdingMessageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVolDingdingMessageResult::DescribeVolDingdingMessageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVolDingdingMessageResult::~DescribeVolDingdingMessageResult()
|
||||
{}
|
||||
|
||||
void DescribeVolDingdingMessageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DingdingUrl"].isNull())
|
||||
dingdingUrl_ = value["DingdingUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeVolDingdingMessageResult::getDingdingUrl()const
|
||||
{
|
||||
return dingdingUrl_;
|
||||
}
|
||||
|
||||
40
sas/src/model/DescribeVpcListRequest.cc
Normal file
40
sas/src/model/DescribeVpcListRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/DescribeVpcListRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeVpcListRequest;
|
||||
|
||||
DescribeVpcListRequest::DescribeVpcListRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeVpcList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVpcListRequest::~DescribeVpcListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVpcListRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeVpcListRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user