Latest version for php.
This commit is contained in:
@@ -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();
|
||||
|
||||
72
vod/src/model/AddVodStorageForAppRequest.cc
Normal file
72
vod/src/model/AddVodStorageForAppRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
51
vod/src/model/AddVodStorageForAppResult.cc
Normal file
51
vod/src/model/AddVodStorageForAppResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user