Public beta version.

This commit is contained in:
sdk-team
2020-06-10 22:06:17 +08:00
parent c811dc5d85
commit 42b4be9e1f
9 changed files with 289 additions and 1 deletions

View File

@@ -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.

View File

@@ -1 +1 @@
1.36.453
1.36.454

View File

@@ -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 )

View File

@@ -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<Error, Model::UpdateDeviceHeartBeatResult> UpdateDeviceHeartBeatOutcome;
typedef std::future<UpdateDeviceHeartBeatOutcome> UpdateDeviceHeartBeatOutcomeCallable;
typedef std::function<void(const AliyuncvcClient*, const Model::UpdateDeviceHeartBeatRequest&, const UpdateDeviceHeartBeatOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDeviceHeartBeatAsyncHandler;
typedef Outcome<Error, Model::UpdateGonggeLayoutResult> UpdateGonggeLayoutOutcome;
typedef std::future<UpdateGonggeLayoutOutcome> UpdateGonggeLayoutOutcomeCallable;
typedef std::function<void(const AliyuncvcClient*, const Model::UpdateGonggeLayoutRequest&, const UpdateGonggeLayoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateGonggeLayoutAsyncHandler;
typedef Outcome<Error, Model::UpdateLivePasswordResult> UpdateLivePasswordOutcome;
typedef std::future<UpdateLivePasswordOutcome> UpdateLivePasswordOutcomeCallable;
typedef std::function<void(const AliyuncvcClient*, const Model::UpdateLivePasswordRequest&, const UpdateLivePasswordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
UpdateLivePasswordOutcomeCallable updateLivePasswordCallable(const Model::UpdateLivePasswordRequest& request) const;

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEGONGGELAYOUTREQUEST_H_
#define ALIBABACLOUD_ALIYUNCVC_MODEL_UPDATEGONGGELAYOUTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
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_

View File

@@ -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<const AsyncCallerContext>& 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<std::packaged_task<UpdateGonggeLayoutOutcome()>>(
[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();

View File

@@ -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 <alibabacloud/aliyuncvc/model/UpdateGonggeLayoutRequest.h>
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);
}

View File

@@ -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 <alibabacloud/aliyuncvc/model/UpdateGonggeLayoutResult.h>
#include <json/json.h>
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_;
}