Live sdk update.

This commit is contained in:
sdk-team
2023-02-10 03:12:08 +00:00
parent 625c319b69
commit 4f44a09488
30 changed files with 699 additions and 29 deletions

View File

@@ -246,6 +246,8 @@
#include "model/DescribeLiveCertificateDetailResult.h"
#include "model/DescribeLiveCertificateListRequest.h"
#include "model/DescribeLiveCertificateListResult.h"
#include "model/DescribeLiveDelayedStreamingUsageRequest.h"
#include "model/DescribeLiveDelayedStreamingUsageResult.h"
#include "model/DescribeLiveDetectNotifyConfigRequest.h"
#include "model/DescribeLiveDetectNotifyConfigResult.h"
#include "model/DescribeLiveDetectPornDataRequest.h"
@@ -556,6 +558,8 @@
#include "model/SetLiveEdgeTransferResult.h"
#include "model/SetLiveLazyPullStreamInfoConfigRequest.h"
#include "model/SetLiveLazyPullStreamInfoConfigResult.h"
#include "model/SetLiveMpuTaskSeiRequest.h"
#include "model/SetLiveMpuTaskSeiResult.h"
#include "model/SetLiveStreamDelayConfigRequest.h"
#include "model/SetLiveStreamDelayConfigResult.h"
#include "model/SetLiveStreamOptimizedFeatureConfigRequest.h"
@@ -971,6 +975,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeLiveCertificateListResult> DescribeLiveCertificateListOutcome;
typedef std::future<DescribeLiveCertificateListOutcome> DescribeLiveCertificateListOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveCertificateListRequest&, const DescribeLiveCertificateListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveCertificateListAsyncHandler;
typedef Outcome<Error, Model::DescribeLiveDelayedStreamingUsageResult> DescribeLiveDelayedStreamingUsageOutcome;
typedef std::future<DescribeLiveDelayedStreamingUsageOutcome> DescribeLiveDelayedStreamingUsageOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveDelayedStreamingUsageRequest&, const DescribeLiveDelayedStreamingUsageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveDelayedStreamingUsageAsyncHandler;
typedef Outcome<Error, Model::DescribeLiveDetectNotifyConfigResult> DescribeLiveDetectNotifyConfigOutcome;
typedef std::future<DescribeLiveDetectNotifyConfigOutcome> DescribeLiveDetectNotifyConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveDetectNotifyConfigRequest&, const DescribeLiveDetectNotifyConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveDetectNotifyConfigAsyncHandler;
@@ -1436,6 +1443,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::SetLiveLazyPullStreamInfoConfigResult> SetLiveLazyPullStreamInfoConfigOutcome;
typedef std::future<SetLiveLazyPullStreamInfoConfigOutcome> SetLiveLazyPullStreamInfoConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::SetLiveLazyPullStreamInfoConfigRequest&, const SetLiveLazyPullStreamInfoConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetLiveLazyPullStreamInfoConfigAsyncHandler;
typedef Outcome<Error, Model::SetLiveMpuTaskSeiResult> SetLiveMpuTaskSeiOutcome;
typedef std::future<SetLiveMpuTaskSeiOutcome> SetLiveMpuTaskSeiOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::SetLiveMpuTaskSeiRequest&, const SetLiveMpuTaskSeiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetLiveMpuTaskSeiAsyncHandler;
typedef Outcome<Error, Model::SetLiveStreamDelayConfigResult> SetLiveStreamDelayConfigOutcome;
typedef std::future<SetLiveStreamDelayConfigOutcome> SetLiveStreamDelayConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::SetLiveStreamDelayConfigRequest&, const SetLiveStreamDelayConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetLiveStreamDelayConfigAsyncHandler;
@@ -1882,6 +1892,9 @@ namespace AlibabaCloud
DescribeLiveCertificateListOutcome describeLiveCertificateList(const Model::DescribeLiveCertificateListRequest &request)const;
void describeLiveCertificateListAsync(const Model::DescribeLiveCertificateListRequest& request, const DescribeLiveCertificateListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLiveCertificateListOutcomeCallable describeLiveCertificateListCallable(const Model::DescribeLiveCertificateListRequest& request) const;
DescribeLiveDelayedStreamingUsageOutcome describeLiveDelayedStreamingUsage(const Model::DescribeLiveDelayedStreamingUsageRequest &request)const;
void describeLiveDelayedStreamingUsageAsync(const Model::DescribeLiveDelayedStreamingUsageRequest& request, const DescribeLiveDelayedStreamingUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLiveDelayedStreamingUsageOutcomeCallable describeLiveDelayedStreamingUsageCallable(const Model::DescribeLiveDelayedStreamingUsageRequest& request) const;
DescribeLiveDetectNotifyConfigOutcome describeLiveDetectNotifyConfig(const Model::DescribeLiveDetectNotifyConfigRequest &request)const;
void describeLiveDetectNotifyConfigAsync(const Model::DescribeLiveDetectNotifyConfigRequest& request, const DescribeLiveDetectNotifyConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLiveDetectNotifyConfigOutcomeCallable describeLiveDetectNotifyConfigCallable(const Model::DescribeLiveDetectNotifyConfigRequest& request) const;
@@ -2347,6 +2360,9 @@ namespace AlibabaCloud
SetLiveLazyPullStreamInfoConfigOutcome setLiveLazyPullStreamInfoConfig(const Model::SetLiveLazyPullStreamInfoConfigRequest &request)const;
void setLiveLazyPullStreamInfoConfigAsync(const Model::SetLiveLazyPullStreamInfoConfigRequest& request, const SetLiveLazyPullStreamInfoConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetLiveLazyPullStreamInfoConfigOutcomeCallable setLiveLazyPullStreamInfoConfigCallable(const Model::SetLiveLazyPullStreamInfoConfigRequest& request) const;
SetLiveMpuTaskSeiOutcome setLiveMpuTaskSei(const Model::SetLiveMpuTaskSeiRequest &request)const;
void setLiveMpuTaskSeiAsync(const Model::SetLiveMpuTaskSeiRequest& request, const SetLiveMpuTaskSeiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetLiveMpuTaskSeiOutcomeCallable setLiveMpuTaskSeiCallable(const Model::SetLiveMpuTaskSeiRequest& request) const;
SetLiveStreamDelayConfigOutcome setLiveStreamDelayConfig(const Model::SetLiveStreamDelayConfigRequest &request)const;
void setLiveStreamDelayConfigAsync(const Model::SetLiveStreamDelayConfigRequest& request, const SetLiveStreamDelayConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetLiveStreamDelayConfigOutcomeCallable setLiveStreamDelayConfigCallable(const Model::SetLiveStreamDelayConfigRequest& request) const;

View File

@@ -48,6 +48,8 @@ public:
void setRefWidth(int refWidth);
int getTransparency() const;
void setTransparency(int transparency);
std::string getDomain() const;
void setDomain(const std::string &domain);
std::string getName() const;
void setName(const std::string &name);
std::string getOffsetCorner() const;
@@ -65,6 +67,7 @@ private:
long ownerId_;
int refWidth_;
int transparency_;
std::string domain_;
std::string name_;
std::string offsetCorner_;
int refHeight_;

View File

@@ -40,6 +40,8 @@ public:
void setAppName(const std::string &appName);
std::string getSecurityToken() const;
void setSecurityToken(const std::string &securityToken);
bool getEndTimeIncluded() const;
void setEndTimeIncluded(bool endTimeIncluded);
std::string getStreamName() const;
void setStreamName(const std::string &streamName);
std::string getOssBucket() const;
@@ -57,6 +59,7 @@ private:
std::string ossObject_;
std::string appName_;
std::string securityToken_;
bool endTimeIncluded_;
std::string streamName_;
std::string ossBucket_;
std::string domainName_;

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_DESCRIBELIVEDELAYEDSTREAMINGUSAGEREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDELAYEDSTREAMINGUSAGEREQUEST_H_
#include <alibabacloud/live/LiveExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Live {
namespace Model {
class ALIBABACLOUD_LIVE_EXPORT DescribeLiveDelayedStreamingUsageRequest : public RpcServiceRequest {
public:
DescribeLiveDelayedStreamingUsageRequest();
~DescribeLiveDelayedStreamingUsageRequest();
std::string getStartTime() const;
void setStartTime(const std::string &startTime);
std::string getStreamName() const;
void setStreamName(const std::string &streamName);
std::string getSplitBy() const;
void setSplitBy(const std::string &splitBy);
std::string getDomainName() const;
void setDomainName(const std::string &domainName);
std::string getEndTime() const;
void setEndTime(const std::string &endTime);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getRegion() const;
void setRegion(const std::string &region);
private:
std::string startTime_;
std::string streamName_;
std::string splitBy_;
std::string domainName_;
std::string endTime_;
long ownerId_;
std::string region_;
};
} // namespace Model
} // namespace Live
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDELAYEDSTREAMINGUSAGEREQUEST_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDELAYEDSTREAMINGUSAGERESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDELAYEDSTREAMINGUSAGERESULT_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 DescribeLiveDelayedStreamingUsageResult : public ServiceResult
{
public:
struct DelayDataItem
{
std::string streamName;
std::string domainName;
std::string region;
long duration;
std::string timeStamp;
};
DescribeLiveDelayedStreamingUsageResult();
explicit DescribeLiveDelayedStreamingUsageResult(const std::string &payload);
~DescribeLiveDelayedStreamingUsageResult();
std::string getEndTime()const;
std::string getStartTime()const;
std::vector<DelayDataItem> getDelayData()const;
protected:
void parse(const std::string &payload);
private:
std::string endTime_;
std::string startTime_;
std::vector<DelayDataItem> delayData_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEDELAYEDSTREAMINGUSAGERESULT_H_

View File

@@ -40,6 +40,8 @@ public:
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_;
@@ -47,6 +49,7 @@ private:
std::string domainName_;
std::string endTime_;
long ownerId_;
std::string interval_;
};
} // namespace Model
} // namespace Live

View File

@@ -45,11 +45,15 @@ namespace AlibabaCloud
DescribeLiveDomainRecordUsageDataResult();
explicit DescribeLiveDomainRecordUsageDataResult(const std::string &payload);
~DescribeLiveDomainRecordUsageDataResult();
std::string getEndTime()const;
std::string getStartTime()const;
std::vector<DataModule> getRecordUsageData()const;
protected:
void parse(const std::string &payload);
private:
std::string endTime_;
std::string startTime_;
std::vector<DataModule> recordUsageData_;
};

View File

@@ -36,11 +36,14 @@ public:
void setPageSize(int pageSize);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getDomain() const;
void setDomain(const std::string &domain);
private:
int pageNumber_;
int pageSize_;
long ownerId_;
std::string domain_;
};
} // namespace Model
} // namespace Live

View File

@@ -48,11 +48,13 @@ namespace AlibabaCloud
explicit DescribeLiveStreamWatermarkRulesResult(const std::string &payload);
~DescribeLiveStreamWatermarkRulesResult();
std::vector<RuleInfo> getRuleInfoList()const;
int getTotal()const;
protected:
void parse(const std::string &payload);
private:
std::vector<RuleInfo> ruleInfoList_;
int total_;
};
}

View File

@@ -34,13 +34,19 @@ public:
void setPageNumber(int pageNumber);
int getPageSize() const;
void setPageSize(int pageSize);
std::string getKeyWord() const;
void setKeyWord(const std::string &keyWord);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getDomain() const;
void setDomain(const std::string &domain);
private:
int pageNumber_;
int pageSize_;
std::string keyWord_;
long ownerId_;
std::string domain_;
};
} // namespace Model
} // namespace Live

View File

@@ -34,18 +34,19 @@ namespace AlibabaCloud
public:
struct Watermark
{
int ruleCount;
int refHeight;
int type;
int transparency;
std::string description;
std::string pictureUrl;
float yOffset;
int height;
std::string offsetCorner;
float xOffset;
int refWidth;
std::string templateId;
std::string name;
int type;
std::string pictureUrl;
int height;
std::string templateId;
};
@@ -53,11 +54,13 @@ namespace AlibabaCloud
explicit DescribeLiveStreamWatermarksResult(const std::string &payload);
~DescribeLiveStreamWatermarksResult();
std::vector<Watermark> getWatermarkList()const;
int getTotal()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Watermark> watermarkList_;
int total_;
};
}

