Compare commits

..

67 Commits

Author SHA1 Message Date
sdk-team
ed6a90e129 Update default endpoints. 2021-03-02 11:48:59 +00:00
sdk-team
d838ddc386 Supported API for dnsCache. 2021-03-02 10:57:02 +00:00
sdk-team
b22b8d5846 Support GroupCoverFace ExternalId for ListFaceGroups. 2021-03-02 06:12:20 +00:00
sdk-team
36c78f0497 AMP Version Change. 2021-03-01 07:10:25 +00:00
sdk-team
78e7f635c2 AMP Version Change. 2021-02-28 08:57:05 +00:00
sdk-team
d57006bd72 Add TaskId for DescribeMigrationJobStatus, DescribeSubscriptionInstanceStatus, DescribeSynchronizationJobStatus. 2021-02-26 07:19:42 +00:00
sdk-team
4017f787f4 Support SLR by InitializeDbsServiceLinkedRole action. 2021-02-26 03:39:03 +00:00
sdk-team
9f93cb2d7c Support SLR by InitializeDbsServiceLinkedRole action. 2021-02-25 14:39:45 +00:00
sdk-team
fc224224bd Generated 2020-05-18 for dataworks-public. 2021-02-25 09:20:41 +00:00
sdk-team
f9099c0746 Generated 2020-05-18 for dataworks-public. 2021-02-24 12:38:14 +00:00
sdk-team
dcc90161eb ALL API. 2021-02-24 11:40:34 +00:00
sdk-team
7bde7a21f4 Supported List Namespaces. 2021-02-23 02:22:22 +00:00
sdk-team
e912c2adc5 Support input parameter DeploymentSetId for CreateAutoProvisioningGroup. 2021-02-22 08:42:47 +00:00
sdk-team
82cfdabb16 Generated 2020-01-11 for servicemesh. 2021-02-19 08:11:59 +00:00
sdk-team
a009cbcc4f Add new API for recording. 2021-02-19 08:09:01 +00:00
sdk-team
3338987506 Add API OpenOnsService which can active ons service. 2021-02-19 08:06:57 +00:00
sdk-team
ef67947d20 Generated 2018-06-01 for dataworks-public. 2021-02-19 08:04:30 +00:00
sdk-team
42440e1078 Update SegmentBody. 2021-02-19 08:03:06 +00:00
sdk-team
44de17f30a DescribeAvailableResource support list available resource for modify instance. 2021-02-19 08:01:30 +00:00
sdk-team
1f7ee9ecc1 Update SetVideoSeekConfig. 2021-02-19 07:58:20 +00:00
sdk-team
b5cb1df9e3 Release InterpolateVideoFrame. 2021-02-19 07:57:14 +00:00
sdk-team
03b5f7b37b Create TSDB Open api. 2021-02-19 07:53:30 +00:00
sdk-team
9bf214bc2c Add. 2021-02-19 07:52:20 +00:00
sdk-team
9bdc7d4fa5 Generated 2019-01-01 for Cassandra. 2021-02-19 07:51:13 +00:00
sdk-team
80f230d35a Supported API for GTM. 2021-02-19 07:50:09 +00:00
sdk-team
0faf3e6ffa Support CPP and Go and PHP. 2021-02-19 07:48:16 +00:00
sdk-team
3dcd83a4f3 Support some MergeRequest API. 2021-02-19 07:44:26 +00:00
sdk-team
052017ee0a Fix IoT Studio BatchBindDevicesIntoProject API return datatype. 2021-02-08 10:32:04 +00:00
sdk-team
cbf2412b29 Add username for RunCommand and InvokeCommand. 2021-02-08 09:37:31 +00:00
sdk-team
9fd09665ff Update PedestrianDetectAttribute. 2021-02-08 02:28:57 +00:00
sdk-team
7964674af1 Add IoT Studio BatchBindDevicesIntoProject API. 2021-02-07 13:38:41 +00:00
sdk-team
38db21928a Support patch manager apis. 2021-02-07 10:02:16 +00:00
sdk-team
4899593377 Support some MergeRequest API. 2021-02-07 09:05:00 +00:00
sdk-team
ecf3cb4bb0 Generated 2020-05-18 for dataworks-public. 2021-02-05 09:47:20 +00:00
sdk-team
7b2178ef7c Update Open API. 2021-02-05 06:57:25 +00:00
sdk-team
de338b6bec Generated 2020-05-18 for dataworks-public. 2021-02-05 02:30:31 +00:00
sdk-team
272a1c1466 Update DetectVehicleIllegalParking DetectVehicleICongestion. 2021-02-04 10:01:29 +00:00
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
1317 changed files with 48681 additions and 12738 deletions

215
CHANGELOG
View File

