Compare commits

..

16 Commits

Author SHA1 Message Date
sdk-team
44130b741e Public beta version. 2020-07-17 11:47:07 +08:00
sdk-team
1ac661d847 Edit ListTraceApp api. 2020-07-15 20:11:42 +08:00
sdk-team
401f5f7e4c Modify ConfigureBackupPlan. 2020-07-15 18:18:52 +08:00
sdk-team
eee5186ffd Support ModifyImageAttribute by LaunchPermission. 2020-07-15 17:26:53 +08:00
sdk-team
ac957846a2 Add ListEventAlgorithmResult API. 2020-07-14 19:42:20 +08:00
sdk-team
bf6b90c665 Add ListEventAlgorithmResult API. 2020-07-14 17:51:23 +08:00
sdk-team
499b696774 Add ListBodyAlgorithmResult API. 2020-07-14 17:44:54 +08:00
sdk-team
8bcded107d Add ListBodyAlgorithmResult API. 2020-07-14 17:32:48 +08:00
sdk-team
26788350a5 Add ListBodyAlgorithmResult API. 2020-07-14 15:29:19 +08:00
sdk-team
37e0116875 Add ListBodyAlgorithmResult API. 2020-07-10 13:58:39 +08:00
sdk-team
6a5e45a550 Add ListBodyAlgorithmResult API. 2020-07-10 13:25:08 +08:00
sdk-team
fd6a6949fb Remove GetFootwearPosition PullTakeShoesEvent PullTryOnShoesEvent. 2020-07-08 19:54:20 +08:00
sdk-team
4cda4f477d Generated 2020-05-18 for dataworks-public. 2020-07-08 17:40:37 +08:00
sdk-team
7959141d87 Add video compose api. 2020-07-08 17:39:55 +08:00
sdk-team
53ce2f6947 Add video summarization related API. 2020-07-08 16:02:33 +08:00
sdk-team
161e51556b Add video summarization related API. 2020-07-07 23:35:51 +08:00
90 changed files with 4314 additions and 12 deletions

View File

@@ -1,3 +1,60 @@
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.
- Edut SearchTraceAppByPage api.
2020-07-15 Version: 1.36.518
- Modify ConfigureBackupPlan.
- Modify DescribeFullBackupList.
- Modify DescribeBackupPlanList.
- Modify DescribeRestoreRangeInfo.
2020-07-15 Version: 1.36.517
- Support ModifyImageAttribute by LaunchPermission.
- Support ImageFamily.
2020-07-14 Version: 1.36.516
- Add ListEventAlgorithmResult API.
2020-07-14 Version: 1.36.515
- Add ListEventAlgorithmResult API.
2020-07-14 Version: 1.36.514
- Add ListBodyAlgorithmResult API.
2020-07-14 Version: 1.36.513
- Add ListBodyAlgorithmResult API.
2020-07-14 Version: 1.36.512
- Add ListBodyAlgorithmResult API.
2020-07-10 Version: 1.36.511
- Add ListBodyAlgorithmResult API.
2020-07-10 Version: 1.36.510
- Add ListBodyAlgorithmResult API.
2020-07-08 Version: 1.36.509
- Remove GetFootwearPosition PullTakeShoesEvent PullTryOnShoesEvent.
- Add GetFootwearEvent.
- Please ignore the pd s pot.
2020-07-08 Version: 1.36.508
- Generated 2020-05-18 for `dataworks-public`.
2020-07-08 Version: 1.36.507
- Add video compose api.
2020-07-08 Version: 1.36.506
- Add video summarization related API.
2020-07-07 Version: 1.36.505
- Add video summarization related API.
2020-07-07 Version: 1.36.504
- Generated 2020-05-18 for `dataworks-public`.

View File

@@ -1 +1 @@
1.36.504
1.36.520

View File

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

View File

