Compare commits

..

5 Commits

Author SHA1 Message Date
sdk-team
e68269b045 Add QueryMetricByPage api. 2020-08-21 15:36:11 +08:00
sdk-team
53ac431b11 PullActionData add parameters. 2020-08-20 16:14:12 +08:00
sdk-team
5255330d62 Add list person visit count API. 2020-08-20 12:16:19 +08:00
sdk-team
b9a879f696 Added Global Distribute Cache OpenAPIs. 2020-08-20 10:03:01 +08:00
sdk-team
7ac2669922 Add DescribeLiveDomainCertificateInfo. 2020-08-19 18:02:00 +08:00
76 changed files with 3380 additions and 235 deletions

View File

@@ -1,3 +1,21 @@
2020-08-21 Version: 1.36.604
- Add QueryMetricByPage api.
- Add GetAppApiByPage api.
2020-08-20 Version: 1.36.603
- PullActionData add parameters.
- DescribeCursor add parameter.
2020-08-20 Version: 1.36.602
- Add list person visit count API.
2020-08-20 Version: 1.36.601
- Added Global Distribute Cache OpenAPIs.
- Added direct connection OpenAPIs.
2020-08-19 Version: 1.36.600
- Add DescribeLiveDomainCertificateInfo.
2020-08-19 Version: 1.36.599
- Generated 2020-08-01 for `SmartHosting`.

View File

@@ -1 +1 @@
1.36.599
1.36.604

View File

@@ -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

View File

@@ -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<Error, Model::AddLiveStreamTranscodeResult> AddLiveStreamTranscodeOutcome;
typedef std::future<AddLiveStreamTranscodeOutcome> AddLiveStreamTranscodeOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::AddLiveStreamTranscodeRequest&, const AddLiveStreamTranscodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddLiveStreamTranscodeAsyncHandler;
typedef Outcome<Error, Model::AddRtsLiveStreamTranscodeResult> AddRtsLiveStreamTranscodeOutcome;
typedef std::future<AddRtsLiveStreamTranscodeOutcome> AddRtsLiveStreamTranscodeOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::AddRtsLiveStreamTranscodeRequest&, const AddRtsLiveStreamTranscodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddRtsLiveStreamTranscodeAsyncHandler;
typedef Outcome<Error, Model::AddTrancodeSEIResult> AddTrancodeSEIOutcome;
typedef std::future<AddTrancodeSEIOutcome> AddTrancodeSEIOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::AddTrancodeSEIRequest&, const AddTrancodeSEIOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddTrancodeSEIAsyncHandler;
@@ -694,6 +703,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeLiveDomainBpsDataByTimeStampResult> DescribeLiveDomainBpsDataByTimeStampOutcome;
typedef std::future<DescribeLiveDomainBpsDataByTimeStampOutcome> DescribeLiveDomainBpsDataByTimeStampOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveDomainBpsDataByTimeStampRequest&, const DescribeLiveDomainBpsDataByTimeStampOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveDomainBpsDataByTimeStampAsyncHandler;
typedef Outcome<Error, Model::DescribeLiveDomainCertificateInfoResult> DescribeLiveDomainCertificateInfoOutcome;
typedef std::future<DescribeLiveDomainCertificateInfoOutcome> DescribeLiveDomainCertificateInfoOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveDomainCertificateInfoRequest&, const DescribeLiveDomainCertificateInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveDomainCertificateInfoAsyncHandler;
typedef Outcome<Error, Model::DescribeLiveDomainConfigsResult> DescribeLiveDomainConfigsOutcome;
typedef std::future<DescribeLiveDomainConfigsOutcome> DescribeLiveDomainConfigsOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveDomainConfigsRequest&, const DescribeLiveDomainConfigsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveDomainConfigsAsyncHandler;
@@ -703,6 +715,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeLiveDomainFrameRateAndBitRateDataResult> DescribeLiveDomainFrameRateAndBitRateDataOutcome;
typedef std::future<DescribeLiveDomainFrameRateAndBitRateDataOutcome> DescribeLiveDomainFrameRateAndBitRateDataOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveDomainFrameRateAndBitRateDataRequest&, const DescribeLiveDomainFrameRateAndBitRateDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveDomainFrameRateAndBitRateDataAsyncHandler;
typedef Outcome<Error, Model::DescribeLiveDomainLimitResult> DescribeLiveDomainLimitOutcome;
typedef std::future<DescribeLiveDomainLimitOutcome> DescribeLiveDomainLimitOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveDomainLimitRequest&, const DescribeLiveDomainLimitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveDomainLimitAsyncHandler;
typedef Outcome<Error, Model::DescribeLiveDomainMappingResult> DescribeLiveDomainMappingOutcome;
typedef std::future<DescribeLiveDomainMappingOutcome> DescribeLiveDomainMappingOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveDomainMappingRequest&, const DescribeLiveDomainMappingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveDomainMappingAsyncHandler;
@@ -733,6 +748,9 @@ namespace AlibabaCloud
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;
typedef Outcome<Error, Model::DescribeLiveDomainTimeShiftDataResult> DescribeLiveDomainTimeShiftDataOutcome;
typedef std::future<DescribeLiveDomainTimeShiftDataOutcome> DescribeLiveDomainTimeShiftDataOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveDomainTimeShiftDataRequest&, const DescribeLiveDomainTimeShiftDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveDomainTimeShiftDataAsyncHandler;
typedef Outcome<Error, Model::DescribeLiveDomainTrafficDataResult> DescribeLiveDomainTrafficDataOutcome;
typedef std::future<DescribeLiveDomainTrafficDataOutcome> DescribeLiveDomainTrafficDataOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveDomainTrafficDataRequest&, const DescribeLiveDomainTrafficDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveDomainTrafficDataAsyncHandler;
@@ -742,9 +760,6 @@ namespace AlibabaCloud
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;
typedef Outcome<Error, Model::DescribeLivePullStreamConfigResult> DescribeLivePullStreamConfigOutcome;
typedef std::future<DescribeLivePullStreamConfigOutcome> DescribeLivePullStreamConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLivePullStreamConfigRequest&, const DescribeLivePullStreamConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLivePullStreamConfigAsyncHandler;
typedef Outcome<Error, Model::DescribeLiveRealtimeDeliveryAccResult> DescribeLiveRealtimeDeliveryAccOutcome;
typedef std::future<DescribeLiveRealtimeDeliveryAccOutcome> DescribeLiveRealtimeDeliveryAccOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveRealtimeDeliveryAccRequest&, const DescribeLiveRealtimeDeliveryAccOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
DescribeLiveRealtimeDeliveryAccOutcomeCallable describeLiveRealtimeDeliveryAccCallable(const Model::DescribeLiveRealtimeDeliveryAccRequest& request) const;

View File

@@ -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_;
};
}

View File

@@ -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_;

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/live/LiveExport.h>
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_

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_ADDRTSLIVESTREAMTRANSCODERESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_ADDRTSLIVESTREAMTRANSCODERESULT_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 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_

View File

@@ -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 <string>
#include <vector>
@@ -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_
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINCERTIFICATEINFOREQUEST_H_

View File

@@ -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 <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 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<CertInfo> getCertInfos()const;
protected:
void parse(const std::string &payload);
private:
std::vector<CertInfo> certInfos_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINCERTIFICATEINFORESULT_H_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/live/LiveExport.h>
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_

View File

@@ -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 <string>
#include <vector>
@@ -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<LiveAppRecord> getLiveAppRecordList()const;
DescribeLiveDomainLimitResult();
explicit DescribeLiveDomainLimitResult(const std::string &payload);
~DescribeLiveDomainLimitResult();
std::vector<LiveDomainLimit> getLiveDomainLimitList()const;
protected:
void parse(const std::string &payload);
private:
std::vector<LiveAppRecord> liveAppRecordList_;
std::vector<LiveDomainLimit> liveDomainLimitList_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEPULLSTREAMCONFIGRESULT_H_
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINLIMITRESULT_H_

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_DESCRIBELIVEDOMAINTIMESHIFTDATAREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINTIMESHIFTDATAREQUEST_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 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_

View File

@@ -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 <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 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<DataModule> getTimeShiftData()const;
protected:
void parse(const std::string &payload);
private:
std::vector<DataModule> timeShiftData_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDOMAINTIMESHIFTDATARESULT_H_

View File

@@ -36,6 +36,7 @@ namespace AlibabaCloud
{
std::string overwriteOssObject;
std::string sequenceOssObject;
std::string callback;
int timeInterval;
std::string ossEndpoint;
std::string domainName;

View File

@@ -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;

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
UnTagLiveResourcesRequest();
~UnTagLiveResourcesRequest();
bool getAll()const;
void setAll(bool all);
std::vector<std::string> getResourceId()const;
void setResourceId(const std::vector<std::string>& resourceId);
long getOwnerId()const;
@@ -45,6 +47,7 @@ namespace AlibabaCloud
void setTagKey(const std::vector<std::string>& tagKey);
private:
bool all_;
std::vector<std::string> resourceId_;
long ownerId_;
std::string resourceType_;

View File

@@ -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_;
};
}

View File

