PatchBaseline Support Tags.
This commit is contained in:
@@ -25,6 +25,17 @@ CreatePatchBaselineRequest::CreatePatchBaselineRequest()
|
||||
|
||||
CreatePatchBaselineRequest::~CreatePatchBaselineRequest() {}
|
||||
|
||||
std::vector<CreatePatchBaselineRequest::std::string> CreatePatchBaselineRequest::getSources() const {
|
||||
return sources_;
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setSources(const std::vector<CreatePatchBaselineRequest::std::string> &sources) {
|
||||
sources_ = sources;
|
||||
for(int dep1 = 0; dep1 != sources.size(); dep1++) {
|
||||
setParameter(std::string("Sources") + "." + std::to_string(dep1 + 1), sources[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
@@ -52,6 +63,45 @@ void CreatePatchBaselineRequest::setDescription(const std::string &description)
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getRejectedPatchesAction() const {
|
||||
return rejectedPatchesAction_;
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setRejectedPatchesAction(const std::string &rejectedPatchesAction) {
|
||||
rejectedPatchesAction_ = rejectedPatchesAction;
|
||||
setParameter(std::string("RejectedPatchesAction"), rejectedPatchesAction);
|
||||
}
|
||||
|
||||
bool CreatePatchBaselineRequest::getApprovedPatchesEnableNonSecurity() const {
|
||||
return approvedPatchesEnableNonSecurity_;
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setApprovedPatchesEnableNonSecurity(bool approvedPatchesEnableNonSecurity) {
|
||||
approvedPatchesEnableNonSecurity_ = approvedPatchesEnableNonSecurity;
|
||||
setParameter(std::string("ApprovedPatchesEnableNonSecurity"), approvedPatchesEnableNonSecurity ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<CreatePatchBaselineRequest::Tags> CreatePatchBaselineRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setTags(const std::vector<CreatePatchBaselineRequest::Tags> &tags) {
|
||||
tags_ = tags;
|
||||
for(int dep1 = 0; dep1 != tags.size(); dep1++) {
|
||||
setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".Value", tags[dep1].value);
|
||||
setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".Key", tags[dep1].key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getOperationSystem() const {
|
||||
return operationSystem_;
|
||||
}
|
||||
@@ -72,24 +122,6 @@ void CreatePatchBaselineRequest::setRejectedPatches(const std::vector<CreatePatc
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getRejectedPatchesAction() const {
|
||||
return rejectedPatchesAction_;
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setRejectedPatchesAction(const std::string &rejectedPatchesAction) {
|
||||
rejectedPatchesAction_ = rejectedPatchesAction;
|
||||
setParameter(std::string("RejectedPatchesAction"), rejectedPatchesAction);
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
@@ -99,3 +131,14 @@ void CreatePatchBaselineRequest::setName(const std::string &name) {
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::vector<CreatePatchBaselineRequest::std::string> CreatePatchBaselineRequest::getApprovedPatches() const {
|
||||
return approvedPatches_;
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setApprovedPatches(const std::vector<CreatePatchBaselineRequest::std::string> &approvedPatches) {
|
||||
approvedPatches_ = approvedPatches;
|
||||
for(int dep1 = 0; dep1 != approvedPatches.size(); dep1++) {
|
||||
setParameter(std::string("ApprovedPatches") + "." + std::to_string(dep1 + 1), approvedPatches[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -62,9 +62,27 @@ void CreatePatchBaselineResult::parse(const std::string &payload)
|
||||
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
|
||||
if(!patchBaselineNode["RejectedPatchesAction"].isNull())
|
||||
patchBaseline_.rejectedPatchesAction = patchBaselineNode["RejectedPatchesAction"].asString();
|
||||
if(!patchBaselineNode["ApprovedPatchesEnableNonSecurity"].isNull())
|
||||
patchBaseline_.approvedPatchesEnableNonSecurity = patchBaselineNode["ApprovedPatchesEnableNonSecurity"].asString() == "true";
|
||||
auto allTagsNode = patchBaselineNode["Tags"]["TagsItem"];
|
||||
for (auto patchBaselineNodeTagsTagsItem : allTagsNode)
|
||||
{
|
||||
PatchBaseline::TagsItem tagsItemObject;
|
||||
if(!patchBaselineNodeTagsTagsItem["TagKey"].isNull())
|
||||
tagsItemObject.tagKey = patchBaselineNodeTagsTagsItem["TagKey"].asString();
|
||||
if(!patchBaselineNodeTagsTagsItem["TagValue"].isNull())
|
||||
tagsItemObject.tagValue = patchBaselineNodeTagsTagsItem["TagValue"].asString();
|
||||
patchBaseline_.tags.push_back(tagsItemObject);
|
||||
}
|
||||
auto allRejectedPatches = patchBaselineNode["RejectedPatches"]["RejectedPatches"];
|
||||
for (auto value : allRejectedPatches)
|
||||
patchBaseline_.rejectedPatches.push_back(value.asString());
|
||||
auto allApprovedPatches = patchBaselineNode["ApprovedPatches"]["ApprovedPatches"];
|
||||
for (auto value : allApprovedPatches)
|
||||
patchBaseline_.approvedPatches.push_back(value.asString());
|
||||
auto allSources = patchBaselineNode["Sources"]["Sources"];
|
||||
for (auto value : allSources)
|
||||
patchBaseline_.sources.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -52,6 +52,8 @@ void GetApplicationResult::parse(const std::string &payload)
|
||||
application_.name = applicationNode["Name"].asString();
|
||||
if(!applicationNode["CreateDate"].isNull())
|
||||
application_.createDate = applicationNode["CreateDate"].asString();
|
||||
if(!applicationNode["ApplicationType"].isNull())
|
||||
application_.applicationType = applicationNode["ApplicationType"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -64,9 +64,27 @@ void GetPatchBaselineResult::parse(const std::string &payload)
|
||||
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
|
||||
if(!patchBaselineNode["RejectedPatchesAction"].isNull())
|
||||
patchBaseline_.rejectedPatchesAction = patchBaselineNode["RejectedPatchesAction"].asString();
|
||||
if(!patchBaselineNode["ApprovedPatchesEnableNonSecurity"].isNull())
|
||||
patchBaseline_.approvedPatchesEnableNonSecurity = patchBaselineNode["ApprovedPatchesEnableNonSecurity"].asString() == "true";
|
||||
auto allTagsNode = patchBaselineNode["Tags"]["TagsItem"];
|
||||
for (auto patchBaselineNodeTagsTagsItem : allTagsNode)
|
||||
{
|
||||
PatchBaseline::TagsItem tagsItemObject;
|
||||
if(!patchBaselineNodeTagsTagsItem["TagKey"].isNull())
|
||||
tagsItemObject.tagKey = patchBaselineNodeTagsTagsItem["TagKey"].asString();
|
||||
if(!patchBaselineNodeTagsTagsItem["TagValue"].isNull())
|
||||
tagsItemObject.tagValue = patchBaselineNodeTagsTagsItem["TagValue"].asString();
|
||||
patchBaseline_.tags.push_back(tagsItemObject);
|
||||
}
|
||||
auto allRejectedPatches = patchBaselineNode["RejectedPatches"]["RejectedPatches"];
|
||||
for (auto value : allRejectedPatches)
|
||||
patchBaseline_.rejectedPatches.push_back(value.asString());
|
||||
auto allApprovedPatches = patchBaselineNode["ApprovedPatches"]["ApprovedPatches"];
|
||||
for (auto value : allApprovedPatches)
|
||||
patchBaseline_.approvedPatches.push_back(value.asString());
|
||||
auto allSources = patchBaselineNode["Sources"]["Sources"];
|
||||
for (auto value : allSources)
|
||||
patchBaseline_.sources.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -25,13 +25,15 @@ ListPatchBaselinesRequest::ListPatchBaselinesRequest()
|
||||
|
||||
ListPatchBaselinesRequest::~ListPatchBaselinesRequest() {}
|
||||
|
||||
std::string ListPatchBaselinesRequest::getOperationSystem() const {
|
||||
return operationSystem_;
|
||||
std::vector<ListPatchBaselinesRequest::std::string> ListPatchBaselinesRequest::getSources() const {
|
||||
return sources_;
|
||||
}
|
||||
|
||||
void ListPatchBaselinesRequest::setOperationSystem(const std::string &operationSystem) {
|
||||
operationSystem_ = operationSystem;
|
||||
setParameter(std::string("OperationSystem"), operationSystem);
|
||||
void ListPatchBaselinesRequest::setSources(const std::vector<ListPatchBaselinesRequest::std::string> &sources) {
|
||||
sources_ = sources;
|
||||
for(int dep1 = 0; dep1 != sources.size(); dep1++) {
|
||||
setParameter(std::string("Sources") + "." + std::to_string(dep1 + 1), sources[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListPatchBaselinesRequest::getRegionId() const {
|
||||
@@ -52,6 +54,45 @@ void ListPatchBaselinesRequest::setNextToken(const std::string &nextToken) {
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string ListPatchBaselinesRequest::getShareType() const {
|
||||
return shareType_;
|
||||
}
|
||||
|
||||
void ListPatchBaselinesRequest::setShareType(const std::string &shareType) {
|
||||
shareType_ = shareType;
|
||||
setParameter(std::string("ShareType"), shareType);
|
||||
}
|
||||
|
||||
bool ListPatchBaselinesRequest::getApprovedPatchesEnableNonSecurity() const {
|
||||
return approvedPatchesEnableNonSecurity_;
|
||||
}
|
||||
|
||||
void ListPatchBaselinesRequest::setApprovedPatchesEnableNonSecurity(bool approvedPatchesEnableNonSecurity) {
|
||||
approvedPatchesEnableNonSecurity_ = approvedPatchesEnableNonSecurity;
|
||||
setParameter(std::string("ApprovedPatchesEnableNonSecurity"), approvedPatchesEnableNonSecurity ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<ListPatchBaselinesRequest::Tags> ListPatchBaselinesRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void ListPatchBaselinesRequest::setTags(const std::vector<ListPatchBaselinesRequest::Tags> &tags) {
|
||||
tags_ = tags;
|
||||
for(int dep1 = 0; dep1 != tags.size(); dep1++) {
|
||||
setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".Value", tags[dep1].value);
|
||||
setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".Key", tags[dep1].key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListPatchBaselinesRequest::getOperationSystem() const {
|
||||
return operationSystem_;
|
||||
}
|
||||
|
||||
void ListPatchBaselinesRequest::setOperationSystem(const std::string &operationSystem) {
|
||||
operationSystem_ = operationSystem;
|
||||
setParameter(std::string("OperationSystem"), operationSystem);
|
||||
}
|
||||
|
||||
std::string ListPatchBaselinesRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
@@ -70,12 +111,14 @@ void ListPatchBaselinesRequest::setMaxResults(int maxResults) {
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListPatchBaselinesRequest::getShareType() const {
|
||||
return shareType_;
|
||||
std::vector<ListPatchBaselinesRequest::std::string> ListPatchBaselinesRequest::getApprovedPatches() const {
|
||||
return approvedPatches_;
|
||||
}
|
||||
|
||||
void ListPatchBaselinesRequest::setShareType(const std::string &shareType) {
|
||||
shareType_ = shareType;
|
||||
setParameter(std::string("ShareType"), shareType);
|
||||
void ListPatchBaselinesRequest::setApprovedPatches(const std::vector<ListPatchBaselinesRequest::std::string> &approvedPatches) {
|
||||
approvedPatches_ = approvedPatches;
|
||||
for(int dep1 = 0; dep1 != approvedPatches.size(); dep1++) {
|
||||
setParameter(std::string("ApprovedPatches") + "." + std::to_string(dep1 + 1), approvedPatches[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -63,6 +63,24 @@ void ListPatchBaselinesResult::parse(const std::string &payload)
|
||||
patchBaselinesObject.id = valuePatchBaselinesPatchBaseline["Id"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["ShareType"].isNull())
|
||||
patchBaselinesObject.shareType = valuePatchBaselinesPatchBaseline["ShareType"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["ApprovedPatchesEnableNonSecurity"].isNull())
|
||||
patchBaselinesObject.approvedPatchesEnableNonSecurity = valuePatchBaselinesPatchBaseline["ApprovedPatchesEnableNonSecurity"].asString() == "true";
|
||||
auto allTagsNode = valuePatchBaselinesPatchBaseline["Tags"]["TagsItem"];
|
||||
for (auto valuePatchBaselinesPatchBaselineTagsTagsItem : allTagsNode)
|
||||
{
|
||||
PatchBaseline::TagsItem tagsObject;
|
||||
if(!valuePatchBaselinesPatchBaselineTagsTagsItem["TagKey"].isNull())
|
||||
tagsObject.tagKey = valuePatchBaselinesPatchBaselineTagsTagsItem["TagKey"].asString();
|
||||
if(!valuePatchBaselinesPatchBaselineTagsTagsItem["TagValue"].isNull())
|
||||
tagsObject.tagValue = valuePatchBaselinesPatchBaselineTagsTagsItem["TagValue"].asString();
|
||||
patchBaselinesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
auto allApprovedPatches = value["ApprovedPatches"]["ApprovedPatches"];
|
||||
for (auto value : allApprovedPatches)
|
||||
patchBaselinesObject.approvedPatches.push_back(value.asString());
|
||||
auto allSources = value["Sources"]["Sources"];
|
||||
for (auto value : allSources)
|
||||
patchBaselinesObject.sources.push_back(value.asString());
|
||||
patchBaselines_.push_back(patchBaselinesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
|
||||
@@ -25,6 +25,17 @@ UpdatePatchBaselineRequest::UpdatePatchBaselineRequest()
|
||||
|
||||
UpdatePatchBaselineRequest::~UpdatePatchBaselineRequest() {}
|
||||
|
||||
std::vector<UpdatePatchBaselineRequest::std::string> UpdatePatchBaselineRequest::getSources() const {
|
||||
return sources_;
|
||||
}
|
||||
|
||||
void UpdatePatchBaselineRequest::setSources(const std::vector<UpdatePatchBaselineRequest::std::string> &sources) {
|
||||
sources_ = sources;
|
||||
for(int dep1 = 0; dep1 != sources.size(); dep1++) {
|
||||
setParameter(std::string("Sources") + "." + std::to_string(dep1 + 1), sources[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdatePatchBaselineRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
@@ -52,17 +63,6 @@ void UpdatePatchBaselineRequest::setDescription(const std::string &description)
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::vector<UpdatePatchBaselineRequest::std::string> UpdatePatchBaselineRequest::getRejectedPatches() const {
|
||||
return rejectedPatches_;
|
||||
}
|
||||
|
||||
void UpdatePatchBaselineRequest::setRejectedPatches(const std::vector<UpdatePatchBaselineRequest::std::string> &rejectedPatches) {
|
||||
rejectedPatches_ = rejectedPatches;
|
||||
for(int dep1 = 0; dep1 != rejectedPatches.size(); dep1++) {
|
||||
setParameter(std::string("RejectedPatches") + "." + std::to_string(dep1 + 1), rejectedPatches[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdatePatchBaselineRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -81,6 +81,38 @@ void UpdatePatchBaselineRequest::setRejectedPatchesAction(const std::string &rej
|
||||
setParameter(std::string("RejectedPatchesAction"), rejectedPatchesAction);
|
||||
}
|
||||
|
||||
bool UpdatePatchBaselineRequest::getApprovedPatchesEnableNonSecurity() const {
|
||||
return approvedPatchesEnableNonSecurity_;
|
||||
}
|
||||
|
||||
void UpdatePatchBaselineRequest::setApprovedPatchesEnableNonSecurity(bool approvedPatchesEnableNonSecurity) {
|
||||
approvedPatchesEnableNonSecurity_ = approvedPatchesEnableNonSecurity;
|
||||
setParameter(std::string("ApprovedPatchesEnableNonSecurity"), approvedPatchesEnableNonSecurity ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<UpdatePatchBaselineRequest::Tags> UpdatePatchBaselineRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void UpdatePatchBaselineRequest::setTags(const std::vector<UpdatePatchBaselineRequest::Tags> &tags) {
|
||||
tags_ = tags;
|
||||
for(int dep1 = 0; dep1 != tags.size(); dep1++) {
|
||||
setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".Value", tags[dep1].value);
|
||||
setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".Key", tags[dep1].key);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<UpdatePatchBaselineRequest::std::string> UpdatePatchBaselineRequest::getRejectedPatches() const {
|
||||
return rejectedPatches_;
|
||||
}
|
||||
|
||||
void UpdatePatchBaselineRequest::setRejectedPatches(const std::vector<UpdatePatchBaselineRequest::std::string> &rejectedPatches) {
|
||||
rejectedPatches_ = rejectedPatches;
|
||||
for(int dep1 = 0; dep1 != rejectedPatches.size(); dep1++) {
|
||||
setParameter(std::string("RejectedPatches") + "." + std::to_string(dep1 + 1), rejectedPatches[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdatePatchBaselineRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
@@ -90,3 +122,14 @@ void UpdatePatchBaselineRequest::setName(const std::string &name) {
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::vector<UpdatePatchBaselineRequest::std::string> UpdatePatchBaselineRequest::getApprovedPatches() const {
|
||||
return approvedPatches_;
|
||||
}
|
||||
|
||||
void UpdatePatchBaselineRequest::setApprovedPatches(const std::vector<UpdatePatchBaselineRequest::std::string> &approvedPatches) {
|
||||
approvedPatches_ = approvedPatches;
|
||||
for(int dep1 = 0; dep1 != approvedPatches.size(); dep1++) {
|
||||
setParameter(std::string("ApprovedPatches") + "." + std::to_string(dep1 + 1), approvedPatches[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -62,9 +62,27 @@ void UpdatePatchBaselineResult::parse(const std::string &payload)
|
||||
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
|
||||
if(!patchBaselineNode["RejectedPatchesAction"].isNull())
|
||||
patchBaseline_.rejectedPatchesAction = patchBaselineNode["RejectedPatchesAction"].asString();
|
||||
if(!patchBaselineNode["ApprovedPatchesEnableNonSecurity"].isNull())
|
||||
patchBaseline_.approvedPatchesEnableNonSecurity = patchBaselineNode["ApprovedPatchesEnableNonSecurity"].asString() == "true";
|
||||
auto allTagsNode = patchBaselineNode["Tags"]["TagsItem"];
|
||||
for (auto patchBaselineNodeTagsTagsItem : allTagsNode)
|
||||
{
|
||||
PatchBaseline::TagsItem tagsItemObject;
|
||||
if(!patchBaselineNodeTagsTagsItem["TagKey"].isNull())
|
||||
tagsItemObject.tagKey = patchBaselineNodeTagsTagsItem["TagKey"].asString();
|
||||
if(!patchBaselineNodeTagsTagsItem["TagValue"].isNull())
|
||||
tagsItemObject.tagValue = patchBaselineNodeTagsTagsItem["TagValue"].asString();
|
||||
patchBaseline_.tags.push_back(tagsItemObject);
|
||||
}
|
||||
auto allRejectedPatches = patchBaselineNode["RejectedPatches"]["RejectedPatches"];
|
||||
for (auto value : allRejectedPatches)
|
||||
patchBaseline_.rejectedPatches.push_back(value.asString());
|
||||
auto allApprovedPatches = patchBaselineNode["ApprovedPatches"]["ApprovedPatches"];
|
||||
for (auto value : allApprovedPatches)
|
||||
patchBaseline_.approvedPatches.push_back(value.asString());
|
||||
auto allSources = patchBaselineNode["Sources"]["Sources"];
|
||||
for (auto value : allSources)
|
||||
patchBaseline_.sources.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user