Generated 2016-11-01 for live.

This commit is contained in:
sdk-team
2024-12-06 09:15:03 +00:00
parent fe745e81c4
commit 43d3080407
16 changed files with 934 additions and 1 deletions

View File

@@ -8763,6 +8763,42 @@ LiveClient::DescribeLiveUserTagsOutcomeCallable LiveClient::describeLiveUserTags
return task->get_future();
}
LiveClient::DescribeLiveVerifyContentOutcome LiveClient::describeLiveVerifyContent(const DescribeLiveVerifyContentRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeLiveVerifyContentOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeLiveVerifyContentOutcome(DescribeLiveVerifyContentResult(outcome.result()));
else
return DescribeLiveVerifyContentOutcome(outcome.error());
}
void LiveClient::describeLiveVerifyContentAsync(const DescribeLiveVerifyContentRequest& request, const DescribeLiveVerifyContentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeLiveVerifyContent(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeLiveVerifyContentOutcomeCallable LiveClient::describeLiveVerifyContentCallable(const DescribeLiveVerifyContentRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeLiveVerifyContentOutcome()>>(
[this, request]()
{
return this->describeLiveVerifyContent(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeMeterLiveBypassDurationOutcome LiveClient::describeMeterLiveBypassDuration(const DescribeMeterLiveBypassDurationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -10959,6 +10995,42 @@ LiveClient::ListRtcMPUTaskDetailOutcomeCallable LiveClient::listRtcMPUTaskDetail
return task->get_future();
}
LiveClient::LiveUpstreamQosDataOutcome LiveClient::liveUpstreamQosData(const LiveUpstreamQosDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return LiveUpstreamQosDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return LiveUpstreamQosDataOutcome(LiveUpstreamQosDataResult(outcome.result()));
else
return LiveUpstreamQosDataOutcome(outcome.error());
}
void LiveClient::liveUpstreamQosDataAsync(const LiveUpstreamQosDataRequest& request, const LiveUpstreamQosDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, liveUpstreamQosData(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::LiveUpstreamQosDataOutcomeCallable LiveClient::liveUpstreamQosDataCallable(const LiveUpstreamQosDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<LiveUpstreamQosDataOutcome()>>(
[this, request]()
{
return this->liveUpstreamQosData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::MiguLivePullToPushStartOutcome LiveClient::miguLivePullToPushStart(const MiguLivePullToPushStartRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -13443,6 +13515,42 @@ LiveClient::StopRtcAsrTaskOutcomeCallable LiveClient::stopRtcAsrTaskCallable(con
return task->get_future();
}
LiveClient::TagLiveResourcesOutcome LiveClient::tagLiveResources(const TagLiveResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TagLiveResourcesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TagLiveResourcesOutcome(TagLiveResourcesResult(outcome.result()));
else
return TagLiveResourcesOutcome(outcome.error());
}
void LiveClient::tagLiveResourcesAsync(const TagLiveResourcesRequest& request, const TagLiveResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, tagLiveResources(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::TagLiveResourcesOutcomeCallable LiveClient::tagLiveResourcesCallable(const TagLiveResourcesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TagLiveResourcesOutcome()>>(
[this, request]()
{
return this->tagLiveResources(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::UnbanLiveMessageGroupOutcome LiveClient::unbanLiveMessageGroup(const UnbanLiveMessageGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,45 @@
/*
* 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/DescribeLiveVerifyContentRequest.h>
using AlibabaCloud::Live::Model::DescribeLiveVerifyContentRequest;
DescribeLiveVerifyContentRequest::DescribeLiveVerifyContentRequest()
: RpcServiceRequest("live", "2016-11-01", "DescribeLiveVerifyContent") {
setMethod(HttpRequest::Method::Post);
}
DescribeLiveVerifyContentRequest::~DescribeLiveVerifyContentRequest() {}
std::string DescribeLiveVerifyContentRequest::getDomainName() const {
return domainName_;
}
void DescribeLiveVerifyContentRequest::setDomainName(const std::string &domainName) {
domainName_ = domainName;
setParameter(std::string("DomainName"), domainName);
}
long DescribeLiveVerifyContentRequest::getOwnerId() const {
return ownerId_;
}
void DescribeLiveVerifyContentRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

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/live/model/DescribeLiveVerifyContentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveVerifyContentResult::DescribeLiveVerifyContentResult() :
ServiceResult()
{}
DescribeLiveVerifyContentResult::DescribeLiveVerifyContentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveVerifyContentResult::~DescribeLiveVerifyContentResult()
{}
void DescribeLiveVerifyContentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Content"].isNull())
content_ = value["Content"].asString();
}
std::string DescribeLiveVerifyContentResult::getContent()const
{
return content_;
}

View File

@@ -0,0 +1,119 @@
/*
* 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/LiveUpstreamQosDataRequest.h>
using AlibabaCloud::Live::Model::LiveUpstreamQosDataRequest;
LiveUpstreamQosDataRequest::LiveUpstreamQosDataRequest()
: RpcServiceRequest("live", "2016-11-01", "LiveUpstreamQosData") {
setMethod(HttpRequest::Method::Post);
}
LiveUpstreamQosDataRequest::~LiveUpstreamQosDataRequest() {}
std::string LiveUpstreamQosDataRequest::getCdnDomains() const {
return cdnDomains_;
}
void LiveUpstreamQosDataRequest::setCdnDomains(const std::string &cdnDomains) {
cdnDomains_ = cdnDomains;
setParameter(std::string("CdnDomains"), cdnDomains);
}
std::string LiveUpstreamQosDataRequest::getStartTime() const {
return startTime_;
}
void LiveUpstreamQosDataRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
std::string LiveUpstreamQosDataRequest::getCdnProvinces() const {
return cdnProvinces_;
}
void LiveUpstreamQosDataRequest::setCdnProvinces(const std::string &cdnProvinces) {
cdnProvinces_ = cdnProvinces;
setParameter(std::string("CdnProvinces"), cdnProvinces);
}
std::string LiveUpstreamQosDataRequest::getKwaiSidcs() const {
return kwaiSidcs_;
}
void LiveUpstreamQosDataRequest::setKwaiSidcs(const std::string &kwaiSidcs) {
kwaiSidcs_ = kwaiSidcs;
setParameter(std::string("KwaiSidcs"), kwaiSidcs);
}
std::vector<LiveUpstreamQosDataRequest::int> LiveUpstreamQosDataRequest::getKwaiTsc() const {
return kwaiTsc_;
}
void LiveUpstreamQosDataRequest::setKwaiTsc(const std::vector<LiveUpstreamQosDataRequest::int> &kwaiTsc) {
kwaiTsc_ = kwaiTsc;
for(int dep1 = 0; dep1 != kwaiTsc.size(); dep1++) {
setParameter(std::string("KwaiTsc") + "." + std::to_string(dep1 + 1), std::to_string(kwaiTsc[dep1]));
}
}
std::string LiveUpstreamQosDataRequest::getUpstreamDomains() const {
return upstreamDomains_;
}
void LiveUpstreamQosDataRequest::setUpstreamDomains(const std::string &upstreamDomains) {
upstreamDomains_ = upstreamDomains;
setParameter(std::string("UpstreamDomains"), upstreamDomains);
}
std::string LiveUpstreamQosDataRequest::getEndTime() const {
return endTime_;
}
void LiveUpstreamQosDataRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
long LiveUpstreamQosDataRequest::getOwnerId() const {
return ownerId_;
}
void LiveUpstreamQosDataRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string LiveUpstreamQosDataRequest::getCdnIsps() const {
return cdnIsps_;
}
void LiveUpstreamQosDataRequest::setCdnIsps(const std::string &cdnIsps) {
cdnIsps_ = cdnIsps;
setParameter(std::string("CdnIsps"), cdnIsps);
}
std::string LiveUpstreamQosDataRequest::getRegion() const {
return region_;
}
void LiveUpstreamQosDataRequest::setRegion(const std::string &region) {
region_ = region;
setParameter(std::string("Region"), region);
}

View File

@@ -0,0 +1,113 @@
/*
* 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/LiveUpstreamQosDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
LiveUpstreamQosDataResult::LiveUpstreamQosDataResult() :
ServiceResult()
{}
LiveUpstreamQosDataResult::LiveUpstreamQosDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
LiveUpstreamQosDataResult::~LiveUpstreamQosDataResult()
{}
void LiveUpstreamQosDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["CdnDomain"].isNull())
dataObject.cdnDomain = valueDataDataItem["CdnDomain"].asString();
if(!valueDataDataItem["UpstreamDomain"].isNull())
dataObject.upstreamDomain = valueDataDataItem["UpstreamDomain"].asString();
if(!valueDataDataItem["KwaiSidc"].isNull())
dataObject.kwaiSidc = valueDataDataItem["KwaiSidc"].asString();
if(!valueDataDataItem["KwaiTsc"].isNull())
dataObject.kwaiTsc = std::stol(valueDataDataItem["KwaiTsc"].asString());
if(!valueDataDataItem["CdnIsp"].isNull())
dataObject.cdnIsp = valueDataDataItem["CdnIsp"].asString();
if(!valueDataDataItem["CdnProvince"].isNull())
dataObject.cdnProvince = valueDataDataItem["CdnProvince"].asString();
if(!valueDataDataItem["CdnOcid"].isNull())
dataObject.cdnOcid = valueDataDataItem["CdnOcid"].asString();
auto allDetailDataNode = valueDataDataItem["DetailData"]["DetailDataItem"];
for (auto valueDataDataItemDetailDataDetailDataItem : allDetailDataNode)
{
DataItem::DetailDataItem detailDataObject;
if(!valueDataDataItemDetailDataDetailDataItem["Timestamp"].isNull())
detailDataObject.timestamp = valueDataDataItemDetailDataDetailDataItem["Timestamp"].asString();
if(!valueDataDataItemDetailDataDetailDataItem["ConnectDur"].isNull())
detailDataObject.connectDur = std::stol(valueDataDataItemDetailDataDetailDataItem["ConnectDur"].asString());
if(!valueDataDataItemDetailDataDetailDataItem["FirstDataDur"].isNull())
detailDataObject.firstDataDur = std::stol(valueDataDataItemDetailDataDetailDataItem["FirstDataDur"].asString());
if(!valueDataDataItemDetailDataDetailDataItem["FirstFrameDur"].isNull())
detailDataObject.firstFrameDur = std::stol(valueDataDataItemDetailDataDetailDataItem["FirstFrameDur"].asString());
if(!valueDataDataItemDetailDataDetailDataItem["ConnectFailedCount"].isNull())
detailDataObject.connectFailedCount = std::stol(valueDataDataItemDetailDataDetailDataItem["ConnectFailedCount"].asString());
if(!valueDataDataItemDetailDataDetailDataItem["FirstDataFailedCount"].isNull())
detailDataObject.firstDataFailedCount = std::stol(valueDataDataItemDetailDataDetailDataItem["FirstDataFailedCount"].asString());
if(!valueDataDataItemDetailDataDetailDataItem["StatusCode5Xx"].isNull())
detailDataObject.statusCode5Xx = std::stol(valueDataDataItemDetailDataDetailDataItem["StatusCode5Xx"].asString());
if(!valueDataDataItemDetailDataDetailDataItem["StatusCode4Xx"].isNull())
detailDataObject.statusCode4Xx = std::stol(valueDataDataItemDetailDataDetailDataItem["StatusCode4Xx"].asString());
if(!valueDataDataItemDetailDataDetailDataItem["StatusCode3Xx"].isNull())
detailDataObject.statusCode3Xx = std::stol(valueDataDataItemDetailDataDetailDataItem["StatusCode3Xx"].asString());
if(!valueDataDataItemDetailDataDetailDataItem["StatusCode2Xx"].isNull())
detailDataObject.statusCode2Xx = std::stol(valueDataDataItemDetailDataDetailDataItem["StatusCode2Xx"].asString());
if(!valueDataDataItemDetailDataDetailDataItem["FirstFrameSuccessCount"].isNull())
detailDataObject.firstFrameSuccessCount = std::stol(valueDataDataItemDetailDataDetailDataItem["FirstFrameSuccessCount"].asString());
if(!valueDataDataItemDetailDataDetailDataItem["Count"].isNull())
detailDataObject.count = std::stol(valueDataDataItemDetailDataDetailDataItem["Count"].asString());
dataObject.detailData.push_back(detailDataObject);
}
data_.push_back(dataObject);
}
if(!value["StartTime"].isNull())
startTime_ = value["StartTime"].asString();
if(!value["EndTime"].isNull())
endTime_ = value["EndTime"].asString();
}
std::string LiveUpstreamQosDataResult::getEndTime()const
{
return endTime_;
}
std::string LiveUpstreamQosDataResult::getStartTime()const
{
return startTime_;
}
std::vector<LiveUpstreamQosDataResult::DataItem> LiveUpstreamQosDataResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,67 @@
/*
* 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/TagLiveResourcesRequest.h>
using AlibabaCloud::Live::Model::TagLiveResourcesRequest;
TagLiveResourcesRequest::TagLiveResourcesRequest()
: RpcServiceRequest("live", "2016-11-01", "TagLiveResources") {
setMethod(HttpRequest::Method::Post);
}
TagLiveResourcesRequest::~TagLiveResourcesRequest() {}
std::vector<TagLiveResourcesRequest::Tag> TagLiveResourcesRequest::getTag() const {
return tag_;
}
void TagLiveResourcesRequest::setTag(const std::vector<TagLiveResourcesRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Key", tagObj.key);
setParameter(tagObjStr + ".Value", tagObj.value);
}
}
std::vector<std::string> TagLiveResourcesRequest::getResourceId() const {
return resourceId_;
}
void TagLiveResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
resourceId_ = resourceId;
}
long TagLiveResourcesRequest::getOwnerId() const {
return ownerId_;
}
void TagLiveResourcesRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string TagLiveResourcesRequest::getResourceType() const {
return resourceType_;
}
void TagLiveResourcesRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}

View File

@@ -0,0 +1,44 @@
/*
* 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/TagLiveResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
TagLiveResourcesResult::TagLiveResourcesResult() :
ServiceResult()
{}
TagLiveResourcesResult::TagLiveResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
TagLiveResourcesResult::~TagLiveResourcesResult()
{}
void TagLiveResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}