From 42b4be9e1f974a435861612f9b1dc31a3cccd88c Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 10 Jun 2020 22:06:17 +0800 Subject: [PATCH] Public beta version. --- CHANGELOG | 4 ++ VERSION | 2 +- aliyuncvc/CMakeLists.txt | 4 ++ .../alibabacloud/aliyuncvc/AliyuncvcClient.h | 8 +++ .../model/UpdateGonggeLayoutRequest.h | 54 +++++++++++++++ .../model/UpdateGonggeLayoutResult.h | 55 ++++++++++++++++ aliyuncvc/src/AliyuncvcClient.cc | 36 ++++++++++ .../src/model/UpdateGonggeLayoutRequest.cc | 62 ++++++++++++++++++ .../src/model/UpdateGonggeLayoutResult.cc | 65 +++++++++++++++++++ 9 files changed, 289 insertions(+), 1 deletion(-) create mode 100644 aliyuncvc/include/alibabacloud/aliyuncvc/model/UpdateGonggeLayoutRequest.h create mode 100644 aliyuncvc/include/alibabacloud/aliyuncvc/model/UpdateGonggeLayoutResult.h create mode 100644 aliyuncvc/src/model/UpdateGonggeLayoutRequest.cc create mode 100644 aliyuncvc/src/model/UpdateGonggeLayoutResult.cc diff --git a/CHANGELOG b/CHANGELOG index 0f2e1baa6..ec4f42b89 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +2020-06-10 Version: 1.36.454 +- Public beta version. +- Add Api Overseas. + 2020-06-08 Version: 1.36.453 - Generate dbfs sdk. diff --git a/VERSION b/VERSION index 21381f039..04c86d59e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.453 \ No newline at end of file +1.36.454 \ No newline at end of file diff --git a/aliyuncvc/CMakeLists.txt b/aliyuncvc/CMakeLists.txt index 50f894690..80e9f9177 100644 --- a/aliyuncvc/CMakeLists.txt +++ b/aliyuncvc/CMakeLists.txt @@ -95,6 +95,8 @@ set(aliyuncvc_public_header_model include/alibabacloud/aliyuncvc/model/StartLiveResult.h include/alibabacloud/aliyuncvc/model/UpdateDeviceHeartBeatRequest.h include/alibabacloud/aliyuncvc/model/UpdateDeviceHeartBeatResult.h + include/alibabacloud/aliyuncvc/model/UpdateGonggeLayoutRequest.h + include/alibabacloud/aliyuncvc/model/UpdateGonggeLayoutResult.h include/alibabacloud/aliyuncvc/model/UpdateLivePasswordRequest.h include/alibabacloud/aliyuncvc/model/UpdateLivePasswordResult.h ) @@ -174,6 +176,8 @@ set(aliyuncvc_src src/model/StartLiveResult.cc src/model/UpdateDeviceHeartBeatRequest.cc src/model/UpdateDeviceHeartBeatResult.cc + src/model/UpdateGonggeLayoutRequest.cc + src/model/UpdateGonggeLayoutResult.cc src/model/UpdateLivePasswordRequest.cc src/model/UpdateLivePasswordResult.cc ) diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h b/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h index e5a993103..a60cdaa0d 100644 --- a/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h @@ -96,6 +96,8 @@ #include "model/StartLiveResult.h" #include "model/UpdateDeviceHeartBeatRequest.h" #include "model/UpdateDeviceHeartBeatResult.h" +#include "model/UpdateGonggeLayoutRequest.h" +#include "model/UpdateGonggeLayoutResult.h" #include "model/UpdateLivePasswordRequest.h" #include "model/UpdateLivePasswordResult.h" @@ -218,6 +220,9 @@ namespace AlibabaCloud typedef Outcome UpdateDeviceHeartBeatOutcome; typedef std::future UpdateDeviceHeartBeatOutcomeCallable; typedef std::function&)> UpdateDeviceHeartBeatAsyncHandler; + typedef Outcome UpdateGonggeLayoutOutcome; + typedef std::future UpdateGonggeLayoutOutcomeCallable; + typedef std::function&)> UpdateGonggeLayoutAsyncHandler; typedef Outcome UpdateLivePasswordOutcome; typedef std::future UpdateLivePasswordOutcomeCallable; typedef std::function&)> UpdateLivePasswordAsyncHandler; @@ -337,6 +342,9 @@ namespace AlibabaCloud UpdateDeviceHeartBeatOutcome updateDeviceHeartBeat(const Model::UpdateDeviceHeartBeatRequest &request)const; void updateDeviceHeartBeatAsync(const Model::UpdateDeviceHeartBeatRequest& request, const UpdateDeviceHeartBeatAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateDeviceHeartBeatOutcomeCallable updateDeviceHeartBeatCallable(const Model::UpdateDeviceHeartBeatRequest& request) const; + UpdateGonggeLayoutOutcome updateGonggeLayout(const Model::UpdateGonggeLayoutRequest &request)const; + void updateGonggeLayoutAsync(const Model::UpdateGonggeLayoutRequest& request, const UpdateGonggeLayoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGonggeLayoutOutcomeCallable updateGonggeLayoutCallable(const Model::UpdateGonggeLayoutRequest& request) const; UpdateLivePasswordOutcome updateLivePassword(const Model::UpdateLivePasswordRequest &request)const; void updateLivePasswordAsync(const Model::UpdateLivePasswordRequest& request, const UpdateLivePasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateLivePasswordOutcomeCallable updateLivePasswordCallable(const Model::UpdateLivePasswordRequest& request) const; diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/UpdateGonggeLayoutRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/UpdateGonggeLayoutRequest.h new file mode 100644 index 000000000..be5afc892 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/UpdateGonggeLayoutRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEGONGGELAYOUTREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEGONGGELAYOUTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT UpdateGonggeLayoutRequest : public RpcServiceRequest + { + + public: + UpdateGonggeLayoutRequest(); + ~UpdateGonggeLayoutRequest(); + + std::string getMeetingUUID()const; + void setMeetingUUID(const std::string& meetingUUID); + std::string getVideoCount()const; + void setVideoCount(const std::string& videoCount); + std::string getValue()const; + void setValue(const std::string& value); + + private: + std::string meetingUUID_; + std::string videoCount_; + std::string value_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEGONGGELAYOUTREQUEST_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/UpdateGonggeLayoutResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/UpdateGonggeLayoutResult.h new file mode 100644 index 000000000..0449f23ba --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/UpdateGonggeLayoutResult.h @@ -0,0 +1,55 @@ +/* + * 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_ALIYUNCVC_MODEL_UPDATEGONGGELAYOUTRESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEGONGGELAYOUTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT UpdateGonggeLayoutResult : public ServiceResult + { + public: + + + UpdateGonggeLayoutResult(); + explicit UpdateGonggeLayoutResult(const std::string &payload); + ~UpdateGonggeLayoutResult(); + std::string getMessage()const; + int getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEGONGGELAYOUTRESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/src/AliyuncvcClient.cc b/aliyuncvc/src/AliyuncvcClient.cc index 68077a52d..5e4bd5b28 100644 --- a/aliyuncvc/src/AliyuncvcClient.cc +++ b/aliyuncvc/src/AliyuncvcClient.cc @@ -1383,6 +1383,42 @@ AliyuncvcClient::UpdateDeviceHeartBeatOutcomeCallable AliyuncvcClient::updateDev return task->get_future(); } +AliyuncvcClient::UpdateGonggeLayoutOutcome AliyuncvcClient::updateGonggeLayout(const UpdateGonggeLayoutRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGonggeLayoutOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGonggeLayoutOutcome(UpdateGonggeLayoutResult(outcome.result())); + else + return UpdateGonggeLayoutOutcome(outcome.error()); +} + +void AliyuncvcClient::updateGonggeLayoutAsync(const UpdateGonggeLayoutRequest& request, const UpdateGonggeLayoutAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGonggeLayout(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::UpdateGonggeLayoutOutcomeCallable AliyuncvcClient::updateGonggeLayoutCallable(const UpdateGonggeLayoutRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGonggeLayout(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AliyuncvcClient::UpdateLivePasswordOutcome AliyuncvcClient::updateLivePassword(const UpdateLivePasswordRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/aliyuncvc/src/model/UpdateGonggeLayoutRequest.cc b/aliyuncvc/src/model/UpdateGonggeLayoutRequest.cc new file mode 100644 index 000000000..9c0286aaf --- /dev/null +++ b/aliyuncvc/src/model/UpdateGonggeLayoutRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Aliyuncvc::Model::UpdateGonggeLayoutRequest; + +UpdateGonggeLayoutRequest::UpdateGonggeLayoutRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "UpdateGonggeLayout") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateGonggeLayoutRequest::~UpdateGonggeLayoutRequest() +{} + +std::string UpdateGonggeLayoutRequest::getMeetingUUID()const +{ + return meetingUUID_; +} + +void UpdateGonggeLayoutRequest::setMeetingUUID(const std::string& meetingUUID) +{ + meetingUUID_ = meetingUUID; + setBodyParameter("MeetingUUID", meetingUUID); +} + +std::string UpdateGonggeLayoutRequest::getVideoCount()const +{ + return videoCount_; +} + +void UpdateGonggeLayoutRequest::setVideoCount(const std::string& videoCount) +{ + videoCount_ = videoCount; + setBodyParameter("VideoCount", videoCount); +} + +std::string UpdateGonggeLayoutRequest::getValue()const +{ + return value_; +} + +void UpdateGonggeLayoutRequest::setValue(const std::string& value) +{ + value_ = value; + setBodyParameter("Value", value); +} + diff --git a/aliyuncvc/src/model/UpdateGonggeLayoutResult.cc b/aliyuncvc/src/model/UpdateGonggeLayoutResult.cc new file mode 100644 index 000000000..d7b99fe0c --- /dev/null +++ b/aliyuncvc/src/model/UpdateGonggeLayoutResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Aliyuncvc; +using namespace AlibabaCloud::Aliyuncvc::Model; + +UpdateGonggeLayoutResult::UpdateGonggeLayoutResult() : + ServiceResult() +{} + +UpdateGonggeLayoutResult::UpdateGonggeLayoutResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGonggeLayoutResult::~UpdateGonggeLayoutResult() +{} + +void UpdateGonggeLayoutResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = std::stoi(value["ErrorCode"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateGonggeLayoutResult::getMessage()const +{ + return message_; +} + +int UpdateGonggeLayoutResult::getErrorCode()const +{ + return errorCode_; +} + +bool UpdateGonggeLayoutResult::getSuccess()const +{ + return success_; +} +