Update to support new apis.

This commit is contained in:
sdk-team
2024-09-26 06:31:46 +00:00
parent e2d298dba8
commit 66cb681daa
32 changed files with 1522 additions and 6 deletions

View File

@@ -1 +1 @@
1.36.1989
1.36.1990

View File

@@ -755,10 +755,14 @@ set(live_public_header_model
include/alibabacloud/live/model/StopRtcAsrTaskResult.h
include/alibabacloud/live/model/UnbanLiveMessageGroupRequest.h
include/alibabacloud/live/model/UnbanLiveMessageGroupResult.h
include/alibabacloud/live/model/UpdateCasterResourceGroupRequest.h
include/alibabacloud/live/model/UpdateCasterResourceGroupResult.h
include/alibabacloud/live/model/UpdateCasterSceneAudioRequest.h
include/alibabacloud/live/model/UpdateCasterSceneAudioResult.h
include/alibabacloud/live/model/UpdateCasterSceneConfigRequest.h
include/alibabacloud/live/model/UpdateCasterSceneConfigResult.h
include/alibabacloud/live/model/UpdateCustomLiveStreamTranscodeRequest.h
include/alibabacloud/live/model/UpdateCustomLiveStreamTranscodeResult.h
include/alibabacloud/live/model/UpdateEdgeTranscodeJobRequest.h
include/alibabacloud/live/model/UpdateEdgeTranscodeJobResult.h
include/alibabacloud/live/model/UpdateEventSubRequest.h
@@ -797,6 +801,8 @@ set(live_public_header_model
include/alibabacloud/live/model/UpdateLiveSnapshotNotifyConfigResult.h
include/alibabacloud/live/model/UpdateLiveStreamMonitorRequest.h
include/alibabacloud/live/model/UpdateLiveStreamMonitorResult.h
include/alibabacloud/live/model/UpdateLiveStreamTranscodeRequest.h
include/alibabacloud/live/model/UpdateLiveStreamTranscodeResult.h
include/alibabacloud/live/model/UpdateLiveStreamWatermarkRequest.h
include/alibabacloud/live/model/UpdateLiveStreamWatermarkResult.h
include/alibabacloud/live/model/UpdateLiveStreamWatermarkRuleRequest.h
@@ -809,6 +815,8 @@ set(live_public_header_model
include/alibabacloud/live/model/UpdateMixStreamResult.h
include/alibabacloud/live/model/UpdateRtcMPUEventSubRequest.h
include/alibabacloud/live/model/UpdateRtcMPUEventSubResult.h
include/alibabacloud/live/model/UpdateRtsLiveStreamTranscodeRequest.h
include/alibabacloud/live/model/UpdateRtsLiveStreamTranscodeResult.h
include/alibabacloud/live/model/VerifyLiveDomainOwnerRequest.h
include/alibabacloud/live/model/VerifyLiveDomainOwnerResult.h )
@@ -1548,10 +1556,14 @@ set(live_src
src/model/StopRtcAsrTaskResult.cc
src/model/UnbanLiveMessageGroupRequest.cc
src/model/UnbanLiveMessageGroupResult.cc
src/model/UpdateCasterResourceGroupRequest.cc
src/model/UpdateCasterResourceGroupResult.cc
src/model/UpdateCasterSceneAudioRequest.cc
src/model/UpdateCasterSceneAudioResult.cc
src/model/UpdateCasterSceneConfigRequest.cc
src/model/UpdateCasterSceneConfigResult.cc
src/model/UpdateCustomLiveStreamTranscodeRequest.cc
src/model/UpdateCustomLiveStreamTranscodeResult.cc
src/model/UpdateEdgeTranscodeJobRequest.cc
src/model/UpdateEdgeTranscodeJobResult.cc
src/model/UpdateEventSubRequest.cc
@@ -1590,6 +1602,8 @@ set(live_src
src/model/UpdateLiveSnapshotNotifyConfigResult.cc
src/model/UpdateLiveStreamMonitorRequest.cc
src/model/UpdateLiveStreamMonitorResult.cc
src/model/UpdateLiveStreamTranscodeRequest.cc
src/model/UpdateLiveStreamTranscodeResult.cc
src/model/UpdateLiveStreamWatermarkRequest.cc
src/model/UpdateLiveStreamWatermarkResult.cc
src/model/UpdateLiveStreamWatermarkRuleRequest.cc
@@ -1602,6 +1616,8 @@ set(live_src
src/model/UpdateMixStreamResult.cc
src/model/UpdateRtcMPUEventSubRequest.cc
src/model/UpdateRtcMPUEventSubResult.cc
src/model/UpdateRtsLiveStreamTranscodeRequest.cc
src/model/UpdateRtsLiveStreamTranscodeResult.cc
src/model/VerifyLiveDomainOwnerRequest.cc
src/model/VerifyLiveDomainOwnerResult.cc )

View File

@@ -756,10 +756,14 @@
#include "model/StopRtcAsrTaskResult.h"
#include "model/UnbanLiveMessageGroupRequest.h"
#include "model/UnbanLiveMessageGroupResult.h"
#include "model/UpdateCasterResourceGroupRequest.h"
#include "model/UpdateCasterResourceGroupResult.h"
#include "model/UpdateCasterSceneAudioRequest.h"
#include "model/UpdateCasterSceneAudioResult.h"
#include "model/UpdateCasterSceneConfigRequest.h"
#include "model/UpdateCasterSceneConfigResult.h"
#include "model/UpdateCustomLiveStreamTranscodeRequest.h"
#include "model/UpdateCustomLiveStreamTranscodeResult.h"
#include "model/UpdateEdgeTranscodeJobRequest.h"
#include "model/UpdateEdgeTranscodeJobResult.h"
#include "model/UpdateEventSubRequest.h"
@@ -798,6 +802,8 @@
#include "model/UpdateLiveSnapshotNotifyConfigResult.h"
#include "model/UpdateLiveStreamMonitorRequest.h"
#include "model/UpdateLiveStreamMonitorResult.h"
#include "model/UpdateLiveStreamTranscodeRequest.h"
#include "model/UpdateLiveStreamTranscodeResult.h"
#include "model/UpdateLiveStreamWatermarkRequest.h"
#include "model/UpdateLiveStreamWatermarkResult.h"
#include "model/UpdateLiveStreamWatermarkRuleRequest.h"
@@ -810,6 +816,8 @@
#include "model/UpdateMixStreamResult.h"
#include "model/UpdateRtcMPUEventSubRequest.h"
#include "model/UpdateRtcMPUEventSubResult.h"
#include "model/UpdateRtsLiveStreamTranscodeRequest.h"
#include "model/UpdateRtsLiveStreamTranscodeResult.h"
#include "model/VerifyLiveDomainOwnerRequest.h"
#include "model/VerifyLiveDomainOwnerResult.h"
@@ -1922,12 +1930,18 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UnbanLiveMessageGroupResult> UnbanLiveMessageGroupOutcome;
typedef std::future<UnbanLiveMessageGroupOutcome> UnbanLiveMessageGroupOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UnbanLiveMessageGroupRequest&, const UnbanLiveMessageGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbanLiveMessageGroupAsyncHandler;
typedef Outcome<Error, Model::UpdateCasterResourceGroupResult> UpdateCasterResourceGroupOutcome;
typedef std::future<UpdateCasterResourceGroupOutcome> UpdateCasterResourceGroupOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateCasterResourceGroupRequest&, const UpdateCasterResourceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCasterResourceGroupAsyncHandler;
typedef Outcome<Error, Model::UpdateCasterSceneAudioResult> UpdateCasterSceneAudioOutcome;
typedef std::future<UpdateCasterSceneAudioOutcome> UpdateCasterSceneAudioOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateCasterSceneAudioRequest&, const UpdateCasterSceneAudioOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCasterSceneAudioAsyncHandler;
typedef Outcome<Error, Model::UpdateCasterSceneConfigResult> UpdateCasterSceneConfigOutcome;
typedef std::future<UpdateCasterSceneConfigOutcome> UpdateCasterSceneConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateCasterSceneConfigRequest&, const UpdateCasterSceneConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCasterSceneConfigAsyncHandler;
typedef Outcome<Error, Model::UpdateCustomLiveStreamTranscodeResult> UpdateCustomLiveStreamTranscodeOutcome;
typedef std::future<UpdateCustomLiveStreamTranscodeOutcome> UpdateCustomLiveStreamTranscodeOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateCustomLiveStreamTranscodeRequest&, const UpdateCustomLiveStreamTranscodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCustomLiveStreamTranscodeAsyncHandler;
typedef Outcome<Error, Model::UpdateEdgeTranscodeJobResult> UpdateEdgeTranscodeJobOutcome;
typedef std::future<UpdateEdgeTranscodeJobOutcome> UpdateEdgeTranscodeJobOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateEdgeTranscodeJobRequest&, const UpdateEdgeTranscodeJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateEdgeTranscodeJobAsyncHandler;
@@ -1985,6 +1999,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateLiveStreamMonitorResult> UpdateLiveStreamMonitorOutcome;
typedef std::future<UpdateLiveStreamMonitorOutcome> UpdateLiveStreamMonitorOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateLiveStreamMonitorRequest&, const UpdateLiveStreamMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLiveStreamMonitorAsyncHandler;
typedef Outcome<Error, Model::UpdateLiveStreamTranscodeResult> UpdateLiveStreamTranscodeOutcome;
typedef std::future<UpdateLiveStreamTranscodeOutcome> UpdateLiveStreamTranscodeOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateLiveStreamTranscodeRequest&, const UpdateLiveStreamTranscodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLiveStreamTranscodeAsyncHandler;
typedef Outcome<Error, Model::UpdateLiveStreamWatermarkResult> UpdateLiveStreamWatermarkOutcome;
typedef std::future<UpdateLiveStreamWatermarkOutcome> UpdateLiveStreamWatermarkOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateLiveStreamWatermarkRequest&, const UpdateLiveStreamWatermarkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLiveStreamWatermarkAsyncHandler;
@@ -2003,6 +2020,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateRtcMPUEventSubResult> UpdateRtcMPUEventSubOutcome;
typedef std::future<UpdateRtcMPUEventSubOutcome> UpdateRtcMPUEventSubOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateRtcMPUEventSubRequest&, const UpdateRtcMPUEventSubOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateRtcMPUEventSubAsyncHandler;
typedef Outcome<Error, Model::UpdateRtsLiveStreamTranscodeResult> UpdateRtsLiveStreamTranscodeOutcome;
typedef std::future<UpdateRtsLiveStreamTranscodeOutcome> UpdateRtsLiveStreamTranscodeOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateRtsLiveStreamTranscodeRequest&, const UpdateRtsLiveStreamTranscodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateRtsLiveStreamTranscodeAsyncHandler;
typedef Outcome<Error, Model::VerifyLiveDomainOwnerResult> VerifyLiveDomainOwnerOutcome;
typedef std::future<VerifyLiveDomainOwnerOutcome> VerifyLiveDomainOwnerOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::VerifyLiveDomainOwnerRequest&, const VerifyLiveDomainOwnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyLiveDomainOwnerAsyncHandler;
@@ -3112,12 +3132,18 @@ namespace AlibabaCloud
UnbanLiveMessageGroupOutcome unbanLiveMessageGroup(const Model::UnbanLiveMessageGroupRequest &request)const;
void unbanLiveMessageGroupAsync(const Model::UnbanLiveMessageGroupRequest& request, const UnbanLiveMessageGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UnbanLiveMessageGroupOutcomeCallable unbanLiveMessageGroupCallable(const Model::UnbanLiveMessageGroupRequest& request) const;
UpdateCasterResourceGroupOutcome updateCasterResourceGroup(const Model::UpdateCasterResourceGroupRequest &request)const;
void updateCasterResourceGroupAsync(const Model::UpdateCasterResourceGroupRequest& request, const UpdateCasterResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateCasterResourceGroupOutcomeCallable updateCasterResourceGroupCallable(const Model::UpdateCasterResourceGroupRequest& request) const;
UpdateCasterSceneAudioOutcome updateCasterSceneAudio(const Model::UpdateCasterSceneAudioRequest &request)const;
void updateCasterSceneAudioAsync(const Model::UpdateCasterSceneAudioRequest& request, const UpdateCasterSceneAudioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateCasterSceneAudioOutcomeCallable updateCasterSceneAudioCallable(const Model::UpdateCasterSceneAudioRequest& request) const;
UpdateCasterSceneConfigOutcome updateCasterSceneConfig(const Model::UpdateCasterSceneConfigRequest &request)const;
void updateCasterSceneConfigAsync(const Model::UpdateCasterSceneConfigRequest& request, const UpdateCasterSceneConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateCasterSceneConfigOutcomeCallable updateCasterSceneConfigCallable(const Model::UpdateCasterSceneConfigRequest& request) const;
UpdateCustomLiveStreamTranscodeOutcome updateCustomLiveStreamTranscode(const Model::UpdateCustomLiveStreamTranscodeRequest &request)const;
void updateCustomLiveStreamTranscodeAsync(const Model::UpdateCustomLiveStreamTranscodeRequest& request, const UpdateCustomLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateCustomLiveStreamTranscodeOutcomeCallable updateCustomLiveStreamTranscodeCallable(const Model::UpdateCustomLiveStreamTranscodeRequest& request) const;
UpdateEdgeTranscodeJobOutcome updateEdgeTranscodeJob(const Model::UpdateEdgeTranscodeJobRequest &request)const;
void updateEdgeTranscodeJobAsync(const Model::UpdateEdgeTranscodeJobRequest& request, const UpdateEdgeTranscodeJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateEdgeTranscodeJobOutcomeCallable updateEdgeTranscodeJobCallable(const Model::UpdateEdgeTranscodeJobRequest& request) const;
@@ -3175,6 +3201,9 @@ namespace AlibabaCloud
UpdateLiveStreamMonitorOutcome updateLiveStreamMonitor(const Model::UpdateLiveStreamMonitorRequest &request)const;
void updateLiveStreamMonitorAsync(const Model::UpdateLiveStreamMonitorRequest& request, const UpdateLiveStreamMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateLiveStreamMonitorOutcomeCallable updateLiveStreamMonitorCallable(const Model::UpdateLiveStreamMonitorRequest& request) const;
UpdateLiveStreamTranscodeOutcome updateLiveStreamTranscode(const Model::UpdateLiveStreamTranscodeRequest &request)const;
void updateLiveStreamTranscodeAsync(const Model::UpdateLiveStreamTranscodeRequest& request, const UpdateLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateLiveStreamTranscodeOutcomeCallable updateLiveStreamTranscodeCallable(const Model::UpdateLiveStreamTranscodeRequest& request) const;
UpdateLiveStreamWatermarkOutcome updateLiveStreamWatermark(const Model::UpdateLiveStreamWatermarkRequest &request)const;
void updateLiveStreamWatermarkAsync(const Model::UpdateLiveStreamWatermarkRequest& request, const UpdateLiveStreamWatermarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateLiveStreamWatermarkOutcomeCallable updateLiveStreamWatermarkCallable(const Model::UpdateLiveStreamWatermarkRequest& request) const;
@@ -3193,6 +3222,9 @@ namespace AlibabaCloud
UpdateRtcMPUEventSubOutcome updateRtcMPUEventSub(const Model::UpdateRtcMPUEventSubRequest &request)const;
void updateRtcMPUEventSubAsync(const Model::UpdateRtcMPUEventSubRequest& request, const UpdateRtcMPUEventSubAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateRtcMPUEventSubOutcomeCallable updateRtcMPUEventSubCallable(const Model::UpdateRtcMPUEventSubRequest& request) const;
UpdateRtsLiveStreamTranscodeOutcome updateRtsLiveStreamTranscode(const Model::UpdateRtsLiveStreamTranscodeRequest &request)const;
void updateRtsLiveStreamTranscodeAsync(const Model::UpdateRtsLiveStreamTranscodeRequest& request, const UpdateRtsLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateRtsLiveStreamTranscodeOutcomeCallable updateRtsLiveStreamTranscodeCallable(const Model::UpdateRtsLiveStreamTranscodeRequest& request) const;
VerifyLiveDomainOwnerOutcome verifyLiveDomainOwner(const Model::VerifyLiveDomainOwnerRequest &request)const;
void verifyLiveDomainOwnerAsync(const Model::VerifyLiveDomainOwnerRequest& request, const VerifyLiveDomainOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
VerifyLiveDomainOwnerOutcomeCallable verifyLiveDomainOwnerCallable(const Model::VerifyLiveDomainOwnerRequest& request) const;

View File

@@ -30,6 +30,8 @@ class ALIBABACLOUD_LIVE_EXPORT AddLiveDomainRequest : public RpcServiceRequest {
public:
AddLiveDomainRequest();
~AddLiveDomainRequest();
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getSecurityToken() const;
void setSecurityToken(const std::string &securityToken);
std::string getScope() const;
@@ -50,6 +52,7 @@ public:
void setLiveDomainType(const std::string &liveDomainType);
private:
std::string resourceGroupId_;
std::string securityToken_;
std::string scope_;
std::string topLevelDomain_;

View File

@@ -35,17 +35,18 @@ namespace AlibabaCloud
struct DomainDetail
{
std::string description;
std::string scope;
std::string resourceGroupId;
std::string domainName;
std::string liveDomainType;
std::string sSLPub;
std::string gmtModified;
std::string region;
std::string certName;
std::string gmtCreated;
std::string cname;
std::string domainStatus;
std::string sSLProtocol;
std::string scope;
std::string liveDomainType;
std::string region;
std::string certName;
std::string domainStatus;
};

View File

@@ -36,6 +36,8 @@ public:
~DescribeLiveUserDomainsRequest();
int getPageNumber() const;
void setPageNumber(int pageNumber);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getSecurityToken() const;
void setSecurityToken(const std::string &securityToken);
int getPageSize() const;
@@ -57,6 +59,7 @@ public:
private:
int pageNumber_;
std::string resourceGroupId_;
std::string securityToken_;
int pageSize_;
std::string regionName_;

View File

@@ -36,6 +36,7 @@ namespace AlibabaCloud
{
std::string description;
std::string liveDomainStatus;
std::string resourceGroupId;
std::string domainName;
std::string liveDomainType;
std::string regionName;

View File

@@ -29,6 +29,8 @@ namespace Model {
class ALIBABACLOUD_LIVE_EXPORT StartLiveMPUTaskRequest : public RpcServiceRequest {
public:
struct SingleSubParams {
std::string string;
std::vector<std::string> mixAudioUserIds;
std::string streamType;
std::string sourceType;
std::string userId;

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_UPDATECASTERRESOURCEGROUPREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_UPDATECASTERRESOURCEGROUPREQUEST_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 UpdateCasterResourceGroupRequest : public RpcServiceRequest {
public:
UpdateCasterResourceGroupRequest();
~UpdateCasterResourceGroupRequest();
std::string getCasterId() const;
void setCasterId(const std::string &casterId);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getNewResourceGroupId() const;
void setNewResourceGroupId(const std::string &newResourceGroupId);
private:
std::string casterId_;
long ownerId_;
std::string newResourceGroupId_;
};
} // namespace Model
} // namespace Live
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATECASTERRESOURCEGROUPREQUEST_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_UPDATECASTERRESOURCEGROUPRESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_UPDATECASTERRESOURCEGROUPRESULT_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 UpdateCasterResourceGroupResult : public ServiceResult
{
public:
UpdateCasterResourceGroupResult();
explicit UpdateCasterResourceGroupResult(const std::string &payload);
~UpdateCasterResourceGroupResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATECASTERRESOURCEGROUPRESULT_H_

View File

@@ -0,0 +1,105 @@
/*
* 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_UPDATECUSTOMLIVESTREAMTRANSCODEREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_UPDATECUSTOMLIVESTREAMTRANSCODEREQUEST_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 UpdateCustomLiveStreamTranscodeRequest : public RpcServiceRequest {
public:
UpdateCustomLiveStreamTranscodeRequest();
~UpdateCustomLiveStreamTranscodeRequest();
std::string get_Template() const;
void set_Template(const std::string &_template);
std::string getResWithSource() const;
void setResWithSource(const std::string &resWithSource);
std::string getLazy() const;
void setLazy(const std::string &lazy);
std::string getGop() const;
void setGop(const std::string &gop);
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);
std::string getEncryptParameters() const;
void setEncryptParameters(const std::string &encryptParameters);
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);
std::string getExtWithSource() const;
void setExtWithSource(const std::string &extWithSource);
std::string getBitrateWithSource() const;
void setBitrateWithSource(const std::string &bitrateWithSource);
int getAudioRate() const;
void setAudioRate(int audioRate);
std::string getFpsWithSource() const;
void setFpsWithSource(const std::string &fpsWithSource);
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_;
std::string resWithSource_;
std::string lazy_;
std::string gop_;
std::string audioCodec_;
std::string templateType_;
std::string audioProfile_;
int height_;
std::string app_;
std::string encryptParameters_;
int audioChannelNum_;
int profile_;
int fPS_;
long ownerId_;
std::string extWithSource_;
std::string bitrateWithSource_;
int audioRate_;
std::string fpsWithSource_;
int audioBitrate_;
std::string domain_;
int width_;
int videoBitrate_;
};
} // namespace Model
} // namespace Live
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATECUSTOMLIVESTREAMTRANSCODEREQUEST_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_UPDATECUSTOMLIVESTREAMTRANSCODERESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_UPDATECUSTOMLIVESTREAMTRANSCODERESULT_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 UpdateCustomLiveStreamTranscodeResult : public ServiceResult
{
public:
UpdateCustomLiveStreamTranscodeResult();
explicit UpdateCustomLiveStreamTranscodeResult(const std::string &payload);
~UpdateCustomLiveStreamTranscodeResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATECUSTOMLIVESTREAMTRANSCODERESULT_H_

View File

@@ -32,6 +32,8 @@ public:
std::string uRL;
};
struct SingleSubParams {
std::string string;
std::vector<std::string> mixAudioUserIds;
std::string streamType;
std::string sourceType;
std::string userId;

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_LIVE_MODEL_UPDATELIVESTREAMTRANSCODEREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_UPDATELIVESTREAMTRANSCODEREQUEST_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 UpdateLiveStreamTranscodeRequest : public RpcServiceRequest {
public:
UpdateLiveStreamTranscodeRequest();
~UpdateLiveStreamTranscodeRequest();
std::string get_Template() const;
void set_Template(const std::string &_template);
std::string getLazy() const;
void setLazy(const std::string &lazy);
std::string getMix() const;
void setMix(const std::string &mix);
std::string getApp() const;
void setApp(const std::string &app);
std::string getEncryptParameters() const;
void setEncryptParameters(const std::string &encryptParameters);
std::string getWatermark() const;
void setWatermark(const std::string &watermark);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getDomain() const;
void setDomain(const std::string &domain);
std::string getWaterPattern() const;
void setWaterPattern(const std::string &waterPattern);
std::string getOnlyAudio() const;
void setOnlyAudio(const std::string &onlyAudio);
private:
std::string _template_;
std::string lazy_;
std::string mix_;
std::string app_;
std::string encryptParameters_;
std::string watermark_;
long ownerId_;
std::string domain_;
std::string waterPattern_;
std::string onlyAudio_;
};
} // namespace Model
} // namespace Live
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATELIVESTREAMTRANSCODEREQUEST_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_UPDATELIVESTREAMTRANSCODERESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_UPDATELIVESTREAMTRANSCODERESULT_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 UpdateLiveStreamTranscodeResult : public ServiceResult
{
public:
UpdateLiveStreamTranscodeResult();
explicit UpdateLiveStreamTranscodeResult(const std::string &payload);
~UpdateLiveStreamTranscodeResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATELIVESTREAMTRANSCODERESULT_H_

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.
*/
#ifndef ALIBABACLOUD_LIVE_MODEL_UPDATERTSLIVESTREAMTRANSCODEREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_UPDATERTSLIVESTREAMTRANSCODEREQUEST_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 UpdateRtsLiveStreamTranscodeRequest : public RpcServiceRequest {
public:
UpdateRtsLiveStreamTranscodeRequest();
~UpdateRtsLiveStreamTranscodeRequest();
std::string get_Template() const;
void set_Template(const std::string &_template);
bool getDeleteBframes() const;
void setDeleteBframes(bool deleteBframes);
std::string getLazy() const;
void setLazy(const std::string &lazy);
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 lazy_;
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_;
};
} // namespace Model
} // namespace Live
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATERTSLIVESTREAMTRANSCODEREQUEST_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_UPDATERTSLIVESTREAMTRANSCODERESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_UPDATERTSLIVESTREAMTRANSCODERESULT_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 UpdateRtsLiveStreamTranscodeResult : public ServiceResult
{
public:
UpdateRtsLiveStreamTranscodeResult();
explicit UpdateRtsLiveStreamTranscodeResult(const std::string &payload);
~UpdateRtsLiveStreamTranscodeResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATERTSLIVESTREAMTRANSCODERESULT_H_

View File

@@ -13263,6 +13263,42 @@ LiveClient::UnbanLiveMessageGroupOutcomeCallable LiveClient::unbanLiveMessageGro
return task->get_future();
}
LiveClient::UpdateCasterResourceGroupOutcome LiveClient::updateCasterResourceGroup(const UpdateCasterResourceGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateCasterResourceGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateCasterResourceGroupOutcome(UpdateCasterResourceGroupResult(outcome.result()));
else
return UpdateCasterResourceGroupOutcome(outcome.error());
}
void LiveClient::updateCasterResourceGroupAsync(const UpdateCasterResourceGroupRequest& request, const UpdateCasterResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateCasterResourceGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::UpdateCasterResourceGroupOutcomeCallable LiveClient::updateCasterResourceGroupCallable(const UpdateCasterResourceGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateCasterResourceGroupOutcome()>>(
[this, request]()
{
return this->updateCasterResourceGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::UpdateCasterSceneAudioOutcome LiveClient::updateCasterSceneAudio(const UpdateCasterSceneAudioRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -13335,6 +13371,42 @@ LiveClient::UpdateCasterSceneConfigOutcomeCallable LiveClient::updateCasterScene
return task->get_future();
}
LiveClient::UpdateCustomLiveStreamTranscodeOutcome LiveClient::updateCustomLiveStreamTranscode(const UpdateCustomLiveStreamTranscodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateCustomLiveStreamTranscodeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateCustomLiveStreamTranscodeOutcome(UpdateCustomLiveStreamTranscodeResult(outcome.result()));
else
return UpdateCustomLiveStreamTranscodeOutcome(outcome.error());
}
void LiveClient::updateCustomLiveStreamTranscodeAsync(const UpdateCustomLiveStreamTranscodeRequest& request, const UpdateCustomLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateCustomLiveStreamTranscode(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::UpdateCustomLiveStreamTranscodeOutcomeCallable LiveClient::updateCustomLiveStreamTranscodeCallable(const UpdateCustomLiveStreamTranscodeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateCustomLiveStreamTranscodeOutcome()>>(
[this, request]()
{
return this->updateCustomLiveStreamTranscode(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::UpdateEdgeTranscodeJobOutcome LiveClient::updateEdgeTranscodeJob(const UpdateEdgeTranscodeJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -14019,6 +14091,42 @@ LiveClient::UpdateLiveStreamMonitorOutcomeCallable LiveClient::updateLiveStreamM
return task->get_future();
}
LiveClient::UpdateLiveStreamTranscodeOutcome LiveClient::updateLiveStreamTranscode(const UpdateLiveStreamTranscodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateLiveStreamTranscodeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateLiveStreamTranscodeOutcome(UpdateLiveStreamTranscodeResult(outcome.result()));
else
return UpdateLiveStreamTranscodeOutcome(outcome.error());
}
void LiveClient::updateLiveStreamTranscodeAsync(const UpdateLiveStreamTranscodeRequest& request, const UpdateLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateLiveStreamTranscode(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::UpdateLiveStreamTranscodeOutcomeCallable LiveClient::updateLiveStreamTranscodeCallable(const UpdateLiveStreamTranscodeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateLiveStreamTranscodeOutcome()>>(
[this, request]()
{
return this->updateLiveStreamTranscode(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::UpdateLiveStreamWatermarkOutcome LiveClient::updateLiveStreamWatermark(const UpdateLiveStreamWatermarkRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -14235,6 +14343,42 @@ LiveClient::UpdateRtcMPUEventSubOutcomeCallable LiveClient::updateRtcMPUEventSub
return task->get_future();
}
LiveClient::UpdateRtsLiveStreamTranscodeOutcome LiveClient::updateRtsLiveStreamTranscode(const UpdateRtsLiveStreamTranscodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateRtsLiveStreamTranscodeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateRtsLiveStreamTranscodeOutcome(UpdateRtsLiveStreamTranscodeResult(outcome.result()));
else
return UpdateRtsLiveStreamTranscodeOutcome(outcome.error());
}
void LiveClient::updateRtsLiveStreamTranscodeAsync(const UpdateRtsLiveStreamTranscodeRequest& request, const UpdateRtsLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateRtsLiveStreamTranscode(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::UpdateRtsLiveStreamTranscodeOutcomeCallable LiveClient::updateRtsLiveStreamTranscodeCallable(const UpdateRtsLiveStreamTranscodeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateRtsLiveStreamTranscodeOutcome()>>(
[this, request]()
{
return this->updateRtsLiveStreamTranscode(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::VerifyLiveDomainOwnerOutcome LiveClient::verifyLiveDomainOwner(const VerifyLiveDomainOwnerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -25,6 +25,15 @@ AddLiveDomainRequest::AddLiveDomainRequest()
AddLiveDomainRequest::~AddLiveDomainRequest() {}
std::string AddLiveDomainRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void AddLiveDomainRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string AddLiveDomainRequest::getSecurityToken() const {
return securityToken_;
}

View File

@@ -64,6 +64,8 @@ void DescribeLiveDomainDetailResult::parse(const std::string &payload)
domainDetail_.sSLPub = domainDetailNode["SSLPub"].asString();
if(!domainDetailNode["Scope"].isNull())
domainDetail_.scope = domainDetailNode["Scope"].asString();
if(!domainDetailNode["ResourceGroupId"].isNull())
domainDetail_.resourceGroupId = domainDetailNode["ResourceGroupId"].asString();
}

View File

@@ -34,6 +34,15 @@ void DescribeLiveUserDomainsRequest::setPageNumber(int pageNumber) {
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string DescribeLiveUserDomainsRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DescribeLiveUserDomainsRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DescribeLiveUserDomainsRequest::getSecurityToken() const {
return securityToken_;
}

View File

@@ -59,6 +59,8 @@ void DescribeLiveUserDomainsResult::parse(const std::string &payload)
domainsObject.liveDomainType = valueDomainsPageData["LiveDomainType"].asString();
if(!valueDomainsPageData["RegionName"].isNull())
domainsObject.regionName = valueDomainsPageData["RegionName"].asString();
if(!valueDomainsPageData["ResourceGroupId"].isNull())
domainsObject.resourceGroupId = valueDomainsPageData["ResourceGroupId"].asString();
domains_.push_back(domainsObject);
}
if(!value["PageNumber"].isNull())

View File

@@ -31,6 +31,9 @@ StartLiveMPUTaskRequest::SingleSubParams StartLiveMPUTaskRequest::getSingleSubPa
void StartLiveMPUTaskRequest::setSingleSubParams(const StartLiveMPUTaskRequest::SingleSubParams &singleSubParams) {
singleSubParams_ = singleSubParams;
for(int dep1 = 0; dep1 != singleSubParams.mixAudioUserIds.size(); dep1++) {
setParameter(std::string("SingleSubParams") + ".MixAudioUserIds." + std::to_string(dep1 + 1), singleSubParams.mixAudioUserIds[dep1]);
}
setParameter(std::string("SingleSubParams") + ".StreamType", singleSubParams.streamType);
setParameter(std::string("SingleSubParams") + ".SourceType", singleSubParams.sourceType);
setParameter(std::string("SingleSubParams") + ".UserId", singleSubParams.userId);

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.
*/
#include <alibabacloud/live/model/UpdateCasterResourceGroupRequest.h>
using AlibabaCloud::Live::Model::UpdateCasterResourceGroupRequest;
UpdateCasterResourceGroupRequest::UpdateCasterResourceGroupRequest()
: RpcServiceRequest("live", "2016-11-01", "UpdateCasterResourceGroup") {
setMethod(HttpRequest::Method::Post);
}
UpdateCasterResourceGroupRequest::~UpdateCasterResourceGroupRequest() {}
std::string UpdateCasterResourceGroupRequest::getCasterId() const {
return casterId_;
}
void UpdateCasterResourceGroupRequest::setCasterId(const std::string &casterId) {
casterId_ = casterId;
setParameter(std::string("CasterId"), casterId);
}
long UpdateCasterResourceGroupRequest::getOwnerId() const {
return ownerId_;
}
void UpdateCasterResourceGroupRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string UpdateCasterResourceGroupRequest::getNewResourceGroupId() const {
return newResourceGroupId_;
}
void UpdateCasterResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) {
newResourceGroupId_ = newResourceGroupId;
setParameter(std::string("NewResourceGroupId"), newResourceGroupId);
}

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

View File

@@ -0,0 +1,225 @@
/*
* 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/UpdateCustomLiveStreamTranscodeRequest.h>
using AlibabaCloud::Live::Model::UpdateCustomLiveStreamTranscodeRequest;
UpdateCustomLiveStreamTranscodeRequest::UpdateCustomLiveStreamTranscodeRequest()
: RpcServiceRequest("live", "2016-11-01", "UpdateCustomLiveStreamTranscode") {
setMethod(HttpRequest::Method::Post);
}
UpdateCustomLiveStreamTranscodeRequest::~UpdateCustomLiveStreamTranscodeRequest() {}
std::string UpdateCustomLiveStreamTranscodeRequest::get_Template() const {
return _template_;
}
void UpdateCustomLiveStreamTranscodeRequest::set_Template(const std::string &_template) {
_template_ = _template;
setParameter(std::string("Template"), _template);
}
std::string UpdateCustomLiveStreamTranscodeRequest::getResWithSource() const {
return resWithSource_;
}
void UpdateCustomLiveStreamTranscodeRequest::setResWithSource(const std::string &resWithSource) {
resWithSource_ = resWithSource;
setParameter(std::string("ResWithSource"), resWithSource);
}
std::string UpdateCustomLiveStreamTranscodeRequest::getLazy() const {
return lazy_;
}
void UpdateCustomLiveStreamTranscodeRequest::setLazy(const std::string &lazy) {
lazy_ = lazy;
setParameter(std::string("Lazy"), lazy);
}
std::string UpdateCustomLiveStreamTranscodeRequest::getGop() const {
return gop_;
}
void UpdateCustomLiveStreamTranscodeRequest::setGop(const std::string &gop) {
gop_ = gop;
setParameter(std::string("Gop"), gop);
}
std::string UpdateCustomLiveStreamTranscodeRequest::getAudioCodec() const {
return audioCodec_;
}
void UpdateCustomLiveStreamTranscodeRequest::setAudioCodec(const std::string &audioCodec) {
audioCodec_ = audioCodec;
setParameter(std::string("AudioCodec"), audioCodec);
}
std::string UpdateCustomLiveStreamTranscodeRequest::getTemplateType() const {
return templateType_;
}
void UpdateCustomLiveStreamTranscodeRequest::setTemplateType(const std::string &templateType) {
templateType_ = templateType;
setParameter(std::string("TemplateType"), templateType);
}
std::string UpdateCustomLiveStreamTranscodeRequest::getAudioProfile() const {
return audioProfile_;
}
void UpdateCustomLiveStreamTranscodeRequest::setAudioProfile(const std::string &audioProfile) {
audioProfile_ = audioProfile;
setParameter(std::string("AudioProfile"), audioProfile);
}
int UpdateCustomLiveStreamTranscodeRequest::getHeight() const {
return height_;
}
void UpdateCustomLiveStreamTranscodeRequest::setHeight(int height) {
height_ = height;
setParameter(std::string("Height"), std::to_string(height));
}
std::string UpdateCustomLiveStreamTranscodeRequest::getApp() const {
return app_;
}
void UpdateCustomLiveStreamTranscodeRequest::setApp(const std::string &app) {
app_ = app;
setParameter(std::string("App"), app);
}
std::string UpdateCustomLiveStreamTranscodeRequest::getEncryptParameters() const {
return encryptParameters_;
}
void UpdateCustomLiveStreamTranscodeRequest::setEncryptParameters(const std::string &encryptParameters) {
encryptParameters_ = encryptParameters;
setParameter(std::string("EncryptParameters"), encryptParameters);
}
int UpdateCustomLiveStreamTranscodeRequest::getAudioChannelNum() const {
return audioChannelNum_;
}
void UpdateCustomLiveStreamTranscodeRequest::setAudioChannelNum(int audioChannelNum) {
audioChannelNum_ = audioChannelNum;
setParameter(std::string("AudioChannelNum"), std::to_string(audioChannelNum));
}
int UpdateCustomLiveStreamTranscodeRequest::getProfile() const {
return profile_;
}
void UpdateCustomLiveStreamTranscodeRequest::setProfile(int profile) {
profile_ = profile;
setParameter(std::string("Profile"), std::to_string(profile));
}
int UpdateCustomLiveStreamTranscodeRequest::getFPS() const {
return fPS_;
}
void UpdateCustomLiveStreamTranscodeRequest::setFPS(int fPS) {
fPS_ = fPS;
setParameter(std::string("FPS"), std::to_string(fPS));
}
long UpdateCustomLiveStreamTranscodeRequest::getOwnerId() const {
return ownerId_;
}
void UpdateCustomLiveStreamTranscodeRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string UpdateCustomLiveStreamTranscodeRequest::getExtWithSource() const {
return extWithSource_;
}
void UpdateCustomLiveStreamTranscodeRequest::setExtWithSource(const std::string &extWithSource) {
extWithSource_ = extWithSource;
setParameter(std::string("ExtWithSource"), extWithSource);
}
std::string UpdateCustomLiveStreamTranscodeRequest::getBitrateWithSource() const {
return bitrateWithSource_;
}
void UpdateCustomLiveStreamTranscodeRequest::setBitrateWithSource(const std::string &bitrateWithSource) {
bitrateWithSource_ = bitrateWithSource;
setParameter(std::string("BitrateWithSource"), bitrateWithSource);
}
int UpdateCustomLiveStreamTranscodeRequest::getAudioRate() const {
return audioRate_;
}
void UpdateCustomLiveStreamTranscodeRequest::setAudioRate(int audioRate) {
audioRate_ = audioRate;
setParameter(std::string("AudioRate"), std::to_string(audioRate));
}
std::string UpdateCustomLiveStreamTranscodeRequest::getFpsWithSource() const {
return fpsWithSource_;
}
void UpdateCustomLiveStreamTranscodeRequest::setFpsWithSource(const std::string &fpsWithSource) {
fpsWithSource_ = fpsWithSource;
setParameter(std::string("FpsWithSource"), fpsWithSource);
}
int UpdateCustomLiveStreamTranscodeRequest::getAudioBitrate() const {
return audioBitrate_;
}
void UpdateCustomLiveStreamTranscodeRequest::setAudioBitrate(int audioBitrate) {
audioBitrate_ = audioBitrate;
setParameter(std::string("AudioBitrate"), std::to_string(audioBitrate));
}
std::string UpdateCustomLiveStreamTranscodeRequest::getDomain() const {
return domain_;
}
void UpdateCustomLiveStreamTranscodeRequest::setDomain(const std::string &domain) {
domain_ = domain;
setParameter(std::string("Domain"), domain);
}
int UpdateCustomLiveStreamTranscodeRequest::getWidth() const {
return width_;
}
void UpdateCustomLiveStreamTranscodeRequest::setWidth(int width) {
width_ = width;
setParameter(std::string("Width"), std::to_string(width));
}
int UpdateCustomLiveStreamTranscodeRequest::getVideoBitrate() const {
return videoBitrate_;
}
void UpdateCustomLiveStreamTranscodeRequest::setVideoBitrate(int videoBitrate) {
videoBitrate_ = videoBitrate;
setParameter(std::string("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/UpdateCustomLiveStreamTranscodeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
UpdateCustomLiveStreamTranscodeResult::UpdateCustomLiveStreamTranscodeResult() :
ServiceResult()
{}
UpdateCustomLiveStreamTranscodeResult::UpdateCustomLiveStreamTranscodeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateCustomLiveStreamTranscodeResult::~UpdateCustomLiveStreamTranscodeResult()
{}
void UpdateCustomLiveStreamTranscodeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -42,6 +42,9 @@ UpdateLiveMPUTaskRequest::SingleSubParams UpdateLiveMPUTaskRequest::getSingleSub
void UpdateLiveMPUTaskRequest::setSingleSubParams(const UpdateLiveMPUTaskRequest::SingleSubParams &singleSubParams) {
singleSubParams_ = singleSubParams;
for(int dep1 = 0; dep1 != singleSubParams.mixAudioUserIds.size(); dep1++) {
setParameter(std::string("SingleSubParams") + ".MixAudioUserIds." + std::to_string(dep1 + 1), singleSubParams.mixAudioUserIds[dep1]);
}
setParameter(std::string("SingleSubParams") + ".StreamType", singleSubParams.streamType);
setParameter(std::string("SingleSubParams") + ".SourceType", singleSubParams.sourceType);
setParameter(std::string("SingleSubParams") + ".UserId", singleSubParams.userId);

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/UpdateLiveStreamTranscodeRequest.h>
using AlibabaCloud::Live::Model::UpdateLiveStreamTranscodeRequest;
UpdateLiveStreamTranscodeRequest::UpdateLiveStreamTranscodeRequest()
: RpcServiceRequest("live", "2016-11-01", "UpdateLiveStreamTranscode") {
setMethod(HttpRequest::Method::Post);
}
UpdateLiveStreamTranscodeRequest::~UpdateLiveStreamTranscodeRequest() {}
std::string UpdateLiveStreamTranscodeRequest::get_Template() const {
return _template_;
}
void UpdateLiveStreamTranscodeRequest::set_Template(const std::string &_template) {
_template_ = _template;
setParameter(std::string("Template"), _template);
}
std::string UpdateLiveStreamTranscodeRequest::getLazy() const {
return lazy_;
}
void UpdateLiveStreamTranscodeRequest::setLazy(const std::string &lazy) {
lazy_ = lazy;
setParameter(std::string("Lazy"), lazy);
}
std::string UpdateLiveStreamTranscodeRequest::getMix() const {
return mix_;
}
void UpdateLiveStreamTranscodeRequest::setMix(const std::string &mix) {
mix_ = mix;
setParameter(std::string("Mix"), mix);
}
std::string UpdateLiveStreamTranscodeRequest::getApp() const {
return app_;
}
void UpdateLiveStreamTranscodeRequest::setApp(const std::string &app) {
app_ = app;
setParameter(std::string("App"), app);
}
std::string UpdateLiveStreamTranscodeRequest::getEncryptParameters() const {
return encryptParameters_;
}
void UpdateLiveStreamTranscodeRequest::setEncryptParameters(const std::string &encryptParameters) {
encryptParameters_ = encryptParameters;
setParameter(std::string("EncryptParameters"), encryptParameters);
}
std::string UpdateLiveStreamTranscodeRequest::getWatermark() const {
return watermark_;
}
void UpdateLiveStreamTranscodeRequest::setWatermark(const std::string &watermark) {
watermark_ = watermark;
setParameter(std::string("Watermark"), watermark);
}
long UpdateLiveStreamTranscodeRequest::getOwnerId() const {
return ownerId_;
}
void UpdateLiveStreamTranscodeRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string UpdateLiveStreamTranscodeRequest::getDomain() const {
return domain_;
}
void UpdateLiveStreamTranscodeRequest::setDomain(const std::string &domain) {
domain_ = domain;
setParameter(std::string("Domain"), domain);
}
std::string UpdateLiveStreamTranscodeRequest::getWaterPattern() const {
return waterPattern_;
}
void UpdateLiveStreamTranscodeRequest::setWaterPattern(const std::string &waterPattern) {
waterPattern_ = waterPattern;
setParameter(std::string("WaterPattern"), waterPattern);
}
std::string UpdateLiveStreamTranscodeRequest::getOnlyAudio() const {
return onlyAudio_;
}
void UpdateLiveStreamTranscodeRequest::setOnlyAudio(const std::string &onlyAudio) {
onlyAudio_ = onlyAudio;
setParameter(std::string("OnlyAudio"), onlyAudio);
}

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

View File

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