From ccec5843c8e8c3bd2577e7e770113ed9823f15e6 Mon Sep 17 00:00:00 2001 From: "yixiong.jxy" Date: Thu, 11 Oct 2018 13:20:26 +0800 Subject: [PATCH] =?UTF-8?q?VOD=20SDK=20Auto=20Released=20By=20guzhaoyuan,V?= =?UTF-8?q?ersion=EF=BC=9A1.27.7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yixiong.jxy --- CHANGELOG | 5 + VERSION | 2 +- vod/.DS_Store | Bin 6148 -> 6148 bytes vod/CMakeLists.txt | 8 ++ vod/include/.DS_Store | Bin 0 -> 6148 bytes vod/include/alibabacloud/.DS_Store | Bin 0 -> 6148 bytes vod/include/alibabacloud/vod/.DS_Store | Bin 0 -> 6148 bytes vod/include/alibabacloud/vod/VodClient.h | 16 +++ vod/include/alibabacloud/vod/model/.DS_Store | Bin 0 -> 6148 bytes .../vod/model/DeleteMezzaninesRequest.h | 61 ++++++++++++ .../vod/model/DeleteMezzaninesResult.h | 53 ++++++++++ .../vod/model/GetAuditResultRequest.h | 18 ++++ .../vod/model/GetAuditResultResult.h | 3 + .../vod/model/GetPlayInfoRequest.h | 3 + .../vod/model/GetPlayInfoResult.h | 1 + .../vod/model/GetVideoPlayAuthRequest.h | 3 + .../vod/model/UpdateImageInfosRequest.h | 63 ++++++++++++ .../vod/model/UpdateImageInfosResult.h | 51 ++++++++++ vod/src/VodClient.cc | 72 ++++++++++++++ vod/src/model/.DS_Store | Bin 0 -> 6148 bytes vod/src/model/DeleteMezzaninesRequest.cc | 82 +++++++++++++++ vod/src/model/DeleteMezzaninesResult.cc | 61 ++++++++++++ vod/src/model/GetAuditResultRequest.cc | 66 +++++++++++++ vod/src/model/GetAuditResultResult.cc | 10 +- vod/src/model/GetPlayInfoRequest.cc | 11 +++ vod/src/model/GetPlayInfoResult.cc | 2 + vod/src/model/GetVideoPlayAuthRequest.cc | 11 +++ vod/src/model/UpdateImageInfosRequest.cc | 93 ++++++++++++++++++ vod/src/model/UpdateImageInfosResult.cc | 53 ++++++++++ 29 files changed, 745 insertions(+), 3 deletions(-) create mode 100644 vod/include/.DS_Store create mode 100644 vod/include/alibabacloud/.DS_Store create mode 100644 vod/include/alibabacloud/vod/.DS_Store create mode 100644 vod/include/alibabacloud/vod/model/.DS_Store create mode 100755 vod/include/alibabacloud/vod/model/DeleteMezzaninesRequest.h create mode 100755 vod/include/alibabacloud/vod/model/DeleteMezzaninesResult.h create mode 100755 vod/include/alibabacloud/vod/model/UpdateImageInfosRequest.h create mode 100755 vod/include/alibabacloud/vod/model/UpdateImageInfosResult.h create mode 100644 vod/src/model/.DS_Store create mode 100755 vod/src/model/DeleteMezzaninesRequest.cc create mode 100755 vod/src/model/DeleteMezzaninesResult.cc create mode 100755 vod/src/model/UpdateImageInfosRequest.cc create mode 100755 vod/src/model/UpdateImageInfosResult.cc diff --git a/CHANGELOG b/CHANGELOG index bc9868037..e3a0efa7f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +2018-10-11 Version: 1.27.7 +1, Add a new api called DeleteMezzanines to clear mezzanine infos and storages. +2, Add the field called PlayConfig to GetVideoPlayAuth and GetPlayInfo api request. +3, Add a new api called UpdateImageInfos to update image information. + 2018-10-09 Version: 1.27.6 1, v1.0.0-->v1.0.1 2, provider new region:beijing/shenzhen/zhangjiakou diff --git a/VERSION b/VERSION index 51959bdfc..59e9a5d95 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.27.6 \ No newline at end of file +1.27.7 \ No newline at end of file diff --git a/vod/.DS_Store b/vod/.DS_Store index 9a874b5768f336915163bb88cd434575b859f936..e0d9c9ed14685549f51b33584312fa082ed234d1 100644 GIT binary patch delta 134 zcmZoMXfc=|&e%3FQH+&?fq{WzVxovF6OaJ{AexbZL4bjwlp%#7HKjN?Cn&p3EB)0sxkP7PbHY diff --git a/vod/CMakeLists.txt b/vod/CMakeLists.txt index 13805653e..1841f2d7d 100755 --- a/vod/CMakeLists.txt +++ b/vod/CMakeLists.txt @@ -89,6 +89,8 @@ set(vod_public_header_model include/alibabacloud/vod/model/CreateUploadImageResult.h include/alibabacloud/vod/model/UpdateVideoInfoRequest.h include/alibabacloud/vod/model/UpdateVideoInfoResult.h + include/alibabacloud/vod/model/UpdateImageInfosRequest.h + include/alibabacloud/vod/model/UpdateImageInfosResult.h include/alibabacloud/vod/model/SearchMediaRequest.h include/alibabacloud/vod/model/SearchMediaResult.h include/alibabacloud/vod/model/DescribePlayTopVideosRequest.h @@ -147,6 +149,8 @@ set(vod_public_header_model include/alibabacloud/vod/model/GetOSSStatisResult.h include/alibabacloud/vod/model/SetAuditSecurityIpRequest.h include/alibabacloud/vod/model/SetAuditSecurityIpResult.h + include/alibabacloud/vod/model/DeleteMezzaninesRequest.h + include/alibabacloud/vod/model/DeleteMezzaninesResult.h include/alibabacloud/vod/model/AddEditingProjectRequest.h include/alibabacloud/vod/model/AddEditingProjectResult.h include/alibabacloud/vod/model/SubmitAIVideoSummaryJobRequest.h @@ -238,6 +242,8 @@ set(vod_src src/model/CreateUploadImageResult.cc src/model/UpdateVideoInfoRequest.cc src/model/UpdateVideoInfoResult.cc + src/model/UpdateImageInfosRequest.cc + src/model/UpdateImageInfosResult.cc src/model/SearchMediaRequest.cc src/model/SearchMediaResult.cc src/model/DescribePlayTopVideosRequest.cc @@ -296,6 +302,8 @@ set(vod_src src/model/GetOSSStatisResult.cc src/model/SetAuditSecurityIpRequest.cc src/model/SetAuditSecurityIpResult.cc + src/model/DeleteMezzaninesRequest.cc + src/model/DeleteMezzaninesResult.cc src/model/AddEditingProjectRequest.cc src/model/AddEditingProjectResult.cc src/model/SubmitAIVideoSummaryJobRequest.cc diff --git a/vod/include/.DS_Store b/vod/include/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..28ea856580d4afec89b1550950bb65d89be86597 GIT binary patch literal 6148 zcmeHKI|>3Z5S>vAK?_UET)`Uz(Gz$9KidckTZsKup39^8<^v+Doi_3YCNG)HOUNsB zc0@$i*JdTM5Roa|P;NF1&GyX)Hp++s;W*h6Ww+l6f_;4-C3!HXoWdYj!B=x8wZc>7q4|BNdmDrVEV<{91tr^EVbE literal 0 HcmV?d00001 diff --git a/vod/include/alibabacloud/.DS_Store b/vod/include/alibabacloud/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..284f7d3aa002a189eaa2ec0bfc57725ea57ec712 GIT binary patch literal 6148 zcmeH~Jr2S!425mVfW*>~F$)La1`&c2Z~+7zkvbrlb9A16778<}(6eNJu~Vz<8=6`~ zbpIH3BE5*L;6~Y6n3y8(sQ?xDGX->c zI34zQsXSXhUeD_1tlGN4LBAZ~?I!?<9mN~C8}^GWz?y79RABrOa2Xh=z)ux;0mkj9nDcwEnAi3o^*2#A0P zh`@>n#39b}f4`z<(xZrg2&{vEe;*3nwWhYN@#)|YEdX`PbQtH+OHhj^s5P~9Wrk+i zJy@1nv>~34a%#zaHMMo^<*;l%EbnaI#n7ym!wLhM)esFLAOZ^ln;swh{6EwG>i-ud z3PnH!o{WHPhmYaJm&&vC*Xw!yl3AZOIyJU)c=!om;79QrJ&fzcC)AqSx-vu4k3eA1 JAOinN;0{#P6N3N% literal 0 HcmV?d00001 diff --git a/vod/include/alibabacloud/vod/VodClient.h b/vod/include/alibabacloud/vod/VodClient.h index 965acea44..5daed5714 100755 --- a/vod/include/alibabacloud/vod/VodClient.h +++ b/vod/include/alibabacloud/vod/VodClient.h @@ -90,6 +90,8 @@ #include "model/CreateUploadImageResult.h" #include "model/UpdateVideoInfoRequest.h" #include "model/UpdateVideoInfoResult.h" +#include "model/UpdateImageInfosRequest.h" +#include "model/UpdateImageInfosResult.h" #include "model/SearchMediaRequest.h" #include "model/SearchMediaResult.h" #include "model/DescribePlayTopVideosRequest.h" @@ -148,6 +150,8 @@ #include "model/GetOSSStatisResult.h" #include "model/SetAuditSecurityIpRequest.h" #include "model/SetAuditSecurityIpResult.h" +#include "model/DeleteMezzaninesRequest.h" +#include "model/DeleteMezzaninesResult.h" #include "model/AddEditingProjectRequest.h" #include "model/AddEditingProjectResult.h" #include "model/SubmitAIVideoSummaryJobRequest.h" @@ -279,6 +283,9 @@ namespace AlibabaCloud typedef Outcome UpdateVideoInfoOutcome; typedef std::future UpdateVideoInfoOutcomeCallable; typedef std::function&)> UpdateVideoInfoAsyncHandler; + typedef Outcome UpdateImageInfosOutcome; + typedef std::future UpdateImageInfosOutcomeCallable; + typedef std::function&)> UpdateImageInfosAsyncHandler; typedef Outcome SearchMediaOutcome; typedef std::future SearchMediaOutcomeCallable; typedef std::function&)> SearchMediaAsyncHandler; @@ -366,6 +373,9 @@ namespace AlibabaCloud typedef Outcome SetAuditSecurityIpOutcome; typedef std::future SetAuditSecurityIpOutcomeCallable; typedef std::function&)> SetAuditSecurityIpAsyncHandler; + typedef Outcome DeleteMezzaninesOutcome; + typedef std::future DeleteMezzaninesOutcomeCallable; + typedef std::function&)> DeleteMezzaninesAsyncHandler; typedef Outcome AddEditingProjectOutcome; typedef std::future AddEditingProjectOutcomeCallable; typedef std::function&)> AddEditingProjectAsyncHandler; @@ -503,6 +513,9 @@ namespace AlibabaCloud UpdateVideoInfoOutcome updateVideoInfo(const Model::UpdateVideoInfoRequest &request)const; void updateVideoInfoAsync(const Model::UpdateVideoInfoRequest& request, const UpdateVideoInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateVideoInfoOutcomeCallable updateVideoInfoCallable(const Model::UpdateVideoInfoRequest& request) const; + UpdateImageInfosOutcome updateImageInfos(const Model::UpdateImageInfosRequest &request)const; + void updateImageInfosAsync(const Model::UpdateImageInfosRequest& request, const UpdateImageInfosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateImageInfosOutcomeCallable updateImageInfosCallable(const Model::UpdateImageInfosRequest& request) const; SearchMediaOutcome searchMedia(const Model::SearchMediaRequest &request)const; void searchMediaAsync(const Model::SearchMediaRequest& request, const SearchMediaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SearchMediaOutcomeCallable searchMediaCallable(const Model::SearchMediaRequest& request) const; @@ -590,6 +603,9 @@ namespace AlibabaCloud SetAuditSecurityIpOutcome setAuditSecurityIp(const Model::SetAuditSecurityIpRequest &request)const; void setAuditSecurityIpAsync(const Model::SetAuditSecurityIpRequest& request, const SetAuditSecurityIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetAuditSecurityIpOutcomeCallable setAuditSecurityIpCallable(const Model::SetAuditSecurityIpRequest& request) const; + DeleteMezzaninesOutcome deleteMezzanines(const Model::DeleteMezzaninesRequest &request)const; + void deleteMezzaninesAsync(const Model::DeleteMezzaninesRequest& request, const DeleteMezzaninesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMezzaninesOutcomeCallable deleteMezzaninesCallable(const Model::DeleteMezzaninesRequest& request) const; AddEditingProjectOutcome addEditingProject(const Model::AddEditingProjectRequest &request)const; void addEditingProjectAsync(const Model::AddEditingProjectRequest& request, const AddEditingProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddEditingProjectOutcomeCallable addEditingProjectCallable(const Model::AddEditingProjectRequest& request) const; diff --git a/vod/include/alibabacloud/vod/model/.DS_Store b/vod/include/alibabacloud/vod/model/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vod + { + namespace Model + { + class ALIBABACLOUD_VOD_EXPORT DeleteMezzaninesRequest : public RpcServiceRequest + { + + public: + DeleteMezzaninesRequest(); + ~DeleteMezzaninesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + bool getForce()const; + void setForce(bool force); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVideoIds()const; + void setVideoIds(const std::string& videoIds); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + bool force_; + long resourceRealOwnerId_; + long ownerId_; + std::string videoIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VOD_MODEL_DELETEMEZZANINESREQUEST_H_ \ No newline at end of file diff --git a/vod/include/alibabacloud/vod/model/DeleteMezzaninesResult.h b/vod/include/alibabacloud/vod/model/DeleteMezzaninesResult.h new file mode 100755 index 000000000..4c2915406 --- /dev/null +++ b/vod/include/alibabacloud/vod/model/DeleteMezzaninesResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VOD_MODEL_DELETEMEZZANINESRESULT_H_ +#define ALIBABACLOUD_VOD_MODEL_DELETEMEZZANINESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vod + { + namespace Model + { + class ALIBABACLOUD_VOD_EXPORT DeleteMezzaninesResult : public ServiceResult + { + public: + + + DeleteMezzaninesResult(); + explicit DeleteMezzaninesResult(const std::string &payload); + ~DeleteMezzaninesResult(); + std::vector getNonExistVideoIds()const; + std::vector getUnRemoveableVideoIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector nonExistVideoIds_; + std::vector unRemoveableVideoIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VOD_MODEL_DELETEMEZZANINESRESULT_H_ \ No newline at end of file diff --git a/vod/include/alibabacloud/vod/model/GetAuditResultRequest.h b/vod/include/alibabacloud/vod/model/GetAuditResultRequest.h index 0f7a836bb..c45220011 100755 --- a/vod/include/alibabacloud/vod/model/GetAuditResultRequest.h +++ b/vod/include/alibabacloud/vod/model/GetAuditResultRequest.h @@ -35,11 +35,29 @@ namespace AlibabaCloud GetAuditResultRequest(); ~GetAuditResultRequest(); + std::string getResourceOwnerId()const; + void setResourceOwnerId(const std::string& resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); std::string getVideoId()const; void setVideoId(const std::string& videoId); + std::string getOwnerId()const; + void setOwnerId(const std::string& ownerId); + std::string getMediaId()const; + void setMediaId(const std::string& mediaId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); private: + std::string resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; std::string videoId_; + std::string ownerId_; + std::string mediaId_; + std::string accessKeyId_; }; } diff --git a/vod/include/alibabacloud/vod/model/GetAuditResultResult.h b/vod/include/alibabacloud/vod/model/GetAuditResultResult.h index d9e9a6e00..480e99932 100755 --- a/vod/include/alibabacloud/vod/model/GetAuditResultResult.h +++ b/vod/include/alibabacloud/vod/model/GetAuditResultResult.h @@ -34,8 +34,11 @@ namespace AlibabaCloud public: struct AIAuditResult { + std::string abnormalModules; + std::string titleResult; std::string label; std::string terrorismResult; + std::string coverResult; std::string pornResult; }; diff --git a/vod/include/alibabacloud/vod/model/GetPlayInfoRequest.h b/vod/include/alibabacloud/vod/model/GetPlayInfoRequest.h index 47063324f..c8f867a64 100755 --- a/vod/include/alibabacloud/vod/model/GetPlayInfoRequest.h +++ b/vod/include/alibabacloud/vod/model/GetPlayInfoRequest.h @@ -57,6 +57,8 @@ namespace AlibabaCloud void setRand(const std::string& rand); std::string getReAuthInfo()const; void setReAuthInfo(const std::string& reAuthInfo); + std::string getPlayConfig()const; + void setPlayConfig(const std::string& playConfig); std::string getOutputType()const; void setOutputType(const std::string& outputType); std::string getDefinition()const; @@ -78,6 +80,7 @@ namespace AlibabaCloud std::string resultType_; std::string rand_; std::string reAuthInfo_; + std::string playConfig_; std::string outputType_; std::string definition_; long authTimeout_; diff --git a/vod/include/alibabacloud/vod/model/GetPlayInfoResult.h b/vod/include/alibabacloud/vod/model/GetPlayInfoResult.h index 5d7fb3b16..c70803d32 100755 --- a/vod/include/alibabacloud/vod/model/GetPlayInfoResult.h +++ b/vod/include/alibabacloud/vod/model/GetPlayInfoResult.h @@ -47,6 +47,7 @@ namespace AlibabaCloud std::string coverURL; std::string duration; std::vector thumbnailList; + std::string outputType; }; struct PlayInfo { diff --git a/vod/include/alibabacloud/vod/model/GetVideoPlayAuthRequest.h b/vod/include/alibabacloud/vod/model/GetVideoPlayAuthRequest.h index d96cf5ffd..e50fd8c9d 100755 --- a/vod/include/alibabacloud/vod/model/GetVideoPlayAuthRequest.h +++ b/vod/include/alibabacloud/vod/model/GetVideoPlayAuthRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getReAuthInfo()const; void setReAuthInfo(const std::string& reAuthInfo); + std::string getPlayConfig()const; + void setPlayConfig(const std::string& playConfig); long getAuthInfoTimeout()const; void setAuthInfoTimeout(long authInfoTimeout); std::string getVideoId()const; @@ -52,6 +54,7 @@ namespace AlibabaCloud long resourceOwnerId_; std::string resourceOwnerAccount_; std::string reAuthInfo_; + std::string playConfig_; long authInfoTimeout_; std::string videoId_; long ownerId_; diff --git a/vod/include/alibabacloud/vod/model/UpdateImageInfosRequest.h b/vod/include/alibabacloud/vod/model/UpdateImageInfosRequest.h new file mode 100755 index 000000000..7abe85f5d --- /dev/null +++ b/vod/include/alibabacloud/vod/model/UpdateImageInfosRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VOD_MODEL_UPDATEIMAGEINFOSREQUEST_H_ +#define ALIBABACLOUD_VOD_MODEL_UPDATEIMAGEINFOSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vod + { + namespace Model + { + class ALIBABACLOUD_VOD_EXPORT UpdateImageInfosRequest : public RpcServiceRequest + { + + public: + UpdateImageInfosRequest(); + ~UpdateImageInfosRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getUpdateContent()const; + void setUpdateContent(const std::string& updateContent); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getResourceRealOwnerId()const; + void setResourceRealOwnerId(long resourceRealOwnerId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string updateContent_; + std::string resourceOwnerAccount_; + long resourceRealOwnerId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VOD_MODEL_UPDATEIMAGEINFOSREQUEST_H_ \ No newline at end of file diff --git a/vod/include/alibabacloud/vod/model/UpdateImageInfosResult.h b/vod/include/alibabacloud/vod/model/UpdateImageInfosResult.h new file mode 100755 index 000000000..3e0f646c6 --- /dev/null +++ b/vod/include/alibabacloud/vod/model/UpdateImageInfosResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VOD_MODEL_UPDATEIMAGEINFOSRESULT_H_ +#define ALIBABACLOUD_VOD_MODEL_UPDATEIMAGEINFOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vod + { + namespace Model + { + class ALIBABACLOUD_VOD_EXPORT UpdateImageInfosResult : public ServiceResult + { + public: + + + UpdateImageInfosResult(); + explicit UpdateImageInfosResult(const std::string &payload); + ~UpdateImageInfosResult(); + std::vector getNonExistImageIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector nonExistImageIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VOD_MODEL_UPDATEIMAGEINFOSRESULT_H_ \ No newline at end of file diff --git a/vod/src/VodClient.cc b/vod/src/VodClient.cc index e3e93afd2..0fca964bd 100755 --- a/vod/src/VodClient.cc +++ b/vod/src/VodClient.cc @@ -1275,6 +1275,42 @@ VodClient::UpdateVideoInfoOutcomeCallable VodClient::updateVideoInfoCallable(con return task->get_future(); } +VodClient::UpdateImageInfosOutcome VodClient::updateImageInfos(const UpdateImageInfosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateImageInfosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateImageInfosOutcome(UpdateImageInfosResult(outcome.result())); + else + return UpdateImageInfosOutcome(outcome.error()); +} + +void VodClient::updateImageInfosAsync(const UpdateImageInfosRequest& request, const UpdateImageInfosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateImageInfos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::UpdateImageInfosOutcomeCallable VodClient::updateImageInfosCallable(const UpdateImageInfosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateImageInfos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::SearchMediaOutcome VodClient::searchMedia(const SearchMediaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2319,6 +2355,42 @@ VodClient::SetAuditSecurityIpOutcomeCallable VodClient::setAuditSecurityIpCallab return task->get_future(); } +VodClient::DeleteMezzaninesOutcome VodClient::deleteMezzanines(const DeleteMezzaninesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteMezzaninesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteMezzaninesOutcome(DeleteMezzaninesResult(outcome.result())); + else + return DeleteMezzaninesOutcome(outcome.error()); +} + +void VodClient::deleteMezzaninesAsync(const DeleteMezzaninesRequest& request, const DeleteMezzaninesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteMezzanines(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VodClient::DeleteMezzaninesOutcomeCallable VodClient::deleteMezzaninesCallable(const DeleteMezzaninesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteMezzanines(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VodClient::AddEditingProjectOutcome VodClient::addEditingProject(const AddEditingProjectRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/vod/src/model/.DS_Store b/vod/src/model/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 + +using AlibabaCloud::Vod::Model::DeleteMezzaninesRequest; + +DeleteMezzaninesRequest::DeleteMezzaninesRequest() : + RpcServiceRequest("vod", "2017-03-21", "DeleteMezzanines") +{} + +DeleteMezzaninesRequest::~DeleteMezzaninesRequest() +{} + +long DeleteMezzaninesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteMezzaninesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteMezzaninesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteMezzaninesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +bool DeleteMezzaninesRequest::getForce()const +{ + return force_; +} + +void DeleteMezzaninesRequest::setForce(bool force) +{ + force_ = force; + setParameter("Force", std::to_string(force)); +} + +long DeleteMezzaninesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteMezzaninesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteMezzaninesRequest::getVideoIds()const +{ + return videoIds_; +} + +void DeleteMezzaninesRequest::setVideoIds(const std::string& videoIds) +{ + videoIds_ = videoIds; + setParameter("VideoIds", videoIds); +} + diff --git a/vod/src/model/DeleteMezzaninesResult.cc b/vod/src/model/DeleteMezzaninesResult.cc new file mode 100755 index 000000000..f8ec7d0c5 --- /dev/null +++ b/vod/src/model/DeleteMezzaninesResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vod; +using namespace AlibabaCloud::Vod::Model; + +DeleteMezzaninesResult::DeleteMezzaninesResult() : + ServiceResult() +{} + +DeleteMezzaninesResult::DeleteMezzaninesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteMezzaninesResult::~DeleteMezzaninesResult() +{} + +void DeleteMezzaninesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allNonExistVideoIds = value["NonExistVideoIds"]["VideoId"]; + for (const auto &item : allNonExistVideoIds) + nonExistVideoIds_.push_back(item.asString()); + auto allUnRemoveableVideoIds = value["UnRemoveableVideoIds"]["VideoId"]; + for (const auto &item : allUnRemoveableVideoIds) + unRemoveableVideoIds_.push_back(item.asString()); + +} + +std::vector DeleteMezzaninesResult::getNonExistVideoIds()const +{ + return nonExistVideoIds_; +} + +std::vector DeleteMezzaninesResult::getUnRemoveableVideoIds()const +{ + return unRemoveableVideoIds_; +} + diff --git a/vod/src/model/GetAuditResultRequest.cc b/vod/src/model/GetAuditResultRequest.cc index 62a2dff01..c555c62ed 100755 --- a/vod/src/model/GetAuditResultRequest.cc +++ b/vod/src/model/GetAuditResultRequest.cc @@ -25,6 +25,39 @@ GetAuditResultRequest::GetAuditResultRequest() : GetAuditResultRequest::~GetAuditResultRequest() {} +std::string GetAuditResultRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetAuditResultRequest::setResourceOwnerId(const std::string& resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", resourceOwnerId); +} + +std::string GetAuditResultRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void GetAuditResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string GetAuditResultRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void GetAuditResultRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + std::string GetAuditResultRequest::getVideoId()const { return videoId_; @@ -36,3 +69,36 @@ void GetAuditResultRequest::setVideoId(const std::string& videoId) setParameter("VideoId", videoId); } +std::string GetAuditResultRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetAuditResultRequest::setOwnerId(const std::string& ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", ownerId); +} + +std::string GetAuditResultRequest::getMediaId()const +{ + return mediaId_; +} + +void GetAuditResultRequest::setMediaId(const std::string& mediaId) +{ + mediaId_ = mediaId; + setParameter("MediaId", mediaId); +} + +std::string GetAuditResultRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetAuditResultRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/vod/src/model/GetAuditResultResult.cc b/vod/src/model/GetAuditResultResult.cc index 0a0f4dd30..deab4b6ad 100755 --- a/vod/src/model/GetAuditResultResult.cc +++ b/vod/src/model/GetAuditResultResult.cc @@ -41,12 +41,18 @@ void GetAuditResultResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); auto aIAuditResultNode = value["AIAuditResult"]; + if(!aIAuditResultNode["AbnormalModules"].isNull()) + aIAuditResult_.abnormalModules = aIAuditResultNode["AbnormalModules"].asString(); if(!aIAuditResultNode["Label"].isNull()) aIAuditResult_.label = aIAuditResultNode["Label"].asString(); - if(!aIAuditResultNode["TerrorismResult"].isNull()) - aIAuditResult_.terrorismResult = aIAuditResultNode["TerrorismResult"].asString(); if(!aIAuditResultNode["PornResult"].isNull()) aIAuditResult_.pornResult = aIAuditResultNode["PornResult"].asString(); + if(!aIAuditResultNode["TerrorismResult"].isNull()) + aIAuditResult_.terrorismResult = aIAuditResultNode["TerrorismResult"].asString(); + if(!aIAuditResultNode["TitleResult"].isNull()) + aIAuditResult_.titleResult = aIAuditResultNode["TitleResult"].asString(); + if(!aIAuditResultNode["CoverResult"].isNull()) + aIAuditResult_.coverResult = aIAuditResultNode["CoverResult"].asString(); } diff --git a/vod/src/model/GetPlayInfoRequest.cc b/vod/src/model/GetPlayInfoRequest.cc index 04247174f..d1d9aeb59 100755 --- a/vod/src/model/GetPlayInfoRequest.cc +++ b/vod/src/model/GetPlayInfoRequest.cc @@ -146,6 +146,17 @@ void GetPlayInfoRequest::setReAuthInfo(const std::string& reAuthInfo) setParameter("ReAuthInfo", reAuthInfo); } +std::string GetPlayInfoRequest::getPlayConfig()const +{ + return playConfig_; +} + +void GetPlayInfoRequest::setPlayConfig(const std::string& playConfig) +{ + playConfig_ = playConfig; + setParameter("PlayConfig", playConfig); +} + std::string GetPlayInfoRequest::getOutputType()const { return outputType_; diff --git a/vod/src/model/GetPlayInfoResult.cc b/vod/src/model/GetPlayInfoResult.cc index 583798a35..9adcf7509 100755 --- a/vod/src/model/GetPlayInfoResult.cc +++ b/vod/src/model/GetPlayInfoResult.cc @@ -89,6 +89,8 @@ void GetPlayInfoResult::parse(const std::string &payload) playInfoList_.push_back(playInfoListObject); } auto videoBaseNode = value["VideoBase"]; + if(!videoBaseNode["OutputType"].isNull()) + videoBase_.outputType = videoBaseNode["OutputType"].asString(); if(!videoBaseNode["CoverURL"].isNull()) videoBase_.coverURL = videoBaseNode["CoverURL"].asString(); if(!videoBaseNode["Duration"].isNull()) diff --git a/vod/src/model/GetVideoPlayAuthRequest.cc b/vod/src/model/GetVideoPlayAuthRequest.cc index 8a014837f..dd0236874 100755 --- a/vod/src/model/GetVideoPlayAuthRequest.cc +++ b/vod/src/model/GetVideoPlayAuthRequest.cc @@ -58,6 +58,17 @@ void GetVideoPlayAuthRequest::setReAuthInfo(const std::string& reAuthInfo) setParameter("ReAuthInfo", reAuthInfo); } +std::string GetVideoPlayAuthRequest::getPlayConfig()const +{ + return playConfig_; +} + +void GetVideoPlayAuthRequest::setPlayConfig(const std::string& playConfig) +{ + playConfig_ = playConfig; + setParameter("PlayConfig", playConfig); +} + long GetVideoPlayAuthRequest::getAuthInfoTimeout()const { return authInfoTimeout_; diff --git a/vod/src/model/UpdateImageInfosRequest.cc b/vod/src/model/UpdateImageInfosRequest.cc new file mode 100755 index 000000000..4a4d45179 --- /dev/null +++ b/vod/src/model/UpdateImageInfosRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vod::Model::UpdateImageInfosRequest; + +UpdateImageInfosRequest::UpdateImageInfosRequest() : + RpcServiceRequest("vod", "2017-03-21", "UpdateImageInfos") +{} + +UpdateImageInfosRequest::~UpdateImageInfosRequest() +{} + +long UpdateImageInfosRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateImageInfosRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpdateImageInfosRequest::getUpdateContent()const +{ + return updateContent_; +} + +void UpdateImageInfosRequest::setUpdateContent(const std::string& updateContent) +{ + updateContent_ = updateContent; + setParameter("UpdateContent", updateContent); +} + +std::string UpdateImageInfosRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpdateImageInfosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long UpdateImageInfosRequest::getResourceRealOwnerId()const +{ + return resourceRealOwnerId_; +} + +void UpdateImageInfosRequest::setResourceRealOwnerId(long resourceRealOwnerId) +{ + resourceRealOwnerId_ = resourceRealOwnerId; + setParameter("ResourceRealOwnerId", std::to_string(resourceRealOwnerId)); +} + +long UpdateImageInfosRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateImageInfosRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdateImageInfosRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateImageInfosRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/vod/src/model/UpdateImageInfosResult.cc b/vod/src/model/UpdateImageInfosResult.cc new file mode 100755 index 000000000..e5a7e2e86 --- /dev/null +++ b/vod/src/model/UpdateImageInfosResult.cc @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vod; +using namespace AlibabaCloud::Vod::Model; + +UpdateImageInfosResult::UpdateImageInfosResult() : + ServiceResult() +{} + +UpdateImageInfosResult::UpdateImageInfosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateImageInfosResult::~UpdateImageInfosResult() +{} + +void UpdateImageInfosResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allNonExistImageIds = value["NonExistImageIds"]["ImageId"]; + for (const auto &item : allNonExistImageIds) + nonExistImageIds_.push_back(item.asString()); + +} + +std::vector UpdateImageInfosResult::getNonExistImageIds()const +{ + return nonExistImageIds_; +} +