@@ -1,3 +1,218 @@
2021-03-02 Version: patch
- Update default endpoints.
2021-03-02 Version: patch
- Supported API for dnsCache.
- Supported API for GTM.
2021-03-02 Version: patch
- Support GroupCoverFace ExternalId for ListFaceGroups.
- Support ResetItems for UpdateFaceGroup.
2021-03-01 Version: patch
- AMP Version Change.
2021-02-28 Version: patch
- AMP Version Change.
2021-02-26 Version: patch
- Add TaskId for DescribeMigrationJobStatus, DescribeSubscriptionInstanceStatus, DescribeSynchronizationJobStatus.
- Add API CreateDtsInstance, ConfigureDtsJob, StartDtsJob.
2021-02-26 Version: patch
- Support SLR by InitializeDbsServiceLinkedRole action.
- Change DescribeIncrementBackupList and DescribeFullBackupList to Support Range filter by endTimestamp.
- Change DescribeRestoreTaskList to Support Range filter by createTime.
2021-02-25 Version: patch
- Support SLR by InitializeDbsServiceLinkedRole action.
- Change DescribeIncrementBackupList and DescribeFullBackupList to Support Range filter.
2021-02-25 Version: patch
- Generated 2020-05-18 for `dataworks-public`.
2021-02-24 Version: patch
- Generated 2020-05-18 for `dataworks-public`.
2021-02-24 Version: patch
- ALL API.
2021-02-23 Version: patch
- Supported List Namespaces.
- Supported List Groups.
- Supported List Jobs.
2021-02-22 Version: patch
- Support input parameter DeploymentSetId for CreateAutoProvisioningGroup.
2021-02-19 Version: patch
- Generated 2020-01-11 for `servicemesh`.
2021-02-19 Version: patch
- Add new API for recording.
2021-02-19 Version: patch
- Add API OpenOnsService which can active ons service.
2021-02-19 Version: patch
- Generated 2018-06-01 for `dataworks-public`.
2021-02-19 Version: patch
- Update SegmentBody.
2021-02-19 Version: patch
- DescribeAvailableResource support list available resource for modify instance.
2021-02-19 Version: patch
- Update SetVideoSeekConfig.
2021-02-19 Version: patch
- Release InterpolateVideoFrame.
2021-02-19 Version: patch
- Create TSDB Open api.
2021-02-19 Version: patch
- Add.
2021-02-19 Version: patch
- Generated 2019-01-01 for `Cassandra`.
2021-02-19 Version: patch
- Supported API for GTM.
2021-02-19 Version: patch
- Support CPP and Go and PHP.
2021-02-19 Version: patch
- Support some MergeRequest API.
2021-02-08 Version: patch
- Fix IoT Studio BatchBindDevicesIntoProject API return datatype.
- Fix IoT Studio BatchBindProductsIntoProject API return datatype.
- Fix IoT Studio BatchUnbindProjectDevices API return datatype.
- Fix IoT Studio BatchUnbindProjectProducts API return datatype.
2021-02-08 Version: patch
- Add username for RunCommand and InvokeCommand.
2021-02-08 Version: patch
- Update PedestrianDetectAttribute.
2021-02-07 Version: patch
- Add IoT Studio BatchBindDevicesIntoProject API.
- Add IoT Studio BatchBindProductsIntoProject API.
- Add IoT Studio BatchUnbindProjectDevices API.
- Add IoT Studio BatchUnbindProjectProducts API.
2021-02-07 Version: patch
- Support patch manager apis.
2021-02-07 Version: patch
- Support some MergeRequest API.
2021-02-05 Version: patch
- Generated 2020-05-18 for `dataworks-public`.
2021-02-05 Version: patch
- Update Open API.
2021-02-05 Version: patch
- Generated 2020-05-18 for `dataworks-public`.
2021-02-04 Version: patch
- Update DetectVehicleIllegalParking DetectVehicleICongestion.
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`.

View File

@@ -23,6 +23,8 @@ set(alidns_public_header
set(alidns_public_header_model
include/alibabacloud/alidns/model/AddCustomLineRequest.h
include/alibabacloud/alidns/model/AddCustomLineResult.h
include/alibabacloud/alidns/model/AddDnsCacheDomainRequest.h
include/alibabacloud/alidns/model/AddDnsCacheDomainResult.h
include/alibabacloud/alidns/model/AddDnsGtmAccessStrategyRequest.h
include/alibabacloud/alidns/model/AddDnsGtmAccessStrategyResult.h
include/alibabacloud/alidns/model/AddDnsGtmAddressPoolRequest.h
@@ -55,6 +57,8 @@ set(alidns_public_header_model
include/alibabacloud/alidns/model/CopyGtmConfigResult.h
include/alibabacloud/alidns/model/DeleteCustomLinesRequest.h
include/alibabacloud/alidns/model/DeleteCustomLinesResult.h
include/alibabacloud/alidns/model/DeleteDnsCacheDomainRequest.h
include/alibabacloud/alidns/model/DeleteDnsCacheDomainResult.h
include/alibabacloud/alidns/model/DeleteDnsGtmAccessStrategyRequest.h
include/alibabacloud/alidns/model/DeleteDnsGtmAccessStrategyResult.h
include/alibabacloud/alidns/model/DeleteDnsGtmAddressPoolRequest.h
@@ -83,6 +87,8 @@ set(alidns_public_header_model
include/alibabacloud/alidns/model/DescribeCustomLinesResult.h
include/alibabacloud/alidns/model/DescribeDNSSLBSubDomainsRequest.h
include/alibabacloud/alidns/model/DescribeDNSSLBSubDomainsResult.h
include/alibabacloud/alidns/model/DescribeDnsCacheDomainsRequest.h
include/alibabacloud/alidns/model/DescribeDnsCacheDomainsResult.h
include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategiesRequest.h
include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategiesResult.h
include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyRequest.h
@@ -247,6 +253,10 @@ set(alidns_public_header_model
include/alibabacloud/alidns/model/UpdateCustomLineResult.h
include/alibabacloud/alidns/model/UpdateDNSSLBWeightRequest.h
include/alibabacloud/alidns/model/UpdateDNSSLBWeightResult.h
include/alibabacloud/alidns/model/UpdateDnsCacheDomainRequest.h
include/alibabacloud/alidns/model/UpdateDnsCacheDomainResult.h
include/alibabacloud/alidns/model/UpdateDnsCacheDomainRemarkRequest.h
include/alibabacloud/alidns/model/UpdateDnsCacheDomainRemarkResult.h
include/alibabacloud/alidns/model/UpdateDnsGtmAccessStrategyRequest.h
include/alibabacloud/alidns/model/UpdateDnsGtmAccessStrategyResult.h
include/alibabacloud/alidns/model/UpdateDnsGtmAddressPoolRequest.h
@@ -278,6 +288,8 @@ set(alidns_src
src/AlidnsClient.cc
src/model/AddCustomLineRequest.cc
src/model/AddCustomLineResult.cc
src/model/AddDnsCacheDomainRequest.cc
src/model/AddDnsCacheDomainResult.cc
src/model/AddDnsGtmAccessStrategyRequest.cc
src/model/AddDnsGtmAccessStrategyResult.cc
src/model/AddDnsGtmAddressPoolRequest.cc
@@ -310,6 +322,8 @@ set(alidns_src
src/model/CopyGtmConfigResult.cc
src/model/DeleteCustomLinesRequest.cc
src/model/DeleteCustomLinesResult.cc
src/model/DeleteDnsCacheDomainRequest.cc
src/model/DeleteDnsCacheDomainResult.cc
src/model/DeleteDnsGtmAccessStrategyRequest.cc
src/model/DeleteDnsGtmAccessStrategyResult.cc
src/model/DeleteDnsGtmAddressPoolRequest.cc
@@ -338,6 +352,8 @@ set(alidns_src
src/model/DescribeCustomLinesResult.cc
src/model/DescribeDNSSLBSubDomainsRequest.cc
src/model/DescribeDNSSLBSubDomainsResult.cc
src/model/DescribeDnsCacheDomainsRequest.cc
src/model/DescribeDnsCacheDomainsResult.cc
src/model/DescribeDnsGtmAccessStrategiesRequest.cc
src/model/DescribeDnsGtmAccessStrategiesResult.cc
src/model/DescribeDnsGtmAccessStrategyRequest.cc
@@ -502,6 +518,10 @@ set(alidns_src
src/model/UpdateCustomLineResult.cc
src/model/UpdateDNSSLBWeightRequest.cc
src/model/UpdateDNSSLBWeightResult.cc
src/model/UpdateDnsCacheDomainRequest.cc
src/model/UpdateDnsCacheDomainResult.cc
src/model/UpdateDnsCacheDomainRemarkRequest.cc
src/model/UpdateDnsCacheDomainRemarkResult.cc
src/model/UpdateDnsGtmAccessStrategyRequest.cc
src/model/UpdateDnsGtmAccessStrategyResult.cc
src/model/UpdateDnsGtmAddressPoolRequest.cc

View File

@@ -24,6 +24,8 @@
#include "AlidnsExport.h"
#include "model/AddCustomLineRequest.h"
#include "model/AddCustomLineResult.h"
#include "model/AddDnsCacheDomainRequest.h"
#include "model/AddDnsCacheDomainResult.h"
#include "model/AddDnsGtmAccessStrategyRequest.h"
#include "model/AddDnsGtmAccessStrategyResult.h"
#include "model/AddDnsGtmAddressPoolRequest.h"
@@ -56,6 +58,8 @@
#include "model/CopyGtmConfigResult.h"
#include "model/DeleteCustomLinesRequest.h"
#include "model/DeleteCustomLinesResult.h"
#include "model/DeleteDnsCacheDomainRequest.h"
#include "model/DeleteDnsCacheDomainResult.h"
#include "model/DeleteDnsGtmAccessStrategyRequest.h"
#include "model/DeleteDnsGtmAccessStrategyResult.h"
#include "model/DeleteDnsGtmAddressPoolRequest.h"
@@ -84,6 +88,8 @@
#include "model/DescribeCustomLinesResult.h"
#include "model/DescribeDNSSLBSubDomainsRequest.h"
#include "model/DescribeDNSSLBSubDomainsResult.h"
#include "model/DescribeDnsCacheDomainsRequest.h"
#include "model/DescribeDnsCacheDomainsResult.h"
#include "model/DescribeDnsGtmAccessStrategiesRequest.h"
#include "model/DescribeDnsGtmAccessStrategiesResult.h"
#include "model/DescribeDnsGtmAccessStrategyRequest.h"
@@ -248,6 +254,10 @@
#include "model/UpdateCustomLineResult.h"
#include "model/UpdateDNSSLBWeightRequest.h"
#include "model/UpdateDNSSLBWeightResult.h"
#include "model/UpdateDnsCacheDomainRequest.h"
#include "model/UpdateDnsCacheDomainResult.h"
#include "model/UpdateDnsCacheDomainRemarkRequest.h"
#include "model/UpdateDnsCacheDomainRemarkResult.h"
#include "model/UpdateDnsGtmAccessStrategyRequest.h"
#include "model/UpdateDnsGtmAccessStrategyResult.h"
#include "model/UpdateDnsGtmAddressPoolRequest.h"
@@ -286,6 +296,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AddCustomLineResult> AddCustomLineOutcome;
typedef std::future<AddCustomLineOutcome> AddCustomLineOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::AddCustomLineRequest&, const AddCustomLineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddCustomLineAsyncHandler;
typedef Outcome<Error, Model::AddDnsCacheDomainResult> AddDnsCacheDomainOutcome;
typedef std::future<AddDnsCacheDomainOutcome> AddDnsCacheDomainOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::AddDnsCacheDomainRequest&, const AddDnsCacheDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddDnsCacheDomainAsyncHandler;
typedef Outcome<Error, Model::AddDnsGtmAccessStrategyResult> AddDnsGtmAccessStrategyOutcome;
typedef std::future<AddDnsGtmAccessStrategyOutcome> AddDnsGtmAccessStrategyOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::AddDnsGtmAccessStrategyRequest&, const AddDnsGtmAccessStrategyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddDnsGtmAccessStrategyAsyncHandler;
@@ -334,6 +347,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteCustomLinesResult> DeleteCustomLinesOutcome;
typedef std::future<DeleteCustomLinesOutcome> DeleteCustomLinesOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DeleteCustomLinesRequest&, const DeleteCustomLinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCustomLinesAsyncHandler;
typedef Outcome<Error, Model::DeleteDnsCacheDomainResult> DeleteDnsCacheDomainOutcome;
typedef std::future<DeleteDnsCacheDomainOutcome> DeleteDnsCacheDomainOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DeleteDnsCacheDomainRequest&, const DeleteDnsCacheDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDnsCacheDomainAsyncHandler;
typedef Outcome<Error, Model::DeleteDnsGtmAccessStrategyResult> DeleteDnsGtmAccessStrategyOutcome;
typedef std::future<DeleteDnsGtmAccessStrategyOutcome> DeleteDnsGtmAccessStrategyOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DeleteDnsGtmAccessStrategyRequest&, const DeleteDnsGtmAccessStrategyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDnsGtmAccessStrategyAsyncHandler;
@@ -376,6 +392,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDNSSLBSubDomainsResult> DescribeDNSSLBSubDomainsOutcome;
typedef std::future<DescribeDNSSLBSubDomainsOutcome> DescribeDNSSLBSubDomainsOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeDNSSLBSubDomainsRequest&, const DescribeDNSSLBSubDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDNSSLBSubDomainsAsyncHandler;
typedef Outcome<Error, Model::DescribeDnsCacheDomainsResult> DescribeDnsCacheDomainsOutcome;
typedef std::future<DescribeDnsCacheDomainsOutcome> DescribeDnsCacheDomainsOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeDnsCacheDomainsRequest&, const DescribeDnsCacheDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDnsCacheDomainsAsyncHandler;
typedef Outcome<Error, Model::DescribeDnsGtmAccessStrategiesResult> DescribeDnsGtmAccessStrategiesOutcome;
typedef std::future<DescribeDnsGtmAccessStrategiesOutcome> DescribeDnsGtmAccessStrategiesOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeDnsGtmAccessStrategiesRequest&, const DescribeDnsGtmAccessStrategiesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDnsGtmAccessStrategiesAsyncHandler;
@@ -622,6 +641,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateDNSSLBWeightResult> UpdateDNSSLBWeightOutcome;
typedef std::future<UpdateDNSSLBWeightOutcome> UpdateDNSSLBWeightOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::UpdateDNSSLBWeightRequest&, const UpdateDNSSLBWeightOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDNSSLBWeightAsyncHandler;
typedef Outcome<Error, Model::UpdateDnsCacheDomainResult> UpdateDnsCacheDomainOutcome;
typedef std::future<UpdateDnsCacheDomainOutcome> UpdateDnsCacheDomainOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::UpdateDnsCacheDomainRequest&, const UpdateDnsCacheDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDnsCacheDomainAsyncHandler;
typedef Outcome<Error, Model::UpdateDnsCacheDomainRemarkResult> UpdateDnsCacheDomainRemarkOutcome;
typedef std::future<UpdateDnsCacheDomainRemarkOutcome> UpdateDnsCacheDomainRemarkOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::UpdateDnsCacheDomainRemarkRequest&, const UpdateDnsCacheDomainRemarkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDnsCacheDomainRemarkAsyncHandler;
typedef Outcome<Error, Model::UpdateDnsGtmAccessStrategyResult> UpdateDnsGtmAccessStrategyOutcome;
typedef std::future<UpdateDnsGtmAccessStrategyOutcome> UpdateDnsGtmAccessStrategyOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::UpdateDnsGtmAccessStrategyRequest&, const UpdateDnsGtmAccessStrategyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDnsGtmAccessStrategyAsyncHandler;
@@ -669,6 +694,9 @@ namespace AlibabaCloud
AddCustomLineOutcome addCustomLine(const Model::AddCustomLineRequest &request)const;
void addCustomLineAsync(const Model::AddCustomLineRequest& request, const AddCustomLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddCustomLineOutcomeCallable addCustomLineCallable(const Model::AddCustomLineRequest& request) const;
AddDnsCacheDomainOutcome addDnsCacheDomain(const Model::AddDnsCacheDomainRequest &request)const;
void addDnsCacheDomainAsync(const Model::AddDnsCacheDomainRequest& request, const AddDnsCacheDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddDnsCacheDomainOutcomeCallable addDnsCacheDomainCallable(const Model::AddDnsCacheDomainRequest& request) const;
AddDnsGtmAccessStrategyOutcome addDnsGtmAccessStrategy(const Model::AddDnsGtmAccessStrategyRequest &request)const;
void addDnsGtmAccessStrategyAsync(const Model::AddDnsGtmAccessStrategyRequest& request, const AddDnsGtmAccessStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddDnsGtmAccessStrategyOutcomeCallable addDnsGtmAccessStrategyCallable(const Model::AddDnsGtmAccessStrategyRequest& request) const;
@@ -717,6 +745,9 @@ namespace AlibabaCloud
DeleteCustomLinesOutcome deleteCustomLines(const Model::DeleteCustomLinesRequest &request)const;
void deleteCustomLinesAsync(const Model::DeleteCustomLinesRequest& request, const DeleteCustomLinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteCustomLinesOutcomeCallable deleteCustomLinesCallable(const Model::DeleteCustomLinesRequest& request) const;
DeleteDnsCacheDomainOutcome deleteDnsCacheDomain(const Model::DeleteDnsCacheDomainRequest &request)const;
void deleteDnsCacheDomainAsync(const Model::DeleteDnsCacheDomainRequest& request, const DeleteDnsCacheDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDnsCacheDomainOutcomeCallable deleteDnsCacheDomainCallable(const Model::DeleteDnsCacheDomainRequest& request) const;
DeleteDnsGtmAccessStrategyOutcome deleteDnsGtmAccessStrategy(const Model::DeleteDnsGtmAccessStrategyRequest &request)const;
void deleteDnsGtmAccessStrategyAsync(const Model::DeleteDnsGtmAccessStrategyRequest& request, const DeleteDnsGtmAccessStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDnsGtmAccessStrategyOutcomeCallable deleteDnsGtmAccessStrategyCallable(const Model::DeleteDnsGtmAccessStrategyRequest& request) const;
@@ -759,6 +790,9 @@ namespace AlibabaCloud
DescribeDNSSLBSubDomainsOutcome describeDNSSLBSubDomains(const Model::DescribeDNSSLBSubDomainsRequest &request)const;
void describeDNSSLBSubDomainsAsync(const Model::DescribeDNSSLBSubDomainsRequest& request, const DescribeDNSSLBSubDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDNSSLBSubDomainsOutcomeCallable describeDNSSLBSubDomainsCallable(const Model::DescribeDNSSLBSubDomainsRequest& request) const;
DescribeDnsCacheDomainsOutcome describeDnsCacheDomains(const Model::DescribeDnsCacheDomainsRequest &request)const;
void describeDnsCacheDomainsAsync(const Model::DescribeDnsCacheDomainsRequest& request, const DescribeDnsCacheDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDnsCacheDomainsOutcomeCallable describeDnsCacheDomainsCallable(const Model::DescribeDnsCacheDomainsRequest& request) const;
DescribeDnsGtmAccessStrategiesOutcome describeDnsGtmAccessStrategies(const Model::DescribeDnsGtmAccessStrategiesRequest &request)const;
void describeDnsGtmAccessStrategiesAsync(const Model::DescribeDnsGtmAccessStrategiesRequest& request, const DescribeDnsGtmAccessStrategiesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDnsGtmAccessStrategiesOutcomeCallable describeDnsGtmAccessStrategiesCallable(const Model::DescribeDnsGtmAccessStrategiesRequest& request) const;
@@ -1005,6 +1039,12 @@ namespace AlibabaCloud
UpdateDNSSLBWeightOutcome updateDNSSLBWeight(const Model::UpdateDNSSLBWeightRequest &request)const;
void updateDNSSLBWeightAsync(const Model::UpdateDNSSLBWeightRequest& request, const UpdateDNSSLBWeightAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDNSSLBWeightOutcomeCallable updateDNSSLBWeightCallable(const Model::UpdateDNSSLBWeightRequest& request) const;
UpdateDnsCacheDomainOutcome updateDnsCacheDomain(const Model::UpdateDnsCacheDomainRequest &request)const;
void updateDnsCacheDomainAsync(const Model::UpdateDnsCacheDomainRequest& request, const UpdateDnsCacheDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDnsCacheDomainOutcomeCallable updateDnsCacheDomainCallable(const Model::UpdateDnsCacheDomainRequest& request) const;
UpdateDnsCacheDomainRemarkOutcome updateDnsCacheDomainRemark(const Model::UpdateDnsCacheDomainRemarkRequest &request)const;
void updateDnsCacheDomainRemarkAsync(const Model::UpdateDnsCacheDomainRemarkRequest& request, const UpdateDnsCacheDomainRemarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDnsCacheDomainRemarkOutcomeCallable updateDnsCacheDomainRemarkCallable(const Model::UpdateDnsCacheDomainRemarkRequest& request) const;
UpdateDnsGtmAccessStrategyOutcome updateDnsGtmAccessStrategy(const Model::UpdateDnsGtmAccessStrategyRequest &request)const;
void updateDnsGtmAccessStrategyAsync(const Model::UpdateDnsGtmAccessStrategyRequest& request, const UpdateDnsGtmAccessStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDnsGtmAccessStrategyOutcomeCallable updateDnsGtmAccessStrategyCallable(const Model::UpdateDnsGtmAccessStrategyRequest& request) const;

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_ALIDNS_MODEL_ADDDNSCACHEDOMAINREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT AddDnsCacheDomainRequest : public RpcServiceRequest
{
public:
struct SourceDnsServer
{
std::string port;
std::string host;
};
public:
AddDnsCacheDomainRequest();
~AddDnsCacheDomainRequest();
std::string getRemark()const;
void setRemark(const std::string& remark);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSourceProtocol()const;
void setSourceProtocol(const std::string& sourceProtocol);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
int getCacheTtlMax()const;
void setCacheTtlMax(int cacheTtlMax);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSourceEdns()const;
void setSourceEdns(const std::string& sourceEdns);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
int getCacheTtlMin()const;
void setCacheTtlMin(int cacheTtlMin);
std::vector<SourceDnsServer> getSourceDnsServer()const;
void setSourceDnsServer(const std::vector<SourceDnsServer>& sourceDnsServer);
private:
std::string remark_;
std::string accessKeyId_;
std::string sourceProtocol_;
std::string lang_;
std::string domainName_;
int cacheTtlMax_;
std::string instanceId_;
std::string sourceEdns_;
std::string userClientIp_;
int cacheTtlMin_;
std::vector<SourceDnsServer> sourceDnsServer_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINREQUEST_H_

View File

@@ -14,29 +14,29 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_CREATEHOSTACCOUNTRESULT_H_
#define ALIBABACLOUD_RDS_MODEL_CREATEHOSTACCOUNTRESULT_H_
#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/rds/RdsExport.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Rds
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_RDS_EXPORT CreateHostAccountResult : public ServiceResult
class ALIBABACLOUD_ALIDNS_EXPORT AddDnsCacheDomainResult : public ServiceResult
{
public:
CreateHostAccountResult();
explicit CreateHostAccountResult(const std::string &payload);
~CreateHostAccountResult();
AddDnsCacheDomainResult();
explicit AddDnsCacheDomainResult(const std::string &payload);
~AddDnsCacheDomainResult();
protected:
void parse(const std::string &payload);
@@ -46,4 +46,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_RDS_MODEL_CREATEHOSTACCOUNTRESULT_H_
#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINRESULT_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_ALIDNS_MODEL_DELETEDNSCACHEDOMAINREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSCACHEDOMAINREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DeleteDnsCacheDomainRequest : public RpcServiceRequest
{
public:
DeleteDnsCacheDomainRequest();
~DeleteDnsCacheDomainRequest();
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string domainName_;
std::string accessKeyId_;
std::string userClientIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSCACHEDOMAINREQUEST_H_

View File

@@ -14,29 +14,29 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTUSERRESULT_H_
#define ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTUSERRESULT_H_
#ifndef ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSCACHEDOMAINRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSCACHEDOMAINRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/rds/RdsExport.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Rds
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_RDS_EXPORT CreateDedicatedHostUserResult : public ServiceResult
class ALIBABACLOUD_ALIDNS_EXPORT DeleteDnsCacheDomainResult : public ServiceResult
{
public:
CreateDedicatedHostUserResult();
explicit CreateDedicatedHostUserResult(const std::string &payload);
~CreateDedicatedHostUserResult();
DeleteDnsCacheDomainResult();
explicit DeleteDnsCacheDomainResult(const std::string &payload);
~DeleteDnsCacheDomainResult();
protected:
void parse(const std::string &payload);
@@ -46,4 +46,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTUSERRESULT_H_
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSCACHEDOMAINRESULT_H_

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
DescribeDNSSLBSubDomainsRequest();
~DescribeDNSSLBSubDomainsRequest();
std::string getRr()const;
void setRr(const std::string& rr);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getPageNumber()const;
@@ -49,6 +51,7 @@ namespace AlibabaCloud
void setLang(const std::string& lang);
private:
std::string rr_;
std::string domainName_;
long pageNumber_;
std::string accessKeyId_;

View File

@@ -34,8 +34,14 @@ namespace AlibabaCloud
public:
struct SlbSubDomain
{
struct LineAlgorithm
{
std::string line;
bool open;
};
std::string subDomain;
std::string type;
std::vector<SlbSubDomain::LineAlgorithm> lineAlgorithms;
long recordCount;
bool open;
};

View File

@@ -0,0 +1,60 @@
/*
* 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_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsCacheDomainsRequest : public RpcServiceRequest
{
public:
DescribeDnsCacheDomainsRequest();
~DescribeDnsCacheDomainsRequest();
long getPageNumber()const;
void setPageNumber(long pageNumber);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
long getPageSize()const;
void setPageSize(long pageSize);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getKeyword()const;
void setKeyword(const std::string& keyword);
private:
long pageNumber_;
std::string userClientIp_;
long pageSize_;
std::string lang_;
std::string keyword_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSREQUEST_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_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsCacheDomainsResult : public ServiceResult
{
public:
struct Domain
{
struct SourceDnsServer
{
std::string port;
std::string host;
};
long expireTimestamp;
std::string domainName;
std::string instanceId;
std::string createTime;
int cacheTtlMin;
std::string remark;
std::string versionCode;
std::string domainId;
std::string sourceEdns;
std::string updateTime;
std::string sourceProtocol;
long updateTimestamp;
int cacheTtlMax;
std::vector<Domain::SourceDnsServer> sourceDnsServers;
std::string expireTime;
long createTimestamp;
};
DescribeDnsCacheDomainsResult();
explicit DescribeDnsCacheDomainsResult(const std::string &payload);
~DescribeDnsCacheDomainsResult();
std::vector<Domain> getDomains()const;
long getTotalCount()const;
long getPageSize()const;
long getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Domain> domains_;
long totalCount_;
long pageSize_;
long pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSRESULT_H_

View File

@@ -65,8 +65,11 @@ namespace AlibabaCloud
~DescribeDnsGtmAccessStrategyAvailableConfigResult();
std::vector<Ipv4AddrPool> getIpv4AddrPools()const;
std::vector<DomainAddrPool> getDomainAddrPools()const;
std::vector<std::string> getSelectedDomainLines()const;
std::vector<std::string> getSelectedIpv4Lines()const;
std::vector<Ipv6AddrPool> getIpv6AddrPools()const;
std::vector<Line> getLines()const;
std::vector<std::string> getSelectedIpv6Lines()const;
bool getSuggestSetDefaultLine()const;
protected:
@@ -74,8 +77,11 @@ namespace AlibabaCloud
private:
std::vector<Ipv4AddrPool> ipv4AddrPools_;
std::vector<DomainAddrPool> domainAddrPools_;
std::vector<std::string> selectedDomainLines_;
std::vector<std::string> selectedIpv4Lines_;
std::vector<Ipv6AddrPool> ipv6AddrPools_;
std::vector<Line> lines_;
std::vector<std::string> selectedIpv6Lines_;
bool suggestSetDefaultLine_;
};

View File

@@ -34,43 +34,47 @@ namespace AlibabaCloud
public:
struct Ipv4IspCityNode
{
std::string cityCode;
std::string groupName;
std::string cityCode;
std::string ispName;
std::string groupType;
std::string cityName;
std::string ispCode;
bool defaultSelected;
};
struct Ipv6IspCityNode
{
std::string cityCode;
std::string groupName;
std::string ispName;
std::string groupType;
std::string cityName;
std::string ispCode;
bool defaultSelected;
std::vector<std::string> ips;
};
struct DomainIpv4IspCityNode
{
std::string cityCode;
std::string groupName;
std::string cityCode;
std::string ispName;
std::string groupType;
std::vector<std::string> ips1;
std::string cityName;
std::string ispCode;
bool defaultSelected;
std::string ispCode;
};
struct DomainIpv6IspCityNode
{
std::string cityCode;
std::string groupName;
std::string cityCode;
std::string ispName;
std::string groupType;
std::vector<std::string> ips2;
std::string cityName;
std::string ispCode;
bool defaultSelected;
std::string ispCode;
};
struct Ipv6IspCityNode
{
std::string groupName;
std::string cityCode;
std::string ispName;
std::string groupType;
std::vector<std::string> ips3;
std::string cityName;
bool defaultSelected;
std::string ispCode;
};

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
SetDNSSLBStatusRequest();
~SetDNSSLBStatusRequest();
std::string getLine()const;
void setLine(const std::string& line);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getType()const;
@@ -51,6 +53,7 @@ namespace AlibabaCloud
void setOpen(bool open);
private:
std::string line_;
std::string domainName_;
std::string type_;
std::string accessKeyId_;

View File

@@ -0,0 +1,60 @@
/*
* 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_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsCacheDomainRemarkRequest : public RpcServiceRequest
{
public:
UpdateDnsCacheDomainRemarkRequest();
~UpdateDnsCacheDomainRemarkRequest();
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getRemark()const;
void setRemark(const std::string& remark);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string domainName_;
std::string remark_;
std::string accessKeyId_;
std::string userClientIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKREQUEST_H_

View File

@@ -14,29 +14,29 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDEDICATEDHOSTACCOUNTRESULT_H_
#define ALIBABACLOUD_RDS_MODEL_DELETEDEDICATEDHOSTACCOUNTRESULT_H_
#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/rds/RdsExport.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Rds
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_RDS_EXPORT DeleteDedicatedHostAccountResult : public ServiceResult
class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsCacheDomainRemarkResult : public ServiceResult
{
public:
DeleteDedicatedHostAccountResult();
explicit DeleteDedicatedHostAccountResult(const std::string &payload);
~DeleteDedicatedHostAccountResult();
UpdateDnsCacheDomainRemarkResult();
explicit UpdateDnsCacheDomainRemarkResult(const std::string &payload);
~UpdateDnsCacheDomainRemarkResult();
protected:
void parse(const std::string &payload);
@@ -46,4 +46,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_RDS_MODEL_DELETEDEDICATEDHOSTACCOUNTRESULT_H_
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKRESULT_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_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsCacheDomainRequest : public RpcServiceRequest
{
public:
struct SourceDnsServer
{
std::string port;
std::string host;
};
public:
UpdateDnsCacheDomainRequest();
~UpdateDnsCacheDomainRequest();
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSourceProtocol()const;
void setSourceProtocol(const std::string& sourceProtocol);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
int getCacheTtlMax()const;
void setCacheTtlMax(int cacheTtlMax);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSourceEdns()const;
void setSourceEdns(const std::string& sourceEdns);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
int getCacheTtlMin()const;
void setCacheTtlMin(int cacheTtlMin);
std::vector<SourceDnsServer> getSourceDnsServer()const;
void setSourceDnsServer(const std::vector<SourceDnsServer>& sourceDnsServer);
private:
std::string accessKeyId_;
std::string sourceProtocol_;
std::string lang_;
std::string domainName_;
int cacheTtlMax_;
std::string instanceId_;
std::string sourceEdns_;
std::string userClientIp_;
int cacheTtlMin_;
std::vector<SourceDnsServer> sourceDnsServer_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREQUEST_H_

View File

@@ -14,29 +14,29 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDEDICATEDHOSTUSERRESULT_H_
#define ALIBABACLOUD_RDS_MODEL_MODIFYDEDICATEDHOSTUSERRESULT_H_
#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/rds/RdsExport.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Rds
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_RDS_EXPORT ModifyDedicatedHostUserResult : public ServiceResult
class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsCacheDomainResult : public ServiceResult
{
public:
ModifyDedicatedHostUserResult();
explicit ModifyDedicatedHostUserResult(const std::string &payload);
~ModifyDedicatedHostUserResult();
UpdateDnsCacheDomainResult();
explicit UpdateDnsCacheDomainResult(const std::string &payload);
~UpdateDnsCacheDomainResult();
protected:
void parse(const std::string &payload);
@@ -46,4 +46,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDEDICATEDHOSTUSERRESULT_H_
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINRESULT_H_

View File

@@ -87,6 +87,42 @@ AlidnsClient::AddCustomLineOutcomeCallable AlidnsClient::addCustomLineCallable(c
return task->get_future();
}
AlidnsClient::AddDnsCacheDomainOutcome AlidnsClient::addDnsCacheDomain(const AddDnsCacheDomainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddDnsCacheDomainOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddDnsCacheDomainOutcome(AddDnsCacheDomainResult(outcome.result()));
else
return AddDnsCacheDomainOutcome(outcome.error());
}
void AlidnsClient::addDnsCacheDomainAsync(const AddDnsCacheDomainRequest& request, const AddDnsCacheDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addDnsCacheDomain(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::AddDnsCacheDomainOutcomeCallable AlidnsClient::addDnsCacheDomainCallable(const AddDnsCacheDomainRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddDnsCacheDomainOutcome()>>(
[this, request]()
{
return this->addDnsCacheDomain(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::AddDnsGtmAccessStrategyOutcome AlidnsClient::addDnsGtmAccessStrategy(const AddDnsGtmAccessStrategyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -663,6 +699,42 @@ AlidnsClient::DeleteCustomLinesOutcomeCallable AlidnsClient::deleteCustomLinesCa
return task->get_future();
}
AlidnsClient::DeleteDnsCacheDomainOutcome AlidnsClient::deleteDnsCacheDomain(const DeleteDnsCacheDomainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteDnsCacheDomainOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteDnsCacheDomainOutcome(DeleteDnsCacheDomainResult(outcome.result()));
else
return DeleteDnsCacheDomainOutcome(outcome.error());
}
void AlidnsClient::deleteDnsCacheDomainAsync(const DeleteDnsCacheDomainRequest& request, const DeleteDnsCacheDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteDnsCacheDomain(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::DeleteDnsCacheDomainOutcomeCallable AlidnsClient::deleteDnsCacheDomainCallable(const DeleteDnsCacheDomainRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteDnsCacheDomainOutcome()>>(
[this, request]()
{
return this->deleteDnsCacheDomain(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::DeleteDnsGtmAccessStrategyOutcome AlidnsClient::deleteDnsGtmAccessStrategy(const DeleteDnsGtmAccessStrategyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1167,6 +1239,42 @@ AlidnsClient::DescribeDNSSLBSubDomainsOutcomeCallable AlidnsClient::describeDNSS
return task->get_future();
}
AlidnsClient::DescribeDnsCacheDomainsOutcome AlidnsClient::describeDnsCacheDomains(const DescribeDnsCacheDomainsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDnsCacheDomainsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDnsCacheDomainsOutcome(DescribeDnsCacheDomainsResult(outcome.result()));
else
return DescribeDnsCacheDomainsOutcome(outcome.error());
}
void AlidnsClient::describeDnsCacheDomainsAsync(const DescribeDnsCacheDomainsRequest& request, const DescribeDnsCacheDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDnsCacheDomains(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::DescribeDnsCacheDomainsOutcomeCallable AlidnsClient::describeDnsCacheDomainsCallable(const DescribeDnsCacheDomainsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDnsCacheDomainsOutcome()>>(
[this, request]()
{
return this->describeDnsCacheDomains(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::DescribeDnsGtmAccessStrategiesOutcome AlidnsClient::describeDnsGtmAccessStrategies(const DescribeDnsGtmAccessStrategiesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4119,6 +4227,78 @@ AlidnsClient::UpdateDNSSLBWeightOutcomeCallable AlidnsClient::updateDNSSLBWeight
return task->get_future();
}
AlidnsClient::UpdateDnsCacheDomainOutcome AlidnsClient::updateDnsCacheDomain(const UpdateDnsCacheDomainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateDnsCacheDomainOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateDnsCacheDomainOutcome(UpdateDnsCacheDomainResult(outcome.result()));
else
return UpdateDnsCacheDomainOutcome(outcome.error());
}
void AlidnsClient::updateDnsCacheDomainAsync(const UpdateDnsCacheDomainRequest& request, const UpdateDnsCacheDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateDnsCacheDomain(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::UpdateDnsCacheDomainOutcomeCallable AlidnsClient::updateDnsCacheDomainCallable(const UpdateDnsCacheDomainRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateDnsCacheDomainOutcome()>>(
[this, request]()
{
return this->updateDnsCacheDomain(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::UpdateDnsCacheDomainRemarkOutcome AlidnsClient::updateDnsCacheDomainRemark(const UpdateDnsCacheDomainRemarkRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateDnsCacheDomainRemarkOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateDnsCacheDomainRemarkOutcome(UpdateDnsCacheDomainRemarkResult(outcome.result()));
else
return UpdateDnsCacheDomainRemarkOutcome(outcome.error());
}
void AlidnsClient::updateDnsCacheDomainRemarkAsync(const UpdateDnsCacheDomainRemarkRequest& request, const UpdateDnsCacheDomainRemarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateDnsCacheDomainRemark(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::UpdateDnsCacheDomainRemarkOutcomeCallable AlidnsClient::updateDnsCacheDomainRemarkCallable(const UpdateDnsCacheDomainRemarkRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateDnsCacheDomainRemarkOutcome()>>(
[this, request]()
{
return this->updateDnsCacheDomainRemark(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::UpdateDnsGtmAccessStrategyOutcome AlidnsClient::updateDnsGtmAccessStrategy(const UpdateDnsGtmAccessStrategyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,155 @@
/*
* 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/alidns/model/AddDnsCacheDomainRequest.h>
using AlibabaCloud::Alidns::Model::AddDnsCacheDomainRequest;
AddDnsCacheDomainRequest::AddDnsCacheDomainRequest() :
RpcServiceRequest("alidns", "2015-01-09", "AddDnsCacheDomain")
{
setMethod(HttpRequest::Method::Post);
}
AddDnsCacheDomainRequest::~AddDnsCacheDomainRequest()
{}
std::string AddDnsCacheDomainRequest::getRemark()const
{
return remark_;
}
void AddDnsCacheDomainRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setParameter("Remark", remark);
}
std::string AddDnsCacheDomainRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddDnsCacheDomainRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AddDnsCacheDomainRequest::getSourceProtocol()const
{
return sourceProtocol_;
}
void AddDnsCacheDomainRequest::setSourceProtocol(const std::string& sourceProtocol)
{
sourceProtocol_ = sourceProtocol;
setParameter("SourceProtocol", sourceProtocol);
}
std::string AddDnsCacheDomainRequest::getLang()const
{
return lang_;
}
void AddDnsCacheDomainRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string AddDnsCacheDomainRequest::getDomainName()const
{
return domainName_;
}
void AddDnsCacheDomainRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
int AddDnsCacheDomainRequest::getCacheTtlMax()const
{
return cacheTtlMax_;
}
void AddDnsCacheDomainRequest::setCacheTtlMax(int cacheTtlMax)
{
cacheTtlMax_ = cacheTtlMax;
setParameter("CacheTtlMax", std::to_string(cacheTtlMax));
}
std::string AddDnsCacheDomainRequest::getInstanceId()const
{
return instanceId_;
}
void AddDnsCacheDomainRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AddDnsCacheDomainRequest::getSourceEdns()const
{
return sourceEdns_;
}
void AddDnsCacheDomainRequest::setSourceEdns(const std::string& sourceEdns)
{
sourceEdns_ = sourceEdns;
setParameter("SourceEdns", sourceEdns);
}
std::string AddDnsCacheDomainRequest::getUserClientIp()const
{
return userClientIp_;
}
void AddDnsCacheDomainRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
int AddDnsCacheDomainRequest::getCacheTtlMin()const
{
return cacheTtlMin_;
}
void AddDnsCacheDomainRequest::setCacheTtlMin(int cacheTtlMin)
{
cacheTtlMin_ = cacheTtlMin;
setParameter("CacheTtlMin", std::to_string(cacheTtlMin));
}
std::vector<AddDnsCacheDomainRequest::SourceDnsServer> AddDnsCacheDomainRequest::getSourceDnsServer()const
{
return sourceDnsServer_;
}
void AddDnsCacheDomainRequest::setSourceDnsServer(const std::vector<SourceDnsServer>& sourceDnsServer)
{
sourceDnsServer_ = sourceDnsServer;
for(int dep1 = 0; dep1!= sourceDnsServer.size(); dep1++) {
auto sourceDnsServerObj = sourceDnsServer.at(dep1);
std::string sourceDnsServerObjStr = "SourceDnsServer." + std::to_string(dep1 + 1);
setParameter(sourceDnsServerObjStr + ".Port", sourceDnsServerObj.port);
setParameter(sourceDnsServerObjStr + ".Host", sourceDnsServerObj.host);
}
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/rds/model/ModifyLicenseInfoResult.h>
#include <alibabacloud/alidns/model/AddDnsCacheDomainResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
ModifyLicenseInfoResult::ModifyLicenseInfoResult() :
AddDnsCacheDomainResult::AddDnsCacheDomainResult() :
ServiceResult()
{}
ModifyLicenseInfoResult::ModifyLicenseInfoResult(const std::string &payload) :
AddDnsCacheDomainResult::AddDnsCacheDomainResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyLicenseInfoResult::~ModifyLicenseInfoResult()
AddDnsCacheDomainResult::~AddDnsCacheDomainResult()
{}
void ModifyLicenseInfoResult::parse(const std::string &payload)
void AddDnsCacheDomainResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;

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/alidns/model/DeleteDnsCacheDomainRequest.h>
using AlibabaCloud::Alidns::Model::DeleteDnsCacheDomainRequest;
DeleteDnsCacheDomainRequest::DeleteDnsCacheDomainRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DeleteDnsCacheDomain")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDnsCacheDomainRequest::~DeleteDnsCacheDomainRequest()
{}
std::string DeleteDnsCacheDomainRequest::getDomainName()const
{
return domainName_;
}
void DeleteDnsCacheDomainRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DeleteDnsCacheDomainRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteDnsCacheDomainRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DeleteDnsCacheDomainRequest::getUserClientIp()const
{
return userClientIp_;
}
void DeleteDnsCacheDomainRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DeleteDnsCacheDomainRequest::getLang()const
{
return lang_;
}
void DeleteDnsCacheDomainRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,44 @@
/*
* 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/alidns/model/DeleteDnsCacheDomainResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DeleteDnsCacheDomainResult::DeleteDnsCacheDomainResult() :
ServiceResult()
{}
DeleteDnsCacheDomainResult::DeleteDnsCacheDomainResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDnsCacheDomainResult::~DeleteDnsCacheDomainResult()
{}
void DeleteDnsCacheDomainResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -27,6 +27,17 @@ DescribeDNSSLBSubDomainsRequest::DescribeDNSSLBSubDomainsRequest() :
DescribeDNSSLBSubDomainsRequest::~DescribeDNSSLBSubDomainsRequest()
{}
std::string DescribeDNSSLBSubDomainsRequest::getRr()const
{
return rr_;
}
void DescribeDNSSLBSubDomainsRequest::setRr(const std::string& rr)
{
rr_ = rr;
setParameter("Rr", rr);
}
std::string DescribeDNSSLBSubDomainsRequest::getDomainName()const
{
return domainName_;

View File

@@ -51,6 +51,16 @@ void DescribeDNSSLBSubDomainsResult::parse(const std::string &payload)
slbSubDomainsObject.open = valueSlbSubDomainsSlbSubDomain["Open"].asString() == "true";
if(!valueSlbSubDomainsSlbSubDomain["Type"].isNull())
slbSubDomainsObject.type = valueSlbSubDomainsSlbSubDomain["Type"].asString();
auto allLineAlgorithmsNode = valueSlbSubDomainsSlbSubDomain["LineAlgorithms"]["LineAlgorithm"];
for (auto valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm : allLineAlgorithmsNode)
{
SlbSubDomain::LineAlgorithm lineAlgorithmsObject;
if(!valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm["Line"].isNull())
lineAlgorithmsObject.line = valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm["Line"].asString();
if(!valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm["Open"].isNull())
lineAlgorithmsObject.open = valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm["Open"].asString() == "true";
slbSubDomainsObject.lineAlgorithms.push_back(lineAlgorithmsObject);
}
slbSubDomains_.push_back(slbSubDomainsObject);
}
if(!value["TotalCount"].isNull())

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.
*/
#include <alibabacloud/alidns/model/DescribeDnsCacheDomainsRequest.h>
using AlibabaCloud::Alidns::Model::DescribeDnsCacheDomainsRequest;
DescribeDnsCacheDomainsRequest::DescribeDnsCacheDomainsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsCacheDomains")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDnsCacheDomainsRequest::~DescribeDnsCacheDomainsRequest()
{}
long DescribeDnsCacheDomainsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDnsCacheDomainsRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDnsCacheDomainsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeDnsCacheDomainsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
long DescribeDnsCacheDomainsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDnsCacheDomainsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeDnsCacheDomainsRequest::getLang()const
{
return lang_;
}
void DescribeDnsCacheDomainsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeDnsCacheDomainsRequest::getKeyword()const
{
return keyword_;
}
void DescribeDnsCacheDomainsRequest::setKeyword(const std::string& keyword)
{
keyword_ = keyword;
setParameter("Keyword", keyword);
}

View File

@@ -0,0 +1,116 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alidns/model/DescribeDnsCacheDomainsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeDnsCacheDomainsResult::DescribeDnsCacheDomainsResult() :
ServiceResult()
{}
DescribeDnsCacheDomainsResult::DescribeDnsCacheDomainsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDnsCacheDomainsResult::~DescribeDnsCacheDomainsResult()
{}
void DescribeDnsCacheDomainsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDomainsNode = value["Domains"]["Domain"];
for (auto valueDomainsDomain : allDomainsNode)
{
Domain domainsObject;
if(!valueDomainsDomain["DomainId"].isNull())
domainsObject.domainId = valueDomainsDomain["DomainId"].asString();
if(!valueDomainsDomain["DomainName"].isNull())
domainsObject.domainName = valueDomainsDomain["DomainName"].asString();
if(!valueDomainsDomain["InstanceId"].isNull())
domainsObject.instanceId = valueDomainsDomain["InstanceId"].asString();
if(!valueDomainsDomain["VersionCode"].isNull())
domainsObject.versionCode = valueDomainsDomain["VersionCode"].asString();
if(!valueDomainsDomain["Remark"].isNull())
domainsObject.remark = valueDomainsDomain["Remark"].asString();
if(!valueDomainsDomain["UpdateTime"].isNull())
domainsObject.updateTime = valueDomainsDomain["UpdateTime"].asString();
if(!valueDomainsDomain["UpdateTimestamp"].isNull())
domainsObject.updateTimestamp = std::stol(valueDomainsDomain["UpdateTimestamp"].asString());
if(!valueDomainsDomain["CreateTime"].isNull())
domainsObject.createTime = valueDomainsDomain["CreateTime"].asString();
if(!valueDomainsDomain["CreateTimestamp"].isNull())
domainsObject.createTimestamp = std::stol(valueDomainsDomain["CreateTimestamp"].asString());
if(!valueDomainsDomain["CacheTtlMin"].isNull())
domainsObject.cacheTtlMin = std::stoi(valueDomainsDomain["CacheTtlMin"].asString());
if(!valueDomainsDomain["CacheTtlMax"].isNull())
domainsObject.cacheTtlMax = std::stoi(valueDomainsDomain["CacheTtlMax"].asString());
if(!valueDomainsDomain["SourceProtocol"].isNull())
domainsObject.sourceProtocol = valueDomainsDomain["SourceProtocol"].asString();
if(!valueDomainsDomain["SourceEdns"].isNull())
domainsObject.sourceEdns = valueDomainsDomain["SourceEdns"].asString();
if(!valueDomainsDomain["ExpireTime"].isNull())
domainsObject.expireTime = valueDomainsDomain["ExpireTime"].asString();
if(!valueDomainsDomain["ExpireTimestamp"].isNull())
domainsObject.expireTimestamp = std::stol(valueDomainsDomain["ExpireTimestamp"].asString());
auto allSourceDnsServersNode = valueDomainsDomain["SourceDnsServers"]["SourceDnsServer"];
for (auto valueDomainsDomainSourceDnsServersSourceDnsServer : allSourceDnsServersNode)
{
Domain::SourceDnsServer sourceDnsServersObject;
if(!valueDomainsDomainSourceDnsServersSourceDnsServer["Host"].isNull())
sourceDnsServersObject.host = valueDomainsDomainSourceDnsServersSourceDnsServer["Host"].asString();
if(!valueDomainsDomainSourceDnsServersSourceDnsServer["Port"].isNull())
sourceDnsServersObject.port = valueDomainsDomainSourceDnsServersSourceDnsServer["Port"].asString();
domainsObject.sourceDnsServers.push_back(sourceDnsServersObject);
}
domains_.push_back(domainsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
std::vector<DescribeDnsCacheDomainsResult::Domain> DescribeDnsCacheDomainsResult::getDomains()const
{
return domains_;
}
long DescribeDnsCacheDomainsResult::getTotalCount()const
{
return totalCount_;
}
long DescribeDnsCacheDomainsResult::getPageSize()const
{
return pageSize_;
}
long DescribeDnsCacheDomainsResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -91,6 +91,15 @@ void DescribeDnsGtmAccessStrategyAvailableConfigResult::parse(const std::string
domainAddrPoolsObject.addrCount = std::stoi(valueDomainAddrPoolsDomainAddrPool["AddrCount"].asString());
domainAddrPools_.push_back(domainAddrPoolsObject);
}
auto allSelectedIpv4Lines = value["SelectedIpv4Lines"]["SelectedIpv4Line"];
for (const auto &item : allSelectedIpv4Lines)
selectedIpv4Lines_.push_back(item.asString());
auto allSelectedIpv6Lines = value["SelectedIpv6Lines"]["SelectedIpv6Line"];
for (const auto &item : allSelectedIpv6Lines)
selectedIpv6Lines_.push_back(item.asString());
auto allSelectedDomainLines = value["SelectedDomainLines"]["SelectedDomainLine"];
for (const auto &item : allSelectedDomainLines)
selectedDomainLines_.push_back(item.asString());
if(!value["SuggestSetDefaultLine"].isNull())
suggestSetDefaultLine_ = value["SuggestSetDefaultLine"].asString() == "true";
@@ -106,6 +115,16 @@ std::vector<DescribeDnsGtmAccessStrategyAvailableConfigResult::DomainAddrPool> D
return domainAddrPools_;
}
std::vector<std::string> DescribeDnsGtmAccessStrategyAvailableConfigResult::getSelectedDomainLines()const
{
return selectedDomainLines_;
}
std::vector<std::string> DescribeDnsGtmAccessStrategyAvailableConfigResult::getSelectedIpv4Lines()const
{
return selectedIpv4Lines_;
}
std::vector<DescribeDnsGtmAccessStrategyAvailableConfigResult::Ipv6AddrPool> DescribeDnsGtmAccessStrategyAvailableConfigResult::getIpv6AddrPools()const
{
return ipv6AddrPools_;
@@ -116,6 +135,11 @@ std::vector<DescribeDnsGtmAccessStrategyAvailableConfigResult::Line> DescribeDns
return lines_;
}
std::vector<std::string> DescribeDnsGtmAccessStrategyAvailableConfigResult::getSelectedIpv6Lines()const
{
return selectedIpv6Lines_;
}
bool DescribeDnsGtmAccessStrategyAvailableConfigResult::getSuggestSetDefaultLine()const
{
return suggestSetDefaultLine_;

View File

@@ -43,82 +43,94 @@ void DescribeDnsGtmMonitorAvailableConfigResult::parse(const std::string &payloa
for (auto valueIpv4IspCityNodesIpv4IspCityNode : allIpv4IspCityNodesNode)
{
Ipv4IspCityNode ipv4IspCityNodesObject;
if(!valueIpv4IspCityNodesIpv4IspCityNode["IspName"].isNull())
ipv4IspCityNodesObject.ispName = valueIpv4IspCityNodesIpv4IspCityNode["IspName"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["IspCode"].isNull())
ipv4IspCityNodesObject.ispCode = valueIpv4IspCityNodesIpv4IspCityNode["IspCode"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["CityName"].isNull())
ipv4IspCityNodesObject.cityName = valueIpv4IspCityNodesIpv4IspCityNode["CityName"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["CityCode"].isNull())
ipv4IspCityNodesObject.cityCode = valueIpv4IspCityNodesIpv4IspCityNode["CityCode"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["DefaultSelected"].isNull())
ipv4IspCityNodesObject.defaultSelected = valueIpv4IspCityNodesIpv4IspCityNode["DefaultSelected"].asString() == "true";
if(!valueIpv4IspCityNodesIpv4IspCityNode["GroupType"].isNull())
ipv4IspCityNodesObject.groupType = valueIpv4IspCityNodesIpv4IspCityNode["GroupType"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["GroupName"].isNull())
ipv4IspCityNodesObject.groupName = valueIpv4IspCityNodesIpv4IspCityNode["GroupName"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["CityCode"].isNull())
ipv4IspCityNodesObject.cityCode = valueIpv4IspCityNodesIpv4IspCityNode["CityCode"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["IspName"].isNull())
ipv4IspCityNodesObject.ispName = valueIpv4IspCityNodesIpv4IspCityNode["IspName"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["GroupType"].isNull())
ipv4IspCityNodesObject.groupType = valueIpv4IspCityNodesIpv4IspCityNode["GroupType"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["CityName"].isNull())
ipv4IspCityNodesObject.cityName = valueIpv4IspCityNodesIpv4IspCityNode["CityName"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["DefaultSelected"].isNull())
ipv4IspCityNodesObject.defaultSelected = valueIpv4IspCityNodesIpv4IspCityNode["DefaultSelected"].asString() == "true";
if(!valueIpv4IspCityNodesIpv4IspCityNode["IspCode"].isNull())
ipv4IspCityNodesObject.ispCode = valueIpv4IspCityNodesIpv4IspCityNode["IspCode"].asString();
auto allIps = value["Ips"]["Ip"];
for (auto value : allIps)
ipv4IspCityNodesObject.ips.push_back(value.asString());
ipv4IspCityNodes_.push_back(ipv4IspCityNodesObject);
}
auto allIpv6IspCityNodesNode = value["Ipv6IspCityNodes"]["Ipv6IspCityNode"];
for (auto valueIpv6IspCityNodesIpv6IspCityNode : allIpv6IspCityNodesNode)
{
Ipv6IspCityNode ipv6IspCityNodesObject;
if(!valueIpv6IspCityNodesIpv6IspCityNode["IspName"].isNull())
ipv6IspCityNodesObject.ispName = valueIpv6IspCityNodesIpv6IspCityNode["IspName"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["IspCode"].isNull())
ipv6IspCityNodesObject.ispCode = valueIpv6IspCityNodesIpv6IspCityNode["IspCode"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["CityName"].isNull())
ipv6IspCityNodesObject.cityName = valueIpv6IspCityNodesIpv6IspCityNode["CityName"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["CityCode"].isNull())
ipv6IspCityNodesObject.cityCode = valueIpv6IspCityNodesIpv6IspCityNode["CityCode"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["DefaultSelected"].isNull())
ipv6IspCityNodesObject.defaultSelected = valueIpv6IspCityNodesIpv6IspCityNode["DefaultSelected"].asString() == "true";
if(!valueIpv6IspCityNodesIpv6IspCityNode["GroupType"].isNull())
ipv6IspCityNodesObject.groupType = valueIpv6IspCityNodesIpv6IspCityNode["GroupType"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["GroupName"].isNull())
ipv6IspCityNodesObject.groupName = valueIpv6IspCityNodesIpv6IspCityNode["GroupName"].asString();
ipv6IspCityNodes_.push_back(ipv6IspCityNodesObject);
}
auto allDomainIpv4IspCityNodesNode = value["DomainIpv4IspCityNodes"]["DomainIpv4IspCityNode"];
for (auto valueDomainIpv4IspCityNodesDomainIpv4IspCityNode : allDomainIpv4IspCityNodesNode)
{
DomainIpv4IspCityNode domainIpv4IspCityNodesObject;
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspName"].isNull())
domainIpv4IspCityNodesObject.ispName = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspName"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspCode"].isNull())
domainIpv4IspCityNodesObject.ispCode = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspCode"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityName"].isNull())
domainIpv4IspCityNodesObject.cityName = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityName"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityCode"].isNull())
domainIpv4IspCityNodesObject.cityCode = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityCode"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["DefaultSelected"].isNull())
domainIpv4IspCityNodesObject.defaultSelected = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["DefaultSelected"].asString() == "true";
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupType"].isNull())
domainIpv4IspCityNodesObject.groupType = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupType"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupName"].isNull())
domainIpv4IspCityNodesObject.groupName = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupName"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityCode"].isNull())
domainIpv4IspCityNodesObject.cityCode = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityCode"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspName"].isNull())
domainIpv4IspCityNodesObject.ispName = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspName"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupType"].isNull())
domainIpv4IspCityNodesObject.groupType = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupType"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityName"].isNull())
domainIpv4IspCityNodesObject.cityName = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityName"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["DefaultSelected"].isNull())
domainIpv4IspCityNodesObject.defaultSelected = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["DefaultSelected"].asString() == "true";
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspCode"].isNull())
domainIpv4IspCityNodesObject.ispCode = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspCode"].asString();
auto allIps1 = value["Ips"]["Ip"];
for (auto value : allIps1)
domainIpv4IspCityNodesObject.ips1.push_back(value.asString());
domainIpv4IspCityNodes_.push_back(domainIpv4IspCityNodesObject);
}
auto allDomainIpv6IspCityNodesNode = value["DomainIpv6IspCityNodes"]["DomainIpv6IspCityNode"];
for (auto valueDomainIpv6IspCityNodesDomainIpv6IspCityNode : allDomainIpv6IspCityNodesNode)
{
DomainIpv6IspCityNode domainIpv6IspCityNodesObject;
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspName"].isNull())
domainIpv6IspCityNodesObject.ispName = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspName"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspCode"].isNull())
domainIpv6IspCityNodesObject.ispCode = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspCode"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityName"].isNull())
domainIpv6IspCityNodesObject.cityName = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityName"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityCode"].isNull())
domainIpv6IspCityNodesObject.cityCode = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityCode"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["DefaultSelected"].isNull())
domainIpv6IspCityNodesObject.defaultSelected = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["DefaultSelected"].asString() == "true";
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupType"].isNull())
domainIpv6IspCityNodesObject.groupType = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupType"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupName"].isNull())
domainIpv6IspCityNodesObject.groupName = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupName"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityCode"].isNull())
domainIpv6IspCityNodesObject.cityCode = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityCode"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspName"].isNull())
domainIpv6IspCityNodesObject.ispName = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspName"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupType"].isNull())
domainIpv6IspCityNodesObject.groupType = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupType"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityName"].isNull())
domainIpv6IspCityNodesObject.cityName = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityName"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["DefaultSelected"].isNull())
domainIpv6IspCityNodesObject.defaultSelected = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["DefaultSelected"].asString() == "true";
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspCode"].isNull())
domainIpv6IspCityNodesObject.ispCode = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspCode"].asString();
auto allIps2 = value["Ips"]["Ip"];
for (auto value : allIps2)
domainIpv6IspCityNodesObject.ips2.push_back(value.asString());
domainIpv6IspCityNodes_.push_back(domainIpv6IspCityNodesObject);
}
auto allIpv6IspCityNodesNode = value["Ipv6IspCityNodes"]["Ipv6IspCityNode"];
for (auto valueIpv6IspCityNodesIpv6IspCityNode : allIpv6IspCityNodesNode)
{
Ipv6IspCityNode ipv6IspCityNodesObject;
if(!valueIpv6IspCityNodesIpv6IspCityNode["GroupName"].isNull())
ipv6IspCityNodesObject.groupName = valueIpv6IspCityNodesIpv6IspCityNode["GroupName"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["CityCode"].isNull())
ipv6IspCityNodesObject.cityCode = valueIpv6IspCityNodesIpv6IspCityNode["CityCode"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["IspName"].isNull())
ipv6IspCityNodesObject.ispName = valueIpv6IspCityNodesIpv6IspCityNode["IspName"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["GroupType"].isNull())
ipv6IspCityNodesObject.groupType = valueIpv6IspCityNodesIpv6IspCityNode["GroupType"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["CityName"].isNull())
ipv6IspCityNodesObject.cityName = valueIpv6IspCityNodesIpv6IspCityNode["CityName"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["DefaultSelected"].isNull())
ipv6IspCityNodesObject.defaultSelected = valueIpv6IspCityNodesIpv6IspCityNode["DefaultSelected"].asString() == "true";
if(!valueIpv6IspCityNodesIpv6IspCityNode["IspCode"].isNull())
ipv6IspCityNodesObject.ispCode = valueIpv6IspCityNodesIpv6IspCityNode["IspCode"].asString();
auto allIps3 = value["Ips"]["Ip"];
for (auto value : allIps3)
ipv6IspCityNodesObject.ips3.push_back(value.asString());
ipv6IspCityNodes_.push_back(ipv6IspCityNodesObject);
}
}

View File

@@ -27,6 +27,17 @@ SetDNSSLBStatusRequest::SetDNSSLBStatusRequest() :
SetDNSSLBStatusRequest::~SetDNSSLBStatusRequest()
{}
std::string SetDNSSLBStatusRequest::getLine()const
{
return line_;
}
void SetDNSSLBStatusRequest::setLine(const std::string& line)
{
line_ = line;
setParameter("Line", line);
}
std::string SetDNSSLBStatusRequest::getDomainName()const
{
return domainName_;

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.
*/
#include <alibabacloud/alidns/model/UpdateDnsCacheDomainRemarkRequest.h>
using AlibabaCloud::Alidns::Model::UpdateDnsCacheDomainRemarkRequest;
UpdateDnsCacheDomainRemarkRequest::UpdateDnsCacheDomainRemarkRequest() :
RpcServiceRequest("alidns", "2015-01-09", "UpdateDnsCacheDomainRemark")
{
setMethod(HttpRequest::Method::Post);
}
UpdateDnsCacheDomainRemarkRequest::~UpdateDnsCacheDomainRemarkRequest()
{}
std::string UpdateDnsCacheDomainRemarkRequest::getDomainName()const
{
return domainName_;
}
void UpdateDnsCacheDomainRemarkRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string UpdateDnsCacheDomainRemarkRequest::getRemark()const
{
return remark_;
}
void UpdateDnsCacheDomainRemarkRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setParameter("Remark", remark);
}
std::string UpdateDnsCacheDomainRemarkRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void UpdateDnsCacheDomainRemarkRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string UpdateDnsCacheDomainRemarkRequest::getUserClientIp()const
{
return userClientIp_;
}
void UpdateDnsCacheDomainRemarkRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string UpdateDnsCacheDomainRemarkRequest::getLang()const
{
return lang_;
}
void UpdateDnsCacheDomainRemarkRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/rds/model/DeleteDedicatedHostAccountResult.h>
#include <alibabacloud/alidns/model/UpdateDnsCacheDomainRemarkResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DeleteDedicatedHostAccountResult::DeleteDedicatedHostAccountResult() :
UpdateDnsCacheDomainRemarkResult::UpdateDnsCacheDomainRemarkResult() :
ServiceResult()
{}
DeleteDedicatedHostAccountResult::DeleteDedicatedHostAccountResult(const std::string &payload) :
UpdateDnsCacheDomainRemarkResult::UpdateDnsCacheDomainRemarkResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDedicatedHostAccountResult::~DeleteDedicatedHostAccountResult()
UpdateDnsCacheDomainRemarkResult::~UpdateDnsCacheDomainRemarkResult()
{}
void DeleteDedicatedHostAccountResult::parse(const std::string &payload)
void UpdateDnsCacheDomainRemarkResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;

View File

@@ -0,0 +1,144 @@
/*
* 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/alidns/model/UpdateDnsCacheDomainRequest.h>
using AlibabaCloud::Alidns::Model::UpdateDnsCacheDomainRequest;
UpdateDnsCacheDomainRequest::UpdateDnsCacheDomainRequest() :
RpcServiceRequest("alidns", "2015-01-09", "UpdateDnsCacheDomain")
{
setMethod(HttpRequest::Method::Post);
}
UpdateDnsCacheDomainRequest::~UpdateDnsCacheDomainRequest()
{}
std::string UpdateDnsCacheDomainRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void UpdateDnsCacheDomainRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string UpdateDnsCacheDomainRequest::getSourceProtocol()const
{
return sourceProtocol_;
}
void UpdateDnsCacheDomainRequest::setSourceProtocol(const std::string& sourceProtocol)
{
sourceProtocol_ = sourceProtocol;
setParameter("SourceProtocol", sourceProtocol);
}
std::string UpdateDnsCacheDomainRequest::getLang()const
{
return lang_;
}
void UpdateDnsCacheDomainRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string UpdateDnsCacheDomainRequest::getDomainName()const
{
return domainName_;
}
void UpdateDnsCacheDomainRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
int UpdateDnsCacheDomainRequest::getCacheTtlMax()const
{
return cacheTtlMax_;
}
void UpdateDnsCacheDomainRequest::setCacheTtlMax(int cacheTtlMax)
{
cacheTtlMax_ = cacheTtlMax;
setParameter("CacheTtlMax", std::to_string(cacheTtlMax));
}
std::string UpdateDnsCacheDomainRequest::getInstanceId()const
{
return instanceId_;
}
void UpdateDnsCacheDomainRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string UpdateDnsCacheDomainRequest::getSourceEdns()const
{
return sourceEdns_;
}
void UpdateDnsCacheDomainRequest::setSourceEdns(const std::string& sourceEdns)
{
sourceEdns_ = sourceEdns;
setParameter("SourceEdns", sourceEdns);
}
std::string UpdateDnsCacheDomainRequest::getUserClientIp()const
{
return userClientIp_;
}
void UpdateDnsCacheDomainRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
int UpdateDnsCacheDomainRequest::getCacheTtlMin()const
{
return cacheTtlMin_;
}
void UpdateDnsCacheDomainRequest::setCacheTtlMin(int cacheTtlMin)
{
cacheTtlMin_ = cacheTtlMin;
setParameter("CacheTtlMin", std::to_string(cacheTtlMin));
}
std::vector<UpdateDnsCacheDomainRequest::SourceDnsServer> UpdateDnsCacheDomainRequest::getSourceDnsServer()const
{
return sourceDnsServer_;
}
void UpdateDnsCacheDomainRequest::setSourceDnsServer(const std::vector<SourceDnsServer>& sourceDnsServer)
{
sourceDnsServer_ = sourceDnsServer;
for(int dep1 = 0; dep1!= sourceDnsServer.size(); dep1++) {
auto sourceDnsServerObj = sourceDnsServer.at(dep1);
std::string sourceDnsServerObjStr = "SourceDnsServer." + std::to_string(dep1 + 1);
setParameter(sourceDnsServerObjStr + ".Port", sourceDnsServerObj.port);
setParameter(sourceDnsServerObjStr + ".Host", sourceDnsServerObj.host);
}
}

View File

@@ -0,0 +1,44 @@
/*
* 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/alidns/model/UpdateDnsCacheDomainResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
UpdateDnsCacheDomainResult::UpdateDnsCacheDomainResult() :
ServiceResult()
{}
UpdateDnsCacheDomainResult::UpdateDnsCacheDomainResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateDnsCacheDomainResult::~UpdateDnsCacheDomainResult()
{}
void UpdateDnsCacheDomainResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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

@@ -48,16 +48,16 @@ void DescribeClusterDashboardResult::parse(const std::string &payload)
Dashboard::DataCenter dataCenterObject;
if(!dashboardNodeDataCentersDataCenter["DataCenterId"].isNull())
dataCenterObject.dataCenterId = dashboardNodeDataCentersDataCenter["DataCenterId"].asString();
auto allNodesNode = allDataCentersNode["Nodes"]["Node"];
for (auto allDataCentersNodeNodesNode : allNodesNode)
auto allNodesNode = dashboardNodeDataCentersDataCenter["Nodes"]["Node"];
for (auto dashboardNodeDataCentersDataCenterNodesNode : allNodesNode)
{
Dashboard::DataCenter::Node nodesObject;
if(!allDataCentersNodeNodesNode["Address"].isNull())
nodesObject.address = allDataCentersNodeNodesNode["Address"].asString();
if(!allDataCentersNodeNodesNode["Status"].isNull())
nodesObject.status = allDataCentersNodeNodesNode["Status"].asString();
if(!allDataCentersNodeNodesNode["Load"].isNull())
nodesObject.load = allDataCentersNodeNodesNode["Load"].asString();
if(!dashboardNodeDataCentersDataCenterNodesNode["Address"].isNull())
nodesObject.address = dashboardNodeDataCentersDataCenterNodesNode["Address"].asString();
if(!dashboardNodeDataCentersDataCenterNodesNode["Status"].isNull())
nodesObject.status = dashboardNodeDataCentersDataCenterNodesNode["Status"].asString();
if(!dashboardNodeDataCentersDataCenterNodesNode["Load"].isNull())
nodesObject.load = dashboardNodeDataCentersDataCenterNodesNode["Load"].asString();
dataCenterObject.nodes.push_back(nodesObject);
}
dashboard_.dataCenters.push_back(dataCenterObject);

View File

@@ -67,14 +67,14 @@ void DescribeClustersResult::parse(const std::string &payload)
clustersObject.autoRenewal = valueClustersCluster["AutoRenewal"].asString() == "true";
if(!valueClustersCluster["AutoRenewPeriod"].isNull())
clustersObject.autoRenewPeriod = std::stoi(valueClustersCluster["AutoRenewPeriod"].asString());
auto allTagsNode = allClustersNode["Tags"]["Tag"];
for (auto allClustersNodeTagsTag : allTagsNode)
auto allTagsNode = valueClustersCluster["Tags"]["Tag"];
for (auto valueClustersClusterTagsTag : allTagsNode)
{
Cluster::Tag tagsObject;
if(!allClustersNodeTagsTag["Key"].isNull())
tagsObject.key = allClustersNodeTagsTag["Key"].asString();
if(!allClustersNodeTagsTag["Value"].isNull())
tagsObject.value = allClustersNodeTagsTag["Value"].asString();
if(!valueClustersClusterTagsTag["Key"].isNull())
tagsObject.key = valueClustersClusterTagsTag["Key"].asString();
if(!valueClustersClusterTagsTag["Value"].isNull())
tagsObject.value = valueClustersClusterTagsTag["Value"].asString();
clustersObject.tags.push_back(tagsObject);
}
clusters_.push_back(clustersObject);

View File

@@ -49,12 +49,12 @@ void DescribeRegionsResult::parse(const std::string &payload)
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
if(!valueRegionsRegion["RegionEndpoint"].isNull())
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
auto allZonesNode = allRegionsNode["Zones"]["Zone"];
for (auto allRegionsNodeZonesZone : allZonesNode)
auto allZonesNode = valueRegionsRegion["Zones"]["Zone"];
for (auto valueRegionsRegionZonesZone : allZonesNode)
{
Region::Zone zonesObject;
if(!allRegionsNodeZonesZone["Id"].isNull())
zonesObject.id = allRegionsNodeZonesZone["Id"].asString();
if(!valueRegionsRegionZonesZone["Id"].isNull())
zonesObject.id = valueRegionsRegionZonesZone["Id"].asString();
regionsObject.zones.push_back(zonesObject);
}
regions_.push_back(regionsObject);

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,10 @@ 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
@@ -45,12 +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/ListCorpTrackDetailRequest.h
include/alibabacloud/cdrs/model/ListCorpTrackDetailResult.h
include/alibabacloud/cdrs/model/ListDataStatisticsRequest.h
include/alibabacloud/cdrs/model/ListDataStatisticsResult.h
include/alibabacloud/cdrs/model/ListDataStatisticsByDayRequest.h
@@ -67,8 +69,6 @@ set(cdrs_public_header_model
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
@@ -77,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
@@ -105,14 +103,20 @@ set(cdrs_public_header_model
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 )
@@ -120,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
@@ -128,6 +134,10 @@ 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
@@ -142,12 +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/ListCorpTrackDetailRequest.cc
src/model/ListCorpTrackDetailResult.cc
src/model/ListDataStatisticsRequest.cc
src/model/ListDataStatisticsResult.cc
src/model/ListDataStatisticsByDayRequest.cc
@@ -164,8 +170,6 @@ set(cdrs_src
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
@@ -174,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
@@ -202,14 +204,20 @@ set(cdrs_src
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,10 @@
#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"
@@ -46,12 +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/ListCorpTrackDetailRequest.h"
#include "model/ListCorpTrackDetailResult.h"
#include "model/ListDataStatisticsRequest.h"
#include "model/ListDataStatisticsResult.h"
#include "model/ListDataStatisticsByDayRequest.h"
@@ -68,8 +70,6 @@
#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"
@@ -78,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"
@@ -106,14 +104,20 @@
#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"
@@ -128,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;
@@ -140,6 +147,12 @@ 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;
@@ -161,15 +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::ListCorpTrackDetailResult> ListCorpTrackDetailOutcome;
typedef std::future<ListCorpTrackDetailOutcome> ListCorpTrackDetailOutcomeCallable;
typedef std::function<void(const CDRSClient*, const Model::ListCorpTrackDetailRequest&, const ListCorpTrackDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCorpTrackDetailAsyncHandler;
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;
@@ -194,9 +201,6 @@ namespace AlibabaCloud
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;
@@ -209,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;
@@ -251,18 +252,27 @@ namespace AlibabaCloud
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;
@@ -274,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;
@@ -286,6 +299,12 @@ 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;
@@ -307,15 +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;
ListCorpTrackDetailOutcome listCorpTrackDetail(const Model::ListCorpTrackDetailRequest &request)const;
void listCorpTrackDetailAsync(const Model::ListCorpTrackDetailRequest& request, const ListCorpTrackDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCorpTrackDetailOutcomeCallable listCorpTrackDetailCallable(const Model::ListCorpTrackDetailRequest& 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;
@@ -340,9 +353,6 @@ namespace AlibabaCloud
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;
@@ -355,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;
@@ -397,18 +404,27 @@ namespace AlibabaCloud
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

@@ -51,6 +51,8 @@ namespace AlibabaCloud
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;
@@ -65,6 +67,7 @@ namespace AlibabaCloud
std::string notifierUrl_;
std::string notifierType_;
int batchIndicator_;
std::string bizId_;
int notifierTimeOut_;
std::string algorithmVendor_;

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

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

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

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACERESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACERESULT_H_
#ifndef ALIBABACLOUD_CDRS_MODEL_GETMONITORLISTRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_GETMONITORLISTRESULT_H_
#include <string>
#include <vector>
@@ -29,49 +29,53 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT ListPersonTraceResult : public ServiceResult
class ALIBABACLOUD_CDRS_EXPORT GetMonitorListResult : public ServiceResult
{
public:
struct DataItem
struct Data
{
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;
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;
};
ListPersonTraceResult();
explicit ListPersonTraceResult(const std::string &payload);
~ListPersonTraceResult();
int getTotalCount()const;
GetMonitorListResult();
explicit GetMonitorListResult(const std::string &payload);
~GetMonitorListResult();
std::string getMessage()const;
int getPageSize()const;
int getPageNumber()const;
std::vector<DataItem> getData()const;
Data getData()const;
std::string getCode()const;
std::string getSuccess()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
std::string message_;
int pageSize_;
int pageNumber_;
std::vector<DataItem> data_;
Data data_;
std::string code_;
std::string success_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACERESULT_H_
#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

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSRESULT_H_
#ifndef ALIBABACLOUD_CDRS_MODEL_GETMONITORRESULTRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_GETMONITORRESULTRESULT_H_
#include <string>
#include <vector>
@@ -29,47 +29,51 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_CDRS_EXPORT ListCorpMetricsResult : public ServiceResult
class ALIBABACLOUD_CDRS_EXPORT GetMonitorResultResult : public ServiceResult
{
public:
struct DataItem
struct Data
{
std::string corpId;
std::string personId;
std::string deviceGroupId;
std::string deviceId;
std::string userGroupId;
std::string tagMetrics;
std::string tagCode;
std::string tagValue;
std::string dateId;
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;
};
ListCorpMetricsResult();
explicit ListCorpMetricsResult(const std::string &payload);
~ListCorpMetricsResult();
int getTotalCount()const;
int getPageSize()const;
GetMonitorResultResult();
explicit GetMonitorResultResult(const std::string &payload);
~GetMonitorResultResult();
std::string getMessage()const;
int getPageNumber()const;
std::vector<DataItem> getData()const;
Data getData()const;
std::string getCode()const;
std::string getSuccess()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
std::string message_;
int pageNumber_;
std::vector<DataItem> data_;
Data data_;
std::string code_;
std::string success_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSRESULT_H_
#endif // !ALIBABACLOUD_CDRS_MODEL_GETMONITORRESULTRESULT_H_

View File

@@ -1,72 +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.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSREQUEST_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 ListCorpMetricsRequest : public RpcServiceRequest
{
public:
ListCorpMetricsRequest();
~ListCorpMetricsRequest();
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);
long getPageNumber()const;
void setPageNumber(long pageNumber);
std::string getDeviceGroupList()const;
void setDeviceGroupList(const std::string& deviceGroupList);
std::string getTagCode()const;
void setTagCode(const std::string& tagCode);
std::string getUserGroupList()const;
void setUserGroupList(const std::string& userGroupList);
long getPageSize()const;
void setPageSize(long pageSize);
std::string getDeviceIdList()const;
void setDeviceIdList(const std::string& deviceIdList);
private:
std::string corpId_;
std::string endTime_;
std::string startTime_;
long pageNumber_;
std::string deviceGroupList_;
std::string tagCode_;
std::string userGroupList_;
long pageSize_;
std::string deviceIdList_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSREQUEST_H_

View File

@@ -1,69 +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.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTCORPTRACKDETAILREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPTRACKDETAILREQUEST_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 ListCorpTrackDetailRequest : public RpcServiceRequest
{
public:
ListCorpTrackDetailRequest();
~ListCorpTrackDetailRequest();
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 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 pageNumber_;
std::string pageSize_;
std::string dataSourceId_;
std::string personId_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPTRACKDETAILREQUEST_H_

View File

@@ -1,79 +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.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTCORPTRACKDETAILRESULT_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPTRACKDETAILRESULT_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 ListCorpTrackDetailResult : public ServiceResult
{
public:
struct DataItem
{
std::string startTargetImage;
std::string sourceUrl;
std::string startSourceImage;
std::string corpId;
std::string deviceId;
std::string endTargetImage;
std::string startTime;
std::string targetUrl;
std::string date;
std::string groupId;
std::string personId;
std::string endSourceImage;
std::string lastTime;
};
ListCorpTrackDetailResult();
explicit ListCorpTrackDetailResult(const std::string &payload);
~ListCorpTrackDetailResult();
int getTotalCount()const;
std::string getMessage()const;
int getPageSize()const;
int 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 message_;
int pageSize_;
int pageNumber_;
std::vector<DataItem> data_;
std::string code_;
std::string success_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPTRACKDETAILRESULT_H_

View File

@@ -1,66 +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.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTMETRICSREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTMETRICSREQUEST_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 ListMetricsRequest : public RpcServiceRequest
{
public:
ListMetricsRequest();
~ListMetricsRequest();
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 getTagCode()const;
void setTagCode(const std::string& tagCode);
std::string getPageSize()const;
void setPageSize(const std::string& pageSize);
std::string getAggregateType()const;
void setAggregateType(const std::string& aggregateType);
private:
std::string corpId_;
std::string endTime_;
std::string startTime_;
std::string pageNumber_;
std::string tagCode_;
std::string pageSize_;
std::string aggregateType_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTMETRICSREQUEST_H_

View File

@@ -1,66 +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.
*/
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACEREQUEST_H_
#define ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACEREQUEST_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 ListPersonTraceRequest : public RpcServiceRequest
{
public:
ListPersonTraceRequest();
~ListPersonTraceRequest();
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 getDataSourceId()const;
void setDataSourceId(const std::string& dataSourceId);
std::string getPersonId()const;
void setPersonId(const std::string& personId);
private:
std::string corpId_;
std::string endTime_;
std::string startTime_;
std::string pageNumber_;
std::string pageSize_;
std::string dataSourceId_;
std::string personId_;
};
}
}
}
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACEREQUEST_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

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

@@ -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,78 @@ 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();
@@ -483,42 +591,6 @@ CDRSClient::ListCityMapRangeStatisticOutcomeCallable CDRSClient::listCityMapRang
return task->get_future();
}
CDRSClient::ListCorpMetricsOutcome CDRSClient::listCorpMetrics(const ListCorpMetricsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListCorpMetricsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListCorpMetricsOutcome(ListCorpMetricsResult(outcome.result()));
else
return ListCorpMetricsOutcome(outcome.error());
}
void CDRSClient::listCorpMetricsAsync(const ListCorpMetricsRequest& request, const ListCorpMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listCorpMetrics(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::ListCorpMetricsOutcomeCallable CDRSClient::listCorpMetricsCallable(const ListCorpMetricsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListCorpMetricsOutcome()>>(
[this, request]()
{
return this->listCorpMetrics(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::ListCorpMetricsStatisticOutcome CDRSClient::listCorpMetricsStatistic(const ListCorpMetricsStatisticRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -555,42 +627,6 @@ CDRSClient::ListCorpMetricsStatisticOutcomeCallable CDRSClient::listCorpMetricsS
return task->get_future();
}
CDRSClient::ListCorpTrackDetailOutcome CDRSClient::listCorpTrackDetail(const ListCorpTrackDetailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListCorpTrackDetailOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListCorpTrackDetailOutcome(ListCorpTrackDetailResult(outcome.result()));
else
return ListCorpTrackDetailOutcome(outcome.error());
}
void CDRSClient::listCorpTrackDetailAsync(const ListCorpTrackDetailRequest& request, const ListCorpTrackDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listCorpTrackDetail(request), context);
};
asyncExecute(new Runnable(fn));
}
CDRSClient::ListCorpTrackDetailOutcomeCallable CDRSClient::listCorpTrackDetailCallable(const ListCorpTrackDetailRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListCorpTrackDetailOutcome()>>(
[this, request]()
{
return this->listCorpTrackDetail(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CDRSClient::ListDataStatisticsOutcome CDRSClient::listDataStatistics(const ListDataStatisticsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -879,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();
@@ -1059,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();
@@ -1563,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();
@@ -1635,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();
@@ -1707,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

@@ -115,6 +115,17 @@ void AddCdrsMonitorRequest::setBatchIndicator(int batchIndicator)
setBodyParameter("BatchIndicator", std::to_string(batchIndicator));
}
std::string AddCdrsMonitorRequest::getBizId()const
{
return bizId_;
}
void AddCdrsMonitorRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setBodyParameter("BizId", bizId);
}
int AddCdrsMonitorRequest::getNotifierTimeOut()const
{
return notifierTimeOut_;

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

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

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

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

@@ -1,115 +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/ListCorpMetricsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
ListCorpMetricsResult::ListCorpMetricsResult() :
ServiceResult()
{}
ListCorpMetricsResult::ListCorpMetricsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCorpMetricsResult::~ListCorpMetricsResult()
{}
void ListCorpMetricsResult::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();
if(!valueDataDataItem["PersonId"].isNull())
dataObject.personId = valueDataDataItem["PersonId"].asString();
if(!valueDataDataItem["DeviceGroupId"].isNull())
dataObject.deviceGroupId = valueDataDataItem["DeviceGroupId"].asString();
if(!valueDataDataItem["DeviceId"].isNull())
dataObject.deviceId = valueDataDataItem["DeviceId"].asString();
if(!valueDataDataItem["UserGroupId"].isNull())
dataObject.userGroupId = valueDataDataItem["UserGroupId"].asString();
if(!valueDataDataItem["TagMetrics"].isNull())
dataObject.tagMetrics = valueDataDataItem["TagMetrics"].asString();
if(!valueDataDataItem["TagCode"].isNull())
dataObject.tagCode = valueDataDataItem["TagCode"].asString();
if(!valueDataDataItem["TagValue"].isNull())
dataObject.tagValue = valueDataDataItem["TagValue"].asString();
if(!valueDataDataItem["DateId"].isNull())
dataObject.dateId = valueDataDataItem["DateId"].asString();
data_.push_back(dataObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString();
}
int ListCorpMetricsResult::getTotalCount()const
{
return totalCount_;
}
int ListCorpMetricsResult::getPageSize()const
{
return pageSize_;
}
std::string ListCorpMetricsResult::getMessage()const
{
return message_;
}
int ListCorpMetricsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListCorpMetricsResult::DataItem> ListCorpMetricsResult::getData()const
{
return data_;
}
std::string ListCorpMetricsResult::getCode()const
{
return code_;
}
std::string ListCorpMetricsResult::getSuccess()const
{
return success_;
}

View File

@@ -1,117 +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/ListCorpTrackDetailRequest.h>
using AlibabaCloud::CDRS::Model::ListCorpTrackDetailRequest;
ListCorpTrackDetailRequest::ListCorpTrackDetailRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "ListCorpTrackDetail")
{
setMethod(HttpRequest::Method::Post);
}
ListCorpTrackDetailRequest::~ListCorpTrackDetailRequest()
{}
std::string ListCorpTrackDetailRequest::getSchema()const
{
return schema_;
}
void ListCorpTrackDetailRequest::setSchema(const std::string& schema)
{
schema_ = schema;
setBodyParameter("Schema", schema);
}
std::string ListCorpTrackDetailRequest::getCorpId()const
{
return corpId_;
}
void ListCorpTrackDetailRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string ListCorpTrackDetailRequest::getEndTime()const
{
return endTime_;
}
void ListCorpTrackDetailRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
std::string ListCorpTrackDetailRequest::getStartTime()const
{
return startTime_;
}
void ListCorpTrackDetailRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::string ListCorpTrackDetailRequest::getPageNumber()const
{
return pageNumber_;
}
void ListCorpTrackDetailRequest::setPageNumber(const std::string& pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", pageNumber);
}
std::string ListCorpTrackDetailRequest::getPageSize()const
{
return pageSize_;
}
void ListCorpTrackDetailRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", pageSize);
}
std::string ListCorpTrackDetailRequest::getDataSourceId()const
{
return dataSourceId_;
}
void ListCorpTrackDetailRequest::setDataSourceId(const std::string& dataSourceId)
{
dataSourceId_ = dataSourceId;
setBodyParameter("DataSourceId", dataSourceId);
}
std::string ListCorpTrackDetailRequest::getPersonId()const
{
return personId_;
}
void ListCorpTrackDetailRequest::setPersonId(const std::string& personId)
{
personId_ = personId;
setBodyParameter("PersonId", personId);
}

View File

@@ -1,123 +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/ListCorpTrackDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
ListCorpTrackDetailResult::ListCorpTrackDetailResult() :
ServiceResult()
{}
ListCorpTrackDetailResult::ListCorpTrackDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCorpTrackDetailResult::~ListCorpTrackDetailResult()
{}
void ListCorpTrackDetailResult::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["Date"].isNull())
dataObject.date = valueDataDataItem["Date"].asString();
if(!valueDataDataItem["LastTime"].isNull())
dataObject.lastTime = valueDataDataItem["LastTime"].asString();
if(!valueDataDataItem["StartTime"].isNull())
dataObject.startTime = valueDataDataItem["StartTime"].asString();
if(!valueDataDataItem["EndSourceImage"].isNull())
dataObject.endSourceImage = valueDataDataItem["EndSourceImage"].asString();
if(!valueDataDataItem["DeviceId"].isNull())
dataObject.deviceId = valueDataDataItem["DeviceId"].asString();
if(!valueDataDataItem["StartTargetImage"].isNull())
dataObject.startTargetImage = valueDataDataItem["StartTargetImage"].asString();
if(!valueDataDataItem["GroupId"].isNull())
dataObject.groupId = valueDataDataItem["GroupId"].asString();
if(!valueDataDataItem["PersonId"].isNull())
dataObject.personId = valueDataDataItem["PersonId"].asString();
if(!valueDataDataItem["StartSourceImage"].isNull())
dataObject.startSourceImage = valueDataDataItem["StartSourceImage"].asString();
if(!valueDataDataItem["CorpId"].isNull())
dataObject.corpId = valueDataDataItem["CorpId"].asString();
if(!valueDataDataItem["EndTargetImage"].isNull())
dataObject.endTargetImage = valueDataDataItem["EndTargetImage"].asString();
if(!valueDataDataItem["SourceUrl"].isNull())
dataObject.sourceUrl = valueDataDataItem["SourceUrl"].asString();
if(!valueDataDataItem["TargetUrl"].isNull())
dataObject.targetUrl = valueDataDataItem["TargetUrl"].asString();
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int ListCorpTrackDetailResult::getTotalCount()const
{
return totalCount_;
}
std::string ListCorpTrackDetailResult::getMessage()const
{
return message_;
}
int ListCorpTrackDetailResult::getPageSize()const
{
return pageSize_;
}
int ListCorpTrackDetailResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListCorpTrackDetailResult::DataItem> ListCorpTrackDetailResult::getData()const
{
return data_;
}
std::string ListCorpTrackDetailResult::getCode()const
{
return code_;
}
std::string ListCorpTrackDetailResult::getSuccess()const
{
return success_;
}

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);
}

View File

@@ -1,100 +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/ListMetricsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
ListMetricsResult::ListMetricsResult() :
ServiceResult()
{}
ListMetricsResult::ListMetricsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListMetricsResult::~ListMetricsResult()
{}
void ListMetricsResult::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["DateTime"].isNull())
dataObject.dateTime = valueDataDataItem["DateTime"].asString();
if(!valueDataDataItem["TagCode"].isNull())
dataObject.tagCode = valueDataDataItem["TagCode"].asString();
if(!valueDataDataItem["TagValue"].isNull())
dataObject.tagValue = valueDataDataItem["TagValue"].asString();
if(!valueDataDataItem["TagMetric"].isNull())
dataObject.tagMetric = valueDataDataItem["TagMetric"].asString();
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();
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 ListMetricsResult::getTotalCount()const
{
return totalCount_;
}
std::string ListMetricsResult::getMessage()const
{
return message_;
}
std::string ListMetricsResult::getPageSize()const
{
return pageSize_;
}
std::string ListMetricsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListMetricsResult::DataItem> ListMetricsResult::getData()const
{
return data_;
}
std::string ListMetricsResult::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/ListPersonTraceRequest.h>
using AlibabaCloud::CDRS::Model::ListPersonTraceRequest;
ListPersonTraceRequest::ListPersonTraceRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "ListPersonTrace")
{
setMethod(HttpRequest::Method::Post);
}
ListPersonTraceRequest::~ListPersonTraceRequest()
{}
std::string ListPersonTraceRequest::getCorpId()const
{
return corpId_;
}
void ListPersonTraceRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string ListPersonTraceRequest::getEndTime()const
{
return endTime_;
}
void ListPersonTraceRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
std::string ListPersonTraceRequest::getStartTime()const
{
return startTime_;
}
void ListPersonTraceRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::string ListPersonTraceRequest::getPageNumber()const
{
return pageNumber_;
}
void ListPersonTraceRequest::setPageNumber(const std::string& pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", pageNumber);
}
std::string ListPersonTraceRequest::getPageSize()const
{
return pageSize_;
}
void ListPersonTraceRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", pageSize);
}
std::string ListPersonTraceRequest::getDataSourceId()const
{
return dataSourceId_;
}
void ListPersonTraceRequest::setDataSourceId(const std::string& dataSourceId)
{
dataSourceId_ = dataSourceId;
setBodyParameter("DataSourceId", dataSourceId);
}
std::string ListPersonTraceRequest::getPersonId()const
{
return personId_;
}
void ListPersonTraceRequest::setPersonId(const std::string& personId)
{
personId_ = personId;
setBodyParameter("PersonId", personId);
}

View File

@@ -1,119 +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/ListPersonTraceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CDRS;
using namespace AlibabaCloud::CDRS::Model;
ListPersonTraceResult::ListPersonTraceResult() :
ServiceResult()
{}
ListPersonTraceResult::ListPersonTraceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPersonTraceResult::~ListPersonTraceResult()
{}
void ListPersonTraceResult::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["Date"].isNull())
dataObject.date = valueDataDataItem["Date"].asString();
if(!valueDataDataItem["LastTime"].isNull())
dataObject.lastTime = valueDataDataItem["LastTime"].asString();
if(!valueDataDataItem["StartTime"].isNull())
dataObject.startTime = valueDataDataItem["StartTime"].asString();
if(!valueDataDataItem["EndSourceImage"].isNull())
dataObject.endSourceImage = valueDataDataItem["EndSourceImage"].asString();
if(!valueDataDataItem["DeviceId"].isNull())
dataObject.deviceId = valueDataDataItem["DeviceId"].asString();
if(!valueDataDataItem["StartTargetImage"].isNull())
dataObject.startTargetImage = valueDataDataItem["StartTargetImage"].asString();
if(!valueDataDataItem["GroupId"].isNull())
dataObject.groupId = valueDataDataItem["GroupId"].asString();
if(!valueDataDataItem["PersonId"].isNull())
dataObject.personId = valueDataDataItem["PersonId"].asString();
if(!valueDataDataItem["StartSourceImage"].isNull())
dataObject.startSourceImage = valueDataDataItem["StartSourceImage"].asString();
if(!valueDataDataItem["CorpId"].isNull())
dataObject.corpId = valueDataDataItem["CorpId"].asString();
if(!valueDataDataItem["EndTargetImage"].isNull())
dataObject.endTargetImage = valueDataDataItem["EndTargetImage"].asString();
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int ListPersonTraceResult::getTotalCount()const
{
return totalCount_;
}
std::string ListPersonTraceResult::getMessage()const
{
return message_;
}
int ListPersonTraceResult::getPageSize()const
{
return pageSize_;
}
int ListPersonTraceResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListPersonTraceResult::DataItem> ListPersonTraceResult::getData()const
{
return data_;
}
std::string ListPersonTraceResult::getCode()const
{
return code_;
}
std::string ListPersonTraceResult::getSuccess()const
{
return success_;
}

View File

@@ -69,6 +69,10 @@ void ListVehicleDetailsResult::parse(const std::string &payload)
dataObject.personId = valueDataDatas["PersonId"].asString();
if(!valueDataDatas["PlateId"].isNull())
dataObject.plateId = valueDataDatas["PlateId"].asString();
if(!valueDataDatas["SourceUrl"].isNull())
dataObject.sourceUrl = valueDataDatas["SourceUrl"].asString();
if(!valueDataDatas["TargetUrl"].isNull())
dataObject.targetUrl = valueDataDatas["TargetUrl"].asString();
data_.push_back(dataObject);
}
if(!value["Code"].isNull())

View File

@@ -71,3 +71,25 @@ void ListVehicleTopRequest::setStartTime(const std::string& startTime)
setBodyParameter("StartTime", startTime);
}
std::string ListVehicleTopRequest::getPageNum()const
{
return pageNum_;
}
void ListVehicleTopRequest::setPageNum(const std::string& pageNum)
{
pageNum_ = pageNum;
setBodyParameter("PageNum", pageNum);
}
std::string ListVehicleTopRequest::getPageSize()const
{
return pageSize_;
}
void ListVehicleTopRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", pageSize);
}

View File

@@ -71,3 +71,25 @@ void ListVehicleTrackRequest::setStartTime(const std::string& startTime)
setBodyParameter("StartTime", startTime);
}
long ListVehicleTrackRequest::getPageNumber()const
{
return pageNumber_;
}
void ListVehicleTrackRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
long ListVehicleTrackRequest::getPageSize()const
{
return pageSize_;
}
void ListVehicleTrackRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -71,6 +71,10 @@ void ListVehicleTrackResult::parse(const std::string &payload)
dataObject.latitude = valueDataDatas["Latitude"].asString();
if(!valueDataDatas["Longitude"].isNull())
dataObject.longitude = valueDataDatas["Longitude"].asString();
if(!valueDataDatas["SourceUrl"].isNull())
dataObject.sourceUrl = valueDataDatas["SourceUrl"].asString();
if(!valueDataDatas["TargetUrl"].isNull())
dataObject.targetUrl = valueDataDatas["TargetUrl"].asString();
data_.push_back(dataObject);
}
if(!value["Code"].isNull())

View File

@@ -27,6 +27,17 @@ RecognizeImageRequest::RecognizeImageRequest() :
RecognizeImageRequest::~RecognizeImageRequest()
{}
bool RecognizeImageRequest::getRequireCropImage()const
{
return requireCropImage_;
}
void RecognizeImageRequest::setRequireCropImage(bool requireCropImage)
{
requireCropImage_ = requireCropImage;
setBodyParameter("RequireCropImage", requireCropImage ? "true" : "false");
}
std::string RecognizeImageRequest::getCorpId()const
{
return corpId_;
@@ -38,6 +49,17 @@ void RecognizeImageRequest::setCorpId(const std::string& corpId)
setBodyParameter("CorpId", corpId);
}
std::string RecognizeImageRequest::getRecognizeType()const
{
return recognizeType_;
}
void RecognizeImageRequest::setRecognizeType(const std::string& recognizeType)
{
recognizeType_ = recognizeType;
setBodyParameter("RecognizeType", recognizeType);
}
std::string RecognizeImageRequest::getVendor()const
{
return vendor_;

View File

@@ -54,6 +54,10 @@ void RecognizeImageResult::parse(const std::string &payload)
bodyListItemObject.rightBottomY = std::stoi(dataNodeBodyListBodyListItem["RightBottomY"].asString());
if(!dataNodeBodyListBodyListItem["Feature"].isNull())
bodyListItemObject.feature = dataNodeBodyListBodyListItem["Feature"].asString();
if(!dataNodeBodyListBodyListItem["TargetImageContent"].isNull())
bodyListItemObject.targetImageContent = dataNodeBodyListBodyListItem["TargetImageContent"].asString();
if(!dataNodeBodyListBodyListItem["CropAlgorithmCode"].isNull())
bodyListItemObject.cropAlgorithmCode = dataNodeBodyListBodyListItem["CropAlgorithmCode"].asString();
data_.bodyList.push_back(bodyListItemObject);
}
auto allFaceListNode = dataNode["FaceList"]["FaceListItem"];
@@ -74,6 +78,10 @@ void RecognizeImageResult::parse(const std::string &payload)
faceListItemObject.faceKeyPointQuality = std::stof(dataNodeFaceListFaceListItem["FaceKeyPointQuality"].asString());
if(!dataNodeFaceListFaceListItem["Feature"].isNull())
faceListItemObject.feature = dataNodeFaceListFaceListItem["Feature"].asString();
if(!dataNodeFaceListFaceListItem["TargetImageContent"].isNull())
faceListItemObject.targetImageContent = dataNodeFaceListFaceListItem["TargetImageContent"].asString();
if(!dataNodeFaceListFaceListItem["CropAlgorithmCode"].isNull())
faceListItemObject.cropAlgorithmCode = dataNodeFaceListFaceListItem["CropAlgorithmCode"].asString();
data_.faceList.push_back(faceListItemObject);
}
if(!value["Code"].isNull())

View File

@@ -0,0 +1,172 @@
/*
* 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/SearchAggregateObjectRequest.h>
using AlibabaCloud::CDRS::Model::SearchAggregateObjectRequest;
SearchAggregateObjectRequest::SearchAggregateObjectRequest() :
RpcServiceRequest("cdrs", "2020-11-01", "SearchAggregateObject")
{
setMethod(HttpRequest::Method::Post);
}
SearchAggregateObjectRequest::~SearchAggregateObjectRequest()
{}
std::string SearchAggregateObjectRequest::getShotTimeEnd()const
{
return shotTimeEnd_;
}
void SearchAggregateObjectRequest::setShotTimeEnd(const std::string& shotTimeEnd)
{
shotTimeEnd_ = shotTimeEnd;
setBodyParameter("ShotTimeEnd", shotTimeEnd);
}
std::string SearchAggregateObjectRequest::getCorpId()const
{
return corpId_;
}
void SearchAggregateObjectRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
int SearchAggregateObjectRequest::getPageNumber()const
{
return pageNumber_;
}
void SearchAggregateObjectRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", std::to_string(pageNumber));
}
std::string SearchAggregateObjectRequest::getFeature()const
{
return feature_;
}
void SearchAggregateObjectRequest::setFeature(const std::string& feature)
{
feature_ = feature;
setBodyParameter("Feature", feature);
}
std::string SearchAggregateObjectRequest::getVendor()const
{
return vendor_;
}
void SearchAggregateObjectRequest::setVendor(const std::string& vendor)
{
vendor_ = vendor;
setBodyParameter("Vendor", vendor);
}
bool SearchAggregateObjectRequest::getRequireTotalCount()const
{
return requireTotalCount_;
}
void SearchAggregateObjectRequest::setRequireTotalCount(bool requireTotalCount)
{
requireTotalCount_ = requireTotalCount;
setBodyParameter("RequireTotalCount", requireTotalCount ? "true" : "false");
}
int SearchAggregateObjectRequest::getPageSize()const
{
return pageSize_;
}
void SearchAggregateObjectRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string SearchAggregateObjectRequest::getImageContent()const
{
return imageContent_;
}
void SearchAggregateObjectRequest::setImageContent(const std::string& imageContent)
{
imageContent_ = imageContent;
setBodyParameter("ImageContent", imageContent);
}
std::string SearchAggregateObjectRequest::getObjectType()const
{
return objectType_;
}
void SearchAggregateObjectRequest::setObjectType(const std::string& objectType)
{
objectType_ = objectType;
setBodyParameter("ObjectType", objectType);
}
std::string SearchAggregateObjectRequest::getDeviceList()const
{
return deviceList_;
}
void SearchAggregateObjectRequest::setDeviceList(const std::string& deviceList)
{
deviceList_ = deviceList;
setBodyParameter("DeviceList", deviceList);
}
std::string SearchAggregateObjectRequest::getImageUrl()const
{
return imageUrl_;
}
void SearchAggregateObjectRequest::setImageUrl(const std::string& imageUrl)
{
imageUrl_ = imageUrl;
setBodyParameter("ImageUrl", imageUrl);
}
std::string SearchAggregateObjectRequest::getAttributes()const
{
return attributes_;
}
void SearchAggregateObjectRequest::setAttributes(const std::string& attributes)
{
attributes_ = attributes;
setBodyParameter("Attributes", attributes);
}
std::string SearchAggregateObjectRequest::getShotTimeStart()const
{
return shotTimeStart_;
}
void SearchAggregateObjectRequest::setShotTimeStart(const std::string& shotTimeStart)
{
shotTimeStart_ = shotTimeStart;
setBodyParameter("ShotTimeStart", shotTimeStart);
}

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