From 6e83ebf5402ec4407624015b3b4b2b34e8a8b803 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 13 Dec 2023 03:46:26 +0000 Subject: [PATCH] Support Media StorageClass. --- VERSION | 2 +- vod/include/alibabacloud/vod/model/GetPlayInfoResult.h | 1 + .../vod/model/UpdateMediaStorageClassRequest.h | 3 +++ vod/src/model/GetPlayInfoResult.cc | 2 ++ vod/src/model/UpdateMediaStorageClassRequest.cc | 9 +++++++++ 5 files changed, 16 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 60b963215..e41d040cc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1823 \ No newline at end of file +1.36.1824 \ No newline at end of file diff --git a/vod/include/alibabacloud/vod/model/GetPlayInfoResult.h b/vod/include/alibabacloud/vod/model/GetPlayInfoResult.h index 1e965d33c..abd01c640 100644 --- a/vod/include/alibabacloud/vod/model/GetPlayInfoResult.h +++ b/vod/include/alibabacloud/vod/model/GetPlayInfoResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud std::string danMuURL; std::string videoId; std::string transcodeMode; + std::string storageClass; std::string creationTime; std::string title; std::string mediaType; diff --git a/vod/include/alibabacloud/vod/model/UpdateMediaStorageClassRequest.h b/vod/include/alibabacloud/vod/model/UpdateMediaStorageClassRequest.h index c6170c2b5..4f5c94e1e 100644 --- a/vod/include/alibabacloud/vod/model/UpdateMediaStorageClassRequest.h +++ b/vod/include/alibabacloud/vod/model/UpdateMediaStorageClassRequest.h @@ -38,12 +38,15 @@ public: void setMediaIds(const std::string &mediaIds); std::string getStorageClass() const; void setStorageClass(const std::string &storageClass); + bool getAllowUpdateWithoutTimeLimit() const; + void setAllowUpdateWithoutTimeLimit(bool allowUpdateWithoutTimeLimit); private: std::string restoreTier_; std::string scope_; std::string mediaIds_; std::string storageClass_; + bool allowUpdateWithoutTimeLimit_; }; } // namespace Model } // namespace Vod diff --git a/vod/src/model/GetPlayInfoResult.cc b/vod/src/model/GetPlayInfoResult.cc index e45e99a11..a01e4043c 100644 --- a/vod/src/model/GetPlayInfoResult.cc +++ b/vod/src/model/GetPlayInfoResult.cc @@ -120,6 +120,8 @@ void GetPlayInfoResult::parse(const std::string &payload) videoBase_.mediaType = videoBaseNode["MediaType"].asString(); if(!videoBaseNode["DanMuURL"].isNull()) videoBase_.danMuURL = videoBaseNode["DanMuURL"].asString(); + if(!videoBaseNode["StorageClass"].isNull()) + videoBase_.storageClass = videoBaseNode["StorageClass"].asString(); auto allThumbnailListNode = videoBaseNode["ThumbnailList"]["Thumbnail"]; for (auto videoBaseNodeThumbnailListThumbnail : allThumbnailListNode) { diff --git a/vod/src/model/UpdateMediaStorageClassRequest.cc b/vod/src/model/UpdateMediaStorageClassRequest.cc index 5c81ef515..094768db9 100644 --- a/vod/src/model/UpdateMediaStorageClassRequest.cc +++ b/vod/src/model/UpdateMediaStorageClassRequest.cc @@ -61,3 +61,12 @@ void UpdateMediaStorageClassRequest::setStorageClass(const std::string &storageC setParameter(std::string("StorageClass"), storageClass); } +bool UpdateMediaStorageClassRequest::getAllowUpdateWithoutTimeLimit() const { + return allowUpdateWithoutTimeLimit_; +} + +void UpdateMediaStorageClassRequest::setAllowUpdateWithoutTimeLimit(bool allowUpdateWithoutTimeLimit) { + allowUpdateWithoutTimeLimit_ = allowUpdateWithoutTimeLimit; + setParameter(std::string("AllowUpdateWithoutTimeLimit"), allowUpdateWithoutTimeLimit ? "true" : "false"); +} +