View File

@@ -32,10 +32,6 @@ public:
~DescribeLiveUserBillPredictionRequest();
std::string getStartTime() const;
void setStartTime(const std::string &startTime);
std::string getDimension() const;
void setDimension(const std::string &dimension);
std::string getArea() const;
void setArea(const std::string &area);
std::string getEndTime() const;
void setEndTime(const std::string &endTime);
long getOwnerId() const;
@@ -43,8 +39,6 @@ public:
private:
std::string startTime_;
std::string dimension_;
std::string area_;
std::string endTime_;
long ownerId_;
};

View File

@@ -0,0 +1,48 @@
/*
* 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_SETLIVEMPUTASKSEIREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_SETLIVEMPUTASKSEIREQUEST_H_
#include <alibabacloud/live/LiveExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Live {
namespace Model {
class ALIBABACLOUD_LIVE_EXPORT SetLiveMpuTaskSeiRequest : public RpcServiceRequest {
public:
SetLiveMpuTaskSeiRequest();
~SetLiveMpuTaskSeiRequest();
std::string getCustomSei() const;
void setCustomSei(const std::string &customSei);
std::string getAppId() const;
void setAppId(const std::string &appId);
std::string getTaskId() const;
void setTaskId(const std::string &taskId);
private:
std::string customSei_;
std::string appId_;
std::string taskId_;
};
} // namespace Model
} // namespace Live
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_LIVE_MODEL_SETLIVEMPUTASKSEIREQUEST_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_SETLIVEMPUTASKSEIRESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_SETLIVEMPUTASKSEIRESULT_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 SetLiveMpuTaskSeiResult : public ServiceResult
{
public:
SetLiveMpuTaskSeiResult();
explicit SetLiveMpuTaskSeiResult(const std::string &payload);
~SetLiveMpuTaskSeiResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_SETLIVEMPUTASKSEIRESULT_H_