diff --git a/CHANGELOG b/CHANGELOG index 1091b9eaf..e41b18039 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-10-13 Version: patch +- Generated 2016-11-01 for `live`. + 2020-10-13 Version: patch - Generated 2018-01-11 for `rtc`. diff --git a/live/CMakeLists.txt b/live/CMakeLists.txt index f8efdf510..46569490e 100644 --- a/live/CMakeLists.txt +++ b/live/CMakeLists.txt @@ -37,6 +37,8 @@ set(live_public_header_model include/alibabacloud/live/model/AddCasterVideoResourceResult.h include/alibabacloud/live/model/AddCustomLiveStreamTranscodeRequest.h include/alibabacloud/live/model/AddCustomLiveStreamTranscodeResult.h + include/alibabacloud/live/model/AddLiveASRConfigRequest.h + include/alibabacloud/live/model/AddLiveASRConfigResult.h include/alibabacloud/live/model/AddLiveAppRecordConfigRequest.h include/alibabacloud/live/model/AddLiveAppRecordConfigResult.h include/alibabacloud/live/model/AddLiveAppSnapshotConfigRequest.h @@ -119,6 +121,8 @@ set(live_public_header_model include/alibabacloud/live/model/DeleteCasterVideoResourceResult.h include/alibabacloud/live/model/DeleteHtmlResourceRequest.h include/alibabacloud/live/model/DeleteHtmlResourceResult.h + include/alibabacloud/live/model/DeleteLiveASRConfigRequest.h + include/alibabacloud/live/model/DeleteLiveASRConfigResult.h include/alibabacloud/live/model/DeleteLiveAppRecordConfigRequest.h include/alibabacloud/live/model/DeleteLiveAppRecordConfigResult.h include/alibabacloud/live/model/DeleteLiveAppSnapshotConfigRequest.h @@ -191,6 +195,8 @@ set(live_public_header_model include/alibabacloud/live/model/DescribeHlsLiveStreamRealTimeBpsDataResult.h include/alibabacloud/live/model/DescribeHtmlResourceRequest.h include/alibabacloud/live/model/DescribeHtmlResourceResult.h + include/alibabacloud/live/model/DescribeLiveAsrConfigRequest.h + include/alibabacloud/live/model/DescribeLiveAsrConfigResult.h include/alibabacloud/live/model/DescribeLiveAudioAuditConfigRequest.h include/alibabacloud/live/model/DescribeLiveAudioAuditConfigResult.h include/alibabacloud/live/model/DescribeLiveAudioAuditNotifyConfigRequest.h @@ -421,6 +427,8 @@ set(live_public_header_model include/alibabacloud/live/model/UpdateCasterSceneAudioResult.h include/alibabacloud/live/model/UpdateCasterSceneConfigRequest.h include/alibabacloud/live/model/UpdateCasterSceneConfigResult.h + include/alibabacloud/live/model/UpdateLiveASRConfigRequest.h + include/alibabacloud/live/model/UpdateLiveASRConfigResult.h include/alibabacloud/live/model/UpdateLiveAppSnapshotConfigRequest.h include/alibabacloud/live/model/UpdateLiveAppSnapshotConfigResult.h include/alibabacloud/live/model/UpdateLiveAudioAuditConfigRequest.h @@ -456,6 +464,8 @@ set(live_src src/model/AddCasterVideoResourceResult.cc src/model/AddCustomLiveStreamTranscodeRequest.cc src/model/AddCustomLiveStreamTranscodeResult.cc + src/model/AddLiveASRConfigRequest.cc + src/model/AddLiveASRConfigResult.cc src/model/AddLiveAppRecordConfigRequest.cc src/model/AddLiveAppRecordConfigResult.cc src/model/AddLiveAppSnapshotConfigRequest.cc @@ -538,6 +548,8 @@ set(live_src src/model/DeleteCasterVideoResourceResult.cc src/model/DeleteHtmlResourceRequest.cc src/model/DeleteHtmlResourceResult.cc + src/model/DeleteLiveASRConfigRequest.cc + src/model/DeleteLiveASRConfigResult.cc src/model/DeleteLiveAppRecordConfigRequest.cc src/model/DeleteLiveAppRecordConfigResult.cc src/model/DeleteLiveAppSnapshotConfigRequest.cc @@ -610,6 +622,8 @@ set(live_src src/model/DescribeHlsLiveStreamRealTimeBpsDataResult.cc src/model/DescribeHtmlResourceRequest.cc src/model/DescribeHtmlResourceResult.cc + src/model/DescribeLiveAsrConfigRequest.cc + src/model/DescribeLiveAsrConfigResult.cc src/model/DescribeLiveAudioAuditConfigRequest.cc src/model/DescribeLiveAudioAuditConfigResult.cc src/model/DescribeLiveAudioAuditNotifyConfigRequest.cc @@ -840,6 +854,8 @@ set(live_src src/model/UpdateCasterSceneAudioResult.cc src/model/UpdateCasterSceneConfigRequest.cc src/model/UpdateCasterSceneConfigResult.cc + src/model/UpdateLiveASRConfigRequest.cc + src/model/UpdateLiveASRConfigResult.cc src/model/UpdateLiveAppSnapshotConfigRequest.cc src/model/UpdateLiveAppSnapshotConfigResult.cc src/model/UpdateLiveAudioAuditConfigRequest.cc diff --git a/live/include/alibabacloud/live/LiveClient.h b/live/include/alibabacloud/live/LiveClient.h index 7ddc7122a..b98e4c73a 100644 --- a/live/include/alibabacloud/live/LiveClient.h +++ b/live/include/alibabacloud/live/LiveClient.h @@ -38,6 +38,8 @@ #include "model/AddCasterVideoResourceResult.h" #include "model/AddCustomLiveStreamTranscodeRequest.h" #include "model/AddCustomLiveStreamTranscodeResult.h" +#include "model/AddLiveASRConfigRequest.h" +#include "model/AddLiveASRConfigResult.h" #include "model/AddLiveAppRecordConfigRequest.h" #include "model/AddLiveAppRecordConfigResult.h" #include "model/AddLiveAppSnapshotConfigRequest.h" @@ -120,6 +122,8 @@ #include "model/DeleteCasterVideoResourceResult.h" #include "model/DeleteHtmlResourceRequest.h" #include "model/DeleteHtmlResourceResult.h" +#include "model/DeleteLiveASRConfigRequest.h" +#include "model/DeleteLiveASRConfigResult.h" #include "model/DeleteLiveAppRecordConfigRequest.h" #include "model/DeleteLiveAppRecordConfigResult.h" #include "model/DeleteLiveAppSnapshotConfigRequest.h" @@ -192,6 +196,8 @@ #include "model/DescribeHlsLiveStreamRealTimeBpsDataResult.h" #include "model/DescribeHtmlResourceRequest.h" #include "model/DescribeHtmlResourceResult.h" +#include "model/DescribeLiveAsrConfigRequest.h" +#include "model/DescribeLiveAsrConfigResult.h" #include "model/DescribeLiveAudioAuditConfigRequest.h" #include "model/DescribeLiveAudioAuditConfigResult.h" #include "model/DescribeLiveAudioAuditNotifyConfigRequest.h" @@ -422,6 +428,8 @@ #include "model/UpdateCasterSceneAudioResult.h" #include "model/UpdateCasterSceneConfigRequest.h" #include "model/UpdateCasterSceneConfigResult.h" +#include "model/UpdateLiveASRConfigRequest.h" +#include "model/UpdateLiveASRConfigResult.h" #include "model/UpdateLiveAppSnapshotConfigRequest.h" #include "model/UpdateLiveAppSnapshotConfigResult.h" #include "model/UpdateLiveAudioAuditConfigRequest.h" @@ -471,6 +479,9 @@ namespace AlibabaCloud typedef Outcome AddCustomLiveStreamTranscodeOutcome; typedef std::future AddCustomLiveStreamTranscodeOutcomeCallable; typedef std::function&)> AddCustomLiveStreamTranscodeAsyncHandler; + typedef Outcome AddLiveASRConfigOutcome; + typedef std::future AddLiveASRConfigOutcomeCallable; + typedef std::function&)> AddLiveASRConfigAsyncHandler; typedef Outcome AddLiveAppRecordConfigOutcome; typedef std::future AddLiveAppRecordConfigOutcomeCallable; typedef std::function&)> AddLiveAppRecordConfigAsyncHandler; @@ -594,6 +605,9 @@ namespace AlibabaCloud typedef Outcome DeleteHtmlResourceOutcome; typedef std::future DeleteHtmlResourceOutcomeCallable; typedef std::function&)> DeleteHtmlResourceAsyncHandler; + typedef Outcome DeleteLiveASRConfigOutcome; + typedef std::future DeleteLiveASRConfigOutcomeCallable; + typedef std::function&)> DeleteLiveASRConfigAsyncHandler; typedef Outcome DeleteLiveAppRecordConfigOutcome; typedef std::future DeleteLiveAppRecordConfigOutcomeCallable; typedef std::function&)> DeleteLiveAppRecordConfigAsyncHandler; @@ -702,6 +716,9 @@ namespace AlibabaCloud typedef Outcome DescribeHtmlResourceOutcome; typedef std::future DescribeHtmlResourceOutcomeCallable; typedef std::function&)> DescribeHtmlResourceAsyncHandler; + typedef Outcome DescribeLiveAsrConfigOutcome; + typedef std::future DescribeLiveAsrConfigOutcomeCallable; + typedef std::function&)> DescribeLiveAsrConfigAsyncHandler; typedef Outcome DescribeLiveAudioAuditConfigOutcome; typedef std::future DescribeLiveAudioAuditConfigOutcomeCallable; typedef std::function&)> DescribeLiveAudioAuditConfigAsyncHandler; @@ -1047,6 +1064,9 @@ namespace AlibabaCloud typedef Outcome UpdateCasterSceneConfigOutcome; typedef std::future UpdateCasterSceneConfigOutcomeCallable; typedef std::function&)> UpdateCasterSceneConfigAsyncHandler; + typedef Outcome UpdateLiveASRConfigOutcome; + typedef std::future UpdateLiveASRConfigOutcomeCallable; + typedef std::function&)> UpdateLiveASRConfigAsyncHandler; typedef Outcome UpdateLiveAppSnapshotConfigOutcome; typedef std::future UpdateLiveAppSnapshotConfigOutcomeCallable; typedef std::function&)> UpdateLiveAppSnapshotConfigAsyncHandler; @@ -1100,6 +1120,9 @@ namespace AlibabaCloud AddCustomLiveStreamTranscodeOutcome addCustomLiveStreamTranscode(const Model::AddCustomLiveStreamTranscodeRequest &request)const; void addCustomLiveStreamTranscodeAsync(const Model::AddCustomLiveStreamTranscodeRequest& request, const AddCustomLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddCustomLiveStreamTranscodeOutcomeCallable addCustomLiveStreamTranscodeCallable(const Model::AddCustomLiveStreamTranscodeRequest& request) const; + AddLiveASRConfigOutcome addLiveASRConfig(const Model::AddLiveASRConfigRequest &request)const; + void addLiveASRConfigAsync(const Model::AddLiveASRConfigRequest& request, const AddLiveASRConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddLiveASRConfigOutcomeCallable addLiveASRConfigCallable(const Model::AddLiveASRConfigRequest& request) const; AddLiveAppRecordConfigOutcome addLiveAppRecordConfig(const Model::AddLiveAppRecordConfigRequest &request)const; void addLiveAppRecordConfigAsync(const Model::AddLiveAppRecordConfigRequest& request, const AddLiveAppRecordConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddLiveAppRecordConfigOutcomeCallable addLiveAppRecordConfigCallable(const Model::AddLiveAppRecordConfigRequest& request) const; @@ -1223,6 +1246,9 @@ namespace AlibabaCloud DeleteHtmlResourceOutcome deleteHtmlResource(const Model::DeleteHtmlResourceRequest &request)const; void deleteHtmlResourceAsync(const Model::DeleteHtmlResourceRequest& request, const DeleteHtmlResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteHtmlResourceOutcomeCallable deleteHtmlResourceCallable(const Model::DeleteHtmlResourceRequest& request) const; + DeleteLiveASRConfigOutcome deleteLiveASRConfig(const Model::DeleteLiveASRConfigRequest &request)const; + void deleteLiveASRConfigAsync(const Model::DeleteLiveASRConfigRequest& request, const DeleteLiveASRConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLiveASRConfigOutcomeCallable deleteLiveASRConfigCallable(const Model::DeleteLiveASRConfigRequest& request) const; DeleteLiveAppRecordConfigOutcome deleteLiveAppRecordConfig(const Model::DeleteLiveAppRecordConfigRequest &request)const; void deleteLiveAppRecordConfigAsync(const Model::DeleteLiveAppRecordConfigRequest& request, const DeleteLiveAppRecordConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLiveAppRecordConfigOutcomeCallable deleteLiveAppRecordConfigCallable(const Model::DeleteLiveAppRecordConfigRequest& request) const; @@ -1331,6 +1357,9 @@ namespace AlibabaCloud DescribeHtmlResourceOutcome describeHtmlResource(const Model::DescribeHtmlResourceRequest &request)const; void describeHtmlResourceAsync(const Model::DescribeHtmlResourceRequest& request, const DescribeHtmlResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeHtmlResourceOutcomeCallable describeHtmlResourceCallable(const Model::DescribeHtmlResourceRequest& request) const; + DescribeLiveAsrConfigOutcome describeLiveAsrConfig(const Model::DescribeLiveAsrConfigRequest &request)const; + void describeLiveAsrConfigAsync(const Model::DescribeLiveAsrConfigRequest& request, const DescribeLiveAsrConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveAsrConfigOutcomeCallable describeLiveAsrConfigCallable(const Model::DescribeLiveAsrConfigRequest& request) const; DescribeLiveAudioAuditConfigOutcome describeLiveAudioAuditConfig(const Model::DescribeLiveAudioAuditConfigRequest &request)const; void describeLiveAudioAuditConfigAsync(const Model::DescribeLiveAudioAuditConfigRequest& request, const DescribeLiveAudioAuditConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveAudioAuditConfigOutcomeCallable describeLiveAudioAuditConfigCallable(const Model::DescribeLiveAudioAuditConfigRequest& request) const; @@ -1676,6 +1705,9 @@ namespace AlibabaCloud 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; + UpdateLiveASRConfigOutcome updateLiveASRConfig(const Model::UpdateLiveASRConfigRequest &request)const; + void updateLiveASRConfigAsync(const Model::UpdateLiveASRConfigRequest& request, const UpdateLiveASRConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateLiveASRConfigOutcomeCallable updateLiveASRConfigCallable(const Model::UpdateLiveASRConfigRequest& request) const; UpdateLiveAppSnapshotConfigOutcome updateLiveAppSnapshotConfig(const Model::UpdateLiveAppSnapshotConfigRequest &request)const; void updateLiveAppSnapshotConfigAsync(const Model::UpdateLiveAppSnapshotConfigRequest& request, const UpdateLiveAppSnapshotConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateLiveAppSnapshotConfigOutcomeCallable updateLiveAppSnapshotConfigCallable(const Model::UpdateLiveAppSnapshotConfigRequest& request) const; diff --git a/live/include/alibabacloud/live/model/AddLiveASRConfigRequest.h b/live/include/alibabacloud/live/model/AddLiveASRConfigRequest.h new file mode 100644 index 000000000..1c84dd5d9 --- /dev/null +++ b/live/include/alibabacloud/live/model/AddLiveASRConfigRequest.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_ADDLIVEASRCONFIGREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_ADDLIVEASRCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT AddLiveASRConfigRequest : public RpcServiceRequest + { + + public: + AddLiveASRConfigRequest(); + ~AddLiveASRConfigRequest(); + + std::string getAppName()const; + void setAppName(const std::string& appName); + std::string getMnsTopic()const; + void setMnsTopic(const std::string& mnsTopic); + std::string getStreamName()const; + void setStreamName(const std::string& streamName); + int getPeriod()const; + void setPeriod(int period); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getHttpCallbackURL()const; + void setHttpCallbackURL(const std::string& httpCallbackURL); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getMnsRegion()const; + void setMnsRegion(const std::string& mnsRegion); + + private: + std::string appName_; + std::string mnsTopic_; + std::string streamName_; + int period_; + std::string domainName_; + std::string httpCallbackURL_; + long ownerId_; + std::string mnsRegion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_ADDLIVEASRCONFIGREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/AddLiveASRConfigResult.h b/live/include/alibabacloud/live/model/AddLiveASRConfigResult.h new file mode 100644 index 000000000..6aed225ba --- /dev/null +++ b/live/include/alibabacloud/live/model/AddLiveASRConfigResult.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_ADDLIVEASRCONFIGRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_ADDLIVEASRCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT AddLiveASRConfigResult : public ServiceResult + { + public: + + + AddLiveASRConfigResult(); + explicit AddLiveASRConfigResult(const std::string &payload); + ~AddLiveASRConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_ADDLIVEASRCONFIGRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DeleteLiveASRConfigRequest.h b/live/include/alibabacloud/live/model/DeleteLiveASRConfigRequest.h new file mode 100644 index 000000000..dc77b0521 --- /dev/null +++ b/live/include/alibabacloud/live/model/DeleteLiveASRConfigRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DELETELIVEASRCONFIGREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DELETELIVEASRCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DeleteLiveASRConfigRequest : public RpcServiceRequest + { + + public: + DeleteLiveASRConfigRequest(); + ~DeleteLiveASRConfigRequest(); + + std::string getAppName()const; + void setAppName(const std::string& appName); + std::string getStreamName()const; + void setStreamName(const std::string& streamName); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string appName_; + std::string streamName_; + std::string domainName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DELETELIVEASRCONFIGREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DeleteLiveASRConfigResult.h b/live/include/alibabacloud/live/model/DeleteLiveASRConfigResult.h new file mode 100644 index 000000000..e0af9a2d8 --- /dev/null +++ b/live/include/alibabacloud/live/model/DeleteLiveASRConfigResult.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_DELETELIVEASRCONFIGRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DELETELIVEASRCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DeleteLiveASRConfigResult : public ServiceResult + { + public: + + + DeleteLiveASRConfigResult(); + explicit DeleteLiveASRConfigResult(const std::string &payload); + ~DeleteLiveASRConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DELETELIVEASRCONFIGRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveAsrConfigRequest.h b/live/include/alibabacloud/live/model/DescribeLiveAsrConfigRequest.h new file mode 100644 index 000000000..8caad5b48 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveAsrConfigRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEASRCONFIGREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEASRCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveAsrConfigRequest : public RpcServiceRequest + { + + public: + DescribeLiveAsrConfigRequest(); + ~DescribeLiveAsrConfigRequest(); + + std::string getAppName()const; + void setAppName(const std::string& appName); + std::string getStreamName()const; + void setStreamName(const std::string& streamName); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string appName_; + std::string streamName_; + std::string domainName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEASRCONFIGREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveAsrConfigResult.h b/live/include/alibabacloud/live/model/DescribeLiveAsrConfigResult.h new file mode 100644 index 000000000..67b2a7a8a --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveAsrConfigResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEASRCONFIGRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEASRCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveAsrConfigResult : public ServiceResult + { + public: + struct LiveAsrConfigList + { + std::string streamName; + std::string mnsTopic; + std::string httpCallbackURL; + int domainName; + std::string mnsRegion; + int period; + std::string appName; + }; + + + DescribeLiveAsrConfigResult(); + explicit DescribeLiveAsrConfigResult(const std::string &payload); + ~DescribeLiveAsrConfigResult(); + std::vector getLiveAsrConfig()const; + + protected: + void parse(const std::string &payload); + private: + std::vector liveAsrConfig_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEASRCONFIGRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/UpdateLiveASRConfigRequest.h b/live/include/alibabacloud/live/model/UpdateLiveASRConfigRequest.h new file mode 100644 index 000000000..60d7847d9 --- /dev/null +++ b/live/include/alibabacloud/live/model/UpdateLiveASRConfigRequest.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_UPDATELIVEASRCONFIGREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_UPDATELIVEASRCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT UpdateLiveASRConfigRequest : public RpcServiceRequest + { + + public: + UpdateLiveASRConfigRequest(); + ~UpdateLiveASRConfigRequest(); + + std::string getAppName()const; + void setAppName(const std::string& appName); + std::string getMnsTopic()const; + void setMnsTopic(const std::string& mnsTopic); + std::string getStreamName()const; + void setStreamName(const std::string& streamName); + int getPeriod()const; + void setPeriod(int period); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getHttpCallbackURL()const; + void setHttpCallbackURL(const std::string& httpCallbackURL); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getMnsRegion()const; + void setMnsRegion(const std::string& mnsRegion); + + private: + std::string appName_; + std::string mnsTopic_; + std::string streamName_; + int period_; + std::string domainName_; + std::string httpCallbackURL_; + long ownerId_; + std::string mnsRegion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATELIVEASRCONFIGREQUEST_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/UpdateLiveASRConfigResult.h b/live/include/alibabacloud/live/model/UpdateLiveASRConfigResult.h new file mode 100644 index 000000000..a7b10abac --- /dev/null +++ b/live/include/alibabacloud/live/model/UpdateLiveASRConfigResult.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_UPDATELIVEASRCONFIGRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_UPDATELIVEASRCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT UpdateLiveASRConfigResult : public ServiceResult + { + public: + + + UpdateLiveASRConfigResult(); + explicit UpdateLiveASRConfigResult(const std::string &payload); + ~UpdateLiveASRConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATELIVEASRCONFIGRESULT_H_ \ No newline at end of file diff --git a/live/src/LiveClient.cc b/live/src/LiveClient.cc index 9b8a1c6b5..790b28d72 100644 --- a/live/src/LiveClient.cc +++ b/live/src/LiveClient.cc @@ -339,6 +339,42 @@ LiveClient::AddCustomLiveStreamTranscodeOutcomeCallable LiveClient::addCustomLiv return task->get_future(); } +LiveClient::AddLiveASRConfigOutcome LiveClient::addLiveASRConfig(const AddLiveASRConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddLiveASRConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddLiveASRConfigOutcome(AddLiveASRConfigResult(outcome.result())); + else + return AddLiveASRConfigOutcome(outcome.error()); +} + +void LiveClient::addLiveASRConfigAsync(const AddLiveASRConfigRequest& request, const AddLiveASRConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addLiveASRConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::AddLiveASRConfigOutcomeCallable LiveClient::addLiveASRConfigCallable(const AddLiveASRConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addLiveASRConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::AddLiveAppRecordConfigOutcome LiveClient::addLiveAppRecordConfig(const AddLiveAppRecordConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1815,6 +1851,42 @@ LiveClient::DeleteHtmlResourceOutcomeCallable LiveClient::deleteHtmlResourceCall return task->get_future(); } +LiveClient::DeleteLiveASRConfigOutcome LiveClient::deleteLiveASRConfig(const DeleteLiveASRConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLiveASRConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLiveASRConfigOutcome(DeleteLiveASRConfigResult(outcome.result())); + else + return DeleteLiveASRConfigOutcome(outcome.error()); +} + +void LiveClient::deleteLiveASRConfigAsync(const DeleteLiveASRConfigRequest& request, const DeleteLiveASRConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLiveASRConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DeleteLiveASRConfigOutcomeCallable LiveClient::deleteLiveASRConfigCallable(const DeleteLiveASRConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLiveASRConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DeleteLiveAppRecordConfigOutcome LiveClient::deleteLiveAppRecordConfig(const DeleteLiveAppRecordConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3111,6 +3183,42 @@ LiveClient::DescribeHtmlResourceOutcomeCallable LiveClient::describeHtmlResource return task->get_future(); } +LiveClient::DescribeLiveAsrConfigOutcome LiveClient::describeLiveAsrConfig(const DescribeLiveAsrConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveAsrConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveAsrConfigOutcome(DescribeLiveAsrConfigResult(outcome.result())); + else + return DescribeLiveAsrConfigOutcome(outcome.error()); +} + +void LiveClient::describeLiveAsrConfigAsync(const DescribeLiveAsrConfigRequest& request, const DescribeLiveAsrConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveAsrConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveAsrConfigOutcomeCallable LiveClient::describeLiveAsrConfigCallable(const DescribeLiveAsrConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveAsrConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeLiveAudioAuditConfigOutcome LiveClient::describeLiveAudioAuditConfig(const DescribeLiveAudioAuditConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7251,6 +7359,42 @@ LiveClient::UpdateCasterSceneConfigOutcomeCallable LiveClient::updateCasterScene return task->get_future(); } +LiveClient::UpdateLiveASRConfigOutcome LiveClient::updateLiveASRConfig(const UpdateLiveASRConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateLiveASRConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateLiveASRConfigOutcome(UpdateLiveASRConfigResult(outcome.result())); + else + return UpdateLiveASRConfigOutcome(outcome.error()); +} + +void LiveClient::updateLiveASRConfigAsync(const UpdateLiveASRConfigRequest& request, const UpdateLiveASRConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateLiveASRConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::UpdateLiveASRConfigOutcomeCallable LiveClient::updateLiveASRConfigCallable(const UpdateLiveASRConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateLiveASRConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::UpdateLiveAppSnapshotConfigOutcome LiveClient::updateLiveAppSnapshotConfig(const UpdateLiveAppSnapshotConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/live/src/model/AddLiveASRConfigRequest.cc b/live/src/model/AddLiveASRConfigRequest.cc new file mode 100644 index 000000000..ba6fefb87 --- /dev/null +++ b/live/src/model/AddLiveASRConfigRequest.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::AddLiveASRConfigRequest; + +AddLiveASRConfigRequest::AddLiveASRConfigRequest() : + RpcServiceRequest("live", "2016-11-01", "AddLiveASRConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +AddLiveASRConfigRequest::~AddLiveASRConfigRequest() +{} + +std::string AddLiveASRConfigRequest::getAppName()const +{ + return appName_; +} + +void AddLiveASRConfigRequest::setAppName(const std::string& appName) +{ + appName_ = appName; + setParameter("AppName", appName); +} + +std::string AddLiveASRConfigRequest::getMnsTopic()const +{ + return mnsTopic_; +} + +void AddLiveASRConfigRequest::setMnsTopic(const std::string& mnsTopic) +{ + mnsTopic_ = mnsTopic; + setParameter("MnsTopic", mnsTopic); +} + +std::string AddLiveASRConfigRequest::getStreamName()const +{ + return streamName_; +} + +void AddLiveASRConfigRequest::setStreamName(const std::string& streamName) +{ + streamName_ = streamName; + setParameter("StreamName", streamName); +} + +int AddLiveASRConfigRequest::getPeriod()const +{ + return period_; +} + +void AddLiveASRConfigRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string AddLiveASRConfigRequest::getDomainName()const +{ + return domainName_; +} + +void AddLiveASRConfigRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +std::string AddLiveASRConfigRequest::getHttpCallbackURL()const +{ + return httpCallbackURL_; +} + +void AddLiveASRConfigRequest::setHttpCallbackURL(const std::string& httpCallbackURL) +{ + httpCallbackURL_ = httpCallbackURL; + setParameter("HttpCallbackURL", httpCallbackURL); +} + +long AddLiveASRConfigRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddLiveASRConfigRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddLiveASRConfigRequest::getMnsRegion()const +{ + return mnsRegion_; +} + +void AddLiveASRConfigRequest::setMnsRegion(const std::string& mnsRegion) +{ + mnsRegion_ = mnsRegion; + setParameter("MnsRegion", mnsRegion); +} + diff --git a/live/src/model/AddLiveASRConfigResult.cc b/live/src/model/AddLiveASRConfigResult.cc new file mode 100644 index 000000000..6aae4db93 --- /dev/null +++ b/live/src/model/AddLiveASRConfigResult.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; + +AddLiveASRConfigResult::AddLiveASRConfigResult() : + ServiceResult() +{} + +AddLiveASRConfigResult::AddLiveASRConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddLiveASRConfigResult::~AddLiveASRConfigResult() +{} + +void AddLiveASRConfigResult::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/DeleteLiveASRConfigRequest.cc b/live/src/model/DeleteLiveASRConfigRequest.cc new file mode 100644 index 000000000..cc156285a --- /dev/null +++ b/live/src/model/DeleteLiveASRConfigRequest.cc @@ -0,0 +1,73 @@ +/* + * 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::DeleteLiveASRConfigRequest; + +DeleteLiveASRConfigRequest::DeleteLiveASRConfigRequest() : + RpcServiceRequest("live", "2016-11-01", "DeleteLiveASRConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteLiveASRConfigRequest::~DeleteLiveASRConfigRequest() +{} + +std::string DeleteLiveASRConfigRequest::getAppName()const +{ + return appName_; +} + +void DeleteLiveASRConfigRequest::setAppName(const std::string& appName) +{ + appName_ = appName; + setParameter("AppName", appName); +} + +std::string DeleteLiveASRConfigRequest::getStreamName()const +{ + return streamName_; +} + +void DeleteLiveASRConfigRequest::setStreamName(const std::string& streamName) +{ + streamName_ = streamName; + setParameter("StreamName", streamName); +} + +std::string DeleteLiveASRConfigRequest::getDomainName()const +{ + return domainName_; +} + +void DeleteLiveASRConfigRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +long DeleteLiveASRConfigRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteLiveASRConfigRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/live/src/model/DeleteLiveASRConfigResult.cc b/live/src/model/DeleteLiveASRConfigResult.cc new file mode 100644 index 000000000..e2ec93d64 --- /dev/null +++ b/live/src/model/DeleteLiveASRConfigResult.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; + +DeleteLiveASRConfigResult::DeleteLiveASRConfigResult() : + ServiceResult() +{} + +DeleteLiveASRConfigResult::DeleteLiveASRConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLiveASRConfigResult::~DeleteLiveASRConfigResult() +{} + +void DeleteLiveASRConfigResult::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/DescribeLiveAsrConfigRequest.cc b/live/src/model/DescribeLiveAsrConfigRequest.cc new file mode 100644 index 000000000..16e8ecbed --- /dev/null +++ b/live/src/model/DescribeLiveAsrConfigRequest.cc @@ -0,0 +1,73 @@ +/* + * 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::DescribeLiveAsrConfigRequest; + +DescribeLiveAsrConfigRequest::DescribeLiveAsrConfigRequest() : + RpcServiceRequest("live", "2016-11-01", "DescribeLiveAsrConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeLiveAsrConfigRequest::~DescribeLiveAsrConfigRequest() +{} + +std::string DescribeLiveAsrConfigRequest::getAppName()const +{ + return appName_; +} + +void DescribeLiveAsrConfigRequest::setAppName(const std::string& appName) +{ + appName_ = appName; + setParameter("AppName", appName); +} + +std::string DescribeLiveAsrConfigRequest::getStreamName()const +{ + return streamName_; +} + +void DescribeLiveAsrConfigRequest::setStreamName(const std::string& streamName) +{ + streamName_ = streamName; + setParameter("StreamName", streamName); +} + +std::string DescribeLiveAsrConfigRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeLiveAsrConfigRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +long DescribeLiveAsrConfigRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeLiveAsrConfigRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/live/src/model/DescribeLiveAsrConfigResult.cc b/live/src/model/DescribeLiveAsrConfigResult.cc new file mode 100644 index 000000000..95a3f5531 --- /dev/null +++ b/live/src/model/DescribeLiveAsrConfigResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +DescribeLiveAsrConfigResult::DescribeLiveAsrConfigResult() : + ServiceResult() +{} + +DescribeLiveAsrConfigResult::DescribeLiveAsrConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLiveAsrConfigResult::~DescribeLiveAsrConfigResult() +{} + +void DescribeLiveAsrConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLiveAsrConfigNode = value["LiveAsrConfig"]["LiveAsrConfigList"]; + for (auto valueLiveAsrConfigLiveAsrConfigList : allLiveAsrConfigNode) + { + LiveAsrConfigList liveAsrConfigObject; + if(!valueLiveAsrConfigLiveAsrConfigList["DomainName"].isNull()) + liveAsrConfigObject.domainName = std::stoi(valueLiveAsrConfigLiveAsrConfigList["DomainName"].asString()); + if(!valueLiveAsrConfigLiveAsrConfigList["AppName"].isNull()) + liveAsrConfigObject.appName = valueLiveAsrConfigLiveAsrConfigList["AppName"].asString(); + if(!valueLiveAsrConfigLiveAsrConfigList["StreamName"].isNull()) + liveAsrConfigObject.streamName = valueLiveAsrConfigLiveAsrConfigList["StreamName"].asString(); + if(!valueLiveAsrConfigLiveAsrConfigList["Period"].isNull()) + liveAsrConfigObject.period = std::stoi(valueLiveAsrConfigLiveAsrConfigList["Period"].asString()); + if(!valueLiveAsrConfigLiveAsrConfigList["MnsTopic"].isNull()) + liveAsrConfigObject.mnsTopic = valueLiveAsrConfigLiveAsrConfigList["MnsTopic"].asString(); + if(!valueLiveAsrConfigLiveAsrConfigList["MnsRegion"].isNull()) + liveAsrConfigObject.mnsRegion = valueLiveAsrConfigLiveAsrConfigList["MnsRegion"].asString(); + if(!valueLiveAsrConfigLiveAsrConfigList["HttpCallbackURL"].isNull()) + liveAsrConfigObject.httpCallbackURL = valueLiveAsrConfigLiveAsrConfigList["HttpCallbackURL"].asString(); + liveAsrConfig_.push_back(liveAsrConfigObject); + } + +} + +std::vector DescribeLiveAsrConfigResult::getLiveAsrConfig()const +{ + return liveAsrConfig_; +} + diff --git a/live/src/model/UpdateLiveASRConfigRequest.cc b/live/src/model/UpdateLiveASRConfigRequest.cc new file mode 100644 index 000000000..7f8406c93 --- /dev/null +++ b/live/src/model/UpdateLiveASRConfigRequest.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::UpdateLiveASRConfigRequest; + +UpdateLiveASRConfigRequest::UpdateLiveASRConfigRequest() : + RpcServiceRequest("live", "2016-11-01", "UpdateLiveASRConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateLiveASRConfigRequest::~UpdateLiveASRConfigRequest() +{} + +std::string UpdateLiveASRConfigRequest::getAppName()const +{ + return appName_; +} + +void UpdateLiveASRConfigRequest::setAppName(const std::string& appName) +{ + appName_ = appName; + setParameter("AppName", appName); +} + +std::string UpdateLiveASRConfigRequest::getMnsTopic()const +{ + return mnsTopic_; +} + +void UpdateLiveASRConfigRequest::setMnsTopic(const std::string& mnsTopic) +{ + mnsTopic_ = mnsTopic; + setParameter("MnsTopic", mnsTopic); +} + +std::string UpdateLiveASRConfigRequest::getStreamName()const +{ + return streamName_; +} + +void UpdateLiveASRConfigRequest::setStreamName(const std::string& streamName) +{ + streamName_ = streamName; + setParameter("StreamName", streamName); +} + +int UpdateLiveASRConfigRequest::getPeriod()const +{ + return period_; +} + +void UpdateLiveASRConfigRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string UpdateLiveASRConfigRequest::getDomainName()const +{ + return domainName_; +} + +void UpdateLiveASRConfigRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +std::string UpdateLiveASRConfigRequest::getHttpCallbackURL()const +{ + return httpCallbackURL_; +} + +void UpdateLiveASRConfigRequest::setHttpCallbackURL(const std::string& httpCallbackURL) +{ + httpCallbackURL_ = httpCallbackURL; + setParameter("HttpCallbackURL", httpCallbackURL); +} + +long UpdateLiveASRConfigRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateLiveASRConfigRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdateLiveASRConfigRequest::getMnsRegion()const +{ + return mnsRegion_; +} + +void UpdateLiveASRConfigRequest::setMnsRegion(const std::string& mnsRegion) +{ + mnsRegion_ = mnsRegion; + setParameter("MnsRegion", mnsRegion); +} + diff --git a/live/src/model/UpdateLiveASRConfigResult.cc b/live/src/model/UpdateLiveASRConfigResult.cc new file mode 100644 index 000000000..d9ad66015 --- /dev/null +++ b/live/src/model/UpdateLiveASRConfigResult.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; + +UpdateLiveASRConfigResult::UpdateLiveASRConfigResult() : + ServiceResult() +{} + +UpdateLiveASRConfigResult::UpdateLiveASRConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateLiveASRConfigResult::~UpdateLiveASRConfigResult() +{} + +void UpdateLiveASRConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +