Generated 2016-11-01 for live.

This commit is contained in:
sdk-team
2021-07-08 02:32:29 +00:00
parent cf6a43062a
commit ff3b6aec0a
33 changed files with 1749 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2021-07-08 Version: 1.36.812
- Generated 2016-11-01 for `live`.
2021-07-07 Version: 1.36.811
- Supported DescribeGlobalDatabaseNetworks set pages.

View File

@@ -1 +1 @@
1.36.811
1.36.812

View File

@@ -271,6 +271,8 @@ set(live_public_header_model
include/alibabacloud/live/model/DescribeLiveDomainRealtimeLogDeliveryResult.h
include/alibabacloud/live/model/DescribeLiveDomainRecordDataRequest.h
include/alibabacloud/live/model/DescribeLiveDomainRecordDataResult.h
include/alibabacloud/live/model/DescribeLiveDomainRecordUsageDataRequest.h
include/alibabacloud/live/model/DescribeLiveDomainRecordUsageDataResult.h
include/alibabacloud/live/model/DescribeLiveDomainSnapshotDataRequest.h
include/alibabacloud/live/model/DescribeLiveDomainSnapshotDataResult.h
include/alibabacloud/live/model/DescribeLiveDomainStagingConfigRequest.h
@@ -283,6 +285,8 @@ set(live_public_header_model
include/alibabacloud/live/model/DescribeLiveDomainTrafficDataResult.h
include/alibabacloud/live/model/DescribeLiveDomainTranscodeDataRequest.h
include/alibabacloud/live/model/DescribeLiveDomainTranscodeDataResult.h
include/alibabacloud/live/model/DescribeLiveDrmUsageDataRequest.h
include/alibabacloud/live/model/DescribeLiveDrmUsageDataResult.h
include/alibabacloud/live/model/DescribeLiveLazyPullStreamConfigRequest.h
include/alibabacloud/live/model/DescribeLiveLazyPullStreamConfigResult.h
include/alibabacloud/live/model/DescribeLivePullStreamConfigRequest.h
@@ -361,6 +365,10 @@ set(live_public_header_model
include/alibabacloud/live/model/DescribeRoomStatusResult.h
include/alibabacloud/live/model/DescribeStudioLayoutsRequest.h
include/alibabacloud/live/model/DescribeStudioLayoutsResult.h
include/alibabacloud/live/model/DescribeToutiaoLivePlayRequest.h
include/alibabacloud/live/model/DescribeToutiaoLivePlayResult.h
include/alibabacloud/live/model/DescribeToutiaoLivePublishRequest.h
include/alibabacloud/live/model/DescribeToutiaoLivePublishResult.h
include/alibabacloud/live/model/DescribeUpBpsPeakDataRequest.h
include/alibabacloud/live/model/DescribeUpBpsPeakDataResult.h
include/alibabacloud/live/model/DescribeUpBpsPeakOfLineRequest.h
@@ -497,6 +505,8 @@ set(live_public_header_model
include/alibabacloud/live/model/UpdateLiveAudioAuditNotifyConfigResult.h
include/alibabacloud/live/model/UpdateLiveDetectNotifyConfigRequest.h
include/alibabacloud/live/model/UpdateLiveDetectNotifyConfigResult.h
include/alibabacloud/live/model/UpdateLivePullStreamInfoConfigRequest.h
include/alibabacloud/live/model/UpdateLivePullStreamInfoConfigResult.h
include/alibabacloud/live/model/UpdateLiveRecordNotifyConfigRequest.h
include/alibabacloud/live/model/UpdateLiveRecordNotifyConfigResult.h
include/alibabacloud/live/model/UpdateLiveSnapshotDetectPornConfigRequest.h
@@ -760,6 +770,8 @@ set(live_src
src/model/DescribeLiveDomainRealtimeLogDeliveryResult.cc
src/model/DescribeLiveDomainRecordDataRequest.cc
src/model/DescribeLiveDomainRecordDataResult.cc
src/model/DescribeLiveDomainRecordUsageDataRequest.cc
src/model/DescribeLiveDomainRecordUsageDataResult.cc
src/model/DescribeLiveDomainSnapshotDataRequest.cc
src/model/DescribeLiveDomainSnapshotDataResult.cc
src/model/DescribeLiveDomainStagingConfigRequest.cc
@@ -772,6 +784,8 @@ set(live_src
src/model/DescribeLiveDomainTrafficDataResult.cc
src/model/DescribeLiveDomainTranscodeDataRequest.cc
src/model/DescribeLiveDomainTranscodeDataResult.cc
src/model/DescribeLiveDrmUsageDataRequest.cc
src/model/DescribeLiveDrmUsageDataResult.cc
src/model/DescribeLiveLazyPullStreamConfigRequest.cc
src/model/DescribeLiveLazyPullStreamConfigResult.cc
src/model/DescribeLivePullStreamConfigRequest.cc
@@ -850,6 +864,10 @@ set(live_src
src/model/DescribeRoomStatusResult.cc
src/model/DescribeStudioLayoutsRequest.cc
src/model/DescribeStudioLayoutsResult.cc
src/model/DescribeToutiaoLivePlayRequest.cc
src/model/DescribeToutiaoLivePlayResult.cc
src/model/DescribeToutiaoLivePublishRequest.cc
src/model/DescribeToutiaoLivePublishResult.cc
src/model/DescribeUpBpsPeakDataRequest.cc
src/model/DescribeUpBpsPeakDataResult.cc
src/model/DescribeUpBpsPeakOfLineRequest.cc
@@ -986,6 +1004,8 @@ set(live_src
src/model/UpdateLiveAudioAuditNotifyConfigResult.cc
src/model/UpdateLiveDetectNotifyConfigRequest.cc
src/model/UpdateLiveDetectNotifyConfigResult.cc
src/model/UpdateLivePullStreamInfoConfigRequest.cc
src/model/UpdateLivePullStreamInfoConfigResult.cc
src/model/UpdateLiveRecordNotifyConfigRequest.cc
src/model/UpdateLiveRecordNotifyConfigResult.cc
src/model/UpdateLiveSnapshotDetectPornConfigRequest.cc

View File

@@ -272,6 +272,8 @@
#include "model/DescribeLiveDomainRealtimeLogDeliveryResult.h"
#include "model/DescribeLiveDomainRecordDataRequest.h"
#include "model/DescribeLiveDomainRecordDataResult.h"
#include "model/DescribeLiveDomainRecordUsageDataRequest.h"
#include "model/DescribeLiveDomainRecordUsageDataResult.h"
#include "model/DescribeLiveDomainSnapshotDataRequest.h"
#include "model/DescribeLiveDomainSnapshotDataResult.h"
#include "model/DescribeLiveDomainStagingConfigRequest.h"
@@ -284,6 +286,8 @@
#include "model/DescribeLiveDomainTrafficDataResult.h"
#include "model/DescribeLiveDomainTranscodeDataRequest.h"
#include "model/DescribeLiveDomainTranscodeDataResult.h"
#include "model/DescribeLiveDrmUsageDataRequest.h"
#include "model/DescribeLiveDrmUsageDataResult.h"
#include "model/DescribeLiveLazyPullStreamConfigRequest.h"
#include "model/DescribeLiveLazyPullStreamConfigResult.h"
#include "model/DescribeLivePullStreamConfigRequest.h"
@@ -362,6 +366,10 @@
#include "model/DescribeRoomStatusResult.h"
#include "model/DescribeStudioLayoutsRequest.h"
#include "model/DescribeStudioLayoutsResult.h"
#include "model/DescribeToutiaoLivePlayRequest.h"
#include "model/DescribeToutiaoLivePlayResult.h"
#include "model/DescribeToutiaoLivePublishRequest.h"
#include "model/DescribeToutiaoLivePublishResult.h"
#include "model/DescribeUpBpsPeakDataRequest.h"
#include "model/DescribeUpBpsPeakDataResult.h"
#include "model/DescribeUpBpsPeakOfLineRequest.h"
@@ -498,6 +506,8 @@
#include "model/UpdateLiveAudioAuditNotifyConfigResult.h"
#include "model/UpdateLiveDetectNotifyConfigRequest.h"
#include "model/UpdateLiveDetectNotifyConfigResult.h"
#include "model/UpdateLivePullStreamInfoConfigRequest.h"
#include "model/UpdateLivePullStreamInfoConfigResult.h"
#include "model/UpdateLiveRecordNotifyConfigRequest.h"
#include "model/UpdateLiveRecordNotifyConfigResult.h"
#include "model/UpdateLiveSnapshotDetectPornConfigRequest.h"
@@ -892,6 +902,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeLiveDomainRecordDataResult> DescribeLiveDomainRecordDataOutcome;
typedef std::future<DescribeLiveDomainRecordDataOutcome> DescribeLiveDomainRecordDataOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveDomainRecordDataRequest&, const DescribeLiveDomainRecordDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveDomainRecordDataAsyncHandler;
typedef Outcome<Error, Model::DescribeLiveDomainRecordUsageDataResult> DescribeLiveDomainRecordUsageDataOutcome;
typedef std::future<DescribeLiveDomainRecordUsageDataOutcome> DescribeLiveDomainRecordUsageDataOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveDomainRecordUsageDataRequest&, const DescribeLiveDomainRecordUsageDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveDomainRecordUsageDataAsyncHandler;
typedef Outcome<Error, Model::DescribeLiveDomainSnapshotDataResult> DescribeLiveDomainSnapshotDataOutcome;
typedef std::future<DescribeLiveDomainSnapshotDataOutcome> DescribeLiveDomainSnapshotDataOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveDomainSnapshotDataRequest&, const DescribeLiveDomainSnapshotDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveDomainSnapshotDataAsyncHandler;
@@ -910,6 +923,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeLiveDomainTranscodeDataResult> DescribeLiveDomainTranscodeDataOutcome;
typedef std::future<DescribeLiveDomainTranscodeDataOutcome> DescribeLiveDomainTranscodeDataOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveDomainTranscodeDataRequest&, const DescribeLiveDomainTranscodeDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveDomainTranscodeDataAsyncHandler;
typedef Outcome<Error, Model::DescribeLiveDrmUsageDataResult> DescribeLiveDrmUsageDataOutcome;
typedef std::future<DescribeLiveDrmUsageDataOutcome> DescribeLiveDrmUsageDataOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveDrmUsageDataRequest&, const DescribeLiveDrmUsageDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveDrmUsageDataAsyncHandler;
typedef Outcome<Error, Model::DescribeLiveLazyPullStreamConfigResult> DescribeLiveLazyPullStreamConfigOutcome;
typedef std::future<DescribeLiveLazyPullStreamConfigOutcome> DescribeLiveLazyPullStreamConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveLazyPullStreamConfigRequest&, const DescribeLiveLazyPullStreamConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveLazyPullStreamConfigAsyncHandler;
@@ -1027,6 +1043,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeStudioLayoutsResult> DescribeStudioLayoutsOutcome;
typedef std::future<DescribeStudioLayoutsOutcome> DescribeStudioLayoutsOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeStudioLayoutsRequest&, const DescribeStudioLayoutsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeStudioLayoutsAsyncHandler;
typedef Outcome<Error, Model::DescribeToutiaoLivePlayResult> DescribeToutiaoLivePlayOutcome;
typedef std::future<DescribeToutiaoLivePlayOutcome> DescribeToutiaoLivePlayOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeToutiaoLivePlayRequest&, const DescribeToutiaoLivePlayOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeToutiaoLivePlayAsyncHandler;
typedef Outcome<Error, Model::DescribeToutiaoLivePublishResult> DescribeToutiaoLivePublishOutcome;
typedef std::future<DescribeToutiaoLivePublishOutcome> DescribeToutiaoLivePublishOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeToutiaoLivePublishRequest&, const DescribeToutiaoLivePublishOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeToutiaoLivePublishAsyncHandler;
typedef Outcome<Error, Model::DescribeUpBpsPeakDataResult> DescribeUpBpsPeakDataOutcome;
typedef std::future<DescribeUpBpsPeakDataOutcome> DescribeUpBpsPeakDataOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeUpBpsPeakDataRequest&, const DescribeUpBpsPeakDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUpBpsPeakDataAsyncHandler;
@@ -1231,6 +1253,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateLiveDetectNotifyConfigResult> UpdateLiveDetectNotifyConfigOutcome;
typedef std::future<UpdateLiveDetectNotifyConfigOutcome> UpdateLiveDetectNotifyConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateLiveDetectNotifyConfigRequest&, const UpdateLiveDetectNotifyConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLiveDetectNotifyConfigAsyncHandler;
typedef Outcome<Error, Model::UpdateLivePullStreamInfoConfigResult> UpdateLivePullStreamInfoConfigOutcome;
typedef std::future<UpdateLivePullStreamInfoConfigOutcome> UpdateLivePullStreamInfoConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateLivePullStreamInfoConfigRequest&, const UpdateLivePullStreamInfoConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLivePullStreamInfoConfigAsyncHandler;
typedef Outcome<Error, Model::UpdateLiveRecordNotifyConfigResult> UpdateLiveRecordNotifyConfigOutcome;
typedef std::future<UpdateLiveRecordNotifyConfigOutcome> UpdateLiveRecordNotifyConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateLiveRecordNotifyConfigRequest&, const UpdateLiveRecordNotifyConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLiveRecordNotifyConfigAsyncHandler;
@@ -1626,6 +1651,9 @@ namespace AlibabaCloud
DescribeLiveDomainRecordDataOutcome describeLiveDomainRecordData(const Model::DescribeLiveDomainRecordDataRequest &request)const;
void describeLiveDomainRecordDataAsync(const Model::DescribeLiveDomainRecordDataRequest& request, const DescribeLiveDomainRecordDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLiveDomainRecordDataOutcomeCallable describeLiveDomainRecordDataCallable(const Model::DescribeLiveDomainRecordDataRequest& request) const;
DescribeLiveDomainRecordUsageDataOutcome describeLiveDomainRecordUsageData(const Model::DescribeLiveDomainRecordUsageDataRequest &request)const;
void describeLiveDomainRecordUsageDataAsync(const Model::DescribeLiveDomainRecordUsageDataRequest& request, const DescribeLiveDomainRecordUsageDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLiveDomainRecordUsageDataOutcomeCallable describeLiveDomainRecordUsageDataCallable(const Model::DescribeLiveDomainRecordUsageDataRequest& request) const;
DescribeLiveDomainSnapshotDataOutcome describeLiveDomainSnapshotData(const Model::DescribeLiveDomainSnapshotDataRequest &request)const;
void describeLiveDomainSnapshotDataAsync(const Model::DescribeLiveDomainSnapshotDataRequest& request, const DescribeLiveDomainSnapshotDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLiveDomainSnapshotDataOutcomeCallable describeLiveDomainSnapshotDataCallable(const Model::DescribeLiveDomainSnapshotDataRequest& request) const;
@@ -1644,6 +1672,9 @@ namespace AlibabaCloud
DescribeLiveDomainTranscodeDataOutcome describeLiveDomainTranscodeData(const Model::DescribeLiveDomainTranscodeDataRequest &request)const;
void describeLiveDomainTranscodeDataAsync(const Model::DescribeLiveDomainTranscodeDataRequest& request, const DescribeLiveDomainTranscodeDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLiveDomainTranscodeDataOutcomeCallable describeLiveDomainTranscodeDataCallable(const Model::DescribeLiveDomainTranscodeDataRequest& request) const;
DescribeLiveDrmUsageDataOutcome describeLiveDrmUsageData(const Model::DescribeLiveDrmUsageDataRequest &request)const;
void describeLiveDrmUsageDataAsync(const Model::DescribeLiveDrmUsageDataRequest& request, const DescribeLiveDrmUsageDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLiveDrmUsageDataOutcomeCallable describeLiveDrmUsageDataCallable(const Model::DescribeLiveDrmUsageDataRequest& request) const;
DescribeLiveLazyPullStreamConfigOutcome describeLiveLazyPullStreamConfig(const Model::DescribeLiveLazyPullStreamConfigRequest &request)const;
void describeLiveLazyPullStreamConfigAsync(const Model::DescribeLiveLazyPullStreamConfigRequest& request, const DescribeLiveLazyPullStreamConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLiveLazyPullStreamConfigOutcomeCallable describeLiveLazyPullStreamConfigCallable(const Model::DescribeLiveLazyPullStreamConfigRequest& request) const;
@@ -1761,6 +1792,12 @@ namespace AlibabaCloud
DescribeStudioLayoutsOutcome describeStudioLayouts(const Model::DescribeStudioLayoutsRequest &request)const;
void describeStudioLayoutsAsync(const Model::DescribeStudioLayoutsRequest& request, const DescribeStudioLayoutsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeStudioLayoutsOutcomeCallable describeStudioLayoutsCallable(const Model::DescribeStudioLayoutsRequest& request) const;
DescribeToutiaoLivePlayOutcome describeToutiaoLivePlay(const Model::DescribeToutiaoLivePlayRequest &request)const;
void describeToutiaoLivePlayAsync(const Model::DescribeToutiaoLivePlayRequest& request, const DescribeToutiaoLivePlayAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeToutiaoLivePlayOutcomeCallable describeToutiaoLivePlayCallable(const Model::DescribeToutiaoLivePlayRequest& request) const;
DescribeToutiaoLivePublishOutcome describeToutiaoLivePublish(const Model::DescribeToutiaoLivePublishRequest &request)const;
void describeToutiaoLivePublishAsync(const Model::DescribeToutiaoLivePublishRequest& request, const DescribeToutiaoLivePublishAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeToutiaoLivePublishOutcomeCallable describeToutiaoLivePublishCallable(const Model::DescribeToutiaoLivePublishRequest& request) const;
DescribeUpBpsPeakDataOutcome describeUpBpsPeakData(const Model::DescribeUpBpsPeakDataRequest &request)const;
void describeUpBpsPeakDataAsync(const Model::DescribeUpBpsPeakDataRequest& request, const DescribeUpBpsPeakDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeUpBpsPeakDataOutcomeCallable describeUpBpsPeakDataCallable(const Model::DescribeUpBpsPeakDataRequest& request) const;
@@ -1965,6 +2002,9 @@ namespace AlibabaCloud
UpdateLiveDetectNotifyConfigOutcome updateLiveDetectNotifyConfig(const Model::UpdateLiveDetectNotifyConfigRequest &request)const;
void updateLiveDetectNotifyConfigAsync(const Model::UpdateLiveDetectNotifyConfigRequest& request, const UpdateLiveDetectNotifyConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateLiveDetectNotifyConfigOutcomeCallable updateLiveDetectNotifyConfigCallable(const Model::UpdateLiveDetectNotifyConfigRequest& request) const;
UpdateLivePullStreamInfoConfigOutcome updateLivePullStreamInfoConfig(const Model::UpdateLivePullStreamInfoConfigRequest &request)const;
void updateLivePullStreamInfoConfigAsync(const Model::UpdateLivePullStreamInfoConfigRequest& request, const UpdateLivePullStreamInfoConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateLivePullStreamInfoConfigOutcomeCallable updateLivePullStreamInfoConfigCallable(const Model::UpdateLivePullStreamInfoConfigRequest& request) const;
UpdateLiveRecordNotifyConfigOutcome updateLiveRecordNotifyConfig(const Model::UpdateLiveRecordNotifyConfigRequest &request)const;
void updateLiveRecordNotifyConfigAsync(const Model::UpdateLiveRecordNotifyConfigRequest& request, const UpdateLiveRecordNotifyConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateLiveRecordNotifyConfigOutcomeCallable updateLiveRecordNotifyConfigCallable(const Model::UpdateLiveRecordNotifyConfigRequest& request) const;

View File

@@ -41,8 +41,12 @@ namespace AlibabaCloud
void setLazy(const std::string& lazy);
std::string getGop()const;
void setGop(const std::string& gop);
std::string getKmsKeyExpireInterval()const;
void setKmsKeyExpireInterval(const std::string& kmsKeyExpireInterval);
std::string getAudioCodec()const;
void setAudioCodec(const std::string& audioCodec);
std::string getKmsUID()const;
void setKmsUID(const std::string& kmsUID);
std::string getTemplateType()const;
void setTemplateType(const std::string& templateType);
std::string getAudioProfile()const;
@@ -51,6 +55,8 @@ namespace AlibabaCloud
void setHeight(int height);
std::string getApp()const;
void setApp(const std::string& app);
std::string getEncryptParameters()const;
void setEncryptParameters(const std::string& encryptParameters);
int getAudioChannelNum()const;
void setAudioChannelNum(int audioChannelNum);
int getProfile()const;
@@ -69,16 +75,21 @@ namespace AlibabaCloud
void setWidth(int width);
int getVideoBitrate()const;
void setVideoBitrate(int videoBitrate);
std::string getKmsKeyID()const;
void setKmsKeyID(const std::string& kmsKeyID);
private:
std::string _template_;
std::string lazy_;
std::string gop_;
std::string kmsKeyExpireInterval_;
std::string audioCodec_;
std::string kmsUID_;
std::string templateType_;
std::string audioProfile_;
int height_;
std::string app_;
std::string encryptParameters_;
int audioChannelNum_;
int profile_;
int fPS_;
@@ -88,6 +99,7 @@ namespace AlibabaCloud
std::string domain_;
int width_;
int videoBitrate_;
std::string kmsKeyID_;
};
}

View File

@@ -41,6 +41,7 @@ namespace AlibabaCloud
std::string passphrase;
std::string ask;
std::string certName;
std::string createDate;
};

View File

@@ -0,0 +1,60 @@
/*
* 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_DESCRIBELIVEDOMAINRECORDUSAGEDATAREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINRECORDUSAGEDATAREQUEST_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 DescribeLiveDomainRecordUsageDataRequest : public RpcServiceRequest
{
public:
DescribeLiveDomainRecordUsageDataRequest();
~DescribeLiveDomainRecordUsageDataRequest();
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getSplitBy()const;
void setSplitBy(const std::string& splitBy);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string startTime_;
std::string splitBy_;
std::string domainName_;
std::string endTime_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINRECORDUSAGEDATAREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* 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_DESCRIBELIVEDOMAINRECORDUSAGEDATARESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINRECORDUSAGEDATARESULT_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 DescribeLiveDomainRecordUsageDataResult : public ServiceResult
{
public:
struct DataModule
{
std::string type;
long size;
long count;
std::string domain;
std::string timeStamp;
};
DescribeLiveDomainRecordUsageDataResult();
explicit DescribeLiveDomainRecordUsageDataResult(const std::string &payload);
~DescribeLiveDomainRecordUsageDataResult();
std::vector<DataModule> getRecordUsageData()const;
protected:
void parse(const std::string &payload);
private:
std::vector<DataModule> recordUsageData_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINRECORDUSAGEDATARESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* 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_DESCRIBELIVEDRMUSAGEDATAREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDRMUSAGEDATAREQUEST_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 DescribeLiveDrmUsageDataRequest : public RpcServiceRequest
{
public:
DescribeLiveDrmUsageDataRequest();
~DescribeLiveDrmUsageDataRequest();
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getSplitBy()const;
void setSplitBy(const std::string& splitBy);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getInterval()const;
void setInterval(const std::string& interval);
private:
std::string startTime_;
std::string splitBy_;
std::string domainName_;
std::string endTime_;
long ownerId_;
std::string interval_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDRMUSAGEDATAREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* 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_DESCRIBELIVEDRMUSAGEDATARESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDRMUSAGEDATARESULT_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 DescribeLiveDrmUsageDataResult : public ServiceResult
{
public:
struct DataModule
{
std::string drmType;
std::string region;
long count;
std::string domain;
std::string timeStamp;
};
DescribeLiveDrmUsageDataResult();
explicit DescribeLiveDrmUsageDataResult(const std::string &payload);
~DescribeLiveDrmUsageDataResult();
std::vector<DataModule> getDrmUsageData()const;
protected:
void parse(const std::string &payload);
private:
std::vector<DataModule> drmUsageData_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDRMUSAGEDATARESULT_H_

View File

@@ -39,6 +39,8 @@ namespace AlibabaCloud
void setProject(const std::string& project);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getOwnerId()const;
@@ -51,6 +53,7 @@ namespace AlibabaCloud
private:
std::string project_;
std::string startTime_;
std::string domainName_;
std::string endTime_;
long ownerId_;
std::string interval_;

View File

@@ -40,6 +40,7 @@ namespace AlibabaCloud
std::string transcodeId;
std::string serverIp;
std::string streamUrlArgs;
std::string transcodeDrm;
std::string clientIp;
std::string publishType;
std::string appName;

View File

@@ -0,0 +1,63 @@
/*
* 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_DESCRIBETOUTIAOLIVEPLAYREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBETOUTIAOLIVEPLAYREQUEST_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 DescribeToutiaoLivePlayRequest : public RpcServiceRequest
{
public:
DescribeToutiaoLivePlayRequest();
~DescribeToutiaoLivePlayRequest();
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getStream()const;
void setStream(const std::string& stream);
std::string getApp()const;
void setApp(const std::string& app);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getDomain()const;
void setDomain(const std::string& domain);
private:
std::string startTime_;
std::string stream_;
std::string app_;
std::string endTime_;
long ownerId_;
std::string domain_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBETOUTIAOLIVEPLAYREQUEST_H_

View File

@@ -0,0 +1,63 @@
/*
* 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_DESCRIBETOUTIAOLIVEPLAYRESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBETOUTIAOLIVEPLAYRESULT_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 DescribeToutiaoLivePlayResult : public ServiceResult
{
public:
struct ContentItem
{
std::string app;
std::string cdnName;
std::string streamName;
float bandwidth;
std::string domain;
long timestamp;
long playNum;
};
DescribeToutiaoLivePlayResult();
explicit DescribeToutiaoLivePlayResult(const std::string &payload);
~DescribeToutiaoLivePlayResult();
std::string getDescription()const;
std::vector<ContentItem> getContent()const;
protected:
void parse(const std::string &payload);
private:
std::string description_;
std::vector<ContentItem> content_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBETOUTIAOLIVEPLAYRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* 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_DESCRIBETOUTIAOLIVEPUBLISHREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBETOUTIAOLIVEPUBLISHREQUEST_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 DescribeToutiaoLivePublishRequest : public RpcServiceRequest
{
public:
DescribeToutiaoLivePublishRequest();
~DescribeToutiaoLivePublishRequest();
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getStream()const;
void setStream(const std::string& stream);
std::string getApp()const;
void setApp(const std::string& app);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getDomain()const;
void setDomain(const std::string& domain);
private:
std::string startTime_;
std::string stream_;
std::string app_;
std::string endTime_;
long ownerId_;
std::string domain_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBETOUTIAOLIVEPUBLISHREQUEST_H_

View File

@@ -0,0 +1,65 @@
/*
* 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_DESCRIBETOUTIAOLIVEPUBLISHRESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBETOUTIAOLIVEPUBLISHRESULT_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 DescribeToutiaoLivePublishResult : public ServiceResult
{
public:
struct ContentItem
{
std::string app;
std::string cdnName;
std::string streamName;
float bwDiff;
float fps;
std::string domain;
float bitrate;
float flr;
long timestamp;
};
DescribeToutiaoLivePublishResult();
explicit DescribeToutiaoLivePublishResult(const std::string &payload);
~DescribeToutiaoLivePublishResult();
std::string getDescription()const;
std::vector<ContentItem> getContent()const;
protected:
void parse(const std::string &payload);
private:
std::string description_;
std::vector<ContentItem> content_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBETOUTIAOLIVEPUBLISHRESULT_H_

View File

@@ -0,0 +1,69 @@
/*
* 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_UPDATELIVEPULLSTREAMINFOCONFIGREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_UPDATELIVEPULLSTREAMINFOCONFIGREQUEST_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 UpdateLivePullStreamInfoConfigRequest : public RpcServiceRequest
{
public:
UpdateLivePullStreamInfoConfigRequest();
~UpdateLivePullStreamInfoConfigRequest();
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getAppName()const;
void setAppName(const std::string& appName);
std::string getStreamName()const;
void setStreamName(const std::string& streamName);
std::string getPullAlways()const;
void setPullAlways(const std::string& pullAlways);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getSourceUrl()const;
void setSourceUrl(const std::string& sourceUrl);
private:
std::string startTime_;
std::string appName_;
std::string streamName_;
std::string pullAlways_;
std::string domainName_;
std::string endTime_;
long ownerId_;
std::string sourceUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATELIVEPULLSTREAMINFOCONFIGREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_UPDATELIVEPULLSTREAMINFOCONFIGRESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_UPDATELIVEPULLSTREAMINFOCONFIGRESULT_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 UpdateLivePullStreamInfoConfigResult : public ServiceResult
{
public:
UpdateLivePullStreamInfoConfigResult();
explicit UpdateLivePullStreamInfoConfigResult(const std::string &payload);
~UpdateLivePullStreamInfoConfigResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATELIVEPULLSTREAMINFOCONFIGRESULT_H_

View File

@@ -4551,6 +4551,42 @@ LiveClient::DescribeLiveDomainRecordDataOutcomeCallable LiveClient::describeLive
return task->get_future();
}
LiveClient::DescribeLiveDomainRecordUsageDataOutcome LiveClient::describeLiveDomainRecordUsageData(const DescribeLiveDomainRecordUsageDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeLiveDomainRecordUsageDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeLiveDomainRecordUsageDataOutcome(DescribeLiveDomainRecordUsageDataResult(outcome.result()));
else
return DescribeLiveDomainRecordUsageDataOutcome(outcome.error());
}
void LiveClient::describeLiveDomainRecordUsageDataAsync(const DescribeLiveDomainRecordUsageDataRequest& request, const DescribeLiveDomainRecordUsageDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeLiveDomainRecordUsageData(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeLiveDomainRecordUsageDataOutcomeCallable LiveClient::describeLiveDomainRecordUsageDataCallable(const DescribeLiveDomainRecordUsageDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeLiveDomainRecordUsageDataOutcome()>>(
[this, request]()
{
return this->describeLiveDomainRecordUsageData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeLiveDomainSnapshotDataOutcome LiveClient::describeLiveDomainSnapshotData(const DescribeLiveDomainSnapshotDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4767,6 +4803,42 @@ LiveClient::DescribeLiveDomainTranscodeDataOutcomeCallable LiveClient::describeL
return task->get_future();
}
LiveClient::DescribeLiveDrmUsageDataOutcome LiveClient::describeLiveDrmUsageData(const DescribeLiveDrmUsageDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeLiveDrmUsageDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeLiveDrmUsageDataOutcome(DescribeLiveDrmUsageDataResult(outcome.result()));
else
return DescribeLiveDrmUsageDataOutcome(outcome.error());
}
void LiveClient::describeLiveDrmUsageDataAsync(const DescribeLiveDrmUsageDataRequest& request, const DescribeLiveDrmUsageDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeLiveDrmUsageData(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeLiveDrmUsageDataOutcomeCallable LiveClient::describeLiveDrmUsageDataCallable(const DescribeLiveDrmUsageDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeLiveDrmUsageDataOutcome()>>(
[this, request]()
{
return this->describeLiveDrmUsageData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeLiveLazyPullStreamConfigOutcome LiveClient::describeLiveLazyPullStreamConfig(const DescribeLiveLazyPullStreamConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6171,6 +6243,78 @@ LiveClient::DescribeStudioLayoutsOutcomeCallable LiveClient::describeStudioLayou
return task->get_future();
}
LiveClient::DescribeToutiaoLivePlayOutcome LiveClient::describeToutiaoLivePlay(const DescribeToutiaoLivePlayRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeToutiaoLivePlayOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeToutiaoLivePlayOutcome(DescribeToutiaoLivePlayResult(outcome.result()));
else
return DescribeToutiaoLivePlayOutcome(outcome.error());
}
void LiveClient::describeToutiaoLivePlayAsync(const DescribeToutiaoLivePlayRequest& request, const DescribeToutiaoLivePlayAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeToutiaoLivePlay(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeToutiaoLivePlayOutcomeCallable LiveClient::describeToutiaoLivePlayCallable(const DescribeToutiaoLivePlayRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeToutiaoLivePlayOutcome()>>(
[this, request]()
{
return this->describeToutiaoLivePlay(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeToutiaoLivePublishOutcome LiveClient::describeToutiaoLivePublish(const DescribeToutiaoLivePublishRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeToutiaoLivePublishOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeToutiaoLivePublishOutcome(DescribeToutiaoLivePublishResult(outcome.result()));
else
return DescribeToutiaoLivePublishOutcome(outcome.error());
}
void LiveClient::describeToutiaoLivePublishAsync(const DescribeToutiaoLivePublishRequest& request, const DescribeToutiaoLivePublishAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeToutiaoLivePublish(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeToutiaoLivePublishOutcomeCallable LiveClient::describeToutiaoLivePublishCallable(const DescribeToutiaoLivePublishRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeToutiaoLivePublishOutcome()>>(
[this, request]()
{
return this->describeToutiaoLivePublish(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeUpBpsPeakDataOutcome LiveClient::describeUpBpsPeakData(const DescribeUpBpsPeakDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -8619,6 +8763,42 @@ LiveClient::UpdateLiveDetectNotifyConfigOutcomeCallable LiveClient::updateLiveDe
return task->get_future();
}
LiveClient::UpdateLivePullStreamInfoConfigOutcome LiveClient::updateLivePullStreamInfoConfig(const UpdateLivePullStreamInfoConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateLivePullStreamInfoConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateLivePullStreamInfoConfigOutcome(UpdateLivePullStreamInfoConfigResult(outcome.result()));
else
return UpdateLivePullStreamInfoConfigOutcome(outcome.error());
}
void LiveClient::updateLivePullStreamInfoConfigAsync(const UpdateLivePullStreamInfoConfigRequest& request, const UpdateLivePullStreamInfoConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateLivePullStreamInfoConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::UpdateLivePullStreamInfoConfigOutcomeCallable LiveClient::updateLivePullStreamInfoConfigCallable(const UpdateLivePullStreamInfoConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateLivePullStreamInfoConfigOutcome()>>(
[this, request]()
{
return this->updateLivePullStreamInfoConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::UpdateLiveRecordNotifyConfigOutcome LiveClient::updateLiveRecordNotifyConfig(const UpdateLiveRecordNotifyConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -60,6 +60,17 @@ void AddCustomLiveStreamTranscodeRequest::setGop(const std::string& gop)
setParameter("Gop", gop);
}
std::string AddCustomLiveStreamTranscodeRequest::getKmsKeyExpireInterval()const
{
return kmsKeyExpireInterval_;
}
void AddCustomLiveStreamTranscodeRequest::setKmsKeyExpireInterval(const std::string& kmsKeyExpireInterval)
{
kmsKeyExpireInterval_ = kmsKeyExpireInterval;
setParameter("KmsKeyExpireInterval", kmsKeyExpireInterval);
}
std::string AddCustomLiveStreamTranscodeRequest::getAudioCodec()const
{
return audioCodec_;
@@ -71,6 +82,17 @@ void AddCustomLiveStreamTranscodeRequest::setAudioCodec(const std::string& audio
setParameter("AudioCodec", audioCodec);
}
std::string AddCustomLiveStreamTranscodeRequest::getKmsUID()const
{
return kmsUID_;
}
void AddCustomLiveStreamTranscodeRequest::setKmsUID(const std::string& kmsUID)
{
kmsUID_ = kmsUID;
setParameter("KmsUID", kmsUID);
}
std::string AddCustomLiveStreamTranscodeRequest::getTemplateType()const
{
return templateType_;
@@ -115,6 +137,17 @@ void AddCustomLiveStreamTranscodeRequest::setApp(const std::string& app)
setParameter("App", app);
}
std::string AddCustomLiveStreamTranscodeRequest::getEncryptParameters()const
{
return encryptParameters_;
}
void AddCustomLiveStreamTranscodeRequest::setEncryptParameters(const std::string& encryptParameters)
{
encryptParameters_ = encryptParameters;
setParameter("EncryptParameters", encryptParameters);
}
int AddCustomLiveStreamTranscodeRequest::getAudioChannelNum()const
{
return audioChannelNum_;
@@ -214,3 +247,14 @@ void AddCustomLiveStreamTranscodeRequest::setVideoBitrate(int videoBitrate)
setParameter("VideoBitrate", std::to_string(videoBitrate));
}
std::string AddCustomLiveStreamTranscodeRequest::getKmsKeyID()const
{
return kmsKeyID_;
}
void AddCustomLiveStreamTranscodeRequest::setKmsKeyID(const std::string& kmsKeyID)
{
kmsKeyID_ = kmsKeyID;
setParameter("KmsKeyID", kmsKeyID);
}

View File

@@ -57,6 +57,8 @@ void DescribeDRMCertListResult::parse(const std::string &payload)
dRMCertInfoListListObject.ask = valueDRMCertInfoListListCertInfo["Ask"].asString();
if(!valueDRMCertInfoListListCertInfo["Description"].isNull())
dRMCertInfoListListObject.description = valueDRMCertInfoListListCertInfo["Description"].asString();
if(!valueDRMCertInfoListListCertInfo["CreateDate"].isNull())
dRMCertInfoListListObject.createDate = valueDRMCertInfoListListCertInfo["CreateDate"].asString();
dRMCertInfoListList_.push_back(dRMCertInfoListListObject);
}

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/DescribeLiveDomainRecordUsageDataRequest.h>
using AlibabaCloud::Live::Model::DescribeLiveDomainRecordUsageDataRequest;
DescribeLiveDomainRecordUsageDataRequest::DescribeLiveDomainRecordUsageDataRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainRecordUsageData")
{
setMethod(HttpRequest::Method::Post);
}
DescribeLiveDomainRecordUsageDataRequest::~DescribeLiveDomainRecordUsageDataRequest()
{}
std::string DescribeLiveDomainRecordUsageDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeLiveDomainRecordUsageDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeLiveDomainRecordUsageDataRequest::getSplitBy()const
{
return splitBy_;
}
void DescribeLiveDomainRecordUsageDataRequest::setSplitBy(const std::string& splitBy)
{
splitBy_ = splitBy;
setParameter("SplitBy", splitBy);
}
std::string DescribeLiveDomainRecordUsageDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeLiveDomainRecordUsageDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeLiveDomainRecordUsageDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeLiveDomainRecordUsageDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeLiveDomainRecordUsageDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeLiveDomainRecordUsageDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,65 @@
/*
* 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/DescribeLiveDomainRecordUsageDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveDomainRecordUsageDataResult::DescribeLiveDomainRecordUsageDataResult() :
ServiceResult()
{}
DescribeLiveDomainRecordUsageDataResult::DescribeLiveDomainRecordUsageDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveDomainRecordUsageDataResult::~DescribeLiveDomainRecordUsageDataResult()
{}
void DescribeLiveDomainRecordUsageDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRecordUsageDataNode = value["RecordUsageData"]["DataModule"];
for (auto valueRecordUsageDataDataModule : allRecordUsageDataNode)
{
DataModule recordUsageDataObject;
if(!valueRecordUsageDataDataModule["TimeStamp"].isNull())
recordUsageDataObject.timeStamp = valueRecordUsageDataDataModule["TimeStamp"].asString();
if(!valueRecordUsageDataDataModule["Domain"].isNull())
recordUsageDataObject.domain = valueRecordUsageDataDataModule["Domain"].asString();
if(!valueRecordUsageDataDataModule["Type"].isNull())
recordUsageDataObject.type = valueRecordUsageDataDataModule["Type"].asString();
if(!valueRecordUsageDataDataModule["Size"].isNull())
recordUsageDataObject.size = std::stol(valueRecordUsageDataDataModule["Size"].asString());
if(!valueRecordUsageDataDataModule["Count"].isNull())
recordUsageDataObject.count = std::stol(valueRecordUsageDataDataModule["Count"].asString());
recordUsageData_.push_back(recordUsageDataObject);
}
}
std::vector<DescribeLiveDomainRecordUsageDataResult::DataModule> DescribeLiveDomainRecordUsageDataResult::getRecordUsageData()const
{
return recordUsageData_;
}

View File

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

View File

@@ -0,0 +1,65 @@
/*
* 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/DescribeLiveDrmUsageDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveDrmUsageDataResult::DescribeLiveDrmUsageDataResult() :
ServiceResult()
{}
DescribeLiveDrmUsageDataResult::DescribeLiveDrmUsageDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveDrmUsageDataResult::~DescribeLiveDrmUsageDataResult()
{}
void DescribeLiveDrmUsageDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDrmUsageDataNode = value["DrmUsageData"]["DataModule"];
for (auto valueDrmUsageDataDataModule : allDrmUsageDataNode)
{
DataModule drmUsageDataObject;
if(!valueDrmUsageDataDataModule["TimeStamp"].isNull())
drmUsageDataObject.timeStamp = valueDrmUsageDataDataModule["TimeStamp"].asString();
if(!valueDrmUsageDataDataModule["Domain"].isNull())
drmUsageDataObject.domain = valueDrmUsageDataDataModule["Domain"].asString();
if(!valueDrmUsageDataDataModule["Region"].isNull())
drmUsageDataObject.region = valueDrmUsageDataDataModule["Region"].asString();
if(!valueDrmUsageDataDataModule["DrmType"].isNull())
drmUsageDataObject.drmType = valueDrmUsageDataDataModule["DrmType"].asString();
if(!valueDrmUsageDataDataModule["Count"].isNull())
drmUsageDataObject.count = std::stol(valueDrmUsageDataDataModule["Count"].asString());
drmUsageData_.push_back(drmUsageDataObject);
}
}
std::vector<DescribeLiveDrmUsageDataResult::DataModule> DescribeLiveDrmUsageDataResult::getDrmUsageData()const
{
return drmUsageData_;
}

View File

@@ -49,6 +49,17 @@ void DescribeLiveRealtimeDeliveryAccRequest::setStartTime(const std::string& sta
setParameter("StartTime", startTime);
}
std::string DescribeLiveRealtimeDeliveryAccRequest::getDomainName()const
{
return domainName_;
}
void DescribeLiveRealtimeDeliveryAccRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeLiveRealtimeDeliveryAccRequest::getEndTime()const
{
return endTime_;

View File

@@ -63,6 +63,8 @@ void DescribeLiveStreamsOnlineListResult::parse(const std::string &payload)
onlineInfoObject.transcoded = valueOnlineInfoLiveStreamOnlineInfo["Transcoded"].asString();
if(!valueOnlineInfoLiveStreamOnlineInfo["TranscodeId"].isNull())
onlineInfoObject.transcodeId = valueOnlineInfoLiveStreamOnlineInfo["TranscodeId"].asString();
if(!valueOnlineInfoLiveStreamOnlineInfo["TranscodeDrm"].isNull())
onlineInfoObject.transcodeDrm = valueOnlineInfoLiveStreamOnlineInfo["TranscodeDrm"].asString();
if(!valueOnlineInfoLiveStreamOnlineInfo["ServerIp"].isNull())
onlineInfoObject.serverIp = valueOnlineInfoLiveStreamOnlineInfo["ServerIp"].asString();
if(!valueOnlineInfoLiveStreamOnlineInfo["ClientIp"].isNull())

View File

@@ -0,0 +1,95 @@
/*
* 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/DescribeToutiaoLivePlayRequest.h>
using AlibabaCloud::Live::Model::DescribeToutiaoLivePlayRequest;
DescribeToutiaoLivePlayRequest::DescribeToutiaoLivePlayRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeToutiaoLivePlay")
{
setMethod(HttpRequest::Method::Post);
}
DescribeToutiaoLivePlayRequest::~DescribeToutiaoLivePlayRequest()
{}
std::string DescribeToutiaoLivePlayRequest::getStartTime()const
{
return startTime_;
}
void DescribeToutiaoLivePlayRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeToutiaoLivePlayRequest::getStream()const
{
return stream_;
}
void DescribeToutiaoLivePlayRequest::setStream(const std::string& stream)
{
stream_ = stream;
setParameter("Stream", stream);
}
std::string DescribeToutiaoLivePlayRequest::getApp()const
{
return app_;
}
void DescribeToutiaoLivePlayRequest::setApp(const std::string& app)
{
app_ = app;
setParameter("App", app);
}
std::string DescribeToutiaoLivePlayRequest::getEndTime()const
{
return endTime_;
}
void DescribeToutiaoLivePlayRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeToutiaoLivePlayRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeToutiaoLivePlayRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeToutiaoLivePlayRequest::getDomain()const
{
return domain_;
}
void DescribeToutiaoLivePlayRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

View File

@@ -0,0 +1,76 @@
/*
* 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/DescribeToutiaoLivePlayResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeToutiaoLivePlayResult::DescribeToutiaoLivePlayResult() :
ServiceResult()
{}
DescribeToutiaoLivePlayResult::DescribeToutiaoLivePlayResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeToutiaoLivePlayResult::~DescribeToutiaoLivePlayResult()
{}
void DescribeToutiaoLivePlayResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allContentNode = value["Content"]["ContentItem"];
for (auto valueContentContentItem : allContentNode)
{
ContentItem contentObject;
if(!valueContentContentItem["App"].isNull())
contentObject.app = valueContentContentItem["App"].asString();
if(!valueContentContentItem["Bandwidth"].isNull())
contentObject.bandwidth = std::stof(valueContentContentItem["Bandwidth"].asString());
if(!valueContentContentItem["CdnName"].isNull())
contentObject.cdnName = valueContentContentItem["CdnName"].asString();
if(!valueContentContentItem["Domain"].isNull())
contentObject.domain = valueContentContentItem["Domain"].asString();
if(!valueContentContentItem["PlayNum"].isNull())
contentObject.playNum = std::stol(valueContentContentItem["PlayNum"].asString());
if(!valueContentContentItem["StreamName"].isNull())
contentObject.streamName = valueContentContentItem["StreamName"].asString();
if(!valueContentContentItem["Timestamp"].isNull())
contentObject.timestamp = std::stol(valueContentContentItem["Timestamp"].asString());
content_.push_back(contentObject);
}
if(!value["Description"].isNull())
description_ = value["Description"].asString();
}
std::string DescribeToutiaoLivePlayResult::getDescription()const
{
return description_;
}
std::vector<DescribeToutiaoLivePlayResult::ContentItem> DescribeToutiaoLivePlayResult::getContent()const
{
return content_;
}

View File

@@ -0,0 +1,95 @@
/*
* 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/DescribeToutiaoLivePublishRequest.h>
using AlibabaCloud::Live::Model::DescribeToutiaoLivePublishRequest;
DescribeToutiaoLivePublishRequest::DescribeToutiaoLivePublishRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeToutiaoLivePublish")
{
setMethod(HttpRequest::Method::Post);
}
DescribeToutiaoLivePublishRequest::~DescribeToutiaoLivePublishRequest()
{}
std::string DescribeToutiaoLivePublishRequest::getStartTime()const
{
return startTime_;
}
void DescribeToutiaoLivePublishRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeToutiaoLivePublishRequest::getStream()const
{
return stream_;
}
void DescribeToutiaoLivePublishRequest::setStream(const std::string& stream)
{
stream_ = stream;
setParameter("Stream", stream);
}
std::string DescribeToutiaoLivePublishRequest::getApp()const
{
return app_;
}
void DescribeToutiaoLivePublishRequest::setApp(const std::string& app)
{
app_ = app;
setParameter("App", app);
}
std::string DescribeToutiaoLivePublishRequest::getEndTime()const
{
return endTime_;
}
void DescribeToutiaoLivePublishRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeToutiaoLivePublishRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeToutiaoLivePublishRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeToutiaoLivePublishRequest::getDomain()const
{
return domain_;
}
void DescribeToutiaoLivePublishRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

View File

@@ -0,0 +1,80 @@
/*
* 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/DescribeToutiaoLivePublishResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeToutiaoLivePublishResult::DescribeToutiaoLivePublishResult() :
ServiceResult()
{}
DescribeToutiaoLivePublishResult::DescribeToutiaoLivePublishResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeToutiaoLivePublishResult::~DescribeToutiaoLivePublishResult()
{}
void DescribeToutiaoLivePublishResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allContentNode = value["Content"]["ContentItem"];
for (auto valueContentContentItem : allContentNode)
{
ContentItem contentObject;
if(!valueContentContentItem["App"].isNull())
contentObject.app = valueContentContentItem["App"].asString();
if(!valueContentContentItem["Bitrate"].isNull())
contentObject.bitrate = std::stof(valueContentContentItem["Bitrate"].asString());
if(!valueContentContentItem["BwDiff"].isNull())
contentObject.bwDiff = std::stof(valueContentContentItem["BwDiff"].asString());
if(!valueContentContentItem["CdnName"].isNull())
contentObject.cdnName = valueContentContentItem["CdnName"].asString();
if(!valueContentContentItem["Domain"].isNull())
contentObject.domain = valueContentContentItem["Domain"].asString();
if(!valueContentContentItem["Flr"].isNull())
contentObject.flr = std::stof(valueContentContentItem["Flr"].asString());
if(!valueContentContentItem["Fps"].isNull())
contentObject.fps = std::stof(valueContentContentItem["Fps"].asString());
if(!valueContentContentItem["StreamName"].isNull())
contentObject.streamName = valueContentContentItem["StreamName"].asString();
if(!valueContentContentItem["Timestamp"].isNull())
contentObject.timestamp = std::stol(valueContentContentItem["Timestamp"].asString());
content_.push_back(contentObject);
}
if(!value["Description"].isNull())
description_ = value["Description"].asString();
}
std::string DescribeToutiaoLivePublishResult::getDescription()const
{
return description_;
}
std::vector<DescribeToutiaoLivePublishResult::ContentItem> DescribeToutiaoLivePublishResult::getContent()const
{
return content_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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/UpdateLivePullStreamInfoConfigRequest.h>
using AlibabaCloud::Live::Model::UpdateLivePullStreamInfoConfigRequest;
UpdateLivePullStreamInfoConfigRequest::UpdateLivePullStreamInfoConfigRequest() :
RpcServiceRequest("live", "2016-11-01", "UpdateLivePullStreamInfoConfig")
{
setMethod(HttpRequest::Method::Get);
}
UpdateLivePullStreamInfoConfigRequest::~UpdateLivePullStreamInfoConfigRequest()
{}
std::string UpdateLivePullStreamInfoConfigRequest::getStartTime()const
{
return startTime_;
}
void UpdateLivePullStreamInfoConfigRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string UpdateLivePullStreamInfoConfigRequest::getAppName()const
{
return appName_;
}
void UpdateLivePullStreamInfoConfigRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string UpdateLivePullStreamInfoConfigRequest::getStreamName()const
{
return streamName_;
}
void UpdateLivePullStreamInfoConfigRequest::setStreamName(const std::string& streamName)
{
streamName_ = streamName;
setParameter("StreamName", streamName);
}
std::string UpdateLivePullStreamInfoConfigRequest::getPullAlways()const
{
return pullAlways_;
}
void UpdateLivePullStreamInfoConfigRequest::setPullAlways(const std::string& pullAlways)
{
pullAlways_ = pullAlways;
setParameter("PullAlways", pullAlways);
}
std::string UpdateLivePullStreamInfoConfigRequest::getDomainName()const
{
return domainName_;
}
void UpdateLivePullStreamInfoConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string UpdateLivePullStreamInfoConfigRequest::getEndTime()const
{
return endTime_;
}
void UpdateLivePullStreamInfoConfigRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long UpdateLivePullStreamInfoConfigRequest::getOwnerId()const
{
return ownerId_;
}
void UpdateLivePullStreamInfoConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string UpdateLivePullStreamInfoConfigRequest::getSourceUrl()const
{
return sourceUrl_;
}
void UpdateLivePullStreamInfoConfigRequest::setSourceUrl(const std::string& sourceUrl)
{
sourceUrl_ = sourceUrl;
setParameter("SourceUrl", sourceUrl);
}

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