Generated 2016-11-01 for live.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2020-10-26 Version: patch
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2020-10-26 Version: patch
|
||||
- Supported PaymentType for DescribeDnsProductInstance.
|
||||
|
||||
|
||||
@@ -415,8 +415,6 @@ set(live_public_header_model
|
||||
include/alibabacloud/live/model/StopLiveIndexResult.h
|
||||
include/alibabacloud/live/model/TagLiveResourcesRequest.h
|
||||
include/alibabacloud/live/model/TagLiveResourcesResult.h
|
||||
include/alibabacloud/live/model/TriggerRecordRequest.h
|
||||
include/alibabacloud/live/model/TriggerRecordResult.h
|
||||
include/alibabacloud/live/model/UnTagLiveResourcesRequest.h
|
||||
include/alibabacloud/live/model/UnTagLiveResourcesResult.h
|
||||
include/alibabacloud/live/model/UpdateBoardRequest.h
|
||||
@@ -842,8 +840,6 @@ set(live_src
|
||||
src/model/StopLiveIndexResult.cc
|
||||
src/model/TagLiveResourcesRequest.cc
|
||||
src/model/TagLiveResourcesResult.cc
|
||||
src/model/TriggerRecordRequest.cc
|
||||
src/model/TriggerRecordResult.cc
|
||||
src/model/UnTagLiveResourcesRequest.cc
|
||||
src/model/UnTagLiveResourcesResult.cc
|
||||
src/model/UpdateBoardRequest.cc
|
||||
|
||||
@@ -416,8 +416,6 @@
|
||||
#include "model/StopLiveIndexResult.h"
|
||||
#include "model/TagLiveResourcesRequest.h"
|
||||
#include "model/TagLiveResourcesResult.h"
|
||||
#include "model/TriggerRecordRequest.h"
|
||||
#include "model/TriggerRecordResult.h"
|
||||
#include "model/UnTagLiveResourcesRequest.h"
|
||||
#include "model/UnTagLiveResourcesResult.h"
|
||||
#include "model/UpdateBoardRequest.h"
|
||||
@@ -1046,9 +1044,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::TagLiveResourcesResult> TagLiveResourcesOutcome;
|
||||
typedef std::future<TagLiveResourcesOutcome> TagLiveResourcesOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::TagLiveResourcesRequest&, const TagLiveResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagLiveResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::TriggerRecordResult> TriggerRecordOutcome;
|
||||
typedef std::future<TriggerRecordOutcome> TriggerRecordOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::TriggerRecordRequest&, const TriggerRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TriggerRecordAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnTagLiveResourcesResult> UnTagLiveResourcesOutcome;
|
||||
typedef std::future<UnTagLiveResourcesOutcome> UnTagLiveResourcesOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::UnTagLiveResourcesRequest&, const UnTagLiveResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnTagLiveResourcesAsyncHandler;
|
||||
@@ -1687,9 +1682,6 @@ namespace AlibabaCloud
|
||||
TagLiveResourcesOutcome tagLiveResources(const Model::TagLiveResourcesRequest &request)const;
|
||||
void tagLiveResourcesAsync(const Model::TagLiveResourcesRequest& request, const TagLiveResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TagLiveResourcesOutcomeCallable tagLiveResourcesCallable(const Model::TagLiveResourcesRequest& request) const;
|
||||
TriggerRecordOutcome triggerRecord(const Model::TriggerRecordRequest &request)const;
|
||||
void triggerRecordAsync(const Model::TriggerRecordRequest& request, const TriggerRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TriggerRecordOutcomeCallable triggerRecordCallable(const Model::TriggerRecordRequest& request) const;
|
||||
UnTagLiveResourcesOutcome unTagLiveResources(const Model::UnTagLiveResourcesRequest &request)const;
|
||||
void unTagLiveResourcesAsync(const Model::UnTagLiveResourcesRequest& request, const UnTagLiveResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnTagLiveResourcesOutcomeCallable unTagLiveResourcesCallable(const Model::UnTagLiveResourcesRequest& request) const;
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
* 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_LIVE_MODEL_TRIGGERRECORDREQUEST_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_TRIGGERRECORDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Live
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LIVE_EXPORT TriggerRecordRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TriggerRecordRequest();
|
||||
~TriggerRecordRequest();
|
||||
|
||||
int getSource()const;
|
||||
void setSource(int source);
|
||||
std::string getUserData()const;
|
||||
void setUserData(const std::string& userData);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string getStreamName()const;
|
||||
void setStreamName(const std::string& streamName);
|
||||
std::string getAvMode()const;
|
||||
void setAvMode(const std::string& avMode);
|
||||
std::string getStorePath()const;
|
||||
void setStorePath(const std::string& storePath);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getForceTranscode()const;
|
||||
void setForceTranscode(const std::string& forceTranscode);
|
||||
bool getNeedRecord()const;
|
||||
void setNeedRecord(bool needRecord);
|
||||
|
||||
private:
|
||||
int source_;
|
||||
std::string userData_;
|
||||
std::string appName_;
|
||||
std::string streamName_;
|
||||
std::string avMode_;
|
||||
std::string storePath_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
std::string forceTranscode_;
|
||||
bool needRecord_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_TRIGGERRECORDREQUEST_H_
|
||||
@@ -1,53 +0,0 @@
|
||||
/*
|
||||
* 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_LIVE_MODEL_TRIGGERRECORDRESULT_H_
|
||||
#define ALIBABACLOUD_LIVE_MODEL_TRIGGERRECORDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Live
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LIVE_EXPORT TriggerRecordResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
TriggerRecordResult();
|
||||
explicit TriggerRecordResult(const std::string &payload);
|
||||
~TriggerRecordResult();
|
||||
std::string getTaskId()const;
|
||||
std::string getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
std::string result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_TRIGGERRECORDRESULT_H_
|
||||
@@ -7143,42 +7143,6 @@ LiveClient::TagLiveResourcesOutcomeCallable LiveClient::tagLiveResourcesCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::TriggerRecordOutcome LiveClient::triggerRecord(const TriggerRecordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TriggerRecordOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TriggerRecordOutcome(TriggerRecordResult(outcome.result()));
|
||||
else
|
||||
return TriggerRecordOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::triggerRecordAsync(const TriggerRecordRequest& request, const TriggerRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, triggerRecord(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::TriggerRecordOutcomeCallable LiveClient::triggerRecordCallable(const TriggerRecordRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TriggerRecordOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->triggerRecord(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::UnTagLiveResourcesOutcome LiveClient::unTagLiveResources(const UnTagLiveResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,139 +0,0 @@
|
||||
/*
|
||||
* 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/live/model/TriggerRecordRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::TriggerRecordRequest;
|
||||
|
||||
TriggerRecordRequest::TriggerRecordRequest() :
|
||||
RpcServiceRequest("live", "2016-11-01", "TriggerRecord")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TriggerRecordRequest::~TriggerRecordRequest()
|
||||
{}
|
||||
|
||||
int TriggerRecordRequest::getSource()const
|
||||
{
|
||||
return source_;
|
||||
}
|
||||
|
||||
void TriggerRecordRequest::setSource(int source)
|
||||
{
|
||||
source_ = source;
|
||||
setParameter("Source", std::to_string(source));
|
||||
}
|
||||
|
||||
std::string TriggerRecordRequest::getUserData()const
|
||||
{
|
||||
return userData_;
|
||||
}
|
||||
|
||||
void TriggerRecordRequest::setUserData(const std::string& userData)
|
||||
{
|
||||
userData_ = userData;
|
||||
setParameter("UserData", userData);
|
||||
}
|
||||
|
||||
std::string TriggerRecordRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void TriggerRecordRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string TriggerRecordRequest::getStreamName()const
|
||||
{
|
||||
return streamName_;
|
||||
}
|
||||
|
||||
void TriggerRecordRequest::setStreamName(const std::string& streamName)
|
||||
{
|
||||
streamName_ = streamName;
|
||||
setParameter("StreamName", streamName);
|
||||
}
|
||||
|
||||
std::string TriggerRecordRequest::getAvMode()const
|
||||
{
|
||||
return avMode_;
|
||||
}
|
||||
|
||||
void TriggerRecordRequest::setAvMode(const std::string& avMode)
|
||||
{
|
||||
avMode_ = avMode;
|
||||
setParameter("AvMode", avMode);
|
||||
}
|
||||
|
||||
std::string TriggerRecordRequest::getStorePath()const
|
||||
{
|
||||
return storePath_;
|
||||
}
|
||||
|
||||
void TriggerRecordRequest::setStorePath(const std::string& storePath)
|
||||
{
|
||||
storePath_ = storePath;
|
||||
setParameter("StorePath", storePath);
|
||||
}
|
||||
|
||||
std::string TriggerRecordRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void TriggerRecordRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long TriggerRecordRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void TriggerRecordRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string TriggerRecordRequest::getForceTranscode()const
|
||||
{
|
||||
return forceTranscode_;
|
||||
}
|
||||
|
||||
void TriggerRecordRequest::setForceTranscode(const std::string& forceTranscode)
|
||||
{
|
||||
forceTranscode_ = forceTranscode;
|
||||
setParameter("ForceTranscode", forceTranscode);
|
||||
}
|
||||
|
||||
bool TriggerRecordRequest::getNeedRecord()const
|
||||
{
|
||||
return needRecord_;
|
||||
}
|
||||
|
||||
void TriggerRecordRequest::setNeedRecord(bool needRecord)
|
||||
{
|
||||
needRecord_ = needRecord;
|
||||
setParameter("NeedRecord", needRecord ? "true" : "false");
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* 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/live/model/TriggerRecordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
TriggerRecordResult::TriggerRecordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TriggerRecordResult::TriggerRecordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TriggerRecordResult::~TriggerRecordResult()
|
||||
{}
|
||||
|
||||
void TriggerRecordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string TriggerRecordResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string TriggerRecordResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user