Modify DescribeVodUserDomains api.
This commit is contained in:
@@ -28,24 +28,31 @@ namespace Vod {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_VOD_EXPORT ListAppInfoRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Tag {
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
ListAppInfoRequest();
|
||||
~ListAppInfoRequest();
|
||||
long getResourceRealOwnerId() const;
|
||||
void setResourceRealOwnerId(long resourceRealOwnerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
int getPageNo() const;
|
||||
void setPageNo(int pageNo);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
Tag getTag() const;
|
||||
void setTag(const Tag &tag);
|
||||
int getPageNo() const;
|
||||
void setPageNo(int pageNo);
|
||||
std::string getStatus() const;
|
||||
void setStatus(const std::string &status);
|
||||
|
||||
private:
|
||||
long resourceRealOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
int pageNo_;
|
||||
int pageSize_;
|
||||
Tag tag_;
|
||||
int pageNo_;
|
||||
std::string status_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -34,12 +34,18 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct AppInfo
|
||||
{
|
||||
struct TagsItem
|
||||
{
|
||||
std::string tagKey;
|
||||
std::string tagValue;
|
||||
};
|
||||
std::string status;
|
||||
std::string type;
|
||||
std::string description;
|
||||
std::string appId;
|
||||
std::string creationTime;
|
||||
std::string modificationTime;
|
||||
std::vector<AppInfo::TagsItem> tags;
|
||||
std::string appName;
|
||||
};
|
||||
|
||||
|
||||
@@ -43,15 +43,6 @@ void ListAppInfoRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
int ListAppInfoRequest::getPageNo() const {
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void ListAppInfoRequest::setPageNo(int pageNo) {
|
||||
pageNo_ = pageNo;
|
||||
setParameter(std::string("PageNo"), std::to_string(pageNo));
|
||||
}
|
||||
|
||||
int ListAppInfoRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
@@ -61,6 +52,25 @@ void ListAppInfoRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
ListAppInfoRequest::Tag ListAppInfoRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListAppInfoRequest::setTag(const ListAppInfoRequest::Tag &tag) {
|
||||
tag_ = tag;
|
||||
setParameter(std::string("Tag") + ".Value", tag.value);
|
||||
setParameter(std::string("Tag") + ".Key", tag.key);
|
||||
}
|
||||
|
||||
int ListAppInfoRequest::getPageNo() const {
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void ListAppInfoRequest::setPageNo(int pageNo) {
|
||||
pageNo_ = pageNo;
|
||||
setParameter(std::string("PageNo"), std::to_string(pageNo));
|
||||
}
|
||||
|
||||
std::string ListAppInfoRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
@@ -57,6 +57,16 @@ void ListAppInfoResult::parse(const std::string &payload)
|
||||
appInfoListObject.appId = valueAppInfoListAppInfo["AppId"].asString();
|
||||
if(!valueAppInfoListAppInfo["ModificationTime"].isNull())
|
||||
appInfoListObject.modificationTime = valueAppInfoListAppInfo["ModificationTime"].asString();
|
||||
auto allTagsNode = valueAppInfoListAppInfo["Tags"]["tagsItem"];
|
||||
for (auto valueAppInfoListAppInfoTagstagsItem : allTagsNode)
|
||||
{
|
||||
AppInfo::TagsItem tagsObject;
|
||||
if(!valueAppInfoListAppInfoTagstagsItem["TagKey"].isNull())
|
||||
tagsObject.tagKey = valueAppInfoListAppInfoTagstagsItem["TagKey"].asString();
|
||||
if(!valueAppInfoListAppInfoTagstagsItem["TagValue"].isNull())
|
||||
tagsObject.tagValue = valueAppInfoListAppInfoTagstagsItem["TagValue"].asString();
|
||||
appInfoListObject.tags.push_back(tagsObject);
|
||||
}
|
||||
appInfoList_.push_back(appInfoListObject);
|
||||
}
|
||||
if(!value["Total"].isNull())
|
||||
|
||||
Reference in New Issue
Block a user