diff --git a/VERSION b/VERSION index 9a6f6925b..eef687b65 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1989 \ No newline at end of file +1.36.1990 \ No newline at end of file diff --git a/live/CMakeLists.txt b/live/CMakeLists.txt index a42950e0f..713611b75 100644 --- a/live/CMakeLists.txt +++ b/live/CMakeLists.txt @@ -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 ) diff --git a/live/include/alibabacloud/live/LiveClient.h b/live/include/alibabacloud/live/LiveClient.h index c816c4e32..1b9be2b45 100644 --- a/live/include/alibabacloud/live/LiveClient.h +++ b/live/include/alibabacloud/live/LiveClient.h @@ -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 UnbanLiveMessageGroupOutcome; typedef std::future UnbanLiveMessageGroupOutcomeCallable; typedef std::function&)> UnbanLiveMessageGroupAsyncHandler; + typedef Outcome UpdateCasterResourceGroupOutcome; + typedef std::future UpdateCasterResourceGroupOutcomeCallable; + typedef std::function&)> UpdateCasterResourceGroupAsyncHandler; typedef Outcome UpdateCasterSceneAudioOutcome; typedef std::future UpdateCasterSceneAudioOutcomeCallable; typedef std::function&)> UpdateCasterSceneAudioAsyncHandler; typedef Outcome UpdateCasterSceneConfigOutcome; typedef std::future UpdateCasterSceneConfigOutcomeCallable; typedef std::function&)> UpdateCasterSceneConfigAsyncHandler; + typedef Outcome UpdateCustomLiveStreamTranscodeOutcome; + typedef std::future UpdateCustomLiveStreamTranscodeOutcomeCallable; + typedef std::function&)> UpdateCustomLiveStreamTranscodeAsyncHandler; typedef Outcome UpdateEdgeTranscodeJobOutcome; typedef std::future UpdateEdgeTranscodeJobOutcomeCallable; typedef std::function&)> UpdateEdgeTranscodeJobAsyncHandler; @@ -1985,6 +1999,9 @@ namespace AlibabaCloud typedef Outcome UpdateLiveStreamMonitorOutcome; typedef std::future UpdateLiveStreamMonitorOutcomeCallable; typedef std::function&)> UpdateLiveStreamMonitorAsyncHandler; + typedef Outcome UpdateLiveStreamTranscodeOutcome; + typedef std::future UpdateLiveStreamTranscodeOutcomeCallable; + typedef std::function&)> UpdateLiveStreamTranscodeAsyncHandler; typedef Outcome UpdateLiveStreamWatermarkOutcome; typedef std::future UpdateLiveStreamWatermarkOutcomeCallable; typedef std::function&)> UpdateLiveStreamWatermarkAsyncHandler; @@ -2003,6 +2020,9 @@ namespace AlibabaCloud typedef Outcome UpdateRtcMPUEventSubOutcome; typedef std::future UpdateRtcMPUEventSubOutcomeCallable; typedef std::function&)> UpdateRtcMPUEventSubAsyncHandler; + typedef Outcome UpdateRtsLiveStreamTranscodeOutcome; + typedef std::future UpdateRtsLiveStreamTranscodeOutcomeCallable; + typedef std::function&)> UpdateRtsLiveStreamTranscodeAsyncHandler; typedef Outcome VerifyLiveDomainOwnerOutcome; typedef std::future VerifyLiveDomainOwnerOutcomeCallable; typedef std::function&)> 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& context = nullptr) const; VerifyLiveDomainOwnerOutcomeCallable verifyLiveDomainOwnerCallable(const Model::VerifyLiveDomainOwnerRequest& request) const; diff --git a/live/include/alibabacloud/live/model/AddLiveDomainRequest.h b/live/include/alibabacloud/live/model/AddLiveDomainRequest.h index f26a1063f..1221d3c58 100644 --- a/live/include/alibabacloud/live/model/AddLiveDomainRequest.h +++ b/live/include/alibabacloud/live/model/AddLiveDomainRequest.h @@ -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_; diff --git a/live/include/alibabacloud/live/model/DescribeLiveDomainDetailResult.h b/live/include/alibabacloud/live/model/DescribeLiveDomainDetailResult.h index 892074915..a48a09a93 100644 --- a/live/include/alibabacloud/live/model/DescribeLiveDomainDetailResult.h +++ b/live/include/alibabacloud/live/model/DescribeLiveDomainDetailResult.h @@ -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; }; diff --git a/live/include/alibabacloud/live/model/DescribeLiveUserDomainsRequest.h b/live/include/alibabacloud/live/model/DescribeLiveUserDomainsRequest.h index 5b459a12a..d63686b96 100644 --- a/live/include/alibabacloud/live/model/DescribeLiveUserDomainsRequest.h +++ b/live/include/alibabacloud/live/model/DescribeLiveUserDomainsRequest.h @@ -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_; diff --git a/live/include/alibabacloud/live/model/DescribeLiveUserDomainsResult.h b/live/include/alibabacloud/live/model/DescribeLiveUserDomainsResult.h index a0795e85d..18baeec3e 100644 --- a/live/include/alibabacloud/live/model/DescribeLiveUserDomainsResult.h +++ b/live/include/alibabacloud/live/model/DescribeLiveUserDomainsResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string description; std::string liveDomainStatus; + std::string resourceGroupId; std::string domainName; std::string liveDomainType; std::string regionName; diff --git a/live/include/alibabacloud/live/model/StartLiveMPUTaskRequest.h b/live/include/alibabacloud/live/model/StartLiveMPUTaskRequest.h index f0c27de9f..173fdfa34 100644 --- a/live/include/alibabacloud/live/model/StartLiveMPUTaskRequest.h +++ b/live/include/alibabacloud/live/model/StartLiveMPUTaskRequest.h @@ -29,6 +29,8 @@ namespace Model { class ALIBABACLOUD_LIVE_EXPORT StartLiveMPUTaskRequest : public RpcServiceRequest { public: struct SingleSubParams { + std::string string; + std::vector mixAudioUserIds; std::string streamType; std::string sourceType; std::string userId; diff --git a/live/include/alibabacloud/live/model/UpdateCasterResourceGroupRequest.h b/live/include/alibabacloud/live/model/UpdateCasterResourceGroupRequest.h new file mode 100644 index 000000000..4f59a82a6 --- /dev/null +++ b/live/include/alibabacloud/live/model/UpdateCasterResourceGroupRequest.h @@ -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 +#include +#include +#include +#include + +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_ diff --git a/live/include/alibabacloud/live/model/UpdateCasterResourceGroupResult.h b/live/include/alibabacloud/live/model/UpdateCasterResourceGroupResult.h new file mode 100644 index 000000000..a3d4a7072 --- /dev/null +++ b/live/include/alibabacloud/live/model/UpdateCasterResourceGroupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_UPDATECASTERRESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_UPDATECASTERRESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/UpdateCustomLiveStreamTranscodeRequest.h b/live/include/alibabacloud/live/model/UpdateCustomLiveStreamTranscodeRequest.h new file mode 100644 index 000000000..d3f3cc50e --- /dev/null +++ b/live/include/alibabacloud/live/model/UpdateCustomLiveStreamTranscodeRequest.h @@ -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 +#include +#include +#include +#include + +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_ diff --git a/live/include/alibabacloud/live/model/UpdateCustomLiveStreamTranscodeResult.h b/live/include/alibabacloud/live/model/UpdateCustomLiveStreamTranscodeResult.h new file mode 100644 index 000000000..261ccdd91 --- /dev/null +++ b/live/include/alibabacloud/live/model/UpdateCustomLiveStreamTranscodeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_UPDATECUSTOMLIVESTREAMTRANSCODERESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_UPDATECUSTOMLIVESTREAMTRANSCODERESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/UpdateLiveMPUTaskRequest.h b/live/include/alibabacloud/live/model/UpdateLiveMPUTaskRequest.h index 71c721f51..069f265f2 100644 --- a/live/include/alibabacloud/live/model/UpdateLiveMPUTaskRequest.h +++ b/live/include/alibabacloud/live/model/UpdateLiveMPUTaskRequest.h @@ -32,6 +32,8 @@ public: std::string uRL; }; struct SingleSubParams { + std::string string; + std::vector mixAudioUserIds; std::string streamType; std::string sourceType; std::string userId; diff --git a/live/include/alibabacloud/live/model/UpdateLiveStreamTranscodeRequest.h b/live/include/alibabacloud/live/model/UpdateLiveStreamTranscodeRequest.h new file mode 100644 index 000000000..acc4d62cf --- /dev/null +++ b/live/include/alibabacloud/live/model/UpdateLiveStreamTranscodeRequest.h @@ -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 +#include +#include +#include +#include + +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_ diff --git a/live/include/alibabacloud/live/model/UpdateLiveStreamTranscodeResult.h b/live/include/alibabacloud/live/model/UpdateLiveStreamTranscodeResult.h new file mode 100644 index 000000000..1da800d09 --- /dev/null +++ b/live/include/alibabacloud/live/model/UpdateLiveStreamTranscodeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_UPDATELIVESTREAMTRANSCODERESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_UPDATELIVESTREAMTRANSCODERESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/UpdateRtsLiveStreamTranscodeRequest.h b/live/include/alibabacloud/live/model/UpdateRtsLiveStreamTranscodeRequest.h new file mode 100644 index 000000000..aea7b40a8 --- /dev/null +++ b/live/include/alibabacloud/live/model/UpdateRtsLiveStreamTranscodeRequest.h @@ -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 +#include +#include +#include +#include + +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_ diff --git a/live/include/alibabacloud/live/model/UpdateRtsLiveStreamTranscodeResult.h b/live/include/alibabacloud/live/model/UpdateRtsLiveStreamTranscodeResult.h new file mode 100644 index 000000000..9b2994218 --- /dev/null +++ b/live/include/alibabacloud/live/model/UpdateRtsLiveStreamTranscodeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_UPDATERTSLIVESTREAMTRANSCODERESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_UPDATERTSLIVESTREAMTRANSCODERESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/live/src/LiveClient.cc b/live/src/LiveClient.cc index 81e59f677..a278a4843 100644 --- a/live/src/LiveClient.cc +++ b/live/src/LiveClient.cc @@ -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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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(); diff --git a/live/src/model/AddLiveDomainRequest.cc b/live/src/model/AddLiveDomainRequest.cc index 873e22c90..eee77a234 100644 --- a/live/src/model/AddLiveDomainRequest.cc +++ b/live/src/model/AddLiveDomainRequest.cc @@ -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_; } diff --git a/live/src/model/DescribeLiveDomainDetailResult.cc b/live/src/model/DescribeLiveDomainDetailResult.cc index 451e3e2f7..c905a9037 100644 --- a/live/src/model/DescribeLiveDomainDetailResult.cc +++ b/live/src/model/DescribeLiveDomainDetailResult.cc @@ -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(); } diff --git a/live/src/model/DescribeLiveUserDomainsRequest.cc b/live/src/model/DescribeLiveUserDomainsRequest.cc index 784ad49bf..373e3b252 100644 --- a/live/src/model/DescribeLiveUserDomainsRequest.cc +++ b/live/src/model/DescribeLiveUserDomainsRequest.cc @@ -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_; } diff --git a/live/src/model/DescribeLiveUserDomainsResult.cc b/live/src/model/DescribeLiveUserDomainsResult.cc index 3bb95498f..731a552c3 100644 --- a/live/src/model/DescribeLiveUserDomainsResult.cc +++ b/live/src/model/DescribeLiveUserDomainsResult.cc @@ -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()) diff --git a/live/src/model/StartLiveMPUTaskRequest.cc b/live/src/model/StartLiveMPUTaskRequest.cc index 5e2d945f4..589e9b0d8 100644 --- a/live/src/model/StartLiveMPUTaskRequest.cc +++ b/live/src/model/StartLiveMPUTaskRequest.cc @@ -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); diff --git a/live/src/model/UpdateCasterResourceGroupRequest.cc b/live/src/model/UpdateCasterResourceGroupRequest.cc new file mode 100644 index 000000000..0cd4c768f --- /dev/null +++ b/live/src/model/UpdateCasterResourceGroupRequest.cc @@ -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 + +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); +} + diff --git a/live/src/model/UpdateCasterResourceGroupResult.cc b/live/src/model/UpdateCasterResourceGroupResult.cc new file mode 100644 index 000000000..5569f6e71 --- /dev/null +++ b/live/src/model/UpdateCasterResourceGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +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()); + +} + diff --git a/live/src/model/UpdateCustomLiveStreamTranscodeRequest.cc b/live/src/model/UpdateCustomLiveStreamTranscodeRequest.cc new file mode 100644 index 000000000..fa300dc67 --- /dev/null +++ b/live/src/model/UpdateCustomLiveStreamTranscodeRequest.cc @@ -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 + +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)); +} + diff --git a/live/src/model/UpdateCustomLiveStreamTranscodeResult.cc b/live/src/model/UpdateCustomLiveStreamTranscodeResult.cc new file mode 100644 index 000000000..eeadc9e83 --- /dev/null +++ b/live/src/model/UpdateCustomLiveStreamTranscodeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +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()); + +} + diff --git a/live/src/model/UpdateLiveMPUTaskRequest.cc b/live/src/model/UpdateLiveMPUTaskRequest.cc index d1d0c6efd..b62c9fe92 100644 --- a/live/src/model/UpdateLiveMPUTaskRequest.cc +++ b/live/src/model/UpdateLiveMPUTaskRequest.cc @@ -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); diff --git a/live/src/model/UpdateLiveStreamTranscodeRequest.cc b/live/src/model/UpdateLiveStreamTranscodeRequest.cc new file mode 100644 index 000000000..18e112a3e --- /dev/null +++ b/live/src/model/UpdateLiveStreamTranscodeRequest.cc @@ -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 + +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); +} + diff --git a/live/src/model/UpdateLiveStreamTranscodeResult.cc b/live/src/model/UpdateLiveStreamTranscodeResult.cc new file mode 100644 index 000000000..6d91ed475 --- /dev/null +++ b/live/src/model/UpdateLiveStreamTranscodeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +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()); + +} + diff --git a/live/src/model/UpdateRtsLiveStreamTranscodeRequest.cc b/live/src/model/UpdateRtsLiveStreamTranscodeRequest.cc new file mode 100644 index 000000000..b451b821c --- /dev/null +++ b/live/src/model/UpdateRtsLiveStreamTranscodeRequest.cc @@ -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 + +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)); +} + diff --git a/live/src/model/UpdateRtsLiveStreamTranscodeResult.cc b/live/src/model/UpdateRtsLiveStreamTranscodeResult.cc new file mode 100644 index 000000000..7897e8562 --- /dev/null +++ b/live/src/model/UpdateRtsLiveStreamTranscodeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +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()); + +} +