PatchBaseline Support Tags.
This commit is contained in:
@@ -28,34 +28,50 @@ namespace Oos {
|
|||||||
namespace Model {
|
namespace Model {
|
||||||
class ALIBABACLOUD_OOS_EXPORT CreatePatchBaselineRequest : public RpcServiceRequest {
|
class ALIBABACLOUD_OOS_EXPORT CreatePatchBaselineRequest : public RpcServiceRequest {
|
||||||
public:
|
public:
|
||||||
|
struct Tags {
|
||||||
|
std::string value;
|
||||||
|
std::string key;
|
||||||
|
};
|
||||||
CreatePatchBaselineRequest();
|
CreatePatchBaselineRequest();
|
||||||
~CreatePatchBaselineRequest();
|
~CreatePatchBaselineRequest();
|
||||||
|
std::vector<std::string> getSources() const;
|
||||||
|
void setSources(const std::vector<std::string> &sources);
|
||||||
std::string getClientToken() const;
|
std::string getClientToken() const;
|
||||||
void setClientToken(const std::string &clientToken);
|
void setClientToken(const std::string &clientToken);
|
||||||
std::string getApprovalRules() const;
|
std::string getApprovalRules() const;
|
||||||
void setApprovalRules(const std::string &approvalRules);
|
void setApprovalRules(const std::string &approvalRules);
|
||||||
std::string getDescription() const;
|
std::string getDescription() const;
|
||||||
void setDescription(const std::string &description);
|
void setDescription(const std::string &description);
|
||||||
std::string getOperationSystem() const;
|
|
||||||
void setOperationSystem(const std::string &operationSystem);
|
|
||||||
std::vector<std::string> getRejectedPatches() const;
|
|
||||||
void setRejectedPatches(const std::vector<std::string> &rejectedPatches);
|
|
||||||
std::string getRegionId() const;
|
std::string getRegionId() const;
|
||||||
void setRegionId(const std::string ®ionId);
|
void setRegionId(const std::string ®ionId);
|
||||||
std::string getRejectedPatchesAction() const;
|
std::string getRejectedPatchesAction() const;
|
||||||
void setRejectedPatchesAction(const std::string &rejectedPatchesAction);
|
void setRejectedPatchesAction(const std::string &rejectedPatchesAction);
|
||||||
|
bool getApprovedPatchesEnableNonSecurity() const;
|
||||||
|
void setApprovedPatchesEnableNonSecurity(bool approvedPatchesEnableNonSecurity);
|
||||||
|
std::vector<Tags> getTags() const;
|
||||||
|
void setTags(const std::vector<Tags> &tags);
|
||||||
|
std::string getOperationSystem() const;
|
||||||
|
void setOperationSystem(const std::string &operationSystem);
|
||||||
|
std::vector<std::string> getRejectedPatches() const;
|
||||||
|
void setRejectedPatches(const std::vector<std::string> &rejectedPatches);
|
||||||
std::string getName() const;
|
std::string getName() const;
|
||||||
void setName(const std::string &name);
|
void setName(const std::string &name);
|
||||||
|
std::vector<std::string> getApprovedPatches() const;
|
||||||
|
void setApprovedPatches(const std::vector<std::string> &approvedPatches);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
std::vector<std::string> sources_;
|
||||||
std::string clientToken_;
|
std::string clientToken_;
|
||||||
std::string approvalRules_;
|
std::string approvalRules_;
|
||||||
std::string description_;
|
std::string description_;
|
||||||
std::string operationSystem_;
|
|
||||||
std::vector<std::string> rejectedPatches_;
|
|
||||||
std::string regionId_;
|
std::string regionId_;
|
||||||
std::string rejectedPatchesAction_;
|
std::string rejectedPatchesAction_;
|
||||||
|
bool approvedPatchesEnableNonSecurity_;
|
||||||
|
std::vector<Tags> tags_;
|
||||||
|
std::string operationSystem_;
|
||||||
|
std::vector<std::string> rejectedPatches_;
|
||||||
std::string name_;
|
std::string name_;
|
||||||
|
std::vector<std::string> approvedPatches_;
|
||||||
};
|
};
|
||||||
} // namespace Model
|
} // namespace Model
|
||||||
} // namespace Oos
|
} // namespace Oos
|
||||||
|
|||||||
@@ -34,18 +34,27 @@ namespace AlibabaCloud
|
|||||||
public:
|
public:
|
||||||
struct PatchBaseline
|
struct PatchBaseline
|
||||||
{
|
{
|
||||||
std::string rejectedPatchesAction;
|
struct TagsItem
|
||||||
std::string updatedBy;
|
{
|
||||||
|
std::string tagKey;
|
||||||
|
std::string tagValue;
|
||||||
|
};
|
||||||
std::string description;
|
std::string description;
|
||||||
std::string createdBy;
|
std::string createdBy;
|
||||||
std::string updatedDate;
|
std::string updatedDate;
|
||||||
std::string createdDate;
|
|
||||||
std::string operationSystem;
|
std::string operationSystem;
|
||||||
std::string id;
|
|
||||||
std::string approvalRules;
|
std::string approvalRules;
|
||||||
|
std::vector<std::string> sources;
|
||||||
std::string name;
|
std::string name;
|
||||||
std::string shareType;
|
|
||||||
std::vector<std::string> rejectedPatches;
|
std::vector<std::string> rejectedPatches;
|
||||||
|
std::string rejectedPatchesAction;
|
||||||
|
std::vector<std::string> approvedPatches;
|
||||||
|
std::string updatedBy;
|
||||||
|
std::string createdDate;
|
||||||
|
bool approvedPatchesEnableNonSecurity;
|
||||||
|
std::string id;
|
||||||
|
std::vector<TagsItem> tags;
|
||||||
|
std::string shareType;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
|||||||
struct Application
|
struct Application
|
||||||
{
|
{
|
||||||
std::string updateDate;
|
std::string updateDate;
|
||||||
|
std::string applicationType;
|
||||||
std::string description;
|
std::string description;
|
||||||
std::string resourceGroupId;
|
std::string resourceGroupId;
|
||||||
std::string createDate;
|
std::string createDate;
|
||||||
|
|||||||
@@ -34,18 +34,27 @@ namespace AlibabaCloud
|
|||||||
public:
|
public:
|
||||||
struct PatchBaseline
|
struct PatchBaseline
|
||||||
{
|
{
|
||||||
|
struct TagsItem
|
||||||
|
{
|
||||||
|
std::string tagKey;
|
||||||
|
std::string tagValue;
|
||||||
|
};
|
||||||
bool isDefault;
|
bool isDefault;
|
||||||
std::string description;
|
std::string description;
|
||||||
std::string createdBy;
|
std::string createdBy;
|
||||||
std::string updatedDate;
|
std::string updatedDate;
|
||||||
std::string operationSystem;
|
std::string operationSystem;
|
||||||
std::string approvalRules;
|
std::string approvalRules;
|
||||||
|
std::vector<std::string> sources;
|
||||||
std::string name;
|
std::string name;
|
||||||
std::vector<std::string> rejectedPatches;
|
std::vector<std::string> rejectedPatches;
|
||||||
std::string rejectedPatchesAction;
|
std::string rejectedPatchesAction;
|
||||||
|
std::vector<std::string> approvedPatches;
|
||||||
std::string updatedBy;
|
std::string updatedBy;
|
||||||
std::string createdDate;
|
std::string createdDate;
|
||||||
|
bool approvedPatchesEnableNonSecurity;
|
||||||
std::string id;
|
std::string id;
|
||||||
|
std::vector<TagsItem> tags;
|
||||||
std::string shareType;
|
std::string shareType;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -28,28 +28,44 @@ namespace Oos {
|
|||||||
namespace Model {
|
namespace Model {
|
||||||
class ALIBABACLOUD_OOS_EXPORT ListPatchBaselinesRequest : public RpcServiceRequest {
|
class ALIBABACLOUD_OOS_EXPORT ListPatchBaselinesRequest : public RpcServiceRequest {
|
||||||
public:
|
public:
|
||||||
|
struct Tags {
|
||||||
|
std::string value;
|
||||||
|
std::string key;
|
||||||
|
};
|
||||||
ListPatchBaselinesRequest();
|
ListPatchBaselinesRequest();
|
||||||
~ListPatchBaselinesRequest();
|
~ListPatchBaselinesRequest();
|
||||||
std::string getOperationSystem() const;
|
std::vector<std::string> getSources() const;
|
||||||
void setOperationSystem(const std::string &operationSystem);
|
void setSources(const std::vector<std::string> &sources);
|
||||||
std::string getRegionId() const;
|
std::string getRegionId() const;
|
||||||
void setRegionId(const std::string ®ionId);
|
void setRegionId(const std::string ®ionId);
|
||||||
std::string getNextToken() const;
|
std::string getNextToken() const;
|
||||||
void setNextToken(const std::string &nextToken);
|
void setNextToken(const std::string &nextToken);
|
||||||
|
std::string getShareType() const;
|
||||||
|
void setShareType(const std::string &shareType);
|
||||||
|
bool getApprovedPatchesEnableNonSecurity() const;
|
||||||
|
void setApprovedPatchesEnableNonSecurity(bool approvedPatchesEnableNonSecurity);
|
||||||
|
std::vector<Tags> getTags() const;
|
||||||
|
void setTags(const std::vector<Tags> &tags);
|
||||||
|
std::string getOperationSystem() const;
|
||||||
|
void setOperationSystem(const std::string &operationSystem);
|
||||||
std::string getName() const;
|
std::string getName() const;
|
||||||
void setName(const std::string &name);
|
void setName(const std::string &name);
|
||||||
int getMaxResults() const;
|
int getMaxResults() const;
|
||||||
void setMaxResults(int maxResults);
|
void setMaxResults(int maxResults);
|
||||||
std::string getShareType() const;
|
std::vector<std::string> getApprovedPatches() const;
|
||||||
void setShareType(const std::string &shareType);
|
void setApprovedPatches(const std::vector<std::string> &approvedPatches);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string operationSystem_;
|
std::vector<std::string> sources_;
|
||||||
std::string regionId_;
|
std::string regionId_;
|
||||||
std::string nextToken_;
|
std::string nextToken_;
|
||||||
|
std::string shareType_;
|
||||||
|
bool approvedPatchesEnableNonSecurity_;
|
||||||
|
std::vector<Tags> tags_;
|
||||||
|
std::string operationSystem_;
|
||||||
std::string name_;
|
std::string name_;
|
||||||
int maxResults_;
|
int maxResults_;
|
||||||
std::string shareType_;
|
std::vector<std::string> approvedPatches_;
|
||||||
};
|
};
|
||||||
} // namespace Model
|
} // namespace Model
|
||||||
} // namespace Oos
|
} // namespace Oos
|
||||||
|
|||||||
@@ -34,15 +34,24 @@ namespace AlibabaCloud
|
|||||||
public:
|
public:
|
||||||
struct PatchBaseline
|
struct PatchBaseline
|
||||||
{
|
{
|
||||||
|
struct TagsItem
|
||||||
|
{
|
||||||
|
std::string tagKey;
|
||||||
|
std::string tagValue;
|
||||||
|
};
|
||||||
bool isDefault;
|
bool isDefault;
|
||||||
std::string updatedBy;
|
|
||||||
std::string description;
|
std::string description;
|
||||||
std::string createdBy;
|
std::string createdBy;
|
||||||
std::string updatedDate;
|
std::string updatedDate;
|
||||||
std::string createdDate;
|
|
||||||
std::string operationSystem;
|
std::string operationSystem;
|
||||||
std::string id;
|
std::vector<std::string> sources;
|
||||||
std::string name;
|
std::string name;
|
||||||
|
std::vector<std::string> approvedPatches;
|
||||||
|
std::string updatedBy;
|
||||||
|
std::string createdDate;
|
||||||
|
bool approvedPatchesEnableNonSecurity;
|
||||||
|
std::string id;
|
||||||
|
std::vector<PatchBaseline::TagsItem> tags;
|
||||||
std::string shareType;
|
std::string shareType;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -28,31 +28,47 @@ namespace Oos {
|
|||||||
namespace Model {
|
namespace Model {
|
||||||
class ALIBABACLOUD_OOS_EXPORT UpdatePatchBaselineRequest : public RpcServiceRequest {
|
class ALIBABACLOUD_OOS_EXPORT UpdatePatchBaselineRequest : public RpcServiceRequest {
|
||||||
public:
|
public:
|
||||||
|
struct Tags {
|
||||||
|
std::string value;
|
||||||
|
std::string key;
|
||||||
|
};
|
||||||
UpdatePatchBaselineRequest();
|
UpdatePatchBaselineRequest();
|
||||||
~UpdatePatchBaselineRequest();
|
~UpdatePatchBaselineRequest();
|
||||||
|
std::vector<std::string> getSources() const;
|
||||||
|
void setSources(const std::vector<std::string> &sources);
|
||||||
std::string getClientToken() const;
|
std::string getClientToken() const;
|
||||||
void setClientToken(const std::string &clientToken);
|
void setClientToken(const std::string &clientToken);
|
||||||
std::string getApprovalRules() const;
|
std::string getApprovalRules() const;
|
||||||
void setApprovalRules(const std::string &approvalRules);
|
void setApprovalRules(const std::string &approvalRules);
|
||||||
std::string getDescription() const;
|
std::string getDescription() const;
|
||||||
void setDescription(const std::string &description);
|
void setDescription(const std::string &description);
|
||||||
std::vector<std::string> getRejectedPatches() const;
|
|
||||||
void setRejectedPatches(const std::vector<std::string> &rejectedPatches);
|
|
||||||
std::string getRegionId() const;
|
std::string getRegionId() const;
|
||||||
void setRegionId(const std::string ®ionId);
|
void setRegionId(const std::string ®ionId);
|
||||||
std::string getRejectedPatchesAction() const;
|
std::string getRejectedPatchesAction() const;
|
||||||
void setRejectedPatchesAction(const std::string &rejectedPatchesAction);
|
void setRejectedPatchesAction(const std::string &rejectedPatchesAction);
|
||||||
|
bool getApprovedPatchesEnableNonSecurity() const;
|
||||||
|
void setApprovedPatchesEnableNonSecurity(bool approvedPatchesEnableNonSecurity);
|
||||||
|
std::vector<Tags> getTags() const;
|
||||||
|
void setTags(const std::vector<Tags> &tags);
|
||||||
|
std::vector<std::string> getRejectedPatches() const;
|
||||||
|
void setRejectedPatches(const std::vector<std::string> &rejectedPatches);
|
||||||
std::string getName() const;
|
std::string getName() const;
|
||||||
void setName(const std::string &name);
|
void setName(const std::string &name);
|
||||||
|
std::vector<std::string> getApprovedPatches() const;
|
||||||
|
void setApprovedPatches(const std::vector<std::string> &approvedPatches);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
std::vector<std::string> sources_;
|
||||||
std::string clientToken_;
|
std::string clientToken_;
|
||||||
std::string approvalRules_;
|
std::string approvalRules_;
|
||||||
std::string description_;
|
std::string description_;
|
||||||
std::vector<std::string> rejectedPatches_;
|
|
||||||
std::string regionId_;
|
std::string regionId_;
|
||||||
std::string rejectedPatchesAction_;
|
std::string rejectedPatchesAction_;
|
||||||
|
bool approvedPatchesEnableNonSecurity_;
|
||||||
|
std::vector<Tags> tags_;
|
||||||
|
std::vector<std::string> rejectedPatches_;
|
||||||
std::string name_;
|
std::string name_;
|
||||||
|
std::vector<std::string> approvedPatches_;
|
||||||
};
|
};
|
||||||
} // namespace Model
|
} // namespace Model
|
||||||
} // namespace Oos
|
} // namespace Oos
|
||||||
|
|||||||
@@ -34,18 +34,27 @@ namespace AlibabaCloud
|
|||||||
public:
|
public:
|
||||||
struct PatchBaseline
|
struct PatchBaseline
|
||||||
{
|
{
|
||||||
std::string rejectedPatchesAction;
|
struct TagsItem
|
||||||
std::string updatedBy;
|
{
|
||||||
|
std::string tagKey;
|
||||||
|
std::string tagValue;
|
||||||
|
};
|
||||||
std::string description;
|
std::string description;
|
||||||
std::string createdBy;
|
std::string createdBy;
|
||||||
std::string updatedDate;
|
std::string updatedDate;
|
||||||
std::string createdDate;
|
|
||||||
std::string operationSystem;
|
std::string operationSystem;
|
||||||
std::string id;
|
|
||||||
std::string approvalRules;
|
std::string approvalRules;
|
||||||
|
std::vector<std::string> sources;
|
||||||
std::string name;
|
std::string name;
|
||||||
std::string shareType;
|
|
||||||
std::vector<std::string> rejectedPatches;
|
std::vector<std::string> rejectedPatches;
|
||||||
|
std::string rejectedPatchesAction;
|
||||||
|
std::vector<std::string> approvedPatches;
|
||||||
|
std::string updatedBy;
|
||||||
|
std::string createdDate;
|
||||||
|
bool approvedPatchesEnableNonSecurity;
|
||||||
|
std::string id;
|
||||||
|
std::vector<TagsItem> tags;
|
||||||
|
std::string shareType;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,17 @@ CreatePatchBaselineRequest::CreatePatchBaselineRequest()
|
|||||||
|
|
||||||
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 {
|
std::string CreatePatchBaselineRequest::getClientToken() const {
|
||||||
return clientToken_;
|
return clientToken_;
|
||||||
}
|
}
|
||||||
@@ -52,6 +63,45 @@ void CreatePatchBaselineRequest::setDescription(const std::string &description)
|
|||||||
setParameter(std::string("Description"), 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 {
|
std::string CreatePatchBaselineRequest::getOperationSystem() const {
|
||||||
return operationSystem_;
|
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 {
|
std::string CreatePatchBaselineRequest::getName() const {
|
||||||
return name_;
|
return name_;
|
||||||
}
|
}
|
||||||
@@ -99,3 +131,14 @@ void CreatePatchBaselineRequest::setName(const std::string &name) {
|
|||||||
setParameter(std::string("Name"), 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();
|
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
|
||||||
if(!patchBaselineNode["RejectedPatchesAction"].isNull())
|
if(!patchBaselineNode["RejectedPatchesAction"].isNull())
|
||||||
patchBaseline_.rejectedPatchesAction = patchBaselineNode["RejectedPatchesAction"].asString();
|
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"];
|
auto allRejectedPatches = patchBaselineNode["RejectedPatches"]["RejectedPatches"];
|
||||||
for (auto value : allRejectedPatches)
|
for (auto value : allRejectedPatches)
|
||||||
patchBaseline_.rejectedPatches.push_back(value.asString());
|
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();
|
application_.name = applicationNode["Name"].asString();
|
||||||
if(!applicationNode["CreateDate"].isNull())
|
if(!applicationNode["CreateDate"].isNull())
|
||||||
application_.createDate = applicationNode["CreateDate"].asString();
|
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();
|
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
|
||||||
if(!patchBaselineNode["RejectedPatchesAction"].isNull())
|
if(!patchBaselineNode["RejectedPatchesAction"].isNull())
|
||||||
patchBaseline_.rejectedPatchesAction = patchBaselineNode["RejectedPatchesAction"].asString();
|
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"];
|
auto allRejectedPatches = patchBaselineNode["RejectedPatches"]["RejectedPatches"];
|
||||||
for (auto value : allRejectedPatches)
|
for (auto value : allRejectedPatches)
|
||||||
patchBaseline_.rejectedPatches.push_back(value.asString());
|
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() {}
|
ListPatchBaselinesRequest::~ListPatchBaselinesRequest() {}
|
||||||
|
|
||||||
std::string ListPatchBaselinesRequest::getOperationSystem() const {
|
std::vector<ListPatchBaselinesRequest::std::string> ListPatchBaselinesRequest::getSources() const {
|
||||||
return operationSystem_;
|
return sources_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListPatchBaselinesRequest::setOperationSystem(const std::string &operationSystem) {
|
void ListPatchBaselinesRequest::setSources(const std::vector<ListPatchBaselinesRequest::std::string> &sources) {
|
||||||
operationSystem_ = operationSystem;
|
sources_ = sources;
|
||||||
setParameter(std::string("OperationSystem"), operationSystem);
|
for(int dep1 = 0; dep1 != sources.size(); dep1++) {
|
||||||
|
setParameter(std::string("Sources") + "." + std::to_string(dep1 + 1), sources[dep1]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListPatchBaselinesRequest::getRegionId() const {
|
std::string ListPatchBaselinesRequest::getRegionId() const {
|
||||||
@@ -52,6 +54,45 @@ void ListPatchBaselinesRequest::setNextToken(const std::string &nextToken) {
|
|||||||
setParameter(std::string("NextToken"), 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 {
|
std::string ListPatchBaselinesRequest::getName() const {
|
||||||
return name_;
|
return name_;
|
||||||
}
|
}
|
||||||
@@ -70,12 +111,14 @@ void ListPatchBaselinesRequest::setMaxResults(int maxResults) {
|
|||||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListPatchBaselinesRequest::getShareType() const {
|
std::vector<ListPatchBaselinesRequest::std::string> ListPatchBaselinesRequest::getApprovedPatches() const {
|
||||||
return shareType_;
|
return approvedPatches_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListPatchBaselinesRequest::setShareType(const std::string &shareType) {
|
void ListPatchBaselinesRequest::setApprovedPatches(const std::vector<ListPatchBaselinesRequest::std::string> &approvedPatches) {
|
||||||
shareType_ = shareType;
|
approvedPatches_ = approvedPatches;
|
||||||
setParameter(std::string("ShareType"), shareType);
|
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();
|
patchBaselinesObject.id = valuePatchBaselinesPatchBaseline["Id"].asString();
|
||||||
if(!valuePatchBaselinesPatchBaseline["ShareType"].isNull())
|
if(!valuePatchBaselinesPatchBaseline["ShareType"].isNull())
|
||||||
patchBaselinesObject.shareType = valuePatchBaselinesPatchBaseline["ShareType"].asString();
|
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);
|
patchBaselines_.push_back(patchBaselinesObject);
|
||||||
}
|
}
|
||||||
if(!value["NextToken"].isNull())
|
if(!value["NextToken"].isNull())
|
||||||
|
|||||||
@@ -25,6 +25,17 @@ UpdatePatchBaselineRequest::UpdatePatchBaselineRequest()
|
|||||||
|
|
||||||
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 {
|
std::string UpdatePatchBaselineRequest::getClientToken() const {
|
||||||
return clientToken_;
|
return clientToken_;
|
||||||
}
|
}
|
||||||
@@ -52,17 +63,6 @@ void UpdatePatchBaselineRequest::setDescription(const std::string &description)
|
|||||||
setParameter(std::string("Description"), 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 {
|
std::string UpdatePatchBaselineRequest::getRegionId() const {
|
||||||
return regionId_;
|
return regionId_;
|
||||||
}
|
}
|
||||||
@@ -81,6 +81,38 @@ void UpdatePatchBaselineRequest::setRejectedPatchesAction(const std::string &rej
|
|||||||
setParameter(std::string("RejectedPatchesAction"), rejectedPatchesAction);
|
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 {
|
std::string UpdatePatchBaselineRequest::getName() const {
|
||||||
return name_;
|
return name_;
|
||||||
}
|
}
|
||||||
@@ -90,3 +122,14 @@ void UpdatePatchBaselineRequest::setName(const std::string &name) {
|
|||||||
setParameter(std::string("Name"), 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();
|
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
|
||||||
if(!patchBaselineNode["RejectedPatchesAction"].isNull())
|
if(!patchBaselineNode["RejectedPatchesAction"].isNull())
|
||||||
patchBaseline_.rejectedPatchesAction = patchBaselineNode["RejectedPatchesAction"].asString();
|
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"];
|
auto allRejectedPatches = patchBaselineNode["RejectedPatches"]["RejectedPatches"];
|
||||||
for (auto value : allRejectedPatches)
|
for (auto value : allRejectedPatches)
|
||||||
patchBaseline_.rejectedPatches.push_back(value.asString());
|
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