Fix the result value of DeleteSiteMonitors.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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_;
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user