diff --git a/CHANGELOG b/CHANGELOG index 39a001076..974529e81 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-08-19 Version: 1.36.600 +- Add DescribeLiveDomainCertificateInfo. + 2020-08-19 Version: 1.36.599 - Generated 2020-08-01 for `SmartHosting`. diff --git a/VERSION b/VERSION index fe5c24783..e03272df7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.599 \ No newline at end of file +1.36.600 \ No newline at end of file diff --git a/live/CMakeLists.txt b/live/CMakeLists.txt index fa7dae39a..5a8283834 100644 --- a/live/CMakeLists.txt +++ b/live/CMakeLists.txt @@ -61,6 +61,8 @@ set(live_public_header_model include/alibabacloud/live/model/AddLiveSnapshotDetectPornConfigResult.h include/alibabacloud/live/model/AddLiveStreamTranscodeRequest.h include/alibabacloud/live/model/AddLiveStreamTranscodeResult.h + include/alibabacloud/live/model/AddRtsLiveStreamTranscodeRequest.h + include/alibabacloud/live/model/AddRtsLiveStreamTranscodeResult.h include/alibabacloud/live/model/AddTrancodeSEIRequest.h include/alibabacloud/live/model/AddTrancodeSEIResult.h include/alibabacloud/live/model/AllowPushStreamRequest.h @@ -199,12 +201,16 @@ set(live_public_header_model include/alibabacloud/live/model/DescribeLiveDomainBpsDataResult.h include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampRequest.h include/alibabacloud/live/model/DescribeLiveDomainBpsDataByTimeStampResult.h + include/alibabacloud/live/model/DescribeLiveDomainCertificateInfoRequest.h + include/alibabacloud/live/model/DescribeLiveDomainCertificateInfoResult.h include/alibabacloud/live/model/DescribeLiveDomainConfigsRequest.h include/alibabacloud/live/model/DescribeLiveDomainConfigsResult.h include/alibabacloud/live/model/DescribeLiveDomainDetailRequest.h include/alibabacloud/live/model/DescribeLiveDomainDetailResult.h include/alibabacloud/live/model/DescribeLiveDomainFrameRateAndBitRateDataRequest.h include/alibabacloud/live/model/DescribeLiveDomainFrameRateAndBitRateDataResult.h + include/alibabacloud/live/model/DescribeLiveDomainLimitRequest.h + include/alibabacloud/live/model/DescribeLiveDomainLimitResult.h include/alibabacloud/live/model/DescribeLiveDomainMappingRequest.h include/alibabacloud/live/model/DescribeLiveDomainMappingResult.h include/alibabacloud/live/model/DescribeLiveDomainOnlineUserNumRequest.h @@ -225,14 +231,14 @@ set(live_public_header_model include/alibabacloud/live/model/DescribeLiveDomainRecordDataResult.h include/alibabacloud/live/model/DescribeLiveDomainSnapshotDataRequest.h include/alibabacloud/live/model/DescribeLiveDomainSnapshotDataResult.h + include/alibabacloud/live/model/DescribeLiveDomainTimeShiftDataRequest.h + include/alibabacloud/live/model/DescribeLiveDomainTimeShiftDataResult.h include/alibabacloud/live/model/DescribeLiveDomainTrafficDataRequest.h include/alibabacloud/live/model/DescribeLiveDomainTrafficDataResult.h include/alibabacloud/live/model/DescribeLiveDomainTranscodeDataRequest.h include/alibabacloud/live/model/DescribeLiveDomainTranscodeDataResult.h include/alibabacloud/live/model/DescribeLiveLazyPullStreamConfigRequest.h include/alibabacloud/live/model/DescribeLiveLazyPullStreamConfigResult.h - include/alibabacloud/live/model/DescribeLivePullStreamConfigRequest.h - include/alibabacloud/live/model/DescribeLivePullStreamConfigResult.h include/alibabacloud/live/model/DescribeLiveRealtimeDeliveryAccRequest.h include/alibabacloud/live/model/DescribeLiveRealtimeDeliveryAccResult.h include/alibabacloud/live/model/DescribeLiveRealtimeLogAuthorizedRequest.h @@ -460,6 +466,8 @@ set(live_src src/model/AddLiveSnapshotDetectPornConfigResult.cc src/model/AddLiveStreamTranscodeRequest.cc src/model/AddLiveStreamTranscodeResult.cc + src/model/AddRtsLiveStreamTranscodeRequest.cc + src/model/AddRtsLiveStreamTranscodeResult.cc src/model/AddTrancodeSEIRequest.cc src/model/AddTrancodeSEIResult.cc src/model/AllowPushStreamRequest.cc @@ -598,12 +606,16 @@ set(live_src src/model/DescribeLiveDomainBpsDataResult.cc src/model/DescribeLiveDomainBpsDataByTimeStampRequest.cc src/model/DescribeLiveDomainBpsDataByTimeStampResult.cc + src/model/DescribeLiveDomainCertificateInfoRequest.cc + src/model/DescribeLiveDomainCertificateInfoResult.cc src/model/DescribeLiveDomainConfigsRequest.cc src/model/DescribeLiveDomainConfigsResult.cc src/model/DescribeLiveDomainDetailRequest.cc src/model/DescribeLiveDomainDetailResult.cc src/model/DescribeLiveDomainFrameRateAndBitRateDataRequest.cc src/model/DescribeLiveDomainFrameRateAndBitRateDataResult.cc + src/model/DescribeLiveDomainLimitRequest.cc + src/model/DescribeLiveDomainLimitResult.cc src/model/DescribeLiveDomainMappingRequest.cc src/model/DescribeLiveDomainMappingResult.cc src/model/DescribeLiveDomainOnlineUserNumRequest.cc @@ -624,14 +636,14 @@ set(live_src src/model/DescribeLiveDomainRecordDataResult.cc src/model/DescribeLiveDomainSnapshotDataRequest.cc src/model/DescribeLiveDomainSnapshotDataResult.cc + src/model/DescribeLiveDomainTimeShiftDataRequest.cc + src/model/DescribeLiveDomainTimeShiftDataResult.cc src/model/DescribeLiveDomainTrafficDataRequest.cc src/model/DescribeLiveDomainTrafficDataResult.cc src/model/DescribeLiveDomainTranscodeDataRequest.cc src/model/DescribeLiveDomainTranscodeDataResult.cc src/model/DescribeLiveLazyPullStreamConfigRequest.cc src/model/DescribeLiveLazyPullStreamConfigResult.cc - src/model/DescribeLivePullStreamConfigRequest.cc - src/model/DescribeLivePullStreamConfigResult.cc src/model/DescribeLiveRealtimeDeliveryAccRequest.cc src/model/DescribeLiveRealtimeDeliveryAccResult.cc src/model/DescribeLiveRealtimeLogAuthorizedRequest.cc diff --git a/live/include/alibabacloud/live/LiveClient.h b/live/include/alibabacloud/live/LiveClient.h index 2b43ec208..ea2c41c02 100644 --- a/live/include/alibabacloud/live/LiveClient.h +++ b/live/include/alibabacloud/live/LiveClient.h @@ -62,6 +62,8 @@ #include "model/AddLiveSnapshotDetectPornConfigResult.h" #include "model/AddLiveStreamTranscodeRequest.h" #include "model/AddLiveStreamTranscodeResult.h" +#include "model/AddRtsLiveStreamTranscodeRequest.h" +#include "model/AddRtsLiveStreamTranscodeResult.h" #include "model/AddTrancodeSEIRequest.h" #include "model/AddTrancodeSEIResult.h" #include "model/AllowPushStreamRequest.h" @@ -200,12 +202,16 @@ #include "model/DescribeLiveDomainBpsDataResult.h" #include "model/DescribeLiveDomainBpsDataByTimeStampRequest.h" #include "model/DescribeLiveDomainBpsDataByTimeStampResult.h" +#include "model/DescribeLiveDomainCertificateInfoRequest.h" +#include "model/DescribeLiveDomainCertificateInfoResult.h" #include "model/DescribeLiveDomainConfigsRequest.h" #include "model/DescribeLiveDomainConfigsResult.h" #include "model/DescribeLiveDomainDetailRequest.h" #include "model/DescribeLiveDomainDetailResult.h" #include "model/DescribeLiveDomainFrameRateAndBitRateDataRequest.h" #include "model/DescribeLiveDomainFrameRateAndBitRateDataResult.h" +#include "model/DescribeLiveDomainLimitRequest.h" +#include "model/DescribeLiveDomainLimitResult.h" #include "model/DescribeLiveDomainMappingRequest.h" #include "model/DescribeLiveDomainMappingResult.h" #include "model/DescribeLiveDomainOnlineUserNumRequest.h" @@ -226,14 +232,14 @@ #include "model/DescribeLiveDomainRecordDataResult.h" #include "model/DescribeLiveDomainSnapshotDataRequest.h" #include "model/DescribeLiveDomainSnapshotDataResult.h" +#include "model/DescribeLiveDomainTimeShiftDataRequest.h" +#include "model/DescribeLiveDomainTimeShiftDataResult.h" #include "model/DescribeLiveDomainTrafficDataRequest.h" #include "model/DescribeLiveDomainTrafficDataResult.h" #include "model/DescribeLiveDomainTranscodeDataRequest.h" #include "model/DescribeLiveDomainTranscodeDataResult.h" #include "model/DescribeLiveLazyPullStreamConfigRequest.h" #include "model/DescribeLiveLazyPullStreamConfigResult.h" -#include "model/DescribeLivePullStreamConfigRequest.h" -#include "model/DescribeLivePullStreamConfigResult.h" #include "model/DescribeLiveRealtimeDeliveryAccRequest.h" #include "model/DescribeLiveRealtimeDeliveryAccResult.h" #include "model/DescribeLiveRealtimeLogAuthorizedRequest.h" @@ -487,6 +493,9 @@ namespace AlibabaCloud typedef Outcome AddLiveStreamTranscodeOutcome; typedef std::future AddLiveStreamTranscodeOutcomeCallable; typedef std::function&)> AddLiveStreamTranscodeAsyncHandler; + typedef Outcome AddRtsLiveStreamTranscodeOutcome; + typedef std::future AddRtsLiveStreamTranscodeOutcomeCallable; + typedef std::function&)> AddRtsLiveStreamTranscodeAsyncHandler; typedef Outcome AddTrancodeSEIOutcome; typedef std::future AddTrancodeSEIOutcomeCallable; typedef std::function&)> AddTrancodeSEIAsyncHandler; @@ -694,6 +703,9 @@ namespace AlibabaCloud typedef Outcome DescribeLiveDomainBpsDataByTimeStampOutcome; typedef std::future DescribeLiveDomainBpsDataByTimeStampOutcomeCallable; typedef std::function&)> DescribeLiveDomainBpsDataByTimeStampAsyncHandler; + typedef Outcome DescribeLiveDomainCertificateInfoOutcome; + typedef std::future DescribeLiveDomainCertificateInfoOutcomeCallable; + typedef std::function&)> DescribeLiveDomainCertificateInfoAsyncHandler; typedef Outcome DescribeLiveDomainConfigsOutcome; typedef std::future DescribeLiveDomainConfigsOutcomeCallable; typedef std::function&)> DescribeLiveDomainConfigsAsyncHandler; @@ -703,6 +715,9 @@ namespace AlibabaCloud typedef Outcome DescribeLiveDomainFrameRateAndBitRateDataOutcome; typedef std::future DescribeLiveDomainFrameRateAndBitRateDataOutcomeCallable; typedef std::function&)> DescribeLiveDomainFrameRateAndBitRateDataAsyncHandler; + typedef Outcome DescribeLiveDomainLimitOutcome; + typedef std::future DescribeLiveDomainLimitOutcomeCallable; + typedef std::function&)> DescribeLiveDomainLimitAsyncHandler; typedef Outcome DescribeLiveDomainMappingOutcome; typedef std::future DescribeLiveDomainMappingOutcomeCallable; typedef std::function&)> DescribeLiveDomainMappingAsyncHandler; @@ -733,6 +748,9 @@ namespace AlibabaCloud typedef Outcome DescribeLiveDomainSnapshotDataOutcome; typedef std::future DescribeLiveDomainSnapshotDataOutcomeCallable; typedef std::function&)> DescribeLiveDomainSnapshotDataAsyncHandler; + typedef Outcome DescribeLiveDomainTimeShiftDataOutcome; + typedef std::future DescribeLiveDomainTimeShiftDataOutcomeCallable; + typedef std::function&)> DescribeLiveDomainTimeShiftDataAsyncHandler; typedef Outcome DescribeLiveDomainTrafficDataOutcome; typedef std::future DescribeLiveDomainTrafficDataOutcomeCallable; typedef std::function&)> DescribeLiveDomainTrafficDataAsyncHandler; @@ -742,9 +760,6 @@ namespace AlibabaCloud typedef Outcome DescribeLiveLazyPullStreamConfigOutcome; typedef std::future DescribeLiveLazyPullStreamConfigOutcomeCallable; typedef std::function&)> DescribeLiveLazyPullStreamConfigAsyncHandler; - typedef Outcome DescribeLivePullStreamConfigOutcome; - typedef std::future DescribeLivePullStreamConfigOutcomeCallable; - typedef std::function&)> DescribeLivePullStreamConfigAsyncHandler; typedef Outcome DescribeLiveRealtimeDeliveryAccOutcome; typedef std::future DescribeLiveRealtimeDeliveryAccOutcomeCallable; typedef std::function&)> DescribeLiveRealtimeDeliveryAccAsyncHandler; @@ -1086,6 +1101,9 @@ namespace AlibabaCloud AddLiveStreamTranscodeOutcome addLiveStreamTranscode(const Model::AddLiveStreamTranscodeRequest &request)const; void addLiveStreamTranscodeAsync(const Model::AddLiveStreamTranscodeRequest& request, const AddLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddLiveStreamTranscodeOutcomeCallable addLiveStreamTranscodeCallable(const Model::AddLiveStreamTranscodeRequest& request) const; + AddRtsLiveStreamTranscodeOutcome addRtsLiveStreamTranscode(const Model::AddRtsLiveStreamTranscodeRequest &request)const; + void addRtsLiveStreamTranscodeAsync(const Model::AddRtsLiveStreamTranscodeRequest& request, const AddRtsLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddRtsLiveStreamTranscodeOutcomeCallable addRtsLiveStreamTranscodeCallable(const Model::AddRtsLiveStreamTranscodeRequest& request) const; AddTrancodeSEIOutcome addTrancodeSEI(const Model::AddTrancodeSEIRequest &request)const; void addTrancodeSEIAsync(const Model::AddTrancodeSEIRequest& request, const AddTrancodeSEIAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddTrancodeSEIOutcomeCallable addTrancodeSEICallable(const Model::AddTrancodeSEIRequest& request) const; @@ -1293,6 +1311,9 @@ namespace AlibabaCloud DescribeLiveDomainBpsDataByTimeStampOutcome describeLiveDomainBpsDataByTimeStamp(const Model::DescribeLiveDomainBpsDataByTimeStampRequest &request)const; void describeLiveDomainBpsDataByTimeStampAsync(const Model::DescribeLiveDomainBpsDataByTimeStampRequest& request, const DescribeLiveDomainBpsDataByTimeStampAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveDomainBpsDataByTimeStampOutcomeCallable describeLiveDomainBpsDataByTimeStampCallable(const Model::DescribeLiveDomainBpsDataByTimeStampRequest& request) const; + DescribeLiveDomainCertificateInfoOutcome describeLiveDomainCertificateInfo(const Model::DescribeLiveDomainCertificateInfoRequest &request)const; + void describeLiveDomainCertificateInfoAsync(const Model::DescribeLiveDomainCertificateInfoRequest& request, const DescribeLiveDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveDomainCertificateInfoOutcomeCallable describeLiveDomainCertificateInfoCallable(const Model::DescribeLiveDomainCertificateInfoRequest& request) const; DescribeLiveDomainConfigsOutcome describeLiveDomainConfigs(const Model::DescribeLiveDomainConfigsRequest &request)const; void describeLiveDomainConfigsAsync(const Model::DescribeLiveDomainConfigsRequest& request, const DescribeLiveDomainConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveDomainConfigsOutcomeCallable describeLiveDomainConfigsCallable(const Model::DescribeLiveDomainConfigsRequest& request) const; @@ -1302,6 +1323,9 @@ namespace AlibabaCloud DescribeLiveDomainFrameRateAndBitRateDataOutcome describeLiveDomainFrameRateAndBitRateData(const Model::DescribeLiveDomainFrameRateAndBitRateDataRequest &request)const; void describeLiveDomainFrameRateAndBitRateDataAsync(const Model::DescribeLiveDomainFrameRateAndBitRateDataRequest& request, const DescribeLiveDomainFrameRateAndBitRateDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveDomainFrameRateAndBitRateDataOutcomeCallable describeLiveDomainFrameRateAndBitRateDataCallable(const Model::DescribeLiveDomainFrameRateAndBitRateDataRequest& request) const; + DescribeLiveDomainLimitOutcome describeLiveDomainLimit(const Model::DescribeLiveDomainLimitRequest &request)const; + void describeLiveDomainLimitAsync(const Model::DescribeLiveDomainLimitRequest& request, const DescribeLiveDomainLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveDomainLimitOutcomeCallable describeLiveDomainLimitCallable(const Model::DescribeLiveDomainLimitRequest& request) const; DescribeLiveDomainMappingOutcome describeLiveDomainMapping(const Model::DescribeLiveDomainMappingRequest &request)const; void describeLiveDomainMappingAsync(const Model::DescribeLiveDomainMappingRequest& request, const DescribeLiveDomainMappingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveDomainMappingOutcomeCallable describeLiveDomainMappingCallable(const Model::DescribeLiveDomainMappingRequest& request) const; @@ -1332,6 +1356,9 @@ namespace AlibabaCloud DescribeLiveDomainSnapshotDataOutcome describeLiveDomainSnapshotData(const Model::DescribeLiveDomainSnapshotDataRequest &request)const; void describeLiveDomainSnapshotDataAsync(const Model::DescribeLiveDomainSnapshotDataRequest& request, const DescribeLiveDomainSnapshotDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveDomainSnapshotDataOutcomeCallable describeLiveDomainSnapshotDataCallable(const Model::DescribeLiveDomainSnapshotDataRequest& request) const; + DescribeLiveDomainTimeShiftDataOutcome describeLiveDomainTimeShiftData(const Model::DescribeLiveDomainTimeShiftDataRequest &request)const; + void describeLiveDomainTimeShiftDataAsync(const Model::DescribeLiveDomainTimeShiftDataRequest& request, const DescribeLiveDomainTimeShiftDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveDomainTimeShiftDataOutcomeCallable describeLiveDomainTimeShiftDataCallable(const Model::DescribeLiveDomainTimeShiftDataRequest& request) const; DescribeLiveDomainTrafficDataOutcome describeLiveDomainTrafficData(const Model::DescribeLiveDomainTrafficDataRequest &request)const; void describeLiveDomainTrafficDataAsync(const Model::DescribeLiveDomainTrafficDataRequest& request, const DescribeLiveDomainTrafficDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveDomainTrafficDataOutcomeCallable describeLiveDomainTrafficDataCallable(const Model::DescribeLiveDomainTrafficDataRequest& request) const; @@ -1341,9 +1368,6 @@ namespace AlibabaCloud DescribeLiveLazyPullStreamConfigOutcome describeLiveLazyPullStreamConfig(const Model::DescribeLiveLazyPullStreamConfigRequest &request)const; void describeLiveLazyPullStreamConfigAsync(const Model::DescribeLiveLazyPullStreamConfigRequest& request, const DescribeLiveLazyPullStreamConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveLazyPullStreamConfigOutcomeCallable describeLiveLazyPullStreamConfigCallable(const Model::DescribeLiveLazyPullStreamConfigRequest& request) const; - DescribeLivePullStreamConfigOutcome describeLivePullStreamConfig(const Model::DescribeLivePullStreamConfigRequest &request)const; - void describeLivePullStreamConfigAsync(const Model::DescribeLivePullStreamConfigRequest& request, const DescribeLivePullStreamConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLivePullStreamConfigOutcomeCallable describeLivePullStreamConfigCallable(const Model::DescribeLivePullStreamConfigRequest& request) const; DescribeLiveRealtimeDeliveryAccOutcome describeLiveRealtimeDeliveryAcc(const Model::DescribeLiveRealtimeDeliveryAccRequest &request)const; void describeLiveRealtimeDeliveryAccAsync(const Model::DescribeLiveRealtimeDeliveryAccRequest& request, const DescribeLiveRealtimeDeliveryAccAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveRealtimeDeliveryAccOutcomeCallable describeLiveRealtimeDeliveryAccCallable(const Model::DescribeLiveRealtimeDeliveryAccRequest& request) const; diff --git a/live/include/alibabacloud/live/model/AddLiveAppSnapshotConfigRequest.h b/live/include/alibabacloud/live/model/AddLiveAppSnapshotConfigRequest.h index 44c88d8a5..bf25995e8 100644 --- a/live/include/alibabacloud/live/model/AddLiveAppSnapshotConfigRequest.h +++ b/live/include/alibabacloud/live/model/AddLiveAppSnapshotConfigRequest.h @@ -53,6 +53,8 @@ namespace AlibabaCloud void setSequenceOssObject(const std::string& sequenceOssObject); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getCallback()const; + void setCallback(const std::string& callback); private: int timeInterval_; @@ -64,6 +66,7 @@ namespace AlibabaCloud std::string domainName_; std::string sequenceOssObject_; long ownerId_; + std::string callback_; }; } diff --git a/live/include/alibabacloud/live/model/AddLivePullStreamInfoConfigRequest.h b/live/include/alibabacloud/live/model/AddLivePullStreamInfoConfigRequest.h index 2edc6248e..9a9ba2e8c 100644 --- a/live/include/alibabacloud/live/model/AddLivePullStreamInfoConfigRequest.h +++ b/live/include/alibabacloud/live/model/AddLivePullStreamInfoConfigRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud 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; @@ -54,6 +56,7 @@ namespace AlibabaCloud std::string startTime_; std::string appName_; std::string streamName_; + std::string pullAlways_; std::string domainName_; std::string endTime_; long ownerId_; diff --git a/live/include/alibabacloud/live/model/AddRtsLiveStreamTranscodeRequest.h b/live/include/alibabacloud/live/model/AddRtsLiveStreamTranscodeRequest.h new file mode 100644 index 000000000..ae7eb3823 --- /dev/null +++ b/live/include/alibabacloud/live/model/AddRtsLiveStreamTranscodeRequest.h @@ -0,0 +1,99 @@ +/* + * 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_ADDRTSLIVESTREAMTRANSCODEREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_ADDRTSLIVESTREAMTRANSCODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT AddRtsLiveStreamTranscodeRequest : public RpcServiceRequest + { + + public: + AddRtsLiveStreamTranscodeRequest(); + ~AddRtsLiveStreamTranscodeRequest(); + + std::string get_Template()const; + void set_Template(const std::string& _template); + bool getDeleteBframes()const; + void setDeleteBframes(bool deleteBframes); + std::string getGop()const; + void setGop(const std::string& gop); + bool getOpus()const; + void setOpus(bool opus); + std::string getAudioCodec()const; + void setAudioCodec(const std::string& audioCodec); + std::string getTemplateType()const; + void setTemplateType(const std::string& templateType); + std::string getAudioProfile()const; + void setAudioProfile(const std::string& audioProfile); + int getHeight()const; + void setHeight(int height); + std::string getApp()const; + void setApp(const std::string& app); + int getAudioChannelNum()const; + void setAudioChannelNum(int audioChannelNum); + int getProfile()const; + void setProfile(int profile); + int getFPS()const; + void setFPS(int fPS); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getAudioRate()const; + void setAudioRate(int audioRate); + int getAudioBitrate()const; + void setAudioBitrate(int audioBitrate); + std::string getDomain()const; + void setDomain(const std::string& domain); + int getWidth()const; + void setWidth(int width); + int getVideoBitrate()const; + void setVideoBitrate(int videoBitrate); + + private: + std::string _template_; + bool deleteBframes_; + std::string gop_; + bool opus_; + std::string audioCodec_; + std::string templateType_; + std::string audioProfile_; + int height_; + std::string app_; + int audioChannelNum_; + int profile_; + int fPS_; + long ownerId_; + int audioRate_; + int audioBitrate_; + std::string domain_; + int width_; + int videoBitrate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_ADDRTSLIVESTREAMTRANSCODEREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/AddRtsLiveStreamTranscodeResult.h b/live/include/alibabacloud/live/model/AddRtsLiveStreamTranscodeResult.h new file mode 100644 index 000000000..fe7fb592d --- /dev/null +++ b/live/include/alibabacloud/live/model/AddRtsLiveStreamTranscodeResult.h @@ -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_ADDRTSLIVESTREAMTRANSCODERESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_ADDRTSLIVESTREAMTRANSCODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT AddRtsLiveStreamTranscodeResult : public ServiceResult + { + public: + + + AddRtsLiveStreamTranscodeResult(); + explicit AddRtsLiveStreamTranscodeResult(const std::string &payload); + ~AddRtsLiveStreamTranscodeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_ADDRTSLIVESTREAMTRANSCODERESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLivePullStreamConfigRequest.h b/live/include/alibabacloud/live/model/DescribeLiveDomainCertificateInfoRequest.h similarity index 66% rename from live/include/alibabacloud/live/model/DescribeLivePullStreamConfigRequest.h rename to live/include/alibabacloud/live/model/DescribeLiveDomainCertificateInfoRequest.h index 0b800cafc..75665b0e6 100644 --- a/live/include/alibabacloud/live/model/DescribeLivePullStreamConfigRequest.h +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainCertificateInfoRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEPULLSTREAMCONFIGREQUEST_H_ -#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEPULLSTREAMCONFIGREQUEST_H_ +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINCERTIFICATEINFOREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINCERTIFICATEINFOREQUEST_H_ #include #include @@ -28,27 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_LIVE_EXPORT DescribeLivePullStreamConfigRequest : public RpcServiceRequest + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainCertificateInfoRequest : public RpcServiceRequest { public: - DescribeLivePullStreamConfigRequest(); - ~DescribeLivePullStreamConfigRequest(); + DescribeLiveDomainCertificateInfoRequest(); + ~DescribeLiveDomainCertificateInfoRequest(); std::string getDomainName()const; void setDomainName(const std::string& domainName); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getSecurityToken()const; - void setSecurityToken(const std::string& securityToken); private: std::string domainName_; long ownerId_; - std::string securityToken_; }; } } } -#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEPULLSTREAMCONFIGREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINCERTIFICATEINFOREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainCertificateInfoResult.h b/live/include/alibabacloud/live/model/DescribeLiveDomainCertificateInfoResult.h new file mode 100644 index 000000000..189c94f06 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainCertificateInfoResult.h @@ -0,0 +1,64 @@ +/* + * 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_DESCRIBELIVEDOMAINCERTIFICATEINFORESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINCERTIFICATEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainCertificateInfoResult : public ServiceResult + { + public: + struct CertInfo + { + std::string status; + std::string certLife; + std::string domainName; + std::string sSLPub; + std::string certDomainName; + std::string certOrg; + std::string certType; + std::string certExpireTime; + std::string certName; + std::string sSLProtocol; + }; + + + DescribeLiveDomainCertificateInfoResult(); + explicit DescribeLiveDomainCertificateInfoResult(const std::string &payload); + ~DescribeLiveDomainCertificateInfoResult(); + std::vector getCertInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::vector certInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINCERTIFICATEINFORESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainLimitRequest.h b/live/include/alibabacloud/live/model/DescribeLiveDomainLimitRequest.h new file mode 100644 index 000000000..42e6ace07 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainLimitRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DESCRIBELIVEDOMAINLIMITREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINLIMITREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainLimitRequest : public RpcServiceRequest + { + + public: + DescribeLiveDomainLimitRequest(); + ~DescribeLiveDomainLimitRequest(); + + std::string getLiveapiRequestFrom()const; + void setLiveapiRequestFrom(const std::string& liveapiRequestFrom); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string liveapiRequestFrom_; + std::string domainName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINLIMITREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLivePullStreamConfigResult.h b/live/include/alibabacloud/live/model/DescribeLiveDomainLimitResult.h similarity index 57% rename from live/include/alibabacloud/live/model/DescribeLivePullStreamConfigResult.h rename to live/include/alibabacloud/live/model/DescribeLiveDomainLimitResult.h index 684e355ec..cb983d59c 100644 --- a/live/include/alibabacloud/live/model/DescribeLivePullStreamConfigResult.h +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainLimitResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEPULLSTREAMCONFIGRESULT_H_ -#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEPULLSTREAMCONFIGRESULT_H_ +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINLIMITRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINLIMITRESULT_H_ #include #include @@ -29,32 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_LIVE_EXPORT DescribeLivePullStreamConfigResult : public ServiceResult + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainLimitResult : public ServiceResult { public: - struct LiveAppRecord + struct LiveDomainLimit { - std::string sourceUrl; - std::string streamName; - std::string endTime; + int limitTranscodeNum; std::string domainName; - std::string startTime; - std::string appName; + int limitNum; }; - DescribeLivePullStreamConfigResult(); - explicit DescribeLivePullStreamConfigResult(const std::string &payload); - ~DescribeLivePullStreamConfigResult(); - std::vector getLiveAppRecordList()const; + DescribeLiveDomainLimitResult(); + explicit DescribeLiveDomainLimitResult(const std::string &payload); + ~DescribeLiveDomainLimitResult(); + std::vector getLiveDomainLimitList()const; protected: void parse(const std::string &payload); private: - std::vector liveAppRecordList_; + std::vector liveDomainLimitList_; }; } } } -#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEPULLSTREAMCONFIGRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINLIMITRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainTimeShiftDataRequest.h b/live/include/alibabacloud/live/model/DescribeLiveDomainTimeShiftDataRequest.h new file mode 100644 index 000000000..34e100b9f --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainTimeShiftDataRequest.h @@ -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_DESCRIBELIVEDOMAINTIMESHIFTDATAREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINTIMESHIFTDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainTimeShiftDataRequest : public RpcServiceRequest + { + + public: + DescribeLiveDomainTimeShiftDataRequest(); + ~DescribeLiveDomainTimeShiftDataRequest(); + + 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; + void setOwnerId(long ownerId); + std::string getInterval()const; + void setInterval(const std::string& interval); + + private: + std::string startTime_; + std::string domainName_; + std::string endTime_; + long ownerId_; + std::string interval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINTIMESHIFTDATAREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainTimeShiftDataResult.h b/live/include/alibabacloud/live/model/DescribeLiveDomainTimeShiftDataResult.h new file mode 100644 index 000000000..bb3e968d0 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainTimeShiftDataResult.h @@ -0,0 +1,57 @@ +/* + * 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_DESCRIBELIVEDOMAINTIMESHIFTDATARESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINTIMESHIFTDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDomainTimeShiftDataResult : public ServiceResult + { + public: + struct DataModule + { + std::string type; + std::string size; + std::string timeStamp; + }; + + + DescribeLiveDomainTimeShiftDataResult(); + explicit DescribeLiveDomainTimeShiftDataResult(const std::string &payload); + ~DescribeLiveDomainTimeShiftDataResult(); + std::vector getTimeShiftData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector timeShiftData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINTIMESHIFTDATARESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveSnapshotConfigResult.h b/live/include/alibabacloud/live/model/DescribeLiveSnapshotConfigResult.h index 474d35135..5d501c94e 100644 --- a/live/include/alibabacloud/live/model/DescribeLiveSnapshotConfigResult.h +++ b/live/include/alibabacloud/live/model/DescribeLiveSnapshotConfigResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string overwriteOssObject; std::string sequenceOssObject; + std::string callback; int timeInterval; std::string ossEndpoint; std::string domainName; diff --git a/live/include/alibabacloud/live/model/DescribeLiveStreamTranscodeInfoResult.h b/live/include/alibabacloud/live/model/DescribeLiveStreamTranscodeInfoResult.h index d761313f1..a4767a02c 100644 --- a/live/include/alibabacloud/live/model/DescribeLiveStreamTranscodeInfoResult.h +++ b/live/include/alibabacloud/live/model/DescribeLiveStreamTranscodeInfoResult.h @@ -36,14 +36,16 @@ namespace AlibabaCloud { struct CustomTranscodeParameters { - int audioBitrate; int fPS; - std::string audioProfile; std::string gop; + std::string templateType; + int audioBitrate; + std::string bframes; + std::string audioProfile; + std::string rtsFlag; int height; std::string videoProfile; int audioChannelNum; - std::string templateType; int width; std::string audioCodec; int audioRate; diff --git a/live/include/alibabacloud/live/model/UnTagLiveResourcesRequest.h b/live/include/alibabacloud/live/model/UnTagLiveResourcesRequest.h index 555169be0..f5485e032 100644 --- a/live/include/alibabacloud/live/model/UnTagLiveResourcesRequest.h +++ b/live/include/alibabacloud/live/model/UnTagLiveResourcesRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud UnTagLiveResourcesRequest(); ~UnTagLiveResourcesRequest(); + bool getAll()const; + void setAll(bool all); std::vector getResourceId()const; void setResourceId(const std::vector& resourceId); long getOwnerId()const; @@ -45,6 +47,7 @@ namespace AlibabaCloud void setTagKey(const std::vector& tagKey); private: + bool all_; std::vector resourceId_; long ownerId_; std::string resourceType_; diff --git a/live/include/alibabacloud/live/model/UpdateLiveAppSnapshotConfigRequest.h b/live/include/alibabacloud/live/model/UpdateLiveAppSnapshotConfigRequest.h index c875a44b6..10ef6e696 100644 --- a/live/include/alibabacloud/live/model/UpdateLiveAppSnapshotConfigRequest.h +++ b/live/include/alibabacloud/live/model/UpdateLiveAppSnapshotConfigRequest.h @@ -53,6 +53,8 @@ namespace AlibabaCloud void setSequenceOssObject(const std::string& sequenceOssObject); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getCallback()const; + void setCallback(const std::string& callback); private: int timeInterval_; @@ -64,6 +66,7 @@ namespace AlibabaCloud std::string domainName_; std::string sequenceOssObject_; long ownerId_; + std::string callback_; }; } diff --git a/live/src/LiveClient.cc b/live/src/LiveClient.cc index a1420ed26..8966fae50 100644 --- a/live/src/LiveClient.cc +++ b/live/src/LiveClient.cc @@ -31,21 +31,21 @@ LiveClient::LiveClient(const Credentials &credentials, const ClientConfiguration RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "live"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } LiveClient::LiveClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "live"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } LiveClient::LiveClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "live"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } LiveClient::~LiveClient() @@ -771,6 +771,42 @@ LiveClient::AddLiveStreamTranscodeOutcomeCallable LiveClient::addLiveStreamTrans return task->get_future(); } +LiveClient::AddRtsLiveStreamTranscodeOutcome LiveClient::addRtsLiveStreamTranscode(const AddRtsLiveStreamTranscodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddRtsLiveStreamTranscodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddRtsLiveStreamTranscodeOutcome(AddRtsLiveStreamTranscodeResult(outcome.result())); + else + return AddRtsLiveStreamTranscodeOutcome(outcome.error()); +} + +void LiveClient::addRtsLiveStreamTranscodeAsync(const AddRtsLiveStreamTranscodeRequest& request, const AddRtsLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addRtsLiveStreamTranscode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::AddRtsLiveStreamTranscodeOutcomeCallable LiveClient::addRtsLiveStreamTranscodeCallable(const AddRtsLiveStreamTranscodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addRtsLiveStreamTranscode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::AddTrancodeSEIOutcome LiveClient::addTrancodeSEI(const AddTrancodeSEIRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3255,6 +3291,42 @@ LiveClient::DescribeLiveDomainBpsDataByTimeStampOutcomeCallable LiveClient::desc return task->get_future(); } +LiveClient::DescribeLiveDomainCertificateInfoOutcome LiveClient::describeLiveDomainCertificateInfo(const DescribeLiveDomainCertificateInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveDomainCertificateInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveDomainCertificateInfoOutcome(DescribeLiveDomainCertificateInfoResult(outcome.result())); + else + return DescribeLiveDomainCertificateInfoOutcome(outcome.error()); +} + +void LiveClient::describeLiveDomainCertificateInfoAsync(const DescribeLiveDomainCertificateInfoRequest& request, const DescribeLiveDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveDomainCertificateInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveDomainCertificateInfoOutcomeCallable LiveClient::describeLiveDomainCertificateInfoCallable(const DescribeLiveDomainCertificateInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveDomainCertificateInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeLiveDomainConfigsOutcome LiveClient::describeLiveDomainConfigs(const DescribeLiveDomainConfigsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3363,6 +3435,42 @@ LiveClient::DescribeLiveDomainFrameRateAndBitRateDataOutcomeCallable LiveClient: return task->get_future(); } +LiveClient::DescribeLiveDomainLimitOutcome LiveClient::describeLiveDomainLimit(const DescribeLiveDomainLimitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveDomainLimitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveDomainLimitOutcome(DescribeLiveDomainLimitResult(outcome.result())); + else + return DescribeLiveDomainLimitOutcome(outcome.error()); +} + +void LiveClient::describeLiveDomainLimitAsync(const DescribeLiveDomainLimitRequest& request, const DescribeLiveDomainLimitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveDomainLimit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveDomainLimitOutcomeCallable LiveClient::describeLiveDomainLimitCallable(const DescribeLiveDomainLimitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveDomainLimit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeLiveDomainMappingOutcome LiveClient::describeLiveDomainMapping(const DescribeLiveDomainMappingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3723,6 +3831,42 @@ LiveClient::DescribeLiveDomainSnapshotDataOutcomeCallable LiveClient::describeLi return task->get_future(); } +LiveClient::DescribeLiveDomainTimeShiftDataOutcome LiveClient::describeLiveDomainTimeShiftData(const DescribeLiveDomainTimeShiftDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveDomainTimeShiftDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveDomainTimeShiftDataOutcome(DescribeLiveDomainTimeShiftDataResult(outcome.result())); + else + return DescribeLiveDomainTimeShiftDataOutcome(outcome.error()); +} + +void LiveClient::describeLiveDomainTimeShiftDataAsync(const DescribeLiveDomainTimeShiftDataRequest& request, const DescribeLiveDomainTimeShiftDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveDomainTimeShiftData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveDomainTimeShiftDataOutcomeCallable LiveClient::describeLiveDomainTimeShiftDataCallable(const DescribeLiveDomainTimeShiftDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveDomainTimeShiftData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeLiveDomainTrafficDataOutcome LiveClient::describeLiveDomainTrafficData(const DescribeLiveDomainTrafficDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3831,42 +3975,6 @@ LiveClient::DescribeLiveLazyPullStreamConfigOutcomeCallable LiveClient::describe return task->get_future(); } -LiveClient::DescribeLivePullStreamConfigOutcome LiveClient::describeLivePullStreamConfig(const DescribeLivePullStreamConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLivePullStreamConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLivePullStreamConfigOutcome(DescribeLivePullStreamConfigResult(outcome.result())); - else - return DescribeLivePullStreamConfigOutcome(outcome.error()); -} - -void LiveClient::describeLivePullStreamConfigAsync(const DescribeLivePullStreamConfigRequest& request, const DescribeLivePullStreamConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLivePullStreamConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -LiveClient::DescribeLivePullStreamConfigOutcomeCallable LiveClient::describeLivePullStreamConfigCallable(const DescribeLivePullStreamConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLivePullStreamConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - LiveClient::DescribeLiveRealtimeDeliveryAccOutcome LiveClient::describeLiveRealtimeDeliveryAcc(const DescribeLiveRealtimeDeliveryAccRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/live/src/model/AddLiveAppSnapshotConfigRequest.cc b/live/src/model/AddLiveAppSnapshotConfigRequest.cc index c236c4724..a5c4b3592 100644 --- a/live/src/model/AddLiveAppSnapshotConfigRequest.cc +++ b/live/src/model/AddLiveAppSnapshotConfigRequest.cc @@ -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); +} + diff --git a/live/src/model/AddLivePullStreamInfoConfigRequest.cc b/live/src/model/AddLivePullStreamInfoConfigRequest.cc index fb19169ee..2f51e84bb 100644 --- a/live/src/model/AddLivePullStreamInfoConfigRequest.cc +++ b/live/src/model/AddLivePullStreamInfoConfigRequest.cc @@ -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_; diff --git a/live/src/model/AddRtsLiveStreamTranscodeRequest.cc b/live/src/model/AddRtsLiveStreamTranscodeRequest.cc new file mode 100644 index 000000000..d24c528c0 --- /dev/null +++ b/live/src/model/AddRtsLiveStreamTranscodeRequest.cc @@ -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 + +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)); +} + diff --git a/live/src/model/AddRtsLiveStreamTranscodeResult.cc b/live/src/model/AddRtsLiveStreamTranscodeResult.cc new file mode 100644 index 000000000..1e87ca487 --- /dev/null +++ b/live/src/model/AddRtsLiveStreamTranscodeResult.cc @@ -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 +#include + +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()); + +} + diff --git a/live/src/model/DescribeLiveDomainCertificateInfoRequest.cc b/live/src/model/DescribeLiveDomainCertificateInfoRequest.cc new file mode 100644 index 000000000..bbffb785f --- /dev/null +++ b/live/src/model/DescribeLiveDomainCertificateInfoRequest.cc @@ -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 + +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)); +} + diff --git a/live/src/model/DescribeLiveDomainCertificateInfoResult.cc b/live/src/model/DescribeLiveDomainCertificateInfoResult.cc new file mode 100644 index 000000000..3ebe45529 --- /dev/null +++ b/live/src/model/DescribeLiveDomainCertificateInfoResult.cc @@ -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 +#include + +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::getCertInfos()const +{ + return certInfos_; +} + diff --git a/live/src/model/DescribeLiveDomainLimitRequest.cc b/live/src/model/DescribeLiveDomainLimitRequest.cc new file mode 100644 index 000000000..849777e40 --- /dev/null +++ b/live/src/model/DescribeLiveDomainLimitRequest.cc @@ -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 + +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)); +} + diff --git a/live/src/model/DescribeLiveDomainLimitResult.cc b/live/src/model/DescribeLiveDomainLimitResult.cc new file mode 100644 index 000000000..1a74d9adf --- /dev/null +++ b/live/src/model/DescribeLiveDomainLimitResult.cc @@ -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 +#include + +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::getLiveDomainLimitList()const +{ + return liveDomainLimitList_; +} + diff --git a/live/src/model/DescribeLiveDomainTimeShiftDataRequest.cc b/live/src/model/DescribeLiveDomainTimeShiftDataRequest.cc new file mode 100644 index 000000000..bf192ad6b --- /dev/null +++ b/live/src/model/DescribeLiveDomainTimeShiftDataRequest.cc @@ -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 + +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); +} + diff --git a/live/src/model/DescribeLiveDomainTimeShiftDataResult.cc b/live/src/model/DescribeLiveDomainTimeShiftDataResult.cc new file mode 100644 index 000000000..68ea85899 --- /dev/null +++ b/live/src/model/DescribeLiveDomainTimeShiftDataResult.cc @@ -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 +#include + +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::getTimeShiftData()const +{ + return timeShiftData_; +} + diff --git a/live/src/model/DescribeLivePullStreamConfigRequest.cc b/live/src/model/DescribeLivePullStreamConfigRequest.cc deleted file mode 100644 index 1b2b293bd..000000000 --- a/live/src/model/DescribeLivePullStreamConfigRequest.cc +++ /dev/null @@ -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 - -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); -} - diff --git a/live/src/model/DescribeLivePullStreamConfigResult.cc b/live/src/model/DescribeLivePullStreamConfigResult.cc deleted file mode 100644 index f159fbd47..000000000 --- a/live/src/model/DescribeLivePullStreamConfigResult.cc +++ /dev/null @@ -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 -#include - -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::getLiveAppRecordList()const -{ - return liveAppRecordList_; -} - diff --git a/live/src/model/DescribeLiveSnapshotConfigResult.cc b/live/src/model/DescribeLiveSnapshotConfigResult.cc index 02b59dc60..e05e7e0b5 100644 --- a/live/src/model/DescribeLiveSnapshotConfigResult.cc +++ b/live/src/model/DescribeLiveSnapshotConfigResult.cc @@ -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()) diff --git a/live/src/model/DescribeLiveStreamTranscodeInfoResult.cc b/live/src/model/DescribeLiveStreamTranscodeInfoResult.cc index 1f9428b9f..c2804df41 100644 --- a/live/src/model/DescribeLiveStreamTranscodeInfoResult.cc +++ b/live/src/model/DescribeLiveStreamTranscodeInfoResult.cc @@ -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()) diff --git a/live/src/model/UnTagLiveResourcesRequest.cc b/live/src/model/UnTagLiveResourcesRequest.cc index 42c75198d..3a334c777 100644 --- a/live/src/model/UnTagLiveResourcesRequest.cc +++ b/live/src/model/UnTagLiveResourcesRequest.cc @@ -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 UnTagLiveResourcesRequest::getResourceId()const { return resourceId_; diff --git a/live/src/model/UpdateLiveAppSnapshotConfigRequest.cc b/live/src/model/UpdateLiveAppSnapshotConfigRequest.cc index 63b972aeb..4a670f4e6 100644 --- a/live/src/model/UpdateLiveAppSnapshotConfigRequest.cc +++ b/live/src/model/UpdateLiveAppSnapshotConfigRequest.cc @@ -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); +} +