Compare commits

...

49 Commits

Author SHA1 Message Date
sdk-team
ee902a7f28 Supported scheduler for outbound call. 2021-02-04 06:57:45 +00:00
sdk-team
fb12252d2d Supported console. 2021-02-04 06:34:05 +00:00
sdk-team
6e4fea5ea2 Supported console. 2021-02-04 06:22:03 +00:00
sdk-team
1b54ddd725 Update TaggingImage. 2021-02-04 05:53:32 +00:00
sdk-team
6e5ba8761d After normalizing the API group name, regenerate the SDK. 2021-02-03 08:45:46 +00:00
sdk-team
e71ef9a243 Add ModifyAuditLogConfig API. 2021-02-03 08:24:56 +00:00
sdk-team
17af8569c4 Add. 2021-02-02 03:03:51 +00:00
sdk-team
4c3be7ed7c CreateShardingDBInstance add ReadOnlyReplicas in ReplicaSet. 2021-02-02 02:17:28 +00:00
sdk-team
3303c6120d Support device credential for mqtt. 2021-02-01 13:23:11 +00:00
sdk-team
d0e1cd8792 Release GenerateHumanSketchStyle MergeImageFace AddFaceImageTemplate QueryFaceImageTemplate DeleteFaceImageTemplate. 2021-02-01 09:17:16 +00:00
sdk-team
7859e7446f Add. 2021-02-01 09:05:26 +00:00
sdk-team
8296e36314 Release GenerateHumanSketchStyle MergeImageFace AddFaceImageTemplate QueryFaceImageTemplate DeleteFaceImageTemplate. 2021-02-01 03:14:50 +00:00
sdk-team
0af9554cab Release RecognizeFood. 2021-02-01 03:11:32 +00:00
sdk-team
5590f7808b Release UnderstandVideoContent. 2021-02-01 03:00:50 +00:00
sdk-team
df825120f3 Release SegmentGreenScreenVideo. 2021-02-01 02:41:37 +00:00
sdk-team
e0575e4c67 Release DetectVehicleIllegalParking DetectVehicleICongestion. 2021-02-01 02:22:23 +00:00
sdk-team
4b58532ad0 ConvertInstance. 2021-01-31 06:31:46 +00:00
sdk-team
4e4d3730de Update rate limit. 2021-01-30 10:13:58 +00:00
sdk-team
90d44564e0 Update Monitor Api. 2021-01-29 04:28:56 +00:00
sdk-team
0553d7374d Update Monitor Api. 2021-01-29 03:36:09 +00:00
sdk-team
e84530679a Update Open API. 2021-01-29 02:35:09 +00:00
sdk-team
b3ae2c61f0 Generated 2020-05-18 for dataworks-public. 2021-01-29 02:21:39 +00:00
sdk-team
38eb8f243a Generated 2018-03-13 for retailcloud. 2021-01-28 03:37:50 +00:00
sdk-team
caf80426a4 Add New BatchTranslate API. 2021-01-27 07:27:58 +00:00
sdk-team
9b90cedcbb Add New BatchTranslate API. 2021-01-27 07:24:40 +00:00
sdk-team
99cbb7279f DetectFaceAttributes Add Score. 2021-01-27 06:44:31 +00:00
sdk-team
9c94805a97 Support ModifyDBClusterPrimaryZone timer task. 2021-01-26 09:39:00 +00:00
sdk-team
198969d4d9 Regenerate SDK to override list implement. 2021-01-25 12:50:16 +00:00
sdk-team
eaa6b3cb18 Update Open API. 2021-01-25 02:08:21 +00:00
sdk-team
32dccef2ae Modify some field types. 2021-01-21 11:44:22 +00:00
sdk-team
baae93b317 Generated 2019-09-10 for waf-openapi. 2021-01-21 08:24:23 +00:00
sdk-team
6ff5b2e255 Add. 2021-01-21 06:23:25 +00:00
sdk-team
65a6e6b64f Supported RunInstances specifiy Dedicated Host Cluster Id. 2021-01-21 04:16:31 +00:00
sdk-team
0802c5d8b0 Update Function. 2021-01-19 11:14:44 +00:00
sdk-team
31aec3f28f Generated 2019-03-27 for dg. 2021-01-18 13:58:07 +00:00
sdk-team
f3fbed5766 Add a set of API to support device distribution management, including CreateProductDistributeJob, CreateDeviceDistributeJob, QueryDeviceDistributeJob, ListDeviceDistributeJob, QueryDeviceDistributeDetail, DeleteDeviceDistributeJob, ListDistributedDevice, ListDistributedProduct etc. 2021-01-18 04:06:53 +00:00
sdk-team
a81d0c4daa Add a set of api to support device distribution management, including CreateProductDistributeJob, CreateDeviceDistributeJob, QueryDeviceDistributeJob, ListDeviceDistributeJob, QueryDeviceDistributeDetail, DeleteDeviceDistributeJob, ListDistributedDevice, ListDistributedProduct etc. 2021-01-18 03:56:25 +00:00
sdk-team
76821f71df Add ListMergeRequests api. 2021-01-18 03:54:49 +00:00
sdk-team
4d618db251 Add result value spanId for GetTrace api. 2021-01-15 12:29:31 +00:00
sdk-team
5def51b35c Update Function. 2021-01-15 08:43:24 +00:00
sdk-team
740062e96f Update Function. 2021-01-15 06:40:36 +00:00
sdk-team
2d49d2072f Add API CreateSortScriptValidation. 2021-01-15 03:59:05 +00:00
sdk-team
1794d57757 Remove drcGuidRouteApi, ModifyDtsJobPassword API. 2021-01-15 03:25:16 +00:00
sdk-team
2f7735992b Generated 2016-11-01 for live. 2021-01-15 01:37:20 +00:00
sdk-team
c97337aa82 Add function. 2021-01-14 11:04:54 +00:00
sdk-team
406b8fba46 Add BillingDate support in QueryAccontBill. 2021-01-14 10:19:58 +00:00
sdk-team
2f2b3aa219 Update Open API. 2021-01-14 09:38:15 +00:00
sdk-team
64d4eb1931 Update function. 2021-01-14 04:47:50 +00:00
sdk-team
bbbd1121ca Fixed ListUsers, GetUser, EnableUser, RegisterUser, DisableUser, DeleteUser API parameter of uid data type error, from number into string. 2021-01-14 03:48:26 +00:00
1377 changed files with 80974 additions and 9456 deletions

156
CHANGELOG
View File

@@ -1,3 +1,159 @@
2021-02-04 Version: patch
- Supported scheduler for outbound call.
2021-02-04 Version: patch
- Supported console.
2021-02-04 Version: patch
- Supported console.
2021-02-04 Version: patch
- Update TaggingImage.
2021-02-03 Version: patch
- After normalizing the API group name, regenerate the SDK.
2021-02-03 Version: patch
- Add ModifyAuditLogConfig API.
2021-02-02 Version: patch
- Add.
2021-02-02 Version: patch
- CreateShardingDBInstance add ReadOnlyReplicas in ReplicaSet.
2021-02-01 Version: patch
- Support device credential for mqtt.
2021-02-01 Version: patch
- Release GenerateHumanSketchStyle MergeImageFace AddFaceImageTemplate QueryFaceImageTemplate DeleteFaceImageTemplate.
2021-02-01 Version: patch
- Add.
2021-02-01 Version: patch
- Release GenerateHumanSketchStyle MergeImageFace AddFaceImageTemplate QueryFaceImageTemplate DeleteFaceImageTemplate.
2021-02-01 Version: patch
- Release RecognizeFood.
2021-02-01 Version: patch
- Release UnderstandVideoContent.
2021-02-01 Version: patch
- Release SegmentGreenScreenVideo.
2021-02-01 Version: patch
- Release DetectVehicleIllegalParking DetectVehicleICongestion.
2021-01-31 Version: patch
- ConvertInstance.
2021-01-30 Version: patch
- Update rate limit.
2021-01-29 Version: patch
- Update Monitor Api.
2021-01-29 Version: patch
- Update Monitor Api.
2021-01-29 Version: patch
- Update Open API.
2021-01-29 Version: patch
- Generated 2020-05-18 for `dataworks-public`.
2021-01-28 Version: patch
- Generated 2018-03-13 for `retailcloud`.
2021-01-27 Version: patch
- Add New BatchTranslate API.
2021-01-27 Version: patch
- Add New BatchTranslate API.
2021-01-27 Version: patch
- DetectFaceAttributes Add Score.
2021-01-26 Version: patch
- Support ModifyDBClusterPrimaryZone timer task.
2021-01-25 Version: patch
- Regenerate SDK to override list implement.
2021-01-25 Version: patch
- Update Open API.
2021-01-21 Version: patch
- Modify some field types.
2021-01-21 Version: patch
- Generated 2019-09-10 for `waf-openapi`.
2021-01-21 Version: patch
- Add.
2021-01-21 Version: patch
- Supported RunInstances specifiy Dedicated Host Cluster Id.
2021-01-19 Version: patch
- Update Function.
2021-01-18 Version: patch
- Generated 2019-03-27 for `dg`.
2021-01-18 Version: patch
- Add a set of API to support device distribution management, including CreateProductDistributeJob, CreateDeviceDistributeJob, QueryDeviceDistributeJob, ListDeviceDistributeJob, QueryDeviceDistributeDetail, DeleteDeviceDistributeJob, ListDistributedDevice, ListDistributedProduct etc.
2021-01-18 Version: patch
- Add a set of api to support device distribution management, including CreateProductDistributeJob, CreateDeviceDistributeJob, QueryDeviceDistributeJob, ListDeviceDistributeJob, QueryDeviceDistributeDetail, DeleteDeviceDistributeJob, ListDistributedDevice, ListDistributedProduct etc.
2021-01-18 Version: patch
- Add ListMergeRequests api.
- Add protected branch api, CreateRepositoryProtectedBranch and DeleteRepositoryProtectedBranch.
- Add repository deploy key api, EnableRepositoryDeployKey and CreateRepositoryDeployKey.
- Add UpdateRepository api.
- Update GetUserInfo, support use OrganizationId param to get user organization name.
2021-01-15 Version: patch
- Add result value spanId for GetTrace api.
2021-01-15 Version: patch
- Update Function.
2021-01-15 Version: patch
- Update Function.
2021-01-15 Version: patch
- Add API CreateSortScriptValidation.
- Add parameter resourceGroupId to API ListAppGroups.
2021-01-15 Version: patch
- Remove drcGuidRouteApi, ModifyDtsJobPassword API.
2021-01-15 Version: patch
- Generated 2016-11-01 for `live`.
2021-01-14 Version: patch
- Add function.
2021-01-14 Version: patch
- Add BillingDate support in QueryAccontBill.
- Add SplitAccountId, SplitAccountName, SplitBillingCycle, SplitProductDetail, SplitCommodityCode, ServicePeriodUnit support in QuerySplitItemBill.
2021-01-14 Version: patch
- Update Open API.
2021-01-14 Version: patch
- Update function.
2021-01-14 Version: patch
- Fixed ListUsers, GetUser, EnableUser, RegisterUser, DisableUser, DeleteUser API parameter of uid data type error, from number into string.
- Supported ListInstances, GetInstance API to return Owner information.
- Supported SetOwners API to set INSTANCE owner.
2021-01-14 Version: patch
- Create Lindorm Open api.

View File