@@ -31,21 +31,21 @@ LiveClient::LiveClient(const Credentials &credentials, const ClientConfiguration
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "live");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
LiveClient::LiveClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "live");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
LiveClient::LiveClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "live");
endpointProvider_ = std::make_shared<EndpointProvider>(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<const AsyncCallerContext>& 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<std::packaged_task<AddRtsLiveStreamTranscodeOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeLiveDomainCertificateInfoOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeLiveDomainLimitOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeLiveDomainTimeShiftDataOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeLivePullStreamConfigOutcome()>>(
[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();

View File

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

View File

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

View File

@@ -0,0 +1,227 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/AddRtsLiveStreamTranscodeRequest.h>
using AlibabaCloud::Live::Model::AddRtsLiveStreamTranscodeRequest;
AddRtsLiveStreamTranscodeRequest::AddRtsLiveStreamTranscodeRequest() :
RpcServiceRequest("live", "2016-11-01", "AddRtsLiveStreamTranscode")
{
setMethod(HttpRequest::Method::Post);
}
AddRtsLiveStreamTranscodeRequest::~AddRtsLiveStreamTranscodeRequest()
{}
std::string AddRtsLiveStreamTranscodeRequest::get_Template()const
{
return _template_;
}
void AddRtsLiveStreamTranscodeRequest::set_Template(const std::string& _template)
{
_template_ = _template;
setParameter("_Template", _template);
}
bool AddRtsLiveStreamTranscodeRequest::getDeleteBframes()const
{
return deleteBframes_;
}
void AddRtsLiveStreamTranscodeRequest::setDeleteBframes(bool deleteBframes)
{
deleteBframes_ = deleteBframes;
setParameter("DeleteBframes", deleteBframes ? "true" : "false");
}
std::string AddRtsLiveStreamTranscodeRequest::getGop()const
{
return gop_;
}
void AddRtsLiveStreamTranscodeRequest::setGop(const std::string& gop)
{
gop_ = gop;
setParameter("Gop", gop);
}
bool AddRtsLiveStreamTranscodeRequest::getOpus()const
{
return opus_;
}
void AddRtsLiveStreamTranscodeRequest::setOpus(bool opus)
{
opus_ = opus;
setParameter("Opus", opus ? "true" : "false");
}
std::string AddRtsLiveStreamTranscodeRequest::getAudioCodec()const
{
return audioCodec_;
}
void AddRtsLiveStreamTranscodeRequest::setAudioCodec(const std::string& audioCodec)
{
audioCodec_ = audioCodec;
setParameter("AudioCodec", audioCodec);
}
std::string AddRtsLiveStreamTranscodeRequest::getTemplateType()const
{
return templateType_;
}
void AddRtsLiveStreamTranscodeRequest::setTemplateType(const std::string& templateType)
{
templateType_ = templateType;
setParameter("TemplateType", templateType);
}
std::string AddRtsLiveStreamTranscodeRequest::getAudioProfile()const
{
return audioProfile_;
}
void AddRtsLiveStreamTranscodeRequest::setAudioProfile(const std::string& audioProfile)
{
audioProfile_ = audioProfile;
setParameter("AudioProfile", audioProfile);
}
int AddRtsLiveStreamTranscodeRequest::getHeight()const
{
return height_;
}
void AddRtsLiveStreamTranscodeRequest::setHeight(int height)
{
height_ = height;
setParameter("Height", std::to_string(height));
}
std::string AddRtsLiveStreamTranscodeRequest::getApp()const
{
return app_;
}
void AddRtsLiveStreamTranscodeRequest::setApp(const std::string& app)
{
app_ = app;
setParameter("App", app);
}
int AddRtsLiveStreamTranscodeRequest::getAudioChannelNum()const
{
return audioChannelNum_;
}
void AddRtsLiveStreamTranscodeRequest::setAudioChannelNum(int audioChannelNum)
{
audioChannelNum_ = audioChannelNum;
setParameter("AudioChannelNum", std::to_string(audioChannelNum));
}
int AddRtsLiveStreamTranscodeRequest::getProfile()const
{
return profile_;
}
void AddRtsLiveStreamTranscodeRequest::setProfile(int profile)
{
profile_ = profile;
setParameter("Profile", std::to_string(profile));
}
int AddRtsLiveStreamTranscodeRequest::getFPS()const
{
return fPS_;
}
void AddRtsLiveStreamTranscodeRequest::setFPS(int fPS)
{
fPS_ = fPS;
setParameter("FPS", std::to_string(fPS));
}
long AddRtsLiveStreamTranscodeRequest::getOwnerId()const
{
return ownerId_;
}
void AddRtsLiveStreamTranscodeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int AddRtsLiveStreamTranscodeRequest::getAudioRate()const
{
return audioRate_;
}
void AddRtsLiveStreamTranscodeRequest::setAudioRate(int audioRate)
{
audioRate_ = audioRate;
setParameter("AudioRate", std::to_string(audioRate));
}
int AddRtsLiveStreamTranscodeRequest::getAudioBitrate()const
{
return audioBitrate_;
}
void AddRtsLiveStreamTranscodeRequest::setAudioBitrate(int audioBitrate)
{
audioBitrate_ = audioBitrate;
setParameter("AudioBitrate", std::to_string(audioBitrate));
}
std::string AddRtsLiveStreamTranscodeRequest::getDomain()const
{
return domain_;
}
void AddRtsLiveStreamTranscodeRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
int AddRtsLiveStreamTranscodeRequest::getWidth()const
{
return width_;
}
void AddRtsLiveStreamTranscodeRequest::setWidth(int width)
{
width_ = width;
setParameter("Width", std::to_string(width));
}
int AddRtsLiveStreamTranscodeRequest::getVideoBitrate()const
{
return videoBitrate_;
}
void AddRtsLiveStreamTranscodeRequest::setVideoBitrate(int videoBitrate)
{
videoBitrate_ = videoBitrate;
setParameter("VideoBitrate", std::to_string(videoBitrate));
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/AddRtsLiveStreamTranscodeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
AddRtsLiveStreamTranscodeResult::AddRtsLiveStreamTranscodeResult() :
ServiceResult()
{}
AddRtsLiveStreamTranscodeResult::AddRtsLiveStreamTranscodeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddRtsLiveStreamTranscodeResult::~AddRtsLiveStreamTranscodeResult()
{}
void AddRtsLiveStreamTranscodeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DescribeLiveDomainCertificateInfoRequest.h>
using AlibabaCloud::Live::Model::DescribeLiveDomainCertificateInfoRequest;
DescribeLiveDomainCertificateInfoRequest::DescribeLiveDomainCertificateInfoRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainCertificateInfo")
{
setMethod(HttpRequest::Method::Post);
}
DescribeLiveDomainCertificateInfoRequest::~DescribeLiveDomainCertificateInfoRequest()
{}
std::string DescribeLiveDomainCertificateInfoRequest::getDomainName()const
{
return domainName_;
}
void DescribeLiveDomainCertificateInfoRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeLiveDomainCertificateInfoRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeLiveDomainCertificateInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DescribeLiveDomainCertificateInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveDomainCertificateInfoResult::DescribeLiveDomainCertificateInfoResult() :
ServiceResult()
{}
DescribeLiveDomainCertificateInfoResult::DescribeLiveDomainCertificateInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveDomainCertificateInfoResult::~DescribeLiveDomainCertificateInfoResult()
{}
void DescribeLiveDomainCertificateInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCertInfosNode = value["CertInfos"]["CertInfo"];
for (auto valueCertInfosCertInfo : allCertInfosNode)
{
CertInfo certInfosObject;
if(!valueCertInfosCertInfo["DomainName"].isNull())
certInfosObject.domainName = valueCertInfosCertInfo["DomainName"].asString();
if(!valueCertInfosCertInfo["CertName"].isNull())
certInfosObject.certName = valueCertInfosCertInfo["CertName"].asString();
if(!valueCertInfosCertInfo["CertDomainName"].isNull())
certInfosObject.certDomainName = valueCertInfosCertInfo["CertDomainName"].asString();
if(!valueCertInfosCertInfo["CertExpireTime"].isNull())
certInfosObject.certExpireTime = valueCertInfosCertInfo["CertExpireTime"].asString();
if(!valueCertInfosCertInfo["CertLife"].isNull())
certInfosObject.certLife = valueCertInfosCertInfo["CertLife"].asString();
if(!valueCertInfosCertInfo["CertOrg"].isNull())
certInfosObject.certOrg = valueCertInfosCertInfo["CertOrg"].asString();
if(!valueCertInfosCertInfo["CertType"].isNull())
certInfosObject.certType = valueCertInfosCertInfo["CertType"].asString();
if(!valueCertInfosCertInfo["SSLProtocol"].isNull())
certInfosObject.sSLProtocol = valueCertInfosCertInfo["SSLProtocol"].asString();
if(!valueCertInfosCertInfo["Status"].isNull())
certInfosObject.status = valueCertInfosCertInfo["Status"].asString();
if(!valueCertInfosCertInfo["SSLPub"].isNull())
certInfosObject.sSLPub = valueCertInfosCertInfo["SSLPub"].asString();
certInfos_.push_back(certInfosObject);
}
}
std::vector<DescribeLiveDomainCertificateInfoResult::CertInfo> DescribeLiveDomainCertificateInfoResult::getCertInfos()const
{
return certInfos_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DescribeLiveDomainLimitRequest.h>
using AlibabaCloud::Live::Model::DescribeLiveDomainLimitRequest;
DescribeLiveDomainLimitRequest::DescribeLiveDomainLimitRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainLimit")
{
setMethod(HttpRequest::Method::Post);
}
DescribeLiveDomainLimitRequest::~DescribeLiveDomainLimitRequest()
{}
std::string DescribeLiveDomainLimitRequest::getLiveapiRequestFrom()const
{
return liveapiRequestFrom_;
}
void DescribeLiveDomainLimitRequest::setLiveapiRequestFrom(const std::string& liveapiRequestFrom)
{
liveapiRequestFrom_ = liveapiRequestFrom;
setParameter("LiveapiRequestFrom", liveapiRequestFrom);
}
std::string DescribeLiveDomainLimitRequest::getDomainName()const
{
return domainName_;
}
void DescribeLiveDomainLimitRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeLiveDomainLimitRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeLiveDomainLimitRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DescribeLiveDomainLimitResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveDomainLimitResult::DescribeLiveDomainLimitResult() :
ServiceResult()
{}
DescribeLiveDomainLimitResult::DescribeLiveDomainLimitResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveDomainLimitResult::~DescribeLiveDomainLimitResult()
{}
void DescribeLiveDomainLimitResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLiveDomainLimitListNode = value["LiveDomainLimitList"]["LiveDomainLimit"];
for (auto valueLiveDomainLimitListLiveDomainLimit : allLiveDomainLimitListNode)
{
LiveDomainLimit liveDomainLimitListObject;
if(!valueLiveDomainLimitListLiveDomainLimit["DomainName"].isNull())
liveDomainLimitListObject.domainName = valueLiveDomainLimitListLiveDomainLimit["DomainName"].asString();
if(!valueLiveDomainLimitListLiveDomainLimit["LimitNum"].isNull())
liveDomainLimitListObject.limitNum = std::stoi(valueLiveDomainLimitListLiveDomainLimit["LimitNum"].asString());
if(!valueLiveDomainLimitListLiveDomainLimit["LimitTranscodeNum"].isNull())
liveDomainLimitListObject.limitTranscodeNum = std::stoi(valueLiveDomainLimitListLiveDomainLimit["LimitTranscodeNum"].asString());
liveDomainLimitList_.push_back(liveDomainLimitListObject);
}
}
std::vector<DescribeLiveDomainLimitResult::LiveDomainLimit> DescribeLiveDomainLimitResult::getLiveDomainLimitList()const
{
return liveDomainLimitList_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DescribeLiveDomainTimeShiftDataRequest.h>
using AlibabaCloud::Live::Model::DescribeLiveDomainTimeShiftDataRequest;
DescribeLiveDomainTimeShiftDataRequest::DescribeLiveDomainTimeShiftDataRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainTimeShiftData")
{
setMethod(HttpRequest::Method::Post);
}
DescribeLiveDomainTimeShiftDataRequest::~DescribeLiveDomainTimeShiftDataRequest()
{}
std::string DescribeLiveDomainTimeShiftDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeLiveDomainTimeShiftDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeLiveDomainTimeShiftDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeLiveDomainTimeShiftDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeLiveDomainTimeShiftDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeLiveDomainTimeShiftDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeLiveDomainTimeShiftDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeLiveDomainTimeShiftDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeLiveDomainTimeShiftDataRequest::getInterval()const
{
return interval_;
}
void DescribeLiveDomainTimeShiftDataRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DescribeLiveDomainTimeShiftDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveDomainTimeShiftDataResult::DescribeLiveDomainTimeShiftDataResult() :
ServiceResult()
{}
DescribeLiveDomainTimeShiftDataResult::DescribeLiveDomainTimeShiftDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveDomainTimeShiftDataResult::~DescribeLiveDomainTimeShiftDataResult()
{}
void DescribeLiveDomainTimeShiftDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTimeShiftDataNode = value["TimeShiftData"]["DataModule"];
for (auto valueTimeShiftDataDataModule : allTimeShiftDataNode)
{
DataModule timeShiftDataObject;
if(!valueTimeShiftDataDataModule["TimeStamp"].isNull())
timeShiftDataObject.timeStamp = valueTimeShiftDataDataModule["TimeStamp"].asString();
if(!valueTimeShiftDataDataModule["Size"].isNull())
timeShiftDataObject.size = valueTimeShiftDataDataModule["Size"].asString();
if(!valueTimeShiftDataDataModule["Type"].isNull())
timeShiftDataObject.type = valueTimeShiftDataDataModule["Type"].asString();
timeShiftData_.push_back(timeShiftDataObject);
}
}
std::vector<DescribeLiveDomainTimeShiftDataResult::DataModule> DescribeLiveDomainTimeShiftDataResult::getTimeShiftData()const
{
return timeShiftData_;
}

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DescribeLivePullStreamConfigRequest.h>
using AlibabaCloud::Live::Model::DescribeLivePullStreamConfigRequest;
DescribeLivePullStreamConfigRequest::DescribeLivePullStreamConfigRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeLivePullStreamConfig")
{
setMethod(HttpRequest::Method::Post);
}
DescribeLivePullStreamConfigRequest::~DescribeLivePullStreamConfigRequest()
{}
std::string DescribeLivePullStreamConfigRequest::getDomainName()const
{
return domainName_;
}
void DescribeLivePullStreamConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeLivePullStreamConfigRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeLivePullStreamConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeLivePullStreamConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeLivePullStreamConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}

View File

@@ -1,67 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DescribeLivePullStreamConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLivePullStreamConfigResult::DescribeLivePullStreamConfigResult() :
ServiceResult()
{}
DescribeLivePullStreamConfigResult::DescribeLivePullStreamConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLivePullStreamConfigResult::~DescribeLivePullStreamConfigResult()
{}
void DescribeLivePullStreamConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLiveAppRecordListNode = value["LiveAppRecordList"]["LiveAppRecord"];
for (auto valueLiveAppRecordListLiveAppRecord : allLiveAppRecordListNode)
{
LiveAppRecord liveAppRecordListObject;
if(!valueLiveAppRecordListLiveAppRecord["DomainName"].isNull())
liveAppRecordListObject.domainName = valueLiveAppRecordListLiveAppRecord["DomainName"].asString();
if(!valueLiveAppRecordListLiveAppRecord["AppName"].isNull())
liveAppRecordListObject.appName = valueLiveAppRecordListLiveAppRecord["AppName"].asString();
if(!valueLiveAppRecordListLiveAppRecord["StreamName"].isNull())
liveAppRecordListObject.streamName = valueLiveAppRecordListLiveAppRecord["StreamName"].asString();
if(!valueLiveAppRecordListLiveAppRecord["SourceUrl"].isNull())
liveAppRecordListObject.sourceUrl = valueLiveAppRecordListLiveAppRecord["SourceUrl"].asString();
if(!valueLiveAppRecordListLiveAppRecord["StartTime"].isNull())
liveAppRecordListObject.startTime = valueLiveAppRecordListLiveAppRecord["StartTime"].asString();
if(!valueLiveAppRecordListLiveAppRecord["EndTime"].isNull())
liveAppRecordListObject.endTime = valueLiveAppRecordListLiveAppRecord["EndTime"].asString();
liveAppRecordList_.push_back(liveAppRecordListObject);
}
}
std::vector<DescribeLivePullStreamConfigResult::LiveAppRecord> DescribeLivePullStreamConfigResult::getLiveAppRecordList()const
{
return liveAppRecordList_;
}

View File

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

View File

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

View File

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

View File

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

View File

@@ -21,6 +21,8 @@ set(r-kvstore_public_header
include/alibabacloud/r-kvstore/R_kvstoreExport.h )
set(r-kvstore_public_header_model
include/alibabacloud/r-kvstore/model/AllocateDirectConnectionRequest.h
include/alibabacloud/r-kvstore/model/AllocateDirectConnectionResult.h
include/alibabacloud/r-kvstore/model/AllocateInstancePublicConnectionRequest.h
include/alibabacloud/r-kvstore/model/AllocateInstancePublicConnectionResult.h
include/alibabacloud/r-kvstore/model/CreateAccountRequest.h
@@ -33,6 +35,8 @@ set(r-kvstore_public_header_model
include/alibabacloud/r-kvstore/model/CreateDedicatedInstanceResult.h
include/alibabacloud/r-kvstore/model/CreateDedicatedUserClusterRequest.h
include/alibabacloud/r-kvstore/model/CreateDedicatedUserClusterResult.h
include/alibabacloud/r-kvstore/model/CreateGlobalDistributeCacheRequest.h
include/alibabacloud/r-kvstore/model/CreateGlobalDistributeCacheResult.h
include/alibabacloud/r-kvstore/model/CreateInstanceRequest.h
include/alibabacloud/r-kvstore/model/CreateInstanceResult.h
include/alibabacloud/r-kvstore/model/CreateUserClusterHostRequest.h
@@ -67,6 +71,8 @@ set(r-kvstore_public_header_model
include/alibabacloud/r-kvstore/model/DescribeDedicatedClusterInstanceListResult.h
include/alibabacloud/r-kvstore/model/DescribeDedicatedUserClusterRequest.h
include/alibabacloud/r-kvstore/model/DescribeDedicatedUserClusterResult.h
include/alibabacloud/r-kvstore/model/DescribeGlobalDistributeCacheRequest.h
include/alibabacloud/r-kvstore/model/DescribeGlobalDistributeCacheResult.h
include/alibabacloud/r-kvstore/model/DescribeHistoryMonitorValuesRequest.h
include/alibabacloud/r-kvstore/model/DescribeHistoryMonitorValuesResult.h
include/alibabacloud/r-kvstore/model/DescribeInstanceAttributeRequest.h
@@ -155,6 +161,8 @@ set(r-kvstore_public_header_model
include/alibabacloud/r-kvstore/model/ModifySecurityIpsResult.h
include/alibabacloud/r-kvstore/model/ModifyUserClusterHostRequest.h
include/alibabacloud/r-kvstore/model/ModifyUserClusterHostResult.h
include/alibabacloud/r-kvstore/model/ReleaseDirectConnectionRequest.h
include/alibabacloud/r-kvstore/model/ReleaseDirectConnectionResult.h
include/alibabacloud/r-kvstore/model/ReleaseInstancePublicConnectionRequest.h
include/alibabacloud/r-kvstore/model/ReleaseInstancePublicConnectionResult.h
include/alibabacloud/r-kvstore/model/RenewInstanceRequest.h
@@ -180,6 +188,8 @@ set(r-kvstore_public_header_model
set(r-kvstore_src
src/R-kvstoreClient.cc
src/model/AllocateDirectConnectionRequest.cc
src/model/AllocateDirectConnectionResult.cc
src/model/AllocateInstancePublicConnectionRequest.cc
src/model/AllocateInstancePublicConnectionResult.cc
src/model/CreateAccountRequest.cc
@@ -192,6 +202,8 @@ set(r-kvstore_src
src/model/CreateDedicatedInstanceResult.cc
src/model/CreateDedicatedUserClusterRequest.cc
src/model/CreateDedicatedUserClusterResult.cc
src/model/CreateGlobalDistributeCacheRequest.cc
src/model/CreateGlobalDistributeCacheResult.cc
src/model/CreateInstanceRequest.cc
src/model/CreateInstanceResult.cc
src/model/CreateUserClusterHostRequest.cc
@@ -226,6 +238,8 @@ set(r-kvstore_src
src/model/DescribeDedicatedClusterInstanceListResult.cc
src/model/DescribeDedicatedUserClusterRequest.cc
src/model/DescribeDedicatedUserClusterResult.cc
src/model/DescribeGlobalDistributeCacheRequest.cc
src/model/DescribeGlobalDistributeCacheResult.cc
src/model/DescribeHistoryMonitorValuesRequest.cc
src/model/DescribeHistoryMonitorValuesResult.cc
src/model/DescribeInstanceAttributeRequest.cc
@@ -314,6 +328,8 @@ set(r-kvstore_src
src/model/ModifySecurityIpsResult.cc
src/model/ModifyUserClusterHostRequest.cc
src/model/ModifyUserClusterHostResult.cc
src/model/ReleaseDirectConnectionRequest.cc
src/model/ReleaseDirectConnectionResult.cc
src/model/ReleaseInstancePublicConnectionRequest.cc
src/model/ReleaseInstancePublicConnectionResult.cc
src/model/RenewInstanceRequest.cc

View File

@@ -22,6 +22,8 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "R_kvstoreExport.h"
#include "model/AllocateDirectConnectionRequest.h"
#include "model/AllocateDirectConnectionResult.h"
#include "model/AllocateInstancePublicConnectionRequest.h"
#include "model/AllocateInstancePublicConnectionResult.h"
#include "model/CreateAccountRequest.h"
@@ -34,6 +36,8 @@
#include "model/CreateDedicatedInstanceResult.h"
#include "model/CreateDedicatedUserClusterRequest.h"
#include "model/CreateDedicatedUserClusterResult.h"
#include "model/CreateGlobalDistributeCacheRequest.h"
#include "model/CreateGlobalDistributeCacheResult.h"
#include "model/CreateInstanceRequest.h"
#include "model/CreateInstanceResult.h"
#include "model/CreateUserClusterHostRequest.h"
@@ -68,6 +72,8 @@
#include "model/DescribeDedicatedClusterInstanceListResult.h"
#include "model/DescribeDedicatedUserClusterRequest.h"
#include "model/DescribeDedicatedUserClusterResult.h"
#include "model/DescribeGlobalDistributeCacheRequest.h"
#include "model/DescribeGlobalDistributeCacheResult.h"
#include "model/DescribeHistoryMonitorValuesRequest.h"
#include "model/DescribeHistoryMonitorValuesResult.h"
#include "model/DescribeInstanceAttributeRequest.h"
@@ -156,6 +162,8 @@
#include "model/ModifySecurityIpsResult.h"
#include "model/ModifyUserClusterHostRequest.h"
#include "model/ModifyUserClusterHostResult.h"
#include "model/ReleaseDirectConnectionRequest.h"
#include "model/ReleaseDirectConnectionResult.h"
#include "model/ReleaseInstancePublicConnectionRequest.h"
#include "model/ReleaseInstancePublicConnectionResult.h"
#include "model/RenewInstanceRequest.h"
@@ -187,6 +195,9 @@ namespace AlibabaCloud
class ALIBABACLOUD_R_KVSTORE_EXPORT R_kvstoreClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AllocateDirectConnectionResult> AllocateDirectConnectionOutcome;
typedef std::future<AllocateDirectConnectionOutcome> AllocateDirectConnectionOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::AllocateDirectConnectionRequest&, const AllocateDirectConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AllocateDirectConnectionAsyncHandler;
typedef Outcome<Error, Model::AllocateInstancePublicConnectionResult> AllocateInstancePublicConnectionOutcome;
typedef std::future<AllocateInstancePublicConnectionOutcome> AllocateInstancePublicConnectionOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::AllocateInstancePublicConnectionRequest&, const AllocateInstancePublicConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AllocateInstancePublicConnectionAsyncHandler;
@@ -205,6 +216,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateDedicatedUserClusterResult> CreateDedicatedUserClusterOutcome;
typedef std::future<CreateDedicatedUserClusterOutcome> CreateDedicatedUserClusterOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::CreateDedicatedUserClusterRequest&, const CreateDedicatedUserClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDedicatedUserClusterAsyncHandler;
typedef Outcome<Error, Model::CreateGlobalDistributeCacheResult> CreateGlobalDistributeCacheOutcome;
typedef std::future<CreateGlobalDistributeCacheOutcome> CreateGlobalDistributeCacheOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::CreateGlobalDistributeCacheRequest&, const CreateGlobalDistributeCacheOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateGlobalDistributeCacheAsyncHandler;
typedef Outcome<Error, Model::CreateInstanceResult> CreateInstanceOutcome;
typedef std::future<CreateInstanceOutcome> CreateInstanceOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::CreateInstanceRequest&, const CreateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstanceAsyncHandler;
@@ -256,6 +270,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDedicatedUserClusterResult> DescribeDedicatedUserClusterOutcome;
typedef std::future<DescribeDedicatedUserClusterOutcome> DescribeDedicatedUserClusterOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::DescribeDedicatedUserClusterRequest&, const DescribeDedicatedUserClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDedicatedUserClusterAsyncHandler;
typedef Outcome<Error, Model::DescribeGlobalDistributeCacheResult> DescribeGlobalDistributeCacheOutcome;
typedef std::future<DescribeGlobalDistributeCacheOutcome> DescribeGlobalDistributeCacheOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::DescribeGlobalDistributeCacheRequest&, const DescribeGlobalDistributeCacheOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeGlobalDistributeCacheAsyncHandler;
typedef Outcome<Error, Model::DescribeHistoryMonitorValuesResult> DescribeHistoryMonitorValuesOutcome;
typedef std::future<DescribeHistoryMonitorValuesOutcome> DescribeHistoryMonitorValuesOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::DescribeHistoryMonitorValuesRequest&, const DescribeHistoryMonitorValuesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeHistoryMonitorValuesAsyncHandler;
@@ -388,6 +405,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyUserClusterHostResult> ModifyUserClusterHostOutcome;
typedef std::future<ModifyUserClusterHostOutcome> ModifyUserClusterHostOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::ModifyUserClusterHostRequest&, const ModifyUserClusterHostOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyUserClusterHostAsyncHandler;
typedef Outcome<Error, Model::ReleaseDirectConnectionResult> ReleaseDirectConnectionOutcome;
typedef std::future<ReleaseDirectConnectionOutcome> ReleaseDirectConnectionOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::ReleaseDirectConnectionRequest&, const ReleaseDirectConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleaseDirectConnectionAsyncHandler;
typedef Outcome<Error, Model::ReleaseInstancePublicConnectionResult> ReleaseInstancePublicConnectionOutcome;
typedef std::future<ReleaseInstancePublicConnectionOutcome> ReleaseInstancePublicConnectionOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::ReleaseInstancePublicConnectionRequest&, const ReleaseInstancePublicConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleaseInstancePublicConnectionAsyncHandler;
@@ -426,6 +446,9 @@ namespace AlibabaCloud
R_kvstoreClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
R_kvstoreClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~R_kvstoreClient();
AllocateDirectConnectionOutcome allocateDirectConnection(const Model::AllocateDirectConnectionRequest &request)const;
void allocateDirectConnectionAsync(const Model::AllocateDirectConnectionRequest& request, const AllocateDirectConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AllocateDirectConnectionOutcomeCallable allocateDirectConnectionCallable(const Model::AllocateDirectConnectionRequest& request) const;
AllocateInstancePublicConnectionOutcome allocateInstancePublicConnection(const Model::AllocateInstancePublicConnectionRequest &request)const;
void allocateInstancePublicConnectionAsync(const Model::AllocateInstancePublicConnectionRequest& request, const AllocateInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AllocateInstancePublicConnectionOutcomeCallable allocateInstancePublicConnectionCallable(const Model::AllocateInstancePublicConnectionRequest& request) const;
@@ -444,6 +467,9 @@ namespace AlibabaCloud
CreateDedicatedUserClusterOutcome createDedicatedUserCluster(const Model::CreateDedicatedUserClusterRequest &request)const;
void createDedicatedUserClusterAsync(const Model::CreateDedicatedUserClusterRequest& request, const CreateDedicatedUserClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDedicatedUserClusterOutcomeCallable createDedicatedUserClusterCallable(const Model::CreateDedicatedUserClusterRequest& request) const;
CreateGlobalDistributeCacheOutcome createGlobalDistributeCache(const Model::CreateGlobalDistributeCacheRequest &request)const;
void createGlobalDistributeCacheAsync(const Model::CreateGlobalDistributeCacheRequest& request, const CreateGlobalDistributeCacheAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateGlobalDistributeCacheOutcomeCallable createGlobalDistributeCacheCallable(const Model::CreateGlobalDistributeCacheRequest& request) const;
CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const;
void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const;
@@ -495,6 +521,9 @@ namespace AlibabaCloud
DescribeDedicatedUserClusterOutcome describeDedicatedUserCluster(const Model::DescribeDedicatedUserClusterRequest &request)const;
void describeDedicatedUserClusterAsync(const Model::DescribeDedicatedUserClusterRequest& request, const DescribeDedicatedUserClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDedicatedUserClusterOutcomeCallable describeDedicatedUserClusterCallable(const Model::DescribeDedicatedUserClusterRequest& request) const;
DescribeGlobalDistributeCacheOutcome describeGlobalDistributeCache(const Model::DescribeGlobalDistributeCacheRequest &request)const;
void describeGlobalDistributeCacheAsync(const Model::DescribeGlobalDistributeCacheRequest& request, const DescribeGlobalDistributeCacheAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeGlobalDistributeCacheOutcomeCallable describeGlobalDistributeCacheCallable(const Model::DescribeGlobalDistributeCacheRequest& request) const;
DescribeHistoryMonitorValuesOutcome describeHistoryMonitorValues(const Model::DescribeHistoryMonitorValuesRequest &request)const;
void describeHistoryMonitorValuesAsync(const Model::DescribeHistoryMonitorValuesRequest& request, const DescribeHistoryMonitorValuesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeHistoryMonitorValuesOutcomeCallable describeHistoryMonitorValuesCallable(const Model::DescribeHistoryMonitorValuesRequest& request) const;
@@ -627,6 +656,9 @@ namespace AlibabaCloud
ModifyUserClusterHostOutcome modifyUserClusterHost(const Model::ModifyUserClusterHostRequest &request)const;
void modifyUserClusterHostAsync(const Model::ModifyUserClusterHostRequest& request, const ModifyUserClusterHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyUserClusterHostOutcomeCallable modifyUserClusterHostCallable(const Model::ModifyUserClusterHostRequest& request) const;
ReleaseDirectConnectionOutcome releaseDirectConnection(const Model::ReleaseDirectConnectionRequest &request)const;
void releaseDirectConnectionAsync(const Model::ReleaseDirectConnectionRequest& request, const ReleaseDirectConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReleaseDirectConnectionOutcomeCallable releaseDirectConnectionCallable(const Model::ReleaseDirectConnectionRequest& request) const;
ReleaseInstancePublicConnectionOutcome releaseInstancePublicConnection(const Model::ReleaseInstancePublicConnectionRequest &request)const;
void releaseInstancePublicConnectionAsync(const Model::ReleaseInstancePublicConnectionRequest& request, const ReleaseInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReleaseInstancePublicConnectionOutcomeCallable releaseInstancePublicConnectionCallable(const Model::ReleaseInstancePublicConnectionRequest& request) const;

View File

@@ -0,0 +1,72 @@
/*
* 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_R_KVSTORE_MODEL_ALLOCATEDIRECTCONNECTIONREQUEST_H_
#define ALIBABACLOUD_R_KVSTORE_MODEL_ALLOCATEDIRECTCONNECTIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
namespace AlibabaCloud
{
namespace R_kvstore
{
namespace Model
{
class ALIBABACLOUD_R_KVSTORE_EXPORT AllocateDirectConnectionRequest : public RpcServiceRequest
{
public:
AllocateDirectConnectionRequest();
~AllocateDirectConnectionRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getConnectionString()const;
void setConnectionString(const std::string& connectionString);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getPort()const;
void setPort(const std::string& port);
private:
long resourceOwnerId_;
std::string connectionString_;
std::string accessKeyId_;
std::string securityToken_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
std::string port_;
};
}
}
}
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_ALLOCATEDIRECTCONNECTIONREQUEST_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_R_KVSTORE_MODEL_ALLOCATEDIRECTCONNECTIONRESULT_H_
#define ALIBABACLOUD_R_KVSTORE_MODEL_ALLOCATEDIRECTCONNECTIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
namespace AlibabaCloud
{
namespace R_kvstore
{
namespace Model
{
class ALIBABACLOUD_R_KVSTORE_EXPORT AllocateDirectConnectionResult : public ServiceResult
{
public:
AllocateDirectConnectionResult();
explicit AllocateDirectConnectionResult(const std::string &payload);
~AllocateDirectConnectionResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_ALLOCATEDIRECTCONNECTIONRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* 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_R_KVSTORE_MODEL_CREATEGLOBALDISTRIBUTECACHEREQUEST_H_
#define ALIBABACLOUD_R_KVSTORE_MODEL_CREATEGLOBALDISTRIBUTECACHEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
namespace AlibabaCloud
{
namespace R_kvstore
{
namespace Model
{
class ALIBABACLOUD_R_KVSTORE_EXPORT CreateGlobalDistributeCacheRequest : public RpcServiceRequest
{
public:
CreateGlobalDistributeCacheRequest();
~CreateGlobalDistributeCacheRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getSeedSubInstanceId()const;
void setSeedSubInstanceId(const std::string& seedSubInstanceId);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string securityToken_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string seedSubInstanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_CREATEGLOBALDISTRIBUTECACHEREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_CREATEGLOBALDISTRIBUTECACHERESULT_H_
#define ALIBABACLOUD_R_KVSTORE_MODEL_CREATEGLOBALDISTRIBUTECACHERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
namespace AlibabaCloud
{
namespace R_kvstore
{
namespace Model
{
class ALIBABACLOUD_R_KVSTORE_EXPORT CreateGlobalDistributeCacheResult : public ServiceResult
{
public:
CreateGlobalDistributeCacheResult();
explicit CreateGlobalDistributeCacheResult(const std::string &payload);
~CreateGlobalDistributeCacheResult();
std::string getGlobalInstanceId()const;
protected:
void parse(const std::string &payload);
private:
std::string globalInstanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_CREATEGLOBALDISTRIBUTECACHERESULT_H_

View File

@@ -51,6 +51,8 @@ namespace AlibabaCloud
void setSecurityToken(const std::string& securityToken);
std::string getBusinessInfo()const;
void setBusinessInfo(const std::string& businessInfo);
int getShardCount()const;
void setShardCount(int shardCount);
std::string getAutoRenewPeriod()const;
void setAutoRenewPeriod(const std::string& autoRenewPeriod);
std::string getPeriod()const;
@@ -91,8 +93,12 @@ namespace AlibabaCloud
void setSrcDBInstanceId(const std::string& srcDBInstanceId);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
bool getGlobalInstance()const;
void setGlobalInstance(bool globalInstance);
std::string getToken()const;
void setToken(const std::string& token);
std::string getGlobalInstanceId()const;
void setGlobalInstanceId(const std::string& globalInstanceId);
std::string getVpcId()const;
void setVpcId(const std::string& vpcId);
std::string getChargeType()const;
@@ -109,6 +115,7 @@ namespace AlibabaCloud
std::string password_;
std::string securityToken_;
std::string businessInfo_;
int shardCount_;
std::string autoRenewPeriod_;
std::string period_;
std::string backupId_;
@@ -129,7 +136,9 @@ namespace AlibabaCloud
std::string resourceOwnerAccount_;
std::string srcDBInstanceId_;
std::string ownerAccount_;
bool globalInstance_;
std::string token_;
std::string globalInstanceId_;
std::string vpcId_;
std::string chargeType_;
std::string config_;

View File

@@ -37,27 +37,33 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
bool getReleaseSubInstance()const;
void setReleaseSubInstance(bool releaseSubInstance);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getGlobalInstanceId()const;
void setGlobalInstanceId(const std::string& globalInstanceId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
private:
long resourceOwnerId_;
bool releaseSubInstance_;
std::string accessKeyId_;
std::string securityToken_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string accessKeyId_;
std::string globalInstanceId_;
std::string instanceId_;
std::string securityToken_;
};
}

View File

@@ -0,0 +1,72 @@
/*
* 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_R_KVSTORE_MODEL_DESCRIBEGLOBALDISTRIBUTECACHEREQUEST_H_
#define ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBEGLOBALDISTRIBUTECACHEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
namespace AlibabaCloud
{
namespace R_kvstore
{
namespace Model
{
class ALIBABACLOUD_R_KVSTORE_EXPORT DescribeGlobalDistributeCacheRequest : public RpcServiceRequest
{
public:
DescribeGlobalDistributeCacheRequest();
~DescribeGlobalDistributeCacheRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPageNumber()const;
void setPageNumber(const std::string& pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getPageSize()const;
void setPageSize(const std::string& pageSize);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getGlobalInstanceId()const;
void setGlobalInstanceId(const std::string& globalInstanceId);
private:
long resourceOwnerId_;
std::string pageNumber_;
std::string accessKeyId_;
std::string securityToken_;
std::string pageSize_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string globalInstanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBEGLOBALDISTRIBUTECACHEREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* 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_R_KVSTORE_MODEL_DESCRIBEGLOBALDISTRIBUTECACHERESULT_H_
#define ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBEGLOBALDISTRIBUTECACHERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
namespace AlibabaCloud
{
namespace R_kvstore
{
namespace Model
{
class ALIBABACLOUD_R_KVSTORE_EXPORT DescribeGlobalDistributeCacheResult : public ServiceResult
{
public:
struct GlobalDistributeCache
{
struct SubInstance
{
std::string instanceID;
std::string instanceStatus;
std::string globalInstanceId;
std::string regionId;
};
std::string status;
std::vector<GlobalDistributeCache::SubInstance> subInstances;
std::string globalInstanceId;
std::string globalInstanceName;
};
DescribeGlobalDistributeCacheResult();
explicit DescribeGlobalDistributeCacheResult(const std::string &payload);
~DescribeGlobalDistributeCacheResult();
int getTotalRecordCount()const;
std::vector<GlobalDistributeCache> getGlobalDistributeCaches()const;
int getPageSize()const;
int getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
int totalRecordCount_;
std::vector<GlobalDistributeCache> globalDistributeCaches_;
int pageSize_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBEGLOBALDISTRIBUTECACHERESULT_H_

View File

@@ -73,6 +73,8 @@ namespace AlibabaCloud
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
bool getGlobalInstance()const;
void setGlobalInstance(bool globalInstance);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getVSwitchId()const;
@@ -107,6 +109,7 @@ namespace AlibabaCloud
std::string instanceStatus_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
bool globalInstance_;
long ownerId_;
std::string vSwitchId_;
int vpcCloudInsInfo_;

View File

@@ -0,0 +1,66 @@
/*
* 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_R_KVSTORE_MODEL_RELEASEDIRECTCONNECTIONREQUEST_H_
#define ALIBABACLOUD_R_KVSTORE_MODEL_RELEASEDIRECTCONNECTIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
namespace AlibabaCloud
{
namespace R_kvstore
{
namespace Model
{
class ALIBABACLOUD_R_KVSTORE_EXPORT ReleaseDirectConnectionRequest : public RpcServiceRequest
{
public:
ReleaseDirectConnectionRequest();
~ReleaseDirectConnectionRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string securityToken_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_RELEASEDIRECTCONNECTIONREQUEST_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_R_KVSTORE_MODEL_RELEASEDIRECTCONNECTIONRESULT_H_
#define ALIBABACLOUD_R_KVSTORE_MODEL_RELEASEDIRECTCONNECTIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
namespace AlibabaCloud
{
namespace R_kvstore
{
namespace Model
{
class ALIBABACLOUD_R_KVSTORE_EXPORT ReleaseDirectConnectionResult : public ServiceResult
{
public:
ReleaseDirectConnectionResult();
explicit ReleaseDirectConnectionResult(const std::string &payload);
~ReleaseDirectConnectionResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_RELEASEDIRECTCONNECTIONRESULT_H_

View File

@@ -51,6 +51,42 @@ R_kvstoreClient::R_kvstoreClient(const std::string & accessKeyId, const std::str
R_kvstoreClient::~R_kvstoreClient()
{}
R_kvstoreClient::AllocateDirectConnectionOutcome R_kvstoreClient::allocateDirectConnection(const AllocateDirectConnectionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AllocateDirectConnectionOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AllocateDirectConnectionOutcome(AllocateDirectConnectionResult(outcome.result()));
else
return AllocateDirectConnectionOutcome(outcome.error());
}
void R_kvstoreClient::allocateDirectConnectionAsync(const AllocateDirectConnectionRequest& request, const AllocateDirectConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, allocateDirectConnection(request), context);
};
asyncExecute(new Runnable(fn));
}
R_kvstoreClient::AllocateDirectConnectionOutcomeCallable R_kvstoreClient::allocateDirectConnectionCallable(const AllocateDirectConnectionRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AllocateDirectConnectionOutcome()>>(
[this, request]()
{
return this->allocateDirectConnection(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
R_kvstoreClient::AllocateInstancePublicConnectionOutcome R_kvstoreClient::allocateInstancePublicConnection(const AllocateInstancePublicConnectionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -267,6 +303,42 @@ R_kvstoreClient::CreateDedicatedUserClusterOutcomeCallable R_kvstoreClient::crea
return task->get_future();
}
R_kvstoreClient::CreateGlobalDistributeCacheOutcome R_kvstoreClient::createGlobalDistributeCache(const CreateGlobalDistributeCacheRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateGlobalDistributeCacheOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateGlobalDistributeCacheOutcome(CreateGlobalDistributeCacheResult(outcome.result()));
else
return CreateGlobalDistributeCacheOutcome(outcome.error());
}
void R_kvstoreClient::createGlobalDistributeCacheAsync(const CreateGlobalDistributeCacheRequest& request, const CreateGlobalDistributeCacheAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createGlobalDistributeCache(request), context);
};
asyncExecute(new Runnable(fn));
}
R_kvstoreClient::CreateGlobalDistributeCacheOutcomeCallable R_kvstoreClient::createGlobalDistributeCacheCallable(const CreateGlobalDistributeCacheRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateGlobalDistributeCacheOutcome()>>(
[this, request]()
{
return this->createGlobalDistributeCache(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
R_kvstoreClient::CreateInstanceOutcome R_kvstoreClient::createInstance(const CreateInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -879,6 +951,42 @@ R_kvstoreClient::DescribeDedicatedUserClusterOutcomeCallable R_kvstoreClient::de
return task->get_future();
}
R_kvstoreClient::DescribeGlobalDistributeCacheOutcome R_kvstoreClient::describeGlobalDistributeCache(const DescribeGlobalDistributeCacheRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeGlobalDistributeCacheOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeGlobalDistributeCacheOutcome(DescribeGlobalDistributeCacheResult(outcome.result()));
else
return DescribeGlobalDistributeCacheOutcome(outcome.error());
}
void R_kvstoreClient::describeGlobalDistributeCacheAsync(const DescribeGlobalDistributeCacheRequest& request, const DescribeGlobalDistributeCacheAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeGlobalDistributeCache(request), context);
};
asyncExecute(new Runnable(fn));
}
R_kvstoreClient::DescribeGlobalDistributeCacheOutcomeCallable R_kvstoreClient::describeGlobalDistributeCacheCallable(const DescribeGlobalDistributeCacheRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeGlobalDistributeCacheOutcome()>>(
[this, request]()
{
return this->describeGlobalDistributeCache(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
R_kvstoreClient::DescribeHistoryMonitorValuesOutcome R_kvstoreClient::describeHistoryMonitorValues(const DescribeHistoryMonitorValuesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2463,6 +2571,42 @@ R_kvstoreClient::ModifyUserClusterHostOutcomeCallable R_kvstoreClient::modifyUse
return task->get_future();
}
R_kvstoreClient::ReleaseDirectConnectionOutcome R_kvstoreClient::releaseDirectConnection(const ReleaseDirectConnectionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ReleaseDirectConnectionOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ReleaseDirectConnectionOutcome(ReleaseDirectConnectionResult(outcome.result()));
else
return ReleaseDirectConnectionOutcome(outcome.error());
}
void R_kvstoreClient::releaseDirectConnectionAsync(const ReleaseDirectConnectionRequest& request, const ReleaseDirectConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, releaseDirectConnection(request), context);
};
asyncExecute(new Runnable(fn));
}
R_kvstoreClient::ReleaseDirectConnectionOutcomeCallable R_kvstoreClient::releaseDirectConnectionCallable(const ReleaseDirectConnectionRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ReleaseDirectConnectionOutcome()>>(
[this, request]()
{
return this->releaseDirectConnection(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
R_kvstoreClient::ReleaseInstancePublicConnectionOutcome R_kvstoreClient::releaseInstancePublicConnection(const ReleaseInstancePublicConnectionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,128 @@
/*
* 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/r-kvstore/model/AllocateDirectConnectionRequest.h>
using AlibabaCloud::R_kvstore::Model::AllocateDirectConnectionRequest;
AllocateDirectConnectionRequest::AllocateDirectConnectionRequest() :
RpcServiceRequest("r-kvstore", "2015-01-01", "AllocateDirectConnection")
{
setMethod(HttpRequest::Method::Post);
}
AllocateDirectConnectionRequest::~AllocateDirectConnectionRequest()
{}
long AllocateDirectConnectionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AllocateDirectConnectionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AllocateDirectConnectionRequest::getConnectionString()const
{
return connectionString_;
}
void AllocateDirectConnectionRequest::setConnectionString(const std::string& connectionString)
{
connectionString_ = connectionString;
setParameter("ConnectionString", connectionString);
}
std::string AllocateDirectConnectionRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AllocateDirectConnectionRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AllocateDirectConnectionRequest::getSecurityToken()const
{
return securityToken_;
}
void AllocateDirectConnectionRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string AllocateDirectConnectionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AllocateDirectConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AllocateDirectConnectionRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AllocateDirectConnectionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AllocateDirectConnectionRequest::getOwnerId()const
{
return ownerId_;
}
void AllocateDirectConnectionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AllocateDirectConnectionRequest::getInstanceId()const
{
return instanceId_;
}
void AllocateDirectConnectionRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AllocateDirectConnectionRequest::getPort()const
{
return port_;
}
void AllocateDirectConnectionRequest::setPort(const std::string& port)
{
port_ = port;
setParameter("Port", port);
}

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

View File

@@ -0,0 +1,106 @@
/*
* 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/r-kvstore/model/CreateGlobalDistributeCacheRequest.h>
using AlibabaCloud::R_kvstore::Model::CreateGlobalDistributeCacheRequest;
CreateGlobalDistributeCacheRequest::CreateGlobalDistributeCacheRequest() :
RpcServiceRequest("r-kvstore", "2015-01-01", "CreateGlobalDistributeCache")
{
setMethod(HttpRequest::Method::Post);
}
CreateGlobalDistributeCacheRequest::~CreateGlobalDistributeCacheRequest()
{}
long CreateGlobalDistributeCacheRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateGlobalDistributeCacheRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateGlobalDistributeCacheRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateGlobalDistributeCacheRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateGlobalDistributeCacheRequest::getSecurityToken()const
{
return securityToken_;
}
void CreateGlobalDistributeCacheRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string CreateGlobalDistributeCacheRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateGlobalDistributeCacheRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateGlobalDistributeCacheRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateGlobalDistributeCacheRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long CreateGlobalDistributeCacheRequest::getOwnerId()const
{
return ownerId_;
}
void CreateGlobalDistributeCacheRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateGlobalDistributeCacheRequest::getSeedSubInstanceId()const
{
return seedSubInstanceId_;
}
void CreateGlobalDistributeCacheRequest::setSeedSubInstanceId(const std::string& seedSubInstanceId)
{
seedSubInstanceId_ = seedSubInstanceId;
setParameter("SeedSubInstanceId", seedSubInstanceId);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/r-kvstore/model/CreateGlobalDistributeCacheResult.h>
#include <json/json.h>
using namespace AlibabaCloud::R_kvstore;
using namespace AlibabaCloud::R_kvstore::Model;
CreateGlobalDistributeCacheResult::CreateGlobalDistributeCacheResult() :
ServiceResult()
{}
CreateGlobalDistributeCacheResult::CreateGlobalDistributeCacheResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateGlobalDistributeCacheResult::~CreateGlobalDistributeCacheResult()
{}
void CreateGlobalDistributeCacheResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["GlobalInstanceId"].isNull())
globalInstanceId_ = value["GlobalInstanceId"].asString();
}
std::string CreateGlobalDistributeCacheResult::getGlobalInstanceId()const
{
return globalInstanceId_;
}

View File

@@ -115,6 +115,17 @@ void CreateInstanceRequest::setBusinessInfo(const std::string& businessInfo)
setParameter("BusinessInfo", businessInfo);
}
int CreateInstanceRequest::getShardCount()const
{
return shardCount_;
}
void CreateInstanceRequest::setShardCount(int shardCount)
{
shardCount_ = shardCount;
setParameter("ShardCount", std::to_string(shardCount));
}
std::string CreateInstanceRequest::getAutoRenewPeriod()const
{
return autoRenewPeriod_;
@@ -335,6 +346,17 @@ void CreateInstanceRequest::setOwnerAccount(const std::string& ownerAccount)
setParameter("OwnerAccount", ownerAccount);
}
bool CreateInstanceRequest::getGlobalInstance()const
{
return globalInstance_;
}
void CreateInstanceRequest::setGlobalInstance(bool globalInstance)
{
globalInstance_ = globalInstance;
setParameter("GlobalInstance", globalInstance ? "true" : "false");
}
std::string CreateInstanceRequest::getToken()const
{
return token_;
@@ -346,6 +368,17 @@ void CreateInstanceRequest::setToken(const std::string& token)
setParameter("Token", token);
}
std::string CreateInstanceRequest::getGlobalInstanceId()const
{
return globalInstanceId_;
}
void CreateInstanceRequest::setGlobalInstanceId(const std::string& globalInstanceId)
{
globalInstanceId_ = globalInstanceId;
setParameter("GlobalInstanceId", globalInstanceId);
}
std::string CreateInstanceRequest::getVpcId()const
{
return vpcId_;

View File

@@ -38,6 +38,39 @@ void DeleteInstanceRequest::setResourceOwnerId(long resourceOwnerId)
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
bool DeleteInstanceRequest::getReleaseSubInstance()const
{
return releaseSubInstance_;
}
void DeleteInstanceRequest::setReleaseSubInstance(bool releaseSubInstance)
{
releaseSubInstance_ = releaseSubInstance;
setParameter("ReleaseSubInstance", releaseSubInstance ? "true" : "false");
}
std::string DeleteInstanceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DeleteInstanceRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteInstanceRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DeleteInstanceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
@@ -71,15 +104,15 @@ void DeleteInstanceRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteInstanceRequest::getAccessKeyId()const
std::string DeleteInstanceRequest::getGlobalInstanceId()const
{
return accessKeyId_;
return globalInstanceId_;
}
void DeleteInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
void DeleteInstanceRequest::setGlobalInstanceId(const std::string& globalInstanceId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
globalInstanceId_ = globalInstanceId;
setParameter("GlobalInstanceId", globalInstanceId);
}
std::string DeleteInstanceRequest::getInstanceId()const
@@ -93,14 +126,3 @@ void DeleteInstanceRequest::setInstanceId(const std::string& instanceId)
setParameter("InstanceId", instanceId);
}
std::string DeleteInstanceRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteInstanceRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}

View File

@@ -0,0 +1,128 @@
/*
* 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/r-kvstore/model/DescribeGlobalDistributeCacheRequest.h>
using AlibabaCloud::R_kvstore::Model::DescribeGlobalDistributeCacheRequest;
DescribeGlobalDistributeCacheRequest::DescribeGlobalDistributeCacheRequest() :
RpcServiceRequest("r-kvstore", "2015-01-01", "DescribeGlobalDistributeCache")
{
setMethod(HttpRequest::Method::Post);
}
DescribeGlobalDistributeCacheRequest::~DescribeGlobalDistributeCacheRequest()
{}
long DescribeGlobalDistributeCacheRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeGlobalDistributeCacheRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeGlobalDistributeCacheRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeGlobalDistributeCacheRequest::setPageNumber(const std::string& pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", pageNumber);
}
std::string DescribeGlobalDistributeCacheRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeGlobalDistributeCacheRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeGlobalDistributeCacheRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeGlobalDistributeCacheRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeGlobalDistributeCacheRequest::getPageSize()const
{
return pageSize_;
}
void DescribeGlobalDistributeCacheRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", pageSize);
}
std::string DescribeGlobalDistributeCacheRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeGlobalDistributeCacheRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeGlobalDistributeCacheRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeGlobalDistributeCacheRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeGlobalDistributeCacheRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeGlobalDistributeCacheRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeGlobalDistributeCacheRequest::getGlobalInstanceId()const
{
return globalInstanceId_;
}
void DescribeGlobalDistributeCacheRequest::setGlobalInstanceId(const std::string& globalInstanceId)
{
globalInstanceId_ = globalInstanceId;
setParameter("GlobalInstanceId", globalInstanceId);
}

View File

@@ -0,0 +1,96 @@
/*
* 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/r-kvstore/model/DescribeGlobalDistributeCacheResult.h>
#include <json/json.h>
using namespace AlibabaCloud::R_kvstore;
using namespace AlibabaCloud::R_kvstore::Model;
DescribeGlobalDistributeCacheResult::DescribeGlobalDistributeCacheResult() :
ServiceResult()
{}
DescribeGlobalDistributeCacheResult::DescribeGlobalDistributeCacheResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGlobalDistributeCacheResult::~DescribeGlobalDistributeCacheResult()
{}
void DescribeGlobalDistributeCacheResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGlobalDistributeCachesNode = value["GlobalDistributeCaches"]["GlobalDistributeCache"];
for (auto valueGlobalDistributeCachesGlobalDistributeCache : allGlobalDistributeCachesNode)
{
GlobalDistributeCache globalDistributeCachesObject;
if(!valueGlobalDistributeCachesGlobalDistributeCache["GlobalInstanceId"].isNull())
globalDistributeCachesObject.globalInstanceId = valueGlobalDistributeCachesGlobalDistributeCache["GlobalInstanceId"].asString();
if(!valueGlobalDistributeCachesGlobalDistributeCache["GlobalInstanceName"].isNull())
globalDistributeCachesObject.globalInstanceName = valueGlobalDistributeCachesGlobalDistributeCache["GlobalInstanceName"].asString();
if(!valueGlobalDistributeCachesGlobalDistributeCache["Status"].isNull())
globalDistributeCachesObject.status = valueGlobalDistributeCachesGlobalDistributeCache["Status"].asString();
auto allSubInstancesNode = allGlobalDistributeCachesNode["SubInstances"]["SubInstance"];
for (auto allGlobalDistributeCachesNodeSubInstancesSubInstance : allSubInstancesNode)
{
GlobalDistributeCache::SubInstance subInstancesObject;
if(!allGlobalDistributeCachesNodeSubInstancesSubInstance["GlobalInstanceId"].isNull())
subInstancesObject.globalInstanceId = allGlobalDistributeCachesNodeSubInstancesSubInstance["GlobalInstanceId"].asString();
if(!allGlobalDistributeCachesNodeSubInstancesSubInstance["InstanceID"].isNull())
subInstancesObject.instanceID = allGlobalDistributeCachesNodeSubInstancesSubInstance["InstanceID"].asString();
if(!allGlobalDistributeCachesNodeSubInstancesSubInstance["RegionId"].isNull())
subInstancesObject.regionId = allGlobalDistributeCachesNodeSubInstancesSubInstance["RegionId"].asString();
if(!allGlobalDistributeCachesNodeSubInstancesSubInstance["InstanceStatus"].isNull())
subInstancesObject.instanceStatus = allGlobalDistributeCachesNodeSubInstancesSubInstance["InstanceStatus"].asString();
globalDistributeCachesObject.subInstances.push_back(subInstancesObject);
}
globalDistributeCaches_.push_back(globalDistributeCachesObject);
}
if(!value["TotalRecordCount"].isNull())
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribeGlobalDistributeCacheResult::getTotalRecordCount()const
{
return totalRecordCount_;
}
std::vector<DescribeGlobalDistributeCacheResult::GlobalDistributeCache> DescribeGlobalDistributeCacheResult::getGlobalDistributeCaches()const
{
return globalDistributeCaches_;
}
int DescribeGlobalDistributeCacheResult::getPageSize()const
{
return pageSize_;
}
int DescribeGlobalDistributeCacheResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -208,6 +208,17 @@ void DescribeInstancesRequest::setOwnerAccount(const std::string& ownerAccount)
setParameter("OwnerAccount", ownerAccount);
}
bool DescribeInstancesRequest::getGlobalInstance()const
{
return globalInstance_;
}
void DescribeInstancesRequest::setGlobalInstance(bool globalInstance)
{
globalInstance_ = globalInstance;
setParameter("GlobalInstance", globalInstance ? "true" : "false");
}
long DescribeInstancesRequest::getOwnerId()const
{
return ownerId_;

View File

@@ -0,0 +1,106 @@
/*
* 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/r-kvstore/model/ReleaseDirectConnectionRequest.h>
using AlibabaCloud::R_kvstore::Model::ReleaseDirectConnectionRequest;
ReleaseDirectConnectionRequest::ReleaseDirectConnectionRequest() :
RpcServiceRequest("r-kvstore", "2015-01-01", "ReleaseDirectConnection")
{
setMethod(HttpRequest::Method::Post);
}
ReleaseDirectConnectionRequest::~ReleaseDirectConnectionRequest()
{}
long ReleaseDirectConnectionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ReleaseDirectConnectionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ReleaseDirectConnectionRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ReleaseDirectConnectionRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ReleaseDirectConnectionRequest::getSecurityToken()const
{
return securityToken_;
}
void ReleaseDirectConnectionRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string ReleaseDirectConnectionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ReleaseDirectConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ReleaseDirectConnectionRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ReleaseDirectConnectionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long ReleaseDirectConnectionRequest::getOwnerId()const
{
return ownerId_;
}
void ReleaseDirectConnectionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ReleaseDirectConnectionRequest::getInstanceId()const
{
return instanceId_;
}
void ReleaseDirectConnectionRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

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

View File

@@ -35,12 +35,15 @@ namespace AlibabaCloud
DescribeCursorRequest();
~DescribeCursorRequest();
int getPartitionIndex()const;
void setPartitionIndex(int partitionIndex);
long getStoreId()const;
void setStoreId(long storeId);
std::string getTime()const;
void setTime(const std::string& time);
private:
int partitionIndex_;
long storeId_;
std::string time_;

View File

@@ -37,17 +37,25 @@ namespace AlibabaCloud
DescribeCursorResult();
explicit DescribeCursorResult(const std::string &payload);
~DescribeCursorResult();
std::string getMessage()const;
std::string getDynamicCode()const;
std::string getErrorCode()const;
std::string getDynamicMessage()const;
std::string getErrorMessage()const;
std::string getCursor()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string dynamicCode_;
std::string errorCode_;
std::string dynamicMessage_;
std::string errorMessage_;
std::string cursor_;
std::string code_;
bool success_;
};

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
PullActionDataRequest();
~PullActionDataRequest();
int getPartitionIndex()const;
void setPartitionIndex(int partitionIndex);
long getStoreId()const;
void setStoreId(long storeId);
long getEndMessageId()const;
@@ -45,6 +47,7 @@ namespace AlibabaCloud
void setStartMessageId(long startMessageId);
private:
int partitionIndex_;
long storeId_;
long endMessageId_;
int limit_;

View File

@@ -75,19 +75,29 @@ namespace AlibabaCloud
PullActionDataResult();
explicit PullActionDataResult(const std::string &payload);
~PullActionDataResult();
std::string getMessage()const;
std::vector<Action> getActions()const;
long getNextMessageId()const;
int getPartitionIndex()const;
std::string getDynamicCode()const;
std::string getErrorCode()const;
std::string getDynamicMessage()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::vector<Action> actions_;
long nextMessageId_;
int partitionIndex_;
std::string dynamicCode_;
std::string errorCode_;
std::string dynamicMessage_;
std::string errorMessage_;
std::string code_;
bool success_;
};

View File

@@ -31,21 +31,21 @@ ReidClient::ReidClient(const Credentials &credentials, const ClientConfiguration
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.2");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.3");
}
ReidClient::ReidClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.2");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.3");
}
ReidClient::ReidClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.2");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.3");
}
ReidClient::~ReidClient()

View File

@@ -27,6 +27,17 @@ DescribeCursorRequest::DescribeCursorRequest() :
DescribeCursorRequest::~DescribeCursorRequest()
{}
int DescribeCursorRequest::getPartitionIndex()const
{
return partitionIndex_;
}
void DescribeCursorRequest::setPartitionIndex(int partitionIndex)
{
partitionIndex_ = partitionIndex;
setBodyParameter("PartitionIndex", std::to_string(partitionIndex));
}
long DescribeCursorRequest::getStoreId()const
{
return storeId_;

View File

@@ -45,16 +45,39 @@ void DescribeCursorResult::parse(const std::string &payload)
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Cursor"].isNull())
cursor_ = value["Cursor"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
}
std::string DescribeCursorResult::getMessage()const
{
return message_;
}
std::string DescribeCursorResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string DescribeCursorResult::getErrorCode()const
{
return errorCode_;
}
std::string DescribeCursorResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribeCursorResult::getErrorMessage()const
{
return errorMessage_;
@@ -65,6 +88,11 @@ std::string DescribeCursorResult::getCursor()const
return cursor_;
}
std::string DescribeCursorResult::getCode()const
{
return code_;
}
bool DescribeCursorResult::getSuccess()const
{
return success_;

View File

@@ -27,6 +27,17 @@ PullActionDataRequest::PullActionDataRequest() :
PullActionDataRequest::~PullActionDataRequest()
{}
int PullActionDataRequest::getPartitionIndex()const
{
return partitionIndex_;
}
void PullActionDataRequest::setPartitionIndex(int partitionIndex)
{
partitionIndex_ = partitionIndex;
setBodyParameter("PartitionIndex", std::to_string(partitionIndex));
}
long PullActionDataRequest::getStoreId()const
{
return storeId_;

View File

@@ -77,14 +77,14 @@ void PullActionDataResult::parse(const std::string &payload)
actionsObject.locationId = std::stol(valueActionsAction["LocationId"].asString());
if(!valueActionsAction["StayPeriod"].isNull())
actionsObject.stayPeriod = std::stoi(valueActionsAction["StayPeriod"].asString());
if(!valueActionsAction["FacePointNumber"].isNull())
actionsObject.facePointNumber = std::stoi(valueActionsAction["FacePointNumber"].asString());
if(!valueActionsAction["Score"].isNull())
actionsObject.score = std::stof(valueActionsAction["Score"].asString());
if(!valueActionsAction["SpecialType"].isNull())
actionsObject.specialType = valueActionsAction["SpecialType"].asString();
if(!valueActionsAction["ImageObjectKey"].isNull())
actionsObject.imageObjectKey = valueActionsAction["ImageObjectKey"].asString();
if(!valueActionsAction["FacePointNumber"].isNull())
actionsObject.facePointNumber = std::stoi(valueActionsAction["FacePointNumber"].asString());
auto objectPositionInImageNode = value["ObjectPositionInImage"];
if(!objectPositionInImageNode["Bottom"].isNull())
actionsObject.objectPositionInImage.bottom = std::stof(objectPositionInImageNode["Bottom"].asString());
@@ -105,13 +105,28 @@ void PullActionDataResult::parse(const std::string &payload)
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["PartitionIndex"].isNull())
partitionIndex_ = std::stoi(value["PartitionIndex"].asString());
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["NextMessageId"].isNull())
nextMessageId_ = std::stol(value["NextMessageId"].asString());
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
}
std::string PullActionDataResult::getMessage()const
{
return message_;
}
std::vector<PullActionDataResult::Action> PullActionDataResult::getActions()const
{
return actions_;
@@ -122,16 +137,36 @@ long PullActionDataResult::getNextMessageId()const
return nextMessageId_;
}
int PullActionDataResult::getPartitionIndex()const
{
return partitionIndex_;
}
std::string PullActionDataResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string PullActionDataResult::getErrorCode()const
{
return errorCode_;
}
std::string PullActionDataResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string PullActionDataResult::getErrorMessage()const
{
return errorMessage_;
}
std::string PullActionDataResult::getCode()const
{
return code_;
}
bool PullActionDataResult::getSuccess()const
{
return success_;

View File

@@ -93,6 +93,8 @@ set(vcs_public_header_model
include/alibabacloud/vcs/model/ListMotorAlgorithmResultsResult.h
include/alibabacloud/vcs/model/ListPersonTraceRequest.h
include/alibabacloud/vcs/model/ListPersonTraceResult.h
include/alibabacloud/vcs/model/ListPersonVisitCountRequest.h
include/alibabacloud/vcs/model/ListPersonVisitCountResult.h
include/alibabacloud/vcs/model/ListPersonsRequest.h
include/alibabacloud/vcs/model/ListPersonsResult.h
include/alibabacloud/vcs/model/RecognizeFaceQualityRequest.h
@@ -196,6 +198,8 @@ set(vcs_src
src/model/ListMotorAlgorithmResultsResult.cc
src/model/ListPersonTraceRequest.cc
src/model/ListPersonTraceResult.cc
src/model/ListPersonVisitCountRequest.cc
src/model/ListPersonVisitCountResult.cc
src/model/ListPersonsRequest.cc
src/model/ListPersonsResult.cc
src/model/RecognizeFaceQualityRequest.cc

View File

@@ -94,6 +94,8 @@
#include "model/ListMotorAlgorithmResultsResult.h"
#include "model/ListPersonTraceRequest.h"
#include "model/ListPersonTraceResult.h"
#include "model/ListPersonVisitCountRequest.h"
#include "model/ListPersonVisitCountResult.h"
#include "model/ListPersonsRequest.h"
#include "model/ListPersonsResult.h"
#include "model/RecognizeFaceQualityRequest.h"
@@ -239,6 +241,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListPersonTraceResult> ListPersonTraceOutcome;
typedef std::future<ListPersonTraceOutcome> ListPersonTraceOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::ListPersonTraceRequest&, const ListPersonTraceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPersonTraceAsyncHandler;
typedef Outcome<Error, Model::ListPersonVisitCountResult> ListPersonVisitCountOutcome;
typedef std::future<ListPersonVisitCountOutcome> ListPersonVisitCountOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::ListPersonVisitCountRequest&, const ListPersonVisitCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPersonVisitCountAsyncHandler;
typedef Outcome<Error, Model::ListPersonsResult> ListPersonsOutcome;
typedef std::future<ListPersonsOutcome> ListPersonsOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::ListPersonsRequest&, const ListPersonsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPersonsAsyncHandler;
@@ -394,6 +399,9 @@ namespace AlibabaCloud
ListPersonTraceOutcome listPersonTrace(const Model::ListPersonTraceRequest &request)const;
void listPersonTraceAsync(const Model::ListPersonTraceRequest& request, const ListPersonTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPersonTraceOutcomeCallable listPersonTraceCallable(const Model::ListPersonTraceRequest& request) const;
ListPersonVisitCountOutcome listPersonVisitCount(const Model::ListPersonVisitCountRequest &request)const;
void listPersonVisitCountAsync(const Model::ListPersonVisitCountRequest& request, const ListPersonVisitCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPersonVisitCountOutcomeCallable listPersonVisitCountCallable(const Model::ListPersonVisitCountRequest& request) const;
ListPersonsOutcome listPersons(const Model::ListPersonsRequest &request)const;
void listPersonsAsync(const Model::ListPersonsRequest& request, const ListPersonsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPersonsOutcomeCallable listPersonsCallable(const Model::ListPersonsRequest& request) const;

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_VCS_MODEL_LISTPERSONVISITCOUNTREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_LISTPERSONVISITCOUNTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT ListPersonVisitCountRequest : public RpcServiceRequest
{
public:
ListPersonVisitCountRequest();
~ListPersonVisitCountRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getTimeAggregateType()const;
void setTimeAggregateType(const std::string& timeAggregateType);
std::string getTagCode()const;
void setTagCode(const std::string& tagCode);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getAggregateType()const;
void setAggregateType(const std::string& aggregateType);
private:
std::string corpId_;
std::string endTime_;
std::string startTime_;
int pageNumber_;
std::string timeAggregateType_;
std::string tagCode_;
int pageSize_;
std::string aggregateType_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_LISTPERSONVISITCOUNTREQUEST_H_

View File

@@ -0,0 +1,74 @@
/*
* 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_VCS_MODEL_LISTPERSONVISITCOUNTRESULT_H_
#define ALIBABACLOUD_VCS_MODEL_LISTPERSONVISITCOUNTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT ListPersonVisitCountResult : public ServiceResult
{
public:
struct Datas
{
std::string corpId;
std::string personId;
std::string deviceId;
std::string tagMetrics;
std::string tagCode;
std::string dayId;
std::string groupId;
std::string hourId;
};
ListPersonVisitCountResult();
explicit ListPersonVisitCountResult(const std::string &payload);
~ListPersonVisitCountResult();
std::string getTotalCount()const;
std::string getMessage()const;
std::string getPageSize()const;
std::vector<Datas> getData()const;
std::string getPageNo()const;
std::string getCode()const;
std::string getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string totalCount_;
std::string message_;
std::string pageSize_;
std::vector<Datas> data_;
std::string pageNo_;
std::string code_;
std::string success_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_LISTPERSONVISITCOUNTRESULT_H_

View File

@@ -1347,6 +1347,42 @@ VcsClient::ListPersonTraceOutcomeCallable VcsClient::listPersonTraceCallable(con
return task->get_future();
}
VcsClient::ListPersonVisitCountOutcome VcsClient::listPersonVisitCount(const ListPersonVisitCountRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListPersonVisitCountOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListPersonVisitCountOutcome(ListPersonVisitCountResult(outcome.result()));
else
return ListPersonVisitCountOutcome(outcome.error());
}
void VcsClient::listPersonVisitCountAsync(const ListPersonVisitCountRequest& request, const ListPersonVisitCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listPersonVisitCount(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::ListPersonVisitCountOutcomeCallable VcsClient::listPersonVisitCountCallable(const ListPersonVisitCountRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListPersonVisitCountOutcome()>>(
[this, request]()
{
return this->listPersonVisitCount(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::ListPersonsOutcome VcsClient::listPersons(const ListPersonsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

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/vcs/model/ListPersonVisitCountRequest.h>
using AlibabaCloud::Vcs::Model::ListPersonVisitCountRequest;
ListPersonVisitCountRequest::ListPersonVisitCountRequest() :
RpcServiceRequest("vcs", "2020-05-15", "ListPersonVisitCount")
{
setMethod(HttpRequest::Method::Post);
}
ListPersonVisitCountRequest::~ListPersonVisitCountRequest()
{}
std::string ListPersonVisitCountRequest::getCorpId()const
{
return corpId_;
}
void ListPersonVisitCountRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string ListPersonVisitCountRequest::getEndTime()const
{
return endTime_;
}
void ListPersonVisitCountRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
std::string ListPersonVisitCountRequest::getStartTime()const
{
return startTime_;
}
void ListPersonVisitCountRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
int ListPersonVisitCountRequest::getPageNumber()const
{
return pageNumber_;
}
void ListPersonVisitCountRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListPersonVisitCountRequest::getTimeAggregateType()const
{
return timeAggregateType_;
}
void ListPersonVisitCountRequest::setTimeAggregateType(const std::string& timeAggregateType)
{
timeAggregateType_ = timeAggregateType;
setBodyParameter("TimeAggregateType", timeAggregateType);
}
std::string ListPersonVisitCountRequest::getTagCode()const
{
return tagCode_;
}
void ListPersonVisitCountRequest::setTagCode(const std::string& tagCode)
{
tagCode_ = tagCode;
setBodyParameter("TagCode", tagCode);
}
int ListPersonVisitCountRequest::getPageSize()const
{
return pageSize_;
}
void ListPersonVisitCountRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string ListPersonVisitCountRequest::getAggregateType()const
{
return aggregateType_;
}
void ListPersonVisitCountRequest::setAggregateType(const std::string& aggregateType)
{
aggregateType_ = aggregateType;
setBodyParameter("AggregateType", aggregateType);
}

View File

@@ -0,0 +1,113 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vcs/model/ListPersonVisitCountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
ListPersonVisitCountResult::ListPersonVisitCountResult() :
ServiceResult()
{}
ListPersonVisitCountResult::ListPersonVisitCountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPersonVisitCountResult::~ListPersonVisitCountResult()
{}
void ListPersonVisitCountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["Datas"];
for (auto valueDataDatas : allDataNode)
{
Datas dataObject;
if(!valueDataDatas["CorpId"].isNull())
dataObject.corpId = valueDataDatas["CorpId"].asString();
if(!valueDataDatas["DeviceId"].isNull())
dataObject.deviceId = valueDataDatas["DeviceId"].asString();
if(!valueDataDatas["GroupId"].isNull())
dataObject.groupId = valueDataDatas["GroupId"].asString();
if(!valueDataDatas["PersonId"].isNull())
dataObject.personId = valueDataDatas["PersonId"].asString();
if(!valueDataDatas["TagCode"].isNull())
dataObject.tagCode = valueDataDatas["TagCode"].asString();
if(!valueDataDatas["TagMetrics"].isNull())
dataObject.tagMetrics = valueDataDatas["TagMetrics"].asString();
if(!valueDataDatas["HourId"].isNull())
dataObject.hourId = valueDataDatas["HourId"].asString();
if(!valueDataDatas["DayId"].isNull())
dataObject.dayId = valueDataDatas["DayId"].asString();
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageNo"].isNull())
pageNo_ = value["PageNo"].asString();
if(!value["PageSize"].isNull())
pageSize_ = value["PageSize"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = value["TotalCount"].asString();
}
std::string ListPersonVisitCountResult::getTotalCount()const
{
return totalCount_;
}
std::string ListPersonVisitCountResult::getMessage()const
{
return message_;
}
std::string ListPersonVisitCountResult::getPageSize()const
{
return pageSize_;
}
std::vector<ListPersonVisitCountResult::Datas> ListPersonVisitCountResult::getData()const
{
return data_;
}
std::string ListPersonVisitCountResult::getPageNo()const
{
return pageNo_;
}
std::string ListPersonVisitCountResult::getCode()const
{
return code_;
}
std::string ListPersonVisitCountResult::getSuccess()const
{
return success_;
}