ListApplicationGroups rename parameter Product to ResourceProduct
This commit is contained in:
@@ -38,8 +38,12 @@ public:
|
||||
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;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getRejectedPatchesAction() const;
|
||||
void setRejectedPatchesAction(const std::string &rejectedPatchesAction);
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
|
||||
@@ -48,7 +52,9 @@ private:
|
||||
std::string approvalRules_;
|
||||
std::string description_;
|
||||
std::string operationSystem_;
|
||||
std::vector<std::string> rejectedPatches_;
|
||||
std::string regionId_;
|
||||
std::string rejectedPatchesAction_;
|
||||
std::string name_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct PatchBaseline
|
||||
{
|
||||
std::string rejectedPatchesAction;
|
||||
std::string updatedBy;
|
||||
std::string description;
|
||||
std::string createdBy;
|
||||
@@ -44,6 +45,7 @@ namespace AlibabaCloud
|
||||
std::string approvalRules;
|
||||
std::string name;
|
||||
std::string shareType;
|
||||
std::vector<std::string> rejectedPatches;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -34,12 +34,15 @@ public:
|
||||
void setTemplateVersion(const std::string &templateVersion);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getRamRole() const;
|
||||
void setRamRole(const std::string &ramRole);
|
||||
std::string getTemplateName() const;
|
||||
void setTemplateName(const std::string &templateName);
|
||||
|
||||
private:
|
||||
std::string templateVersion_;
|
||||
std::string regionId_;
|
||||
std::string ramRole_;
|
||||
std::string templateName_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -38,11 +38,13 @@ namespace AlibabaCloud
|
||||
explicit GenerateExecutionPolicyResult(const std::string &payload);
|
||||
~GenerateExecutionPolicyResult();
|
||||
std::string getPolicy()const;
|
||||
std::string getMissingPolicy()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string policy_;
|
||||
std::string missingPolicy_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -34,17 +34,18 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct _Parameter
|
||||
{
|
||||
std::string updatedBy;
|
||||
std::string type;
|
||||
std::string description;
|
||||
std::string constraints;
|
||||
std::string createdBy;
|
||||
std::string updatedDate;
|
||||
std::string name;
|
||||
std::string updatedBy;
|
||||
std::string type;
|
||||
std::string constraints;
|
||||
int parameterVersion;
|
||||
std::string value;
|
||||
std::string createdDate;
|
||||
std::string id;
|
||||
std::string name;
|
||||
std::string tags;
|
||||
std::string shareType;
|
||||
};
|
||||
|
||||
|
||||
@@ -35,15 +35,17 @@ namespace AlibabaCloud
|
||||
struct PatchBaseline
|
||||
{
|
||||
bool isDefault;
|
||||
std::string updatedBy;
|
||||
std::string description;
|
||||
std::string createdBy;
|
||||
std::string updatedDate;
|
||||
std::string createdDate;
|
||||
std::string operationSystem;
|
||||
std::string id;
|
||||
std::string approvalRules;
|
||||
std::string name;
|
||||
std::vector<std::string> rejectedPatches;
|
||||
std::string rejectedPatchesAction;
|
||||
std::string updatedBy;
|
||||
std::string createdDate;
|
||||
std::string id;
|
||||
std::string shareType;
|
||||
};
|
||||
|
||||
|
||||
@@ -38,8 +38,6 @@ public:
|
||||
void setNextToken(const std::string &nextToken);
|
||||
std::string getResourceId() const;
|
||||
void setResourceId(const std::string &resourceId);
|
||||
std::string getProduct() const;
|
||||
void setProduct(const std::string &product);
|
||||
std::string getDeployRegionId() const;
|
||||
void setDeployRegionId(const std::string &deployRegionId);
|
||||
std::string getResourceType() const;
|
||||
@@ -54,7 +52,6 @@ private:
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::string resourceId_;
|
||||
std::string product_;
|
||||
std::string deployRegionId_;
|
||||
std::string resourceType_;
|
||||
std::string applicationName_;
|
||||
|
||||
@@ -42,6 +42,8 @@ public:
|
||||
void setName(const std::string &name);
|
||||
int getMaxResults() const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getApplicationType() const;
|
||||
void setApplicationType(const std::string &applicationType);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
@@ -50,6 +52,7 @@ private:
|
||||
std::string names_;
|
||||
std::string name_;
|
||||
int maxResults_;
|
||||
std::string applicationType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Oos
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Application
|
||||
{
|
||||
std::string updateDate;
|
||||
std::string applicationType;
|
||||
std::string description;
|
||||
std::string resourceGroupId;
|
||||
std::string createDate;
|
||||
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
void setExecutedBy(const std::string &executedBy);
|
||||
bool getIncludeChildExecution() const;
|
||||
void setIncludeChildExecution(bool includeChildExecution);
|
||||
std::string getDescription() const;
|
||||
void setDescription(const std::string &description);
|
||||
std::string getMode() const;
|
||||
void setMode(const std::string &mode);
|
||||
std::string getExecutionId() const;
|
||||
@@ -52,6 +54,8 @@ public:
|
||||
void setEndDateBefore(const std::string &endDateBefore);
|
||||
std::string getSortOrder() const;
|
||||
void setSortOrder(const std::string &sortOrder);
|
||||
std::string getCategories() const;
|
||||
void setCategories(const std::string &categories);
|
||||
std::string getResourceId() const;
|
||||
void setResourceId(const std::string &resourceId);
|
||||
std::string getStartDateAfter() const;
|
||||
@@ -62,6 +66,8 @@ public:
|
||||
void setTags(std::map<std::string, std::string> tags);
|
||||
std::string getParentExecutionId() const;
|
||||
void setParentExecutionId(const std::string &parentExecutionId);
|
||||
std::string getDepth() const;
|
||||
void setDepth(const std::string &depth);
|
||||
std::string getEndDateAfter() const;
|
||||
void setEndDateAfter(const std::string &endDateAfter);
|
||||
int getMaxResults() const;
|
||||
@@ -78,6 +84,7 @@ public:
|
||||
private:
|
||||
std::string executedBy_;
|
||||
bool includeChildExecution_;
|
||||
std::string description_;
|
||||
std::string mode_;
|
||||
std::string executionId_;
|
||||
std::string resourceGroupId_;
|
||||
@@ -87,11 +94,13 @@ private:
|
||||
std::string templateName_;
|
||||
std::string endDateBefore_;
|
||||
std::string sortOrder_;
|
||||
std::string categories_;
|
||||
std::string resourceId_;
|
||||
std::string startDateAfter_;
|
||||
std::string startDateBefore_;
|
||||
std::map<std::string, std::string> tags_;
|
||||
std::string parentExecutionId_;
|
||||
std::string depth_;
|
||||
std::string endDateAfter_;
|
||||
int maxResults_;
|
||||
std::string sortField_;
|
||||
|
||||
@@ -62,12 +62,14 @@ namespace AlibabaCloud
|
||||
bool isParent;
|
||||
std::string mode;
|
||||
std::string targets;
|
||||
std::string lastTriggerOutputs;
|
||||
std::string waitingStatus;
|
||||
std::string endDate;
|
||||
std::string statusMessage;
|
||||
std::string safetyCheck;
|
||||
std::string outputs;
|
||||
std::string ramRole;
|
||||
std::string lastTriggerStatusMessage;
|
||||
std::string counters;
|
||||
std::string lastTriggerStatus;
|
||||
std::string executionId;
|
||||
|
||||
@@ -44,6 +44,8 @@ public:
|
||||
void setNextToken(const std::string &nextToken);
|
||||
std::string getSortOrder() const;
|
||||
void setSortOrder(const std::string &sortOrder);
|
||||
std::string getShareType() const;
|
||||
void setShareType(const std::string &shareType);
|
||||
std::string getTags() const;
|
||||
void setTags(const std::string &tags);
|
||||
std::string getName() const;
|
||||
@@ -61,6 +63,7 @@ private:
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::string sortOrder_;
|
||||
std::string shareType_;
|
||||
std::string tags_;
|
||||
std::string name_;
|
||||
int maxResults_;
|
||||
|
||||
@@ -32,6 +32,8 @@ public:
|
||||
~UpdateExecutionRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getDescription() const;
|
||||
void setDescription(const std::string &description);
|
||||
std::string getExecutionId() const;
|
||||
void setExecutionId(const std::string &executionId);
|
||||
std::string getRegionId() const;
|
||||
@@ -41,6 +43,7 @@ public:
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string description_;
|
||||
std::string executionId_;
|
||||
std::string regionId_;
|
||||
std::string parameters_;
|
||||
|
||||
@@ -36,8 +36,12 @@ public:
|
||||
void setApprovalRules(const std::string &approvalRules);
|
||||
std::string getDescription() const;
|
||||
void setDescription(const std::string &description);
|
||||
std::vector<std::string> getRejectedPatches() const;
|
||||
void setRejectedPatches(const std::vector<std::string> &rejectedPatches);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getRejectedPatchesAction() const;
|
||||
void setRejectedPatchesAction(const std::string &rejectedPatchesAction);
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
|
||||
@@ -45,7 +49,9 @@ private:
|
||||
std::string clientToken_;
|
||||
std::string approvalRules_;
|
||||
std::string description_;
|
||||
std::vector<std::string> rejectedPatches_;
|
||||
std::string regionId_;
|
||||
std::string rejectedPatchesAction_;
|
||||
std::string name_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct PatchBaseline
|
||||
{
|
||||
std::string rejectedPatchesAction;
|
||||
std::string updatedBy;
|
||||
std::string description;
|
||||
std::string createdBy;
|
||||
@@ -44,6 +45,7 @@ namespace AlibabaCloud
|
||||
std::string approvalRules;
|
||||
std::string name;
|
||||
std::string shareType;
|
||||
std::vector<std::string> rejectedPatches;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -61,6 +61,17 @@ void CreatePatchBaselineRequest::setOperationSystem(const std::string &operation
|
||||
setParameter(std::string("OperationSystem"), operationSystem);
|
||||
}
|
||||
|
||||
std::vector<CreatePatchBaselineRequest::std::string> CreatePatchBaselineRequest::getRejectedPatches() const {
|
||||
return rejectedPatches_;
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setRejectedPatches(const std::vector<CreatePatchBaselineRequest::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 CreatePatchBaselineRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -70,6 +81,15 @@ void CreatePatchBaselineRequest::setRegionId(const std::string ®ionId) {
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -60,6 +60,11 @@ void CreatePatchBaselineResult::parse(const std::string &payload)
|
||||
patchBaseline_.id = patchBaselineNode["Id"].asString();
|
||||
if(!patchBaselineNode["ShareType"].isNull())
|
||||
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
|
||||
if(!patchBaselineNode["RejectedPatchesAction"].isNull())
|
||||
patchBaseline_.rejectedPatchesAction = patchBaselineNode["RejectedPatchesAction"].asString();
|
||||
auto allRejectedPatches = patchBaselineNode["RejectedPatches"]["RejectedPatches"];
|
||||
for (auto value : allRejectedPatches)
|
||||
patchBaseline_.rejectedPatches.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,6 +43,15 @@ void GenerateExecutionPolicyRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string GenerateExecutionPolicyRequest::getRamRole() const {
|
||||
return ramRole_;
|
||||
}
|
||||
|
||||
void GenerateExecutionPolicyRequest::setRamRole(const std::string &ramRole) {
|
||||
ramRole_ = ramRole;
|
||||
setParameter(std::string("RamRole"), ramRole);
|
||||
}
|
||||
|
||||
std::string GenerateExecutionPolicyRequest::getTemplateName() const {
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
@@ -41,6 +41,8 @@ void GenerateExecutionPolicyResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Policy"].isNull())
|
||||
policy_ = value["Policy"].asString();
|
||||
if(!value["MissingPolicy"].isNull())
|
||||
missingPolicy_ = value["MissingPolicy"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -49,3 +51,8 @@ std::string GenerateExecutionPolicyResult::getPolicy()const
|
||||
return policy_;
|
||||
}
|
||||
|
||||
std::string GenerateExecutionPolicyResult::getMissingPolicy()const
|
||||
{
|
||||
return missingPolicy_;
|
||||
}
|
||||
|
||||
|
||||
@@ -67,6 +67,8 @@ void GetParametersByPathResult::parse(const std::string &payload)
|
||||
parametersObject.id = valueParametersParameter["Id"].asString();
|
||||
if(!valueParametersParameter["ShareType"].isNull())
|
||||
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
|
||||
if(!valueParametersParameter["Tags"].isNull())
|
||||
parametersObject.tags = valueParametersParameter["Tags"].asString();
|
||||
parameters_.push_back(parametersObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
|
||||
@@ -62,6 +62,11 @@ void GetPatchBaselineResult::parse(const std::string &payload)
|
||||
patchBaseline_.id = patchBaselineNode["Id"].asString();
|
||||
if(!patchBaselineNode["ShareType"].isNull())
|
||||
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
|
||||
if(!patchBaselineNode["RejectedPatchesAction"].isNull())
|
||||
patchBaseline_.rejectedPatchesAction = patchBaselineNode["RejectedPatchesAction"].asString();
|
||||
auto allRejectedPatches = patchBaselineNode["RejectedPatches"]["RejectedPatches"];
|
||||
for (auto value : allRejectedPatches)
|
||||
patchBaseline_.rejectedPatches.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -61,15 +61,6 @@ void ListApplicationGroupsRequest::setResourceId(const std::string &resourceId)
|
||||
setParameter(std::string("ResourceId"), resourceId);
|
||||
}
|
||||
|
||||
std::string ListApplicationGroupsRequest::getProduct() const {
|
||||
return product_;
|
||||
}
|
||||
|
||||
void ListApplicationGroupsRequest::setProduct(const std::string &product) {
|
||||
product_ = product;
|
||||
setParameter(std::string("Product"), product);
|
||||
}
|
||||
|
||||
std::string ListApplicationGroupsRequest::getDeployRegionId() const {
|
||||
return deployRegionId_;
|
||||
}
|
||||
|
||||
@@ -79,3 +79,12 @@ void ListApplicationsRequest::setMaxResults(int maxResults) {
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListApplicationsRequest::getApplicationType() const {
|
||||
return applicationType_;
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setApplicationType(const std::string &applicationType) {
|
||||
applicationType_ = applicationType;
|
||||
setParameter(std::string("ApplicationType"), applicationType);
|
||||
}
|
||||
|
||||
|
||||
@@ -55,6 +55,8 @@ void ListApplicationsResult::parse(const std::string &payload)
|
||||
applicationsObject.name = valueApplicationsApplication["Name"].asString();
|
||||
if(!valueApplicationsApplication["CreateDate"].isNull())
|
||||
applicationsObject.createDate = valueApplicationsApplication["CreateDate"].asString();
|
||||
if(!valueApplicationsApplication["ApplicationType"].isNull())
|
||||
applicationsObject.applicationType = valueApplicationsApplication["ApplicationType"].asString();
|
||||
applications_.push_back(applicationsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
|
||||
@@ -43,6 +43,15 @@ void ListExecutionsRequest::setIncludeChildExecution(bool includeChildExecution)
|
||||
setParameter(std::string("IncludeChildExecution"), includeChildExecution ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getMode() const {
|
||||
return mode_;
|
||||
}
|
||||
@@ -124,6 +133,15 @@ void ListExecutionsRequest::setSortOrder(const std::string &sortOrder) {
|
||||
setParameter(std::string("SortOrder"), sortOrder);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getCategories() const {
|
||||
return categories_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setCategories(const std::string &categories) {
|
||||
categories_ = categories;
|
||||
setParameter(std::string("Categories"), categories);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
@@ -169,6 +187,15 @@ void ListExecutionsRequest::setParentExecutionId(const std::string &parentExecut
|
||||
setParameter(std::string("ParentExecutionId"), parentExecutionId);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getDepth() const {
|
||||
return depth_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setDepth(const std::string &depth) {
|
||||
depth_ = depth;
|
||||
setParameter(std::string("Depth"), depth);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getEndDateAfter() const {
|
||||
return endDateAfter_;
|
||||
}
|
||||
|
||||
@@ -103,6 +103,10 @@ void ListExecutionsResult::parse(const std::string &payload)
|
||||
executionsObject.ramRole = valueExecutionsExecution["RamRole"].asString();
|
||||
if(!valueExecutionsExecution["ResourceStatus"].isNull())
|
||||
executionsObject.resourceStatus = valueExecutionsExecution["ResourceStatus"].asString();
|
||||
if(!valueExecutionsExecution["LastTriggerStatusMessage"].isNull())
|
||||
executionsObject.lastTriggerStatusMessage = valueExecutionsExecution["LastTriggerStatusMessage"].asString();
|
||||
if(!valueExecutionsExecution["LastTriggerOutputs"].isNull())
|
||||
executionsObject.lastTriggerOutputs = valueExecutionsExecution["LastTriggerOutputs"].asString();
|
||||
auto allCurrentTasksNode = valueExecutionsExecution["CurrentTasks"]["CurrentTask"];
|
||||
for (auto valueExecutionsExecutionCurrentTasksCurrentTask : allCurrentTasksNode)
|
||||
{
|
||||
|
||||
@@ -88,6 +88,15 @@ void ListParametersRequest::setSortOrder(const std::string &sortOrder) {
|
||||
setParameter(std::string("SortOrder"), sortOrder);
|
||||
}
|
||||
|
||||
std::string ListParametersRequest::getShareType() const {
|
||||
return shareType_;
|
||||
}
|
||||
|
||||
void ListParametersRequest::setShareType(const std::string &shareType) {
|
||||
shareType_ = shareType;
|
||||
setParameter(std::string("ShareType"), shareType);
|
||||
}
|
||||
|
||||
std::string ListParametersRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void UpdateExecutionRequest::setClientToken(const std::string &clientToken) {
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string UpdateExecutionRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateExecutionRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string UpdateExecutionRequest::getExecutionId() const {
|
||||
return executionId_;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,17 @@ 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_;
|
||||
}
|
||||
@@ -61,6 +72,15 @@ void UpdatePatchBaselineRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string UpdatePatchBaselineRequest::getRejectedPatchesAction() const {
|
||||
return rejectedPatchesAction_;
|
||||
}
|
||||
|
||||
void UpdatePatchBaselineRequest::setRejectedPatchesAction(const std::string &rejectedPatchesAction) {
|
||||
rejectedPatchesAction_ = rejectedPatchesAction;
|
||||
setParameter(std::string("RejectedPatchesAction"), rejectedPatchesAction);
|
||||
}
|
||||
|
||||
std::string UpdatePatchBaselineRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
@@ -60,6 +60,11 @@ void UpdatePatchBaselineResult::parse(const std::string &payload)
|
||||
patchBaseline_.id = patchBaselineNode["Id"].asString();
|
||||
if(!patchBaselineNode["ShareType"].isNull())
|
||||
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
|
||||
if(!patchBaselineNode["RejectedPatchesAction"].isNull())
|
||||
patchBaseline_.rejectedPatchesAction = patchBaselineNode["RejectedPatchesAction"].asString();
|
||||
auto allRejectedPatches = patchBaselineNode["RejectedPatches"]["RejectedPatches"];
|
||||
for (auto value : allRejectedPatches)
|
||||
patchBaseline_.rejectedPatches.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user