Add DescribeLiveDomainCertificateInfo.

This commit is contained in:
sdk-team
2020-08-19 18:02:00 +08:00
parent 9693807164
commit 7ac2669922
35 changed files with 1333 additions and 208 deletions

View File

@@ -126,3 +126,14 @@ void AddLiveAppSnapshotConfigRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddLiveAppSnapshotConfigRequest::getCallback()const
{
return callback_;
}
void AddLiveAppSnapshotConfigRequest::setCallback(const std::string& callback)
{
callback_ = callback;
setParameter("Callback", callback);
}

View File

@@ -60,6 +60,17 @@ void AddLivePullStreamInfoConfigRequest::setStreamName(const std::string& stream
setParameter("StreamName", streamName);
}
std::string AddLivePullStreamInfoConfigRequest::getPullAlways()const
{
return pullAlways_;
}
void AddLivePullStreamInfoConfigRequest::setPullAlways(const std::string& pullAlways)
{
pullAlways_ = pullAlways;
setParameter("PullAlways", pullAlways);
}
std::string AddLivePullStreamInfoConfigRequest::getDomainName()const
{
return domainName_;

View File

@@ -0,0 +1,227 @@
/*
* 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/AddRtsLiveStreamTranscodeRequest.h>
using AlibabaCloud::Live::Model::AddRtsLiveStreamTranscodeRequest;
AddRtsLiveStreamTranscodeRequest::AddRtsLiveStreamTranscodeRequest() :
RpcServiceRequest("live", "2016-11-01", "AddRtsLiveStreamTranscode")
{
setMethod(HttpRequest::Method::Post);
}
AddRtsLiveStreamTranscodeRequest::~AddRtsLiveStreamTranscodeRequest()
{}
std::string AddRtsLiveStreamTranscodeRequest::get_Template()const
{
return _template_;
}
void AddRtsLiveStreamTranscodeRequest::set_Template(const std::string& _template)
{
_template_ = _template;
setParameter("_Template", _template);
}
bool AddRtsLiveStreamTranscodeRequest::getDeleteBframes()const
{
return deleteBframes_;
}
void AddRtsLiveStreamTranscodeRequest::setDeleteBframes(bool deleteBframes)
{
deleteBframes_ = deleteBframes;
setParameter("DeleteBframes", deleteBframes ? "true" : "false");
}
std::string AddRtsLiveStreamTranscodeRequest::getGop()const
{
return gop_;
}
void AddRtsLiveStreamTranscodeRequest::setGop(const std::string& gop)
{
gop_ = gop;
setParameter("Gop", gop);
}
bool AddRtsLiveStreamTranscodeRequest::getOpus()const
{
return opus_;
}
void AddRtsLiveStreamTranscodeRequest::setOpus(bool opus)
{
opus_ = opus;
setParameter("Opus", opus ? "true" : "false");
}
std::string AddRtsLiveStreamTranscodeRequest::getAudioCodec()const
{
return audioCodec_;
}
void AddRtsLiveStreamTranscodeRequest::setAudioCodec(const std::string& audioCodec)
{
audioCodec_ = audioCodec;
setParameter("AudioCodec", audioCodec);
}
std::string AddRtsLiveStreamTranscodeRequest::getTemplateType()const
{
return templateType_;
}
void AddRtsLiveStreamTranscodeRequest::setTemplateType(const std::string& templateType)
{
templateType_ = templateType;
setParameter("TemplateType", templateType);
}
std::string AddRtsLiveStreamTranscodeRequest::getAudioProfile()const
{
return audioProfile_;
}
void AddRtsLiveStreamTranscodeRequest::setAudioProfile(const std::string& audioProfile)
{
audioProfile_ = audioProfile;
setParameter("AudioProfile", audioProfile);
}
int AddRtsLiveStreamTranscodeRequest::getHeight()const
{
return height_;
}
void AddRtsLiveStreamTranscodeRequest::setHeight(int height)
{
height_ = height;
setParameter("Height", std::to_string(height));
}
std::string AddRtsLiveStreamTranscodeRequest::getApp()const
{
return app_;
}
void AddRtsLiveStreamTranscodeRequest::setApp(const std::string& app)
{
app_ = app;
setParameter("App", app);
}
int AddRtsLiveStreamTranscodeRequest::getAudioChannelNum()const
{
return audioChannelNum_;
}
void AddRtsLiveStreamTranscodeRequest::setAudioChannelNum(int audioChannelNum)
{
audioChannelNum_ = audioChannelNum;
setParameter("AudioChannelNum", std::to_string(audioChannelNum));
}
int AddRtsLiveStreamTranscodeRequest::getProfile()const
{
return profile_;
}
void AddRtsLiveStreamTranscodeRequest::setProfile(int profile)
{
profile_ = profile;
setParameter("Profile", std::to_string(profile));
}
int AddRtsLiveStreamTranscodeRequest::getFPS()const
{
return fPS_;
}
void AddRtsLiveStreamTranscodeRequest::setFPS(int fPS)
{
fPS_ = fPS;
setParameter("FPS", std::to_string(fPS));
}
long AddRtsLiveStreamTranscodeRequest::getOwnerId()const
{
return ownerId_;
}
void AddRtsLiveStreamTranscodeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int AddRtsLiveStreamTranscodeRequest::getAudioRate()const
{
return audioRate_;
}
void AddRtsLiveStreamTranscodeRequest::setAudioRate(int audioRate)
{
audioRate_ = audioRate;
setParameter("AudioRate", std::to_string(audioRate));
}
int AddRtsLiveStreamTranscodeRequest::getAudioBitrate()const
{
return audioBitrate_;
}
void AddRtsLiveStreamTranscodeRequest::setAudioBitrate(int audioBitrate)
{
audioBitrate_ = audioBitrate;
setParameter("AudioBitrate", std::to_string(audioBitrate));
}
std::string AddRtsLiveStreamTranscodeRequest::getDomain()const
{
return domain_;
}
void AddRtsLiveStreamTranscodeRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
int AddRtsLiveStreamTranscodeRequest::getWidth()const
{
return width_;
}
void AddRtsLiveStreamTranscodeRequest::setWidth(int width)
{
width_ = width;
setParameter("Width", std::to_string(width));
}
int AddRtsLiveStreamTranscodeRequest::getVideoBitrate()const
{
return videoBitrate_;
}
void AddRtsLiveStreamTranscodeRequest::setVideoBitrate(int videoBitrate)
{
videoBitrate_ = videoBitrate;
setParameter("VideoBitrate", std::to_string(videoBitrate));
}

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

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

View File

@@ -0,0 +1,75 @@
/*
* 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/DescribeLiveDomainCertificateInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveDomainCertificateInfoResult::DescribeLiveDomainCertificateInfoResult() :
ServiceResult()
{}
DescribeLiveDomainCertificateInfoResult::DescribeLiveDomainCertificateInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveDomainCertificateInfoResult::~DescribeLiveDomainCertificateInfoResult()
{}
void DescribeLiveDomainCertificateInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCertInfosNode = value["CertInfos"]["CertInfo"];
for (auto valueCertInfosCertInfo : allCertInfosNode)
{
CertInfo certInfosObject;
if(!valueCertInfosCertInfo["DomainName"].isNull())
certInfosObject.domainName = valueCertInfosCertInfo["DomainName"].asString();
if(!valueCertInfosCertInfo["CertName"].isNull())
certInfosObject.certName = valueCertInfosCertInfo["CertName"].asString();
if(!valueCertInfosCertInfo["CertDomainName"].isNull())
certInfosObject.certDomainName = valueCertInfosCertInfo["CertDomainName"].asString();
if(!valueCertInfosCertInfo["CertExpireTime"].isNull())
certInfosObject.certExpireTime = valueCertInfosCertInfo["CertExpireTime"].asString();
if(!valueCertInfosCertInfo["CertLife"].isNull())
certInfosObject.certLife = valueCertInfosCertInfo["CertLife"].asString();
if(!valueCertInfosCertInfo["CertOrg"].isNull())
certInfosObject.certOrg = valueCertInfosCertInfo["CertOrg"].asString();
if(!valueCertInfosCertInfo["CertType"].isNull())
certInfosObject.certType = valueCertInfosCertInfo["CertType"].asString();
if(!valueCertInfosCertInfo["SSLProtocol"].isNull())
certInfosObject.sSLProtocol = valueCertInfosCertInfo["SSLProtocol"].asString();
if(!valueCertInfosCertInfo["Status"].isNull())
certInfosObject.status = valueCertInfosCertInfo["Status"].asString();
if(!valueCertInfosCertInfo["SSLPub"].isNull())
certInfosObject.sSLPub = valueCertInfosCertInfo["SSLPub"].asString();
certInfos_.push_back(certInfosObject);
}
}
std::vector<DescribeLiveDomainCertificateInfoResult::CertInfo> DescribeLiveDomainCertificateInfoResult::getCertInfos()const
{
return certInfos_;
}

View File

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

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/live/model/DescribeLiveDomainLimitResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveDomainLimitResult::DescribeLiveDomainLimitResult() :
ServiceResult()
{}
DescribeLiveDomainLimitResult::DescribeLiveDomainLimitResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveDomainLimitResult::~DescribeLiveDomainLimitResult()
{}
void DescribeLiveDomainLimitResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLiveDomainLimitListNode = value["LiveDomainLimitList"]["LiveDomainLimit"];
for (auto valueLiveDomainLimitListLiveDomainLimit : allLiveDomainLimitListNode)
{
LiveDomainLimit liveDomainLimitListObject;
if(!valueLiveDomainLimitListLiveDomainLimit["DomainName"].isNull())
liveDomainLimitListObject.domainName = valueLiveDomainLimitListLiveDomainLimit["DomainName"].asString();
if(!valueLiveDomainLimitListLiveDomainLimit["LimitNum"].isNull())
liveDomainLimitListObject.limitNum = std::stoi(valueLiveDomainLimitListLiveDomainLimit["LimitNum"].asString());
if(!valueLiveDomainLimitListLiveDomainLimit["LimitTranscodeNum"].isNull())
liveDomainLimitListObject.limitTranscodeNum = std::stoi(valueLiveDomainLimitListLiveDomainLimit["LimitTranscodeNum"].asString());
liveDomainLimitList_.push_back(liveDomainLimitListObject);
}
}
std::vector<DescribeLiveDomainLimitResult::LiveDomainLimit> DescribeLiveDomainLimitResult::getLiveDomainLimitList()const
{
return liveDomainLimitList_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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/DescribeLiveDomainTimeShiftDataRequest.h>
using AlibabaCloud::Live::Model::DescribeLiveDomainTimeShiftDataRequest;
DescribeLiveDomainTimeShiftDataRequest::DescribeLiveDomainTimeShiftDataRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainTimeShiftData")
{
setMethod(HttpRequest::Method::Post);
}
DescribeLiveDomainTimeShiftDataRequest::~DescribeLiveDomainTimeShiftDataRequest()
{}
std::string DescribeLiveDomainTimeShiftDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeLiveDomainTimeShiftDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeLiveDomainTimeShiftDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeLiveDomainTimeShiftDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeLiveDomainTimeShiftDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeLiveDomainTimeShiftDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeLiveDomainTimeShiftDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeLiveDomainTimeShiftDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeLiveDomainTimeShiftDataRequest::getInterval()const
{
return interval_;
}
void DescribeLiveDomainTimeShiftDataRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}

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/live/model/DescribeLiveDomainTimeShiftDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveDomainTimeShiftDataResult::DescribeLiveDomainTimeShiftDataResult() :
ServiceResult()
{}
DescribeLiveDomainTimeShiftDataResult::DescribeLiveDomainTimeShiftDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveDomainTimeShiftDataResult::~DescribeLiveDomainTimeShiftDataResult()
{}
void DescribeLiveDomainTimeShiftDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTimeShiftDataNode = value["TimeShiftData"]["DataModule"];
for (auto valueTimeShiftDataDataModule : allTimeShiftDataNode)
{
DataModule timeShiftDataObject;
if(!valueTimeShiftDataDataModule["TimeStamp"].isNull())
timeShiftDataObject.timeStamp = valueTimeShiftDataDataModule["TimeStamp"].asString();
if(!valueTimeShiftDataDataModule["Size"].isNull())
timeShiftDataObject.size = valueTimeShiftDataDataModule["Size"].asString();
if(!valueTimeShiftDataDataModule["Type"].isNull())
timeShiftDataObject.type = valueTimeShiftDataDataModule["Type"].asString();
timeShiftData_.push_back(timeShiftDataObject);
}
}
std::vector<DescribeLiveDomainTimeShiftDataResult::DataModule> DescribeLiveDomainTimeShiftDataResult::getTimeShiftData()const
{
return timeShiftData_;
}

View File

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

View File

@@ -1,67 +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/DescribeLivePullStreamConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLivePullStreamConfigResult::DescribeLivePullStreamConfigResult() :
ServiceResult()
{}
DescribeLivePullStreamConfigResult::DescribeLivePullStreamConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLivePullStreamConfigResult::~DescribeLivePullStreamConfigResult()
{}
void DescribeLivePullStreamConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLiveAppRecordListNode = value["LiveAppRecordList"]["LiveAppRecord"];
for (auto valueLiveAppRecordListLiveAppRecord : allLiveAppRecordListNode)
{
LiveAppRecord liveAppRecordListObject;
if(!valueLiveAppRecordListLiveAppRecord["DomainName"].isNull())
liveAppRecordListObject.domainName = valueLiveAppRecordListLiveAppRecord["DomainName"].asString();
if(!valueLiveAppRecordListLiveAppRecord["AppName"].isNull())
liveAppRecordListObject.appName = valueLiveAppRecordListLiveAppRecord["AppName"].asString();
if(!valueLiveAppRecordListLiveAppRecord["StreamName"].isNull())
liveAppRecordListObject.streamName = valueLiveAppRecordListLiveAppRecord["StreamName"].asString();
if(!valueLiveAppRecordListLiveAppRecord["SourceUrl"].isNull())
liveAppRecordListObject.sourceUrl = valueLiveAppRecordListLiveAppRecord["SourceUrl"].asString();
if(!valueLiveAppRecordListLiveAppRecord["StartTime"].isNull())
liveAppRecordListObject.startTime = valueLiveAppRecordListLiveAppRecord["StartTime"].asString();
if(!valueLiveAppRecordListLiveAppRecord["EndTime"].isNull())
liveAppRecordListObject.endTime = valueLiveAppRecordListLiveAppRecord["EndTime"].asString();
liveAppRecordList_.push_back(liveAppRecordListObject);
}
}
std::vector<DescribeLivePullStreamConfigResult::LiveAppRecord> DescribeLivePullStreamConfigResult::getLiveAppRecordList()const
{
return liveAppRecordList_;
}

View File

@@ -59,6 +59,8 @@ void DescribeLiveSnapshotConfigResult::parse(const std::string &payload)
liveStreamSnapshotConfigListObject.sequenceOssObject = valueLiveStreamSnapshotConfigListLiveStreamSnapshotConfig["SequenceOssObject"].asString();
if(!valueLiveStreamSnapshotConfigListLiveStreamSnapshotConfig["CreateTime"].isNull())
liveStreamSnapshotConfigListObject.createTime = valueLiveStreamSnapshotConfigListLiveStreamSnapshotConfig["CreateTime"].asString();
if(!valueLiveStreamSnapshotConfigListLiveStreamSnapshotConfig["Callback"].isNull())
liveStreamSnapshotConfigListObject.callback = valueLiveStreamSnapshotConfigListLiveStreamSnapshotConfig["Callback"].asString();
liveStreamSnapshotConfigList_.push_back(liveStreamSnapshotConfigListObject);
}
if(!value["PageNum"].isNull())

View File

@@ -50,6 +50,10 @@ void DescribeLiveStreamTranscodeInfoResult::parse(const std::string &payload)
if(!valueDomainTranscodeListDomainTranscodeInfo["TranscodeTemplate"].isNull())
domainTranscodeListObject.transcodeTemplate = valueDomainTranscodeListDomainTranscodeInfo["TranscodeTemplate"].asString();
auto customTranscodeParametersNode = value["CustomTranscodeParameters"];
if(!customTranscodeParametersNode["RtsFlag"].isNull())
domainTranscodeListObject.customTranscodeParameters.rtsFlag = customTranscodeParametersNode["RtsFlag"].asString();
if(!customTranscodeParametersNode["Bframes"].isNull())
domainTranscodeListObject.customTranscodeParameters.bframes = customTranscodeParametersNode["Bframes"].asString();
if(!customTranscodeParametersNode["VideoBitrate"].isNull())
domainTranscodeListObject.customTranscodeParameters.videoBitrate = std::stoi(customTranscodeParametersNode["VideoBitrate"].asString());
if(!customTranscodeParametersNode["FPS"].isNull())

View File

@@ -27,6 +27,17 @@ UnTagLiveResourcesRequest::UnTagLiveResourcesRequest() :
UnTagLiveResourcesRequest::~UnTagLiveResourcesRequest()
{}
bool UnTagLiveResourcesRequest::getAll()const
{
return all_;
}
void UnTagLiveResourcesRequest::setAll(bool all)
{
all_ = all;
setParameter("All", all ? "true" : "false");
}
std::vector<std::string> UnTagLiveResourcesRequest::getResourceId()const
{
return resourceId_;

View File

@@ -126,3 +126,14 @@ void UpdateLiveAppSnapshotConfigRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
std::string UpdateLiveAppSnapshotConfigRequest::getCallback()const
{
return callback_;
}
void UpdateLiveAppSnapshotConfigRequest::setCallback(const std::string& callback)
{
callback_ = callback;
setParameter("Callback", callback);
}