@@ -25,6 +25,8 @@ set(alimt_public_header_model
include/alibabacloud/alimt/model/CreateDocTranslateTaskResult.h
include/alibabacloud/alimt/model/CreateImageTranslateTaskRequest.h
include/alibabacloud/alimt/model/CreateImageTranslateTaskResult.h
include/alibabacloud/alimt/model/GetBatchTranslateRequest.h
include/alibabacloud/alimt/model/GetBatchTranslateResult.h
include/alibabacloud/alimt/model/GetDetectLanguageRequest.h
include/alibabacloud/alimt/model/GetDetectLanguageResult.h
include/alibabacloud/alimt/model/GetDocTranslateTaskRequest.h
@@ -58,6 +60,8 @@ set(alimt_src
src/model/CreateDocTranslateTaskResult.cc
src/model/CreateImageTranslateTaskRequest.cc
src/model/CreateImageTranslateTaskResult.cc
src/model/GetBatchTranslateRequest.cc
src/model/GetBatchTranslateResult.cc
src/model/GetDetectLanguageRequest.cc
src/model/GetDetectLanguageResult.cc
src/model/GetDocTranslateTaskRequest.cc

View File

@@ -26,6 +26,8 @@
#include "model/CreateDocTranslateTaskResult.h"
#include "model/CreateImageTranslateTaskRequest.h"
#include "model/CreateImageTranslateTaskResult.h"
#include "model/GetBatchTranslateRequest.h"
#include "model/GetBatchTranslateResult.h"
#include "model/GetDetectLanguageRequest.h"
#include "model/GetDetectLanguageResult.h"
#include "model/GetDocTranslateTaskRequest.h"
@@ -67,6 +69,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateImageTranslateTaskResult> CreateImageTranslateTaskOutcome;
typedef std::future<CreateImageTranslateTaskOutcome> CreateImageTranslateTaskOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::CreateImageTranslateTaskRequest&, const CreateImageTranslateTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateImageTranslateTaskAsyncHandler;
typedef Outcome<Error, Model::GetBatchTranslateResult> GetBatchTranslateOutcome;
typedef std::future<GetBatchTranslateOutcome> GetBatchTranslateOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetBatchTranslateRequest&, const GetBatchTranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetBatchTranslateAsyncHandler;
typedef Outcome<Error, Model::GetDetectLanguageResult> GetDetectLanguageOutcome;
typedef std::future<GetDetectLanguageOutcome> GetDetectLanguageOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetDetectLanguageRequest&, const GetDetectLanguageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDetectLanguageAsyncHandler;
@@ -117,6 +122,9 @@ namespace AlibabaCloud
CreateImageTranslateTaskOutcome createImageTranslateTask(const Model::CreateImageTranslateTaskRequest &request)const;
void createImageTranslateTaskAsync(const Model::CreateImageTranslateTaskRequest& request, const CreateImageTranslateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateImageTranslateTaskOutcomeCallable createImageTranslateTaskCallable(const Model::CreateImageTranslateTaskRequest& request) const;
GetBatchTranslateOutcome getBatchTranslate(const Model::GetBatchTranslateRequest &request)const;
void getBatchTranslateAsync(const Model::GetBatchTranslateRequest& request, const GetBatchTranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetBatchTranslateOutcomeCallable getBatchTranslateCallable(const Model::GetBatchTranslateRequest& request) const;
GetDetectLanguageOutcome getDetectLanguage(const Model::GetDetectLanguageRequest &request)const;
void getDetectLanguageAsync(const Model::GetDetectLanguageRequest& request, const GetDetectLanguageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDetectLanguageOutcomeCallable getDetectLanguageCallable(const Model::GetDetectLanguageRequest& request) const;

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_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetBatchTranslateRequest : public RpcServiceRequest
{
public:
GetBatchTranslateRequest();
~GetBatchTranslateRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getSourceText()const;
void setSourceText(const std::string& sourceText);
std::string getFormatType()const;
void setFormatType(const std::string& formatType);
std::string getApiType()const;
void setApiType(const std::string& apiType);
std::string getScene()const;
void setScene(const std::string& scene);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string apiType_;
std::string scene_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_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_ALIMT_MODEL_GETBATCHTRANSLATERESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetBatchTranslateResult : public ServiceResult
{
public:
GetBatchTranslateResult();
explicit GetBatchTranslateResult(const std::string &payload);
~GetBatchTranslateResult();
std::string getMessage()const;
std::vector<std::string> getTranslatedList()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::vector<std::string> translatedList_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATERESULT_H_

View File

@@ -123,6 +123,42 @@ AlimtClient::CreateImageTranslateTaskOutcomeCallable AlimtClient::createImageTra
return task->get_future();
}
AlimtClient::GetBatchTranslateOutcome AlimtClient::getBatchTranslate(const GetBatchTranslateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetBatchTranslateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetBatchTranslateOutcome(GetBatchTranslateResult(outcome.result()));
else
return GetBatchTranslateOutcome(outcome.error());
}
void AlimtClient::getBatchTranslateAsync(const GetBatchTranslateRequest& request, const GetBatchTranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getBatchTranslate(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::GetBatchTranslateOutcomeCallable AlimtClient::getBatchTranslateCallable(const GetBatchTranslateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetBatchTranslateOutcome()>>(
[this, request]()
{
return this->getBatchTranslate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlimtClient::GetDetectLanguageOutcome AlimtClient::getDetectLanguage(const GetDetectLanguageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

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/alimt/model/GetBatchTranslateRequest.h>
using AlibabaCloud::Alimt::Model::GetBatchTranslateRequest;
GetBatchTranslateRequest::GetBatchTranslateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetBatchTranslate")
{
setMethod(HttpRequest::Method::Post);
}
GetBatchTranslateRequest::~GetBatchTranslateRequest()
{}
std::string GetBatchTranslateRequest::getSourceLanguage()const
{
return sourceLanguage_;
}
void GetBatchTranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
}
std::string GetBatchTranslateRequest::getSourceText()const
{
return sourceText_;
}
void GetBatchTranslateRequest::setSourceText(const std::string& sourceText)
{
sourceText_ = sourceText;
setBodyParameter("SourceText", sourceText);
}
std::string GetBatchTranslateRequest::getFormatType()const
{
return formatType_;
}
void GetBatchTranslateRequest::setFormatType(const std::string& formatType)
{
formatType_ = formatType;
setBodyParameter("FormatType", formatType);
}
std::string GetBatchTranslateRequest::getApiType()const
{
return apiType_;
}
void GetBatchTranslateRequest::setApiType(const std::string& apiType)
{
apiType_ = apiType;
setBodyParameter("ApiType", apiType);
}
std::string GetBatchTranslateRequest::getScene()const
{
return scene_;
}
void GetBatchTranslateRequest::setScene(const std::string& scene)
{
scene_ = scene;
setBodyParameter("Scene", scene);
}
std::string GetBatchTranslateRequest::getTargetLanguage()const
{
return targetLanguage_;
}
void GetBatchTranslateRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
}

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.
*/
#include <alibabacloud/alimt/model/GetBatchTranslateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alimt;
using namespace AlibabaCloud::Alimt::Model;
GetBatchTranslateResult::GetBatchTranslateResult() :
ServiceResult()
{}
GetBatchTranslateResult::GetBatchTranslateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetBatchTranslateResult::~GetBatchTranslateResult()
{}
void GetBatchTranslateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTranslatedList = value["TranslatedList"]["Translated"];
for (const auto &item : allTranslatedList)
translatedList_.push_back(item.asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetBatchTranslateResult::getMessage()const
{
return message_;
}
std::vector<std::string> GetBatchTranslateResult::getTranslatedList()const
{
return translatedList_;
}
int GetBatchTranslateResult::getCode()const
{
return code_;
}

View File

@@ -115,6 +115,10 @@ set(bssopenapi_public_header_model
include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h
include/alibabacloud/bssopenapi/model/QuerySavingsPlansDeductLogRequest.h
include/alibabacloud/bssopenapi/model/QuerySavingsPlansDeductLogResult.h
include/alibabacloud/bssopenapi/model/QuerySavingsPlansInstanceRequest.h
include/alibabacloud/bssopenapi/model/QuerySavingsPlansInstanceResult.h
include/alibabacloud/bssopenapi/model/QuerySettleBillRequest.h
include/alibabacloud/bssopenapi/model/QuerySettleBillResult.h
include/alibabacloud/bssopenapi/model/QuerySettlementBillRequest.h
@@ -127,6 +131,10 @@ set(bssopenapi_public_header_model
include/alibabacloud/bssopenapi/model/RenewInstanceResult.h
include/alibabacloud/bssopenapi/model/RenewResourcePackageRequest.h
include/alibabacloud/bssopenapi/model/RenewResourcePackageResult.h
include/alibabacloud/bssopenapi/model/SaveUserCreditRequest.h
include/alibabacloud/bssopenapi/model/SaveUserCreditResult.h
include/alibabacloud/bssopenapi/model/SetCreditLabelActionRequest.h
include/alibabacloud/bssopenapi/model/SetCreditLabelActionResult.h
include/alibabacloud/bssopenapi/model/SetRenewalRequest.h
include/alibabacloud/bssopenapi/model/SetRenewalResult.h
include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h
@@ -238,6 +246,10 @@ set(bssopenapi_src
src/model/QueryResellerAvailableQuotaResult.cc
src/model/QueryResourcePackageInstancesRequest.cc
src/model/QueryResourcePackageInstancesResult.cc
src/model/QuerySavingsPlansDeductLogRequest.cc
src/model/QuerySavingsPlansDeductLogResult.cc
src/model/QuerySavingsPlansInstanceRequest.cc
src/model/QuerySavingsPlansInstanceResult.cc
src/model/QuerySettleBillRequest.cc
src/model/QuerySettleBillResult.cc
src/model/QuerySettlementBillRequest.cc
@@ -250,6 +262,10 @@ set(bssopenapi_src
src/model/RenewInstanceResult.cc
src/model/RenewResourcePackageRequest.cc
src/model/RenewResourcePackageResult.cc
src/model/SaveUserCreditRequest.cc
src/model/SaveUserCreditResult.cc
src/model/SetCreditLabelActionRequest.cc
src/model/SetCreditLabelActionResult.cc
src/model/SetRenewalRequest.cc
src/model/SetRenewalResult.cc
src/model/SetResellerUserAlarmThresholdRequest.cc

View File

@@ -116,6 +116,10 @@
#include "model/QueryResellerAvailableQuotaResult.h"
#include "model/QueryResourcePackageInstancesRequest.h"
#include "model/QueryResourcePackageInstancesResult.h"
#include "model/QuerySavingsPlansDeductLogRequest.h"
#include "model/QuerySavingsPlansDeductLogResult.h"
#include "model/QuerySavingsPlansInstanceRequest.h"
#include "model/QuerySavingsPlansInstanceResult.h"
#include "model/QuerySettleBillRequest.h"
#include "model/QuerySettleBillResult.h"
#include "model/QuerySettlementBillRequest.h"
@@ -128,6 +132,10 @@
#include "model/RenewInstanceResult.h"
#include "model/RenewResourcePackageRequest.h"
#include "model/RenewResourcePackageResult.h"
#include "model/SaveUserCreditRequest.h"
#include "model/SaveUserCreditResult.h"
#include "model/SetCreditLabelActionRequest.h"
#include "model/SetCreditLabelActionResult.h"
#include "model/SetRenewalRequest.h"
#include "model/SetRenewalResult.h"
#include "model/SetResellerUserAlarmThresholdRequest.h"
@@ -292,6 +300,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QueryResourcePackageInstancesResult> QueryResourcePackageInstancesOutcome;
typedef std::future<QueryResourcePackageInstancesOutcome> QueryResourcePackageInstancesOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::QueryResourcePackageInstancesRequest&, const QueryResourcePackageInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryResourcePackageInstancesAsyncHandler;
typedef Outcome<Error, Model::QuerySavingsPlansDeductLogResult> QuerySavingsPlansDeductLogOutcome;
typedef std::future<QuerySavingsPlansDeductLogOutcome> QuerySavingsPlansDeductLogOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::QuerySavingsPlansDeductLogRequest&, const QuerySavingsPlansDeductLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySavingsPlansDeductLogAsyncHandler;
typedef Outcome<Error, Model::QuerySavingsPlansInstanceResult> QuerySavingsPlansInstanceOutcome;
typedef std::future<QuerySavingsPlansInstanceOutcome> QuerySavingsPlansInstanceOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::QuerySavingsPlansInstanceRequest&, const QuerySavingsPlansInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySavingsPlansInstanceAsyncHandler;
typedef Outcome<Error, Model::QuerySettleBillResult> QuerySettleBillOutcome;
typedef std::future<QuerySettleBillOutcome> QuerySettleBillOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::QuerySettleBillRequest&, const QuerySettleBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySettleBillAsyncHandler;
@@ -310,6 +324,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::RenewResourcePackageResult> RenewResourcePackageOutcome;
typedef std::future<RenewResourcePackageOutcome> RenewResourcePackageOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::RenewResourcePackageRequest&, const RenewResourcePackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewResourcePackageAsyncHandler;
typedef Outcome<Error, Model::SaveUserCreditResult> SaveUserCreditOutcome;
typedef std::future<SaveUserCreditOutcome> SaveUserCreditOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::SaveUserCreditRequest&, const SaveUserCreditOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveUserCreditAsyncHandler;
typedef Outcome<Error, Model::SetCreditLabelActionResult> SetCreditLabelActionOutcome;
typedef std::future<SetCreditLabelActionOutcome> SetCreditLabelActionOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::SetCreditLabelActionRequest&, const SetCreditLabelActionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetCreditLabelActionAsyncHandler;
typedef Outcome<Error, Model::SetRenewalResult> SetRenewalOutcome;
typedef std::future<SetRenewalOutcome> SetRenewalOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::SetRenewalRequest&, const SetRenewalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetRenewalAsyncHandler;
@@ -477,6 +497,12 @@ namespace AlibabaCloud
QueryResourcePackageInstancesOutcome queryResourcePackageInstances(const Model::QueryResourcePackageInstancesRequest &request)const;
void queryResourcePackageInstancesAsync(const Model::QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryResourcePackageInstancesOutcomeCallable queryResourcePackageInstancesCallable(const Model::QueryResourcePackageInstancesRequest& request) const;
QuerySavingsPlansDeductLogOutcome querySavingsPlansDeductLog(const Model::QuerySavingsPlansDeductLogRequest &request)const;
void querySavingsPlansDeductLogAsync(const Model::QuerySavingsPlansDeductLogRequest& request, const QuerySavingsPlansDeductLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySavingsPlansDeductLogOutcomeCallable querySavingsPlansDeductLogCallable(const Model::QuerySavingsPlansDeductLogRequest& request) const;
QuerySavingsPlansInstanceOutcome querySavingsPlansInstance(const Model::QuerySavingsPlansInstanceRequest &request)const;
void querySavingsPlansInstanceAsync(const Model::QuerySavingsPlansInstanceRequest& request, const QuerySavingsPlansInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySavingsPlansInstanceOutcomeCallable querySavingsPlansInstanceCallable(const Model::QuerySavingsPlansInstanceRequest& request) const;
QuerySettleBillOutcome querySettleBill(const Model::QuerySettleBillRequest &request)const;
void querySettleBillAsync(const Model::QuerySettleBillRequest& request, const QuerySettleBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySettleBillOutcomeCallable querySettleBillCallable(const Model::QuerySettleBillRequest& request) const;
@@ -495,6 +521,12 @@ namespace AlibabaCloud
RenewResourcePackageOutcome renewResourcePackage(const Model::RenewResourcePackageRequest &request)const;
void renewResourcePackageAsync(const Model::RenewResourcePackageRequest& request, const RenewResourcePackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RenewResourcePackageOutcomeCallable renewResourcePackageCallable(const Model::RenewResourcePackageRequest& request) const;
SaveUserCreditOutcome saveUserCredit(const Model::SaveUserCreditRequest &request)const;
void saveUserCreditAsync(const Model::SaveUserCreditRequest& request, const SaveUserCreditAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SaveUserCreditOutcomeCallable saveUserCreditCallable(const Model::SaveUserCreditRequest& request) const;
SetCreditLabelActionOutcome setCreditLabelAction(const Model::SetCreditLabelActionRequest &request)const;
void setCreditLabelActionAsync(const Model::SetCreditLabelActionRequest& request, const SetCreditLabelActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetCreditLabelActionOutcomeCallable setCreditLabelActionCallable(const Model::SetCreditLabelActionRequest& request) const;
SetRenewalOutcome setRenewal(const Model::SetRenewalRequest &request)const;
void setRenewalAsync(const Model::SetRenewalRequest& request, const SetRenewalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetRenewalOutcomeCallable setRenewalCallable(const Model::SetRenewalRequest& request) const;

View File

@@ -45,8 +45,12 @@ namespace AlibabaCloud
void setOwnerID(long ownerID);
long getBillOwnerId()const;
void setBillOwnerId(long billOwnerId);
std::string getBillingDate()const;
void setBillingDate(const std::string& billingDate);
bool getIsGroupByProduct()const;
void setIsGroupByProduct(bool isGroupByProduct);
std::string getGranularity()const;
void setGranularity(const std::string& granularity);
int getPageSize()const;
void setPageSize(int pageSize);
@@ -56,7 +60,9 @@ namespace AlibabaCloud
int pageNum_;
long ownerID_;
long billOwnerId_;
std::string billingDate_;
bool isGroupByProduct_;
std::string granularity_;
int pageSize_;
};

View File

@@ -42,6 +42,7 @@ namespace AlibabaCloud
std::string productCode;
float deductedByCashCoupons;
float outstandingAmount;
std::string billingDate;
float paymentAmount;
float deductedByPrepaidCard;
std::string pipCode;

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_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGREQUEST_H_
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
namespace AlibabaCloud
{
namespace BssOpenApi
{
namespace Model
{
class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySavingsPlansDeductLogRequest : public RpcServiceRequest
{
public:
QuerySavingsPlansDeductLogRequest();
~QuerySavingsPlansDeductLogRequest();
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getLocale()const;
void setLocale(const std::string& locale);
int getPageNum()const;
void setPageNum(int pageNum);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getRequestId()const;
void setRequestId(const std::string& requestId);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getInstanceType()const;
void setInstanceType(const std::string& instanceType);
private:
std::string endTime_;
std::string startTime_;
std::string locale_;
int pageNum_;
std::string instanceId_;
std::string requestId_;
int pageSize_;
std::string instanceType_;
};
}
}
}
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGREQUEST_H_

View File

@@ -0,0 +1,78 @@
/*
* 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_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGRESULT_H_
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
namespace AlibabaCloud
{
namespace BssOpenApi
{
namespace Model
{
class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySavingsPlansDeductLogResult : public ServiceResult
{
public:
struct Data
{
struct SavingsPlansDeductDetailResponse
{
std::string deductFee;
std::string billModule;
std::string endTime;
std::string deductCommodity;
std::string instanceId;
long userId;
std::string startTime;
std::string deductRate;
std::string deductInstanceId;
std::string discountRate;
std::string savingsType;
};
int totalCount;
int pageNum;
int pageSize;
std::vector<SavingsPlansDeductDetailResponse> items;
};
QuerySavingsPlansDeductLogResult();
explicit QuerySavingsPlansDeductLogResult(const std::string &payload);
~QuerySavingsPlansDeductLogResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGRESULT_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_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCEREQUEST_H_
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
namespace AlibabaCloud
{
namespace BssOpenApi
{
namespace Model
{
class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySavingsPlansInstanceRequest : public RpcServiceRequest
{
public:
QuerySavingsPlansInstanceRequest();
~QuerySavingsPlansInstanceRequest();
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getLocale()const;
void setLocale(const std::string& locale);
int getPageNum()const;
void setPageNum(int pageNum);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getRequestId()const;
void setRequestId(const std::string& requestId);
int getPageSize()const;
void setPageSize(int pageSize);
private:
std::string endTime_;
std::string startTime_;
std::string locale_;
int pageNum_;
std::string instanceId_;
std::string requestId_;
int pageSize_;
};
}
}
}
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCEREQUEST_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_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCERESULT_H_
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
namespace AlibabaCloud
{
namespace BssOpenApi
{
namespace Model
{
class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySavingsPlansInstanceResult : public ServiceResult
{
public:
struct Data
{
struct SavingsPlansDetailResponse
{
std::string status;
std::string endTime;
std::string instanceId;
std::string instanceFamily;
std::string startTime;
std::string totalSave;
std::string prepayFee;
std::string payMode;
std::string utilization;
std::string currency;
std::string poolValue;
std::string region;
bool share;
std::string savingsType;
};
int totalCount;
int pageNum;
int pageSize;
std::vector<SavingsPlansDetailResponse> items;
};
QuerySavingsPlansInstanceResult();
explicit QuerySavingsPlansInstanceResult(const std::string &payload);
~QuerySavingsPlansInstanceResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCERESULT_H_

View File

@@ -39,6 +39,7 @@ namespace AlibabaCloud
std::string instanceSpec;
std::string productName;
std::string instanceID;
std::string splitCommodityCode;
float deductedByCashCoupons;
std::string listPriceUnit;
std::string billingDate;
@@ -47,6 +48,7 @@ namespace AlibabaCloud
float deductedByPrepaidCard;
float invoiceDiscount;
std::string splitItemName;
std::string splitProductDetail;
std::string subscriptionType;
std::string item;
float pretaxGrossAmount;
@@ -56,8 +58,10 @@ namespace AlibabaCloud
std::string costUnit;
std::string resourceGroup;
std::string billingType;
std::string splitAccountName;
std::string usage;
float deductedByCoupons;
std::string splitAccountID;
std::string productDetail;
std::string productCode;
std::string zone;
@@ -67,9 +71,11 @@ namespace AlibabaCloud
std::string nickName;
std::string intranetIP;
std::string pipCode;
std::string servicePeriodUnit;
std::string servicePeriod;
std::string splitItemID;
std::string deductedByResourcePackage;
std::string splitBillingCycle;
std::string usageUnit;
std::string ownerID;
float pretaxAmount;

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_BSSOPENAPI_MODEL_SAVEUSERCREDITREQUEST_H_
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
namespace AlibabaCloud
{
namespace BssOpenApi
{
namespace Model
{
class ALIBABACLOUD_BSSOPENAPI_EXPORT SaveUserCreditRequest : public RpcServiceRequest
{
public:
SaveUserCreditRequest();
~SaveUserCreditRequest();
bool getAvoidExpiration()const;
void setAvoidExpiration(bool avoidExpiration);
std::string getDescription()const;
void setDescription(const std::string& description);
bool getAvoidPrepaidNotification()const;
void setAvoidPrepaidNotification(bool avoidPrepaidNotification);
bool getAvoidPrepaidExpiration()const;
void setAvoidPrepaidExpiration(bool avoidPrepaidExpiration);
bool getAvoidNotification()const;
void setAvoidNotification(bool avoidNotification);
std::string get_Operator()const;
void set_Operator(const std::string& _operator);
std::string getCreditValue()const;
void setCreditValue(const std::string& creditValue);
std::string getCreditType()const;
void setCreditType(const std::string& creditType);
private:
bool avoidExpiration_;
std::string description_;
bool avoidPrepaidNotification_;
bool avoidPrepaidExpiration_;
bool avoidNotification_;
std::string _operator_;
std::string creditValue_;
std::string creditType_;
};
}
}
}
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITREQUEST_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_BSSOPENAPI_MODEL_SAVEUSERCREDITRESULT_H_
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
namespace AlibabaCloud
{
namespace BssOpenApi
{
namespace Model
{
class ALIBABACLOUD_BSSOPENAPI_EXPORT SaveUserCreditResult : public ServiceResult
{
public:
SaveUserCreditResult();
explicit SaveUserCreditResult(const std::string &payload);
~SaveUserCreditResult();
std::string getMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITRESULT_H_

View File

@@ -0,0 +1,96 @@
/*
* 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_BSSOPENAPI_MODEL_SETCREDITLABELACTIONREQUEST_H_
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
namespace AlibabaCloud
{
namespace BssOpenApi
{
namespace Model
{
class ALIBABACLOUD_BSSOPENAPI_EXPORT SetCreditLabelActionRequest : public RpcServiceRequest
{
public:
SetCreditLabelActionRequest();
~SetCreditLabelActionRequest();
std::string getActionType()const;
void setActionType(const std::string& actionType);
std::string getIsNeedSaveNotifyRule()const;
void setIsNeedSaveNotifyRule(const std::string& isNeedSaveNotifyRule);
std::string getIsNeedAdjustCreditAccount()const;
void setIsNeedAdjustCreditAccount(const std::string& isNeedAdjustCreditAccount);
bool getNewCreateMode()const;
void setNewCreateMode(bool newCreateMode);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getSource()const;
void setSource(const std::string& source);
std::string getCurrencyCode()const;
void setCurrencyCode(const std::string& currencyCode);
std::string getDailyCycle()const;
void setDailyCycle(const std::string& dailyCycle);
std::string get_Operator()const;
void set_Operator(const std::string& _operator);
std::string getUid()const;
void setUid(const std::string& uid);
std::string getSiteCode()const;
void setSiteCode(const std::string& siteCode);
std::string getClearCycle()const;
void setClearCycle(const std::string& clearCycle);
bool getNeedNotice()const;
void setNeedNotice(bool needNotice);
std::string getRequestId()const;
void setRequestId(const std::string& requestId);
std::string getIsNeedSetCreditAmount()const;
void setIsNeedSetCreditAmount(const std::string& isNeedSetCreditAmount);
std::string getCreditAmount()const;
void setCreditAmount(const std::string& creditAmount);
std::string getIsNeedAddSettleLabel()const;
void setIsNeedAddSettleLabel(const std::string& isNeedAddSettleLabel);
private:
std::string actionType_;
std::string isNeedSaveNotifyRule_;
std::string isNeedAdjustCreditAccount_;
bool newCreateMode_;
std::string description_;
std::string source_;
std::string currencyCode_;
std::string dailyCycle_;
std::string _operator_;
std::string uid_;
std::string siteCode_;
std::string clearCycle_;
bool needNotice_;
std::string requestId_;
std::string isNeedSetCreditAmount_;
std::string creditAmount_;
std::string isNeedAddSettleLabel_;
};
}
}
}
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONREQUEST_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_BSSOPENAPI_MODEL_SETCREDITLABELACTIONRESULT_H_
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
namespace AlibabaCloud
{
namespace BssOpenApi
{
namespace Model
{
class ALIBABACLOUD_BSSOPENAPI_EXPORT SetCreditLabelActionResult : public ServiceResult
{
public:
SetCreditLabelActionResult();
explicit SetCreditLabelActionResult(const std::string &payload);
~SetCreditLabelActionResult();
std::string getMessage()const;
bool getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
bool data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONRESULT_H_

View File

@@ -1743,6 +1743,78 @@ BssOpenApiClient::QueryResourcePackageInstancesOutcomeCallable BssOpenApiClient:
return task->get_future();
}
BssOpenApiClient::QuerySavingsPlansDeductLogOutcome BssOpenApiClient::querySavingsPlansDeductLog(const QuerySavingsPlansDeductLogRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QuerySavingsPlansDeductLogOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QuerySavingsPlansDeductLogOutcome(QuerySavingsPlansDeductLogResult(outcome.result()));
else
return QuerySavingsPlansDeductLogOutcome(outcome.error());
}
void BssOpenApiClient::querySavingsPlansDeductLogAsync(const QuerySavingsPlansDeductLogRequest& request, const QuerySavingsPlansDeductLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, querySavingsPlansDeductLog(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::QuerySavingsPlansDeductLogOutcomeCallable BssOpenApiClient::querySavingsPlansDeductLogCallable(const QuerySavingsPlansDeductLogRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QuerySavingsPlansDeductLogOutcome()>>(
[this, request]()
{
return this->querySavingsPlansDeductLog(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::QuerySavingsPlansInstanceOutcome BssOpenApiClient::querySavingsPlansInstance(const QuerySavingsPlansInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QuerySavingsPlansInstanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QuerySavingsPlansInstanceOutcome(QuerySavingsPlansInstanceResult(outcome.result()));
else
return QuerySavingsPlansInstanceOutcome(outcome.error());
}
void BssOpenApiClient::querySavingsPlansInstanceAsync(const QuerySavingsPlansInstanceRequest& request, const QuerySavingsPlansInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, querySavingsPlansInstance(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::QuerySavingsPlansInstanceOutcomeCallable BssOpenApiClient::querySavingsPlansInstanceCallable(const QuerySavingsPlansInstanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QuerySavingsPlansInstanceOutcome()>>(
[this, request]()
{
return this->querySavingsPlansInstance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::QuerySettleBillOutcome BssOpenApiClient::querySettleBill(const QuerySettleBillRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1959,6 +2031,78 @@ BssOpenApiClient::RenewResourcePackageOutcomeCallable BssOpenApiClient::renewRes
return task->get_future();
}
BssOpenApiClient::SaveUserCreditOutcome BssOpenApiClient::saveUserCredit(const SaveUserCreditRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SaveUserCreditOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SaveUserCreditOutcome(SaveUserCreditResult(outcome.result()));
else
return SaveUserCreditOutcome(outcome.error());
}
void BssOpenApiClient::saveUserCreditAsync(const SaveUserCreditRequest& request, const SaveUserCreditAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, saveUserCredit(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::SaveUserCreditOutcomeCallable BssOpenApiClient::saveUserCreditCallable(const SaveUserCreditRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SaveUserCreditOutcome()>>(
[this, request]()
{
return this->saveUserCredit(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::SetCreditLabelActionOutcome BssOpenApiClient::setCreditLabelAction(const SetCreditLabelActionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SetCreditLabelActionOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SetCreditLabelActionOutcome(SetCreditLabelActionResult(outcome.result()));
else
return SetCreditLabelActionOutcome(outcome.error());
}
void BssOpenApiClient::setCreditLabelActionAsync(const SetCreditLabelActionRequest& request, const SetCreditLabelActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, setCreditLabelAction(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::SetCreditLabelActionOutcomeCallable BssOpenApiClient::setCreditLabelActionCallable(const SetCreditLabelActionRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SetCreditLabelActionOutcome()>>(
[this, request]()
{
return this->setCreditLabelAction(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::SetRenewalOutcome BssOpenApiClient::setRenewal(const SetRenewalRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -82,6 +82,17 @@ void QueryAccountBillRequest::setBillOwnerId(long billOwnerId)
setParameter("BillOwnerId", std::to_string(billOwnerId));
}
std::string QueryAccountBillRequest::getBillingDate()const
{
return billingDate_;
}
void QueryAccountBillRequest::setBillingDate(const std::string& billingDate)
{
billingDate_ = billingDate;
setParameter("BillingDate", billingDate);
}
bool QueryAccountBillRequest::getIsGroupByProduct()const
{
return isGroupByProduct_;
@@ -93,6 +104,17 @@ void QueryAccountBillRequest::setIsGroupByProduct(bool isGroupByProduct)
setParameter("IsGroupByProduct", isGroupByProduct ? "true" : "false");
}
std::string QueryAccountBillRequest::getGranularity()const
{
return granularity_;
}
void QueryAccountBillRequest::setGranularity(const std::string& granularity)
{
granularity_ = granularity;
setParameter("Granularity", granularity);
}
int QueryAccountBillRequest::getPageSize()const
{
return pageSize_;

View File

@@ -88,6 +88,8 @@ void QueryAccountBillResult::parse(const std::string &payload)
itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString();
if(!dataNodeItemsItem["PipCode"].isNull())
itemObject.pipCode = dataNodeItemsItem["PipCode"].asString();
if(!dataNodeItemsItem["BillingDate"].isNull())
itemObject.billingDate = dataNodeItemsItem["BillingDate"].asString();
data_.items.push_back(itemObject);
}
if(!value["Success"].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/bssopenapi/model/QuerySavingsPlansDeductLogRequest.h>
using AlibabaCloud::BssOpenApi::Model::QuerySavingsPlansDeductLogRequest;
QuerySavingsPlansDeductLogRequest::QuerySavingsPlansDeductLogRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySavingsPlansDeductLog")
{
setMethod(HttpRequest::Method::Post);
}
QuerySavingsPlansDeductLogRequest::~QuerySavingsPlansDeductLogRequest()
{}
std::string QuerySavingsPlansDeductLogRequest::getEndTime()const
{
return endTime_;
}
void QuerySavingsPlansDeductLogRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string QuerySavingsPlansDeductLogRequest::getStartTime()const
{
return startTime_;
}
void QuerySavingsPlansDeductLogRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string QuerySavingsPlansDeductLogRequest::getLocale()const
{
return locale_;
}
void QuerySavingsPlansDeductLogRequest::setLocale(const std::string& locale)
{
locale_ = locale;
setParameter("Locale", locale);
}
int QuerySavingsPlansDeductLogRequest::getPageNum()const
{
return pageNum_;
}
void QuerySavingsPlansDeductLogRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}
std::string QuerySavingsPlansDeductLogRequest::getInstanceId()const
{
return instanceId_;
}
void QuerySavingsPlansDeductLogRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string QuerySavingsPlansDeductLogRequest::getRequestId()const
{
return requestId_;
}
void QuerySavingsPlansDeductLogRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
int QuerySavingsPlansDeductLogRequest::getPageSize()const
{
return pageSize_;
}
void QuerySavingsPlansDeductLogRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string QuerySavingsPlansDeductLogRequest::getInstanceType()const
{
return instanceType_;
}
void QuerySavingsPlansDeductLogRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setParameter("InstanceType", instanceType);
}

View File

@@ -0,0 +1,105 @@
/*
* 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/bssopenapi/model/QuerySavingsPlansDeductLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QuerySavingsPlansDeductLogResult::QuerySavingsPlansDeductLogResult() :
ServiceResult()
{}
QuerySavingsPlansDeductLogResult::QuerySavingsPlansDeductLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QuerySavingsPlansDeductLogResult::~QuerySavingsPlansDeductLogResult()
{}
void QuerySavingsPlansDeductLogResult::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["PageNum"].isNull())
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
auto allItemsNode = dataNode["Items"]["SavingsPlansDeductDetailResponse"];
for (auto dataNodeItemsSavingsPlansDeductDetailResponse : allItemsNode)
{
Data::SavingsPlansDeductDetailResponse savingsPlansDeductDetailResponseObject;
if(!dataNodeItemsSavingsPlansDeductDetailResponse["InstanceId"].isNull())
savingsPlansDeductDetailResponseObject.instanceId = dataNodeItemsSavingsPlansDeductDetailResponse["InstanceId"].asString();
if(!dataNodeItemsSavingsPlansDeductDetailResponse["StartTime"].isNull())
savingsPlansDeductDetailResponseObject.startTime = dataNodeItemsSavingsPlansDeductDetailResponse["StartTime"].asString();
if(!dataNodeItemsSavingsPlansDeductDetailResponse["EndTime"].isNull())
savingsPlansDeductDetailResponseObject.endTime = dataNodeItemsSavingsPlansDeductDetailResponse["EndTime"].asString();
if(!dataNodeItemsSavingsPlansDeductDetailResponse["SavingsType"].isNull())
savingsPlansDeductDetailResponseObject.savingsType = dataNodeItemsSavingsPlansDeductDetailResponse["SavingsType"].asString();
if(!dataNodeItemsSavingsPlansDeductDetailResponse["BillModule"].isNull())
savingsPlansDeductDetailResponseObject.billModule = dataNodeItemsSavingsPlansDeductDetailResponse["BillModule"].asString();
if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductFee"].isNull())
savingsPlansDeductDetailResponseObject.deductFee = dataNodeItemsSavingsPlansDeductDetailResponse["DeductFee"].asString();
if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductRate"].isNull())
savingsPlansDeductDetailResponseObject.deductRate = dataNodeItemsSavingsPlansDeductDetailResponse["DeductRate"].asString();
if(!dataNodeItemsSavingsPlansDeductDetailResponse["UserId"].isNull())
savingsPlansDeductDetailResponseObject.userId = std::stol(dataNodeItemsSavingsPlansDeductDetailResponse["UserId"].asString());
if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductCommodity"].isNull())
savingsPlansDeductDetailResponseObject.deductCommodity = dataNodeItemsSavingsPlansDeductDetailResponse["DeductCommodity"].asString();
if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductInstanceId"].isNull())
savingsPlansDeductDetailResponseObject.deductInstanceId = dataNodeItemsSavingsPlansDeductDetailResponse["DeductInstanceId"].asString();
if(!dataNodeItemsSavingsPlansDeductDetailResponse["DiscountRate"].isNull())
savingsPlansDeductDetailResponseObject.discountRate = dataNodeItemsSavingsPlansDeductDetailResponse["DiscountRate"].asString();
data_.items.push_back(savingsPlansDeductDetailResponseObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QuerySavingsPlansDeductLogResult::getMessage()const
{
return message_;
}
QuerySavingsPlansDeductLogResult::Data QuerySavingsPlansDeductLogResult::getData()const
{
return data_;
}
std::string QuerySavingsPlansDeductLogResult::getCode()const
{
return code_;
}
bool QuerySavingsPlansDeductLogResult::getSuccess()const
{
return success_;
}

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/bssopenapi/model/QuerySavingsPlansInstanceRequest.h>
using AlibabaCloud::BssOpenApi::Model::QuerySavingsPlansInstanceRequest;
QuerySavingsPlansInstanceRequest::QuerySavingsPlansInstanceRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySavingsPlansInstance")
{
setMethod(HttpRequest::Method::Post);
}
QuerySavingsPlansInstanceRequest::~QuerySavingsPlansInstanceRequest()
{}
std::string QuerySavingsPlansInstanceRequest::getEndTime()const
{
return endTime_;
}
void QuerySavingsPlansInstanceRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string QuerySavingsPlansInstanceRequest::getStartTime()const
{
return startTime_;
}
void QuerySavingsPlansInstanceRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string QuerySavingsPlansInstanceRequest::getLocale()const
{
return locale_;
}
void QuerySavingsPlansInstanceRequest::setLocale(const std::string& locale)
{
locale_ = locale;
setParameter("Locale", locale);
}
int QuerySavingsPlansInstanceRequest::getPageNum()const
{
return pageNum_;
}
void QuerySavingsPlansInstanceRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}
std::string QuerySavingsPlansInstanceRequest::getInstanceId()const
{
return instanceId_;
}
void QuerySavingsPlansInstanceRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string QuerySavingsPlansInstanceRequest::getRequestId()const
{
return requestId_;
}
void QuerySavingsPlansInstanceRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
int QuerySavingsPlansInstanceRequest::getPageSize()const
{
return pageSize_;
}
void QuerySavingsPlansInstanceRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,111 @@
/*
* 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/bssopenapi/model/QuerySavingsPlansInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QuerySavingsPlansInstanceResult::QuerySavingsPlansInstanceResult() :
ServiceResult()
{}
QuerySavingsPlansInstanceResult::QuerySavingsPlansInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QuerySavingsPlansInstanceResult::~QuerySavingsPlansInstanceResult()
{}
void QuerySavingsPlansInstanceResult::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["PageNum"].isNull())
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
auto allItemsNode = dataNode["Items"]["SavingsPlansDetailResponse"];
for (auto dataNodeItemsSavingsPlansDetailResponse : allItemsNode)
{
Data::SavingsPlansDetailResponse savingsPlansDetailResponseObject;
if(!dataNodeItemsSavingsPlansDetailResponse["InstanceId"].isNull())
savingsPlansDetailResponseObject.instanceId = dataNodeItemsSavingsPlansDetailResponse["InstanceId"].asString();
if(!dataNodeItemsSavingsPlansDetailResponse["SavingsType"].isNull())
savingsPlansDetailResponseObject.savingsType = dataNodeItemsSavingsPlansDetailResponse["SavingsType"].asString();
if(!dataNodeItemsSavingsPlansDetailResponse["InstanceFamily"].isNull())
savingsPlansDetailResponseObject.instanceFamily = dataNodeItemsSavingsPlansDetailResponse["InstanceFamily"].asString();
if(!dataNodeItemsSavingsPlansDetailResponse["Region"].isNull())
savingsPlansDetailResponseObject.region = dataNodeItemsSavingsPlansDetailResponse["Region"].asString();
if(!dataNodeItemsSavingsPlansDetailResponse["PoolValue"].isNull())
savingsPlansDetailResponseObject.poolValue = dataNodeItemsSavingsPlansDetailResponse["PoolValue"].asString();
if(!dataNodeItemsSavingsPlansDetailResponse["Currency"].isNull())
savingsPlansDetailResponseObject.currency = dataNodeItemsSavingsPlansDetailResponse["Currency"].asString();
if(!dataNodeItemsSavingsPlansDetailResponse["Status"].isNull())
savingsPlansDetailResponseObject.status = dataNodeItemsSavingsPlansDetailResponse["Status"].asString();
if(!dataNodeItemsSavingsPlansDetailResponse["StartTime"].isNull())
savingsPlansDetailResponseObject.startTime = dataNodeItemsSavingsPlansDetailResponse["StartTime"].asString();
if(!dataNodeItemsSavingsPlansDetailResponse["EndTime"].isNull())
savingsPlansDetailResponseObject.endTime = dataNodeItemsSavingsPlansDetailResponse["EndTime"].asString();
if(!dataNodeItemsSavingsPlansDetailResponse["PayMode"].isNull())
savingsPlansDetailResponseObject.payMode = dataNodeItemsSavingsPlansDetailResponse["PayMode"].asString();
if(!dataNodeItemsSavingsPlansDetailResponse["PrepayFee"].isNull())
savingsPlansDetailResponseObject.prepayFee = dataNodeItemsSavingsPlansDetailResponse["PrepayFee"].asString();
if(!dataNodeItemsSavingsPlansDetailResponse["TotalSave"].isNull())
savingsPlansDetailResponseObject.totalSave = dataNodeItemsSavingsPlansDetailResponse["TotalSave"].asString();
if(!dataNodeItemsSavingsPlansDetailResponse["Utilization"].isNull())
savingsPlansDetailResponseObject.utilization = dataNodeItemsSavingsPlansDetailResponse["Utilization"].asString();
if(!dataNodeItemsSavingsPlansDetailResponse["Share"].isNull())
savingsPlansDetailResponseObject.share = dataNodeItemsSavingsPlansDetailResponse["Share"].asString() == "true";
data_.items.push_back(savingsPlansDetailResponseObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QuerySavingsPlansInstanceResult::getMessage()const
{
return message_;
}
QuerySavingsPlansInstanceResult::Data QuerySavingsPlansInstanceResult::getData()const
{
return data_;
}
std::string QuerySavingsPlansInstanceResult::getCode()const
{
return code_;
}
bool QuerySavingsPlansInstanceResult::getSuccess()const
{
return success_;
}

View File

@@ -136,6 +136,18 @@ void QuerySplitItemBillResult::parse(const std::string &payload)
itemObject.pipCode = dataNodeItemsItem["PipCode"].asString();
if(!dataNodeItemsItem["CommodityCode"].isNull())
itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString();
if(!dataNodeItemsItem["ServicePeriodUnit"].isNull())
itemObject.servicePeriodUnit = dataNodeItemsItem["ServicePeriodUnit"].asString();
if(!dataNodeItemsItem["SplitCommodityCode"].isNull())
itemObject.splitCommodityCode = dataNodeItemsItem["SplitCommodityCode"].asString();
if(!dataNodeItemsItem["SplitProductDetail"].isNull())
itemObject.splitProductDetail = dataNodeItemsItem["SplitProductDetail"].asString();
if(!dataNodeItemsItem["SplitAccountID"].isNull())
itemObject.splitAccountID = dataNodeItemsItem["SplitAccountID"].asString();
if(!dataNodeItemsItem["SplitAccountName"].isNull())
itemObject.splitAccountName = dataNodeItemsItem["SplitAccountName"].asString();
if(!dataNodeItemsItem["SplitBillingCycle"].isNull())
itemObject.splitBillingCycle = dataNodeItemsItem["SplitBillingCycle"].asString();
data_.items.push_back(itemObject);
}
if(!value["Success"].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/bssopenapi/model/SaveUserCreditRequest.h>
using AlibabaCloud::BssOpenApi::Model::SaveUserCreditRequest;
SaveUserCreditRequest::SaveUserCreditRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SaveUserCredit")
{
setMethod(HttpRequest::Method::Post);
}
SaveUserCreditRequest::~SaveUserCreditRequest()
{}
bool SaveUserCreditRequest::getAvoidExpiration()const
{
return avoidExpiration_;
}
void SaveUserCreditRequest::setAvoidExpiration(bool avoidExpiration)
{
avoidExpiration_ = avoidExpiration;
setParameter("AvoidExpiration", avoidExpiration ? "true" : "false");
}
std::string SaveUserCreditRequest::getDescription()const
{
return description_;
}
void SaveUserCreditRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
bool SaveUserCreditRequest::getAvoidPrepaidNotification()const
{
return avoidPrepaidNotification_;
}
void SaveUserCreditRequest::setAvoidPrepaidNotification(bool avoidPrepaidNotification)
{
avoidPrepaidNotification_ = avoidPrepaidNotification;
setParameter("AvoidPrepaidNotification", avoidPrepaidNotification ? "true" : "false");
}
bool SaveUserCreditRequest::getAvoidPrepaidExpiration()const
{
return avoidPrepaidExpiration_;
}
void SaveUserCreditRequest::setAvoidPrepaidExpiration(bool avoidPrepaidExpiration)
{
avoidPrepaidExpiration_ = avoidPrepaidExpiration;
setParameter("AvoidPrepaidExpiration", avoidPrepaidExpiration ? "true" : "false");
}
bool SaveUserCreditRequest::getAvoidNotification()const
{
return avoidNotification_;
}
void SaveUserCreditRequest::setAvoidNotification(bool avoidNotification)
{
avoidNotification_ = avoidNotification;
setParameter("AvoidNotification", avoidNotification ? "true" : "false");
}
std::string SaveUserCreditRequest::get_Operator()const
{
return _operator_;
}
void SaveUserCreditRequest::set_Operator(const std::string& _operator)
{
_operator_ = _operator;
setParameter("_Operator", _operator);
}
std::string SaveUserCreditRequest::getCreditValue()const
{
return creditValue_;
}
void SaveUserCreditRequest::setCreditValue(const std::string& creditValue)
{
creditValue_ = creditValue;
setParameter("CreditValue", creditValue);
}
std::string SaveUserCreditRequest::getCreditType()const
{
return creditType_;
}
void SaveUserCreditRequest::setCreditType(const std::string& creditType)
{
creditType_ = creditType;
setParameter("CreditType", creditType);
}

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/bssopenapi/model/SaveUserCreditResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SaveUserCreditResult::SaveUserCreditResult() :
ServiceResult()
{}
SaveUserCreditResult::SaveUserCreditResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SaveUserCreditResult::~SaveUserCreditResult()
{}
void SaveUserCreditResult::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["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string SaveUserCreditResult::getMessage()const
{
return message_;
}
std::string SaveUserCreditResult::getCode()const
{
return code_;
}
bool SaveUserCreditResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,216 @@
/*
* 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/bssopenapi/model/SetCreditLabelActionRequest.h>
using AlibabaCloud::BssOpenApi::Model::SetCreditLabelActionRequest;
SetCreditLabelActionRequest::SetCreditLabelActionRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "SetCreditLabelAction")
{
setMethod(HttpRequest::Method::Post);
}
SetCreditLabelActionRequest::~SetCreditLabelActionRequest()
{}
std::string SetCreditLabelActionRequest::getActionType()const
{
return actionType_;
}
void SetCreditLabelActionRequest::setActionType(const std::string& actionType)
{
actionType_ = actionType;
setParameter("ActionType", actionType);
}
std::string SetCreditLabelActionRequest::getIsNeedSaveNotifyRule()const
{
return isNeedSaveNotifyRule_;
}
void SetCreditLabelActionRequest::setIsNeedSaveNotifyRule(const std::string& isNeedSaveNotifyRule)
{
isNeedSaveNotifyRule_ = isNeedSaveNotifyRule;
setParameter("IsNeedSaveNotifyRule", isNeedSaveNotifyRule);
}
std::string SetCreditLabelActionRequest::getIsNeedAdjustCreditAccount()const
{
return isNeedAdjustCreditAccount_;
}
void SetCreditLabelActionRequest::setIsNeedAdjustCreditAccount(const std::string& isNeedAdjustCreditAccount)
{
isNeedAdjustCreditAccount_ = isNeedAdjustCreditAccount;
setParameter("IsNeedAdjustCreditAccount", isNeedAdjustCreditAccount);
}
bool SetCreditLabelActionRequest::getNewCreateMode()const
{
return newCreateMode_;
}
void SetCreditLabelActionRequest::setNewCreateMode(bool newCreateMode)
{
newCreateMode_ = newCreateMode;
setParameter("NewCreateMode", newCreateMode ? "true" : "false");
}
std::string SetCreditLabelActionRequest::getDescription()const
{
return description_;
}
void SetCreditLabelActionRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string SetCreditLabelActionRequest::getSource()const
{
return source_;
}
void SetCreditLabelActionRequest::setSource(const std::string& source)
{
source_ = source;
setParameter("Source", source);
}
std::string SetCreditLabelActionRequest::getCurrencyCode()const
{
return currencyCode_;
}
void SetCreditLabelActionRequest::setCurrencyCode(const std::string& currencyCode)
{
currencyCode_ = currencyCode;
setParameter("CurrencyCode", currencyCode);
}
std::string SetCreditLabelActionRequest::getDailyCycle()const
{
return dailyCycle_;
}
void SetCreditLabelActionRequest::setDailyCycle(const std::string& dailyCycle)
{
dailyCycle_ = dailyCycle;
setParameter("DailyCycle", dailyCycle);
}
std::string SetCreditLabelActionRequest::get_Operator()const
{
return _operator_;
}
void SetCreditLabelActionRequest::set_Operator(const std::string& _operator)
{
_operator_ = _operator;
setParameter("_Operator", _operator);
}
std::string SetCreditLabelActionRequest::getUid()const
{
return uid_;
}
void SetCreditLabelActionRequest::setUid(const std::string& uid)
{
uid_ = uid;
setParameter("Uid", uid);
}
std::string SetCreditLabelActionRequest::getSiteCode()const
{
return siteCode_;
}
void SetCreditLabelActionRequest::setSiteCode(const std::string& siteCode)
{
siteCode_ = siteCode;
setParameter("SiteCode", siteCode);
}
std::string SetCreditLabelActionRequest::getClearCycle()const
{
return clearCycle_;
}
void SetCreditLabelActionRequest::setClearCycle(const std::string& clearCycle)
{
clearCycle_ = clearCycle;
setParameter("ClearCycle", clearCycle);
}
bool SetCreditLabelActionRequest::getNeedNotice()const
{
return needNotice_;
}
void SetCreditLabelActionRequest::setNeedNotice(bool needNotice)
{
needNotice_ = needNotice;
setParameter("NeedNotice", needNotice ? "true" : "false");
}
std::string SetCreditLabelActionRequest::getRequestId()const
{
return requestId_;
}
void SetCreditLabelActionRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string SetCreditLabelActionRequest::getIsNeedSetCreditAmount()const
{
return isNeedSetCreditAmount_;
}
void SetCreditLabelActionRequest::setIsNeedSetCreditAmount(const std::string& isNeedSetCreditAmount)
{
isNeedSetCreditAmount_ = isNeedSetCreditAmount;
setParameter("IsNeedSetCreditAmount", isNeedSetCreditAmount);
}
std::string SetCreditLabelActionRequest::getCreditAmount()const
{
return creditAmount_;
}
void SetCreditLabelActionRequest::setCreditAmount(const std::string& creditAmount)
{
creditAmount_ = creditAmount;
setParameter("CreditAmount", creditAmount);
}
std::string SetCreditLabelActionRequest::getIsNeedAddSettleLabel()const
{
return isNeedAddSettleLabel_;
}
void SetCreditLabelActionRequest::setIsNeedAddSettleLabel(const std::string& isNeedAddSettleLabel)
{
isNeedAddSettleLabel_ = isNeedAddSettleLabel;
setParameter("IsNeedAddSettleLabel", isNeedAddSettleLabel);
}

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/bssopenapi/model/SetCreditLabelActionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
SetCreditLabelActionResult::SetCreditLabelActionResult() :
ServiceResult()
{}
SetCreditLabelActionResult::SetCreditLabelActionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetCreditLabelActionResult::~SetCreditLabelActionResult()
{}
void SetCreditLabelActionResult::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() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string SetCreditLabelActionResult::getMessage()const
{
return message_;
}
bool SetCreditLabelActionResult::getData()const
{
return data_;
}
std::string SetCreditLabelActionResult::getCode()const
{
return code_;
}
bool SetCreditLabelActionResult::getSuccess()const
{
return success_;
}

View File

@@ -23,6 +23,8 @@ set(cdrs_public_header
set(cdrs_public_header_model
include/alibabacloud/cdrs/model/AddCdrsMonitorRequest.h
include/alibabacloud/cdrs/model/AddCdrsMonitorResult.h
include/alibabacloud/cdrs/model/AddMonitorRequest.h
include/alibabacloud/cdrs/model/AddMonitorResult.h
include/alibabacloud/cdrs/model/BindDeviceRequest.h
include/alibabacloud/cdrs/model/BindDeviceResult.h
include/alibabacloud/cdrs/model/CreateProjectRequest.h
@@ -31,6 +33,12 @@ set(cdrs_public_header_model
include/alibabacloud/cdrs/model/GetCdrsMonitorListResult.h
include/alibabacloud/cdrs/model/GetCdrsMonitorResultRequest.h
include/alibabacloud/cdrs/model/GetCdrsMonitorResultResult.h
include/alibabacloud/cdrs/model/GetMonitorListRequest.h
include/alibabacloud/cdrs/model/GetMonitorListResult.h
include/alibabacloud/cdrs/model/GetMonitorResultRequest.h
include/alibabacloud/cdrs/model/GetMonitorResultResult.h
include/alibabacloud/cdrs/model/ListAreaHotSpotMetricsRequest.h
include/alibabacloud/cdrs/model/ListAreaHotSpotMetricsResult.h
include/alibabacloud/cdrs/model/ListCityMapAoisRequest.h
include/alibabacloud/cdrs/model/ListCityMapAoisResult.h
include/alibabacloud/cdrs/model/ListCityMapCameraResultsRequest.h
@@ -43,8 +51,8 @@ set(cdrs_public_header_model
include/alibabacloud/cdrs/model/ListCityMapPersonFlowResult.h
include/alibabacloud/cdrs/model/ListCityMapRangeStatisticRequest.h
include/alibabacloud/cdrs/model/ListCityMapRangeStatisticResult.h
include/alibabacloud/cdrs/model/ListCorpMetricsRequest.h
include/alibabacloud/cdrs/model/ListCorpMetricsResult.h
include/alibabacloud/cdrs/model/ListCorpMetricsStatisticRequest.h
include/alibabacloud/cdrs/model/ListCorpMetricsStatisticResult.h
include/alibabacloud/cdrs/model/ListDataStatisticsRequest.h
include/alibabacloud/cdrs/model/ListDataStatisticsResult.h
include/alibabacloud/cdrs/model/ListDataStatisticsByDayRequest.h
@@ -57,10 +65,10 @@ set(cdrs_public_header_model
include/alibabacloud/cdrs/model/ListDevicePersonResult.h
include/alibabacloud/cdrs/model/ListDevicePersonStatisticsRequest.h
include/alibabacloud/cdrs/model/ListDevicePersonStatisticsResult.h
include/alibabacloud/cdrs/model/ListDeviceRelationRequest.h
include/alibabacloud/cdrs/model/ListDeviceRelationResult.h
include/alibabacloud/cdrs/model/ListMapRouteDetailsRequest.h
include/alibabacloud/cdrs/model/ListMapRouteDetailsResult.h
include/alibabacloud/cdrs/model/ListMetricsRequest.h
include/alibabacloud/cdrs/model/ListMetricsResult.h
include/alibabacloud/cdrs/model/ListPersonDetailsRequest.h
include/alibabacloud/cdrs/model/ListPersonDetailsResult.h
include/alibabacloud/cdrs/model/ListPersonResultRequest.h
@@ -69,8 +77,6 @@ set(cdrs_public_header_model
include/alibabacloud/cdrs/model/ListPersonTagResult.h
include/alibabacloud/cdrs/model/ListPersonTopRequest.h
include/alibabacloud/cdrs/model/ListPersonTopResult.h
include/alibabacloud/cdrs/model/ListPersonTraceRequest.h
include/alibabacloud/cdrs/model/ListPersonTraceResult.h
include/alibabacloud/cdrs/model/ListPersonTrackRequest.h
include/alibabacloud/cdrs/model/ListPersonTrackResult.h
include/alibabacloud/cdrs/model/ListRangeDeviceRequest.h
@@ -79,6 +85,8 @@ set(cdrs_public_header_model
include/alibabacloud/cdrs/model/ListStorageStatisticsResult.h
include/alibabacloud/cdrs/model/ListStructureStatisticsRequest.h
include/alibabacloud/cdrs/model/ListStructureStatisticsResult.h
include/alibabacloud/cdrs/model/ListTagMetricsRequest.h
include/alibabacloud/cdrs/model/ListTagMetricsResult.h
include/alibabacloud/cdrs/model/ListVehicleDetailsRequest.h
include/alibabacloud/cdrs/model/ListVehicleDetailsResult.h
include/alibabacloud/cdrs/model/ListVehicleResultsRequest.h
@@ -89,16 +97,26 @@ set(cdrs_public_header_model
include/alibabacloud/cdrs/model/ListVehicleTopResult.h
include/alibabacloud/cdrs/model/ListVehicleTrackRequest.h
include/alibabacloud/cdrs/model/ListVehicleTrackResult.h
include/alibabacloud/cdrs/model/PaginateDeviceRequest.h
include/alibabacloud/cdrs/model/PaginateDeviceResult.h
include/alibabacloud/cdrs/model/PaginateProjectRequest.h
include/alibabacloud/cdrs/model/PaginateProjectResult.h
include/alibabacloud/cdrs/model/RecognizeImageRequest.h
include/alibabacloud/cdrs/model/RecognizeImageResult.h
include/alibabacloud/cdrs/model/SearchAggregateObjectRequest.h
include/alibabacloud/cdrs/model/SearchAggregateObjectResult.h
include/alibabacloud/cdrs/model/SearchObjectRequest.h
include/alibabacloud/cdrs/model/SearchObjectResult.h
include/alibabacloud/cdrs/model/StopCdrsMonitorRequest.h
include/alibabacloud/cdrs/model/StopCdrsMonitorResult.h
include/alibabacloud/cdrs/model/StopMonitorRequest.h
include/alibabacloud/cdrs/model/StopMonitorResult.h
include/alibabacloud/cdrs/model/UnbindDeviceRequest.h
include/alibabacloud/cdrs/model/UnbindDeviceResult.h
include/alibabacloud/cdrs/model/UpdateCdrsMonitorRequest.h
include/alibabacloud/cdrs/model/UpdateCdrsMonitorResult.h
include/alibabacloud/cdrs/model/UpdateMonitorRequest.h
include/alibabacloud/cdrs/model/UpdateMonitorResult.h
include/alibabacloud/cdrs/model/UpdateProjectRequest.h
include/alibabacloud/cdrs/model/UpdateProjectResult.h )
@@ -106,6 +124,8 @@ set(cdrs_src
src/CDRSClient.cc
src/model/AddCdrsMonitorRequest.cc
src/model/AddCdrsMonitorResult.cc
src/model/AddMonitorRequest.cc
src/model/AddMonitorResult.cc
src/model/BindDeviceRequest.cc
src/model/BindDeviceResult.cc
src/model/CreateProjectRequest.cc
@@ -114,6 +134,12 @@ set(cdrs_src
src/model/GetCdrsMonitorListResult.cc
src/model/GetCdrsMonitorResultRequest.cc
src/model/GetCdrsMonitorResultResult.cc
src/model/GetMonitorListRequest.cc
src/model/GetMonitorListResult.cc
src/model/GetMonitorResultRequest.cc
src/model/GetMonitorResultResult.cc
src/model/ListAreaHotSpotMetricsRequest.cc
src/model/ListAreaHotSpotMetricsResult.cc
src/model/ListCityMapAoisRequest.cc
src/model/ListCityMapAoisResult.cc
src/model/ListCityMapCameraResultsRequest.cc
@@ -126,8 +152,8 @@ set(cdrs_src
src/model/ListCityMapPersonFlowResult.cc
src/model/ListCityMapRangeStatisticRequest.cc
src/model/ListCityMapRangeStatisticResult.cc
src/model/ListCorpMetricsRequest.cc
src/model/ListCorpMetricsResult.cc
src/model/ListCorpMetricsStatisticRequest.cc
src/model/ListCorpMetricsStatisticResult.cc
src/model/ListDataStatisticsRequest.cc
src/model/ListDataStatisticsResult.cc
src/model/ListDataStatisticsByDayRequest.cc
@@ -140,10 +166,10 @@ set(cdrs_src
src/model/ListDevicePersonResult.cc
src/model/ListDevicePersonStatisticsRequest.cc
src/model/ListDevicePersonStatisticsResult.cc
src/model/ListDeviceRelationRequest.cc
src/model/ListDeviceRelationResult.cc
src/model/ListMapRouteDetailsRequest.cc
src/model/ListMapRouteDetailsResult.cc
src/model/ListMetricsRequest.cc
src/model/ListMetricsResult.cc
src/model/ListPersonDetailsRequest.cc
src/model/ListPersonDetailsResult.cc
src/model/ListPersonResultRequest.cc
@@ -152,8 +178,6 @@ set(cdrs_src
src/model/ListPersonTagResult.cc
src/model/ListPersonTopRequest.cc
src/model/ListPersonTopResult.cc
src/model/ListPersonTraceRequest.cc
src/model/ListPersonTraceResult.cc
src/model/ListPersonTrackRequest.cc
src/model/ListPersonTrackResult.cc
src/model/ListRangeDeviceRequest.cc
@@ -162,6 +186,8 @@ set(cdrs_src
src/model/ListStorageStatisticsResult.cc
src/model/ListStructureStatisticsRequest.cc
src/model/ListStructureStatisticsResult.cc
src/model/ListTagMetricsRequest.cc
src/model/ListTagMetricsResult.cc
src/model/ListVehicleDetailsRequest.cc
src/model/ListVehicleDetailsResult.cc
src/model/ListVehicleResultsRequest.cc
@@ -172,16 +198,26 @@ set(cdrs_src
src/model/ListVehicleTopResult.cc
src/model/ListVehicleTrackRequest.cc
src/model/ListVehicleTrackResult.cc
src/model/PaginateDeviceRequest.cc
src/model/PaginateDeviceResult.cc
src/model/PaginateProjectRequest.cc
src/model/PaginateProjectResult.cc
src/model/RecognizeImageRequest.cc
src/model/RecognizeImageResult.cc
src/model/SearchAggregateObjectRequest.cc
src/model/SearchAggregateObjectResult.cc
src/model/SearchObjectRequest.cc
src/model/SearchObjectResult.cc
src/model/StopCdrsMonitorRequest.cc
src/model/StopCdrsMonitorResult.cc
src/model/StopMonitorRequest.cc
src/model/StopMonitorResult.cc
src/model/UnbindDeviceRequest.cc
src/model/UnbindDeviceResult.cc
src/model/UpdateCdrsMonitorRequest.cc
src/model/UpdateCdrsMonitorResult.cc
src/model/UpdateMonitorRequest.cc
src/model/UpdateMonitorResult.cc
src/model/UpdateProjectRequest.cc
src/model/UpdateProjectResult.cc )

View File

@@ -24,6 +24,8 @@
#include "CDRSExport.h"
#include "model/AddCdrsMonitorRequest.h"
#include "model/AddCdrsMonitorResult.h"
#include "model/AddMonitorRequest.h"
#include "model/AddMonitorResult.h"
#include "model/BindDeviceRequest.h"
#include "model/BindDeviceResult.h"
#include "model/CreateProjectRequest.h"
@@ -32,6 +34,12 @@
#include "model/GetCdrsMonitorListResult.h"
#include "model/GetCdrsMonitorResultRequest.h"
#include "model/GetCdrsMonitorResultResult.h"
#include "model/GetMonitorListRequest.h"
#include "model/GetMonitorListResult.h"
#include "model/GetMonitorResultRequest.h"
#include "model/GetMonitorResultResult.h"
#include "model/ListAreaHotSpotMetricsRequest.h"
#include "model/ListAreaHotSpotMetricsResult.h"
#include "model/ListCityMapAoisRequest.h"
#include "model/ListCityMapAoisResult.h"
#include "model/ListCityMapCameraResultsRequest.h"
@@ -44,8 +52,8 @@
#include "model/ListCityMapPersonFlowResult.h"
#include "model/ListCityMapRangeStatisticRequest.h"
#include "model/ListCityMapRangeStatisticResult.h"
#include "model/ListCorpMetricsRequest.h"
#include "model/ListCorpMetricsResult.h"
#include "model/ListCorpMetricsStatisticRequest.h"
#include "model/ListCorpMetricsStatisticResult.h"
#include "model/ListDataStatisticsRequest.h"
#include "model/ListDataStatisticsResult.h"
#include "model/ListDataStatisticsByDayRequest.h"
@@ -58,10 +66,10 @@
#include "model/ListDevicePersonResult.h"
#include "model/ListDevicePersonStatisticsRequest.h"
#include "model/ListDevicePersonStatisticsResult.h"
#include "model/ListDeviceRelationRequest.h"
#include "model/ListDeviceRelationResult.h"
#include "model/ListMapRouteDetailsRequest.h"
#include "model/ListMapRouteDetailsResult.h"
#include "model/ListMetricsRequest.h"
#include "model/ListMetricsResult.h"
#include "model/ListPersonDetailsRequest.h"
#include "model/ListPersonDetailsResult.h"
#include "model/ListPersonResultRequest.h"
@@ -70,8 +78,6 @@
#include "model/ListPersonTagResult.h"
#include "model/ListPersonTopRequest.h"
#include "model/ListPersonTopResult.h"
#include "model/ListPersonTraceRequest.h"
#include "model/ListPersonTraceResult.h"
#include "model/ListPersonTrackRequest.h"
#include "model/ListPersonTrackResult.h"
#include "model/ListRangeDeviceRequest.h"
@@ -80,6 +86,8 @@
#include "model/ListStorageStatisticsResult.h"
#include "model/ListStructureStatisticsRequest.h"
#include "model/ListStructureStatisticsResult.h"
#include "model/ListTagMetricsRequest.h"
#include "model/ListTagMetricsResult.h"
#include "model/ListVehicleDetailsRequest.h"
#include "model/ListVehicleDetailsResult.h"
#include "model/ListVehicleResultsRequest.h"
@@ -90,16 +98,26 @@
#include "model/ListVehicleTopResult.h"
#include "model/ListVehicleTrackRequest.h"
#include "model/ListVehicleTrackResult.h"
#include "model/PaginateDeviceRequest.h"
#include "model/PaginateDeviceResult.h"
#include "model/PaginateProjectRequest.h"
#include "model/PaginateProjectResult.h"
#include "model/RecognizeImageRequest.h"
#include "model/RecognizeImageResult.h"
#include "model/SearchAggregateObjectRequest.h"
#include "model/SearchAggregateObjectResult.h"
#include "model/SearchObjectRequest.h"
#include "model/SearchObjectResult.h"
#include "model/StopCdrsMonitorRequest.h"
#include "model/StopCdrsMonitorResult.h"
#include "model/StopMonitorRequest.h"
#include "model/StopMonitorResult.h"
#include "model/UnbindDeviceRequest.h"
#include "model/UnbindDeviceResult.h"
#include "model/UpdateCdrsMonitorRequest.h"
#include "model/UpdateCdrsMonitorResult.h"
#include "model/UpdateMonitorRequest.h"
#include "model/UpdateMonitorResult.h"
#include "model/UpdateProjectRequest.h"
#include "model/UpdateProjectResult.h"
@@ -114,6 +132,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AddCdrsMonitorResult> AddCdrsMonitorOutcome;
typedef std::future<AddCdrsMonitorOutcome> AddCdrsMonitorOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::AddCdrsMonitorRequest&, const AddCdrsMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddCdrsMonitorAsyncHandler;
typedef Outcome<Error, Model::AddMonitorResult> AddMonitorOutcome;
typedef std::future<AddMonitorOutcome> AddMonitorOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::AddMonitorRequest&, const AddMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddMonitorAsyncHandler;
typedef Outcome<Error, Model::BindDeviceResult> BindDeviceOutcome;
typedef std::future<BindDeviceOutcome> BindDeviceOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::BindDeviceRequest&, const BindDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindDeviceAsyncHandler;
@@ -126,6 +147,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetCdrsMonitorResultResult> GetCdrsMonitorResultOutcome;
typedef std::future<GetCdrsMonitorResultOutcome> GetCdrsMonitorResultOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::GetCdrsMonitorResultRequest&, const GetCdrsMonitorResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCdrsMonitorResultAsyncHandler;
typedef Outcome<Error, Model::GetMonitorListResult> GetMonitorListOutcome;
typedef std::future<GetMonitorListOutcome> GetMonitorListOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::GetMonitorListRequest&, const GetMonitorListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMonitorListAsyncHandler;
typedef Outcome<Error, Model::GetMonitorResultResult> GetMonitorResultOutcome;
typedef std::future<GetMonitorResultOutcome> GetMonitorResultOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::GetMonitorResultRequest&, const GetMonitorResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMonitorResultAsyncHandler;
typedef Outcome<Error, Model::ListAreaHotSpotMetricsResult> ListAreaHotSpotMetricsOutcome;
typedef std::future<ListAreaHotSpotMetricsOutcome> ListAreaHotSpotMetricsOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListAreaHotSpotMetricsRequest&, const ListAreaHotSpotMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAreaHotSpotMetricsAsyncHandler;
typedef Outcome<Error, Model::ListCityMapAoisResult> ListCityMapAoisOutcome;
typedef std::future<ListCityMapAoisOutcome> ListCityMapAoisOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListCityMapAoisRequest&, const ListCityMapAoisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCityMapAoisAsyncHandler;
@@ -144,9 +174,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListCityMapRangeStatisticResult> ListCityMapRangeStatisticOutcome;
typedef std::future<ListCityMapRangeStatisticOutcome> ListCityMapRangeStatisticOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListCityMapRangeStatisticRequest&, const ListCityMapRangeStatisticOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCityMapRangeStatisticAsyncHandler;
typedef Outcome<Error, Model::ListCorpMetricsResult> ListCorpMetricsOutcome;
typedef std::future<ListCorpMetricsOutcome> ListCorpMetricsOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListCorpMetricsRequest&, const ListCorpMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCorpMetricsAsyncHandler;
typedef Outcome<Error, Model::ListCorpMetricsStatisticResult> ListCorpMetricsStatisticOutcome;
typedef std::future<ListCorpMetricsStatisticOutcome> ListCorpMetricsStatisticOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListCorpMetricsStatisticRequest&, const ListCorpMetricsStatisticOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCorpMetricsStatisticAsyncHandler;
typedef Outcome<Error, Model::ListDataStatisticsResult> ListDataStatisticsOutcome;
typedef std::future<ListDataStatisticsOutcome> ListDataStatisticsOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListDataStatisticsRequest&, const ListDataStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDataStatisticsAsyncHandler;
@@ -165,12 +195,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListDevicePersonStatisticsResult> ListDevicePersonStatisticsOutcome;
typedef std::future<ListDevicePersonStatisticsOutcome> ListDevicePersonStatisticsOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListDevicePersonStatisticsRequest&, const ListDevicePersonStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDevicePersonStatisticsAsyncHandler;
typedef Outcome<Error, Model::ListDeviceRelationResult> ListDeviceRelationOutcome;
typedef std::future<ListDeviceRelationOutcome> ListDeviceRelationOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListDeviceRelationRequest&, const ListDeviceRelationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDeviceRelationAsyncHandler;
typedef Outcome<Error, Model::ListMapRouteDetailsResult> ListMapRouteDetailsOutcome;
typedef std::future<ListMapRouteDetailsOutcome> ListMapRouteDetailsOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListMapRouteDetailsRequest&, const ListMapRouteDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMapRouteDetailsAsyncHandler;
typedef Outcome<Error, Model::ListMetricsResult> ListMetricsOutcome;
typedef std::future<ListMetricsOutcome> ListMetricsOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListMetricsRequest&, const ListMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMetricsAsyncHandler;
typedef Outcome<Error, Model::ListPersonDetailsResult> ListPersonDetailsOutcome;
typedef std::future<ListPersonDetailsOutcome> ListPersonDetailsOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListPersonDetailsRequest&, const ListPersonDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPersonDetailsAsyncHandler;
@@ -183,9 +213,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListPersonTopResult> ListPersonTopOutcome;
typedef std::future<ListPersonTopOutcome> ListPersonTopOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListPersonTopRequest&, const ListPersonTopOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPersonTopAsyncHandler;
typedef Outcome<Error, Model::ListPersonTraceResult> ListPersonTraceOutcome;
typedef std::future<ListPersonTraceOutcome> ListPersonTraceOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListPersonTraceRequest&, const ListPersonTraceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPersonTraceAsyncHandler;
typedef Outcome<Error, Model::ListPersonTrackResult> ListPersonTrackOutcome;
typedef std::future<ListPersonTrackOutcome> ListPersonTrackOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListPersonTrackRequest&, const ListPersonTrackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPersonTrackAsyncHandler;
@@ -198,6 +225,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListStructureStatisticsResult> ListStructureStatisticsOutcome;
typedef std::future<ListStructureStatisticsOutcome> ListStructureStatisticsOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListStructureStatisticsRequest&, const ListStructureStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListStructureStatisticsAsyncHandler;
typedef Outcome<Error, Model::ListTagMetricsResult> ListTagMetricsOutcome;
typedef std::future<ListTagMetricsOutcome> ListTagMetricsOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListTagMetricsRequest&, const ListTagMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagMetricsAsyncHandler;
typedef Outcome<Error, Model::ListVehicleDetailsResult> ListVehicleDetailsOutcome;
typedef std::future<ListVehicleDetailsOutcome> ListVehicleDetailsOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListVehicleDetailsRequest&, const ListVehicleDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListVehicleDetailsAsyncHandler;
@@ -213,21 +243,36 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListVehicleTrackResult> ListVehicleTrackOutcome;
typedef std::future<ListVehicleTrackOutcome> ListVehicleTrackOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListVehicleTrackRequest&, const ListVehicleTrackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListVehicleTrackAsyncHandler;
typedef Outcome<Error, Model::PaginateDeviceResult> PaginateDeviceOutcome;
typedef std::future<PaginateDeviceOutcome> PaginateDeviceOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::PaginateDeviceRequest&, const PaginateDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PaginateDeviceAsyncHandler;
typedef Outcome<Error, Model::PaginateProjectResult> PaginateProjectOutcome;
typedef std::future<PaginateProjectOutcome> PaginateProjectOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::PaginateProjectRequest&, const PaginateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PaginateProjectAsyncHandler;
typedef Outcome<Error, Model::RecognizeImageResult> RecognizeImageOutcome;
typedef std::future<RecognizeImageOutcome> RecognizeImageOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::RecognizeImageRequest&, const RecognizeImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizeImageAsyncHandler;
typedef Outcome<Error, Model::SearchAggregateObjectResult> SearchAggregateObjectOutcome;
typedef std::future<SearchAggregateObjectOutcome> SearchAggregateObjectOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::SearchAggregateObjectRequest&, const SearchAggregateObjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchAggregateObjectAsyncHandler;
typedef Outcome<Error, Model::SearchObjectResult> SearchObjectOutcome;
typedef std::future<SearchObjectOutcome> SearchObjectOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::SearchObjectRequest&, const SearchObjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchObjectAsyncHandler;
typedef Outcome<Error, Model::StopCdrsMonitorResult> StopCdrsMonitorOutcome;
typedef std::future<StopCdrsMonitorOutcome> StopCdrsMonitorOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::StopCdrsMonitorRequest&, const StopCdrsMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopCdrsMonitorAsyncHandler;
typedef Outcome<Error, Model::StopMonitorResult> StopMonitorOutcome;
typedef std::future<StopMonitorOutcome> StopMonitorOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::StopMonitorRequest&, const StopMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopMonitorAsyncHandler;
typedef Outcome<Error, Model::UnbindDeviceResult> UnbindDeviceOutcome;
typedef std::future<UnbindDeviceOutcome> UnbindDeviceOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::UnbindDeviceRequest&, const UnbindDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindDeviceAsyncHandler;
typedef Outcome<Error, Model::UpdateCdrsMonitorResult> UpdateCdrsMonitorOutcome;
typedef std::future<UpdateCdrsMonitorOutcome> UpdateCdrsMonitorOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::UpdateCdrsMonitorRequest&, const UpdateCdrsMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCdrsMonitorAsyncHandler;
typedef Outcome<Error, Model::UpdateMonitorResult> UpdateMonitorOutcome;
typedef std::future<UpdateMonitorOutcome> UpdateMonitorOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::UpdateMonitorRequest&, const UpdateMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateMonitorAsyncHandler;
typedef Outcome<Error, Model::UpdateProjectResult> UpdateProjectOutcome;
typedef std::future<UpdateProjectOutcome> UpdateProjectOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::UpdateProjectRequest&, const UpdateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateProjectAsyncHandler;
@@ -239,6 +284,9 @@ namespace AlibabaCloud
AddCdrsMonitorOutcome addCdrsMonitor(const Model::AddCdrsMonitorRequest &request)const;
void addCdrsMonitorAsync(const Model::AddCdrsMonitorRequest& request, const AddCdrsMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddCdrsMonitorOutcomeCallable addCdrsMonitorCallable(const Model::AddCdrsMonitorRequest& request) const;
AddMonitorOutcome addMonitor(const Model::AddMonitorRequest &request)const;
void addMonitorAsync(const Model::AddMonitorRequest& request, const AddMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddMonitorOutcomeCallable addMonitorCallable(const Model::AddMonitorRequest& request) const;
BindDeviceOutcome bindDevice(const Model::BindDeviceRequest &request)const;
void bindDeviceAsync(const Model::BindDeviceRequest& request, const BindDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BindDeviceOutcomeCallable bindDeviceCallable(const Model::BindDeviceRequest& request) const;
@@ -251,6 +299,15 @@ namespace AlibabaCloud
GetCdrsMonitorResultOutcome getCdrsMonitorResult(const Model::GetCdrsMonitorResultRequest &request)const;
void getCdrsMonitorResultAsync(const Model::GetCdrsMonitorResultRequest& request, const GetCdrsMonitorResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetCdrsMonitorResultOutcomeCallable getCdrsMonitorResultCallable(const Model::GetCdrsMonitorResultRequest& request) const;
GetMonitorListOutcome getMonitorList(const Model::GetMonitorListRequest &request)const;
void getMonitorListAsync(const Model::GetMonitorListRequest& request, const GetMonitorListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMonitorListOutcomeCallable getMonitorListCallable(const Model::GetMonitorListRequest& request) const;
GetMonitorResultOutcome getMonitorResult(const Model::GetMonitorResultRequest &request)const;
void getMonitorResultAsync(const Model::GetMonitorResultRequest& request, const GetMonitorResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMonitorResultOutcomeCallable getMonitorResultCallable(const Model::GetMonitorResultRequest& request) const;
ListAreaHotSpotMetricsOutcome listAreaHotSpotMetrics(const Model::ListAreaHotSpotMetricsRequest &request)const;
void listAreaHotSpotMetricsAsync(const Model::ListAreaHotSpotMetricsRequest& request, const ListAreaHotSpotMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListAreaHotSpotMetricsOutcomeCallable listAreaHotSpotMetricsCallable(const Model::ListAreaHotSpotMetricsRequest& request) const;
ListCityMapAoisOutcome listCityMapAois(const Model::ListCityMapAoisRequest &request)const;
void listCityMapAoisAsync(const Model::ListCityMapAoisRequest& request, const ListCityMapAoisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCityMapAoisOutcomeCallable listCityMapAoisCallable(const Model::ListCityMapAoisRequest& request) const;
@@ -269,9 +326,9 @@ namespace AlibabaCloud
ListCityMapRangeStatisticOutcome listCityMapRangeStatistic(const Model::ListCityMapRangeStatisticRequest &request)const;
void listCityMapRangeStatisticAsync(const Model::ListCityMapRangeStatisticRequest& request, const ListCityMapRangeStatisticAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCityMapRangeStatisticOutcomeCallable listCityMapRangeStatisticCallable(const Model::ListCityMapRangeStatisticRequest& request) const;
ListCorpMetricsOutcome listCorpMetrics(const Model::ListCorpMetricsRequest &request)const;
void listCorpMetricsAsync(const Model::ListCorpMetricsRequest& request, const ListCorpMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCorpMetricsOutcomeCallable listCorpMetricsCallable(const Model::ListCorpMetricsRequest& request) const;
ListCorpMetricsStatisticOutcome listCorpMetricsStatistic(const Model::ListCorpMetricsStatisticRequest &request)const;
void listCorpMetricsStatisticAsync(const Model::ListCorpMetricsStatisticRequest& request, const ListCorpMetricsStatisticAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCorpMetricsStatisticOutcomeCallable listCorpMetricsStatisticCallable(const Model::ListCorpMetricsStatisticRequest& request) const;
ListDataStatisticsOutcome listDataStatistics(const Model::ListDataStatisticsRequest &request)const;
void listDataStatisticsAsync(const Model::ListDataStatisticsRequest& request, const ListDataStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDataStatisticsOutcomeCallable listDataStatisticsCallable(const Model::ListDataStatisticsRequest& request) const;
@@ -290,12 +347,12 @@ namespace AlibabaCloud
ListDevicePersonStatisticsOutcome listDevicePersonStatistics(const Model::ListDevicePersonStatisticsRequest &request)const;
void listDevicePersonStatisticsAsync(const Model::ListDevicePersonStatisticsRequest& request, const ListDevicePersonStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDevicePersonStatisticsOutcomeCallable listDevicePersonStatisticsCallable(const Model::ListDevicePersonStatisticsRequest& request) const;
ListDeviceRelationOutcome listDeviceRelation(const Model::ListDeviceRelationRequest &request)const;
void listDeviceRelationAsync(const Model::ListDeviceRelationRequest& request, const ListDeviceRelationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDeviceRelationOutcomeCallable listDeviceRelationCallable(const Model::ListDeviceRelationRequest& request) const;
ListMapRouteDetailsOutcome listMapRouteDetails(const Model::ListMapRouteDetailsRequest &request)const;
void listMapRouteDetailsAsync(const Model::ListMapRouteDetailsRequest& request, const ListMapRouteDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListMapRouteDetailsOutcomeCallable listMapRouteDetailsCallable(const Model::ListMapRouteDetailsRequest& request) const;
ListMetricsOutcome listMetrics(const Model::ListMetricsRequest &request)const;
void listMetricsAsync(const Model::ListMetricsRequest& request, const ListMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListMetricsOutcomeCallable listMetricsCallable(const Model::ListMetricsRequest& request) const;
ListPersonDetailsOutcome listPersonDetails(const Model::ListPersonDetailsRequest &request)const;
void listPersonDetailsAsync(const Model::ListPersonDetailsRequest& request, const ListPersonDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPersonDetailsOutcomeCallable listPersonDetailsCallable(const Model::ListPersonDetailsRequest& request) const;
@@ -308,9 +365,6 @@ namespace AlibabaCloud
ListPersonTopOutcome listPersonTop(const Model::ListPersonTopRequest &request)const;
void listPersonTopAsync(const Model::ListPersonTopRequest& request, const ListPersonTopAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPersonTopOutcomeCallable listPersonTopCallable(const Model::ListPersonTopRequest& request) const;
ListPersonTraceOutcome listPersonTrace(const Model::ListPersonTraceRequest &request)const;
void listPersonTraceAsync(const Model::ListPersonTraceRequest& request, const ListPersonTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPersonTraceOutcomeCallable listPersonTraceCallable(const Model::ListPersonTraceRequest& request) const;
ListPersonTrackOutcome listPersonTrack(const Model::ListPersonTrackRequest &request)const;
void listPersonTrackAsync(const Model::ListPersonTrackRequest& request, const ListPersonTrackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPersonTrackOutcomeCallable listPersonTrackCallable(const Model::ListPersonTrackRequest& request) const;
@@ -323,6 +377,9 @@ namespace AlibabaCloud
ListStructureStatisticsOutcome listStructureStatistics(const Model::ListStructureStatisticsRequest &request)const;
void listStructureStatisticsAsync(const Model::ListStructureStatisticsRequest& request, const ListStructureStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListStructureStatisticsOutcomeCallable listStructureStatisticsCallable(const Model::ListStructureStatisticsRequest& request) const;
ListTagMetricsOutcome listTagMetrics(const Model::ListTagMetricsRequest &request)const;
void listTagMetricsAsync(const Model::ListTagMetricsRequest& request, const ListTagMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagMetricsOutcomeCallable listTagMetricsCallable(const Model::ListTagMetricsRequest& request) const;
ListVehicleDetailsOutcome listVehicleDetails(const Model::ListVehicleDetailsRequest &request)const;
void listVehicleDetailsAsync(const Model::ListVehicleDetailsRequest& request, const ListVehicleDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListVehicleDetailsOutcomeCallable listVehicleDetailsCallable(const Model::ListVehicleDetailsRequest& request) const;
@@ -338,21 +395,36 @@ namespace AlibabaCloud
ListVehicleTrackOutcome listVehicleTrack(const Model::ListVehicleTrackRequest &request)const;
void listVehicleTrackAsync(const Model::ListVehicleTrackRequest& request, const ListVehicleTrackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListVehicleTrackOutcomeCallable listVehicleTrackCallable(const Model::ListVehicleTrackRequest& request) const;
PaginateDeviceOutcome paginateDevice(const Model::PaginateDeviceRequest &request)const;
void paginateDeviceAsync(const Model::PaginateDeviceRequest& request, const PaginateDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PaginateDeviceOutcomeCallable paginateDeviceCallable(const Model::PaginateDeviceRequest& request) const;
PaginateProjectOutcome paginateProject(const Model::PaginateProjectRequest &request)const;
void paginateProjectAsync(const Model::PaginateProjectRequest& request, const PaginateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PaginateProjectOutcomeCallable paginateProjectCallable(const Model::PaginateProjectRequest& request) const;
RecognizeImageOutcome recognizeImage(const Model::RecognizeImageRequest &request)const;
void recognizeImageAsync(const Model::RecognizeImageRequest& request, const RecognizeImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RecognizeImageOutcomeCallable recognizeImageCallable(const Model::RecognizeImageRequest& request) const;
SearchAggregateObjectOutcome searchAggregateObject(const Model::SearchAggregateObjectRequest &request)const;
void searchAggregateObjectAsync(const Model::SearchAggregateObjectRequest& request, const SearchAggregateObjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SearchAggregateObjectOutcomeCallable searchAggregateObjectCallable(const Model::SearchAggregateObjectRequest& request) const;
SearchObjectOutcome searchObject(const Model::SearchObjectRequest &request)const;
void searchObjectAsync(const Model::SearchObjectRequest& request, const SearchObjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SearchObjectOutcomeCallable searchObjectCallable(const Model::SearchObjectRequest& request) const;
StopCdrsMonitorOutcome stopCdrsMonitor(const Model::StopCdrsMonitorRequest &request)const;
void stopCdrsMonitorAsync(const Model::StopCdrsMonitorRequest& request, const StopCdrsMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopCdrsMonitorOutcomeCallable stopCdrsMonitorCallable(const Model::StopCdrsMonitorRequest& request) const;
StopMonitorOutcome stopMonitor(const Model::StopMonitorRequest &request)const;
void stopMonitorAsync(const Model::StopMonitorRequest& request, const StopMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopMonitorOutcomeCallable stopMonitorCallable(const Model::StopMonitorRequest& request) const;
UnbindDeviceOutcome unbindDevice(const Model::UnbindDeviceRequest &request)const;
void unbindDeviceAsync(const Model::UnbindDeviceRequest& request, const UnbindDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UnbindDeviceOutcomeCallable unbindDeviceCallable(const Model::UnbindDeviceRequest& request) const;
UpdateCdrsMonitorOutcome updateCdrsMonitor(const Model::UpdateCdrsMonitorRequest &request)const;
void updateCdrsMonitorAsync(const Model::UpdateCdrsMonitorRequest& request, const UpdateCdrsMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateCdrsMonitorOutcomeCallable updateCdrsMonitorCallable(const Model::UpdateCdrsMonitorRequest& request) const;
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;
UpdateProjectOutcome updateProject(const Model::UpdateProjectRequest &request)const;
void updateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateProjectOutcomeCallable updateProjectCallable(const Model::UpdateProjectRequest& request) const;

View File

@@ -0,0 +1,78 @@
/*
* 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_CDRS_MODEL_ADDMONITORREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_ADDMONITORREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT AddMonitorRequest : public RpcServiceRequest
{
public:
AddMonitorRequest();
~AddMonitorRequest();
std::string getMonitorType()const;
void setMonitorType(const std::string& monitorType);
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getNotifierAppSecret()const;
void setNotifierAppSecret(const std::string& notifierAppSecret);
std::string getNotifierExtendValues()const;
void setNotifierExtendValues(const std::string& notifierExtendValues);
std::string getNotifierUrl()const;
void setNotifierUrl(const std::string& notifierUrl);
std::string getNotifierType()const;
void setNotifierType(const std::string& notifierType);
int getBatchIndicator()const;
void setBatchIndicator(int batchIndicator);
std::string getBizId()const;
void setBizId(const std::string& bizId);
int getNotifierTimeOut()const;
void setNotifierTimeOut(int notifierTimeOut);
std::string getAlgorithmVendor()const;
void setAlgorithmVendor(const std::string& algorithmVendor);
private:
std::string monitorType_;
std::string corpId_;
std::string description_;
std::string notifierAppSecret_;
std::string notifierExtendValues_;
std::string notifierUrl_;
std::string notifierType_;
int batchIndicator_;
std::string bizId_;
int notifierTimeOut_;
std::string algorithmVendor_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_ADDMONITORREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* 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_CDRS_MODEL_ADDMONITORRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_ADDMONITORRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT AddMonitorResult : public ServiceResult
{
public:
struct Data
{
std::string taskId;
};
AddMonitorResult();
explicit AddMonitorResult(const std::string &payload);
~AddMonitorResult();
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_CDRS_MODEL_ADDMONITORRESULT_H_

View File

@@ -47,6 +47,8 @@ namespace AlibabaCloud
void set_NameSpace(const std::string& _nameSpace);
std::string getName()const;
void setName(const std::string& name);
std::string getAggregateSceneCode()const;
void setAggregateSceneCode(const std::string& aggregateSceneCode);
private:
std::string clientToken_;
@@ -55,6 +57,7 @@ namespace AlibabaCloud
std::string appName_;
std::string _nameSpace_;
std::string name_;
std::string aggregateSceneCode_;
};
}

View File

@@ -41,11 +41,14 @@ namespace AlibabaCloud
void setPageNo(int pageNo);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getBizId()const;
void setBizId(const std::string& bizId);
private:
std::string corpId_;
int pageNo_;
int pageSize_;
std::string bizId_;
};
}

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
void setEndTime(long endTime);
long getStartTime()const;
void setStartTime(long startTime);
std::string getBizId()const;
void setBizId(const std::string& bizId);
std::string getAlgorithmVendor()const;
void setAlgorithmVendor(const std::string& algorithmVendor);
std::string getMinRecordId()const;
@@ -52,6 +54,7 @@ namespace AlibabaCloud
std::string corpId_;
long endTime_;
long startTime_;
std::string bizId_;
std::string algorithmVendor_;
std::string minRecordId_;
std::string taskId_;

View File

@@ -36,9 +36,14 @@ namespace AlibabaCloud
{
struct RecordsItem
{
struct ExtendInfo
{
std::string plateNo;
};
std::string leftUpX;
std::string leftUpY;
std::string score;
std::string taskId;
std::string targetPicUrl;
std::string rightBottomX;
std::string rightBottomY;
@@ -46,6 +51,7 @@ namespace AlibabaCloud
std::string monitorPicUrl;
std::string shotTime;
std::string picUrl;
ExtendInfo extendInfo;
};
std::string maxId;
std::vector<RecordsItem> records;

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_CDRS_MODEL_GETMONITORLISTREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_GETMONITORLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT GetMonitorListRequest : public RpcServiceRequest
{
public:
GetMonitorListRequest();
~GetMonitorListRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
int getPageNumber()const;
void setPageNumber(int pageNumber);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getBizId()const;
void setBizId(const std::string& bizId);
private:
std::string corpId_;
int pageNumber_;
int pageSize_;
std::string bizId_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_GETMONITORLISTREQUEST_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_CDRS_MODEL_GETMONITORLISTRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_GETMONITORLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT GetMonitorListResult : public ServiceResult
{
public:
struct Data
{
struct Record
{
std::string status;
std::string taskId;
std::string description;
std::string monitorType;
std::string imageMatch;
std::string attributes;
std::string deviceList;
std::string modifiedDate;
std::string createDate;
std::string notifierType;
std::string ruleExpression;
std::string algorithmVendor;
std::string expression;
std::string ruleName;
std::string notifierExtra;
};
int totalCount;
int pageSize;
int totalPage;
int pageNumber;
std::vector<Record> records;
};
GetMonitorListResult();
explicit GetMonitorListResult(const std::string &payload);
~GetMonitorListResult();
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_CDRS_MODEL_GETMONITORLISTRESULT_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_CDRS_MODEL_GETMONITORRESULTREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_GETMONITORRESULTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT GetMonitorResultRequest : public RpcServiceRequest
{
public:
GetMonitorResultRequest();
~GetMonitorResultRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
long getEndTime()const;
void setEndTime(long endTime);
long getStartTime()const;
void setStartTime(long startTime);
std::string getBizId()const;
void setBizId(const std::string& bizId);
std::string getAlgorithmVendor()const;
void setAlgorithmVendor(const std::string& algorithmVendor);
std::string getMinRecordId()const;
void setMinRecordId(const std::string& minRecordId);
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string corpId_;
long endTime_;
long startTime_;
std::string bizId_;
std::string algorithmVendor_;
std::string minRecordId_;
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_GETMONITORRESULTREQUEST_H_

View File

@@ -0,0 +1,79 @@
/*
* 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_CDRS_MODEL_GETMONITORRESULTRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_GETMONITORRESULTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT GetMonitorResultResult : public ServiceResult
{
public:
struct Data
{
struct RecordsItem
{
struct ExtendInfo
{
std::string plateNo;
};
std::string leftUpX;
std::string leftUpY;
std::string score;
std::string taskId;
std::string targetPicUrl;
std::string rightBottomX;
std::string rightBottomY;
std::string gbId;
std::string monitorPicUrl;
std::string shotTime;
std::string picUrl;
ExtendInfo extendInfo;
};
std::string maxId;
std::vector<RecordsItem> records;
};
GetMonitorResultResult();
explicit GetMonitorResultResult(const std::string &payload);
~GetMonitorResultResult();
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_CDRS_MODEL_GETMONITORRESULTRESULT_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACEREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACEREQUEST_H_
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTAREAHOTSPOTMETRICSREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTAREAHOTSPOTMETRICSREQUEST_H_
#include <string>
#include <vector>
@@ -28,39 +28,42 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT ListPersonTraceRequest : public RpcServiceRequest
class ALIBABACLOUD_CDRS_EXPORT ListAreaHotSpotMetricsRequest : public RpcServiceRequest
{
public:
ListPersonTraceRequest();
~ListPersonTraceRequest();
ListAreaHotSpotMetricsRequest();
~ListAreaHotSpotMetricsRequest();
std::string getSchema()const;
void setSchema(const std::string& schema);
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 getDeviceId()const;
void setDeviceId(const std::string& deviceId);
std::string getPageNumber()const;
void setPageNumber(const std::string& pageNumber);
std::string getPageSize()const;
void setPageSize(const std::string& pageSize);
std::string getDataSourceId()const;
void setDataSourceId(const std::string& dataSourceId);
std::string getPersonId()const;
void setPersonId(const std::string& personId);
private:
std::string schema_;
std::string corpId_;
std::string endTime_;
std::string startTime_;
std::string deviceId_;
std::string pageNumber_;
std::string pageSize_;
std::string dataSourceId_;
std::string personId_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACEREQUEST_H_
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTAREAHOTSPOTMETRICSREQUEST_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACERESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACERESULT_H_
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTAREAHOTSPOTMETRICSRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTAREAHOTSPOTMETRICSRESULT_H_
#include <string>
#include <vector>
@@ -29,49 +29,41 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT ListPersonTraceResult : public ServiceResult
class ALIBABACLOUD_CDRS_EXPORT ListAreaHotSpotMetricsResult : public ServiceResult
{
public:
struct DataItem
{
std::string startTargetImage;
std::string startSourceImage;
std::string corpId;
std::string personId;
std::string deviceId;
std::string endTargetImage;
std::string startTime;
std::string endSourceImage;
std::string date;
std::string lastTime;
std::string groupId;
std::string times;
std::string coordinates;
std::string intervalTime;
};
ListPersonTraceResult();
explicit ListPersonTraceResult(const std::string &payload);
~ListPersonTraceResult();
int getTotalCount()const;
ListAreaHotSpotMetricsResult();
explicit ListAreaHotSpotMetricsResult(const std::string &payload);
~ListAreaHotSpotMetricsResult();
std::string getTotalCount()const;
std::string getMessage()const;
int getPageSize()const;
int getPageNumber()const;
std::string getPageSize()const;
std::string getPageNumber()const;
std::vector<DataItem> getData()const;
std::string getCode()const;
std::string getSuccess()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
std::string totalCount_;
std::string message_;
int pageSize_;
int pageNumber_;
std::string pageSize_;
std::string pageNumber_;
std::vector<DataItem> data_;
std::string code_;
std::string success_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACERESULT_H_
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTAREAHOTSPOTMETRICSRESULT_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSREQUEST_H_
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSSTATISTICREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSSTATISTICREQUEST_H_
#include <string>
#include <vector>
@@ -28,13 +28,15 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT ListCorpMetricsRequest : public RpcServiceRequest
class ALIBABACLOUD_CDRS_EXPORT ListCorpMetricsStatisticRequest : public RpcServiceRequest
{
public:
ListCorpMetricsRequest();
~ListCorpMetricsRequest();
ListCorpMetricsStatisticRequest();
~ListCorpMetricsStatisticRequest();
std::string getSchema()const;
void setSchema(const std::string& schema);
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getEndTime()const;
@@ -55,6 +57,7 @@ namespace AlibabaCloud
void setDeviceIdList(const std::string& deviceIdList);
private:
std::string schema_;
std::string corpId_;
std::string endTime_;
std::string startTime_;
@@ -69,4 +72,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSREQUEST_H_
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSSTATISTICREQUEST_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSRESULT_H_
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSSTATISTICRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSSTATISTICRESULT_H_
#include <string>
#include <vector>
@@ -29,7 +29,7 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT ListCorpMetricsResult : public ServiceResult
class ALIBABACLOUD_CDRS_EXPORT ListCorpMetricsStatisticResult : public ServiceResult
{
public:
struct DataItem
@@ -46,9 +46,9 @@ namespace AlibabaCloud
};
ListCorpMetricsResult();
explicit ListCorpMetricsResult(const std::string &payload);
~ListCorpMetricsResult();
ListCorpMetricsStatisticResult();
explicit ListCorpMetricsStatisticResult(const std::string &payload);
~ListCorpMetricsStatisticResult();
int getTotalCount()const;
int getPageSize()const;
std::string getMessage()const;
@@ -72,4 +72,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSRESULT_H_
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSSTATISTICRESULT_H_

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_CDRS_MODEL_LISTDEVICERELATIONREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTDEVICERELATIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT ListDeviceRelationRequest : public RpcServiceRequest
{
public:
ListDeviceRelationRequest();
~ListDeviceRelationRequest();
std::string getDeviceId()const;
void setDeviceId(const std::string& deviceId);
std::string getAppName()const;
void setAppName(const std::string& appName);
std::string get_NameSpace()const;
void set_NameSpace(const std::string& _nameSpace);
private:
std::string deviceId_;
std::string appName_;
std::string _nameSpace_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTDEVICERELATIONREQUEST_H_

View File

@@ -14,44 +14,46 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTRESULT_H_
#define ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTRESULT_H_
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTDEVICERELATIONRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTDEVICERELATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/rds/RdsExport.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace Rds
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_RDS_EXPORT CreateDedicatedHostResult : public ServiceResult
class ALIBABACLOUD_CDRS_EXPORT ListDeviceRelationResult : public ServiceResult
{
public:
struct DedicateHostListItem
struct DataItem
{
std::string dedicatedHostId;
std::string corpId;
};
CreateDedicatedHostResult();
explicit CreateDedicatedHostResult(const std::string &payload);
~CreateDedicatedHostResult();
std::vector<DedicateHostListItem> getDedicateHostList()const;
long getOrderId()const;
ListDeviceRelationResult();
explicit ListDeviceRelationResult(const std::string &payload);
~ListDeviceRelationResult();
std::string getMessage()const;
std::vector<DataItem> getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::vector<DedicateHostListItem> dedicateHostList_;
long orderId_;
std::string message_;
std::vector<DataItem> data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTRESULT_H_
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTDEVICERELATIONRESULT_H_

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
ListPersonDetailsRequest();
~ListPersonDetailsRequest();
std::string getSchema()const;
void setSchema(const std::string& schema);
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getEndTime()const;
@@ -49,6 +51,7 @@ namespace AlibabaCloud
void setPersonId(const std::string& personId);
private:
std::string schema_;
std::string corpId_;
std::string endTime_;
std::string startTime_;

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
std::string getProfession()const;
void setProfession(const std::string& profession);
std::string getSchema()const;
void setSchema(const std::string& schema);
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getGender()const;
@@ -54,6 +56,7 @@ namespace AlibabaCloud
private:
std::string profession_;
std::string schema_;
std::string corpId_;
std::string gender_;
std::string endTime_;

View File

@@ -35,12 +35,14 @@ namespace AlibabaCloud
struct Datas
{
std::string profession;
std::string sourceUrl;
std::string personId;
std::string address;
std::string transportation;
std::string updateTime;
std::string personType;
std::string gender;
std::string targetUrl;
std::string age;
std::string hotSpotAddress;
};

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
ListPersonTagRequest();
~ListPersonTagRequest();
std::string getSchema()const;
void setSchema(const std::string& schema);
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
long getPageNumber()const;
@@ -45,6 +47,7 @@ namespace AlibabaCloud
void setPageSize(long pageSize);
private:
std::string schema_;
std::string corpId_;
long pageNumber_;
std::string tagCode_;

View File

@@ -35,19 +35,28 @@ namespace AlibabaCloud
ListPersonTopRequest();
~ListPersonTopRequest();
std::string getSchema()const;
void setSchema(const std::string& schema);
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 getPageSize()const;
void setPageSize(const std::string& pageSize);
std::string getPersonId()const;
void setPersonId(const std::string& personId);
private:
std::string schema_;
std::string corpId_;
std::string endTime_;
std::string startTime_;
std::string pageNumber_;
std::string pageSize_;
std::string personId_;
};

View File

@@ -32,7 +32,7 @@ namespace AlibabaCloud
class ALIBABACLOUD_CDRS_EXPORT ListPersonTopResult : public ServiceResult
{
public:
struct Datas
struct DataItem
{
std::string corpId;
std::string personId;
@@ -50,7 +50,7 @@ namespace AlibabaCloud
std::string getMessage()const;
long getPageSize()const;
long getPageNumber()const;
std::vector<Datas> getData()const;
std::vector<DataItem> getData()const;
std::string getCode()const;
protected:
@@ -60,7 +60,7 @@ namespace AlibabaCloud
std::string message_;
long pageSize_;
long pageNumber_;
std::vector<Datas> data_;
std::vector<DataItem> data_;
std::string code_;
};

View File

@@ -35,8 +35,14 @@ namespace AlibabaCloud
ListPersonTrackRequest();
~ListPersonTrackRequest();
std::string getSchema()const;
void setSchema(const std::string& schema);
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getAggregateDimension()const;
void setAggregateDimension(const std::string& aggregateDimension);
std::string getImageSourceType()const;
void setImageSourceType(const std::string& imageSourceType);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
std::string getStartTime()const;
@@ -49,7 +55,10 @@ namespace AlibabaCloud
void setPersonId(const std::string& personId);
private:
std::string schema_;
std::string corpId_;
std::string aggregateDimension_;
std::string imageSourceType_;
std::string endTime_;
std::string startTime_;
long pageNumber_;

View File

@@ -36,11 +36,13 @@ namespace AlibabaCloud
{
std::string order;
std::string picUrlPath;
std::string sourceUrl;
std::string corpId;
std::string rightBottomX;
std::string targetPicUrlPath;
std::string rightBottomY;
std::string latitude;
std::string targetUrl;
std::string leftTopY;
std::string leftTopX;
std::string longitude;

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTMETRICSREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTMETRICSREQUEST_H_
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTTAGMETRICSREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTTAGMETRICSREQUEST_H_
#include <string>
#include <vector>
@@ -28,13 +28,15 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT ListMetricsRequest : public RpcServiceRequest
class ALIBABACLOUD_CDRS_EXPORT ListTagMetricsRequest : public RpcServiceRequest
{
public:
ListMetricsRequest();
~ListMetricsRequest();
ListTagMetricsRequest();
~ListTagMetricsRequest();
std::string getSchema()const;
void setSchema(const std::string& schema);
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getEndTime()const;
@@ -51,6 +53,7 @@ namespace AlibabaCloud
void setAggregateType(const std::string& aggregateType);
private:
std::string schema_;
std::string corpId_;
std::string endTime_;
std::string startTime_;
@@ -63,4 +66,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTMETRICSREQUEST_H_
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTTAGMETRICSREQUEST_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTMETRICSRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTMETRICSRESULT_H_
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTTAGMETRICSRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTTAGMETRICSRESULT_H_
#include <string>
#include <vector>
@@ -29,21 +29,22 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT ListMetricsResult : public ServiceResult
class ALIBABACLOUD_CDRS_EXPORT ListTagMetricsResult : public ServiceResult
{
public:
struct DataItem
{
std::string corpId;
std::string tagMetric;
std::string tagCode;
std::string dateTime1;
std::string tagValue;
std::string dateTime;
};
ListMetricsResult();
explicit ListMetricsResult(const std::string &payload);
~ListMetricsResult();
ListTagMetricsResult();
explicit ListTagMetricsResult(const std::string &payload);
~ListTagMetricsResult();
std::string getTotalCount()const;
std::string getMessage()const;
std::string getPageSize()const;
@@ -65,4 +66,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTMETRICSRESULT_H_
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTTAGMETRICSRESULT_H_

View File

@@ -35,11 +35,13 @@ namespace AlibabaCloud
struct Datas
{
std::string popularPoi;
std::string sourceUrl;
std::string sourceImageStoragePath;
std::string popularAddress;
std::string vehicleId;
std::string personType;
std::string gender;
std::string targetUrl;
std::string vehicleClass;
std::string vehicleApplication;
std::string personId;

View File

@@ -43,12 +43,18 @@ namespace AlibabaCloud
void setEndTime(const std::string& endTime);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getPageNum()const;
void setPageNum(const std::string& pageNum);
std::string getPageSize()const;
void setPageSize(const std::string& pageSize);
private:
std::string plateId_;
std::string corpId_;
std::string endTime_;
std::string startTime_;
std::string pageNum_;
std::string pageSize_;
};
}

View File

@@ -43,12 +43,18 @@ namespace AlibabaCloud
void setEndTime(const std::string& endTime);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
long getPageNumber()const;
void setPageNumber(long pageNumber);
long getPageSize()const;
void setPageSize(long pageSize);
private:
std::string plateId_;
std::string corpId_;
std::string endTime_;
std::string startTime_;
long pageNumber_;
long pageSize_;
};
}

View File

@@ -36,12 +36,14 @@ namespace AlibabaCloud
{
std::string order;
std::string picUrlPath;
std::string sourceUrl;
std::string corpId;
std::string rightBottomX;
std::string targetPicUrlPath;
std::string rightBottomY;
std::string passTime;
std::string latitude;
std::string targetUrl;
std::string leftTopY;
std::string leftTopX;
std::string longitude;

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_CDRS_MODEL_PAGINATEDEVICEREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_PAGINATEDEVICEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT PaginateDeviceRequest : public RpcServiceRequest
{
public:
PaginateDeviceRequest();
~PaginateDeviceRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
long getPageNumber()const;
void setPageNumber(long pageNumber);
bool getCountTotalNum()const;
void setCountTotalNum(bool countTotalNum);
std::string getAppName()const;
void setAppName(const std::string& appName);
std::string get_NameSpace()const;
void set_NameSpace(const std::string& _nameSpace);
long getPageSize()const;
void setPageSize(long pageSize);
private:
std::string corpId_;
long pageNumber_;
bool countTotalNum_;
std::string appName_;
std::string _nameSpace_;
long pageSize_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_PAGINATEDEVICEREQUEST_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_CDRS_MODEL_PAGINATEDEVICERESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_PAGINATEDEVICERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT PaginateDeviceResult : public ServiceResult
{
public:
struct Data
{
struct RecordsItem
{
std::string deviceId;
};
int totalCount;
int pageSize;
int pageNumber;
std::vector<RecordsItem> records;
};
PaginateDeviceResult();
explicit PaginateDeviceResult(const std::string &payload);
~PaginateDeviceResult();
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_CDRS_MODEL_PAGINATEDEVICERESULT_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_CDRS_MODEL_PAGINATEPROJECTREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_PAGINATEPROJECTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT PaginateProjectRequest : public RpcServiceRequest
{
public:
PaginateProjectRequest();
~PaginateProjectRequest();
std::string getType()const;
void setType(const std::string& type);
long getPageNumber()const;
void setPageNumber(long pageNumber);
bool getCountTotalNum()const;
void setCountTotalNum(bool countTotalNum);
std::string getAppName()const;
void setAppName(const std::string& appName);
std::string get_NameSpace()const;
void set_NameSpace(const std::string& _nameSpace);
long getPageSize()const;
void setPageSize(long pageSize);
std::string getNameLike()const;
void setNameLike(const std::string& nameLike);
private:
std::string type_;
long pageNumber_;
bool countTotalNum_;
std::string appName_;
std::string _nameSpace_;
long pageSize_;
std::string nameLike_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_PAGINATEPROJECTREQUEST_H_

View File

@@ -0,0 +1,75 @@
/*
* 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_CDRS_MODEL_PAGINATEPROJECTRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_PAGINATEPROJECTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT PaginateProjectResult : public ServiceResult
{
public:
struct Data
{
struct RecordsItem
{
std::string type;
std::string aggregateSceneCode;
std::string corpId;
std::string createdTime;
std::string description;
std::string modifiedTime;
std::string userId;
std::string icon;
std::string name;
};
int totalCount;
int pageSize;
int totalPage;
int pageNumber;
std::vector<RecordsItem> records;
};
PaginateProjectResult();
explicit PaginateProjectResult(const std::string &payload);
~PaginateProjectResult();
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_CDRS_MODEL_PAGINATEPROJECTRESULT_H_

View File

@@ -35,8 +35,12 @@ namespace AlibabaCloud
RecognizeImageRequest();
~RecognizeImageRequest();
bool getRequireCropImage()const;
void setRequireCropImage(bool requireCropImage);
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getRecognizeType()const;
void setRecognizeType(const std::string& recognizeType);
std::string getVendor()const;
void setVendor(const std::string& vendor);
std::string getImageUrl()const;
@@ -45,7 +49,9 @@ namespace AlibabaCloud
void setImageContent(const std::string& imageContent);
private:
bool requireCropImage_;
std::string corpId_;
std::string recognizeType_;
std::string vendor_;
std::string imageUrl_;
std::string imageContent_;

View File

@@ -38,9 +38,11 @@ namespace AlibabaCloud
{
int rightBottomX;
int rightBottomY;
std::string cropAlgorithmCode;
int leftTopY;
int leftTopX;
std::string feature;
std::string targetImageContent;
};
struct FaceListItem
{
@@ -48,9 +50,11 @@ namespace AlibabaCloud
int rightBottomX;
int rightBottomY;
float faceKeyPointQuality;
std::string cropAlgorithmCode;
int leftTopY;
int leftTopX;
std::string feature;
std::string targetImageContent;
};
std::vector<BodyListItem> bodyList;
std::vector<FaceListItem> faceList;

View File

@@ -0,0 +1,84 @@
/*
* 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_CDRS_MODEL_SEARCHAGGREGATEOBJECTREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_SEARCHAGGREGATEOBJECTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT SearchAggregateObjectRequest : public RpcServiceRequest
{
public:
SearchAggregateObjectRequest();
~SearchAggregateObjectRequest();
std::string getShotTimeEnd()const;
void setShotTimeEnd(const std::string& shotTimeEnd);
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getFeature()const;
void setFeature(const std::string& feature);
std::string getVendor()const;
void setVendor(const std::string& vendor);
bool getRequireTotalCount()const;
void setRequireTotalCount(bool requireTotalCount);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getImageContent()const;
void setImageContent(const std::string& imageContent);
std::string getObjectType()const;
void setObjectType(const std::string& objectType);
std::string getDeviceList()const;
void setDeviceList(const std::string& deviceList);
std::string getImageUrl()const;
void setImageUrl(const std::string& imageUrl);
std::string getAttributes()const;
void setAttributes(const std::string& attributes);
std::string getShotTimeStart()const;
void setShotTimeStart(const std::string& shotTimeStart);
private:
std::string shotTimeEnd_;
std::string corpId_;
int pageNumber_;
std::string feature_;
std::string vendor_;
bool requireTotalCount_;
int pageSize_;
std::string imageContent_;
std::string objectType_;
std::string deviceList_;
std::string imageUrl_;
std::string attributes_;
std::string shotTimeStart_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_SEARCHAGGREGATEOBJECTREQUEST_H_

View File

@@ -0,0 +1,136 @@
/*
* 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_CDRS_MODEL_SEARCHAGGREGATEOBJECTRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_SEARCHAGGREGATEOBJECTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT SearchAggregateObjectResult : public ServiceResult
{
public:
struct Data
{
struct BodyListItem
{
std::string targetImageUrl;
int rightBottomX;
std::string deviceID;
int rightBottomY;
std::string sourceImageUrl;
int leftTopY;
int leftTopX;
float deviceLongitude;
std::string objectType;
float score;
std::string personId;
float deviceLatitude;
std::string shotTime;
std::string deviceName;
};
struct FaceListItem
{
std::string targetImageUrl;
int rightBottomX;
std::string deviceID;
int rightBottomY;
std::string sourceImageUrl;
int leftTopY;
int leftTopX;
float deviceLongitude;
std::string objectType;
float score;
std::string personId;
float deviceLatitude;
std::string shotTime;
std::string deviceName;
};
struct MotorListItem
{
std::string targetImageUrl;
int rightBottomX;
std::string deviceID;
int rightBottomY;
std::string sourceImageUrl;
int leftTopY;
int leftTopX;
float deviceLongitude;
std::string objectType;
float score;
std::string personId;
float deviceLatitude;
std::string shotTime;
std::string deviceName;
};
struct NonMotorListItem
{
std::string targetImageUrl;
int rightBottomX;
std::string deviceID;
int rightBottomY;
std::string sourceImageUrl;
int leftTopY;
int leftTopX;
float deviceLongitude;
std::string objectType;
float score;
std::string personId;
float deviceLatitude;
std::string shotTime;
std::string deviceName;
};
std::vector<NonMotorListItem> nonMotorList;
std::vector<BodyListItem> bodyList;
std::vector<FaceListItem> faceList;
std::vector<MotorListItem> motorList;
};
SearchAggregateObjectResult();
explicit SearchAggregateObjectResult(const std::string &payload);
~SearchAggregateObjectResult();
std::string getMessage()const;
long getPageSize()const;
int getTotal()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
long pageSize_;
int total_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_SEARCHAGGREGATEOBJECTRESULT_H_

View File

@@ -77,7 +77,7 @@ namespace AlibabaCloud
{
std::string objectType;
std::string targetImageUrl;
int score;
float score;
int rightBottomX;
std::string deviceID;
int rightBottomY;

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getBizId()const;
void setBizId(const std::string& bizId);
std::string getAlgorithmVendor()const;
void setAlgorithmVendor(const std::string& algorithmVendor);
std::string getTaskId()const;
@@ -44,6 +46,7 @@ namespace AlibabaCloud
private:
std::string corpId_;
std::string bizId_;
std::string algorithmVendor_;
std::string taskId_;

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_CDRS_MODEL_STOPMONITORREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_STOPMONITORREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT StopMonitorRequest : public RpcServiceRequest
{
public:
StopMonitorRequest();
~StopMonitorRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getBizId()const;
void setBizId(const std::string& bizId);
std::string getAlgorithmVendor()const;
void setAlgorithmVendor(const std::string& algorithmVendor);
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string corpId_;
std::string bizId_;
std::string algorithmVendor_;
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_STOPMONITORREQUEST_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_CDRS_MODEL_STOPMONITORRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_STOPMONITORRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT StopMonitorResult : public ServiceResult
{
public:
StopMonitorResult();
explicit StopMonitorResult(const std::string &payload);
~StopMonitorResult();
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_CDRS_MODEL_STOPMONITORRESULT_H_

View File

@@ -69,6 +69,8 @@ namespace AlibabaCloud
void setNotifierUrl(const std::string& notifierUrl);
std::string getNotifierType()const;
void setNotifierType(const std::string& notifierType);
std::string getBizId()const;
void setBizId(const std::string& bizId);
std::string getAlgorithmVendor()const;
void setAlgorithmVendor(const std::string& algorithmVendor);
@@ -90,6 +92,7 @@ namespace AlibabaCloud
std::string deviceList_;
std::string notifierUrl_;
std::string notifierType_;
std::string bizId_;
std::string algorithmVendor_;
};

View File

@@ -0,0 +1,102 @@
/*
* 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_CDRS_MODEL_UPDATEMONITORREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_UPDATEMONITORREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT UpdateMonitorRequest : public RpcServiceRequest
{
public:
UpdateMonitorRequest();
~UpdateMonitorRequest();
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getRuleName()const;
void setRuleName(const std::string& ruleName);
std::string getPicOperateType()const;
void setPicOperateType(const std::string& picOperateType);
std::string getAttributeName()const;
void setAttributeName(const std::string& attributeName);
std::string getAttributeOperateType()const;
void setAttributeOperateType(const std::string& attributeOperateType);
std::string getRuleExpression()const;
void setRuleExpression(const std::string& ruleExpression);
int getNotifierTimeOut()const;
void setNotifierTimeOut(int notifierTimeOut);
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
std::string getDeviceOperateType()const;
void setDeviceOperateType(const std::string& deviceOperateType);
std::string getPicList()const;
void setPicList(const std::string& picList);
std::string getAttributeValueList()const;
void setAttributeValueList(const std::string& attributeValueList);
std::string getNotifierAppSecret()const;
void setNotifierAppSecret(const std::string& notifierAppSecret);
std::string getNotifierExtendValues()const;
void setNotifierExtendValues(const std::string& notifierExtendValues);
std::string getDeviceList()const;
void setDeviceList(const std::string& deviceList);
std::string getNotifierUrl()const;
void setNotifierUrl(const std::string& notifierUrl);
std::string getNotifierType()const;
void setNotifierType(const std::string& notifierType);
std::string getBizId()const;
void setBizId(const std::string& bizId);
std::string getAlgorithmVendor()const;
void setAlgorithmVendor(const std::string& algorithmVendor);
private:
std::string corpId_;
std::string description_;
std::string ruleName_;
std::string picOperateType_;
std::string attributeName_;
std::string attributeOperateType_;
std::string ruleExpression_;
int notifierTimeOut_;
std::string taskId_;
std::string deviceOperateType_;
std::string picList_;
std::string attributeValueList_;
std::string notifierAppSecret_;
std::string notifierExtendValues_;
std::string deviceList_;
std::string notifierUrl_;
std::string notifierType_;
std::string bizId_;
std::string algorithmVendor_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_UPDATEMONITORREQUEST_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_CDRS_MODEL_UPDATEMONITORRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_UPDATEMONITORRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdrs/CDRSExport.h>
namespace AlibabaCloud
{
namespace CDRS
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT UpdateMonitorResult : public ServiceResult
{
public:
UpdateMonitorResult();
explicit UpdateMonitorResult(const std::string &payload);
~UpdateMonitorResult();
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_CDRS_MODEL_UPDATEMONITORRESULT_H_

View File

@@ -47,6 +47,8 @@ namespace AlibabaCloud
void set_NameSpace(const std::string& _nameSpace);
std::string getName()const;
void setName(const std::string& name);
std::string getAggregateSceneCode()const;
void setAggregateSceneCode(const std::string& aggregateSceneCode);
private:
std::string corpId_;
@@ -55,6 +57,7 @@ namespace AlibabaCloud
std::string appName_;
std::string _nameSpace_;
std::string name_;
std::string aggregateSceneCode_;
};
}

View File

@@ -87,6 +87,42 @@ CDRSClient::AddCdrsMonitorOutcomeCallable CDRSClient::addCdrsMonitorCallable(con
return task->get_future();
}
CDRSClient::AddMonitorOutcome CDRSClient::addMonitor(const AddMonitorRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddMonitorOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddMonitorOutcome(AddMonitorResult(outcome.result()));
else
return AddMonitorOutcome(outcome.error());
}
void CDRSClient::addMonitorAsync(const AddMonitorRequest& request, const AddMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addMonitor(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::AddMonitorOutcomeCallable CDRSClient::addMonitorCallable(const AddMonitorRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddMonitorOutcome()>>(
[this, request]()
{
return this->addMonitor(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::BindDeviceOutcome CDRSClient::bindDevice(const BindDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -231,6 +267,114 @@ CDRSClient::GetCdrsMonitorResultOutcomeCallable CDRSClient::getCdrsMonitorResult
return task->get_future();
}
CDRSClient::GetMonitorListOutcome CDRSClient::getMonitorList(const GetMonitorListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetMonitorListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetMonitorListOutcome(GetMonitorListResult(outcome.result()));
else
return GetMonitorListOutcome(outcome.error());
}
void CDRSClient::getMonitorListAsync(const GetMonitorListRequest& request, const GetMonitorListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getMonitorList(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::GetMonitorListOutcomeCallable CDRSClient::getMonitorListCallable(const GetMonitorListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetMonitorListOutcome()>>(
[this, request]()
{
return this->getMonitorList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::GetMonitorResultOutcome CDRSClient::getMonitorResult(const GetMonitorResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetMonitorResultOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetMonitorResultOutcome(GetMonitorResultResult(outcome.result()));
else
return GetMonitorResultOutcome(outcome.error());
}
void CDRSClient::getMonitorResultAsync(const GetMonitorResultRequest& request, const GetMonitorResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getMonitorResult(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::GetMonitorResultOutcomeCallable CDRSClient::getMonitorResultCallable(const GetMonitorResultRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetMonitorResultOutcome()>>(
[this, request]()
{
return this->getMonitorResult(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::ListAreaHotSpotMetricsOutcome CDRSClient::listAreaHotSpotMetrics(const ListAreaHotSpotMetricsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListAreaHotSpotMetricsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListAreaHotSpotMetricsOutcome(ListAreaHotSpotMetricsResult(outcome.result()));
else
return ListAreaHotSpotMetricsOutcome(outcome.error());
}
void CDRSClient::listAreaHotSpotMetricsAsync(const ListAreaHotSpotMetricsRequest& request, const ListAreaHotSpotMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listAreaHotSpotMetrics(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::ListAreaHotSpotMetricsOutcomeCallable CDRSClient::listAreaHotSpotMetricsCallable(const ListAreaHotSpotMetricsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListAreaHotSpotMetricsOutcome()>>(
[this, request]()
{
return this->listAreaHotSpotMetrics(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::ListCityMapAoisOutcome CDRSClient::listCityMapAois(const ListCityMapAoisRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -447,36 +591,36 @@ CDRSClient::ListCityMapRangeStatisticOutcomeCallable CDRSClient::listCityMapRang
return task->get_future();
}
CDRSClient::ListCorpMetricsOutcome CDRSClient::listCorpMetrics(const ListCorpMetricsRequest &request) const
CDRSClient::ListCorpMetricsStatisticOutcome CDRSClient::listCorpMetricsStatistic(const ListCorpMetricsStatisticRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListCorpMetricsOutcome(endpointOutcome.error());
return ListCorpMetricsStatisticOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListCorpMetricsOutcome(ListCorpMetricsResult(outcome.result()));
return ListCorpMetricsStatisticOutcome(ListCorpMetricsStatisticResult(outcome.result()));
else
return ListCorpMetricsOutcome(outcome.error());
return ListCorpMetricsStatisticOutcome(outcome.error());
}
void CDRSClient::listCorpMetricsAsync(const ListCorpMetricsRequest& request, const ListCorpMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
void CDRSClient::listCorpMetricsStatisticAsync(const ListCorpMetricsStatisticRequest& request, const ListCorpMetricsStatisticAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listCorpMetrics(request), context);
handler(this, request, listCorpMetricsStatistic(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::ListCorpMetricsOutcomeCallable CDRSClient::listCorpMetricsCallable(const ListCorpMetricsRequest &request) const
CDRSClient::ListCorpMetricsStatisticOutcomeCallable CDRSClient::listCorpMetricsStatisticCallable(const ListCorpMetricsStatisticRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListCorpMetricsOutcome()>>(
auto task = std::make_shared<std::packaged_task<ListCorpMetricsStatisticOutcome()>>(
[this, request]()
{
return this->listCorpMetrics(request);
return this->listCorpMetricsStatistic(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
@@ -699,6 +843,42 @@ CDRSClient::ListDevicePersonStatisticsOutcomeCallable CDRSClient::listDevicePers
return task->get_future();
}
CDRSClient::ListDeviceRelationOutcome CDRSClient::listDeviceRelation(const ListDeviceRelationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListDeviceRelationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListDeviceRelationOutcome(ListDeviceRelationResult(outcome.result()));
else
return ListDeviceRelationOutcome(outcome.error());
}
void CDRSClient::listDeviceRelationAsync(const ListDeviceRelationRequest& request, const ListDeviceRelationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listDeviceRelation(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::ListDeviceRelationOutcomeCallable CDRSClient::listDeviceRelationCallable(const ListDeviceRelationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListDeviceRelationOutcome()>>(
[this, request]()
{
return this->listDeviceRelation(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::ListMapRouteDetailsOutcome CDRSClient::listMapRouteDetails(const ListMapRouteDetailsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -735,42 +915,6 @@ CDRSClient::ListMapRouteDetailsOutcomeCallable CDRSClient::listMapRouteDetailsCa
return task->get_future();
}
CDRSClient::ListMetricsOutcome CDRSClient::listMetrics(const ListMetricsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListMetricsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListMetricsOutcome(ListMetricsResult(outcome.result()));
else
return ListMetricsOutcome(outcome.error());
}
void CDRSClient::listMetricsAsync(const ListMetricsRequest& request, const ListMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listMetrics(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::ListMetricsOutcomeCallable CDRSClient::listMetricsCallable(const ListMetricsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListMetricsOutcome()>>(
[this, request]()
{
return this->listMetrics(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::ListPersonDetailsOutcome CDRSClient::listPersonDetails(const ListPersonDetailsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -915,42 +1059,6 @@ CDRSClient::ListPersonTopOutcomeCallable CDRSClient::listPersonTopCallable(const
return task->get_future();
}
CDRSClient::ListPersonTraceOutcome CDRSClient::listPersonTrace(const ListPersonTraceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListPersonTraceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListPersonTraceOutcome(ListPersonTraceResult(outcome.result()));
else
return ListPersonTraceOutcome(outcome.error());
}
void CDRSClient::listPersonTraceAsync(const ListPersonTraceRequest& request, const ListPersonTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listPersonTrace(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::ListPersonTraceOutcomeCallable CDRSClient::listPersonTraceCallable(const ListPersonTraceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListPersonTraceOutcome()>>(
[this, request]()
{
return this->listPersonTrace(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::ListPersonTrackOutcome CDRSClient::listPersonTrack(const ListPersonTrackRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1095,6 +1203,42 @@ CDRSClient::ListStructureStatisticsOutcomeCallable CDRSClient::listStructureStat
return task->get_future();
}
CDRSClient::ListTagMetricsOutcome CDRSClient::listTagMetrics(const ListTagMetricsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListTagMetricsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListTagMetricsOutcome(ListTagMetricsResult(outcome.result()));
else
return ListTagMetricsOutcome(outcome.error());
}
void CDRSClient::listTagMetricsAsync(const ListTagMetricsRequest& request, const ListTagMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listTagMetrics(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::ListTagMetricsOutcomeCallable CDRSClient::listTagMetricsCallable(const ListTagMetricsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListTagMetricsOutcome()>>(
[this, request]()
{
return this->listTagMetrics(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::ListVehicleDetailsOutcome CDRSClient::listVehicleDetails(const ListVehicleDetailsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1275,6 +1419,78 @@ CDRSClient::ListVehicleTrackOutcomeCallable CDRSClient::listVehicleTrackCallable
return task->get_future();
}
CDRSClient::PaginateDeviceOutcome CDRSClient::paginateDevice(const PaginateDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return PaginateDeviceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return PaginateDeviceOutcome(PaginateDeviceResult(outcome.result()));
else
return PaginateDeviceOutcome(outcome.error());
}
void CDRSClient::paginateDeviceAsync(const PaginateDeviceRequest& request, const PaginateDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, paginateDevice(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::PaginateDeviceOutcomeCallable CDRSClient::paginateDeviceCallable(const PaginateDeviceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<PaginateDeviceOutcome()>>(
[this, request]()
{
return this->paginateDevice(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::PaginateProjectOutcome CDRSClient::paginateProject(const PaginateProjectRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return PaginateProjectOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return PaginateProjectOutcome(PaginateProjectResult(outcome.result()));
else
return PaginateProjectOutcome(outcome.error());
}
void CDRSClient::paginateProjectAsync(const PaginateProjectRequest& request, const PaginateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, paginateProject(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::PaginateProjectOutcomeCallable CDRSClient::paginateProjectCallable(const PaginateProjectRequest &request) const
{
auto task = std::make_shared<std::packaged_task<PaginateProjectOutcome()>>(
[this, request]()
{
return this->paginateProject(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::RecognizeImageOutcome CDRSClient::recognizeImage(const RecognizeImageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1311,6 +1527,42 @@ CDRSClient::RecognizeImageOutcomeCallable CDRSClient::recognizeImageCallable(con
return task->get_future();
}
CDRSClient::SearchAggregateObjectOutcome CDRSClient::searchAggregateObject(const SearchAggregateObjectRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SearchAggregateObjectOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SearchAggregateObjectOutcome(SearchAggregateObjectResult(outcome.result()));
else
return SearchAggregateObjectOutcome(outcome.error());
}
void CDRSClient::searchAggregateObjectAsync(const SearchAggregateObjectRequest& request, const SearchAggregateObjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, searchAggregateObject(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::SearchAggregateObjectOutcomeCallable CDRSClient::searchAggregateObjectCallable(const SearchAggregateObjectRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SearchAggregateObjectOutcome()>>(
[this, request]()
{
return this->searchAggregateObject(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::SearchObjectOutcome CDRSClient::searchObject(const SearchObjectRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1383,6 +1635,42 @@ CDRSClient::StopCdrsMonitorOutcomeCallable CDRSClient::stopCdrsMonitorCallable(c
return task->get_future();
}
CDRSClient::StopMonitorOutcome CDRSClient::stopMonitor(const StopMonitorRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StopMonitorOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StopMonitorOutcome(StopMonitorResult(outcome.result()));
else
return StopMonitorOutcome(outcome.error());
}
void CDRSClient::stopMonitorAsync(const StopMonitorRequest& request, const StopMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, stopMonitor(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::StopMonitorOutcomeCallable CDRSClient::stopMonitorCallable(const StopMonitorRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StopMonitorOutcome()>>(
[this, request]()
{
return this->stopMonitor(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::UnbindDeviceOutcome CDRSClient::unbindDevice(const UnbindDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1455,6 +1743,42 @@ CDRSClient::UpdateCdrsMonitorOutcomeCallable CDRSClient::updateCdrsMonitorCallab
return task->get_future();
}
CDRSClient::UpdateMonitorOutcome CDRSClient::updateMonitor(const UpdateMonitorRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateMonitorOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateMonitorOutcome(UpdateMonitorResult(outcome.result()));
else
return UpdateMonitorOutcome(outcome.error());
}
void CDRSClient::updateMonitorAsync(const UpdateMonitorRequest& request, const UpdateMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateMonitor(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::UpdateMonitorOutcomeCallable CDRSClient::updateMonitorCallable(const UpdateMonitorRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateMonitorOutcome()>>(
[this, request]()
{
return this->updateMonitor(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::UpdateProjectOutcome CDRSClient::updateProject(const UpdateProjectRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,150 @@
/*
* 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/cdrs/model/AddMonitorRequest.h>
using AlibabaCloud::CDRS::Model::AddMonitorRequest;
AddMonitorRequest::AddMonitorRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "AddMonitor")
{
setMethod(HttpRequest::Method::Post);
}
AddMonitorRequest::~AddMonitorRequest()
{}
std::string AddMonitorRequest::getMonitorType()const
{
return monitorType_;
}
void AddMonitorRequest::setMonitorType(const std::string& monitorType)
{
monitorType_ = monitorType;
setBodyParameter("MonitorType", monitorType);
}
std::string AddMonitorRequest::getCorpId()const
{
return corpId_;
}
void AddMonitorRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string AddMonitorRequest::getDescription()const
{
return description_;
}
void AddMonitorRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
}
std::string AddMonitorRequest::getNotifierAppSecret()const
{
return notifierAppSecret_;
}
void AddMonitorRequest::setNotifierAppSecret(const std::string& notifierAppSecret)
{
notifierAppSecret_ = notifierAppSecret;
setBodyParameter("NotifierAppSecret", notifierAppSecret);
}
std::string AddMonitorRequest::getNotifierExtendValues()const
{
return notifierExtendValues_;
}
void AddMonitorRequest::setNotifierExtendValues(const std::string& notifierExtendValues)
{
notifierExtendValues_ = notifierExtendValues;
setBodyParameter("NotifierExtendValues", notifierExtendValues);
}
std::string AddMonitorRequest::getNotifierUrl()const
{
return notifierUrl_;
}
void AddMonitorRequest::setNotifierUrl(const std::string& notifierUrl)
{
notifierUrl_ = notifierUrl;
setBodyParameter("NotifierUrl", notifierUrl);
}
std::string AddMonitorRequest::getNotifierType()const
{
return notifierType_;
}
void AddMonitorRequest::setNotifierType(const std::string& notifierType)
{
notifierType_ = notifierType;
setBodyParameter("NotifierType", notifierType);
}
int AddMonitorRequest::getBatchIndicator()const
{
return batchIndicator_;
}
void AddMonitorRequest::setBatchIndicator(int batchIndicator)
{
batchIndicator_ = batchIndicator;
setBodyParameter("BatchIndicator", std::to_string(batchIndicator));
}
std::string AddMonitorRequest::getBizId()const
{
return bizId_;
}
void AddMonitorRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setBodyParameter("BizId", bizId);
}
int AddMonitorRequest::getNotifierTimeOut()const
{
return notifierTimeOut_;
}
void AddMonitorRequest::setNotifierTimeOut(int notifierTimeOut)
{
notifierTimeOut_ = notifierTimeOut;
setBodyParameter("NotifierTimeOut", std::to_string(notifierTimeOut));
}
std::string AddMonitorRequest::getAlgorithmVendor()const
{
return algorithmVendor_;
}
void AddMonitorRequest::setAlgorithmVendor(const std::string& algorithmVendor)
{
algorithmVendor_ = algorithmVendor;
setBodyParameter("AlgorithmVendor", algorithmVendor);
}

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.
*/
#include <alibabacloud/cdrs/model/AddMonitorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
AddMonitorResult::AddMonitorResult() :
ServiceResult()
{}
AddMonitorResult::AddMonitorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddMonitorResult::~AddMonitorResult()
{}
void AddMonitorResult::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["TaskId"].isNull())
data_.taskId = dataNode["TaskId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string AddMonitorResult::getMessage()const
{
return message_;
}
AddMonitorResult::Data AddMonitorResult::getData()const
{
return data_;
}
std::string AddMonitorResult::getCode()const
{
return code_;
}

View File

@@ -93,3 +93,14 @@ void CreateProjectRequest::setName(const std::string& name)
setBodyParameter("Name", name);
}
std::string CreateProjectRequest::getAggregateSceneCode()const
{
return aggregateSceneCode_;
}
void CreateProjectRequest::setAggregateSceneCode(const std::string& aggregateSceneCode)
{
aggregateSceneCode_ = aggregateSceneCode;
setBodyParameter("AggregateSceneCode", aggregateSceneCode);
}

View File

@@ -60,3 +60,14 @@ void GetCdrsMonitorListRequest::setPageSize(int pageSize)
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string GetCdrsMonitorListRequest::getBizId()const
{
return bizId_;
}
void GetCdrsMonitorListRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setBodyParameter("BizId", bizId);
}

View File

@@ -60,6 +60,17 @@ void GetCdrsMonitorResultRequest::setStartTime(long startTime)
setBodyParameter("StartTime", std::to_string(startTime));
}
std::string GetCdrsMonitorResultRequest::getBizId()const
{
return bizId_;
}
void GetCdrsMonitorResultRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setBodyParameter("BizId", bizId);
}
std::string GetCdrsMonitorResultRequest::getAlgorithmVendor()const
{
return algorithmVendor_;

View File

@@ -66,6 +66,11 @@ void GetCdrsMonitorResultResult::parse(const std::string &payload)
recordsItemObject.monitorPicUrl = dataNodeRecordsRecordsItem["MonitorPicUrl"].asString();
if(!dataNodeRecordsRecordsItem["TargetPicUrl"].isNull())
recordsItemObject.targetPicUrl = dataNodeRecordsRecordsItem["TargetPicUrl"].asString();
if(!dataNodeRecordsRecordsItem["TaskId"].isNull())
recordsItemObject.taskId = dataNodeRecordsRecordsItem["TaskId"].asString();
auto extendInfoNode = value["ExtendInfo"];
if(!extendInfoNode["PlateNo"].isNull())
recordsItemObject.extendInfo.plateNo = extendInfoNode["PlateNo"].asString();
data_.records.push_back(recordsItemObject);
}
if(!value["Code"].isNull())

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/cdrs/model/GetMonitorListRequest.h>
using AlibabaCloud::CDRS::Model::GetMonitorListRequest;
GetMonitorListRequest::GetMonitorListRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "GetMonitorList")
{
setMethod(HttpRequest::Method::Post);
}
GetMonitorListRequest::~GetMonitorListRequest()
{}
std::string GetMonitorListRequest::getCorpId()const
{
return corpId_;
}
void GetMonitorListRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
int GetMonitorListRequest::getPageNumber()const
{
return pageNumber_;
}
void GetMonitorListRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
int GetMonitorListRequest::getPageSize()const
{
return pageSize_;
}
void GetMonitorListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string GetMonitorListRequest::getBizId()const
{
return bizId_;
}
void GetMonitorListRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setBodyParameter("BizId", bizId);
}

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/cdrs/model/GetMonitorListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
GetMonitorListResult::GetMonitorListResult() :
ServiceResult()
{}
GetMonitorListResult::GetMonitorListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMonitorListResult::~GetMonitorListResult()
{}
void GetMonitorListResult::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"]["Record"];
for (auto dataNodeRecordsRecord : allRecordsNode)
{
Data::Record recordObject;
if(!dataNodeRecordsRecord["TaskId"].isNull())
recordObject.taskId = dataNodeRecordsRecord["TaskId"].asString();
if(!dataNodeRecordsRecord["Status"].isNull())
recordObject.status = dataNodeRecordsRecord["Status"].asString();
if(!dataNodeRecordsRecord["MonitorType"].isNull())
recordObject.monitorType = dataNodeRecordsRecord["MonitorType"].asString();
if(!dataNodeRecordsRecord["RuleName"].isNull())
recordObject.ruleName = dataNodeRecordsRecord["RuleName"].asString();
if(!dataNodeRecordsRecord["AlgorithmVendor"].isNull())
recordObject.algorithmVendor = dataNodeRecordsRecord["AlgorithmVendor"].asString();
if(!dataNodeRecordsRecord["CreateDate"].isNull())
recordObject.createDate = dataNodeRecordsRecord["CreateDate"].asString();
if(!dataNodeRecordsRecord["ModifiedDate"].isNull())
recordObject.modifiedDate = dataNodeRecordsRecord["ModifiedDate"].asString();
if(!dataNodeRecordsRecord["DeviceList"].isNull())
recordObject.deviceList = dataNodeRecordsRecord["DeviceList"].asString();
if(!dataNodeRecordsRecord["Attributes"].isNull())
recordObject.attributes = dataNodeRecordsRecord["Attributes"].asString();
if(!dataNodeRecordsRecord["RuleExpression"].isNull())
recordObject.ruleExpression = dataNodeRecordsRecord["RuleExpression"].asString();
if(!dataNodeRecordsRecord["NotifierType"].isNull())
recordObject.notifierType = dataNodeRecordsRecord["NotifierType"].asString();
if(!dataNodeRecordsRecord["NotifierExtra"].isNull())
recordObject.notifierExtra = dataNodeRecordsRecord["NotifierExtra"].asString();
if(!dataNodeRecordsRecord["Description"].isNull())
recordObject.description = dataNodeRecordsRecord["Description"].asString();
if(!dataNodeRecordsRecord["Expression"].isNull())
recordObject.expression = dataNodeRecordsRecord["Expression"].asString();
if(!dataNodeRecordsRecord["ImageMatch"].isNull())
recordObject.imageMatch = dataNodeRecordsRecord["ImageMatch"].asString();
data_.records.push_back(recordObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetMonitorListResult::getMessage()const
{
return message_;
}
GetMonitorListResult::Data GetMonitorListResult::getData()const
{
return data_;
}
std::string GetMonitorListResult::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/cdrs/model/GetMonitorResultRequest.h>
using AlibabaCloud::CDRS::Model::GetMonitorResultRequest;
GetMonitorResultRequest::GetMonitorResultRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "GetMonitorResult")
{
setMethod(HttpRequest::Method::Post);
}
GetMonitorResultRequest::~GetMonitorResultRequest()
{}
std::string GetMonitorResultRequest::getCorpId()const
{
return corpId_;
}
void GetMonitorResultRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
long GetMonitorResultRequest::getEndTime()const
{
return endTime_;
}
void GetMonitorResultRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", std::to_string(endTime));
}
long GetMonitorResultRequest::getStartTime()const
{
return startTime_;
}
void GetMonitorResultRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", std::to_string(startTime));
}
std::string GetMonitorResultRequest::getBizId()const
{
return bizId_;
}
void GetMonitorResultRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setBodyParameter("BizId", bizId);
}
std::string GetMonitorResultRequest::getAlgorithmVendor()const
{
return algorithmVendor_;
}
void GetMonitorResultRequest::setAlgorithmVendor(const std::string& algorithmVendor)
{
algorithmVendor_ = algorithmVendor;
setBodyParameter("AlgorithmVendor", algorithmVendor);
}
std::string GetMonitorResultRequest::getMinRecordId()const
{
return minRecordId_;
}
void GetMonitorResultRequest::setMinRecordId(const std::string& minRecordId)
{
minRecordId_ = minRecordId;
setBodyParameter("MinRecordId", minRecordId);
}
std::string GetMonitorResultRequest::getTaskId()const
{
return taskId_;
}
void GetMonitorResultRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setBodyParameter("TaskId", taskId);
}

View File

@@ -0,0 +1,97 @@
/*
* 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/cdrs/model/GetMonitorResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
GetMonitorResultResult::GetMonitorResultResult() :
ServiceResult()
{}
GetMonitorResultResult::GetMonitorResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMonitorResultResult::~GetMonitorResultResult()
{}
void GetMonitorResultResult::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["MaxId"].isNull())
data_.maxId = dataNode["MaxId"].asString();
auto allRecordsNode = dataNode["Records"]["RecordsItem"];
for (auto dataNodeRecordsRecordsItem : allRecordsNode)
{
Data::RecordsItem recordsItemObject;
if(!dataNodeRecordsRecordsItem["RightBottomY"].isNull())
recordsItemObject.rightBottomY = dataNodeRecordsRecordsItem["RightBottomY"].asString();
if(!dataNodeRecordsRecordsItem["RightBottomX"].isNull())
recordsItemObject.rightBottomX = dataNodeRecordsRecordsItem["RightBottomX"].asString();
if(!dataNodeRecordsRecordsItem["LeftUpY"].isNull())
recordsItemObject.leftUpY = dataNodeRecordsRecordsItem["LeftUpY"].asString();
if(!dataNodeRecordsRecordsItem["LeftUpX"].isNull())
recordsItemObject.leftUpX = dataNodeRecordsRecordsItem["LeftUpX"].asString();
if(!dataNodeRecordsRecordsItem["GbId"].isNull())
recordsItemObject.gbId = dataNodeRecordsRecordsItem["GbId"].asString();
if(!dataNodeRecordsRecordsItem["Score"].isNull())
recordsItemObject.score = dataNodeRecordsRecordsItem["Score"].asString();
if(!dataNodeRecordsRecordsItem["PicUrl"].isNull())
recordsItemObject.picUrl = dataNodeRecordsRecordsItem["PicUrl"].asString();
if(!dataNodeRecordsRecordsItem["ShotTime"].isNull())
recordsItemObject.shotTime = dataNodeRecordsRecordsItem["ShotTime"].asString();
if(!dataNodeRecordsRecordsItem["MonitorPicUrl"].isNull())
recordsItemObject.monitorPicUrl = dataNodeRecordsRecordsItem["MonitorPicUrl"].asString();
if(!dataNodeRecordsRecordsItem["TargetPicUrl"].isNull())
recordsItemObject.targetPicUrl = dataNodeRecordsRecordsItem["TargetPicUrl"].asString();
if(!dataNodeRecordsRecordsItem["TaskId"].isNull())
recordsItemObject.taskId = dataNodeRecordsRecordsItem["TaskId"].asString();
auto extendInfoNode = value["ExtendInfo"];
if(!extendInfoNode["PlateNo"].isNull())
recordsItemObject.extendInfo.plateNo = extendInfoNode["PlateNo"].asString();
data_.records.push_back(recordsItemObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetMonitorResultResult::getMessage()const
{
return message_;
}
GetMonitorResultResult::Data GetMonitorResultResult::getData()const
{
return data_;
}
std::string GetMonitorResultResult::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/cdrs/model/ListAreaHotSpotMetricsRequest.h>
using AlibabaCloud::CDRS::Model::ListAreaHotSpotMetricsRequest;
ListAreaHotSpotMetricsRequest::ListAreaHotSpotMetricsRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "ListAreaHotSpotMetrics")
{
setMethod(HttpRequest::Method::Post);
}
ListAreaHotSpotMetricsRequest::~ListAreaHotSpotMetricsRequest()
{}
std::string ListAreaHotSpotMetricsRequest::getSchema()const
{
return schema_;
}
void ListAreaHotSpotMetricsRequest::setSchema(const std::string& schema)
{
schema_ = schema;
setBodyParameter("Schema", schema);
}
std::string ListAreaHotSpotMetricsRequest::getCorpId()const
{
return corpId_;
}
void ListAreaHotSpotMetricsRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string ListAreaHotSpotMetricsRequest::getEndTime()const
{
return endTime_;
}
void ListAreaHotSpotMetricsRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
std::string ListAreaHotSpotMetricsRequest::getStartTime()const
{
return startTime_;
}
void ListAreaHotSpotMetricsRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::string ListAreaHotSpotMetricsRequest::getDeviceId()const
{
return deviceId_;
}
void ListAreaHotSpotMetricsRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setBodyParameter("DeviceId", deviceId);
}
std::string ListAreaHotSpotMetricsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListAreaHotSpotMetricsRequest::setPageNumber(const std::string& pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", pageNumber);
}
std::string ListAreaHotSpotMetricsRequest::getPageSize()const
{
return pageSize_;
}
void ListAreaHotSpotMetricsRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", pageSize);
}
std::string ListAreaHotSpotMetricsRequest::getPersonId()const
{
return personId_;
}
void ListAreaHotSpotMetricsRequest::setPersonId(const std::string& personId)
{
personId_ = personId;
setBodyParameter("PersonId", personId);
}

View File

@@ -0,0 +1,100 @@
/*
* 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/cdrs/model/ListAreaHotSpotMetricsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
ListAreaHotSpotMetricsResult::ListAreaHotSpotMetricsResult() :
ServiceResult()
{}
ListAreaHotSpotMetricsResult::ListAreaHotSpotMetricsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAreaHotSpotMetricsResult::~ListAreaHotSpotMetricsResult()
{}
void ListAreaHotSpotMetricsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["Times"].isNull())
dataObject.times = valueDataDataItem["Times"].asString();
if(!valueDataDataItem["Coordinates"].isNull())
dataObject.coordinates = valueDataDataItem["Coordinates"].asString();
if(!valueDataDataItem["DeviceId"].isNull())
dataObject.deviceId = valueDataDataItem["DeviceId"].asString();
if(!valueDataDataItem["PersonId"].isNull())
dataObject.personId = valueDataDataItem["PersonId"].asString();
if(!valueDataDataItem["IntervalTime"].isNull())
dataObject.intervalTime = valueDataDataItem["IntervalTime"].asString();
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = value["PageNumber"].asString();
if(!value["PageSize"].isNull())
pageSize_ = value["PageSize"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = value["TotalCount"].asString();
}
std::string ListAreaHotSpotMetricsResult::getTotalCount()const
{
return totalCount_;
}
std::string ListAreaHotSpotMetricsResult::getMessage()const
{
return message_;
}
std::string ListAreaHotSpotMetricsResult::getPageSize()const
{
return pageSize_;
}
std::string ListAreaHotSpotMetricsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListAreaHotSpotMetricsResult::DataItem> ListAreaHotSpotMetricsResult::getData()const
{
return data_;
}
std::string ListAreaHotSpotMetricsResult::getCode()const
{
return code_;
}

View File

@@ -1,128 +0,0 @@
/*
* 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/cdrs/model/ListCorpMetricsRequest.h>
using AlibabaCloud::CDRS::Model::ListCorpMetricsRequest;
ListCorpMetricsRequest::ListCorpMetricsRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "ListCorpMetrics")
{
setMethod(HttpRequest::Method::Post);
}
ListCorpMetricsRequest::~ListCorpMetricsRequest()
{}
std::string ListCorpMetricsRequest::getCorpId()const
{
return corpId_;
}
void ListCorpMetricsRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string ListCorpMetricsRequest::getEndTime()const
{
return endTime_;
}
void ListCorpMetricsRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
std::string ListCorpMetricsRequest::getStartTime()const
{
return startTime_;
}
void ListCorpMetricsRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
long ListCorpMetricsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListCorpMetricsRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListCorpMetricsRequest::getDeviceGroupList()const
{
return deviceGroupList_;
}
void ListCorpMetricsRequest::setDeviceGroupList(const std::string& deviceGroupList)
{
deviceGroupList_ = deviceGroupList;
setBodyParameter("DeviceGroupList", deviceGroupList);
}
std::string ListCorpMetricsRequest::getTagCode()const
{
return tagCode_;
}
void ListCorpMetricsRequest::setTagCode(const std::string& tagCode)
{
tagCode_ = tagCode;
setBodyParameter("TagCode", tagCode);
}
std::string ListCorpMetricsRequest::getUserGroupList()const
{
return userGroupList_;
}
void ListCorpMetricsRequest::setUserGroupList(const std::string& userGroupList)
{
userGroupList_ = userGroupList;
setBodyParameter("UserGroupList", userGroupList);
}
long ListCorpMetricsRequest::getPageSize()const
{
return pageSize_;
}
void ListCorpMetricsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string ListCorpMetricsRequest::getDeviceIdList()const
{
return deviceIdList_;
}
void ListCorpMetricsRequest::setDeviceIdList(const std::string& deviceIdList)
{
deviceIdList_ = deviceIdList;
setBodyParameter("DeviceIdList", deviceIdList);
}

View File

@@ -0,0 +1,139 @@
/*
* 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/cdrs/model/ListCorpMetricsStatisticRequest.h>
using AlibabaCloud::CDRS::Model::ListCorpMetricsStatisticRequest;
ListCorpMetricsStatisticRequest::ListCorpMetricsStatisticRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "ListCorpMetricsStatistic")
{
setMethod(HttpRequest::Method::Post);
}
ListCorpMetricsStatisticRequest::~ListCorpMetricsStatisticRequest()
{}
std::string ListCorpMetricsStatisticRequest::getSchema()const
{
return schema_;
}
void ListCorpMetricsStatisticRequest::setSchema(const std::string& schema)
{
schema_ = schema;
setBodyParameter("Schema", schema);
}
std::string ListCorpMetricsStatisticRequest::getCorpId()const
{
return corpId_;
}
void ListCorpMetricsStatisticRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string ListCorpMetricsStatisticRequest::getEndTime()const
{
return endTime_;
}
void ListCorpMetricsStatisticRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
std::string ListCorpMetricsStatisticRequest::getStartTime()const
{
return startTime_;
}
void ListCorpMetricsStatisticRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
long ListCorpMetricsStatisticRequest::getPageNumber()const
{
return pageNumber_;
}
void ListCorpMetricsStatisticRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListCorpMetricsStatisticRequest::getDeviceGroupList()const
{
return deviceGroupList_;
}
void ListCorpMetricsStatisticRequest::setDeviceGroupList(const std::string& deviceGroupList)
{
deviceGroupList_ = deviceGroupList;
setBodyParameter("DeviceGroupList", deviceGroupList);
}
std::string ListCorpMetricsStatisticRequest::getTagCode()const
{
return tagCode_;
}
void ListCorpMetricsStatisticRequest::setTagCode(const std::string& tagCode)
{
tagCode_ = tagCode;
setBodyParameter("TagCode", tagCode);
}
std::string ListCorpMetricsStatisticRequest::getUserGroupList()const
{
return userGroupList_;
}
void ListCorpMetricsStatisticRequest::setUserGroupList(const std::string& userGroupList)
{
userGroupList_ = userGroupList;
setBodyParameter("UserGroupList", userGroupList);
}
long ListCorpMetricsStatisticRequest::getPageSize()const
{
return pageSize_;
}
void ListCorpMetricsStatisticRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string ListCorpMetricsStatisticRequest::getDeviceIdList()const
{
return deviceIdList_;
}
void ListCorpMetricsStatisticRequest::setDeviceIdList(const std::string& deviceIdList)
{
deviceIdList_ = deviceIdList;
setBodyParameter("DeviceIdList", deviceIdList);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cdrs/model/ListCorpMetricsResult.h>
#include <alibabacloud/cdrs/model/ListCorpMetricsStatisticResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
ListCorpMetricsResult::ListCorpMetricsResult() :
ListCorpMetricsStatisticResult::ListCorpMetricsStatisticResult() :
ServiceResult()
{}
ListCorpMetricsResult::ListCorpMetricsResult(const std::string &payload) :
ListCorpMetricsStatisticResult::ListCorpMetricsStatisticResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCorpMetricsResult::~ListCorpMetricsResult()
ListCorpMetricsStatisticResult::~ListCorpMetricsStatisticResult()
{}
void ListCorpMetricsResult::parse(const std::string &payload)
void ListCorpMetricsStatisticResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -78,37 +78,37 @@ void ListCorpMetricsResult::parse(const std::string &payload)
}
int ListCorpMetricsResult::getTotalCount()const
int ListCorpMetricsStatisticResult::getTotalCount()const
{
return totalCount_;
}
int ListCorpMetricsResult::getPageSize()const
int ListCorpMetricsStatisticResult::getPageSize()const
{
return pageSize_;
}
std::string ListCorpMetricsResult::getMessage()const
std::string ListCorpMetricsStatisticResult::getMessage()const
{
return message_;
}
int ListCorpMetricsResult::getPageNumber()const
int ListCorpMetricsStatisticResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListCorpMetricsResult::DataItem> ListCorpMetricsResult::getData()const
std::vector<ListCorpMetricsStatisticResult::DataItem> ListCorpMetricsStatisticResult::getData()const
{
return data_;
}
std::string ListCorpMetricsResult::getCode()const
std::string ListCorpMetricsStatisticResult::getCode()const
{
return code_;
}
std::string ListCorpMetricsResult::getSuccess()const
std::string ListCorpMetricsStatisticResult::getSuccess()const
{
return success_;
}

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/cdrs/model/ListDeviceRelationRequest.h>
using AlibabaCloud::CDRS::Model::ListDeviceRelationRequest;
ListDeviceRelationRequest::ListDeviceRelationRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "ListDeviceRelation")
{
setMethod(HttpRequest::Method::Post);
}
ListDeviceRelationRequest::~ListDeviceRelationRequest()
{}
std::string ListDeviceRelationRequest::getDeviceId()const
{
return deviceId_;
}
void ListDeviceRelationRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setBodyParameter("DeviceId", deviceId);
}
std::string ListDeviceRelationRequest::getAppName()const
{
return appName_;
}
void ListDeviceRelationRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setBodyParameter("AppName", appName);
}
std::string ListDeviceRelationRequest::get_NameSpace()const
{
return _nameSpace_;
}
void ListDeviceRelationRequest::set_NameSpace(const std::string& _nameSpace)
{
_nameSpace_ = _nameSpace;
setBodyParameter("_NameSpace", _nameSpace);
}

View File

@@ -0,0 +1,71 @@
/*
* 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/cdrs/model/ListDeviceRelationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
ListDeviceRelationResult::ListDeviceRelationResult() :
ServiceResult()
{}
ListDeviceRelationResult::ListDeviceRelationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDeviceRelationResult::~ListDeviceRelationResult()
{}
void ListDeviceRelationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["CorpId"].isNull())
dataObject.corpId = valueDataDataItem["CorpId"].asString();
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListDeviceRelationResult::getMessage()const
{
return message_;
}
std::vector<ListDeviceRelationResult::DataItem> ListDeviceRelationResult::getData()const
{
return data_;
}
std::string ListDeviceRelationResult::getCode()const
{
return code_;
}

View File

@@ -1,106 +0,0 @@
/*
* 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/cdrs/model/ListMetricsRequest.h>
using AlibabaCloud::CDRS::Model::ListMetricsRequest;
ListMetricsRequest::ListMetricsRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "ListMetrics")
{
setMethod(HttpRequest::Method::Post);
}
ListMetricsRequest::~ListMetricsRequest()
{}
std::string ListMetricsRequest::getCorpId()const
{
return corpId_;
}
void ListMetricsRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string ListMetricsRequest::getEndTime()const
{
return endTime_;
}
void ListMetricsRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
std::string ListMetricsRequest::getStartTime()const
{
return startTime_;
}
void ListMetricsRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::string ListMetricsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListMetricsRequest::setPageNumber(const std::string& pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", pageNumber);
}
std::string ListMetricsRequest::getTagCode()const
{
return tagCode_;
}
void ListMetricsRequest::setTagCode(const std::string& tagCode)
{
tagCode_ = tagCode;
setBodyParameter("TagCode", tagCode);
}
std::string ListMetricsRequest::getPageSize()const
{
return pageSize_;
}
void ListMetricsRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", pageSize);
}
std::string ListMetricsRequest::getAggregateType()const
{
return aggregateType_;
}
void ListMetricsRequest::setAggregateType(const std::string& aggregateType)
{
aggregateType_ = aggregateType;
setBodyParameter("AggregateType", aggregateType);
}

Some files were not shown because too many files have changed in this diff Show More