Compare commits

..

3 Commits

Author SHA1 Message Date
sdk-team
69cc6a27d1 Fix parameter issues for label synchronization group. 2020-01-15 14:15:28 +08:00
sdk-team
6994be7a5e Fix parameter issues for label synchronization group. 2020-01-15 14:14:04 +08:00
sdk-team
dba2a5a7c7 New API DescribeAvailableResource. 2020-01-13 17:57:42 +08:00
12 changed files with 49 additions and 31 deletions

View File

@@ -1,3 +1,12 @@
2020-01-15 Version 1.36.242
- Fix parameter issues for label synchronization group.
2020-01-15 Version 1.36.241
- Fix parameter issues for label synchronization group.
2020-01-13 Version 1.36.240
- New API DescribeAvailableResource.
2020-01-13 Version 1.36.239
- Add Dynamic Tag API.

View File

@@ -1 +1 @@
1.36.239
1.36.242

View File

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

View File

@@ -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_;
};
}

View File

@@ -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;

View File

@@ -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_;
};
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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())

View File

@@ -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);
}

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getInstanceChargeType()const;
void setInstanceChargeType(const std::string& instanceChargeType);
std::string getResourceOwnerAccount()const;
@@ -56,6 +58,7 @@ namespace AlibabaCloud
long resourceOwnerId_;
std::string accessKeyId_;
std::string securityToken_;
std::string regionId_;
std::string instanceChargeType_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;

View File

@@ -60,6 +60,17 @@ void DescribeAvailableResourceRequest::setSecurityToken(const std::string& secur
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeAvailableResourceRequest::getRegionId()const
{
return regionId_;
}
void DescribeAvailableResourceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DescribeAvailableResourceRequest::getInstanceChargeType()const
{
return instanceChargeType_;