VOD SDK Auto Released By guzhaoyuan,Version:1.27.7

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
This commit is contained in:
yixiong.jxy
2018-10-11 13:20:26 +08:00
parent 6182017316
commit ccec5843c8
29 changed files with 745 additions and 3 deletions

View File

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

View File

@@ -1 +1 @@
1.27.6
1.27.7

BIN
vod/.DS_Store vendored

Binary file not shown.

View File

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

BIN
vod/include/.DS_Store vendored Normal file

Binary file not shown.

BIN
vod/include/alibabacloud/.DS_Store vendored Normal file

Binary file not shown.

BIN
vod/include/alibabacloud/vod/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -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<Error, Model::UpdateVideoInfoResult> UpdateVideoInfoOutcome;
typedef std::future<UpdateVideoInfoOutcome> UpdateVideoInfoOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::UpdateVideoInfoRequest&, const UpdateVideoInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateVideoInfoAsyncHandler;
typedef Outcome<Error, Model::UpdateImageInfosResult> UpdateImageInfosOutcome;
typedef std::future<UpdateImageInfosOutcome> UpdateImageInfosOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::UpdateImageInfosRequest&, const UpdateImageInfosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateImageInfosAsyncHandler;
typedef Outcome<Error, Model::SearchMediaResult> SearchMediaOutcome;
typedef std::future<SearchMediaOutcome> SearchMediaOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::SearchMediaRequest&, const SearchMediaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchMediaAsyncHandler;
@@ -366,6 +373,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::SetAuditSecurityIpResult> SetAuditSecurityIpOutcome;
typedef std::future<SetAuditSecurityIpOutcome> SetAuditSecurityIpOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::SetAuditSecurityIpRequest&, const SetAuditSecurityIpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetAuditSecurityIpAsyncHandler;
typedef Outcome<Error, Model::DeleteMezzaninesResult> DeleteMezzaninesOutcome;
typedef std::future<DeleteMezzaninesOutcome> DeleteMezzaninesOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::DeleteMezzaninesRequest&, const DeleteMezzaninesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMezzaninesAsyncHandler;
typedef Outcome<Error, Model::AddEditingProjectResult> AddEditingProjectOutcome;
typedef std::future<AddEditingProjectOutcome> AddEditingProjectOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::AddEditingProjectRequest&, const AddEditingProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
AddEditingProjectOutcomeCallable addEditingProjectCallable(const Model::AddEditingProjectRequest& request) const;

Binary file not shown.

View File

@@ -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.
*/
#ifndef ALIBABACLOUD_VOD_MODEL_DELETEMEZZANINESREQUEST_H_
#define ALIBABACLOUD_VOD_MODEL_DELETEMEZZANINESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vod/VodExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vod/VodExport.h>
namespace AlibabaCloud
{
namespace Vod
{
namespace Model
{
class ALIBABACLOUD_VOD_EXPORT DeleteMezzaninesResult : public ServiceResult
{
public:
DeleteMezzaninesResult();
explicit DeleteMezzaninesResult(const std::string &payload);
~DeleteMezzaninesResult();
std::vector<std::string> getNonExistVideoIds()const;
std::vector<std::string> getUnRemoveableVideoIds()const;
protected:
void parse(const std::string &payload);
private:
std::vector<std::string> nonExistVideoIds_;
std::vector<std::string> unRemoveableVideoIds_;
};
}
}
}
#endif // !ALIBABACLOUD_VOD_MODEL_DELETEMEZZANINESRESULT_H_

View File

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

View File

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

View File

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

View File

@@ -47,6 +47,7 @@ namespace AlibabaCloud
std::string coverURL;
std::string duration;
std::vector<Thumbnail> thumbnailList;
std::string outputType;
};
struct PlayInfo
{

View File

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

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vod/VodExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vod/VodExport.h>
namespace AlibabaCloud
{
namespace Vod
{
namespace Model
{
class ALIBABACLOUD_VOD_EXPORT UpdateImageInfosResult : public ServiceResult
{
public:
UpdateImageInfosResult();
explicit UpdateImageInfosResult(const std::string &payload);
~UpdateImageInfosResult();
std::vector<std::string> getNonExistImageIds()const;
protected:
void parse(const std::string &payload);
private:
std::vector<std::string> nonExistImageIds_;
};
}
}
}
#endif // !ALIBABACLOUD_VOD_MODEL_UPDATEIMAGEINFOSRESULT_H_

View File

@@ -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<const AsyncCallerContext>& 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<std::packaged_task<UpdateImageInfosOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DeleteMezzaninesOutcome()>>(
[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();

BIN
vod/src/model/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1,82 @@
/*
* 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 <alibabacloud/vod/model/DeleteMezzaninesRequest.h>
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);
}

View File

@@ -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 <alibabacloud/vod/model/DeleteMezzaninesResult.h>
#include <json/json.h>
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<std::string> DeleteMezzaninesResult::getNonExistVideoIds()const
{
return nonExistVideoIds_;
}
std::vector<std::string> DeleteMezzaninesResult::getUnRemoveableVideoIds()const
{
return unRemoveableVideoIds_;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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 <alibabacloud/vod/model/UpdateImageInfosRequest.h>
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);
}

View File

@@ -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 <alibabacloud/vod/model/UpdateImageInfosResult.h>
#include <json/json.h>
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<std::string> UpdateImageInfosResult::getNonExistImageIds()const
{
return nonExistImageIds_;
}