Latest version for php.

This commit is contained in:
sdk-team
2023-11-15 10:36:12 +00:00
parent d93b632d3b
commit a0e90cc606
10 changed files with 289 additions and 1 deletions

View File

@@ -33,6 +33,8 @@ set(vod_public_header_model
include/alibabacloud/vod/model/AddTranscodeTemplateGroupResult.h
include/alibabacloud/vod/model/AddVodDomainRequest.h
include/alibabacloud/vod/model/AddVodDomainResult.h
include/alibabacloud/vod/model/AddVodStorageForAppRequest.h
include/alibabacloud/vod/model/AddVodStorageForAppResult.h
include/alibabacloud/vod/model/AddVodTemplateRequest.h
include/alibabacloud/vod/model/AddVodTemplateResult.h
include/alibabacloud/vod/model/AddWatermarkRequest.h
@@ -342,6 +344,8 @@ set(vod_src
src/model/AddTranscodeTemplateGroupResult.cc
src/model/AddVodDomainRequest.cc
src/model/AddVodDomainResult.cc
src/model/AddVodStorageForAppRequest.cc
src/model/AddVodStorageForAppResult.cc
src/model/AddVodTemplateRequest.cc
src/model/AddVodTemplateResult.cc
src/model/AddWatermarkRequest.cc

View File

@@ -34,6 +34,8 @@
#include "model/AddTranscodeTemplateGroupResult.h"
#include "model/AddVodDomainRequest.h"
#include "model/AddVodDomainResult.h"
#include "model/AddVodStorageForAppRequest.h"
#include "model/AddVodStorageForAppResult.h"
#include "model/AddVodTemplateRequest.h"
#include "model/AddVodTemplateResult.h"
#include "model/AddWatermarkRequest.h"
@@ -355,6 +357,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AddVodDomainResult> AddVodDomainOutcome;
typedef std::future<AddVodDomainOutcome> AddVodDomainOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::AddVodDomainRequest&, const AddVodDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddVodDomainAsyncHandler;
typedef Outcome<Error, Model::AddVodStorageForAppResult> AddVodStorageForAppOutcome;
typedef std::future<AddVodStorageForAppOutcome> AddVodStorageForAppOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::AddVodStorageForAppRequest&, const AddVodStorageForAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddVodStorageForAppAsyncHandler;
typedef Outcome<Error, Model::AddVodTemplateResult> AddVodTemplateOutcome;
typedef std::future<AddVodTemplateOutcome> AddVodTemplateOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::AddVodTemplateRequest&, const AddVodTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddVodTemplateAsyncHandler;
@@ -819,6 +824,9 @@ namespace AlibabaCloud
AddVodDomainOutcome addVodDomain(const Model::AddVodDomainRequest &request)const;
void addVodDomainAsync(const Model::AddVodDomainRequest& request, const AddVodDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddVodDomainOutcomeCallable addVodDomainCallable(const Model::AddVodDomainRequest& request) const;
AddVodStorageForAppOutcome addVodStorageForApp(const Model::AddVodStorageForAppRequest &request)const;
void addVodStorageForAppAsync(const Model::AddVodStorageForAppRequest& request, const AddVodStorageForAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddVodStorageForAppOutcomeCallable addVodStorageForAppCallable(const Model::AddVodStorageForAppRequest& request) const;
AddVodTemplateOutcome addVodTemplate(const Model::AddVodTemplateRequest &request)const;
void addVodTemplateAsync(const Model::AddVodTemplateRequest& request, const AddVodTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddVodTemplateOutcomeCallable addVodTemplateCallable(const Model::AddVodTemplateRequest& request) const;

View File

@@ -0,0 +1,54 @@
/*
* 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_ADDVODSTORAGEFORAPPREQUEST_H_
#define ALIBABACLOUD_VOD_MODEL_ADDVODSTORAGEFORAPPREQUEST_H_
#include <alibabacloud/vod/VodExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Vod {
namespace Model {
class ALIBABACLOUD_VOD_EXPORT AddVodStorageForAppRequest : public RpcServiceRequest {
public:
AddVodStorageForAppRequest();
~AddVodStorageForAppRequest();
long getResourceRealOwnerId() const;
void setResourceRealOwnerId(long resourceRealOwnerId);
std::string getStorageType() const;
void setStorageType(const std::string &storageType);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getStorageLocation() const;
void setStorageLocation(const std::string &storageLocation);
std::string getAppId() const;
void setAppId(const std::string &appId);
private:
long resourceRealOwnerId_;
std::string storageType_;
std::string accessKeyId_;
std::string storageLocation_;
std::string appId_;
};
} // namespace Model
} // namespace Vod
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_VOD_MODEL_ADDVODSTORAGEFORAPPREQUEST_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_ADDVODSTORAGEFORAPPRESULT_H_
#define ALIBABACLOUD_VOD_MODEL_ADDVODSTORAGEFORAPPRESULT_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 AddVodStorageForAppResult : public ServiceResult
{
public:
AddVodStorageForAppResult();
explicit AddVodStorageForAppResult(const std::string &payload);
~AddVodStorageForAppResult();
std::string getStorageLocation()const;
protected:
void parse(const std::string &payload);
private:
std::string storageLocation_;
};
}
}
}
#endif // !ALIBABACLOUD_VOD_MODEL_ADDVODSTORAGEFORAPPRESULT_H_

View File

@@ -52,6 +52,8 @@ public:
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getAppId() const;
void setAppId(const std::string &appId);
std::string getTimeline() const;
void setTimeline(const std::string &timeline);
@@ -67,6 +69,7 @@ private:
std::string mediaMetadata_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string appId_;
std::string timeline_;
};
} // namespace Model

View File

@@ -267,6 +267,42 @@ VodClient::AddVodDomainOutcomeCallable VodClient::addVodDomainCallable(const Add
return task->get_future();
}
VodClient::AddVodStorageForAppOutcome VodClient::addVodStorageForApp(const AddVodStorageForAppRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddVodStorageForAppOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddVodStorageForAppOutcome(AddVodStorageForAppResult(outcome.result()));
else
return AddVodStorageForAppOutcome(outcome.error());
}
void VodClient::addVodStorageForAppAsync(const AddVodStorageForAppRequest& request, const AddVodStorageForAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addVodStorageForApp(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::AddVodStorageForAppOutcomeCallable VodClient::addVodStorageForAppCallable(const AddVodStorageForAppRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddVodStorageForAppOutcome()>>(
[this, request]()
{
return this->addVodStorageForApp(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::AddVodTemplateOutcome VodClient::addVodTemplate(const AddVodTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,72 @@
/*
* 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/AddVodStorageForAppRequest.h>
using AlibabaCloud::Vod::Model::AddVodStorageForAppRequest;
AddVodStorageForAppRequest::AddVodStorageForAppRequest()
: RpcServiceRequest("vod", "2017-03-21", "AddVodStorageForApp") {
setMethod(HttpRequest::Method::Post);
}
AddVodStorageForAppRequest::~AddVodStorageForAppRequest() {}
long AddVodStorageForAppRequest::getResourceRealOwnerId() const {
return resourceRealOwnerId_;
}
void AddVodStorageForAppRequest::setResourceRealOwnerId(long resourceRealOwnerId) {
resourceRealOwnerId_ = resourceRealOwnerId;
setParameter(std::string("ResourceRealOwnerId"), std::to_string(resourceRealOwnerId));
}
std::string AddVodStorageForAppRequest::getStorageType() const {
return storageType_;
}
void AddVodStorageForAppRequest::setStorageType(const std::string &storageType) {
storageType_ = storageType;
setParameter(std::string("StorageType"), storageType);
}
std::string AddVodStorageForAppRequest::getAccessKeyId() const {
return accessKeyId_;
}
void AddVodStorageForAppRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string AddVodStorageForAppRequest::getStorageLocation() const {
return storageLocation_;
}
void AddVodStorageForAppRequest::setStorageLocation(const std::string &storageLocation) {
storageLocation_ = storageLocation;
setParameter(std::string("StorageLocation"), storageLocation);
}
std::string AddVodStorageForAppRequest::getAppId() const {
return appId_;
}
void AddVodStorageForAppRequest::setAppId(const std::string &appId) {
appId_ = appId;
setParameter(std::string("AppId"), appId);
}

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.
*/
#include <alibabacloud/vod/model/AddVodStorageForAppResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
AddVodStorageForAppResult::AddVodStorageForAppResult() :
ServiceResult()
{}
AddVodStorageForAppResult::AddVodStorageForAppResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddVodStorageForAppResult::~AddVodStorageForAppResult()
{}
void AddVodStorageForAppResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["StorageLocation"].isNull())
storageLocation_ = value["StorageLocation"].asString();
}
std::string AddVodStorageForAppResult::getStorageLocation()const
{
return storageLocation_;
}

View File

@@ -124,6 +124,15 @@ void ProduceEditingProjectVideoRequest::setOwnerId(long ownerId) {
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string ProduceEditingProjectVideoRequest::getAppId() const {
return appId_;
}
void ProduceEditingProjectVideoRequest::setAppId(const std::string &appId) {
appId_ = appId;
setParameter(std::string("AppId"), appId);
}
std::string ProduceEditingProjectVideoRequest::getTimeline() const {
return timeline_;
}