Selaa lähdekoodia

Fix the result value of DeleteSiteMonitors.

sdk-team 6 vuotta sitten
vanhempi
sitoutus
f23788b801

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2020-01-16 Version 1.36.245
+- Fix the result value of DeleteSiteMonitors.
+
 2020-01-16 Version 1.36.244
 - Generated 2015-01-01 for `R-kvstore`.
 - Update DescribeAvailableResource.

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.244
+1.36.245

+ 6 - 2
cms/include/alibabacloud/cms/model/DeleteSiteMonitorsResult.h

@@ -32,13 +32,17 @@ namespace AlibabaCloud
 			class ALIBABACLOUD_CMS_EXPORT DeleteSiteMonitorsResult : public ServiceResult
 			{
 			public:
+				struct Data
+				{
+					int count;
+				};
 
 
 				DeleteSiteMonitorsResult();
 				explicit DeleteSiteMonitorsResult(const std::string &payload);
 				~DeleteSiteMonitorsResult();
 				std::string getMessage()const;
-				std::string getData()const;
+				Data getData()const;
 				std::string getCode()const;
 				std::string getSuccess()const;
 
@@ -46,7 +50,7 @@ namespace AlibabaCloud
 				void parse(const std::string &payload);
 			private:
 				std::string message_;
-				std::string data_;
+				Data data_;
 				std::string code_;
 				std::string success_;
 

+ 6 - 4
cms/include/alibabacloud/cms/model/DescribeMonitorGroupsResult.h

@@ -44,16 +44,18 @@ namespace AlibabaCloud
 						std::string key;
 					};
 					std::string groupName;
-					long dynamicTagGroupId;
 					std::vector<Resource::ContactGroup> contactGroups;
+					std::string dynamicTagRuleId;
+					long gmtModified;
+					std::string groupFounderTagValue;
+					long groupId;
+					std::string serviceId;
 					std::string type;
 					long gmtCreate;
 					std::string bindUrl;
-					long gmtModified;
+					std::string groupFounderTagKey;
 					std::vector<std::string> templateIds;
 					std::vector<Resource::Tag> tags;
-					long groupId;
-					std::string serviceId;
 				};
 
 

+ 4 - 3
cms/src/model/DeleteSiteMonitorsResult.cc

@@ -39,14 +39,15 @@ void DeleteSiteMonitorsResult::parse(const std::string &payload)
 	Json::Value value;
 	reader.parse(payload, value);
 	setRequestId(value["RequestId"].asString());
+	auto dataNode = value["Data"];
+	if(!dataNode["count"].isNull())
+		data_.count = std::stoi(dataNode["count"].asString());
 	if(!value["Code"].isNull())
 		code_ = value["Code"].asString();
 	if(!value["Message"].isNull())
 		message_ = value["Message"].asString();
 	if(!value["Success"].isNull())
 		success_ = value["Success"].asString();
-	if(!value["Data"].isNull())
-		data_ = value["Data"].asString();
 
 }
 
@@ -55,7 +56,7 @@ std::string DeleteSiteMonitorsResult::getMessage()const
 	return message_;
 }
 
-std::string DeleteSiteMonitorsResult::getData()const
+DeleteSiteMonitorsResult::Data DeleteSiteMonitorsResult::getData()const
 {
 	return data_;
 }

+ 6 - 2
cms/src/model/DescribeMonitorGroupsResult.cc

@@ -57,8 +57,12 @@ void DescribeMonitorGroupsResult::parse(const std::string &payload)
 			resourcesObject.gmtCreate = std::stol(valueResourcesResource["GmtCreate"].asString());
 		if(!valueResourcesResource["BindUrl"].isNull())
 			resourcesObject.bindUrl = valueResourcesResource["BindUrl"].asString();
-		if(!valueResourcesResource["DynamicTagGroupId"].isNull())
-			resourcesObject.dynamicTagGroupId = std::stol(valueResourcesResource["DynamicTagGroupId"].asString());
+		if(!valueResourcesResource["DynamicTagRuleId"].isNull())
+			resourcesObject.dynamicTagRuleId = valueResourcesResource["DynamicTagRuleId"].asString();
+		if(!valueResourcesResource["GroupFounderTagKey"].isNull())
+			resourcesObject.groupFounderTagKey = valueResourcesResource["GroupFounderTagKey"].asString();
+		if(!valueResourcesResource["GroupFounderTagValue"].isNull())
+			resourcesObject.groupFounderTagValue = valueResourcesResource["GroupFounderTagValue"].asString();
 		auto allContactGroupsNode = allResourcesNode["ContactGroups"]["ContactGroup"];
 		for (auto allResourcesNodeContactGroupsContactGroup : allContactGroupsNode)
 		{