From 44130b741e37ed085a88da6e285d2a2db2ae38b2 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 17 Jul 2020 11:47:07 +0800 Subject: [PATCH] Public beta version. --- CHANGELOG | 4 ++ VERSION | 2 +- aliyuncvc/CMakeLists.txt | 4 ++ .../alibabacloud/aliyuncvc/AliyuncvcClient.h | 8 +++ .../model/CustomGonggeLayoutRequest.h | 51 +++++++++++++++ .../model/CustomGonggeLayoutResult.h | 55 ++++++++++++++++ aliyuncvc/src/AliyuncvcClient.cc | 36 ++++++++++ .../src/model/CustomGonggeLayoutRequest.cc | 51 +++++++++++++++ .../src/model/CustomGonggeLayoutResult.cc | 65 +++++++++++++++++++ 9 files changed, 275 insertions(+), 1 deletion(-) create mode 100644 aliyuncvc/include/alibabacloud/aliyuncvc/model/CustomGonggeLayoutRequest.h create mode 100644 aliyuncvc/include/alibabacloud/aliyuncvc/model/CustomGonggeLayoutResult.h create mode 100644 aliyuncvc/src/model/CustomGonggeLayoutRequest.cc create mode 100644 aliyuncvc/src/model/CustomGonggeLayoutResult.cc diff --git a/CHANGELOG b/CHANGELOG index be80e6aa8..5f871afba 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +2020-07-17 Version: 1.36.520 +- Public beta version. +- Add Api Overseas. + 2020-07-15 Version: 1.36.519 - Edit ListTraceApp api. - Edit SearchTraceAppByName api. diff --git a/VERSION b/VERSION index 88dd23de9..ae99aec66 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.519 \ No newline at end of file +1.36.520 \ No newline at end of file diff --git a/aliyuncvc/CMakeLists.txt b/aliyuncvc/CMakeLists.txt index aa45553e0..7f00e0eb6 100644 --- a/aliyuncvc/CMakeLists.txt +++ b/aliyuncvc/CMakeLists.txt @@ -45,6 +45,8 @@ set(aliyuncvc_public_header_model include/alibabacloud/aliyuncvc/model/CreateUserResult.h include/alibabacloud/aliyuncvc/model/CreateUserInternationalRequest.h include/alibabacloud/aliyuncvc/model/CreateUserInternationalResult.h + include/alibabacloud/aliyuncvc/model/CustomGonggeLayoutRequest.h + include/alibabacloud/aliyuncvc/model/CustomGonggeLayoutResult.h include/alibabacloud/aliyuncvc/model/DeleteDeviceRequest.h include/alibabacloud/aliyuncvc/model/DeleteDeviceResult.h include/alibabacloud/aliyuncvc/model/DeleteLiveRequest.h @@ -134,6 +136,8 @@ set(aliyuncvc_src src/model/CreateUserResult.cc src/model/CreateUserInternationalRequest.cc src/model/CreateUserInternationalResult.cc + src/model/CustomGonggeLayoutRequest.cc + src/model/CustomGonggeLayoutResult.cc src/model/DeleteDeviceRequest.cc src/model/DeleteDeviceResult.cc src/model/DeleteLiveRequest.cc diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h b/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h index 7565bca73..04b692821 100644 --- a/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/AliyuncvcClient.h @@ -46,6 +46,8 @@ #include "model/CreateUserResult.h" #include "model/CreateUserInternationalRequest.h" #include "model/CreateUserInternationalResult.h" +#include "model/CustomGonggeLayoutRequest.h" +#include "model/CustomGonggeLayoutResult.h" #include "model/DeleteDeviceRequest.h" #include "model/DeleteDeviceResult.h" #include "model/DeleteLiveRequest.h" @@ -153,6 +155,9 @@ namespace AlibabaCloud typedef Outcome CreateUserInternationalOutcome; typedef std::future CreateUserInternationalOutcomeCallable; typedef std::function&)> CreateUserInternationalAsyncHandler; + typedef Outcome CustomGonggeLayoutOutcome; + typedef std::future CustomGonggeLayoutOutcomeCallable; + typedef std::function&)> CustomGonggeLayoutAsyncHandler; typedef Outcome DeleteDeviceOutcome; typedef std::future DeleteDeviceOutcomeCallable; typedef std::function&)> DeleteDeviceAsyncHandler; @@ -287,6 +292,9 @@ namespace AlibabaCloud CreateUserInternationalOutcome createUserInternational(const Model::CreateUserInternationalRequest &request)const; void createUserInternationalAsync(const Model::CreateUserInternationalRequest& request, const CreateUserInternationalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateUserInternationalOutcomeCallable createUserInternationalCallable(const Model::CreateUserInternationalRequest& request) const; + CustomGonggeLayoutOutcome customGonggeLayout(const Model::CustomGonggeLayoutRequest &request)const; + void customGonggeLayoutAsync(const Model::CustomGonggeLayoutRequest& request, const CustomGonggeLayoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CustomGonggeLayoutOutcomeCallable customGonggeLayoutCallable(const Model::CustomGonggeLayoutRequest& request) const; DeleteDeviceOutcome deleteDevice(const Model::DeleteDeviceRequest &request)const; void deleteDeviceAsync(const Model::DeleteDeviceRequest& request, const DeleteDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDeviceOutcomeCallable deleteDeviceCallable(const Model::DeleteDeviceRequest& request) const; diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/CustomGonggeLayoutRequest.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/CustomGonggeLayoutRequest.h new file mode 100644 index 000000000..bfd11f4e6 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/CustomGonggeLayoutRequest.h @@ -0,0 +1,51 @@ +/* + * 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_CUSTOMGONGGELAYOUTREQUEST_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMGONGGELAYOUTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT CustomGonggeLayoutRequest : public RpcServiceRequest + { + + public: + CustomGonggeLayoutRequest(); + ~CustomGonggeLayoutRequest(); + + std::string getMeetingUUID()const; + void setMeetingUUID(const std::string& meetingUUID); + std::string getLayoutSolution()const; + void setLayoutSolution(const std::string& layoutSolution); + + private: + std::string meetingUUID_; + std::string layoutSolution_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMGONGGELAYOUTREQUEST_H_ \ No newline at end of file diff --git a/aliyuncvc/include/alibabacloud/aliyuncvc/model/CustomGonggeLayoutResult.h b/aliyuncvc/include/alibabacloud/aliyuncvc/model/CustomGonggeLayoutResult.h new file mode 100644 index 000000000..2742f15c9 --- /dev/null +++ b/aliyuncvc/include/alibabacloud/aliyuncvc/model/CustomGonggeLayoutResult.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_CUSTOMGONGGELAYOUTRESULT_H_ +#define ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMGONGGELAYOUTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aliyuncvc + { + namespace Model + { + class ALIBABACLOUD_ALIYUNCVC_EXPORT CustomGonggeLayoutResult : public ServiceResult + { + public: + + + CustomGonggeLayoutResult(); + explicit CustomGonggeLayoutResult(const std::string &payload); + ~CustomGonggeLayoutResult(); + 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_CUSTOMGONGGELAYOUTRESULT_H_ \ No newline at end of file diff --git a/aliyuncvc/src/AliyuncvcClient.cc b/aliyuncvc/src/AliyuncvcClient.cc index 74edd1c31..6d5bb9772 100644 --- a/aliyuncvc/src/AliyuncvcClient.cc +++ b/aliyuncvc/src/AliyuncvcClient.cc @@ -483,6 +483,42 @@ AliyuncvcClient::CreateUserInternationalOutcomeCallable AliyuncvcClient::createU return task->get_future(); } +AliyuncvcClient::CustomGonggeLayoutOutcome AliyuncvcClient::customGonggeLayout(const CustomGonggeLayoutRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CustomGonggeLayoutOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CustomGonggeLayoutOutcome(CustomGonggeLayoutResult(outcome.result())); + else + return CustomGonggeLayoutOutcome(outcome.error()); +} + +void AliyuncvcClient::customGonggeLayoutAsync(const CustomGonggeLayoutRequest& request, const CustomGonggeLayoutAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, customGonggeLayout(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AliyuncvcClient::CustomGonggeLayoutOutcomeCallable AliyuncvcClient::customGonggeLayoutCallable(const CustomGonggeLayoutRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->customGonggeLayout(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AliyuncvcClient::DeleteDeviceOutcome AliyuncvcClient::deleteDevice(const DeleteDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/aliyuncvc/src/model/CustomGonggeLayoutRequest.cc b/aliyuncvc/src/model/CustomGonggeLayoutRequest.cc new file mode 100644 index 000000000..0c76e7587 --- /dev/null +++ b/aliyuncvc/src/model/CustomGonggeLayoutRequest.cc @@ -0,0 +1,51 @@ +/* + * 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::CustomGonggeLayoutRequest; + +CustomGonggeLayoutRequest::CustomGonggeLayoutRequest() : + RpcServiceRequest("aliyuncvc", "2019-10-30", "CustomGonggeLayout") +{ + setMethod(HttpRequest::Method::Post); +} + +CustomGonggeLayoutRequest::~CustomGonggeLayoutRequest() +{} + +std::string CustomGonggeLayoutRequest::getMeetingUUID()const +{ + return meetingUUID_; +} + +void CustomGonggeLayoutRequest::setMeetingUUID(const std::string& meetingUUID) +{ + meetingUUID_ = meetingUUID; + setBodyParameter("MeetingUUID", meetingUUID); +} + +std::string CustomGonggeLayoutRequest::getLayoutSolution()const +{ + return layoutSolution_; +} + +void CustomGonggeLayoutRequest::setLayoutSolution(const std::string& layoutSolution) +{ + layoutSolution_ = layoutSolution; + setBodyParameter("LayoutSolution", layoutSolution); +} + diff --git a/aliyuncvc/src/model/CustomGonggeLayoutResult.cc b/aliyuncvc/src/model/CustomGonggeLayoutResult.cc new file mode 100644 index 000000000..aed4bbded --- /dev/null +++ b/aliyuncvc/src/model/CustomGonggeLayoutResult.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; + +CustomGonggeLayoutResult::CustomGonggeLayoutResult() : + ServiceResult() +{} + +CustomGonggeLayoutResult::CustomGonggeLayoutResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CustomGonggeLayoutResult::~CustomGonggeLayoutResult() +{} + +void CustomGonggeLayoutResult::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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CustomGonggeLayoutResult::getMessage()const +{ + return message_; +} + +int CustomGonggeLayoutResult::getErrorCode()const +{ + return errorCode_; +} + +bool CustomGonggeLayoutResult::getSuccess()const +{ + return success_; +} +