Bläddra i källkod

Fix parameter issues for label synchronization group.

sdk-team 6 år sedan
förälder
incheckning
6994be7a5e

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2020-01-15 Version 1.36.241
+- Fix parameter issues for label synchronization group.
+
 2020-01-13 Version 1.36.240
 - New API DescribeAvailableResource.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.240
+1.36.241

+ 0 - 1
cms/include/alibabacloud/cms/model/CreateDynamicTagGroupRequest.h

@@ -32,7 +32,6 @@ namespace AlibabaCloud
 			{
 				struct MatchExpress
 				{
-					std::string tagName;
 					std::string tagValue;
 					std::string tagValueMatchFunction;
 				};

+ 3 - 3
cms/include/alibabacloud/cms/model/DeleteDynamicTagGroupRequest.h

@@ -35,11 +35,11 @@ namespace AlibabaCloud
 				DeleteDynamicTagGroupRequest();
 				~DeleteDynamicTagGroupRequest();
 
-				std::string getDynamicTagGroupId()const;
-				void setDynamicTagGroupId(const std::string& dynamicTagGroupId);
+				std::string getDynamicTagRuleId()const;
+				void setDynamicTagRuleId(const std::string& dynamicTagRuleId);
 
             private:
-				std::string dynamicTagGroupId_;
+				std::string dynamicTagRuleId_;
 
 			};
 		}

+ 1 - 2
cms/include/alibabacloud/cms/model/DescribeDynamicTagRuleListResult.h

@@ -36,13 +36,12 @@ namespace AlibabaCloud
 				{
 					struct MatchExpressItem
 					{
-						std::string tagName;
 						std::string tagValue;
 						std::string tagValueMatchFunction;
 					};
-					std::string dynamicTagGroupId;
 					std::string status;
 					std::string matchExpressFilterRelation;
+					std::string dynamicTagRuleId;
 					std::vector<std::string> templateIdList;
 					std::string tagKey;
 					std::vector<TagGroup::MatchExpressItem> matchExpress;

+ 3 - 3
cms/include/alibabacloud/cms/model/DescribeMonitorGroupsRequest.h

@@ -44,6 +44,8 @@ namespace AlibabaCloud
 				void setSelectContactGroups(bool selectContactGroups);
 				bool getIncludeTemplateHistory()const;
 				void setIncludeTemplateHistory(bool includeTemplateHistory);
+				std::string getDynamicTagRuleId()const;
+				void setDynamicTagRuleId(const std::string& dynamicTagRuleId);
 				std::string getType()const;
 				void setType(const std::string& type);
 				int getPageNumber()const;
@@ -60,12 +62,11 @@ namespace AlibabaCloud
 				void setGroupName(const std::string& groupName);
 				std::string getInstanceId()const;
 				void setInstanceId(const std::string& instanceId);
-				std::string getDynamicTagGroupId()const;
-				void setDynamicTagGroupId(const std::string& dynamicTagGroupId);
 
             private:
 				bool selectContactGroups_;
 				bool includeTemplateHistory_;
+				std::string dynamicTagRuleId_;
 				std::string type_;
 				int pageNumber_;
 				int pageSize_;
@@ -74,7 +75,6 @@ namespace AlibabaCloud
 				std::string groupId_;
 				std::string groupName_;
 				std::string instanceId_;
-				std::string dynamicTagGroupId_;
 
 			};
 		}

+ 0 - 1
cms/src/model/CreateDynamicTagGroupRequest.cc