@@ -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<Error, Model::CreateUserInternationalResult> CreateUserInternationalOutcome;
typedef std::future<CreateUserInternationalOutcome> CreateUserInternationalOutcomeCallable;
typedef std::function<void(const AliyuncvcClient*, const Model::CreateUserInternationalRequest&, const CreateUserInternationalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateUserInternationalAsyncHandler;
typedef Outcome<Error, Model::CustomGonggeLayoutResult> CustomGonggeLayoutOutcome;
typedef std::future<CustomGonggeLayoutOutcome> CustomGonggeLayoutOutcomeCallable;
typedef std::function<void(const AliyuncvcClient*, const Model::CustomGonggeLayoutRequest&, const CustomGonggeLayoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CustomGonggeLayoutAsyncHandler;
typedef Outcome<Error, Model::DeleteDeviceResult> DeleteDeviceOutcome;
typedef std::future<DeleteDeviceOutcome> DeleteDeviceOutcomeCallable;
typedef std::function<void(const AliyuncvcClient*, const Model::DeleteDeviceRequest&, const DeleteDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
DeleteDeviceOutcomeCallable deleteDeviceCallable(const Model::DeleteDeviceRequest& request) const;

View File

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

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_CUSTOMGONGGELAYOUTRESULT_H_
#define ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMGONGGELAYOUTRESULT_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 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_

View File

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

View File

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

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/CustomGonggeLayoutResult.h>
#include <json/json.h>
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_;
}

View File

@@ -29,6 +29,8 @@ set(arms_public_header_model
include/alibabacloud/arms/model/CheckDataConsistencyResult.h
include/alibabacloud/arms/model/CheckServiceLinkedRoleForDeletingRequest.h
include/alibabacloud/arms/model/CheckServiceLinkedRoleForDeletingResult.h
include/alibabacloud/arms/model/ConfigAppRequest.h
include/alibabacloud/arms/model/ConfigAppResult.h
include/alibabacloud/arms/model/CreateAlertContactRequest.h
include/alibabacloud/arms/model/CreateAlertContactResult.h
include/alibabacloud/arms/model/CreateAlertContactGroupRequest.h
@@ -122,6 +124,8 @@ set(arms_src
src/model/CheckDataConsistencyResult.cc
src/model/CheckServiceLinkedRoleForDeletingRequest.cc
src/model/CheckServiceLinkedRoleForDeletingResult.cc
src/model/ConfigAppRequest.cc
src/model/ConfigAppResult.cc
src/model/CreateAlertContactRequest.cc
src/model/CreateAlertContactResult.cc
src/model/CreateAlertContactGroupRequest.cc

View File

@@ -30,6 +30,8 @@
#include "model/CheckDataConsistencyResult.h"
#include "model/CheckServiceLinkedRoleForDeletingRequest.h"
#include "model/CheckServiceLinkedRoleForDeletingResult.h"
#include "model/ConfigAppRequest.h"
#include "model/ConfigAppResult.h"
#include "model/CreateAlertContactRequest.h"
#include "model/CreateAlertContactResult.h"
#include "model/CreateAlertContactGroupRequest.h"
@@ -133,6 +135,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CheckServiceLinkedRoleForDeletingResult> CheckServiceLinkedRoleForDeletingOutcome;
typedef std::future<CheckServiceLinkedRoleForDeletingOutcome> CheckServiceLinkedRoleForDeletingOutcomeCallable;
typedef std::function<void(const ARMSClient*, const Model::CheckServiceLinkedRoleForDeletingRequest&, const CheckServiceLinkedRoleForDeletingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckServiceLinkedRoleForDeletingAsyncHandler;
typedef Outcome<Error, Model::ConfigAppResult> ConfigAppOutcome;
typedef std::future<ConfigAppOutcome> ConfigAppOutcomeCallable;
typedef std::function<void(const ARMSClient*, const Model::ConfigAppRequest&, const ConfigAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConfigAppAsyncHandler;
typedef Outcome<Error, Model::CreateAlertContactResult> CreateAlertContactOutcome;
typedef std::future<CreateAlertContactOutcome> CreateAlertContactOutcomeCallable;
typedef std::function<void(const ARMSClient*, const Model::CreateAlertContactRequest&, const CreateAlertContactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAlertContactAsyncHandler;
@@ -273,6 +278,9 @@ namespace AlibabaCloud
CheckServiceLinkedRoleForDeletingOutcome checkServiceLinkedRoleForDeleting(const Model::CheckServiceLinkedRoleForDeletingRequest &request)const;
void checkServiceLinkedRoleForDeletingAsync(const Model::CheckServiceLinkedRoleForDeletingRequest& request, const CheckServiceLinkedRoleForDeletingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CheckServiceLinkedRoleForDeletingOutcomeCallable checkServiceLinkedRoleForDeletingCallable(const Model::CheckServiceLinkedRoleForDeletingRequest& request) const;
ConfigAppOutcome configApp(const Model::ConfigAppRequest &request)const;
void configAppAsync(const Model::ConfigAppRequest& request, const ConfigAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ConfigAppOutcomeCallable configAppCallable(const Model::ConfigAppRequest& request) const;
CreateAlertContactOutcome createAlertContact(const Model::CreateAlertContactRequest &request)const;
void createAlertContactAsync(const Model::CreateAlertContactRequest& request, const CreateAlertContactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateAlertContactOutcomeCallable createAlertContactCallable(const Model::CreateAlertContactRequest& 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_ARMS_MODEL_CONFIGAPPREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CONFIGAPPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT ConfigAppRequest : public RpcServiceRequest
{
public:
ConfigAppRequest();
~ConfigAppRequest();
std::string getAppIds()const;
void setAppIds(const std::string& appIds);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
bool getEnable()const;
void setEnable(bool enable);
private:
std::string appIds_;
std::string regionId_;
bool enable_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_CONFIGAPPREQUEST_H_

View File

@@ -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_ARMS_MODEL_CONFIGAPPRESULT_H_
#define ALIBABACLOUD_ARMS_MODEL_CONFIGAPPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT ConfigAppResult : public ServiceResult
{
public:
ConfigAppResult();
explicit ConfigAppResult(const std::string &payload);
~ConfigAppResult();
std::string getData()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_CONFIGAPPRESULT_H_

View File

@@ -40,6 +40,7 @@ namespace AlibabaCloud
long createTime;
long updateTime;
std::string pid;
bool show;
std::string regionId;
std::string appName;
};

View File

@@ -40,6 +40,7 @@ namespace AlibabaCloud
long createTime;
long updateTime;
std::string pid;
bool show;
std::string regionId;
std::string appName;
};

View File

@@ -42,6 +42,7 @@ namespace AlibabaCloud
long createTime;
long updateTime;
std::string pid;
bool show;
std::string regionId;
std::string appName;
};

View File

@@ -195,6 +195,42 @@ ARMSClient::CheckServiceLinkedRoleForDeletingOutcomeCallable ARMSClient::checkSe
return task->get_future();
}
ARMSClient::ConfigAppOutcome ARMSClient::configApp(const ConfigAppRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ConfigAppOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ConfigAppOutcome(ConfigAppResult(outcome.result()));
else
return ConfigAppOutcome(outcome.error());
}
void ARMSClient::configAppAsync(const ConfigAppRequest& request, const ConfigAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, configApp(request), context);
};
asyncExecute(new Runnable(fn));
}
ARMSClient::ConfigAppOutcomeCallable ARMSClient::configAppCallable(const ConfigAppRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ConfigAppOutcome()>>(
[this, request]()
{
return this->configApp(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ARMSClient::CreateAlertContactOutcome ARMSClient::createAlertContact(const CreateAlertContactRequest &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/arms/model/ConfigAppRequest.h>
using AlibabaCloud::ARMS::Model::ConfigAppRequest;
ConfigAppRequest::ConfigAppRequest() :
RpcServiceRequest("arms", "2019-08-08", "ConfigApp")
{
setMethod(HttpRequest::Method::Post);
}
ConfigAppRequest::~ConfigAppRequest()
{}
std::string ConfigAppRequest::getAppIds()const
{
return appIds_;
}
void ConfigAppRequest::setAppIds(const std::string& appIds)
{
appIds_ = appIds;
setParameter("AppIds", appIds);
}
std::string ConfigAppRequest::getRegionId()const
{
return regionId_;
}
void ConfigAppRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool ConfigAppRequest::getEnable()const
{
return enable_;
}
void ConfigAppRequest::setEnable(bool enable)
{
enable_ = enable;
setParameter("Enable", enable ? "true" : "false");
}

View File

@@ -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 <alibabacloud/arms/model/ConfigAppResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ARMS;
using namespace AlibabaCloud::ARMS::Model;
ConfigAppResult::ConfigAppResult() :
ServiceResult()
{}
ConfigAppResult::ConfigAppResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConfigAppResult::~ConfigAppResult()
{}
void ConfigAppResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string ConfigAppResult::getData()const
{
return data_;
}

View File

@@ -59,6 +59,8 @@ void ListTraceAppsResult::parse(const std::string &payload)
traceAppsObject.updateTime = std::stol(valueTraceAppsTraceApp["UpdateTime"].asString());
if(!valueTraceAppsTraceApp["RegionId"].isNull())
traceAppsObject.regionId = valueTraceAppsTraceApp["RegionId"].asString();
if(!valueTraceAppsTraceApp["Show"].isNull())
traceAppsObject.show = valueTraceAppsTraceApp["Show"].asString() == "true";
traceApps_.push_back(traceAppsObject);
}
if(!value["Success"].isNull())

View File

@@ -59,6 +59,8 @@ void SearchTraceAppByNameResult::parse(const std::string &payload)
traceAppsObject.createTime = std::stol(valueTraceAppsTraceApp["CreateTime"].asString());
if(!valueTraceAppsTraceApp["UpdateTime"].isNull())
traceAppsObject.updateTime = std::stol(valueTraceAppsTraceApp["UpdateTime"].asString());
if(!valueTraceAppsTraceApp["Show"].isNull())
traceAppsObject.show = valueTraceAppsTraceApp["Show"].asString() == "true";
traceApps_.push_back(traceAppsObject);
}

View File

@@ -66,6 +66,8 @@ void SearchTraceAppByPageResult::parse(const std::string &payload)
traceAppObject.createTime = std::stol(pageBeanNodeTraceAppsTraceApp["CreateTime"].asString());
if(!pageBeanNodeTraceAppsTraceApp["UpdateTime"].isNull())
traceAppObject.updateTime = std::stol(pageBeanNodeTraceAppsTraceApp["UpdateTime"].asString());
if(!pageBeanNodeTraceAppsTraceApp["Show"].isNull())
traceAppObject.show = pageBeanNodeTraceAppsTraceApp["Show"].asString() == "true";
pageBean_.traceApps.push_back(traceAppObject);
}

View File

@@ -39,7 +39,7 @@ namespace AlibabaCloud
~DeleteQualityEntityResult();
int getHttpStatusCode()const;
bool getData()const;
bool getErrorCode()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
@@ -48,7 +48,7 @@ namespace AlibabaCloud
private:
int httpStatusCode_;
bool data_;
bool errorCode_;
std::string errorCode_;
std::string errorMessage_;
bool success_;

View File

@@ -42,7 +42,7 @@ void DeleteQualityEntityResult::parse(const std::string &payload)
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString() == "true";
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["HttpStatusCode"].isNull())
@@ -62,7 +62,7 @@ bool DeleteQualityEntityResult::getData()const
return data_;
}
bool DeleteQualityEntityResult::getErrorCode()const
std::string DeleteQualityEntityResult::getErrorCode()const
{
return errorCode_;
}

View File

@@ -65,6 +65,8 @@ namespace AlibabaCloud
void setDuplicationArchivePeriod(int duplicationArchivePeriod);
std::string getCrossAliyunId()const;
void setCrossAliyunId(const std::string& crossAliyunId);
bool getAutoStartBackup()const;
void setAutoStartBackup(bool autoStartBackup);
std::string getSourceEndpointPassword()const;
void setSourceEndpointPassword(const std::string& sourceEndpointPassword);
std::string getBackupObjects()const;
@@ -106,6 +108,7 @@ namespace AlibabaCloud
std::string backupStorageType_;
int duplicationArchivePeriod_;
std::string crossAliyunId_;
bool autoStartBackup_;
std::string sourceEndpointPassword_;
std::string backupObjects_;
std::string ownerId_;

View File

@@ -60,6 +60,7 @@ namespace AlibabaCloud
std::string instanceClass;
std::string backupSetDownloadIncrementDataFormat;
long endTimestampForRestore;
std::string errMessage;
std::string backupSetDownloadTargetType;
int duplicationArchivePeriod;
std::string oSSBucketName;

View File

@@ -39,6 +39,8 @@ namespace AlibabaCloud
void setClientToken(const std::string& clientToken);
std::string getBackupPlanId()const;
void setBackupPlanId(const std::string& backupPlanId);
std::string getBackupSetId()const;
void setBackupSetId(const std::string& backupSetId);
int getPageNum()const;
void setPageNum(int pageNum);
std::string getOwnerId()const;
@@ -51,6 +53,7 @@ namespace AlibabaCloud
private:
std::string clientToken_;
std::string backupPlanId_;
std::string backupSetId_;
int pageNum_;
std::string ownerId_;
bool showStorageType_;

View File

@@ -45,6 +45,8 @@ namespace AlibabaCloud
void setBackupPlanId(const std::string& backupPlanId);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
bool getRecentlyRestore()const;
void setRecentlyRestore(bool recentlyRestore);
private:
long beginTimestampForRestore_;
@@ -52,6 +54,7 @@ namespace AlibabaCloud
std::string clientToken_;
std::string backupPlanId_;
std::string ownerId_;
bool recentlyRestore_;
};
}

View File

@@ -192,6 +192,17 @@ void ConfigureBackupPlanRequest::setCrossAliyunId(const std::string& crossAliyun
setParameter("CrossAliyunId", crossAliyunId);
}
bool ConfigureBackupPlanRequest::getAutoStartBackup()const
{
return autoStartBackup_;
}
void ConfigureBackupPlanRequest::setAutoStartBackup(bool autoStartBackup)
{
autoStartBackup_ = autoStartBackup;
setParameter("AutoStartBackup", autoStartBackup ? "true" : "false");
}
std::string ConfigureBackupPlanRequest::getSourceEndpointPassword()const
{
return sourceEndpointPassword_;

View File

@@ -111,6 +111,8 @@ void DescribeBackupPlanListResult::parse(const std::string &payload)
itemsObject.crossRoleName = valueItemsBackupPlanDetail["CrossRoleName"].asString();
if(!valueItemsBackupPlanDetail["BackupStorageType"].isNull())
itemsObject.backupStorageType = valueItemsBackupPlanDetail["BackupStorageType"].asString();
if(!valueItemsBackupPlanDetail["ErrMessage"].isNull())
itemsObject.errMessage = valueItemsBackupPlanDetail["ErrMessage"].asString();
items_.push_back(itemsObject);
}
if(!value["Success"].isNull())

View File

@@ -49,6 +49,17 @@ void DescribeFullBackupListRequest::setBackupPlanId(const std::string& backupPla
setParameter("BackupPlanId", backupPlanId);
}
std::string DescribeFullBackupListRequest::getBackupSetId()const
{
return backupSetId_;
}
void DescribeFullBackupListRequest::setBackupSetId(const std::string& backupSetId)
{
backupSetId_ = backupSetId;
setParameter("BackupSetId", backupSetId);
}
int DescribeFullBackupListRequest::getPageNum()const
{
return pageNum_;

View File

@@ -82,3 +82,14 @@ void DescribeRestoreRangeInfoRequest::setOwnerId(const std::string& ownerId)
setParameter("OwnerId", ownerId);
}
bool DescribeRestoreRangeInfoRequest::getRecentlyRestore()const
{
return recentlyRestore_;
}
void DescribeRestoreRangeInfoRequest::setRecentlyRestore(bool recentlyRestore)
{
recentlyRestore_ = recentlyRestore;
setParameter("RecentlyRestore", recentlyRestore ? "true" : "false");
}

View File

@@ -60,6 +60,8 @@ namespace AlibabaCloud
void setPlatform(const std::string& platform);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getBootMode()const;
void setBootMode(const std::string& bootMode);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getImageName()const;
@@ -85,6 +87,7 @@ namespace AlibabaCloud
std::string description_;
std::string platform_;
std::string resourceGroupId_;
std::string bootMode_;
std::string regionId_;
std::string imageName_;
std::vector<Tag> tag_;

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
void setImageId(const std::string& imageId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getLaunchPermission()const;
void setLaunchPermission(const std::string& launchPermission);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
@@ -56,6 +58,7 @@ namespace AlibabaCloud
long resourceOwnerId_;
std::string imageId_;
std::string regionId_;
std::string launchPermission_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;

View File

@@ -91,6 +91,17 @@ void ImportImageRequest::setResourceGroupId(const std::string& resourceGroupId)
setParameter("ResourceGroupId", resourceGroupId);
}
std::string ImportImageRequest::getBootMode()const
{
return bootMode_;
}
void ImportImageRequest::setBootMode(const std::string& bootMode)
{
bootMode_ = bootMode;
setParameter("BootMode", bootMode);
}
std::string ImportImageRequest::getRegionId()const
{
return regionId_;

View File

@@ -60,6 +60,17 @@ void ModifyImageSharePermissionRequest::setRegionId(const std::string& regionId)
setParameter("RegionId", regionId);
}
std::string ModifyImageSharePermissionRequest::getLaunchPermission()const
{
return launchPermission_;
}
void ModifyImageSharePermissionRequest::setLaunchPermission(const std::string& launchPermission)
{
launchPermission_ = launchPermission;
setParameter("LaunchPermission", launchPermission);
}
std::string ModifyImageSharePermissionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;

View File

@@ -39,6 +39,8 @@ set(reid_public_header_model
include/alibabacloud/reid/model/DescribeIpcLiveAddressResult.h
include/alibabacloud/reid/model/DescribeOverviewDataRequest.h
include/alibabacloud/reid/model/DescribeOverviewDataResult.h
include/alibabacloud/reid/model/GetFootwearEventRequest.h
include/alibabacloud/reid/model/GetFootwearEventResult.h
include/alibabacloud/reid/model/GetFootwearPositionRequest.h
include/alibabacloud/reid/model/GetFootwearPositionResult.h
include/alibabacloud/reid/model/ImportSpecialPersonnelRequest.h
@@ -84,6 +86,8 @@ set(reid_src
src/model/DescribeIpcLiveAddressResult.cc
src/model/DescribeOverviewDataRequest.cc
src/model/DescribeOverviewDataResult.cc
src/model/GetFootwearEventRequest.cc
src/model/GetFootwearEventResult.cc
src/model/GetFootwearPositionRequest.cc
src/model/GetFootwearPositionResult.cc
src/model/ImportSpecialPersonnelRequest.cc

View File

@@ -40,6 +40,8 @@
#include "model/DescribeIpcLiveAddressResult.h"
#include "model/DescribeOverviewDataRequest.h"
#include "model/DescribeOverviewDataResult.h"
#include "model/GetFootwearEventRequest.h"
#include "model/GetFootwearEventResult.h"
#include "model/GetFootwearPositionRequest.h"
#include "model/GetFootwearPositionResult.h"
#include "model/ImportSpecialPersonnelRequest.h"
@@ -100,6 +102,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeOverviewDataResult> DescribeOverviewDataOutcome;
typedef std::future<DescribeOverviewDataOutcome> DescribeOverviewDataOutcomeCallable;
typedef std::function<void(const ReidClient*, const Model::DescribeOverviewDataRequest&, const DescribeOverviewDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeOverviewDataAsyncHandler;
typedef Outcome<Error, Model::GetFootwearEventResult> GetFootwearEventOutcome;
typedef std::future<GetFootwearEventOutcome> GetFootwearEventOutcomeCallable;
typedef std::function<void(const ReidClient*, const Model::GetFootwearEventRequest&, const GetFootwearEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFootwearEventAsyncHandler;
typedef Outcome<Error, Model::GetFootwearPositionResult> GetFootwearPositionOutcome;
typedef std::future<GetFootwearPositionOutcome> GetFootwearPositionOutcomeCallable;
typedef std::function<void(const ReidClient*, const Model::GetFootwearPositionRequest&, const GetFootwearPositionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFootwearPositionAsyncHandler;
@@ -168,6 +173,9 @@ namespace AlibabaCloud
DescribeOverviewDataOutcome describeOverviewData(const Model::DescribeOverviewDataRequest &request)const;
void describeOverviewDataAsync(const Model::DescribeOverviewDataRequest& request, const DescribeOverviewDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeOverviewDataOutcomeCallable describeOverviewDataCallable(const Model::DescribeOverviewDataRequest& request) const;
GetFootwearEventOutcome getFootwearEvent(const Model::GetFootwearEventRequest &request)const;
void getFootwearEventAsync(const Model::GetFootwearEventRequest& request, const GetFootwearEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetFootwearEventOutcomeCallable getFootwearEventCallable(const Model::GetFootwearEventRequest& request) const;
GetFootwearPositionOutcome getFootwearPosition(const Model::GetFootwearPositionRequest &request)const;
void getFootwearPositionAsync(const Model::GetFootwearPositionRequest& request, const GetFootwearPositionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetFootwearPositionOutcomeCallable getFootwearPositionCallable(const Model::GetFootwearPositionRequest& request) const;

View File

@@ -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_REID_MODEL_GETFOOTWEAREVENTREQUEST_H_
#define ALIBABACLOUD_REID_MODEL_GETFOOTWEAREVENTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/reid/ReidExport.h>
namespace AlibabaCloud
{
namespace Reid
{
namespace Model
{
class ALIBABACLOUD_REID_EXPORT GetFootwearEventRequest : public RpcServiceRequest
{
public:
GetFootwearEventRequest();
~GetFootwearEventRequest();
std::string getDate()const;
void setDate(const std::string& date);
long getStoreId()const;
void setStoreId(long storeId);
private:
std::string date_;
long storeId_;
};
}
}
}
#endif // !ALIBABACLOUD_REID_MODEL_GETFOOTWEAREVENTREQUEST_H_

View File

@@ -0,0 +1,74 @@
/*
* 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_REID_MODEL_GETFOOTWEAREVENTRESULT_H_
#define ALIBABACLOUD_REID_MODEL_GETFOOTWEAREVENTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/reid/ReidExport.h>
namespace AlibabaCloud
{
namespace Reid
{
namespace Model
{
class ALIBABACLOUD_REID_EXPORT GetFootwearEventResult : public ServiceResult
{
public:
struct FootwearEvent
{
long storeId;
int tryOnEventCount;
int takeEventCount;
std::string skuId;
std::string positionNumber;
std::string date;
};
GetFootwearEventResult();
explicit GetFootwearEventResult(const std::string &payload);
~GetFootwearEventResult();
std::string getMessage()const;
std::vector<FootwearEvent> getFootwearEventList()const;
std::string getDynamicCode()const;
std::string getErrorCode()const;
std::string getDynamicMessage()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::vector<FootwearEvent> footwearEventList_;
std::string dynamicCode_;
std::string errorCode_;
std::string dynamicMessage_;
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_REID_MODEL_GETFOOTWEAREVENTRESULT_H_

View File

@@ -31,21 +31,21 @@ ReidClient::ReidClient(const Credentials &credentials, const ClientConfiguration
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.2");
}
ReidClient::ReidClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.2");
}
ReidClient::ReidClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "1.1.8.2");
}
ReidClient::~ReidClient()
@@ -375,6 +375,42 @@ ReidClient::DescribeOverviewDataOutcomeCallable ReidClient::describeOverviewData
return task->get_future();
}
ReidClient::GetFootwearEventOutcome ReidClient::getFootwearEvent(const GetFootwearEventRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetFootwearEventOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetFootwearEventOutcome(GetFootwearEventResult(outcome.result()));
else
return GetFootwearEventOutcome(outcome.error());
}
void ReidClient::getFootwearEventAsync(const GetFootwearEventRequest& request, const GetFootwearEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getFootwearEvent(request), context);
};
asyncExecute(new Runnable(fn));
}
ReidClient::GetFootwearEventOutcomeCallable ReidClient::getFootwearEventCallable(const GetFootwearEventRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetFootwearEventOutcome()>>(
[this, request]()
{
return this->getFootwearEvent(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ReidClient::GetFootwearPositionOutcome ReidClient::getFootwearPosition(const GetFootwearPositionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -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 <alibabacloud/reid/model/GetFootwearEventRequest.h>
using AlibabaCloud::Reid::Model::GetFootwearEventRequest;
GetFootwearEventRequest::GetFootwearEventRequest() :
RpcServiceRequest("reid", "2019-09-28", "GetFootwearEvent")
{
setMethod(HttpRequest::Method::Post);
}
GetFootwearEventRequest::~GetFootwearEventRequest()
{}
std::string GetFootwearEventRequest::getDate()const
{
return date_;
}
void GetFootwearEventRequest::setDate(const std::string& date)
{
date_ = date;
setBodyParameter("Date", date);
}
long GetFootwearEventRequest::getStoreId()const
{
return storeId_;
}
void GetFootwearEventRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", std::to_string(storeId));
}

View File

@@ -0,0 +1,116 @@
/*
* 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/reid/model/GetFootwearEventResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Reid;
using namespace AlibabaCloud::Reid::Model;
GetFootwearEventResult::GetFootwearEventResult() :
ServiceResult()
{}
GetFootwearEventResult::GetFootwearEventResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetFootwearEventResult::~GetFootwearEventResult()
{}
void GetFootwearEventResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFootwearEventListNode = value["FootwearEventList"]["FootwearEvent"];
for (auto valueFootwearEventListFootwearEvent : allFootwearEventListNode)
{
FootwearEvent footwearEventListObject;
if(!valueFootwearEventListFootwearEvent["PositionNumber"].isNull())
footwearEventListObject.positionNumber = valueFootwearEventListFootwearEvent["PositionNumber"].asString();
if(!valueFootwearEventListFootwearEvent["TryOnEventCount"].isNull())
footwearEventListObject.tryOnEventCount = std::stoi(valueFootwearEventListFootwearEvent["TryOnEventCount"].asString());
if(!valueFootwearEventListFootwearEvent["SkuId"].isNull())
footwearEventListObject.skuId = valueFootwearEventListFootwearEvent["SkuId"].asString();
if(!valueFootwearEventListFootwearEvent["StoreId"].isNull())
footwearEventListObject.storeId = std::stol(valueFootwearEventListFootwearEvent["StoreId"].asString());
if(!valueFootwearEventListFootwearEvent["TakeEventCount"].isNull())
footwearEventListObject.takeEventCount = std::stoi(valueFootwearEventListFootwearEvent["TakeEventCount"].asString());
if(!valueFootwearEventListFootwearEvent["Date"].isNull())
footwearEventListObject.date = valueFootwearEventListFootwearEvent["Date"].asString();
footwearEventList_.push_back(footwearEventListObject);
}
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
}
std::string GetFootwearEventResult::getMessage()const
{
return message_;
}
std::vector<GetFootwearEventResult::FootwearEvent> GetFootwearEventResult::getFootwearEventList()const
{
return footwearEventList_;
}
std::string GetFootwearEventResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string GetFootwearEventResult::getErrorCode()const
{
return errorCode_;
}
std::string GetFootwearEventResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string GetFootwearEventResult::getErrorMessage()const
{
return errorMessage_;
}
std::string GetFootwearEventResult::getCode()const
{
return code_;
}
bool GetFootwearEventResult::getSuccess()const
{
return success_;
}

View File

@@ -21,16 +21,26 @@ set(vcs_public_header
include/alibabacloud/vcs/VcsExport.h )
set(vcs_public_header_model
include/alibabacloud/vcs/model/AddDataSourceRequest.h
include/alibabacloud/vcs/model/AddDataSourceResult.h
include/alibabacloud/vcs/model/AddDeviceRequest.h
include/alibabacloud/vcs/model/AddDeviceResult.h
include/alibabacloud/vcs/model/AddMonitorRequest.h
include/alibabacloud/vcs/model/AddMonitorResult.h
include/alibabacloud/vcs/model/CreateCorpRequest.h
include/alibabacloud/vcs/model/CreateCorpResult.h
include/alibabacloud/vcs/model/CreateVideoComposeTaskRequest.h
include/alibabacloud/vcs/model/CreateVideoComposeTaskResult.h
include/alibabacloud/vcs/model/CreateVideoSummaryTaskRequest.h
include/alibabacloud/vcs/model/CreateVideoSummaryTaskResult.h
include/alibabacloud/vcs/model/DeleteDataSourceRequest.h
include/alibabacloud/vcs/model/DeleteDataSourceResult.h
include/alibabacloud/vcs/model/DeleteDeviceRequest.h
include/alibabacloud/vcs/model/DeleteDeviceResult.h
include/alibabacloud/vcs/model/DeleteRecordsRequest.h
include/alibabacloud/vcs/model/DeleteRecordsResult.h
include/alibabacloud/vcs/model/DeleteVideoSummaryTaskRequest.h
include/alibabacloud/vcs/model/DeleteVideoSummaryTaskResult.h
include/alibabacloud/vcs/model/GetBodyOptionsRequest.h
include/alibabacloud/vcs/model/GetBodyOptionsResult.h
include/alibabacloud/vcs/model/GetDeviceLiveUrlRequest.h
@@ -45,10 +55,18 @@ set(vcs_public_header_model
include/alibabacloud/vcs/model/GetMonitorResultResult.h
include/alibabacloud/vcs/model/GetPersonDetailRequest.h
include/alibabacloud/vcs/model/GetPersonDetailResult.h
include/alibabacloud/vcs/model/GetVideoComposeResultRequest.h
include/alibabacloud/vcs/model/GetVideoComposeResultResult.h
include/alibabacloud/vcs/model/GetVideoSummaryTaskResultRequest.h
include/alibabacloud/vcs/model/GetVideoSummaryTaskResultResult.h
include/alibabacloud/vcs/model/ListBodyAlgorithmResultsRequest.h
include/alibabacloud/vcs/model/ListBodyAlgorithmResultsResult.h
include/alibabacloud/vcs/model/ListCorpsRequest.h
include/alibabacloud/vcs/model/ListCorpsResult.h
include/alibabacloud/vcs/model/ListDevicesRequest.h
include/alibabacloud/vcs/model/ListDevicesResult.h
include/alibabacloud/vcs/model/ListEventAlgorithmResultsRequest.h
include/alibabacloud/vcs/model/ListEventAlgorithmResultsResult.h
include/alibabacloud/vcs/model/ListFaceAlgorithmResultsRequest.h
include/alibabacloud/vcs/model/ListFaceAlgorithmResultsResult.h
include/alibabacloud/vcs/model/ListMetricsRequest.h
@@ -72,20 +90,32 @@ set(vcs_public_header_model
include/alibabacloud/vcs/model/UpdateDeviceRequest.h
include/alibabacloud/vcs/model/UpdateDeviceResult.h
include/alibabacloud/vcs/model/UpdateMonitorRequest.h
include/alibabacloud/vcs/model/UpdateMonitorResult.h )
include/alibabacloud/vcs/model/UpdateMonitorResult.h
include/alibabacloud/vcs/model/UploadFileRequest.h
include/alibabacloud/vcs/model/UploadFileResult.h )
set(vcs_src
src/VcsClient.cc
src/model/AddDataSourceRequest.cc
src/model/AddDataSourceResult.cc
src/model/AddDeviceRequest.cc
src/model/AddDeviceResult.cc
src/model/AddMonitorRequest.cc
src/model/AddMonitorResult.cc
src/model/CreateCorpRequest.cc
src/model/CreateCorpResult.cc
src/model/CreateVideoComposeTaskRequest.cc
src/model/CreateVideoComposeTaskResult.cc
src/model/CreateVideoSummaryTaskRequest.cc
src/model/CreateVideoSummaryTaskResult.cc
src/model/DeleteDataSourceRequest.cc
src/model/DeleteDataSourceResult.cc
src/model/DeleteDeviceRequest.cc
src/model/DeleteDeviceResult.cc
src/model/DeleteRecordsRequest.cc
src/model/DeleteRecordsResult.cc
src/model/DeleteVideoSummaryTaskRequest.cc
src/model/DeleteVideoSummaryTaskResult.cc
src/model/GetBodyOptionsRequest.cc
src/model/GetBodyOptionsResult.cc
src/model/GetDeviceLiveUrlRequest.cc
@@ -100,10 +130,18 @@ set(vcs_src
src/model/GetMonitorResultResult.cc
src/model/GetPersonDetailRequest.cc
src/model/GetPersonDetailResult.cc
src/model/GetVideoComposeResultRequest.cc
src/model/GetVideoComposeResultResult.cc
src/model/GetVideoSummaryTaskResultRequest.cc
src/model/GetVideoSummaryTaskResultResult.cc
src/model/ListBodyAlgorithmResultsRequest.cc
src/model/ListBodyAlgorithmResultsResult.cc
src/model/ListCorpsRequest.cc
src/model/ListCorpsResult.cc
src/model/ListDevicesRequest.cc
src/model/ListDevicesResult.cc
src/model/ListEventAlgorithmResultsRequest.cc
src/model/ListEventAlgorithmResultsResult.cc
src/model/ListFaceAlgorithmResultsRequest.cc
src/model/ListFaceAlgorithmResultsResult.cc
src/model/ListMetricsRequest.cc
@@ -127,7 +165,9 @@ set(vcs_src
src/model/UpdateDeviceRequest.cc
src/model/UpdateDeviceResult.cc
src/model/UpdateMonitorRequest.cc
src/model/UpdateMonitorResult.cc )
src/model/UpdateMonitorResult.cc
src/model/UploadFileRequest.cc
src/model/UploadFileResult.cc )
add_library(vcs ${LIB_TYPE}
${vcs_public_header}

View File

@@ -22,16 +22,26 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "VcsExport.h"
#include "model/AddDataSourceRequest.h"
#include "model/AddDataSourceResult.h"
#include "model/AddDeviceRequest.h"
#include "model/AddDeviceResult.h"
#include "model/AddMonitorRequest.h"
#include "model/AddMonitorResult.h"
#include "model/CreateCorpRequest.h"
#include "model/CreateCorpResult.h"
#include "model/CreateVideoComposeTaskRequest.h"
#include "model/CreateVideoComposeTaskResult.h"
#include "model/CreateVideoSummaryTaskRequest.h"
#include "model/CreateVideoSummaryTaskResult.h"
#include "model/DeleteDataSourceRequest.h"
#include "model/DeleteDataSourceResult.h"
#include "model/DeleteDeviceRequest.h"
#include "model/DeleteDeviceResult.h"
#include "model/DeleteRecordsRequest.h"
#include "model/DeleteRecordsResult.h"
#include "model/DeleteVideoSummaryTaskRequest.h"
#include "model/DeleteVideoSummaryTaskResult.h"
#include "model/GetBodyOptionsRequest.h"
#include "model/GetBodyOptionsResult.h"
#include "model/GetDeviceLiveUrlRequest.h"
@@ -46,10 +56,18 @@
#include "model/GetMonitorResultResult.h"
#include "model/GetPersonDetailRequest.h"
#include "model/GetPersonDetailResult.h"
#include "model/GetVideoComposeResultRequest.h"
#include "model/GetVideoComposeResultResult.h"
#include "model/GetVideoSummaryTaskResultRequest.h"
#include "model/GetVideoSummaryTaskResultResult.h"
#include "model/ListBodyAlgorithmResultsRequest.h"
#include "model/ListBodyAlgorithmResultsResult.h"
#include "model/ListCorpsRequest.h"
#include "model/ListCorpsResult.h"
#include "model/ListDevicesRequest.h"
#include "model/ListDevicesResult.h"
#include "model/ListEventAlgorithmResultsRequest.h"
#include "model/ListEventAlgorithmResultsResult.h"
#include "model/ListFaceAlgorithmResultsRequest.h"
#include "model/ListFaceAlgorithmResultsResult.h"
#include "model/ListMetricsRequest.h"
@@ -74,6 +92,8 @@
#include "model/UpdateDeviceResult.h"
#include "model/UpdateMonitorRequest.h"
#include "model/UpdateMonitorResult.h"
#include "model/UploadFileRequest.h"
#include "model/UploadFileResult.h"
namespace AlibabaCloud
@@ -83,6 +103,9 @@ namespace AlibabaCloud
class ALIBABACLOUD_VCS_EXPORT VcsClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AddDataSourceResult> AddDataSourceOutcome;
typedef std::future<AddDataSourceOutcome> AddDataSourceOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::AddDataSourceRequest&, const AddDataSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddDataSourceAsyncHandler;
typedef Outcome<Error, Model::AddDeviceResult> AddDeviceOutcome;
typedef std::future<AddDeviceOutcome> AddDeviceOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::AddDeviceRequest&, const AddDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddDeviceAsyncHandler;
@@ -92,12 +115,24 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateCorpResult> CreateCorpOutcome;
typedef std::future<CreateCorpOutcome> CreateCorpOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::CreateCorpRequest&, const CreateCorpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCorpAsyncHandler;
typedef Outcome<Error, Model::CreateVideoComposeTaskResult> CreateVideoComposeTaskOutcome;
typedef std::future<CreateVideoComposeTaskOutcome> CreateVideoComposeTaskOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::CreateVideoComposeTaskRequest&, const CreateVideoComposeTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVideoComposeTaskAsyncHandler;
typedef Outcome<Error, Model::CreateVideoSummaryTaskResult> CreateVideoSummaryTaskOutcome;
typedef std::future<CreateVideoSummaryTaskOutcome> CreateVideoSummaryTaskOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::CreateVideoSummaryTaskRequest&, const CreateVideoSummaryTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVideoSummaryTaskAsyncHandler;
typedef Outcome<Error, Model::DeleteDataSourceResult> DeleteDataSourceOutcome;
typedef std::future<DeleteDataSourceOutcome> DeleteDataSourceOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::DeleteDataSourceRequest&, const DeleteDataSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDataSourceAsyncHandler;
typedef Outcome<Error, Model::DeleteDeviceResult> DeleteDeviceOutcome;
typedef std::future<DeleteDeviceOutcome> DeleteDeviceOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::DeleteDeviceRequest&, const DeleteDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDeviceAsyncHandler;
typedef Outcome<Error, Model::DeleteRecordsResult> DeleteRecordsOutcome;
typedef std::future<DeleteRecordsOutcome> DeleteRecordsOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::DeleteRecordsRequest&, const DeleteRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRecordsAsyncHandler;
typedef Outcome<Error, Model::DeleteVideoSummaryTaskResult> DeleteVideoSummaryTaskOutcome;
typedef std::future<DeleteVideoSummaryTaskOutcome> DeleteVideoSummaryTaskOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::DeleteVideoSummaryTaskRequest&, const DeleteVideoSummaryTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteVideoSummaryTaskAsyncHandler;
typedef Outcome<Error, Model::GetBodyOptionsResult> GetBodyOptionsOutcome;
typedef std::future<GetBodyOptionsOutcome> GetBodyOptionsOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::GetBodyOptionsRequest&, const GetBodyOptionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetBodyOptionsAsyncHandler;
@@ -119,12 +154,24 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetPersonDetailResult> GetPersonDetailOutcome;
typedef std::future<GetPersonDetailOutcome> GetPersonDetailOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::GetPersonDetailRequest&, const GetPersonDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPersonDetailAsyncHandler;
typedef Outcome<Error, Model::GetVideoComposeResultResult> GetVideoComposeResultOutcome;
typedef std::future<GetVideoComposeResultOutcome> GetVideoComposeResultOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::GetVideoComposeResultRequest&, const GetVideoComposeResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetVideoComposeResultAsyncHandler;
typedef Outcome<Error, Model::GetVideoSummaryTaskResultResult> GetVideoSummaryTaskResultOutcome;
typedef std::future<GetVideoSummaryTaskResultOutcome> GetVideoSummaryTaskResultOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::GetVideoSummaryTaskResultRequest&, const GetVideoSummaryTaskResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetVideoSummaryTaskResultAsyncHandler;
typedef Outcome<Error, Model::ListBodyAlgorithmResultsResult> ListBodyAlgorithmResultsOutcome;
typedef std::future<ListBodyAlgorithmResultsOutcome> ListBodyAlgorithmResultsOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::ListBodyAlgorithmResultsRequest&, const ListBodyAlgorithmResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListBodyAlgorithmResultsAsyncHandler;
typedef Outcome<Error, Model::ListCorpsResult> ListCorpsOutcome;
typedef std::future<ListCorpsOutcome> ListCorpsOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::ListCorpsRequest&, const ListCorpsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCorpsAsyncHandler;
typedef Outcome<Error, Model::ListDevicesResult> ListDevicesOutcome;
typedef std::future<ListDevicesOutcome> ListDevicesOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::ListDevicesRequest&, const ListDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDevicesAsyncHandler;
typedef Outcome<Error, Model::ListEventAlgorithmResultsResult> ListEventAlgorithmResultsOutcome;
typedef std::future<ListEventAlgorithmResultsOutcome> ListEventAlgorithmResultsOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::ListEventAlgorithmResultsRequest&, const ListEventAlgorithmResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListEventAlgorithmResultsAsyncHandler;
typedef Outcome<Error, Model::ListFaceAlgorithmResultsResult> ListFaceAlgorithmResultsOutcome;
typedef std::future<ListFaceAlgorithmResultsOutcome> ListFaceAlgorithmResultsOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::ListFaceAlgorithmResultsRequest&, const ListFaceAlgorithmResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFaceAlgorithmResultsAsyncHandler;
@@ -161,11 +208,17 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateMonitorResult> UpdateMonitorOutcome;
typedef std::future<UpdateMonitorOutcome> UpdateMonitorOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::UpdateMonitorRequest&, const UpdateMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateMonitorAsyncHandler;
typedef Outcome<Error, Model::UploadFileResult> UploadFileOutcome;
typedef std::future<UploadFileOutcome> UploadFileOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::UploadFileRequest&, const UploadFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UploadFileAsyncHandler;
VcsClient(const Credentials &credentials, const ClientConfiguration &configuration);
VcsClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
VcsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~VcsClient();
AddDataSourceOutcome addDataSource(const Model::AddDataSourceRequest &request)const;
void addDataSourceAsync(const Model::AddDataSourceRequest& request, const AddDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddDataSourceOutcomeCallable addDataSourceCallable(const Model::AddDataSourceRequest& request) const;
AddDeviceOutcome addDevice(const Model::AddDeviceRequest &request)const;
void addDeviceAsync(const Model::AddDeviceRequest& request, const AddDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddDeviceOutcomeCallable addDeviceCallable(const Model::AddDeviceRequest& request) const;
@@ -175,12 +228,24 @@ namespace AlibabaCloud
CreateCorpOutcome createCorp(const Model::CreateCorpRequest &request)const;
void createCorpAsync(const Model::CreateCorpRequest& request, const CreateCorpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateCorpOutcomeCallable createCorpCallable(const Model::CreateCorpRequest& request) const;
CreateVideoComposeTaskOutcome createVideoComposeTask(const Model::CreateVideoComposeTaskRequest &request)const;
void createVideoComposeTaskAsync(const Model::CreateVideoComposeTaskRequest& request, const CreateVideoComposeTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateVideoComposeTaskOutcomeCallable createVideoComposeTaskCallable(const Model::CreateVideoComposeTaskRequest& request) const;
CreateVideoSummaryTaskOutcome createVideoSummaryTask(const Model::CreateVideoSummaryTaskRequest &request)const;
void createVideoSummaryTaskAsync(const Model::CreateVideoSummaryTaskRequest& request, const CreateVideoSummaryTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateVideoSummaryTaskOutcomeCallable createVideoSummaryTaskCallable(const Model::CreateVideoSummaryTaskRequest& request) const;
DeleteDataSourceOutcome deleteDataSource(const Model::DeleteDataSourceRequest &request)const;
void deleteDataSourceAsync(const Model::DeleteDataSourceRequest& request, const DeleteDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDataSourceOutcomeCallable deleteDataSourceCallable(const Model::DeleteDataSourceRequest& request) const;
DeleteDeviceOutcome deleteDevice(const Model::DeleteDeviceRequest &request)const;
void deleteDeviceAsync(const Model::DeleteDeviceRequest& request, const DeleteDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDeviceOutcomeCallable deleteDeviceCallable(const Model::DeleteDeviceRequest& request) const;
DeleteRecordsOutcome deleteRecords(const Model::DeleteRecordsRequest &request)const;
void deleteRecordsAsync(const Model::DeleteRecordsRequest& request, const DeleteRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteRecordsOutcomeCallable deleteRecordsCallable(const Model::DeleteRecordsRequest& request) const;
DeleteVideoSummaryTaskOutcome deleteVideoSummaryTask(const Model::DeleteVideoSummaryTaskRequest &request)const;
void deleteVideoSummaryTaskAsync(const Model::DeleteVideoSummaryTaskRequest& request, const DeleteVideoSummaryTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteVideoSummaryTaskOutcomeCallable deleteVideoSummaryTaskCallable(const Model::DeleteVideoSummaryTaskRequest& request) const;
GetBodyOptionsOutcome getBodyOptions(const Model::GetBodyOptionsRequest &request)const;
void getBodyOptionsAsync(const Model::GetBodyOptionsRequest& request, const GetBodyOptionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetBodyOptionsOutcomeCallable getBodyOptionsCallable(const Model::GetBodyOptionsRequest& request) const;
@@ -202,12 +267,24 @@ namespace AlibabaCloud
GetPersonDetailOutcome getPersonDetail(const Model::GetPersonDetailRequest &request)const;
void getPersonDetailAsync(const Model::GetPersonDetailRequest& request, const GetPersonDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPersonDetailOutcomeCallable getPersonDetailCallable(const Model::GetPersonDetailRequest& request) const;
GetVideoComposeResultOutcome getVideoComposeResult(const Model::GetVideoComposeResultRequest &request)const;
void getVideoComposeResultAsync(const Model::GetVideoComposeResultRequest& request, const GetVideoComposeResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetVideoComposeResultOutcomeCallable getVideoComposeResultCallable(const Model::GetVideoComposeResultRequest& request) const;
GetVideoSummaryTaskResultOutcome getVideoSummaryTaskResult(const Model::GetVideoSummaryTaskResultRequest &request)const;
void getVideoSummaryTaskResultAsync(const Model::GetVideoSummaryTaskResultRequest& request, const GetVideoSummaryTaskResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetVideoSummaryTaskResultOutcomeCallable getVideoSummaryTaskResultCallable(const Model::GetVideoSummaryTaskResultRequest& request) const;
ListBodyAlgorithmResultsOutcome listBodyAlgorithmResults(const Model::ListBodyAlgorithmResultsRequest &request)const;
void listBodyAlgorithmResultsAsync(const Model::ListBodyAlgorithmResultsRequest& request, const ListBodyAlgorithmResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListBodyAlgorithmResultsOutcomeCallable listBodyAlgorithmResultsCallable(const Model::ListBodyAlgorithmResultsRequest& request) const;
ListCorpsOutcome listCorps(const Model::ListCorpsRequest &request)const;
void listCorpsAsync(const Model::ListCorpsRequest& request, const ListCorpsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCorpsOutcomeCallable listCorpsCallable(const Model::ListCorpsRequest& request) const;
ListDevicesOutcome listDevices(const Model::ListDevicesRequest &request)const;
void listDevicesAsync(const Model::ListDevicesRequest& request, const ListDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDevicesOutcomeCallable listDevicesCallable(const Model::ListDevicesRequest& request) const;
ListEventAlgorithmResultsOutcome listEventAlgorithmResults(const Model::ListEventAlgorithmResultsRequest &request)const;
void listEventAlgorithmResultsAsync(const Model::ListEventAlgorithmResultsRequest& request, const ListEventAlgorithmResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListEventAlgorithmResultsOutcomeCallable listEventAlgorithmResultsCallable(const Model::ListEventAlgorithmResultsRequest& request) const;
ListFaceAlgorithmResultsOutcome listFaceAlgorithmResults(const Model::ListFaceAlgorithmResultsRequest &request)const;
void listFaceAlgorithmResultsAsync(const Model::ListFaceAlgorithmResultsRequest& request, const ListFaceAlgorithmResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListFaceAlgorithmResultsOutcomeCallable listFaceAlgorithmResultsCallable(const Model::ListFaceAlgorithmResultsRequest& request) const;
@@ -244,6 +321,9 @@ namespace AlibabaCloud
UpdateMonitorOutcome updateMonitor(const Model::UpdateMonitorRequest &request)const;
void updateMonitorAsync(const Model::UpdateMonitorRequest& request, const UpdateMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateMonitorOutcomeCallable updateMonitorCallable(const Model::UpdateMonitorRequest& request) const;
UploadFileOutcome uploadFile(const Model::UploadFileRequest &request)const;
void uploadFileAsync(const Model::UploadFileRequest& request, const UploadFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UploadFileOutcomeCallable uploadFileCallable(const Model::UploadFileRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -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_VCS_MODEL_ADDDATASOURCEREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_ADDDATASOURCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT AddDataSourceRequest : public RpcServiceRequest
{
public:
AddDataSourceRequest();
~AddDataSourceRequest();
std::string getDataSourceType()const;
void setDataSourceType(const std::string& dataSourceType);
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getDataSourceName()const;
void setDataSourceName(const std::string& dataSourceName);
private:
std::string dataSourceType_;
std::string corpId_;
std::string description_;
std::string dataSourceName_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_ADDDATASOURCEREQUEST_H_

View File

@@ -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_VCS_MODEL_ADDDATASOURCERESULT_H_
#define ALIBABACLOUD_VCS_MODEL_ADDDATASOURCERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT AddDataSourceResult : public ServiceResult
{
public:
struct Data
{
std::string kafkaTopic;
std::string ossPath;
std::string dataSourceId;
};
AddDataSourceResult();
explicit AddDataSourceResult(const std::string &payload);
~AddDataSourceResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_ADDDATASOURCERESULT_H_

View File

@@ -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_VCS_MODEL_CREATEVIDEOCOMPOSETASKREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_CREATEVIDEOCOMPOSETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT CreateVideoComposeTaskRequest : public RpcServiceRequest
{
public:
CreateVideoComposeTaskRequest();
~CreateVideoComposeTaskRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
int getVideoFrameRate()const;
void setVideoFrameRate(int videoFrameRate);
std::string getImageFileNames()const;
void setImageFileNames(const std::string& imageFileNames);
std::string getAudioFileName()const;
void setAudioFileName(const std::string& audioFileName);
std::string getBucketName()const;
void setBucketName(const std::string& bucketName);
std::string getImageParameters()const;
void setImageParameters(const std::string& imageParameters);
std::string getVideoFormat()const;
void setVideoFormat(const std::string& videoFormat);
private:
std::string corpId_;
std::string domainName_;
int videoFrameRate_;
std::string imageFileNames_;
std::string audioFileName_;
std::string bucketName_;
std::string imageParameters_;
std::string videoFormat_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_CREATEVIDEOCOMPOSETASKREQUEST_H_

View File

@@ -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_VCS_MODEL_CREATEVIDEOCOMPOSETASKRESULT_H_
#define ALIBABACLOUD_VCS_MODEL_CREATEVIDEOCOMPOSETASKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT CreateVideoComposeTaskResult : public ServiceResult
{
public:
CreateVideoComposeTaskResult();
explicit CreateVideoComposeTaskResult(const std::string &payload);
~CreateVideoComposeTaskResult();
std::string getBucketName()const;
std::string getMessage()const;
std::string getDomainName()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string bucketName_;
std::string message_;
std::string domainName_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_CREATEVIDEOCOMPOSETASKRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* 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_VCS_MODEL_CREATEVIDEOSUMMARYTASKREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_CREATEVIDEOSUMMARYTASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT CreateVideoSummaryTaskRequest : public RpcServiceRequest
{
public:
CreateVideoSummaryTaskRequest();
~CreateVideoSummaryTaskRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getLiveVideoSummary()const;
void setLiveVideoSummary(const std::string& liveVideoSummary);
std::string getStartTimeStamp()const;
void setStartTimeStamp(const std::string& startTimeStamp);
std::string getDeviceId()const;
void setDeviceId(const std::string& deviceId);
std::string getEndTimeStamp()const;
void setEndTimeStamp(const std::string& endTimeStamp);
std::string getOptionList()const;
void setOptionList(const std::string& optionList);
private:
std::string corpId_;
std::string liveVideoSummary_;
std::string startTimeStamp_;
std::string deviceId_;
std::string endTimeStamp_;
std::string optionList_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_CREATEVIDEOSUMMARYTASKREQUEST_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_VCS_MODEL_CREATEVIDEOSUMMARYTASKRESULT_H_
#define ALIBABACLOUD_VCS_MODEL_CREATEVIDEOSUMMARYTASKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT CreateVideoSummaryTaskResult : public ServiceResult
{
public:
CreateVideoSummaryTaskResult();
explicit CreateVideoSummaryTaskResult(const std::string &payload);
~CreateVideoSummaryTaskResult();
std::string getMessage()const;
std::string getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_CREATEVIDEOSUMMARYTASKRESULT_H_

View File

@@ -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_VCS_MODEL_DELETEDATASOURCEREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_DELETEDATASOURCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT DeleteDataSourceRequest : public RpcServiceRequest
{
public:
DeleteDataSourceRequest();
~DeleteDataSourceRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getDataSourceId()const;
void setDataSourceId(const std::string& dataSourceId);
private:
std::string corpId_;
std::string dataSourceId_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_DELETEDATASOURCEREQUEST_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_VCS_MODEL_DELETEDATASOURCERESULT_H_
#define ALIBABACLOUD_VCS_MODEL_DELETEDATASOURCERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT DeleteDataSourceResult : public ServiceResult
{
public:
DeleteDataSourceResult();
explicit DeleteDataSourceResult(const std::string &payload);
~DeleteDataSourceResult();
std::string getMessage()const;
std::string getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_DELETEDATASOURCERESULT_H_

View File

@@ -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_VCS_MODEL_DELETEVIDEOSUMMARYTASKREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_DELETEVIDEOSUMMARYTASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT DeleteVideoSummaryTaskRequest : public RpcServiceRequest
{
public:
DeleteVideoSummaryTaskRequest();
~DeleteVideoSummaryTaskRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string corpId_;
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_DELETEVIDEOSUMMARYTASKREQUEST_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_VCS_MODEL_DELETEVIDEOSUMMARYTASKRESULT_H_
#define ALIBABACLOUD_VCS_MODEL_DELETEVIDEOSUMMARYTASKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT DeleteVideoSummaryTaskResult : public ServiceResult
{
public:
DeleteVideoSummaryTaskResult();
explicit DeleteVideoSummaryTaskResult(const std::string &payload);
~DeleteVideoSummaryTaskResult();
std::string getMessage()const;
std::string getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_DELETEVIDEOSUMMARYTASKRESULT_H_

View File

@@ -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_VCS_MODEL_GETVIDEOCOMPOSERESULTREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_GETVIDEOCOMPOSERESULTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT GetVideoComposeResultRequest : public RpcServiceRequest
{
public:
GetVideoComposeResultRequest();
~GetVideoComposeResultRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getTaskRequestId()const;
void setTaskRequestId(const std::string& taskRequestId);
private:
std::string corpId_;
std::string taskRequestId_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_GETVIDEOCOMPOSERESULTREQUEST_H_

View File

@@ -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_VCS_MODEL_GETVIDEOCOMPOSERESULTRESULT_H_
#define ALIBABACLOUD_VCS_MODEL_GETVIDEOCOMPOSERESULTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT GetVideoComposeResultResult : public ServiceResult
{
public:
GetVideoComposeResultResult();
explicit GetVideoComposeResultResult(const std::string &payload);
~GetVideoComposeResultResult();
std::string getStatus()const;
std::string getMessage()const;
std::string getCode()const;
std::string getVideoUrl()const;
protected:
void parse(const std::string &payload);
private:
std::string status_;
std::string message_;
std::string code_;
std::string videoUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_GETVIDEOCOMPOSERESULTRESULT_H_

View File

@@ -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_VCS_MODEL_GETVIDEOSUMMARYTASKRESULTREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_GETVIDEOSUMMARYTASKRESULTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT GetVideoSummaryTaskResultRequest : public RpcServiceRequest
{
public:
GetVideoSummaryTaskResultRequest();
~GetVideoSummaryTaskResultRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string corpId_;
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_GETVIDEOSUMMARYTASKRESULTREQUEST_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_VCS_MODEL_GETVIDEOSUMMARYTASKRESULTRESULT_H_
#define ALIBABACLOUD_VCS_MODEL_GETVIDEOSUMMARYTASKRESULTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT GetVideoSummaryTaskResultResult : public ServiceResult
{
public:
GetVideoSummaryTaskResultResult();
explicit GetVideoSummaryTaskResultResult(const std::string &payload);
~GetVideoSummaryTaskResultResult();
std::string getMessage()const;
std::string getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_GETVIDEOSUMMARYTASKRESULTRESULT_H_

View File

@@ -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_VCS_MODEL_LISTBODYALGORITHMRESULTSREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_LISTBODYALGORITHMRESULTSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT ListBodyAlgorithmResultsRequest : public RpcServiceRequest
{
public:
ListBodyAlgorithmResultsRequest();
~ListBodyAlgorithmResultsRequest();
std::string getAlgorithmType()const;
void setAlgorithmType(const std::string& algorithmType);
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getCapStyle()const;
void setCapStyle(const std::string& capStyle);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getPageNumber()const;
void setPageNumber(const std::string& pageNumber);
std::string getDataSourceId()const;
void setDataSourceId(const std::string& dataSourceId);
std::string getPageSize()const;
void setPageSize(const std::string& pageSize);
private:
std::string algorithmType_;
std::string corpId_;
std::string capStyle_;
std::string endTime_;
std::string startTime_;
std::string pageNumber_;
std::string dataSourceId_;
std::string pageSize_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_LISTBODYALGORITHMRESULTSREQUEST_H_

View File

@@ -0,0 +1,81 @@
/*
* 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_VCS_MODEL_LISTBODYALGORITHMRESULTSRESULT_H_
#define ALIBABACLOUD_VCS_MODEL_LISTBODYALGORITHMRESULTSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT ListBodyAlgorithmResultsResult : public ServiceResult
{
public:
struct Data
{
struct RecordsItem
{
std::string genderCode;
std::string picUrlPath;
std::string corpId;
float rightBottomX;
float rightBottomY;
std::string targetPicUrlPath;
std::string maxAge;
float leftTopY;
std::string capStyle;
float leftTopX;
std::string minAge;
std::string personId;
std::string shotTime;
std::string dataSourceId;
std::string hairStyle;
};
int totalCount;
int pageSize;
int totalPage;
int pageNumber;
std::vector<RecordsItem> records;
};
ListBodyAlgorithmResultsResult();
explicit ListBodyAlgorithmResultsResult(const std::string &payload);
~ListBodyAlgorithmResultsResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_LISTBODYALGORITHMRESULTSRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* 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_VCS_MODEL_LISTEVENTALGORITHMRESULTSREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_LISTEVENTALGORITHMRESULTSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT ListEventAlgorithmResultsRequest : public RpcServiceRequest
{
public:
ListEventAlgorithmResultsRequest();
~ListEventAlgorithmResultsRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getPageNumber()const;
void setPageNumber(const std::string& pageNumber);
std::string getDataSourceId()const;
void setDataSourceId(const std::string& dataSourceId);
std::string getPageSize()const;
void setPageSize(const std::string& pageSize);
std::string getEventType()const;
void setEventType(const std::string& eventType);
private:
std::string corpId_;
std::string endTime_;
std::string startTime_;
std::string pageNumber_;
std::string dataSourceId_;
std::string pageSize_;
std::string eventType_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_LISTEVENTALGORITHMRESULTSREQUEST_H_

View File

@@ -0,0 +1,74 @@
/*
* 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_VCS_MODEL_LISTEVENTALGORITHMRESULTSRESULT_H_
#define ALIBABACLOUD_VCS_MODEL_LISTEVENTALGORITHMRESULTSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT ListEventAlgorithmResultsResult : public ServiceResult
{
public:
struct Data
{
struct RecordsItem
{
std::string picUrlPath;
std::string corpId;
std::string eventType;
std::string targetPicUrlPath;
std::string shotTime;
std::string capStyle;
std::string faceCount;
std::string dataSourceId;
};
int totalCount;
int pageSize;
int totalPage;
int pageNumber;
std::vector<RecordsItem> records;
};
ListEventAlgorithmResultsResult();
explicit ListEventAlgorithmResultsResult(const std::string &payload);
~ListEventAlgorithmResultsResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_LISTEVENTALGORITHMRESULTSRESULT_H_

View File

@@ -36,16 +36,18 @@ namespace AlibabaCloud
{
struct RecordsItem
{
std::string motorId;
std::string picUrlPath;
std::string plateNumber;
std::string corpId;
float rightBottomX;
float rightBottomY;
std::string targetPicUrlPath;
std::string shotTime;
float leftTopY;
std::string motorModel;
float leftTopX;
std::string motorId;
std::string motorStyle;
std::string shotTime;
std::string dataSourceId;
};
int totalCount;

View File

@@ -34,8 +34,20 @@ namespace AlibabaCloud
public:
struct Data
{
struct Attributes
{
std::string faceQuality;
int rightBottomX;
int rightBottomY;
std::string faceStyle;
int leftTopY;
int leftTopX;
std::string targetImageStoragePath;
std::string faceScore;
};
std::string description;
std::string qualityScore;
Attributes attributes;
};

View File

@@ -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_VCS_MODEL_UPLOADFILEREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_UPLOADFILEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT UploadFileRequest : public RpcServiceRequest
{
public:
UploadFileRequest();
~UploadFileRequest();
std::string getFileType()const;
void setFileType(const std::string& fileType);
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getFileAliasName()const;
void setFileAliasName(const std::string& fileAliasName);
std::string getFileName()const;
void setFileName(const std::string& fileName);
std::string getFilePath()const;
void setFilePath(const std::string& filePath);
std::string getFileContent()const;
void setFileContent(const std::string& fileContent);
std::string getDataSourceId()const;
void setDataSourceId(const std::string& dataSourceId);
std::string getMD5()const;
void setMD5(const std::string& mD5);
private:
std::string fileType_;
std::string corpId_;
std::string fileAliasName_;
std::string fileName_;
std::string filePath_;
std::string fileContent_;
std::string dataSourceId_;
std::string mD5_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_UPLOADFILEREQUEST_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_VCS_MODEL_UPLOADFILERESULT_H_
#define ALIBABACLOUD_VCS_MODEL_UPLOADFILERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT UploadFileResult : public ServiceResult
{
public:
UploadFileResult();
explicit UploadFileResult(const std::string &payload);
~UploadFileResult();
std::string getMessage()const;
std::string getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_UPLOADFILERESULT_H_

View File

@@ -51,6 +51,42 @@ VcsClient::VcsClient(const std::string & accessKeyId, const std::string & access
VcsClient::~VcsClient()
{}
VcsClient::AddDataSourceOutcome VcsClient::addDataSource(const AddDataSourceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddDataSourceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddDataSourceOutcome(AddDataSourceResult(outcome.result()));
else
return AddDataSourceOutcome(outcome.error());
}
void VcsClient::addDataSourceAsync(const AddDataSourceRequest& request, const AddDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addDataSource(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::AddDataSourceOutcomeCallable VcsClient::addDataSourceCallable(const AddDataSourceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddDataSourceOutcome()>>(
[this, request]()
{
return this->addDataSource(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::AddDeviceOutcome VcsClient::addDevice(const AddDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -159,6 +195,114 @@ VcsClient::CreateCorpOutcomeCallable VcsClient::createCorpCallable(const CreateC
return task->get_future();
}
VcsClient::CreateVideoComposeTaskOutcome VcsClient::createVideoComposeTask(const CreateVideoComposeTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateVideoComposeTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateVideoComposeTaskOutcome(CreateVideoComposeTaskResult(outcome.result()));
else
return CreateVideoComposeTaskOutcome(outcome.error());
}
void VcsClient::createVideoComposeTaskAsync(const CreateVideoComposeTaskRequest& request, const CreateVideoComposeTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createVideoComposeTask(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::CreateVideoComposeTaskOutcomeCallable VcsClient::createVideoComposeTaskCallable(const CreateVideoComposeTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateVideoComposeTaskOutcome()>>(
[this, request]()
{
return this->createVideoComposeTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::CreateVideoSummaryTaskOutcome VcsClient::createVideoSummaryTask(const CreateVideoSummaryTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateVideoSummaryTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateVideoSummaryTaskOutcome(CreateVideoSummaryTaskResult(outcome.result()));
else
return CreateVideoSummaryTaskOutcome(outcome.error());
}
void VcsClient::createVideoSummaryTaskAsync(const CreateVideoSummaryTaskRequest& request, const CreateVideoSummaryTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createVideoSummaryTask(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::CreateVideoSummaryTaskOutcomeCallable VcsClient::createVideoSummaryTaskCallable(const CreateVideoSummaryTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateVideoSummaryTaskOutcome()>>(
[this, request]()
{
return this->createVideoSummaryTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::DeleteDataSourceOutcome VcsClient::deleteDataSource(const DeleteDataSourceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteDataSourceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteDataSourceOutcome(DeleteDataSourceResult(outcome.result()));
else
return DeleteDataSourceOutcome(outcome.error());
}
void VcsClient::deleteDataSourceAsync(const DeleteDataSourceRequest& request, const DeleteDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteDataSource(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::DeleteDataSourceOutcomeCallable VcsClient::deleteDataSourceCallable(const DeleteDataSourceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteDataSourceOutcome()>>(
[this, request]()
{
return this->deleteDataSource(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::DeleteDeviceOutcome VcsClient::deleteDevice(const DeleteDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -231,6 +375,42 @@ VcsClient::DeleteRecordsOutcomeCallable VcsClient::deleteRecordsCallable(const D
return task->get_future();
}
VcsClient::DeleteVideoSummaryTaskOutcome VcsClient::deleteVideoSummaryTask(const DeleteVideoSummaryTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteVideoSummaryTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteVideoSummaryTaskOutcome(DeleteVideoSummaryTaskResult(outcome.result()));
else
return DeleteVideoSummaryTaskOutcome(outcome.error());
}
void VcsClient::deleteVideoSummaryTaskAsync(const DeleteVideoSummaryTaskRequest& request, const DeleteVideoSummaryTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteVideoSummaryTask(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::DeleteVideoSummaryTaskOutcomeCallable VcsClient::deleteVideoSummaryTaskCallable(const DeleteVideoSummaryTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteVideoSummaryTaskOutcome()>>(
[this, request]()
{
return this->deleteVideoSummaryTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::GetBodyOptionsOutcome VcsClient::getBodyOptions(const GetBodyOptionsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -483,6 +663,114 @@ VcsClient::GetPersonDetailOutcomeCallable VcsClient::getPersonDetailCallable(con
return task->get_future();
}
VcsClient::GetVideoComposeResultOutcome VcsClient::getVideoComposeResult(const GetVideoComposeResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetVideoComposeResultOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetVideoComposeResultOutcome(GetVideoComposeResultResult(outcome.result()));
else
return GetVideoComposeResultOutcome(outcome.error());
}
void VcsClient::getVideoComposeResultAsync(const GetVideoComposeResultRequest& request, const GetVideoComposeResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getVideoComposeResult(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::GetVideoComposeResultOutcomeCallable VcsClient::getVideoComposeResultCallable(const GetVideoComposeResultRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetVideoComposeResultOutcome()>>(
[this, request]()
{
return this->getVideoComposeResult(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::GetVideoSummaryTaskResultOutcome VcsClient::getVideoSummaryTaskResult(const GetVideoSummaryTaskResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetVideoSummaryTaskResultOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetVideoSummaryTaskResultOutcome(GetVideoSummaryTaskResultResult(outcome.result()));
else
return GetVideoSummaryTaskResultOutcome(outcome.error());
}
void VcsClient::getVideoSummaryTaskResultAsync(const GetVideoSummaryTaskResultRequest& request, const GetVideoSummaryTaskResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getVideoSummaryTaskResult(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::GetVideoSummaryTaskResultOutcomeCallable VcsClient::getVideoSummaryTaskResultCallable(const GetVideoSummaryTaskResultRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetVideoSummaryTaskResultOutcome()>>(
[this, request]()
{
return this->getVideoSummaryTaskResult(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::ListBodyAlgorithmResultsOutcome VcsClient::listBodyAlgorithmResults(const ListBodyAlgorithmResultsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListBodyAlgorithmResultsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListBodyAlgorithmResultsOutcome(ListBodyAlgorithmResultsResult(outcome.result()));
else
return ListBodyAlgorithmResultsOutcome(outcome.error());
}
void VcsClient::listBodyAlgorithmResultsAsync(const ListBodyAlgorithmResultsRequest& request, const ListBodyAlgorithmResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listBodyAlgorithmResults(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::ListBodyAlgorithmResultsOutcomeCallable VcsClient::listBodyAlgorithmResultsCallable(const ListBodyAlgorithmResultsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListBodyAlgorithmResultsOutcome()>>(
[this, request]()
{
return this->listBodyAlgorithmResults(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::ListCorpsOutcome VcsClient::listCorps(const ListCorpsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -555,6 +843,42 @@ VcsClient::ListDevicesOutcomeCallable VcsClient::listDevicesCallable(const ListD
return task->get_future();
}
VcsClient::ListEventAlgorithmResultsOutcome VcsClient::listEventAlgorithmResults(const ListEventAlgorithmResultsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListEventAlgorithmResultsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListEventAlgorithmResultsOutcome(ListEventAlgorithmResultsResult(outcome.result()));
else
return ListEventAlgorithmResultsOutcome(outcome.error());
}
void VcsClient::listEventAlgorithmResultsAsync(const ListEventAlgorithmResultsRequest& request, const ListEventAlgorithmResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listEventAlgorithmResults(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::ListEventAlgorithmResultsOutcomeCallable VcsClient::listEventAlgorithmResultsCallable(const ListEventAlgorithmResultsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListEventAlgorithmResultsOutcome()>>(
[this, request]()
{
return this->listEventAlgorithmResults(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::ListFaceAlgorithmResultsOutcome VcsClient::listFaceAlgorithmResults(const ListFaceAlgorithmResultsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -987,3 +1311,39 @@ VcsClient::UpdateMonitorOutcomeCallable VcsClient::updateMonitorCallable(const U
return task->get_future();
}
VcsClient::UploadFileOutcome VcsClient::uploadFile(const UploadFileRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UploadFileOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UploadFileOutcome(UploadFileResult(outcome.result()));
else
return UploadFileOutcome(outcome.error());
}
void VcsClient::uploadFileAsync(const UploadFileRequest& request, const UploadFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, uploadFile(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::UploadFileOutcomeCallable VcsClient::uploadFileCallable(const UploadFileRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UploadFileOutcome()>>(
[this, request]()
{
return this->uploadFile(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -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 <alibabacloud/vcs/model/AddDataSourceRequest.h>
using AlibabaCloud::Vcs::Model::AddDataSourceRequest;
AddDataSourceRequest::AddDataSourceRequest() :
RpcServiceRequest("vcs", "2020-05-15", "AddDataSource")
{
setMethod(HttpRequest::Method::Post);
}
AddDataSourceRequest::~AddDataSourceRequest()
{}
std::string AddDataSourceRequest::getDataSourceType()const
{
return dataSourceType_;
}
void AddDataSourceRequest::setDataSourceType(const std::string& dataSourceType)
{
dataSourceType_ = dataSourceType;
setBodyParameter("DataSourceType", dataSourceType);
}
std::string AddDataSourceRequest::getCorpId()const
{
return corpId_;
}
void AddDataSourceRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string AddDataSourceRequest::getDescription()const
{
return description_;
}
void AddDataSourceRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
}
std::string AddDataSourceRequest::getDataSourceName()const
{
return dataSourceName_;
}
void AddDataSourceRequest::setDataSourceName(const std::string& dataSourceName)
{
dataSourceName_ = dataSourceName;
setBodyParameter("DataSourceName", dataSourceName);
}

View File

@@ -0,0 +1,70 @@
/*
* 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/vcs/model/AddDataSourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
AddDataSourceResult::AddDataSourceResult() :
ServiceResult()
{}
AddDataSourceResult::AddDataSourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddDataSourceResult::~AddDataSourceResult()
{}
void AddDataSourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["DataSourceId"].isNull())
data_.dataSourceId = dataNode["DataSourceId"].asString();
if(!dataNode["KafkaTopic"].isNull())
data_.kafkaTopic = dataNode["KafkaTopic"].asString();
if(!dataNode["OssPath"].isNull())
data_.ossPath = dataNode["OssPath"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string AddDataSourceResult::getMessage()const
{
return message_;
}
AddDataSourceResult::Data AddDataSourceResult::getData()const
{
return data_;
}
std::string AddDataSourceResult::getCode()const
{
return code_;
}

View File

@@ -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 <alibabacloud/vcs/model/CreateVideoComposeTaskRequest.h>
using AlibabaCloud::Vcs::Model::CreateVideoComposeTaskRequest;
CreateVideoComposeTaskRequest::CreateVideoComposeTaskRequest() :
RpcServiceRequest("vcs", "2020-05-15", "CreateVideoComposeTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateVideoComposeTaskRequest::~CreateVideoComposeTaskRequest()
{}
std::string CreateVideoComposeTaskRequest::getCorpId()const
{
return corpId_;
}
void CreateVideoComposeTaskRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string CreateVideoComposeTaskRequest::getDomainName()const
{
return domainName_;
}
void CreateVideoComposeTaskRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setBodyParameter("DomainName", domainName);
}
int CreateVideoComposeTaskRequest::getVideoFrameRate()const
{
return videoFrameRate_;
}
void CreateVideoComposeTaskRequest::setVideoFrameRate(int videoFrameRate)
{
videoFrameRate_ = videoFrameRate;
setBodyParameter("VideoFrameRate", std::to_string(videoFrameRate));
}
std::string CreateVideoComposeTaskRequest::getImageFileNames()const
{
return imageFileNames_;
}
void CreateVideoComposeTaskRequest::setImageFileNames(const std::string& imageFileNames)
{
imageFileNames_ = imageFileNames;
setBodyParameter("ImageFileNames", imageFileNames);
}
std::string CreateVideoComposeTaskRequest::getAudioFileName()const
{
return audioFileName_;
}
void CreateVideoComposeTaskRequest::setAudioFileName(const std::string& audioFileName)
{
audioFileName_ = audioFileName;
setBodyParameter("AudioFileName", audioFileName);
}
std::string CreateVideoComposeTaskRequest::getBucketName()const
{
return bucketName_;
}
void CreateVideoComposeTaskRequest::setBucketName(const std::string& bucketName)
{
bucketName_ = bucketName;
setBodyParameter("BucketName", bucketName);
}
std::string CreateVideoComposeTaskRequest::getImageParameters()const
{
return imageParameters_;
}
void CreateVideoComposeTaskRequest::setImageParameters(const std::string& imageParameters)
{
imageParameters_ = imageParameters;
setBodyParameter("ImageParameters", imageParameters);
}
std::string CreateVideoComposeTaskRequest::getVideoFormat()const
{
return videoFormat_;
}
void CreateVideoComposeTaskRequest::setVideoFormat(const std::string& videoFormat)
{
videoFormat_ = videoFormat;
setBodyParameter("VideoFormat", videoFormat);
}

View File

@@ -0,0 +1,72 @@
/*
* 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/vcs/model/CreateVideoComposeTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
CreateVideoComposeTaskResult::CreateVideoComposeTaskResult() :
ServiceResult()
{}
CreateVideoComposeTaskResult::CreateVideoComposeTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateVideoComposeTaskResult::~CreateVideoComposeTaskResult()
{}
void CreateVideoComposeTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["BucketName"].isNull())
bucketName_ = value["BucketName"].asString();
}
std::string CreateVideoComposeTaskResult::getBucketName()const
{
return bucketName_;
}
std::string CreateVideoComposeTaskResult::getMessage()const
{
return message_;
}
std::string CreateVideoComposeTaskResult::getDomainName()const
{
return domainName_;
}
std::string CreateVideoComposeTaskResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,95 @@
/*
* 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/vcs/model/CreateVideoSummaryTaskRequest.h>
using AlibabaCloud::Vcs::Model::CreateVideoSummaryTaskRequest;
CreateVideoSummaryTaskRequest::CreateVideoSummaryTaskRequest() :
RpcServiceRequest("vcs", "2020-05-15", "CreateVideoSummaryTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateVideoSummaryTaskRequest::~CreateVideoSummaryTaskRequest()
{}
std::string CreateVideoSummaryTaskRequest::getCorpId()const
{
return corpId_;
}
void CreateVideoSummaryTaskRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string CreateVideoSummaryTaskRequest::getLiveVideoSummary()const
{
return liveVideoSummary_;
}
void CreateVideoSummaryTaskRequest::setLiveVideoSummary(const std::string& liveVideoSummary)
{
liveVideoSummary_ = liveVideoSummary;
setBodyParameter("LiveVideoSummary", liveVideoSummary);
}
std::string CreateVideoSummaryTaskRequest::getStartTimeStamp()const
{
return startTimeStamp_;
}
void CreateVideoSummaryTaskRequest::setStartTimeStamp(const std::string& startTimeStamp)
{
startTimeStamp_ = startTimeStamp;
setBodyParameter("StartTimeStamp", startTimeStamp);
}
std::string CreateVideoSummaryTaskRequest::getDeviceId()const
{
return deviceId_;
}
void CreateVideoSummaryTaskRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setBodyParameter("DeviceId", deviceId);
}
std::string CreateVideoSummaryTaskRequest::getEndTimeStamp()const
{
return endTimeStamp_;
}
void CreateVideoSummaryTaskRequest::setEndTimeStamp(const std::string& endTimeStamp)
{
endTimeStamp_ = endTimeStamp;
setBodyParameter("EndTimeStamp", endTimeStamp);
}
std::string CreateVideoSummaryTaskRequest::getOptionList()const
{
return optionList_;
}
void CreateVideoSummaryTaskRequest::setOptionList(const std::string& optionList)
{
optionList_ = optionList;
setBodyParameter("OptionList", optionList);
}

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/vcs/model/CreateVideoSummaryTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
CreateVideoSummaryTaskResult::CreateVideoSummaryTaskResult() :
ServiceResult()
{}
CreateVideoSummaryTaskResult::CreateVideoSummaryTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateVideoSummaryTaskResult::~CreateVideoSummaryTaskResult()
{}
void CreateVideoSummaryTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string CreateVideoSummaryTaskResult::getMessage()const
{
return message_;
}
std::string CreateVideoSummaryTaskResult::getData()const
{
return data_;
}
std::string CreateVideoSummaryTaskResult::getCode()const
{
return code_;
}

View File

@@ -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 <alibabacloud/vcs/model/DeleteDataSourceRequest.h>
using AlibabaCloud::Vcs::Model::DeleteDataSourceRequest;
DeleteDataSourceRequest::DeleteDataSourceRequest() :
RpcServiceRequest("vcs", "2020-05-15", "DeleteDataSource")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDataSourceRequest::~DeleteDataSourceRequest()
{}
std::string DeleteDataSourceRequest::getCorpId()const
{
return corpId_;
}
void DeleteDataSourceRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string DeleteDataSourceRequest::getDataSourceId()const
{
return dataSourceId_;
}
void DeleteDataSourceRequest::setDataSourceId(const std::string& dataSourceId)
{
dataSourceId_ = dataSourceId;
setBodyParameter("DataSourceId", dataSourceId);
}

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/vcs/model/DeleteDataSourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
DeleteDataSourceResult::DeleteDataSourceResult() :
ServiceResult()
{}
DeleteDataSourceResult::DeleteDataSourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDataSourceResult::~DeleteDataSourceResult()
{}
void DeleteDataSourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DeleteDataSourceResult::getMessage()const
{
return message_;
}
std::string DeleteDataSourceResult::getData()const
{
return data_;
}
std::string DeleteDataSourceResult::getCode()const
{
return code_;
}

View File

@@ -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 <alibabacloud/vcs/model/DeleteVideoSummaryTaskRequest.h>
using AlibabaCloud::Vcs::Model::DeleteVideoSummaryTaskRequest;
DeleteVideoSummaryTaskRequest::DeleteVideoSummaryTaskRequest() :
RpcServiceRequest("vcs", "2020-05-15", "DeleteVideoSummaryTask")
{
setMethod(HttpRequest::Method::Post);
}
DeleteVideoSummaryTaskRequest::~DeleteVideoSummaryTaskRequest()
{}
std::string DeleteVideoSummaryTaskRequest::getCorpId()const
{
return corpId_;
}
void DeleteVideoSummaryTaskRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string DeleteVideoSummaryTaskRequest::getTaskId()const
{
return taskId_;
}
void DeleteVideoSummaryTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setBodyParameter("TaskId", taskId);
}

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/vcs/model/DeleteVideoSummaryTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
DeleteVideoSummaryTaskResult::DeleteVideoSummaryTaskResult() :
ServiceResult()
{}
DeleteVideoSummaryTaskResult::DeleteVideoSummaryTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteVideoSummaryTaskResult::~DeleteVideoSummaryTaskResult()
{}
void DeleteVideoSummaryTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DeleteVideoSummaryTaskResult::getMessage()const
{
return message_;
}
std::string DeleteVideoSummaryTaskResult::getData()const
{
return data_;
}
std::string DeleteVideoSummaryTaskResult::getCode()const
{
return code_;
}

View File

@@ -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 <alibabacloud/vcs/model/GetVideoComposeResultRequest.h>
using AlibabaCloud::Vcs::Model::GetVideoComposeResultRequest;
GetVideoComposeResultRequest::GetVideoComposeResultRequest() :
RpcServiceRequest("vcs", "2020-05-15", "GetVideoComposeResult")
{
setMethod(HttpRequest::Method::Post);
}
GetVideoComposeResultRequest::~GetVideoComposeResultRequest()
{}
std::string GetVideoComposeResultRequest::getCorpId()const
{
return corpId_;
}
void GetVideoComposeResultRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string GetVideoComposeResultRequest::getTaskRequestId()const
{
return taskRequestId_;
}
void GetVideoComposeResultRequest::setTaskRequestId(const std::string& taskRequestId)
{
taskRequestId_ = taskRequestId;
setBodyParameter("TaskRequestId", taskRequestId);
}

View File

@@ -0,0 +1,72 @@
/*
* 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/vcs/model/GetVideoComposeResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
GetVideoComposeResultResult::GetVideoComposeResultResult() :
ServiceResult()
{}
GetVideoComposeResultResult::GetVideoComposeResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetVideoComposeResultResult::~GetVideoComposeResultResult()
{}
void GetVideoComposeResultResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["VideoUrl"].isNull())
videoUrl_ = value["VideoUrl"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
}
std::string GetVideoComposeResultResult::getStatus()const
{
return status_;
}
std::string GetVideoComposeResultResult::getMessage()const
{
return message_;
}
std::string GetVideoComposeResultResult::getCode()const
{
return code_;
}
std::string GetVideoComposeResultResult::getVideoUrl()const
{
return videoUrl_;
}

View File

@@ -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 <alibabacloud/vcs/model/GetVideoSummaryTaskResultRequest.h>
using AlibabaCloud::Vcs::Model::GetVideoSummaryTaskResultRequest;
GetVideoSummaryTaskResultRequest::GetVideoSummaryTaskResultRequest() :
RpcServiceRequest("vcs", "2020-05-15", "GetVideoSummaryTaskResult")
{
setMethod(HttpRequest::Method::Post);
}
GetVideoSummaryTaskResultRequest::~GetVideoSummaryTaskResultRequest()
{}
std::string GetVideoSummaryTaskResultRequest::getCorpId()const
{
return corpId_;
}
void GetVideoSummaryTaskResultRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string GetVideoSummaryTaskResultRequest::getTaskId()const
{
return taskId_;
}
void GetVideoSummaryTaskResultRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setBodyParameter("TaskId", taskId);
}

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/vcs/model/GetVideoSummaryTaskResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
GetVideoSummaryTaskResultResult::GetVideoSummaryTaskResultResult() :
ServiceResult()
{}
GetVideoSummaryTaskResultResult::GetVideoSummaryTaskResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetVideoSummaryTaskResultResult::~GetVideoSummaryTaskResultResult()
{}
void GetVideoSummaryTaskResultResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetVideoSummaryTaskResultResult::getMessage()const
{
return message_;
}
std::string GetVideoSummaryTaskResultResult::getData()const
{
return data_;
}
std::string GetVideoSummaryTaskResultResult::getCode()const
{
return code_;
}

View File

@@ -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 <alibabacloud/vcs/model/ListBodyAlgorithmResultsRequest.h>
using AlibabaCloud::Vcs::Model::ListBodyAlgorithmResultsRequest;
ListBodyAlgorithmResultsRequest::ListBodyAlgorithmResultsRequest() :
RpcServiceRequest("vcs", "2020-05-15", "ListBodyAlgorithmResults")
{
setMethod(HttpRequest::Method::Post);
}
ListBodyAlgorithmResultsRequest::~ListBodyAlgorithmResultsRequest()
{}
std::string ListBodyAlgorithmResultsRequest::getAlgorithmType()const
{
return algorithmType_;
}
void ListBodyAlgorithmResultsRequest::setAlgorithmType(const std::string& algorithmType)
{
algorithmType_ = algorithmType;
setBodyParameter("AlgorithmType", algorithmType);
}
std::string ListBodyAlgorithmResultsRequest::getCorpId()const
{
return corpId_;
}
void ListBodyAlgorithmResultsRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string ListBodyAlgorithmResultsRequest::getCapStyle()const
{
return capStyle_;
}
void ListBodyAlgorithmResultsRequest::setCapStyle(const std::string& capStyle)
{
capStyle_ = capStyle;
setBodyParameter("CapStyle", capStyle);
}
std::string ListBodyAlgorithmResultsRequest::getEndTime()const
{
return endTime_;
}
void ListBodyAlgorithmResultsRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
std::string ListBodyAlgorithmResultsRequest::getStartTime()const
{
return startTime_;
}
void ListBodyAlgorithmResultsRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::string ListBodyAlgorithmResultsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListBodyAlgorithmResultsRequest::setPageNumber(const std::string& pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", pageNumber);
}
std::string ListBodyAlgorithmResultsRequest::getDataSourceId()const
{
return dataSourceId_;
}
void ListBodyAlgorithmResultsRequest::setDataSourceId(const std::string& dataSourceId)
{
dataSourceId_ = dataSourceId;
setBodyParameter("DataSourceId", dataSourceId);
}
std::string ListBodyAlgorithmResultsRequest::getPageSize()const
{
return pageSize_;
}
void ListBodyAlgorithmResultsRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", pageSize);
}

View File

@@ -0,0 +1,108 @@
/*
* 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/vcs/model/ListBodyAlgorithmResultsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
ListBodyAlgorithmResultsResult::ListBodyAlgorithmResultsResult() :
ServiceResult()
{}
ListBodyAlgorithmResultsResult::ListBodyAlgorithmResultsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListBodyAlgorithmResultsResult::~ListBodyAlgorithmResultsResult()
{}
void ListBodyAlgorithmResultsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["PageNumber"].isNull())
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
if(!dataNode["TotalPage"].isNull())
data_.totalPage = std::stoi(dataNode["TotalPage"].asString());
auto allRecordsNode = dataNode["Records"]["RecordsItem"];
for (auto dataNodeRecordsRecordsItem : allRecordsNode)
{
Data::RecordsItem recordsItemObject;
if(!dataNodeRecordsRecordsItem["CapStyle"].isNull())
recordsItemObject.capStyle = dataNodeRecordsRecordsItem["CapStyle"].asString();
if(!dataNodeRecordsRecordsItem["CorpId"].isNull())
recordsItemObject.corpId = dataNodeRecordsRecordsItem["CorpId"].asString();
if(!dataNodeRecordsRecordsItem["DataSourceId"].isNull())
recordsItemObject.dataSourceId = dataNodeRecordsRecordsItem["DataSourceId"].asString();
if(!dataNodeRecordsRecordsItem["PersonId"].isNull())
recordsItemObject.personId = dataNodeRecordsRecordsItem["PersonId"].asString();
if(!dataNodeRecordsRecordsItem["GenderCode"].isNull())
recordsItemObject.genderCode = dataNodeRecordsRecordsItem["GenderCode"].asString();
if(!dataNodeRecordsRecordsItem["HairStyle"].isNull())
recordsItemObject.hairStyle = dataNodeRecordsRecordsItem["HairStyle"].asString();
if(!dataNodeRecordsRecordsItem["LeftTopX"].isNull())
recordsItemObject.leftTopX = std::stof(dataNodeRecordsRecordsItem["LeftTopX"].asString());
if(!dataNodeRecordsRecordsItem["LeftTopY"].isNull())
recordsItemObject.leftTopY = std::stof(dataNodeRecordsRecordsItem["LeftTopY"].asString());
if(!dataNodeRecordsRecordsItem["MaxAge"].isNull())
recordsItemObject.maxAge = dataNodeRecordsRecordsItem["MaxAge"].asString();
if(!dataNodeRecordsRecordsItem["MinAge"].isNull())
recordsItemObject.minAge = dataNodeRecordsRecordsItem["MinAge"].asString();
if(!dataNodeRecordsRecordsItem["PicUrlPath"].isNull())
recordsItemObject.picUrlPath = dataNodeRecordsRecordsItem["PicUrlPath"].asString();
if(!dataNodeRecordsRecordsItem["RightBottomX"].isNull())
recordsItemObject.rightBottomX = std::stof(dataNodeRecordsRecordsItem["RightBottomX"].asString());
if(!dataNodeRecordsRecordsItem["RightBottomY"].isNull())
recordsItemObject.rightBottomY = std::stof(dataNodeRecordsRecordsItem["RightBottomY"].asString());
if(!dataNodeRecordsRecordsItem["ShotTime"].isNull())
recordsItemObject.shotTime = dataNodeRecordsRecordsItem["ShotTime"].asString();
if(!dataNodeRecordsRecordsItem["TargetPicUrlPath"].isNull())
recordsItemObject.targetPicUrlPath = dataNodeRecordsRecordsItem["TargetPicUrlPath"].asString();
data_.records.push_back(recordsItemObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListBodyAlgorithmResultsResult::getMessage()const
{
return message_;
}
ListBodyAlgorithmResultsResult::Data ListBodyAlgorithmResultsResult::getData()const
{
return data_;
}
std::string ListBodyAlgorithmResultsResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,106 @@
/*
* 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/vcs/model/ListEventAlgorithmResultsRequest.h>
using AlibabaCloud::Vcs::Model::ListEventAlgorithmResultsRequest;
ListEventAlgorithmResultsRequest::ListEventAlgorithmResultsRequest() :
RpcServiceRequest("vcs", "2020-05-15", "ListEventAlgorithmResults")
{
setMethod(HttpRequest::Method::Post);
}
ListEventAlgorithmResultsRequest::~ListEventAlgorithmResultsRequest()
{}
std::string ListEventAlgorithmResultsRequest::getCorpId()const
{
return corpId_;
}
void ListEventAlgorithmResultsRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string ListEventAlgorithmResultsRequest::getEndTime()const
{
return endTime_;
}
void ListEventAlgorithmResultsRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
std::string ListEventAlgorithmResultsRequest::getStartTime()const
{
return startTime_;
}
void ListEventAlgorithmResultsRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::string ListEventAlgorithmResultsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListEventAlgorithmResultsRequest::setPageNumber(const std::string& pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", pageNumber);
}
std::string ListEventAlgorithmResultsRequest::getDataSourceId()const
{
return dataSourceId_;
}
void ListEventAlgorithmResultsRequest::setDataSourceId(const std::string& dataSourceId)
{
dataSourceId_ = dataSourceId;
setBodyParameter("DataSourceId", dataSourceId);
}
std::string ListEventAlgorithmResultsRequest::getPageSize()const
{
return pageSize_;
}
void ListEventAlgorithmResultsRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", pageSize);
}
std::string ListEventAlgorithmResultsRequest::getEventType()const
{
return eventType_;
}
void ListEventAlgorithmResultsRequest::setEventType(const std::string& eventType)
{
eventType_ = eventType;
setBodyParameter("EventType", eventType);
}

View File

@@ -0,0 +1,94 @@
/*
* 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/vcs/model/ListEventAlgorithmResultsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
ListEventAlgorithmResultsResult::ListEventAlgorithmResultsResult() :
ServiceResult()
{}
ListEventAlgorithmResultsResult::ListEventAlgorithmResultsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListEventAlgorithmResultsResult::~ListEventAlgorithmResultsResult()
{}
void ListEventAlgorithmResultsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["PageNumber"].isNull())
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
if(!dataNode["TotalPage"].isNull())
data_.totalPage = std::stoi(dataNode["TotalPage"].asString());
auto allRecordsNode = dataNode["Records"]["RecordsItem"];
for (auto dataNodeRecordsRecordsItem : allRecordsNode)
{
Data::RecordsItem recordsItemObject;
if(!dataNodeRecordsRecordsItem["CapStyle"].isNull())
recordsItemObject.capStyle = dataNodeRecordsRecordsItem["CapStyle"].asString();
if(!dataNodeRecordsRecordsItem["CorpId"].isNull())
recordsItemObject.corpId = dataNodeRecordsRecordsItem["CorpId"].asString();
if(!dataNodeRecordsRecordsItem["DataSourceId"].isNull())
recordsItemObject.dataSourceId = dataNodeRecordsRecordsItem["DataSourceId"].asString();
if(!dataNodeRecordsRecordsItem["EventType"].isNull())
recordsItemObject.eventType = dataNodeRecordsRecordsItem["EventType"].asString();
if(!dataNodeRecordsRecordsItem["FaceCount"].isNull())
recordsItemObject.faceCount = dataNodeRecordsRecordsItem["FaceCount"].asString();
if(!dataNodeRecordsRecordsItem["PicUrlPath"].isNull())
recordsItemObject.picUrlPath = dataNodeRecordsRecordsItem["PicUrlPath"].asString();
if(!dataNodeRecordsRecordsItem["ShotTime"].isNull())
recordsItemObject.shotTime = dataNodeRecordsRecordsItem["ShotTime"].asString();
if(!dataNodeRecordsRecordsItem["TargetPicUrlPath"].isNull())
recordsItemObject.targetPicUrlPath = dataNodeRecordsRecordsItem["TargetPicUrlPath"].asString();
data_.records.push_back(recordsItemObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListEventAlgorithmResultsResult::getMessage()const
{
return message_;
}
ListEventAlgorithmResultsResult::Data ListEventAlgorithmResultsResult::getData()const
{
return data_;
}
std::string ListEventAlgorithmResultsResult::getCode()const
{
return code_;
}

View File

@@ -74,6 +74,10 @@ void ListMotorAlgorithmResultsResult::parse(const std::string &payload)
recordsItemObject.shotTime = dataNodeRecordsRecordsItem["ShotTime"].asString();
if(!dataNodeRecordsRecordsItem["TargetPicUrlPath"].isNull())
recordsItemObject.targetPicUrlPath = dataNodeRecordsRecordsItem["TargetPicUrlPath"].asString();
if(!dataNodeRecordsRecordsItem["MotorStyle"].isNull())
recordsItemObject.motorStyle = dataNodeRecordsRecordsItem["MotorStyle"].asString();
if(!dataNodeRecordsRecordsItem["MotorModel"].isNull())
recordsItemObject.motorModel = dataNodeRecordsRecordsItem["MotorModel"].asString();
data_.records.push_back(recordsItemObject);
}
if(!value["Code"].isNull())

View File

@@ -44,6 +44,23 @@ void RecognizeFaceQualityResult::parse(const std::string &payload)
data_.qualityScore = dataNode["QualityScore"].asString();
if(!dataNode["Description"].isNull())
data_.description = dataNode["Description"].asString();
auto attributesNode = dataNode["Attributes"];
if(!attributesNode["LeftTopX"].isNull())
data_.attributes.leftTopX = std::stoi(attributesNode["LeftTopX"].asString());
if(!attributesNode["LeftTopY"].isNull())
data_.attributes.leftTopY = std::stoi(attributesNode["LeftTopY"].asString());
if(!attributesNode["RightBottomX"].isNull())
data_.attributes.rightBottomX = std::stoi(attributesNode["RightBottomX"].asString());
if(!attributesNode["RightBottomY"].isNull())
data_.attributes.rightBottomY = std::stoi(attributesNode["RightBottomY"].asString());
if(!attributesNode["TargetImageStoragePath"].isNull())
data_.attributes.targetImageStoragePath = attributesNode["TargetImageStoragePath"].asString();
if(!attributesNode["FaceStyle"].isNull())
data_.attributes.faceStyle = attributesNode["FaceStyle"].asString();
if(!attributesNode["FaceQuality"].isNull())
data_.attributes.faceQuality = attributesNode["FaceQuality"].asString();
if(!attributesNode["FaceScore"].isNull())
data_.attributes.faceScore = attributesNode["FaceScore"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())

View File

@@ -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 <alibabacloud/vcs/model/UploadFileRequest.h>
using AlibabaCloud::Vcs::Model::UploadFileRequest;
UploadFileRequest::UploadFileRequest() :
RpcServiceRequest("vcs", "2020-05-15", "UploadFile")
{
setMethod(HttpRequest::Method::Post);
}
UploadFileRequest::~UploadFileRequest()
{}
std::string UploadFileRequest::getFileType()const
{
return fileType_;
}
void UploadFileRequest::setFileType(const std::string& fileType)
{
fileType_ = fileType;
setBodyParameter("FileType", fileType);
}
std::string UploadFileRequest::getCorpId()const
{
return corpId_;
}
void UploadFileRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string UploadFileRequest::getFileAliasName()const
{
return fileAliasName_;
}
void UploadFileRequest::setFileAliasName(const std::string& fileAliasName)
{
fileAliasName_ = fileAliasName;
setBodyParameter("FileAliasName", fileAliasName);
}
std::string UploadFileRequest::getFileName()const
{
return fileName_;
}
void UploadFileRequest::setFileName(const std::string& fileName)
{
fileName_ = fileName;
setBodyParameter("FileName", fileName);
}
std::string UploadFileRequest::getFilePath()const
{
return filePath_;
}
void UploadFileRequest::setFilePath(const std::string& filePath)
{
filePath_ = filePath;
setBodyParameter("FilePath", filePath);
}
std::string UploadFileRequest::getFileContent()const
{
return fileContent_;
}
void UploadFileRequest::setFileContent(const std::string& fileContent)
{
fileContent_ = fileContent;
setBodyParameter("FileContent", fileContent);
}
std::string UploadFileRequest::getDataSourceId()const
{
return dataSourceId_;
}
void UploadFileRequest::setDataSourceId(const std::string& dataSourceId)
{
dataSourceId_ = dataSourceId;
setBodyParameter("DataSourceId", dataSourceId);
}
std::string UploadFileRequest::getMD5()const
{
return mD5_;
}
void UploadFileRequest::setMD5(const std::string& mD5)
{
mD5_ = mD5;
setBodyParameter("MD5", mD5);
}

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/vcs/model/UploadFileResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
UploadFileResult::UploadFileResult() :
ServiceResult()
{}
UploadFileResult::UploadFileResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UploadFileResult::~UploadFileResult()
{}
void UploadFileResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string UploadFileResult::getMessage()const
{
return message_;
}
std::string UploadFileResult::getData()const
{
return data_;
}
std::string UploadFileResult::getCode()const
{
return code_;
}