@@ -82,7 +82,6 @@ void CreateDynamicTagGroupRequest::setMatchExpress(const std::vector<MatchExpres
 	for(int dep1 = 0; dep1!= matchExpress.size(); dep1++) {
 		auto matchExpressObj = matchExpress.at(dep1);
 		std::string matchExpressObjStr = "MatchExpress." + std::to_string(dep1);
-		setCoreParameter(matchExpressObjStr + ".TagName", matchExpressObj.tagName);
 		setCoreParameter(matchExpressObjStr + ".TagValue", matchExpressObj.tagValue);
 		setCoreParameter(matchExpressObjStr + ".TagValueMatchFunction", matchExpressObj.tagValueMatchFunction);
 	}

+ 5 - 5
cms/src/model/DeleteDynamicTagGroupRequest.cc

@@ -27,14 +27,14 @@ DeleteDynamicTagGroupRequest::DeleteDynamicTagGroupRequest() :
 DeleteDynamicTagGroupRequest::~DeleteDynamicTagGroupRequest()
 {}
 
-std::string DeleteDynamicTagGroupRequest::getDynamicTagGroupId()const
+std::string DeleteDynamicTagGroupRequest::getDynamicTagRuleId()const
 {
-	return dynamicTagGroupId_;
+	return dynamicTagRuleId_;
 }
 
-void DeleteDynamicTagGroupRequest::setDynamicTagGroupId(const std::string& dynamicTagGroupId)
+void DeleteDynamicTagGroupRequest::setDynamicTagRuleId(const std::string& dynamicTagRuleId)
 {
-	dynamicTagGroupId_ = dynamicTagGroupId;
-	setCoreParameter("DynamicTagGroupId", dynamicTagGroupId);
+	dynamicTagRuleId_ = dynamicTagRuleId;
+	setCoreParameter("DynamicTagRuleId", dynamicTagRuleId);
 }
 

+ 2 - 4
cms/src/model/DescribeDynamicTagRuleListResult.cc

@@ -43,8 +43,8 @@ void DescribeDynamicTagRuleListResult::parse(const std::string &payload)
 	for (auto valueTagGroupListTagGroup : allTagGroupListNode)
 	{
 		TagGroup tagGroupListObject;
-		if(!valueTagGroupListTagGroup["DynamicTagGroupId"].isNull())
-			tagGroupListObject.dynamicTagGroupId = valueTagGroupListTagGroup["DynamicTagGroupId"].asString();
+		if(!valueTagGroupListTagGroup["DynamicTagRuleId"].isNull())
+			tagGroupListObject.dynamicTagRuleId = valueTagGroupListTagGroup["DynamicTagRuleId"].asString();
 		if(!valueTagGroupListTagGroup["TagKey"].isNull())
 			tagGroupListObject.tagKey = valueTagGroupListTagGroup["TagKey"].asString();
 		if(!valueTagGroupListTagGroup["RegionId"].isNull())
@@ -57,8 +57,6 @@ void DescribeDynamicTagRuleListResult::parse(const std::string &payload)
 		for (auto allTagGroupListNodeMatchExpressMatchExpressItem : allMatchExpressNode)
 		{
 			TagGroup::MatchExpressItem matchExpressObject;
-			if(!allTagGroupListNodeMatchExpressMatchExpressItem["TagName"].isNull())
-				matchExpressObject.tagName = allTagGroupListNodeMatchExpressMatchExpressItem["TagName"].asString();
 			if(!allTagGroupListNodeMatchExpressMatchExpressItem["TagValueMatchFunction"].isNull())
 				matchExpressObject.tagValueMatchFunction = allTagGroupListNodeMatchExpressMatchExpressItem["TagValueMatchFunction"].asString();
 			if(!allTagGroupListNodeMatchExpressMatchExpressItem["TagValue"].isNull())

+ 11 - 11
cms/src/model/DescribeMonitorGroupsRequest.cc

@@ -49,6 +49,17 @@ void DescribeMonitorGroupsRequest::setIncludeTemplateHistory(bool includeTemplat
 	setCoreParameter("IncludeTemplateHistory", includeTemplateHistory ? "true" : "false");
 }
 
+std::string DescribeMonitorGroupsRequest::getDynamicTagRuleId()const
+{
+	return dynamicTagRuleId_;
+}
+
+void DescribeMonitorGroupsRequest::setDynamicTagRuleId(const std::string& dynamicTagRuleId)
+{
+	dynamicTagRuleId_ = dynamicTagRuleId;
+	setCoreParameter("DynamicTagRuleId", dynamicTagRuleId);
+}
+
 std::string DescribeMonitorGroupsRequest::getType()const
 {
 	return type_;
@@ -142,14 +153,3 @@ void DescribeMonitorGroupsRequest::setInstanceId(const std::string& instanceId)
 	setCoreParameter("InstanceId", instanceId);
 }
 
-std::string DescribeMonitorGroupsRequest::getDynamicTagGroupId()const
-{
-	return dynamicTagGroupId_;
-}
-
-void DescribeMonitorGroupsRequest::setDynamicTagGroupId(const std::string& dynamicTagGroupId)
-{
-	dynamicTagGroupId_ = dynamicTagGroupId;
-	setCoreParameter("DynamicTagGroupId", dynamicTagGroupId);
-}
-