Compare commits
80 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
08e11e9bb0 | ||
|
|
8c4cc55d22 | ||
|
|
2191c80b02 | ||
|
|
22d322118a | ||
|
|
1358a6ec39 | ||
|
|
41ea6f3a12 | ||
|
|
83f2c53623 | ||
|
|
314c523174 | ||
|
|
0d054dfb79 | ||
|
|
8af4775c5e | ||
|
|
2f6b7ad555 | ||
|
|
faf9b3fb11 | ||
|
|
6642aa94e5 | ||
|
|
0aa44135e7 | ||
|
|
839effe699 | ||
|
|
4e6956c3f2 | ||
|
|
1b2fe667ba | ||
|
|
91c8eee22c | ||
|
|
fd4bd1e797 | ||
|
|
bd27e98c03 | ||
|
|
3a88e60d04 | ||
|
|
83bb5be02b | ||
|
|
beacaac234 | ||
|
|
52ee14ba5d | ||
|
|
b257cba9c3 | ||
|
|
55baab421e | ||
|
|
67f50165c9 | ||
|
|
1cce84c75f | ||
|
|
90e4ddb22a | ||
|
|
d412a52735 | ||
|
|
2960652dcb | ||
|
|
48a3320ae9 | ||
|
|
60539f067e | ||
|
|
d486d13814 | ||
|
|
2de462bea7 | ||
|
|
5d7cb923d0 | ||
|
|
8520626698 | ||
|
|
9d57625a58 | ||
|
|
b60a834a97 | ||
|
|
49e97628f4 | ||
|
|
5b5f0128c9 | ||
|
|
b5ed975753 | ||
|
|
f0c20f05b7 | ||
|
|
d769c974ab | ||
|
|
4d0d947bf1 | ||
|
|
2738249b7d | ||
|
|
6f1c636c7e | ||
|
|
70047f9bc7 | ||
|
|
6088526cd8 | ||
|
|
0e02d3bc63 | ||
|
|
f289e0290b | ||
|
|
3e25f8bde6 | ||
|
|
84d7d5b467 | ||
|
|
e57fc8314f | ||
|
|
60b042fbe6 | ||
|
|
70d2fb850d | ||
|
|
0cb799a37d | ||
|
|
812a50b07f | ||
|
|
a4f9a98de3 | ||
|
|
6f44f27802 | ||
|
|
b64262402e | ||
|
|
4d79d51820 | ||
|
|
44130b741e | ||
|
|
1ac661d847 | ||
|
|
401f5f7e4c | ||
|
|
eee5186ffd | ||
|
|
ac957846a2 | ||
|
|
bf6b90c665 | ||
|
|
499b696774 | ||
|
|
8bcded107d | ||
|
|
26788350a5 | ||
|
|
37e0116875 | ||
|
|
6a5e45a550 | ||
|
|
fd6a6949fb | ||
|
|
4cda4f477d | ||
|
|
7959141d87 | ||
|
|
53ce2f6947 | ||
|
|
161e51556b | ||
|
|
fc24f8e624 | ||
|
|
b5602fc4a4 |
263
CHANGELOG
263
CHANGELOG
@@ -1,3 +1,266 @@
|
||||
2020-08-14 Version: 1.36.582
|
||||
- Supported CheckCloudResourceAuthorized API.
|
||||
|
||||
2020-08-14 Version: 1.36.581
|
||||
- Add project Api.
|
||||
|
||||
2020-08-13 Version: 1.36.580
|
||||
- Add PipCode and CommodityCode for QueryInstanceBill, QueryBillOverview, QueryBill, QuerySettleBill, QueryAccountBill, QuerySplitItemBill.
|
||||
- Support BillOwnerId filter for QueryInstanceBill, QueryBillOverview, QueryBill, QuerySettleBill, QueryAccountBill, QuerySplitItemBill.
|
||||
|
||||
2020-08-13 Version: 1.36.579
|
||||
- Release DetectKneeXRay DetectSpineMRI TranslateMed.
|
||||
|
||||
2020-08-13 Version: 1.36.578
|
||||
- Release DetectKneeXRay DetectSpineMRI TranslateMed.
|
||||
|
||||
2020-08-13 Version: 1.36.577
|
||||
- Release DetectKneeXRay DetectSpineMRI TranslateMed.
|
||||
|
||||
2020-08-13 Version: 1.36.576
|
||||
- GetImageTranslate add column orc.
|
||||
|
||||
2020-08-13 Version: 1.36.575
|
||||
- DescribePrice update amount parameters type, float to string.
|
||||
- Add ResourceGroupId parameter to support resource group.
|
||||
|
||||
2020-08-13 Version: 1.36.574
|
||||
- Release SegmentHalfBody.
|
||||
|
||||
2020-08-13 Version: 1.36.573
|
||||
- Release SegmentHalfBody.
|
||||
|
||||
2020-08-12 Version: 1.36.572
|
||||
- Support corp group api.
|
||||
|
||||
2020-08-12 Version: 1.36.571
|
||||
- Add pipeline status api.
|
||||
|
||||
2020-08-12 Version: 1.36.570
|
||||
- Generated 2015-01-01 for `R-kvstore`.
|
||||
- SyncDtsStatus API add TaskId parameter.
|
||||
|
||||
2020-08-11 Version: 1.36.569
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2020-08-11 Version: 1.36.568
|
||||
- Update DescribeRefreshTask.
|
||||
|
||||
2020-08-11 Version: 1.36.567
|
||||
- Add ResourceGroup in resource snapshot.
|
||||
|
||||
2020-08-10 Version: 1.36.566
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2020-08-10 Version: 1.36.565
|
||||
- Add source id for list face detail.
|
||||
|
||||
2020-08-10 Version: 1.36.564
|
||||
- Add extend value for list event detail.
|
||||
|
||||
2020-08-09 Version: 1.36.563
|
||||
- Add extend value for list event detail.
|
||||
|
||||
2020-08-08 Version: 1.36.562
|
||||
- Update SearchImage.
|
||||
|
||||
2020-08-07 Version: 1.36.561
|
||||
- GetTitleDiagnose GetTitleGenerate GetImageTranslate supported.
|
||||
|
||||
2020-08-07 Version: 1.36.560
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2020-08-07 Version: 1.36.559
|
||||
- GetTitleDiagnose GetTitleGenerate GetImageTranslate supported.
|
||||
|
||||
2020-08-07 Version: 1.36.558
|
||||
- Add FindServiceList and GetService qps.
|
||||
|
||||
2020-08-06 Version: 1.36.557
|
||||
- Add Smart Cloudauth API.
|
||||
|
||||
2020-08-04 Version: 1.36.556
|
||||
- Update RecognizeTable.
|
||||
|
||||
2020-08-04 Version: 1.36.555
|
||||
- Add Image Url parameter for invoke motor algorithm.
|
||||
|
||||
2020-08-04 Version: 1.36.554
|
||||
- Add source picture url for Monitor.
|
||||
|
||||
2020-08-03 Version: 1.36.553
|
||||
- Add source picture url for Monitor.
|
||||
|
||||
2020-08-03 Version: 1.36.552
|
||||
- Fix Some API Response Define.
|
||||
|
||||
2020-08-03 Version: 1.36.551
|
||||
- Add source picture url for Monitor.
|
||||
|
||||
2020-08-03 Version: 1.36.550
|
||||
- Add Voice Synchronous Scan API.
|
||||
|
||||
2020-08-03 Version: 1.36.549
|
||||
- Add ExtractPedestrianFeatureAttribute.
|
||||
|
||||
2020-07-31 Version: 1.36.548
|
||||
- Update DetectCelebrity.
|
||||
|
||||
2020-07-31 Version: 1.36.547
|
||||
- Edit GetStack api.
|
||||
|
||||
2020-07-30 Version: 1.36.546
|
||||
- Add Smart Cloudauth API.
|
||||
|
||||
2020-07-30 Version: 1.36.545
|
||||
- Supported ChatApp for SDK.
|
||||
|
||||
2020-07-30 Version: 1.36.544
|
||||
- Generated 2020-06-29 for `alinlp`.
|
||||
|
||||
2020-07-29 Version: 1.36.543
|
||||
- Add CreateGetDBListFromAgentTask.
|
||||
- Add GetDBListFromAgent.
|
||||
|
||||
2020-07-29 Version: 1.36.542
|
||||
- API GetTaskStatus return task detail.
|
||||
|
||||
2020-07-29 Version: 1.36.541
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2020-07-27 Version: 1.36.540
|
||||
- Supported CheckCloudResourceAuthorized API.
|
||||
|
||||
2020-07-27 Version: 1.36.539
|
||||
- Add HSF apis.
|
||||
|
||||
2020-07-24 Version: 1.36.538
|
||||
- Edit ListTraceApp api with add tags.
|
||||
- Edit SearchTraceAppByName api with add tags.
|
||||
- Edut SearchTraceAppByPage api with add tags.
|
||||
|
||||
2020-07-24 Version: 1.36.537
|
||||
- Add DescribeBackupTasks.
|
||||
|
||||
2020-07-24 Version: 1.36.536
|
||||
- Support GetImageCroppingSuggestions API.
|
||||
- Add Remarks to face group related APIs.
|
||||
- Add Model parameter to blind watermark related APIs.
|
||||
|
||||
2020-07-24 Version: 1.36.535
|
||||
- First build.
|
||||
|
||||
2020-07-23 Version: 1.36.534
|
||||
- Supported CloudGame.
|
||||
|
||||
2020-07-23 Version: 1.36.533
|
||||
- Supported AAA for BBB.
|
||||
- Fixed bugs for CCC.
|
||||
|
||||
2020-07-23 Version: 1.36.532
|
||||
- Add AddSecretBlacklist and DeleteSecretBlacklist.
|
||||
- Suppoort ASR.
|
||||
|
||||
2020-07-23 Version: 1.36.531
|
||||
- Add GenerateAndExportDataKey, ExportDataKey, ReEncrypt api.
|
||||
|
||||
2020-07-23 Version: 1.36.530
|
||||
- Add GenerateAndExportDataKey, ExportDataKey, ReEncrypt api.
|
||||
|
||||
2020-07-22 Version: 1.36.529
|
||||
- Generated 2015-01-01 for `R-kvstore`.
|
||||
- Add SyncDtsStatus API.
|
||||
|
||||
2020-07-22 Version: 1.36.528
|
||||
- Add snapshot settings.
|
||||
- Add ElasticTask.
|
||||
|
||||
2020-07-22 Version: 1.36.527
|
||||
- Add SourceId for SearchFace.
|
||||
|
||||
2020-07-22 Version: 1.36.526
|
||||
- Add source id for file uploader.
|
||||
|
||||
2020-07-22 Version: 1.36.525
|
||||
- Add source id for file uploader.
|
||||
|
||||
2020-07-21 Version: 1.36.524
|
||||
- Support Tag API.
|
||||
|
||||
2020-07-21 Version: 1.36.523
|
||||
- Add algorithm type for ListPerson.
|
||||
|
||||
2020-07-17 Version: 1.36.522
|
||||
- Add DescribeRegions.
|
||||
- Modify DescribeFullBackupList.
|
||||
- Modify DescribeBackupPlanList.
|
||||
- Modify DescribeRestoreRangeInfo.
|
||||
|
||||
2020-07-17 Version: 1.36.521
|
||||
- Add DescribeDBClusterAuditLogCollector.
|
||||
- Add DescribeBackupPolicy.
|
||||
- Support polardb for pgsql and oracle customize endpoints.
|
||||
|
||||
2020-07-17 Version: 1.36.520
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
2020-07-15 Version: 1.36.519
|
||||
- Edit ListTraceApp api.
|
||||
- Edit SearchTraceAppByName api.
|
||||
- Edut SearchTraceAppByPage api.
|
||||
|
||||
2020-07-15 Version: 1.36.518
|
||||
- Modify ConfigureBackupPlan.
|
||||
- Modify DescribeFullBackupList.
|
||||
- Modify DescribeBackupPlanList.
|
||||
- Modify DescribeRestoreRangeInfo.
|
||||
|
||||
2020-07-15 Version: 1.36.517
|
||||
- Support ModifyImageAttribute by LaunchPermission.
|
||||
- Support ImageFamily.
|
||||
|
||||
2020-07-14 Version: 1.36.516
|
||||
- Add ListEventAlgorithmResult API.
|
||||
|
||||
2020-07-14 Version: 1.36.515
|
||||
- Add ListEventAlgorithmResult API.
|
||||
|
||||
2020-07-14 Version: 1.36.514
|
||||
- Add ListBodyAlgorithmResult API.
|
||||
|
||||
2020-07-14 Version: 1.36.513
|
||||
- Add ListBodyAlgorithmResult API.
|
||||
|
||||
2020-07-14 Version: 1.36.512
|
||||
- Add ListBodyAlgorithmResult API.
|
||||
|
||||
2020-07-10 Version: 1.36.511
|
||||
- Add ListBodyAlgorithmResult API.
|
||||
|
||||
2020-07-10 Version: 1.36.510
|
||||
- Add ListBodyAlgorithmResult API.
|
||||
|
||||
2020-07-08 Version: 1.36.509
|
||||
- Remove GetFootwearPosition PullTakeShoesEvent PullTryOnShoesEvent.
|
||||
- Add GetFootwearEvent.
|
||||
- Please ignore the pd s pot.
|
||||
|
||||
2020-07-08 Version: 1.36.508
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2020-07-08 Version: 1.36.507
|
||||
- Add video compose api.
|
||||
|
||||
2020-07-08 Version: 1.36.506
|
||||
- Add video summarization related API.
|
||||
|
||||
2020-07-07 Version: 1.36.505
|
||||
- Add video summarization related API.
|
||||
|
||||
2020-07-07 Version: 1.36.504
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2020-07-03 Version: 1.36.503
|
||||
- Supported UpdateUserBucketConfig.
|
||||
|
||||
|
||||
@@ -35,6 +35,10 @@ set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/DescribeAccountsResult.h
|
||||
include/alibabacloud/adb/model/DescribeAllDataSourceRequest.h
|
||||
include/alibabacloud/adb/model/DescribeAllDataSourceResult.h
|
||||
include/alibabacloud/adb/model/DescribeAuditLogConfigRequest.h
|
||||
include/alibabacloud/adb/model/DescribeAuditLogConfigResult.h
|
||||
include/alibabacloud/adb/model/DescribeAuditLogRecordsRequest.h
|
||||
include/alibabacloud/adb/model/DescribeAuditLogRecordsResult.h
|
||||
include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h
|
||||
include/alibabacloud/adb/model/DescribeAutoRenewAttributeResult.h
|
||||
include/alibabacloud/adb/model/DescribeAvailableResourceRequest.h
|
||||
@@ -57,10 +61,6 @@ set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/DescribeDBClustersResult.h
|
||||
include/alibabacloud/adb/model/DescribeInclinedTablesRequest.h
|
||||
include/alibabacloud/adb/model/DescribeInclinedTablesResult.h
|
||||
include/alibabacloud/adb/model/DescribeLogStoreKeysRequest.h
|
||||
include/alibabacloud/adb/model/DescribeLogStoreKeysResult.h
|
||||
include/alibabacloud/adb/model/DescribeLoghubDetailRequest.h
|
||||
include/alibabacloud/adb/model/DescribeLoghubDetailResult.h
|
||||
include/alibabacloud/adb/model/DescribeOperatorPermissionRequest.h
|
||||
include/alibabacloud/adb/model/DescribeOperatorPermissionResult.h
|
||||
include/alibabacloud/adb/model/DescribeProcessListRequest.h
|
||||
@@ -75,6 +75,8 @@ set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/DescribeSlowLogTrendResult.h
|
||||
include/alibabacloud/adb/model/DescribeTableDetailRequest.h
|
||||
include/alibabacloud/adb/model/DescribeTableDetailResult.h
|
||||
include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseRequest.h
|
||||
include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseResult.h
|
||||
include/alibabacloud/adb/model/DescribeTablesRequest.h
|
||||
include/alibabacloud/adb/model/DescribeTablesResult.h
|
||||
include/alibabacloud/adb/model/DescribeTaskInfoRequest.h
|
||||
@@ -87,6 +89,8 @@ set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/ListTagResourcesResult.h
|
||||
include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h
|
||||
include/alibabacloud/adb/model/ModifyAccountDescriptionResult.h
|
||||
include/alibabacloud/adb/model/ModifyAuditLogConfigRequest.h
|
||||
include/alibabacloud/adb/model/ModifyAuditLogConfigResult.h
|
||||
include/alibabacloud/adb/model/ModifyAutoRenewAttributeRequest.h
|
||||
include/alibabacloud/adb/model/ModifyAutoRenewAttributeResult.h
|
||||
include/alibabacloud/adb/model/ModifyBackupPolicyRequest.h
|
||||
@@ -130,6 +134,10 @@ set(adb_src
|
||||
src/model/DescribeAccountsResult.cc
|
||||
src/model/DescribeAllDataSourceRequest.cc
|
||||
src/model/DescribeAllDataSourceResult.cc
|
||||
src/model/DescribeAuditLogConfigRequest.cc
|
||||
src/model/DescribeAuditLogConfigResult.cc
|
||||
src/model/DescribeAuditLogRecordsRequest.cc
|
||||
src/model/DescribeAuditLogRecordsResult.cc
|
||||
src/model/DescribeAutoRenewAttributeRequest.cc
|
||||
src/model/DescribeAutoRenewAttributeResult.cc
|
||||
src/model/DescribeAvailableResourceRequest.cc
|
||||
@@ -152,10 +160,6 @@ set(adb_src
|
||||
src/model/DescribeDBClustersResult.cc
|
||||
src/model/DescribeInclinedTablesRequest.cc
|
||||
src/model/DescribeInclinedTablesResult.cc
|
||||
src/model/DescribeLogStoreKeysRequest.cc
|
||||
src/model/DescribeLogStoreKeysResult.cc
|
||||
src/model/DescribeLoghubDetailRequest.cc
|
||||
src/model/DescribeLoghubDetailResult.cc
|
||||
src/model/DescribeOperatorPermissionRequest.cc
|
||||
src/model/DescribeOperatorPermissionResult.cc
|
||||
src/model/DescribeProcessListRequest.cc
|
||||
@@ -170,6 +174,8 @@ set(adb_src
|
||||
src/model/DescribeSlowLogTrendResult.cc
|
||||
src/model/DescribeTableDetailRequest.cc
|
||||
src/model/DescribeTableDetailResult.cc
|
||||
src/model/DescribeTablePartitionDiagnoseRequest.cc
|
||||
src/model/DescribeTablePartitionDiagnoseResult.cc
|
||||
src/model/DescribeTablesRequest.cc
|
||||
src/model/DescribeTablesResult.cc
|
||||
src/model/DescribeTaskInfoRequest.cc
|
||||
@@ -182,6 +188,8 @@ set(adb_src
|
||||
src/model/ListTagResourcesResult.cc
|
||||
src/model/ModifyAccountDescriptionRequest.cc
|
||||
src/model/ModifyAccountDescriptionResult.cc
|
||||
src/model/ModifyAuditLogConfigRequest.cc
|
||||
src/model/ModifyAuditLogConfigResult.cc
|
||||
src/model/ModifyAutoRenewAttributeRequest.cc
|
||||
src/model/ModifyAutoRenewAttributeResult.cc
|
||||
src/model/ModifyBackupPolicyRequest.cc
|
||||
|
||||
@@ -36,6 +36,10 @@
|
||||
#include "model/DescribeAccountsResult.h"
|
||||
#include "model/DescribeAllDataSourceRequest.h"
|
||||
#include "model/DescribeAllDataSourceResult.h"
|
||||
#include "model/DescribeAuditLogConfigRequest.h"
|
||||
#include "model/DescribeAuditLogConfigResult.h"
|
||||
#include "model/DescribeAuditLogRecordsRequest.h"
|
||||
#include "model/DescribeAuditLogRecordsResult.h"
|
||||
#include "model/DescribeAutoRenewAttributeRequest.h"
|
||||
#include "model/DescribeAutoRenewAttributeResult.h"
|
||||
#include "model/DescribeAvailableResourceRequest.h"
|
||||
@@ -58,10 +62,6 @@
|
||||
#include "model/DescribeDBClustersResult.h"
|
||||
#include "model/DescribeInclinedTablesRequest.h"
|
||||
#include "model/DescribeInclinedTablesResult.h"
|
||||
#include "model/DescribeLogStoreKeysRequest.h"
|
||||
#include "model/DescribeLogStoreKeysResult.h"
|
||||
#include "model/DescribeLoghubDetailRequest.h"
|
||||
#include "model/DescribeLoghubDetailResult.h"
|
||||
#include "model/DescribeOperatorPermissionRequest.h"
|
||||
#include "model/DescribeOperatorPermissionResult.h"
|
||||
#include "model/DescribeProcessListRequest.h"
|
||||
@@ -76,6 +76,8 @@
|
||||
#include "model/DescribeSlowLogTrendResult.h"
|
||||
#include "model/DescribeTableDetailRequest.h"
|
||||
#include "model/DescribeTableDetailResult.h"
|
||||
#include "model/DescribeTablePartitionDiagnoseRequest.h"
|
||||
#include "model/DescribeTablePartitionDiagnoseResult.h"
|
||||
#include "model/DescribeTablesRequest.h"
|
||||
#include "model/DescribeTablesResult.h"
|
||||
#include "model/DescribeTaskInfoRequest.h"
|
||||
@@ -88,6 +90,8 @@
|
||||
#include "model/ListTagResourcesResult.h"
|
||||
#include "model/ModifyAccountDescriptionRequest.h"
|
||||
#include "model/ModifyAccountDescriptionResult.h"
|
||||
#include "model/ModifyAuditLogConfigRequest.h"
|
||||
#include "model/ModifyAuditLogConfigResult.h"
|
||||
#include "model/ModifyAutoRenewAttributeRequest.h"
|
||||
#include "model/ModifyAutoRenewAttributeResult.h"
|
||||
#include "model/ModifyBackupPolicyRequest.h"
|
||||
@@ -144,6 +148,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeAllDataSourceResult> DescribeAllDataSourceOutcome;
|
||||
typedef std::future<DescribeAllDataSourceOutcome> DescribeAllDataSourceOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeAllDataSourceRequest&, const DescribeAllDataSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAllDataSourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAuditLogConfigResult> DescribeAuditLogConfigOutcome;
|
||||
typedef std::future<DescribeAuditLogConfigOutcome> DescribeAuditLogConfigOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeAuditLogConfigRequest&, const DescribeAuditLogConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAuditLogConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAuditLogRecordsResult> DescribeAuditLogRecordsOutcome;
|
||||
typedef std::future<DescribeAuditLogRecordsOutcome> DescribeAuditLogRecordsOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeAuditLogRecordsRequest&, const DescribeAuditLogRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAuditLogRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAutoRenewAttributeResult> DescribeAutoRenewAttributeOutcome;
|
||||
typedef std::future<DescribeAutoRenewAttributeOutcome> DescribeAutoRenewAttributeOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeAutoRenewAttributeRequest&, const DescribeAutoRenewAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAutoRenewAttributeAsyncHandler;
|
||||
@@ -177,12 +187,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeInclinedTablesResult> DescribeInclinedTablesOutcome;
|
||||
typedef std::future<DescribeInclinedTablesOutcome> DescribeInclinedTablesOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeInclinedTablesRequest&, const DescribeInclinedTablesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInclinedTablesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLogStoreKeysResult> DescribeLogStoreKeysOutcome;
|
||||
typedef std::future<DescribeLogStoreKeysOutcome> DescribeLogStoreKeysOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeLogStoreKeysRequest&, const DescribeLogStoreKeysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLogStoreKeysAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLoghubDetailResult> DescribeLoghubDetailOutcome;
|
||||
typedef std::future<DescribeLoghubDetailOutcome> DescribeLoghubDetailOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeLoghubDetailRequest&, const DescribeLoghubDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLoghubDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeOperatorPermissionResult> DescribeOperatorPermissionOutcome;
|
||||
typedef std::future<DescribeOperatorPermissionOutcome> DescribeOperatorPermissionOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeOperatorPermissionRequest&, const DescribeOperatorPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeOperatorPermissionAsyncHandler;
|
||||
@@ -204,6 +208,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeTableDetailResult> DescribeTableDetailOutcome;
|
||||
typedef std::future<DescribeTableDetailOutcome> DescribeTableDetailOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeTableDetailRequest&, const DescribeTableDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTableDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTablePartitionDiagnoseResult> DescribeTablePartitionDiagnoseOutcome;
|
||||
typedef std::future<DescribeTablePartitionDiagnoseOutcome> DescribeTablePartitionDiagnoseOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeTablePartitionDiagnoseRequest&, const DescribeTablePartitionDiagnoseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTablePartitionDiagnoseAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTablesResult> DescribeTablesOutcome;
|
||||
typedef std::future<DescribeTablesOutcome> DescribeTablesOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeTablesRequest&, const DescribeTablesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTablesAsyncHandler;
|
||||
@@ -222,6 +229,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyAccountDescriptionResult> ModifyAccountDescriptionOutcome;
|
||||
typedef std::future<ModifyAccountDescriptionOutcome> ModifyAccountDescriptionOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyAccountDescriptionRequest&, const ModifyAccountDescriptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAccountDescriptionAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyAuditLogConfigResult> ModifyAuditLogConfigOutcome;
|
||||
typedef std::future<ModifyAuditLogConfigOutcome> ModifyAuditLogConfigOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyAuditLogConfigRequest&, const ModifyAuditLogConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAuditLogConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyAutoRenewAttributeResult> ModifyAutoRenewAttributeOutcome;
|
||||
typedef std::future<ModifyAutoRenewAttributeOutcome> ModifyAutoRenewAttributeOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyAutoRenewAttributeRequest&, const ModifyAutoRenewAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAutoRenewAttributeAsyncHandler;
|
||||
@@ -287,6 +297,12 @@ namespace AlibabaCloud
|
||||
DescribeAllDataSourceOutcome describeAllDataSource(const Model::DescribeAllDataSourceRequest &request)const;
|
||||
void describeAllDataSourceAsync(const Model::DescribeAllDataSourceRequest& request, const DescribeAllDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAllDataSourceOutcomeCallable describeAllDataSourceCallable(const Model::DescribeAllDataSourceRequest& request) const;
|
||||
DescribeAuditLogConfigOutcome describeAuditLogConfig(const Model::DescribeAuditLogConfigRequest &request)const;
|
||||
void describeAuditLogConfigAsync(const Model::DescribeAuditLogConfigRequest& request, const DescribeAuditLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAuditLogConfigOutcomeCallable describeAuditLogConfigCallable(const Model::DescribeAuditLogConfigRequest& request) const;
|
||||
DescribeAuditLogRecordsOutcome describeAuditLogRecords(const Model::DescribeAuditLogRecordsRequest &request)const;
|
||||
void describeAuditLogRecordsAsync(const Model::DescribeAuditLogRecordsRequest& request, const DescribeAuditLogRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAuditLogRecordsOutcomeCallable describeAuditLogRecordsCallable(const Model::DescribeAuditLogRecordsRequest& request) const;
|
||||
DescribeAutoRenewAttributeOutcome describeAutoRenewAttribute(const Model::DescribeAutoRenewAttributeRequest &request)const;
|
||||
void describeAutoRenewAttributeAsync(const Model::DescribeAutoRenewAttributeRequest& request, const DescribeAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAutoRenewAttributeOutcomeCallable describeAutoRenewAttributeCallable(const Model::DescribeAutoRenewAttributeRequest& request) const;
|
||||
@@ -320,12 +336,6 @@ namespace AlibabaCloud
|
||||
DescribeInclinedTablesOutcome describeInclinedTables(const Model::DescribeInclinedTablesRequest &request)const;
|
||||
void describeInclinedTablesAsync(const Model::DescribeInclinedTablesRequest& request, const DescribeInclinedTablesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInclinedTablesOutcomeCallable describeInclinedTablesCallable(const Model::DescribeInclinedTablesRequest& request) const;
|
||||
DescribeLogStoreKeysOutcome describeLogStoreKeys(const Model::DescribeLogStoreKeysRequest &request)const;
|
||||
void describeLogStoreKeysAsync(const Model::DescribeLogStoreKeysRequest& request, const DescribeLogStoreKeysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLogStoreKeysOutcomeCallable describeLogStoreKeysCallable(const Model::DescribeLogStoreKeysRequest& request) const;
|
||||
DescribeLoghubDetailOutcome describeLoghubDetail(const Model::DescribeLoghubDetailRequest &request)const;
|
||||
void describeLoghubDetailAsync(const Model::DescribeLoghubDetailRequest& request, const DescribeLoghubDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLoghubDetailOutcomeCallable describeLoghubDetailCallable(const Model::DescribeLoghubDetailRequest& request) const;
|
||||
DescribeOperatorPermissionOutcome describeOperatorPermission(const Model::DescribeOperatorPermissionRequest &request)const;
|
||||
void describeOperatorPermissionAsync(const Model::DescribeOperatorPermissionRequest& request, const DescribeOperatorPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeOperatorPermissionOutcomeCallable describeOperatorPermissionCallable(const Model::DescribeOperatorPermissionRequest& request) const;
|
||||
@@ -347,6 +357,9 @@ namespace AlibabaCloud
|
||||
DescribeTableDetailOutcome describeTableDetail(const Model::DescribeTableDetailRequest &request)const;
|
||||
void describeTableDetailAsync(const Model::DescribeTableDetailRequest& request, const DescribeTableDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTableDetailOutcomeCallable describeTableDetailCallable(const Model::DescribeTableDetailRequest& request) const;
|
||||
DescribeTablePartitionDiagnoseOutcome describeTablePartitionDiagnose(const Model::DescribeTablePartitionDiagnoseRequest &request)const;
|
||||
void describeTablePartitionDiagnoseAsync(const Model::DescribeTablePartitionDiagnoseRequest& request, const DescribeTablePartitionDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTablePartitionDiagnoseOutcomeCallable describeTablePartitionDiagnoseCallable(const Model::DescribeTablePartitionDiagnoseRequest& request) const;
|
||||
DescribeTablesOutcome describeTables(const Model::DescribeTablesRequest &request)const;
|
||||
void describeTablesAsync(const Model::DescribeTablesRequest& request, const DescribeTablesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTablesOutcomeCallable describeTablesCallable(const Model::DescribeTablesRequest& request) const;
|
||||
@@ -365,6 +378,9 @@ namespace AlibabaCloud
|
||||
ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const;
|
||||
void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyAccountDescriptionOutcomeCallable modifyAccountDescriptionCallable(const Model::ModifyAccountDescriptionRequest& request) const;
|
||||
ModifyAuditLogConfigOutcome modifyAuditLogConfig(const Model::ModifyAuditLogConfigRequest &request)const;
|
||||
void modifyAuditLogConfigAsync(const Model::ModifyAuditLogConfigRequest& request, const ModifyAuditLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyAuditLogConfigOutcomeCallable modifyAuditLogConfigCallable(const Model::ModifyAuditLogConfigRequest& request) const;
|
||||
ModifyAutoRenewAttributeOutcome modifyAutoRenewAttribute(const Model::ModifyAutoRenewAttributeRequest &request)const;
|
||||
void modifyAutoRenewAttributeAsync(const Model::ModifyAutoRenewAttributeRequest& request, const ModifyAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyAutoRenewAttributeOutcomeCallable modifyAutoRenewAttributeCallable(const Model::ModifyAutoRenewAttributeRequest& request) const;
|
||||
|
||||
@@ -41,8 +41,16 @@ namespace AlibabaCloud
|
||||
void setDBClusterDescription(const std::string& dBClusterDescription);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getStorageType()const;
|
||||
void setStorageType(const std::string& storageType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getMode()const;
|
||||
void setMode(const std::string& mode);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getStorageResource()const;
|
||||
void setStorageResource(const std::string& storageResource);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDBClusterCategory()const;
|
||||
@@ -69,10 +77,14 @@ namespace AlibabaCloud
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::string getDBNodeStorage()const;
|
||||
void setDBNodeStorage(const std::string& dBNodeStorage);
|
||||
std::string getExecutorCount()const;
|
||||
void setExecutorCount(const std::string& executorCount);
|
||||
std::string getVPCId()const;
|
||||
void setVPCId(const std::string& vPCId);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getComputeResource()const;
|
||||
void setComputeResource(const std::string& computeResource);
|
||||
std::string getPayType()const;
|
||||
void setPayType(const std::string& payType);
|
||||
|
||||
@@ -80,7 +92,11 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
std::string dBClusterDescription_;
|
||||
std::string clientToken_;
|
||||
std::string storageType_;
|
||||
std::string accessKeyId_;
|
||||
std::string mode_;
|
||||
std::string resourceGroupId_;
|
||||
std::string storageResource_;
|
||||
std::string regionId_;
|
||||
std::string dBClusterCategory_;
|
||||
std::string dBClusterNetworkType_;
|
||||
@@ -94,8 +110,10 @@ namespace AlibabaCloud
|
||||
std::string usedTime_;
|
||||
std::string vSwitchId_;
|
||||
std::string dBNodeStorage_;
|
||||
std::string executorCount_;
|
||||
std::string vPCId_;
|
||||
std::string zoneId_;
|
||||
std::string computeResource_;
|
||||
std::string payType_;
|
||||
|
||||
};
|
||||
|
||||
@@ -37,12 +37,14 @@ namespace AlibabaCloud
|
||||
CreateDBClusterResult();
|
||||
explicit CreateDBClusterResult(const std::string &payload);
|
||||
~CreateDBClusterResult();
|
||||
std::string getResourceGroupId()const;
|
||||
std::string getDBClusterId()const;
|
||||
std::string getOrderId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resourceGroupId_;
|
||||
std::string dBClusterId_;
|
||||
std::string orderId_;
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,12 +28,12 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeLoghubDetailRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeAuditLogConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeLoghubDetailRequest();
|
||||
~DescribeLoghubDetailRequest();
|
||||
DescribeAuditLogConfigRequest();
|
||||
~DescribeAuditLogConfigRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
@@ -41,29 +41,26 @@ namespace AlibabaCloud
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getProjectName()const;
|
||||
void setProjectName(const std::string& projectName);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
void setDBClusterId(const std::string& dBClusterId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getExportName()const;
|
||||
void setExportName(const std::string& exportName);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string projectName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string exportName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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_ADB_MODEL_DESCRIBEAUDITLOGCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeAuditLogConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeAuditLogConfigResult();
|
||||
explicit DescribeAuditLogConfigResult(const std::string &payload);
|
||||
~DescribeAuditLogConfigResult();
|
||||
std::string getAuditLogStatus()const;
|
||||
std::string getDBClusterId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string auditLogStatus_;
|
||||
std::string dBClusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGRESULT_H_
|
||||
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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_ADB_MODEL_DESCRIBEAUDITLOGRECORDSREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeAuditLogRecordsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeAuditLogRecordsRequest();
|
||||
~DescribeAuditLogRecordsRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getHostAddress()const;
|
||||
void setHostAddress(const std::string& hostAddress);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getSqlType()const;
|
||||
void setSqlType(const std::string& sqlType);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
void setDBClusterId(const std::string& dBClusterId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getQueryKeyword()const;
|
||||
void setQueryKeyword(const std::string& queryKeyword);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getDBName()const;
|
||||
void setDBName(const std::string& dBName);
|
||||
std::string getSucceed()const;
|
||||
void setSucceed(const std::string& succeed);
|
||||
std::string getUser()const;
|
||||
void setUser(const std::string& user);
|
||||
std::string getOrderType()const;
|
||||
void setOrderType(const std::string& orderType);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string startTime_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string hostAddress_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::string sqlType_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
std::string queryKeyword_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
std::string dBName_;
|
||||
std::string succeed_;
|
||||
std::string user_;
|
||||
std::string orderType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSREQUEST_H_
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeAuditLogRecordsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct SlowLogRecord
|
||||
{
|
||||
std::string connId;
|
||||
std::string executeTime;
|
||||
std::string totalTime;
|
||||
std::string dBName;
|
||||
std::string processID;
|
||||
std::string hostAddress;
|
||||
std::string sQLType;
|
||||
std::string sQLText;
|
||||
std::string succeed;
|
||||
};
|
||||
|
||||
|
||||
DescribeAuditLogRecordsResult();
|
||||
explicit DescribeAuditLogRecordsResult(const std::string &payload);
|
||||
~DescribeAuditLogRecordsResult();
|
||||
std::string getTotalCount()const;
|
||||
std::string getPageSize()const;
|
||||
std::string getPageNumber()const;
|
||||
std::string getDBClusterId()const;
|
||||
std::vector<SlowLogRecord> getItems()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string totalCount_;
|
||||
std::string pageSize_;
|
||||
std::string pageNumber_;
|
||||
std::string dBClusterId_;
|
||||
std::vector<SlowLogRecord> items_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSRESULT_H_
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
@@ -58,6 +60,7 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -34,30 +34,53 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct AvailableZone
|
||||
{
|
||||
struct SupportedSerial
|
||||
struct SupportedModeItem
|
||||
{
|
||||
struct SupportedInstanceClass
|
||||
struct SupportedSerialListItem
|
||||
{
|
||||
struct SupportedNodeCount
|
||||
struct SupportedFlexibleResourceItem
|
||||
{
|
||||
struct NodeCount
|
||||
{
|
||||
std::string maxCount;
|
||||
std::string step;
|
||||
std::string minCount;
|
||||
};
|
||||
NodeCount nodeCount;
|
||||
std::vector<std::string> storageSize;
|
||||
std::string storageType;
|
||||
std::vector<std::string> supportedStorageResource;
|
||||
std::vector<std::string> supportedComputeResource;
|
||||
};
|
||||
std::string instanceClass;
|
||||
std::vector<SupportedInstanceClass::SupportedNodeCount> supportedNodeCountList;
|
||||
std::string tips;
|
||||
struct SupportedInstanceClass
|
||||
{
|
||||
struct SupportedNodeCount
|
||||
{
|
||||
struct NodeCount
|
||||
{
|
||||
std::string maxCount;
|
||||
std::string step;
|
||||
std::string minCount;
|
||||
};
|
||||
NodeCount nodeCount;
|
||||
std::vector<std::string> storageSize;
|
||||
};
|
||||
struct SupportedExecutor
|
||||
{
|
||||
struct NodeCount1
|
||||
{
|
||||
std::string maxCount;
|
||||
std::string step;
|
||||
std::string minCount;
|
||||
};
|
||||
NodeCount1 nodeCount1;
|
||||
};
|
||||
std::vector<SupportedInstanceClass::SupportedExecutor> supportedExecutorList;
|
||||
std::string instanceClass;
|
||||
std::vector<SupportedInstanceClass::SupportedNodeCount> supportedNodeCountList;
|
||||
std::string tips;
|
||||
};
|
||||
std::string serial;
|
||||
std::vector<SupportedSerialListItem::SupportedFlexibleResourceItem> supportedFlexibleResource;
|
||||
std::vector<SupportedSerialListItem::SupportedInstanceClass> supportedInstanceClassList;
|
||||
};
|
||||
std::string serial;
|
||||
std::vector<SupportedSerial::SupportedInstanceClass> supportedInstanceClassList;
|
||||
std::string mode;
|
||||
std::vector<SupportedModeItem::SupportedSerialListItem> supportedSerialList;
|
||||
};
|
||||
std::string zoneId;
|
||||
std::vector<AvailableZone::SupportedSerial> supportedSerialList;
|
||||
std::vector<AvailableZone::SupportedModeItem> supportedMode;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -39,15 +39,19 @@ namespace AlibabaCloud
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string storageResource;
|
||||
std::string category;
|
||||
std::string resourceGroupId;
|
||||
int port;
|
||||
std::string dBClusterId;
|
||||
std::string dBClusterNetworkType;
|
||||
std::string dBClusterType;
|
||||
std::string diskType;
|
||||
std::string dBVersion;
|
||||
std::string dtsJobId;
|
||||
long dBNodeCount;
|
||||
std::string commodityCode;
|
||||
std::string executorCount;
|
||||
std::string lockReason;
|
||||
std::string maintainTime;
|
||||
std::vector<DBCluster::Tag> tags;
|
||||
@@ -57,7 +61,9 @@ namespace AlibabaCloud
|
||||
std::string vPCId;
|
||||
std::string dBClusterStatus;
|
||||
std::string vSwitchId;
|
||||
std::string mode;
|
||||
std::string dBClusterDescription;
|
||||
std::string computeResource;
|
||||
std::string expired;
|
||||
std::string lockMode;
|
||||
std::string payType;
|
||||
|
||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
@@ -72,6 +74,7 @@ namespace AlibabaCloud
|
||||
std::string dBClusterStatus_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::vector<Tag> tag_;
|
||||
|
||||
@@ -39,25 +39,39 @@ namespace AlibabaCloud
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
long dBNodeStorage;
|
||||
std::string storageResource;
|
||||
std::string category;
|
||||
std::string dBClusterStatus;
|
||||
std::string createTime;
|
||||
std::string resourceGroupId;
|
||||
std::string port;
|
||||
std::string dBClusterId;
|
||||
std::string dBClusterDescription;
|
||||
std::string expired;
|
||||
std::string payType;
|
||||
std::string lockMode;
|
||||
std::string dBNodeClass;
|
||||
std::string dBClusterNetworkType;
|
||||
std::string dBClusterType;
|
||||
std::string diskType;
|
||||
std::string dBVersion;
|
||||
std::string dtsJobId;
|
||||
long dBNodeCount;
|
||||
std::string commodityCode;
|
||||
std::string regionId;
|
||||
std::string expireTime;
|
||||
std::string executorCount;
|
||||
std::string lockReason;
|
||||
std::vector<DBCluster::Tag> tags;
|
||||
std::string engine;
|
||||
long dBNodeStorage;
|
||||
std::string zoneId;
|
||||
std::string vPCId;
|
||||
std::string dBClusterStatus;
|
||||
std::string createTime;
|
||||
std::string vSwitchId;
|
||||
std::string mode;
|
||||
std::string dBClusterDescription;
|
||||
std::string computeResource;
|
||||
std::string expired;
|
||||
std::string payType;
|
||||
std::string lockMode;
|
||||
std::string dBNodeClass;
|
||||
std::string vPCCloudInstanceId;
|
||||
std::string regionId;
|
||||
std::string expireTime;
|
||||
std::string connectionString;
|
||||
std::string rdsInstanceId;
|
||||
};
|
||||
|
||||
|
||||
@@ -1,78 +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_ADB_MODEL_DESCRIBELOGHUBDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeLoghubDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct LoghubInfo
|
||||
{
|
||||
struct LogHubStore
|
||||
{
|
||||
std::string type;
|
||||
std::string logKey;
|
||||
std::string fieldKey;
|
||||
};
|
||||
std::string description;
|
||||
std::string userName;
|
||||
std::string zoneId;
|
||||
std::string projectName;
|
||||
std::string deliverName;
|
||||
std::string deliverTime;
|
||||
std::string dBClusterId;
|
||||
std::string dBType;
|
||||
std::string tableName;
|
||||
bool filterDirtyData;
|
||||
std::string accessSecret;
|
||||
std::string logStoreName;
|
||||
std::string domainUrl;
|
||||
std::vector<LogHubStore> logHubStores;
|
||||
std::string regionId;
|
||||
std::string accessKey;
|
||||
std::string schemaName;
|
||||
std::string password;
|
||||
};
|
||||
|
||||
|
||||
DescribeLoghubDetailResult();
|
||||
explicit DescribeLoghubDetailResult(const std::string &payload);
|
||||
~DescribeLoghubDetailResult();
|
||||
LoghubInfo getLoghubInfo()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
LoghubInfo loghubInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILRESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSEREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeTablePartitionDiagnoseRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeTablePartitionDiagnoseRequest();
|
||||
~DescribeTablePartitionDiagnoseRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
void setDBClusterId(const std::string& dBClusterId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSEREQUEST_H_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSERESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeTablePartitionDiagnoseResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TablePartitionDiagnose
|
||||
{
|
||||
std::string tableName;
|
||||
int partitionNumber;
|
||||
std::string partitionDetail;
|
||||
std::string schemaName;
|
||||
};
|
||||
|
||||
|
||||
DescribeTablePartitionDiagnoseResult();
|
||||
explicit DescribeTablePartitionDiagnoseResult(const std::string &payload);
|
||||
~DescribeTablePartitionDiagnoseResult();
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
int getDBClusterId()const;
|
||||
long getSuggestMaxRecordsPerPartition()const;
|
||||
std::vector<TablePartitionDiagnose> getItems()const;
|
||||
long getSuggestMinRecordsPerPartition()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
int dBClusterId_;
|
||||
long suggestMaxRecordsPerPartition_;
|
||||
std::vector<TablePartitionDiagnose> items_;
|
||||
long suggestMinRecordsPerPartition_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSERESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,12 +28,12 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeLogStoreKeysRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_ADB_EXPORT ModifyAuditLogConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeLogStoreKeysRequest();
|
||||
~DescribeLogStoreKeysRequest();
|
||||
ModifyAuditLogConfigRequest();
|
||||
~ModifyAuditLogConfigRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
@@ -41,29 +41,29 @@ namespace AlibabaCloud
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getProjectName()const;
|
||||
void setProjectName(const std::string& projectName);
|
||||
std::string getLogStoreName()const;
|
||||
void setLogStoreName(const std::string& logStoreName);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
void setDBClusterId(const std::string& dBClusterId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAuditLogStatus()const;
|
||||
void setAuditLogStatus(const std::string& auditLogStatus);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string projectName_;
|
||||
std::string logStoreName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string auditLogStatus_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_H_
|
||||
@@ -14,22 +14,22 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_MODIFYAUDITLOGCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_R_KVSTORE_MODEL_MODIFYAUDITLOGCONFIGRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace R_kvstore
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_R_KVSTORE_EXPORT ModifyAuditLogConfigResult : public ServiceResult
|
||||
class ALIBABACLOUD_ADB_EXPORT ModifyAuditLogConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -46,4 +46,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_MODIFYAUDITLOGCONFIGRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGRESULT_H_
|
||||
@@ -39,8 +39,12 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getStorageResource()const;
|
||||
void setStorageResource(const std::string& storageResource);
|
||||
std::string getDBNodeClass()const;
|
||||
void setDBNodeClass(const std::string& dBNodeClass);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
@@ -53,20 +57,28 @@ namespace AlibabaCloud
|
||||
void setDBNodeGroupCount(const std::string& dBNodeGroupCount);
|
||||
std::string getDBNodeStorage()const;
|
||||
void setDBNodeStorage(const std::string& dBNodeStorage);
|
||||
std::string getExecutorCount()const;
|
||||
void setExecutorCount(const std::string& executorCount);
|
||||
std::string getModifyType()const;
|
||||
void setModifyType(const std::string& modifyType);
|
||||
std::string getComputeResource()const;
|
||||
void setComputeResource(const std::string& computeResource);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string storageResource_;
|
||||
std::string dBNodeClass_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string dBNodeGroupCount_;
|
||||
std::string dBNodeStorage_;
|
||||
std::string executorCount_;
|
||||
std::string modifyType_;
|
||||
std::string computeResource_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -303,6 +303,78 @@ AdbClient::DescribeAllDataSourceOutcomeCallable AdbClient::describeAllDataSource
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeAuditLogConfigOutcome AdbClient::describeAuditLogConfig(const DescribeAuditLogConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAuditLogConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAuditLogConfigOutcome(DescribeAuditLogConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeAuditLogConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeAuditLogConfigAsync(const DescribeAuditLogConfigRequest& request, const DescribeAuditLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAuditLogConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeAuditLogConfigOutcomeCallable AdbClient::describeAuditLogConfigCallable(const DescribeAuditLogConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAuditLogConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAuditLogConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeAuditLogRecordsOutcome AdbClient::describeAuditLogRecords(const DescribeAuditLogRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAuditLogRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAuditLogRecordsOutcome(DescribeAuditLogRecordsResult(outcome.result()));
|
||||
else
|
||||
return DescribeAuditLogRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeAuditLogRecordsAsync(const DescribeAuditLogRecordsRequest& request, const DescribeAuditLogRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAuditLogRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeAuditLogRecordsOutcomeCallable AdbClient::describeAuditLogRecordsCallable(const DescribeAuditLogRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAuditLogRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAuditLogRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeAutoRenewAttributeOutcome AdbClient::describeAutoRenewAttribute(const DescribeAutoRenewAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,78 +771,6 @@ AdbClient::DescribeInclinedTablesOutcomeCallable AdbClient::describeInclinedTabl
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeLogStoreKeysOutcome AdbClient::describeLogStoreKeys(const DescribeLogStoreKeysRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLogStoreKeysOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLogStoreKeysOutcome(DescribeLogStoreKeysResult(outcome.result()));
|
||||
else
|
||||
return DescribeLogStoreKeysOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeLogStoreKeysAsync(const DescribeLogStoreKeysRequest& request, const DescribeLogStoreKeysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLogStoreKeys(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeLogStoreKeysOutcomeCallable AdbClient::describeLogStoreKeysCallable(const DescribeLogStoreKeysRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLogStoreKeysOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLogStoreKeys(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeLoghubDetailOutcome AdbClient::describeLoghubDetail(const DescribeLoghubDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLoghubDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLoghubDetailOutcome(DescribeLoghubDetailResult(outcome.result()));
|
||||
else
|
||||
return DescribeLoghubDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeLoghubDetailAsync(const DescribeLoghubDetailRequest& request, const DescribeLoghubDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLoghubDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeLoghubDetailOutcomeCallable AdbClient::describeLoghubDetailCallable(const DescribeLoghubDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLoghubDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLoghubDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeOperatorPermissionOutcome AdbClient::describeOperatorPermission(const DescribeOperatorPermissionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1023,6 +1023,42 @@ AdbClient::DescribeTableDetailOutcomeCallable AdbClient::describeTableDetailCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeTablePartitionDiagnoseOutcome AdbClient::describeTablePartitionDiagnose(const DescribeTablePartitionDiagnoseRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeTablePartitionDiagnoseOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeTablePartitionDiagnoseOutcome(DescribeTablePartitionDiagnoseResult(outcome.result()));
|
||||
else
|
||||
return DescribeTablePartitionDiagnoseOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeTablePartitionDiagnoseAsync(const DescribeTablePartitionDiagnoseRequest& request, const DescribeTablePartitionDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeTablePartitionDiagnose(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeTablePartitionDiagnoseOutcomeCallable AdbClient::describeTablePartitionDiagnoseCallable(const DescribeTablePartitionDiagnoseRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeTablePartitionDiagnoseOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeTablePartitionDiagnose(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeTablesOutcome AdbClient::describeTables(const DescribeTablesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1239,6 +1275,42 @@ AdbClient::ModifyAccountDescriptionOutcomeCallable AdbClient::modifyAccountDescr
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::ModifyAuditLogConfigOutcome AdbClient::modifyAuditLogConfig(const ModifyAuditLogConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyAuditLogConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyAuditLogConfigOutcome(ModifyAuditLogConfigResult(outcome.result()));
|
||||
else
|
||||
return ModifyAuditLogConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::modifyAuditLogConfigAsync(const ModifyAuditLogConfigRequest& request, const ModifyAuditLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyAuditLogConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::ModifyAuditLogConfigOutcomeCallable AdbClient::modifyAuditLogConfigCallable(const ModifyAuditLogConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyAuditLogConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyAuditLogConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::ModifyAutoRenewAttributeOutcome AdbClient::modifyAutoRenewAttribute(const ModifyAutoRenewAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -60,6 +60,17 @@ void CreateDBClusterRequest::setClientToken(const std::string& clientToken)
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getStorageType()const
|
||||
{
|
||||
return storageType_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setStorageType(const std::string& storageType)
|
||||
{
|
||||
storageType_ = storageType;
|
||||
setParameter("StorageType", storageType);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -71,6 +82,39 @@ void CreateDBClusterRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getStorageResource()const
|
||||
{
|
||||
return storageResource_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setStorageResource(const std::string& storageResource)
|
||||
{
|
||||
storageResource_ = storageResource;
|
||||
setParameter("StorageResource", storageResource);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -214,6 +258,17 @@ void CreateDBClusterRequest::setDBNodeStorage(const std::string& dBNodeStorage)
|
||||
setParameter("DBNodeStorage", dBNodeStorage);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getExecutorCount()const
|
||||
{
|
||||
return executorCount_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setExecutorCount(const std::string& executorCount)
|
||||
{
|
||||
executorCount_ = executorCount;
|
||||
setParameter("ExecutorCount", executorCount);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getVPCId()const
|
||||
{
|
||||
return vPCId_;
|
||||
@@ -236,6 +291,17 @@ void CreateDBClusterRequest::setZoneId(const std::string& zoneId)
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getComputeResource()const
|
||||
{
|
||||
return computeResource_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setComputeResource(const std::string& computeResource)
|
||||
{
|
||||
computeResource_ = computeResource;
|
||||
setParameter("ComputeResource", computeResource);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
|
||||
@@ -43,9 +43,16 @@ void CreateDBClusterResult::parse(const std::string &payload)
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDBClusterResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string CreateDBClusterResult::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
|
||||
106
adb/src/model/DescribeAuditLogConfigRequest.cc
Normal file
106
adb/src/model/DescribeAuditLogConfigRequest.cc
Normal 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/adb/model/DescribeAuditLogConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeAuditLogConfigRequest;
|
||||
|
||||
DescribeAuditLogConfigRequest::DescribeAuditLogConfigRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeAuditLogConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAuditLogConfigRequest::~DescribeAuditLogConfigRequest()
|
||||
{}
|
||||
|
||||
long DescribeAuditLogConfigRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeAuditLogConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -14,39 +14,45 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeLogStoreKeysResult.h>
|
||||
#include <alibabacloud/adb/model/DescribeAuditLogConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeLogStoreKeysResult::DescribeLogStoreKeysResult() :
|
||||
DescribeAuditLogConfigResult::DescribeAuditLogConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLogStoreKeysResult::DescribeLogStoreKeysResult(const std::string &payload) :
|
||||
DescribeAuditLogConfigResult::DescribeAuditLogConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLogStoreKeysResult::~DescribeLogStoreKeysResult()
|
||||
DescribeAuditLogConfigResult::~DescribeAuditLogConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeLogStoreKeysResult::parse(const std::string &payload)
|
||||
void DescribeAuditLogConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLogStoreKeys = value["LogStoreKeys"]["LogStoreKey"];
|
||||
for (const auto &item : allLogStoreKeys)
|
||||
logStoreKeys_.push_back(item.asString());
|
||||
if(!value["AuditLogStatus"].isNull())
|
||||
auditLogStatus_ = value["AuditLogStatus"].asString();
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeLogStoreKeysResult::getLogStoreKeys()const
|
||||
std::string DescribeAuditLogConfigResult::getAuditLogStatus()const
|
||||
{
|
||||
return logStoreKeys_;
|
||||
return auditLogStatus_;
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigResult::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
227
adb/src/model/DescribeAuditLogRecordsRequest.cc
Normal file
227
adb/src/model/DescribeAuditLogRecordsRequest.cc
Normal file
@@ -0,0 +1,227 @@
|
||||
/*
|
||||
* 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/adb/model/DescribeAuditLogRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeAuditLogRecordsRequest;
|
||||
|
||||
DescribeAuditLogRecordsRequest::DescribeAuditLogRecordsRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeAuditLogRecords")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAuditLogRecordsRequest::~DescribeAuditLogRecordsRequest()
|
||||
{}
|
||||
|
||||
long DescribeAuditLogRecordsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
int DescribeAuditLogRecordsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getHostAddress()const
|
||||
{
|
||||
return hostAddress_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setHostAddress(const std::string& hostAddress)
|
||||
{
|
||||
hostAddress_ = hostAddress;
|
||||
setParameter("HostAddress", hostAddress);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeAuditLogRecordsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getSqlType()const
|
||||
{
|
||||
return sqlType_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setSqlType(const std::string& sqlType)
|
||||
{
|
||||
sqlType_ = sqlType;
|
||||
setParameter("SqlType", sqlType);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getQueryKeyword()const
|
||||
{
|
||||
return queryKeyword_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setQueryKeyword(const std::string& queryKeyword)
|
||||
{
|
||||
queryKeyword_ = queryKeyword;
|
||||
setParameter("QueryKeyword", queryKeyword);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeAuditLogRecordsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getDBName()const
|
||||
{
|
||||
return dBName_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setDBName(const std::string& dBName)
|
||||
{
|
||||
dBName_ = dBName;
|
||||
setParameter("DBName", dBName);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getSucceed()const
|
||||
{
|
||||
return succeed_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setSucceed(const std::string& succeed)
|
||||
{
|
||||
succeed_ = succeed;
|
||||
setParameter("Succeed", succeed);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getUser()const
|
||||
{
|
||||
return user_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setUser(const std::string& user)
|
||||
{
|
||||
user_ = user;
|
||||
setParameter("User", user);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getOrderType()const
|
||||
{
|
||||
return orderType_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setOrderType(const std::string& orderType)
|
||||
{
|
||||
orderType_ = orderType;
|
||||
setParameter("OrderType", orderType);
|
||||
}
|
||||
|
||||
101
adb/src/model/DescribeAuditLogRecordsResult.cc
Normal file
101
adb/src/model/DescribeAuditLogRecordsResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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/adb/model/DescribeAuditLogRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeAuditLogRecordsResult::DescribeAuditLogRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAuditLogRecordsResult::DescribeAuditLogRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAuditLogRecordsResult::~DescribeAuditLogRecordsResult()
|
||||
{}
|
||||
|
||||
void DescribeAuditLogRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["SlowLogRecord"];
|
||||
for (auto valueItemsSlowLogRecord : allItemsNode)
|
||||
{
|
||||
SlowLogRecord itemsObject;
|
||||
if(!valueItemsSlowLogRecord["HostAddress"].isNull())
|
||||
itemsObject.hostAddress = valueItemsSlowLogRecord["HostAddress"].asString();
|
||||
if(!valueItemsSlowLogRecord["DBName"].isNull())
|
||||
itemsObject.dBName = valueItemsSlowLogRecord["DBName"].asString();
|
||||
if(!valueItemsSlowLogRecord["SQLText"].isNull())
|
||||
itemsObject.sQLText = valueItemsSlowLogRecord["SQLText"].asString();
|
||||
if(!valueItemsSlowLogRecord["SQLType"].isNull())
|
||||
itemsObject.sQLType = valueItemsSlowLogRecord["SQLType"].asString();
|
||||
if(!valueItemsSlowLogRecord["ConnId"].isNull())
|
||||
itemsObject.connId = valueItemsSlowLogRecord["ConnId"].asString();
|
||||
if(!valueItemsSlowLogRecord["ExecuteTime"].isNull())
|
||||
itemsObject.executeTime = valueItemsSlowLogRecord["ExecuteTime"].asString();
|
||||
if(!valueItemsSlowLogRecord["Succeed"].isNull())
|
||||
itemsObject.succeed = valueItemsSlowLogRecord["Succeed"].asString();
|
||||
if(!valueItemsSlowLogRecord["TotalTime"].isNull())
|
||||
itemsObject.totalTime = valueItemsSlowLogRecord["TotalTime"].asString();
|
||||
if(!valueItemsSlowLogRecord["ProcessID"].isNull())
|
||||
itemsObject.processID = valueItemsSlowLogRecord["ProcessID"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = value["PageSize"].asString();
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsResult::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAuditLogRecordsResult::SlowLogRecord> DescribeAuditLogRecordsResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
@@ -60,6 +60,17 @@ void DescribeAutoRenewAttributeRequest::setAccessKeyId(const std::string& access
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeAutoRenewAttributeRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeAutoRenewAttributeRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeAutoRenewAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
@@ -45,39 +45,74 @@ void DescribeAvailableResourceResult::parse(const std::string &payload)
|
||||
AvailableZone availableZoneListObject;
|
||||
if(!valueAvailableZoneListAvailableZone["ZoneId"].isNull())
|
||||
availableZoneListObject.zoneId = valueAvailableZoneListAvailableZone["ZoneId"].asString();
|
||||
auto allSupportedSerialListNode = allAvailableZoneListNode["SupportedSerialList"]["SupportedSerial"];
|
||||
for (auto allAvailableZoneListNodeSupportedSerialListSupportedSerial : allSupportedSerialListNode)
|
||||
auto allSupportedModeNode = allAvailableZoneListNode["SupportedMode"]["SupportedModeItem"];
|
||||
for (auto allAvailableZoneListNodeSupportedModeSupportedModeItem : allSupportedModeNode)
|
||||
{
|
||||
AvailableZone::SupportedSerial supportedSerialListObject;
|
||||
if(!allAvailableZoneListNodeSupportedSerialListSupportedSerial["Serial"].isNull())
|
||||
supportedSerialListObject.serial = allAvailableZoneListNodeSupportedSerialListSupportedSerial["Serial"].asString();
|
||||
auto allSupportedInstanceClassListNode = allSupportedSerialListNode["SupportedInstanceClassList"]["SupportedInstanceClass"];
|
||||
for (auto allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass : allSupportedInstanceClassListNode)
|
||||
AvailableZone::SupportedModeItem supportedModeObject;
|
||||
if(!allAvailableZoneListNodeSupportedModeSupportedModeItem["Mode"].isNull())
|
||||
supportedModeObject.mode = allAvailableZoneListNodeSupportedModeSupportedModeItem["Mode"].asString();
|
||||
auto allSupportedSerialListNode = allSupportedModeNode["SupportedSerialList"]["SupportedSerialListItem"];
|
||||
for (auto allSupportedModeNodeSupportedSerialListSupportedSerialListItem : allSupportedSerialListNode)
|
||||
{
|
||||
AvailableZone::SupportedSerial::SupportedInstanceClass supportedInstanceClassListObject;
|
||||
if(!allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].isNull())
|
||||
supportedInstanceClassListObject.instanceClass = allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].asString();
|
||||
if(!allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["Tips"].isNull())
|
||||
supportedInstanceClassListObject.tips = allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["Tips"].asString();
|
||||
auto allSupportedNodeCountListNode = allSupportedInstanceClassListNode["SupportedNodeCountList"]["SupportedNodeCount"];
|
||||
for (auto allSupportedInstanceClassListNodeSupportedNodeCountListSupportedNodeCount : allSupportedNodeCountListNode)
|
||||
AvailableZone::SupportedModeItem::SupportedSerialListItem supportedSerialListObject;
|
||||
if(!allSupportedModeNodeSupportedSerialListSupportedSerialListItem["Serial"].isNull())
|
||||
supportedSerialListObject.serial = allSupportedModeNodeSupportedSerialListSupportedSerialListItem["Serial"].asString();
|
||||
auto allSupportedFlexibleResourceNode = allSupportedSerialListNode["SupportedFlexibleResource"]["SupportedFlexibleResourceItem"];
|
||||
for (auto allSupportedSerialListNodeSupportedFlexibleResourceSupportedFlexibleResourceItem : allSupportedFlexibleResourceNode)
|
||||
{
|
||||
AvailableZone::SupportedSerial::SupportedInstanceClass::SupportedNodeCount supportedNodeCountListObject;
|
||||
auto nodeCountNode = value["NodeCount"];
|
||||
if(!nodeCountNode["MinCount"].isNull())
|
||||
supportedNodeCountListObject.nodeCount.minCount = nodeCountNode["MinCount"].asString();
|
||||
if(!nodeCountNode["MaxCount"].isNull())
|
||||
supportedNodeCountListObject.nodeCount.maxCount = nodeCountNode["MaxCount"].asString();
|
||||
if(!nodeCountNode["Step"].isNull())
|
||||
supportedNodeCountListObject.nodeCount.step = nodeCountNode["Step"].asString();
|
||||
auto allStorageSize = value["StorageSize"]["StorageSize"];
|
||||
for (auto value : allStorageSize)
|
||||
supportedNodeCountListObject.storageSize.push_back(value.asString());
|
||||
supportedInstanceClassListObject.supportedNodeCountList.push_back(supportedNodeCountListObject);
|
||||
AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedFlexibleResourceItem supportedFlexibleResourceObject;
|
||||
if(!allSupportedSerialListNodeSupportedFlexibleResourceSupportedFlexibleResourceItem["StorageType"].isNull())
|
||||
supportedFlexibleResourceObject.storageType = allSupportedSerialListNodeSupportedFlexibleResourceSupportedFlexibleResourceItem["StorageType"].asString();
|
||||
auto allSupportedStorageResource = value["SupportedStorageResource"]["SupportedStorageResource"];
|
||||
for (auto value : allSupportedStorageResource)
|
||||
supportedFlexibleResourceObject.supportedStorageResource.push_back(value.asString());
|
||||
auto allSupportedComputeResource = value["SupportedComputeResource"]["SupportedComputeResource"];
|
||||
for (auto value : allSupportedComputeResource)
|
||||
supportedFlexibleResourceObject.supportedComputeResource.push_back(value.asString());
|
||||
supportedSerialListObject.supportedFlexibleResource.push_back(supportedFlexibleResourceObject);
|
||||
}
|
||||
supportedSerialListObject.supportedInstanceClassList.push_back(supportedInstanceClassListObject);
|
||||
auto allSupportedInstanceClassListNode = allSupportedSerialListNode["SupportedInstanceClassList"]["SupportedInstanceClass"];
|
||||
for (auto allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass : allSupportedInstanceClassListNode)
|
||||
{
|
||||
AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedInstanceClass supportedInstanceClassListObject;
|
||||
if(!allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].isNull())
|
||||
supportedInstanceClassListObject.instanceClass = allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].asString();
|
||||
if(!allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["Tips"].isNull())
|
||||
supportedInstanceClassListObject.tips = allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["Tips"].asString();
|
||||
auto allSupportedNodeCountListNode = allSupportedInstanceClassListNode["SupportedNodeCountList"]["SupportedNodeCount"];
|
||||
for (auto allSupportedInstanceClassListNodeSupportedNodeCountListSupportedNodeCount : allSupportedNodeCountListNode)
|
||||
{
|
||||
AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedInstanceClass::SupportedNodeCount supportedNodeCountListObject;
|
||||
auto nodeCountNode = value["NodeCount"];
|
||||
if(!nodeCountNode["MinCount"].isNull())
|
||||
supportedNodeCountListObject.nodeCount.minCount = nodeCountNode["MinCount"].asString();
|
||||
if(!nodeCountNode["MaxCount"].isNull())
|
||||
supportedNodeCountListObject.nodeCount.maxCount = nodeCountNode["MaxCount"].asString();
|
||||
if(!nodeCountNode["Step"].isNull())
|
||||
supportedNodeCountListObject.nodeCount.step = nodeCountNode["Step"].asString();
|
||||
auto allStorageSize = value["StorageSize"]["StorageSize"];
|
||||
for (auto value : allStorageSize)
|
||||
supportedNodeCountListObject.storageSize.push_back(value.asString());
|
||||
supportedInstanceClassListObject.supportedNodeCountList.push_back(supportedNodeCountListObject);
|
||||
}
|
||||
auto allSupportedExecutorListNode = allSupportedInstanceClassListNode["SupportedExecutorList"]["SupportedExecutor"];
|
||||
for (auto allSupportedInstanceClassListNodeSupportedExecutorListSupportedExecutor : allSupportedExecutorListNode)
|
||||
{
|
||||
AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedInstanceClass::SupportedExecutor supportedExecutorListObject;
|
||||
auto nodeCount1Node = value["NodeCount"];
|
||||
if(!nodeCount1Node["MinCount"].isNull())
|
||||
supportedExecutorListObject.nodeCount1.minCount = nodeCount1Node["MinCount"].asString();
|
||||
if(!nodeCount1Node["MaxCount"].isNull())
|
||||
supportedExecutorListObject.nodeCount1.maxCount = nodeCount1Node["MaxCount"].asString();
|
||||
if(!nodeCount1Node["Step"].isNull())
|
||||
supportedExecutorListObject.nodeCount1.step = nodeCount1Node["Step"].asString();
|
||||
supportedInstanceClassListObject.supportedExecutorList.push_back(supportedExecutorListObject);
|
||||
}
|
||||
supportedSerialListObject.supportedInstanceClassList.push_back(supportedInstanceClassListObject);
|
||||
}
|
||||
supportedModeObject.supportedSerialList.push_back(supportedSerialListObject);
|
||||
}
|
||||
availableZoneListObject.supportedSerialList.push_back(supportedSerialListObject);
|
||||
availableZoneListObject.supportedMode.push_back(supportedModeObject);
|
||||
}
|
||||
availableZoneList_.push_back(availableZoneListObject);
|
||||
}
|
||||
|
||||
@@ -99,6 +99,18 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload)
|
||||
itemsObject.rdsInstanceId = valueItemsDBCluster["RdsInstanceId"].asString();
|
||||
if(!valueItemsDBCluster["DtsJobId"].isNull())
|
||||
itemsObject.dtsJobId = valueItemsDBCluster["DtsJobId"].asString();
|
||||
if(!valueItemsDBCluster["ExecutorCount"].isNull())
|
||||
itemsObject.executorCount = valueItemsDBCluster["ExecutorCount"].asString();
|
||||
if(!valueItemsDBCluster["DiskType"].isNull())
|
||||
itemsObject.diskType = valueItemsDBCluster["DiskType"].asString();
|
||||
if(!valueItemsDBCluster["ComputeResource"].isNull())
|
||||
itemsObject.computeResource = valueItemsDBCluster["ComputeResource"].asString();
|
||||
if(!valueItemsDBCluster["StorageResource"].isNull())
|
||||
itemsObject.storageResource = valueItemsDBCluster["StorageResource"].asString();
|
||||
if(!valueItemsDBCluster["Mode"].isNull())
|
||||
itemsObject.mode = valueItemsDBCluster["Mode"].asString();
|
||||
if(!valueItemsDBCluster["ResourceGroupId"].isNull())
|
||||
itemsObject.resourceGroupId = valueItemsDBCluster["ResourceGroupId"].asString();
|
||||
auto allTagsNode = allItemsNode["Tags"]["Tag"];
|
||||
for (auto allItemsNodeTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -82,6 +82,17 @@ void DescribeDBClustersRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClustersRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeDBClustersRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClustersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
@@ -81,6 +81,34 @@ void DescribeDBClustersResult::parse(const std::string &payload)
|
||||
itemsObject.rdsInstanceId = valueItemsDBCluster["RdsInstanceId"].asString();
|
||||
if(!valueItemsDBCluster["DtsJobId"].isNull())
|
||||
itemsObject.dtsJobId = valueItemsDBCluster["DtsJobId"].asString();
|
||||
if(!valueItemsDBCluster["ExecutorCount"].isNull())
|
||||
itemsObject.executorCount = valueItemsDBCluster["ExecutorCount"].asString();
|
||||
if(!valueItemsDBCluster["DiskType"].isNull())
|
||||
itemsObject.diskType = valueItemsDBCluster["DiskType"].asString();
|
||||
if(!valueItemsDBCluster["VPCCloudInstanceId"].isNull())
|
||||
itemsObject.vPCCloudInstanceId = valueItemsDBCluster["VPCCloudInstanceId"].asString();
|
||||
if(!valueItemsDBCluster["Engine"].isNull())
|
||||
itemsObject.engine = valueItemsDBCluster["Engine"].asString();
|
||||
if(!valueItemsDBCluster["DBClusterNetworkType"].isNull())
|
||||
itemsObject.dBClusterNetworkType = valueItemsDBCluster["DBClusterNetworkType"].asString();
|
||||
if(!valueItemsDBCluster["VPCId"].isNull())
|
||||
itemsObject.vPCId = valueItemsDBCluster["VPCId"].asString();
|
||||
if(!valueItemsDBCluster["VSwitchId"].isNull())
|
||||
itemsObject.vSwitchId = valueItemsDBCluster["VSwitchId"].asString();
|
||||
if(!valueItemsDBCluster["ZoneId"].isNull())
|
||||
itemsObject.zoneId = valueItemsDBCluster["ZoneId"].asString();
|
||||
if(!valueItemsDBCluster["ConnectionString"].isNull())
|
||||
itemsObject.connectionString = valueItemsDBCluster["ConnectionString"].asString();
|
||||
if(!valueItemsDBCluster["Port"].isNull())
|
||||
itemsObject.port = valueItemsDBCluster["Port"].asString();
|
||||
if(!valueItemsDBCluster["ComputeResource"].isNull())
|
||||
itemsObject.computeResource = valueItemsDBCluster["ComputeResource"].asString();
|
||||
if(!valueItemsDBCluster["StorageResource"].isNull())
|
||||
itemsObject.storageResource = valueItemsDBCluster["StorageResource"].asString();
|
||||
if(!valueItemsDBCluster["Mode"].isNull())
|
||||
itemsObject.mode = valueItemsDBCluster["Mode"].asString();
|
||||
if(!valueItemsDBCluster["ResourceGroupId"].isNull())
|
||||
itemsObject.resourceGroupId = valueItemsDBCluster["ResourceGroupId"].asString();
|
||||
auto allTagsNode = allItemsNode["Tags"]["Tag"];
|
||||
for (auto allItemsNodeTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -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/adb/model/DescribeLogStoreKeysRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeLogStoreKeysRequest;
|
||||
|
||||
DescribeLogStoreKeysRequest::DescribeLogStoreKeysRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeLogStoreKeys")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLogStoreKeysRequest::~DescribeLogStoreKeysRequest()
|
||||
{}
|
||||
|
||||
long DescribeLogStoreKeysRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreKeysRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeLogStoreKeysRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreKeysRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeLogStoreKeysRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreKeysRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeLogStoreKeysRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreKeysRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string DescribeLogStoreKeysRequest::getLogStoreName()const
|
||||
{
|
||||
return logStoreName_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreKeysRequest::setLogStoreName(const std::string& logStoreName)
|
||||
{
|
||||
logStoreName_ = logStoreName;
|
||||
setParameter("LogStoreName", logStoreName);
|
||||
}
|
||||
|
||||
std::string DescribeLogStoreKeysRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreKeysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeLogStoreKeysRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreKeysRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeLogStoreKeysRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreKeysRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -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/adb/model/DescribeLoghubDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeLoghubDetailRequest;
|
||||
|
||||
DescribeLoghubDetailRequest::DescribeLoghubDetailRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeLoghubDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLoghubDetailRequest::~DescribeLoghubDetailRequest()
|
||||
{}
|
||||
|
||||
long DescribeLoghubDetailRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeLoghubDetailRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeLoghubDetailRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeLoghubDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeLoghubDetailRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeLoghubDetailRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeLoghubDetailRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void DescribeLoghubDetailRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string DescribeLoghubDetailRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeLoghubDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeLoghubDetailRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeLoghubDetailRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeLoghubDetailRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLoghubDetailRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeLoghubDetailRequest::getExportName()const
|
||||
{
|
||||
return exportName_;
|
||||
}
|
||||
|
||||
void DescribeLoghubDetailRequest::setExportName(const std::string& exportName)
|
||||
{
|
||||
exportName_ = exportName;
|
||||
setParameter("ExportName", exportName);
|
||||
}
|
||||
|
||||
@@ -1,96 +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/adb/model/DescribeLoghubDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeLoghubDetailResult::DescribeLoghubDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLoghubDetailResult::DescribeLoghubDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLoghubDetailResult::~DescribeLoghubDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeLoghubDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto loghubInfoNode = value["LoghubInfo"];
|
||||
if(!loghubInfoNode["ProjectName"].isNull())
|
||||
loghubInfo_.projectName = loghubInfoNode["ProjectName"].asString();
|
||||
if(!loghubInfoNode["LogStoreName"].isNull())
|
||||
loghubInfo_.logStoreName = loghubInfoNode["LogStoreName"].asString();
|
||||
if(!loghubInfoNode["DeliverName"].isNull())
|
||||
loghubInfo_.deliverName = loghubInfoNode["DeliverName"].asString();
|
||||
if(!loghubInfoNode["DeliverTime"].isNull())
|
||||
loghubInfo_.deliverTime = loghubInfoNode["DeliverTime"].asString();
|
||||
if(!loghubInfoNode["DomainUrl"].isNull())
|
||||
loghubInfo_.domainUrl = loghubInfoNode["DomainUrl"].asString();
|
||||
if(!loghubInfoNode["Description"].isNull())
|
||||
loghubInfo_.description = loghubInfoNode["Description"].asString();
|
||||
if(!loghubInfoNode["SchemaName"].isNull())
|
||||
loghubInfo_.schemaName = loghubInfoNode["SchemaName"].asString();
|
||||
if(!loghubInfoNode["TableName"].isNull())
|
||||
loghubInfo_.tableName = loghubInfoNode["TableName"].asString();
|
||||
if(!loghubInfoNode["RegionId"].isNull())
|
||||
loghubInfo_.regionId = loghubInfoNode["RegionId"].asString();
|
||||
if(!loghubInfoNode["ZoneId"].isNull())
|
||||
loghubInfo_.zoneId = loghubInfoNode["ZoneId"].asString();
|
||||
if(!loghubInfoNode["UserName"].isNull())
|
||||
loghubInfo_.userName = loghubInfoNode["UserName"].asString();
|
||||
if(!loghubInfoNode["Password"].isNull())
|
||||
loghubInfo_.password = loghubInfoNode["Password"].asString();
|
||||
if(!loghubInfoNode["FilterDirtyData"].isNull())
|
||||
loghubInfo_.filterDirtyData = loghubInfoNode["FilterDirtyData"].asString() == "true";
|
||||
if(!loghubInfoNode["AccessKey"].isNull())
|
||||
loghubInfo_.accessKey = loghubInfoNode["AccessKey"].asString();
|
||||
if(!loghubInfoNode["AccessSecret"].isNull())
|
||||
loghubInfo_.accessSecret = loghubInfoNode["AccessSecret"].asString();
|
||||
if(!loghubInfoNode["DBType"].isNull())
|
||||
loghubInfo_.dBType = loghubInfoNode["DBType"].asString();
|
||||
if(!loghubInfoNode["DBClusterId"].isNull())
|
||||
loghubInfo_.dBClusterId = loghubInfoNode["DBClusterId"].asString();
|
||||
auto allLogHubStoresNode = loghubInfoNode["LogHubStores"]["LogHubStore"];
|
||||
for (auto loghubInfoNodeLogHubStoresLogHubStore : allLogHubStoresNode)
|
||||
{
|
||||
LoghubInfo::LogHubStore logHubStoreObject;
|
||||
if(!loghubInfoNodeLogHubStoresLogHubStore["LogKey"].isNull())
|
||||
logHubStoreObject.logKey = loghubInfoNodeLogHubStoresLogHubStore["LogKey"].asString();
|
||||
if(!loghubInfoNodeLogHubStoresLogHubStore["FieldKey"].isNull())
|
||||
logHubStoreObject.fieldKey = loghubInfoNodeLogHubStoresLogHubStore["FieldKey"].asString();
|
||||
if(!loghubInfoNodeLogHubStoresLogHubStore["Type"].isNull())
|
||||
logHubStoreObject.type = loghubInfoNodeLogHubStoresLogHubStore["Type"].asString();
|
||||
loghubInfo_.logHubStores.push_back(logHubStoreObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeLoghubDetailResult::LoghubInfo DescribeLoghubDetailResult::getLoghubInfo()const
|
||||
{
|
||||
return loghubInfo_;
|
||||
}
|
||||
|
||||
128
adb/src/model/DescribeTablePartitionDiagnoseRequest.cc
Normal file
128
adb/src/model/DescribeTablePartitionDiagnoseRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/adb/model/DescribeTablePartitionDiagnoseRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeTablePartitionDiagnoseRequest;
|
||||
|
||||
DescribeTablePartitionDiagnoseRequest::DescribeTablePartitionDiagnoseRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeTablePartitionDiagnose")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTablePartitionDiagnoseRequest::~DescribeTablePartitionDiagnoseRequest()
|
||||
{}
|
||||
|
||||
long DescribeTablePartitionDiagnoseRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeTablePartitionDiagnoseRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeTablePartitionDiagnoseRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeTablePartitionDiagnoseRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeTablePartitionDiagnoseRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeTablePartitionDiagnoseRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeTablePartitionDiagnoseRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeTablePartitionDiagnoseRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeTablePartitionDiagnoseRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
105
adb/src/model/DescribeTablePartitionDiagnoseResult.cc
Normal file
105
adb/src/model/DescribeTablePartitionDiagnoseResult.cc
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeTablePartitionDiagnoseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeTablePartitionDiagnoseResult::DescribeTablePartitionDiagnoseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTablePartitionDiagnoseResult::DescribeTablePartitionDiagnoseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTablePartitionDiagnoseResult::~DescribeTablePartitionDiagnoseResult()
|
||||
{}
|
||||
|
||||
void DescribeTablePartitionDiagnoseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["TablePartitionDiagnose"];
|
||||
for (auto valueItemsTablePartitionDiagnose : allItemsNode)
|
||||
{
|
||||
TablePartitionDiagnose itemsObject;
|
||||
if(!valueItemsTablePartitionDiagnose["SchemaName"].isNull())
|
||||
itemsObject.schemaName = valueItemsTablePartitionDiagnose["SchemaName"].asString();
|
||||
if(!valueItemsTablePartitionDiagnose["TableName"].isNull())
|
||||
itemsObject.tableName = valueItemsTablePartitionDiagnose["TableName"].asString();
|
||||
if(!valueItemsTablePartitionDiagnose["PartitionNumber"].isNull())
|
||||
itemsObject.partitionNumber = std::stoi(valueItemsTablePartitionDiagnose["PartitionNumber"].asString());
|
||||
if(!valueItemsTablePartitionDiagnose["PartitionDetail"].isNull())
|
||||
itemsObject.partitionDetail = valueItemsTablePartitionDiagnose["PartitionDetail"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = std::stoi(value["DBClusterId"].asString());
|
||||
if(!value["SuggestMinRecordsPerPartition"].isNull())
|
||||
suggestMinRecordsPerPartition_ = std::stol(value["SuggestMinRecordsPerPartition"].asString());
|
||||
if(!value["SuggestMaxRecordsPerPartition"].isNull())
|
||||
suggestMaxRecordsPerPartition_ = std::stol(value["SuggestMaxRecordsPerPartition"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeTablePartitionDiagnoseResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeTablePartitionDiagnoseResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeTablePartitionDiagnoseResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeTablePartitionDiagnoseResult::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
long DescribeTablePartitionDiagnoseResult::getSuggestMaxRecordsPerPartition()const
|
||||
{
|
||||
return suggestMaxRecordsPerPartition_;
|
||||
}
|
||||
|
||||
std::vector<DescribeTablePartitionDiagnoseResult::TablePartitionDiagnose> DescribeTablePartitionDiagnoseResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
long DescribeTablePartitionDiagnoseResult::getSuggestMinRecordsPerPartition()const
|
||||
{
|
||||
return suggestMinRecordsPerPartition_;
|
||||
}
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/ModifyAuditLogConfigRequest.h>
|
||||
#include <alibabacloud/adb/model/ModifyAuditLogConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::R_kvstore::Model::ModifyAuditLogConfigRequest;
|
||||
using AlibabaCloud::Adb::Model::ModifyAuditLogConfigRequest;
|
||||
|
||||
ModifyAuditLogConfigRequest::ModifyAuditLogConfigRequest() :
|
||||
RpcServiceRequest("r-kvstore", "2015-01-01", "ModifyAuditLogConfig")
|
||||
RpcServiceRequest("adb", "2019-03-15", "ModifyAuditLogConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
@@ -49,37 +49,15 @@ void ModifyAuditLogConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyAuditLogConfigRequest::getSecurityToken()const
|
||||
std::string ModifyAuditLogConfigRequest::getRegionId()const
|
||||
{
|
||||
return securityToken_;
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyAuditLogConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
void ModifyAuditLogConfigRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyAuditLogConfigRequest::getAuditCommand()const
|
||||
{
|
||||
return auditCommand_;
|
||||
}
|
||||
|
||||
void ModifyAuditLogConfigRequest::setAuditCommand(const std::string& auditCommand)
|
||||
{
|
||||
auditCommand_ = auditCommand;
|
||||
setParameter("AuditCommand", auditCommand);
|
||||
}
|
||||
|
||||
std::string ModifyAuditLogConfigRequest::getRetention()const
|
||||
{
|
||||
return retention_;
|
||||
}
|
||||
|
||||
void ModifyAuditLogConfigRequest::setRetention(const std::string& retention)
|
||||
{
|
||||
retention_ = retention;
|
||||
setParameter("Retention", retention);
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyAuditLogConfigRequest::getResourceOwnerAccount()const
|
||||
@@ -93,6 +71,17 @@ void ModifyAuditLogConfigRequest::setResourceOwnerAccount(const std::string& res
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyAuditLogConfigRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void ModifyAuditLogConfigRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string ModifyAuditLogConfigRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
@@ -115,14 +104,14 @@ void ModifyAuditLogConfigRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyAuditLogConfigRequest::getInstanceId()const
|
||||
std::string ModifyAuditLogConfigRequest::getAuditLogStatus()const
|
||||
{
|
||||
return instanceId_;
|
||||
return auditLogStatus_;
|
||||
}
|
||||
|
||||
void ModifyAuditLogConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
void ModifyAuditLogConfigRequest::setAuditLogStatus(const std::string& auditLogStatus)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
auditLogStatus_ = auditLogStatus;
|
||||
setParameter("AuditLogStatus", auditLogStatus);
|
||||
}
|
||||
|
||||
@@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/ModifyAuditLogConfigResult.h>
|
||||
#include <alibabacloud/adb/model/ModifyAuditLogConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::R_kvstore;
|
||||
using namespace AlibabaCloud::R_kvstore::Model;
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
ModifyAuditLogConfigResult::ModifyAuditLogConfigResult() :
|
||||
ServiceResult()
|
||||
@@ -49,6 +49,17 @@ void ModifyDBClusterRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getStorageResource()const
|
||||
{
|
||||
return storageResource_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setStorageResource(const std::string& storageResource)
|
||||
{
|
||||
storageResource_ = storageResource;
|
||||
setParameter("StorageResource", storageResource);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getDBNodeClass()const
|
||||
{
|
||||
return dBNodeClass_;
|
||||
@@ -60,6 +71,17 @@ void ModifyDBClusterRequest::setDBNodeClass(const std::string& dBNodeClass)
|
||||
setParameter("DBNodeClass", dBNodeClass);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
@@ -126,6 +148,17 @@ void ModifyDBClusterRequest::setDBNodeStorage(const std::string& dBNodeStorage)
|
||||
setParameter("DBNodeStorage", dBNodeStorage);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getExecutorCount()const
|
||||
{
|
||||
return executorCount_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setExecutorCount(const std::string& executorCount)
|
||||
{
|
||||
executorCount_ = executorCount;
|
||||
setParameter("ExecutorCount", executorCount);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getModifyType()const
|
||||
{
|
||||
return modifyType_;
|
||||
@@ -137,3 +170,14 @@ void ModifyDBClusterRequest::setModifyType(const std::string& modifyType)
|
||||
setParameter("ModifyType", modifyType);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getComputeResource()const
|
||||
{
|
||||
return computeResource_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setComputeResource(const std::string& computeResource)
|
||||
{
|
||||
computeResource_ = computeResource;
|
||||
setParameter("ComputeResource", computeResource);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,14 @@ set(alimt_public_header_model
|
||||
include/alibabacloud/alimt/model/GetDetectLanguageResult.h
|
||||
include/alibabacloud/alimt/model/GetDocTranslateTaskRequest.h
|
||||
include/alibabacloud/alimt/model/GetDocTranslateTaskResult.h
|
||||
include/alibabacloud/alimt/model/GetImageDiagnoseRequest.h
|
||||
include/alibabacloud/alimt/model/GetImageDiagnoseResult.h
|
||||
include/alibabacloud/alimt/model/GetImageTranslateRequest.h
|
||||
include/alibabacloud/alimt/model/GetImageTranslateResult.h
|
||||
include/alibabacloud/alimt/model/GetTitleDiagnoseRequest.h
|
||||
include/alibabacloud/alimt/model/GetTitleDiagnoseResult.h
|
||||
include/alibabacloud/alimt/model/GetTitleGenerateRequest.h
|
||||
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
|
||||
include/alibabacloud/alimt/model/TranslateRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateResult.h
|
||||
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
|
||||
@@ -44,6 +52,14 @@ set(alimt_src
|
||||
src/model/GetDetectLanguageResult.cc
|
||||
src/model/GetDocTranslateTaskRequest.cc
|
||||
src/model/GetDocTranslateTaskResult.cc
|
||||
src/model/GetImageDiagnoseRequest.cc
|
||||
src/model/GetImageDiagnoseResult.cc
|
||||
src/model/GetImageTranslateRequest.cc
|
||||
src/model/GetImageTranslateResult.cc
|
||||
src/model/GetTitleDiagnoseRequest.cc
|
||||
src/model/GetTitleDiagnoseResult.cc
|
||||
src/model/GetTitleGenerateRequest.cc
|
||||
src/model/GetTitleGenerateResult.cc
|
||||
src/model/TranslateRequest.cc
|
||||
src/model/TranslateResult.cc
|
||||
src/model/TranslateCertificateRequest.cc
|
||||
|
||||
@@ -28,6 +28,14 @@
|
||||
#include "model/GetDetectLanguageResult.h"
|
||||
#include "model/GetDocTranslateTaskRequest.h"
|
||||
#include "model/GetDocTranslateTaskResult.h"
|
||||
#include "model/GetImageDiagnoseRequest.h"
|
||||
#include "model/GetImageDiagnoseResult.h"
|
||||
#include "model/GetImageTranslateRequest.h"
|
||||
#include "model/GetImageTranslateResult.h"
|
||||
#include "model/GetTitleDiagnoseRequest.h"
|
||||
#include "model/GetTitleDiagnoseResult.h"
|
||||
#include "model/GetTitleGenerateRequest.h"
|
||||
#include "model/GetTitleGenerateResult.h"
|
||||
#include "model/TranslateRequest.h"
|
||||
#include "model/TranslateResult.h"
|
||||
#include "model/TranslateCertificateRequest.h"
|
||||
@@ -54,6 +62,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetDocTranslateTaskResult> GetDocTranslateTaskOutcome;
|
||||
typedef std::future<GetDocTranslateTaskOutcome> GetDocTranslateTaskOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetDocTranslateTaskRequest&, const GetDocTranslateTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDocTranslateTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetImageDiagnoseResult> GetImageDiagnoseOutcome;
|
||||
typedef std::future<GetImageDiagnoseOutcome> GetImageDiagnoseOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetImageDiagnoseRequest&, const GetImageDiagnoseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageDiagnoseAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetImageTranslateResult> GetImageTranslateOutcome;
|
||||
typedef std::future<GetImageTranslateOutcome> GetImageTranslateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetImageTranslateRequest&, const GetImageTranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageTranslateAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTitleDiagnoseResult> GetTitleDiagnoseOutcome;
|
||||
typedef std::future<GetTitleDiagnoseOutcome> GetTitleDiagnoseOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetTitleDiagnoseRequest&, const GetTitleDiagnoseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleDiagnoseAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTitleGenerateResult> GetTitleGenerateOutcome;
|
||||
typedef std::future<GetTitleGenerateOutcome> GetTitleGenerateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetTitleGenerateRequest&, const GetTitleGenerateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleGenerateAsyncHandler;
|
||||
typedef Outcome<Error, Model::TranslateResult> TranslateOutcome;
|
||||
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::TranslateRequest&, const TranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateAsyncHandler;
|
||||
@@ -80,6 +100,18 @@ namespace AlibabaCloud
|
||||
GetDocTranslateTaskOutcome getDocTranslateTask(const Model::GetDocTranslateTaskRequest &request)const;
|
||||
void getDocTranslateTaskAsync(const Model::GetDocTranslateTaskRequest& request, const GetDocTranslateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDocTranslateTaskOutcomeCallable getDocTranslateTaskCallable(const Model::GetDocTranslateTaskRequest& request) const;
|
||||
GetImageDiagnoseOutcome getImageDiagnose(const Model::GetImageDiagnoseRequest &request)const;
|
||||
void getImageDiagnoseAsync(const Model::GetImageDiagnoseRequest& request, const GetImageDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetImageDiagnoseOutcomeCallable getImageDiagnoseCallable(const Model::GetImageDiagnoseRequest& request) const;
|
||||
GetImageTranslateOutcome getImageTranslate(const Model::GetImageTranslateRequest &request)const;
|
||||
void getImageTranslateAsync(const Model::GetImageTranslateRequest& request, const GetImageTranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetImageTranslateOutcomeCallable getImageTranslateCallable(const Model::GetImageTranslateRequest& request) const;
|
||||
GetTitleDiagnoseOutcome getTitleDiagnose(const Model::GetTitleDiagnoseRequest &request)const;
|
||||
void getTitleDiagnoseAsync(const Model::GetTitleDiagnoseRequest& request, const GetTitleDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTitleDiagnoseOutcomeCallable getTitleDiagnoseCallable(const Model::GetTitleDiagnoseRequest& request) const;
|
||||
GetTitleGenerateOutcome getTitleGenerate(const Model::GetTitleGenerateRequest &request)const;
|
||||
void getTitleGenerateAsync(const Model::GetTitleGenerateRequest& request, const GetTitleGenerateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTitleGenerateOutcomeCallable getTitleGenerateCallable(const Model::GetTitleGenerateRequest& request) const;
|
||||
TranslateOutcome translate(const Model::TranslateRequest &request)const;
|
||||
void translateAsync(const Model::TranslateRequest& request, const TranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateOutcomeCallable translateCallable(const Model::TranslateRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_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 GetImageDiagnoseRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetImageDiagnoseRequest();
|
||||
~GetImageDiagnoseRequest();
|
||||
|
||||
std::string getUrl()const;
|
||||
void setUrl(const std::string& url);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
|
||||
private:
|
||||
std::string url_;
|
||||
std::string extra_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
|
||||
@@ -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_ALIMT_MODEL_GETIMAGEDIAGNOSERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSERESULT_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 GetImageDiagnoseResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string language;
|
||||
};
|
||||
|
||||
|
||||
GetImageDiagnoseResult();
|
||||
explicit GetImageDiagnoseResult(const std::string &payload);
|
||||
~GetImageDiagnoseResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSERESULT_H_
|
||||
@@ -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_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_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 GetImageTranslateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetImageTranslateRequest();
|
||||
~GetImageTranslateRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getUrl()const;
|
||||
void setUrl(const std::string& url);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string url_;
|
||||
std::string extra_;
|
||||
std::string targetLanguage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
|
||||
@@ -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_ALIMT_MODEL_GETIMAGETRANSLATERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATERESULT_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 GetImageTranslateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string orc;
|
||||
std::string url;
|
||||
};
|
||||
|
||||
|
||||
GetImageTranslateResult();
|
||||
explicit GetImageTranslateResult(const std::string &payload);
|
||||
~GetImageTranslateResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATERESULT_H_
|
||||
@@ -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_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_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 GetTitleDiagnoseRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTitleDiagnoseRequest();
|
||||
~GetTitleDiagnoseRequest();
|
||||
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getTitle()const;
|
||||
void setTitle(const std::string& title);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
std::string getCategoryId()const;
|
||||
void setCategoryId(const std::string& categoryId);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string title_;
|
||||
std::string platform_;
|
||||
std::string extra_;
|
||||
std::string categoryId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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_GETTITLEDIAGNOSERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSERESULT_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 GetTitleDiagnoseResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string noFirstUppercaseList;
|
||||
std::string containCoreClasses;
|
||||
std::string disableWords;
|
||||
std::string wordCount;
|
||||
std::string overLengthLimit;
|
||||
std::string totalScore;
|
||||
std::string duplicateWords;
|
||||
std::string wordSpelledCorrectError;
|
||||
std::string allUppercaseWords;
|
||||
std::string languageQualityScore;
|
||||
};
|
||||
|
||||
|
||||
GetTitleDiagnoseResult();
|
||||
explicit GetTitleDiagnoseResult(const std::string &payload);
|
||||
~GetTitleDiagnoseResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSERESULT_H_
|
||||
@@ -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_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_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 GetTitleGenerateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTitleGenerateRequest();
|
||||
~GetTitleGenerateRequest();
|
||||
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getTitle()const;
|
||||
void setTitle(const std::string& title);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
std::string getAttributes()const;
|
||||
void setAttributes(const std::string& attributes);
|
||||
std::string getHotWords()const;
|
||||
void setHotWords(const std::string& hotWords);
|
||||
std::string getCategoryId()const;
|
||||
void setCategoryId(const std::string& categoryId);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string title_;
|
||||
std::string platform_;
|
||||
std::string extra_;
|
||||
std::string attributes_;
|
||||
std::string hotWords_;
|
||||
std::string categoryId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
|
||||
@@ -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_ALIMT_MODEL_GETTITLEGENERATERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATERESULT_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 GetTitleGenerateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string titles;
|
||||
};
|
||||
|
||||
|
||||
GetTitleGenerateResult();
|
||||
explicit GetTitleGenerateResult(const std::string &payload);
|
||||
~GetTitleGenerateResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATERESULT_H_
|
||||
@@ -159,6 +159,150 @@ AlimtClient::GetDocTranslateTaskOutcomeCallable AlimtClient::getDocTranslateTask
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::GetImageDiagnoseOutcome AlimtClient::getImageDiagnose(const GetImageDiagnoseRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetImageDiagnoseOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetImageDiagnoseOutcome(GetImageDiagnoseResult(outcome.result()));
|
||||
else
|
||||
return GetImageDiagnoseOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::getImageDiagnoseAsync(const GetImageDiagnoseRequest& request, const GetImageDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getImageDiagnose(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::GetImageDiagnoseOutcomeCallable AlimtClient::getImageDiagnoseCallable(const GetImageDiagnoseRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetImageDiagnoseOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getImageDiagnose(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::GetImageTranslateOutcome AlimtClient::getImageTranslate(const GetImageTranslateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetImageTranslateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetImageTranslateOutcome(GetImageTranslateResult(outcome.result()));
|
||||
else
|
||||
return GetImageTranslateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::getImageTranslateAsync(const GetImageTranslateRequest& request, const GetImageTranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getImageTranslate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::GetImageTranslateOutcomeCallable AlimtClient::getImageTranslateCallable(const GetImageTranslateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetImageTranslateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getImageTranslate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::GetTitleDiagnoseOutcome AlimtClient::getTitleDiagnose(const GetTitleDiagnoseRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTitleDiagnoseOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTitleDiagnoseOutcome(GetTitleDiagnoseResult(outcome.result()));
|
||||
else
|
||||
return GetTitleDiagnoseOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::getTitleDiagnoseAsync(const GetTitleDiagnoseRequest& request, const GetTitleDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTitleDiagnose(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::GetTitleDiagnoseOutcomeCallable AlimtClient::getTitleDiagnoseCallable(const GetTitleDiagnoseRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTitleDiagnoseOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTitleDiagnose(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::GetTitleGenerateOutcome AlimtClient::getTitleGenerate(const GetTitleGenerateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTitleGenerateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTitleGenerateOutcome(GetTitleGenerateResult(outcome.result()));
|
||||
else
|
||||
return GetTitleGenerateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::getTitleGenerateAsync(const GetTitleGenerateRequest& request, const GetTitleGenerateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTitleGenerate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::GetTitleGenerateOutcomeCallable AlimtClient::getTitleGenerateCallable(const GetTitleGenerateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTitleGenerateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTitleGenerate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::TranslateOutcome AlimtClient::translate(const TranslateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
51
alimt/src/model/GetImageDiagnoseRequest.cc
Normal file
51
alimt/src/model/GetImageDiagnoseRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetImageDiagnoseRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetImageDiagnoseRequest;
|
||||
|
||||
GetImageDiagnoseRequest::GetImageDiagnoseRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetImageDiagnose")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetImageDiagnoseRequest::~GetImageDiagnoseRequest()
|
||||
{}
|
||||
|
||||
std::string GetImageDiagnoseRequest::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
void GetImageDiagnoseRequest::setUrl(const std::string& url)
|
||||
{
|
||||
url_ = url;
|
||||
setBodyParameter("Url", url);
|
||||
}
|
||||
|
||||
std::string GetImageDiagnoseRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
}
|
||||
|
||||
void GetImageDiagnoseRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
}
|
||||
|
||||
66
alimt/src/model/GetImageDiagnoseResult.cc
Normal file
66
alimt/src/model/GetImageDiagnoseResult.cc
Normal 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/GetImageDiagnoseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
GetImageDiagnoseResult::GetImageDiagnoseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetImageDiagnoseResult::GetImageDiagnoseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetImageDiagnoseResult::~GetImageDiagnoseResult()
|
||||
{}
|
||||
|
||||
void GetImageDiagnoseResult::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["Language"].isNull())
|
||||
data_.language = dataNode["Language"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetImageDiagnoseResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetImageDiagnoseResult::Data GetImageDiagnoseResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetImageDiagnoseResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
alimt/src/model/GetImageTranslateRequest.cc
Normal file
73
alimt/src/model/GetImageTranslateRequest.cc
Normal 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/alimt/model/GetImageTranslateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetImageTranslateRequest;
|
||||
|
||||
GetImageTranslateRequest::GetImageTranslateRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetImageTranslateRequest::~GetImageTranslateRequest()
|
||||
{}
|
||||
|
||||
std::string GetImageTranslateRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
void GetImageTranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
}
|
||||
|
||||
std::string GetImageTranslateRequest::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
void GetImageTranslateRequest::setUrl(const std::string& url)
|
||||
{
|
||||
url_ = url;
|
||||
setBodyParameter("Url", url);
|
||||
}
|
||||
|
||||
std::string GetImageTranslateRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
}
|
||||
|
||||
void GetImageTranslateRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
}
|
||||
|
||||
std::string GetImageTranslateRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void GetImageTranslateRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
}
|
||||
|
||||
68
alimt/src/model/GetImageTranslateResult.cc
Normal file
68
alimt/src/model/GetImageTranslateResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/GetImageTranslateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
GetImageTranslateResult::GetImageTranslateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetImageTranslateResult::GetImageTranslateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetImageTranslateResult::~GetImageTranslateResult()
|
||||
{}
|
||||
|
||||
void GetImageTranslateResult::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["Url"].isNull())
|
||||
data_.url = dataNode["Url"].asString();
|
||||
if(!dataNode["Orc"].isNull())
|
||||
data_.orc = dataNode["Orc"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetImageTranslateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetImageTranslateResult::Data GetImageTranslateResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetImageTranslateResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
84
alimt/src/model/GetTitleDiagnoseRequest.cc
Normal file
84
alimt/src/model/GetTitleDiagnoseRequest.cc
Normal 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/alimt/model/GetTitleDiagnoseRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetTitleDiagnoseRequest;
|
||||
|
||||
GetTitleDiagnoseRequest::GetTitleDiagnoseRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetTitleDiagnose")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTitleDiagnoseRequest::~GetTitleDiagnoseRequest()
|
||||
{}
|
||||
|
||||
std::string GetTitleDiagnoseRequest::getLanguage()const
|
||||
{
|
||||
return language_;
|
||||
}
|
||||
|
||||
void GetTitleDiagnoseRequest::setLanguage(const std::string& language)
|
||||
{
|
||||
language_ = language;
|
||||
setBodyParameter("Language", language);
|
||||
}
|
||||
|
||||
std::string GetTitleDiagnoseRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
}
|
||||
|
||||
void GetTitleDiagnoseRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setBodyParameter("Title", title);
|
||||
}
|
||||
|
||||
std::string GetTitleDiagnoseRequest::getPlatform()const
|
||||
{
|
||||
return platform_;
|
||||
}
|
||||
|
||||
void GetTitleDiagnoseRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setBodyParameter("Platform", platform);
|
||||
}
|
||||
|
||||
std::string GetTitleDiagnoseRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
}
|
||||
|
||||
void GetTitleDiagnoseRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
}
|
||||
|
||||
std::string GetTitleDiagnoseRequest::getCategoryId()const
|
||||
{
|
||||
return categoryId_;
|
||||
}
|
||||
|
||||
void GetTitleDiagnoseRequest::setCategoryId(const std::string& categoryId)
|
||||
{
|
||||
categoryId_ = categoryId;
|
||||
setBodyParameter("CategoryId", categoryId);
|
||||
}
|
||||
|
||||
84
alimt/src/model/GetTitleDiagnoseResult.cc
Normal file
84
alimt/src/model/GetTitleDiagnoseResult.cc
Normal 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/alimt/model/GetTitleDiagnoseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
GetTitleDiagnoseResult::GetTitleDiagnoseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTitleDiagnoseResult::GetTitleDiagnoseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTitleDiagnoseResult::~GetTitleDiagnoseResult()
|
||||
{}
|
||||
|
||||
void GetTitleDiagnoseResult::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["ContainCoreClasses"].isNull())
|
||||
data_.containCoreClasses = dataNode["ContainCoreClasses"].asString();
|
||||
if(!dataNode["OverLengthLimit"].isNull())
|
||||
data_.overLengthLimit = dataNode["OverLengthLimit"].asString();
|
||||
if(!dataNode["WordSpelledCorrectError"].isNull())
|
||||
data_.wordSpelledCorrectError = dataNode["WordSpelledCorrectError"].asString();
|
||||
if(!dataNode["AllUppercaseWords"].isNull())
|
||||
data_.allUppercaseWords = dataNode["AllUppercaseWords"].asString();
|
||||
if(!dataNode["NoFirstUppercaseList"].isNull())
|
||||
data_.noFirstUppercaseList = dataNode["NoFirstUppercaseList"].asString();
|
||||
if(!dataNode["DuplicateWords"].isNull())
|
||||
data_.duplicateWords = dataNode["DuplicateWords"].asString();
|
||||
if(!dataNode["DisableWords"].isNull())
|
||||
data_.disableWords = dataNode["DisableWords"].asString();
|
||||
if(!dataNode["WordCount"].isNull())
|
||||
data_.wordCount = dataNode["WordCount"].asString();
|
||||
if(!dataNode["TotalScore"].isNull())
|
||||
data_.totalScore = dataNode["TotalScore"].asString();
|
||||
if(!dataNode["LanguageQualityScore"].isNull())
|
||||
data_.languageQualityScore = dataNode["LanguageQualityScore"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTitleDiagnoseResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetTitleDiagnoseResult::Data GetTitleDiagnoseResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetTitleDiagnoseResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
106
alimt/src/model/GetTitleGenerateRequest.cc
Normal file
106
alimt/src/model/GetTitleGenerateRequest.cc
Normal 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/alimt/model/GetTitleGenerateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetTitleGenerateRequest;
|
||||
|
||||
GetTitleGenerateRequest::GetTitleGenerateRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetTitleGenerate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTitleGenerateRequest::~GetTitleGenerateRequest()
|
||||
{}
|
||||
|
||||
std::string GetTitleGenerateRequest::getLanguage()const
|
||||
{
|
||||
return language_;
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setLanguage(const std::string& language)
|
||||
{
|
||||
language_ = language;
|
||||
setBodyParameter("Language", language);
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setBodyParameter("Title", title);
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getPlatform()const
|
||||
{
|
||||
return platform_;
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setBodyParameter("Platform", platform);
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getAttributes()const
|
||||
{
|
||||
return attributes_;
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setAttributes(const std::string& attributes)
|
||||
{
|
||||
attributes_ = attributes;
|
||||
setBodyParameter("Attributes", attributes);
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getHotWords()const
|
||||
{
|
||||
return hotWords_;
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setHotWords(const std::string& hotWords)
|
||||
{
|
||||
hotWords_ = hotWords;
|
||||
setBodyParameter("HotWords", hotWords);
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateRequest::getCategoryId()const
|
||||
{
|
||||
return categoryId_;
|
||||
}
|
||||
|
||||
void GetTitleGenerateRequest::setCategoryId(const std::string& categoryId)
|
||||
{
|
||||
categoryId_ = categoryId;
|
||||
setBodyParameter("CategoryId", categoryId);
|
||||
}
|
||||
|
||||
66
alimt/src/model/GetTitleGenerateResult.cc
Normal file
66
alimt/src/model/GetTitleGenerateResult.cc
Normal 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/GetTitleGenerateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
GetTitleGenerateResult::GetTitleGenerateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTitleGenerateResult::GetTitleGenerateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTitleGenerateResult::~GetTitleGenerateResult()
|
||||
{}
|
||||
|
||||
void GetTitleGenerateResult::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["Titles"].isNull())
|
||||
data_.titles = dataNode["Titles"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTitleGenerateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetTitleGenerateResult::Data GetTitleGenerateResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetTitleGenerateResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
122
alinlp/CMakeLists.txt
Normal file
122
alinlp/CMakeLists.txt
Normal file
@@ -0,0 +1,122 @@
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(alinlp_public_header
|
||||
include/alibabacloud/alinlp/AlinlpClient.h
|
||||
include/alibabacloud/alinlp/AlinlpExport.h )
|
||||
|
||||
set(alinlp_public_header_model
|
||||
include/alibabacloud/alinlp/model/GetDpChEcomRequest.h
|
||||
include/alibabacloud/alinlp/model/GetDpChEcomResult.h
|
||||
include/alibabacloud/alinlp/model/GetEcChGeneralRequest.h
|
||||
include/alibabacloud/alinlp/model/GetEcChGeneralResult.h
|
||||
include/alibabacloud/alinlp/model/GetNerChMedicalRequest.h
|
||||
include/alibabacloud/alinlp/model/GetNerChMedicalResult.h
|
||||
include/alibabacloud/alinlp/model/GetNerCustomizedChEcomRequest.h
|
||||
include/alibabacloud/alinlp/model/GetNerCustomizedChEcomResult.h
|
||||
include/alibabacloud/alinlp/model/GetPosChEcomRequest.h
|
||||
include/alibabacloud/alinlp/model/GetPosChEcomResult.h
|
||||
include/alibabacloud/alinlp/model/GetSummaryChEcomRequest.h
|
||||
include/alibabacloud/alinlp/model/GetSummaryChEcomResult.h
|
||||
include/alibabacloud/alinlp/model/GetTsChEcomRequest.h
|
||||
include/alibabacloud/alinlp/model/GetTsChEcomResult.h
|
||||
include/alibabacloud/alinlp/model/GetWeChEcomRequest.h
|
||||
include/alibabacloud/alinlp/model/GetWeChEcomResult.h
|
||||
include/alibabacloud/alinlp/model/GetWsCustomizedChGeneralRequest.h
|
||||
include/alibabacloud/alinlp/model/GetWsCustomizedChGeneralResult.h
|
||||
include/alibabacloud/alinlp/model/GetWsCustomizedSeaGeneralRequest.h
|
||||
include/alibabacloud/alinlp/model/GetWsCustomizedSeaGeneralResult.h )
|
||||
|
||||
set(alinlp_src
|
||||
src/AlinlpClient.cc
|
||||
src/model/GetDpChEcomRequest.cc
|
||||
src/model/GetDpChEcomResult.cc
|
||||
src/model/GetEcChGeneralRequest.cc
|
||||
src/model/GetEcChGeneralResult.cc
|
||||
src/model/GetNerChMedicalRequest.cc
|
||||
src/model/GetNerChMedicalResult.cc
|
||||
src/model/GetNerCustomizedChEcomRequest.cc
|
||||
src/model/GetNerCustomizedChEcomResult.cc
|
||||
src/model/GetPosChEcomRequest.cc
|
||||
src/model/GetPosChEcomResult.cc
|
||||
src/model/GetSummaryChEcomRequest.cc
|
||||
src/model/GetSummaryChEcomResult.cc
|
||||
src/model/GetTsChEcomRequest.cc
|
||||
src/model/GetTsChEcomResult.cc
|
||||
src/model/GetWeChEcomRequest.cc
|
||||
src/model/GetWeChEcomResult.cc
|
||||
src/model/GetWsCustomizedChGeneralRequest.cc
|
||||
src/model/GetWsCustomizedChGeneralResult.cc
|
||||
src/model/GetWsCustomizedSeaGeneralRequest.cc
|
||||
src/model/GetWsCustomizedSeaGeneralResult.cc )
|
||||
|
||||
add_library(alinlp ${LIB_TYPE}
|
||||
${alinlp_public_header}
|
||||
${alinlp_public_header_model}
|
||||
${alinlp_src})
|
||||
|
||||
set_target_properties(alinlp
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}alinlp
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(alinlp
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ALINLP_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(alinlp
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(alinlp
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(alinlp
|
||||
jsoncpp)
|
||||
target_include_directories(alinlp
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(alinlp
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(alinlp
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(alinlp
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(alinlp
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${alinlp_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/alinlp)
|
||||
install(FILES ${alinlp_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/alinlp/model)
|
||||
install(TARGETS alinlp
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
126
alinlp/include/alibabacloud/alinlp/AlinlpClient.h
Normal file
126
alinlp/include/alibabacloud/alinlp/AlinlpClient.h
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* 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_ALINLP_ALINLPCLIENT_H_
|
||||
#define ALIBABACLOUD_ALINLP_ALINLPCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "AlinlpExport.h"
|
||||
#include "model/GetDpChEcomRequest.h"
|
||||
#include "model/GetDpChEcomResult.h"
|
||||
#include "model/GetEcChGeneralRequest.h"
|
||||
#include "model/GetEcChGeneralResult.h"
|
||||
#include "model/GetNerChMedicalRequest.h"
|
||||
#include "model/GetNerChMedicalResult.h"
|
||||
#include "model/GetNerCustomizedChEcomRequest.h"
|
||||
#include "model/GetNerCustomizedChEcomResult.h"
|
||||
#include "model/GetPosChEcomRequest.h"
|
||||
#include "model/GetPosChEcomResult.h"
|
||||
#include "model/GetSummaryChEcomRequest.h"
|
||||
#include "model/GetSummaryChEcomResult.h"
|
||||
#include "model/GetTsChEcomRequest.h"
|
||||
#include "model/GetTsChEcomResult.h"
|
||||
#include "model/GetWeChEcomRequest.h"
|
||||
#include "model/GetWeChEcomResult.h"
|
||||
#include "model/GetWsCustomizedChGeneralRequest.h"
|
||||
#include "model/GetWsCustomizedChGeneralResult.h"
|
||||
#include "model/GetWsCustomizedSeaGeneralRequest.h"
|
||||
#include "model/GetWsCustomizedSeaGeneralResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT AlinlpClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::GetDpChEcomResult> GetDpChEcomOutcome;
|
||||
typedef std::future<GetDpChEcomOutcome> GetDpChEcomOutcomeCallable;
|
||||
typedef std::function<void(const AlinlpClient*, const Model::GetDpChEcomRequest&, const GetDpChEcomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDpChEcomAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetEcChGeneralResult> GetEcChGeneralOutcome;
|
||||
typedef std::future<GetEcChGeneralOutcome> GetEcChGeneralOutcomeCallable;
|
||||
typedef std::function<void(const AlinlpClient*, const Model::GetEcChGeneralRequest&, const GetEcChGeneralOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEcChGeneralAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetNerChMedicalResult> GetNerChMedicalOutcome;
|
||||
typedef std::future<GetNerChMedicalOutcome> GetNerChMedicalOutcomeCallable;
|
||||
typedef std::function<void(const AlinlpClient*, const Model::GetNerChMedicalRequest&, const GetNerChMedicalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNerChMedicalAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetNerCustomizedChEcomResult> GetNerCustomizedChEcomOutcome;
|
||||
typedef std::future<GetNerCustomizedChEcomOutcome> GetNerCustomizedChEcomOutcomeCallable;
|
||||
typedef std::function<void(const AlinlpClient*, const Model::GetNerCustomizedChEcomRequest&, const GetNerCustomizedChEcomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNerCustomizedChEcomAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPosChEcomResult> GetPosChEcomOutcome;
|
||||
typedef std::future<GetPosChEcomOutcome> GetPosChEcomOutcomeCallable;
|
||||
typedef std::function<void(const AlinlpClient*, const Model::GetPosChEcomRequest&, const GetPosChEcomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPosChEcomAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetSummaryChEcomResult> GetSummaryChEcomOutcome;
|
||||
typedef std::future<GetSummaryChEcomOutcome> GetSummaryChEcomOutcomeCallable;
|
||||
typedef std::function<void(const AlinlpClient*, const Model::GetSummaryChEcomRequest&, const GetSummaryChEcomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSummaryChEcomAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTsChEcomResult> GetTsChEcomOutcome;
|
||||
typedef std::future<GetTsChEcomOutcome> GetTsChEcomOutcomeCallable;
|
||||
typedef std::function<void(const AlinlpClient*, const Model::GetTsChEcomRequest&, const GetTsChEcomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTsChEcomAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetWeChEcomResult> GetWeChEcomOutcome;
|
||||
typedef std::future<GetWeChEcomOutcome> GetWeChEcomOutcomeCallable;
|
||||
typedef std::function<void(const AlinlpClient*, const Model::GetWeChEcomRequest&, const GetWeChEcomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetWeChEcomAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetWsCustomizedChGeneralResult> GetWsCustomizedChGeneralOutcome;
|
||||
typedef std::future<GetWsCustomizedChGeneralOutcome> GetWsCustomizedChGeneralOutcomeCallable;
|
||||
typedef std::function<void(const AlinlpClient*, const Model::GetWsCustomizedChGeneralRequest&, const GetWsCustomizedChGeneralOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetWsCustomizedChGeneralAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetWsCustomizedSeaGeneralResult> GetWsCustomizedSeaGeneralOutcome;
|
||||
typedef std::future<GetWsCustomizedSeaGeneralOutcome> GetWsCustomizedSeaGeneralOutcomeCallable;
|
||||
typedef std::function<void(const AlinlpClient*, const Model::GetWsCustomizedSeaGeneralRequest&, const GetWsCustomizedSeaGeneralOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetWsCustomizedSeaGeneralAsyncHandler;
|
||||
|
||||
AlinlpClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
AlinlpClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
AlinlpClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~AlinlpClient();
|
||||
GetDpChEcomOutcome getDpChEcom(const Model::GetDpChEcomRequest &request)const;
|
||||
void getDpChEcomAsync(const Model::GetDpChEcomRequest& request, const GetDpChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDpChEcomOutcomeCallable getDpChEcomCallable(const Model::GetDpChEcomRequest& request) const;
|
||||
GetEcChGeneralOutcome getEcChGeneral(const Model::GetEcChGeneralRequest &request)const;
|
||||
void getEcChGeneralAsync(const Model::GetEcChGeneralRequest& request, const GetEcChGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetEcChGeneralOutcomeCallable getEcChGeneralCallable(const Model::GetEcChGeneralRequest& request) const;
|
||||
GetNerChMedicalOutcome getNerChMedical(const Model::GetNerChMedicalRequest &request)const;
|
||||
void getNerChMedicalAsync(const Model::GetNerChMedicalRequest& request, const GetNerChMedicalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetNerChMedicalOutcomeCallable getNerChMedicalCallable(const Model::GetNerChMedicalRequest& request) const;
|
||||
GetNerCustomizedChEcomOutcome getNerCustomizedChEcom(const Model::GetNerCustomizedChEcomRequest &request)const;
|
||||
void getNerCustomizedChEcomAsync(const Model::GetNerCustomizedChEcomRequest& request, const GetNerCustomizedChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetNerCustomizedChEcomOutcomeCallable getNerCustomizedChEcomCallable(const Model::GetNerCustomizedChEcomRequest& request) const;
|
||||
GetPosChEcomOutcome getPosChEcom(const Model::GetPosChEcomRequest &request)const;
|
||||
void getPosChEcomAsync(const Model::GetPosChEcomRequest& request, const GetPosChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPosChEcomOutcomeCallable getPosChEcomCallable(const Model::GetPosChEcomRequest& request) const;
|
||||
GetSummaryChEcomOutcome getSummaryChEcom(const Model::GetSummaryChEcomRequest &request)const;
|
||||
void getSummaryChEcomAsync(const Model::GetSummaryChEcomRequest& request, const GetSummaryChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetSummaryChEcomOutcomeCallable getSummaryChEcomCallable(const Model::GetSummaryChEcomRequest& request) const;
|
||||
GetTsChEcomOutcome getTsChEcom(const Model::GetTsChEcomRequest &request)const;
|
||||
void getTsChEcomAsync(const Model::GetTsChEcomRequest& request, const GetTsChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTsChEcomOutcomeCallable getTsChEcomCallable(const Model::GetTsChEcomRequest& request) const;
|
||||
GetWeChEcomOutcome getWeChEcom(const Model::GetWeChEcomRequest &request)const;
|
||||
void getWeChEcomAsync(const Model::GetWeChEcomRequest& request, const GetWeChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetWeChEcomOutcomeCallable getWeChEcomCallable(const Model::GetWeChEcomRequest& request) const;
|
||||
GetWsCustomizedChGeneralOutcome getWsCustomizedChGeneral(const Model::GetWsCustomizedChGeneralRequest &request)const;
|
||||
void getWsCustomizedChGeneralAsync(const Model::GetWsCustomizedChGeneralRequest& request, const GetWsCustomizedChGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetWsCustomizedChGeneralOutcomeCallable getWsCustomizedChGeneralCallable(const Model::GetWsCustomizedChGeneralRequest& request) const;
|
||||
GetWsCustomizedSeaGeneralOutcome getWsCustomizedSeaGeneral(const Model::GetWsCustomizedSeaGeneralRequest &request)const;
|
||||
void getWsCustomizedSeaGeneralAsync(const Model::GetWsCustomizedSeaGeneralRequest& request, const GetWsCustomizedSeaGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetWsCustomizedSeaGeneralOutcomeCallable getWsCustomizedSeaGeneralCallable(const Model::GetWsCustomizedSeaGeneralRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ALINLP_ALINLPCLIENT_H_
|
||||
32
alinlp/include/alibabacloud/alinlp/AlinlpExport.h
Normal file
32
alinlp/include/alibabacloud/alinlp/AlinlpExport.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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_ALINLP_ALINLPEXPORT_H_
|
||||
#define ALIBABACLOUD_ALINLP_ALINLPEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ALINLP_LIBRARY)
|
||||
# define ALIBABACLOUD_ALINLP_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ALINLP_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ALINLP_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ALINLP_ALINLPEXPORT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETDPCHECOMREQUEST_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETDPCHECOMREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetDpChEcomRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetDpChEcomRequest();
|
||||
~GetDpChEcomRequest();
|
||||
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
std::string getText()const;
|
||||
void setText(const std::string& text);
|
||||
|
||||
private:
|
||||
std::string serviceCode_;
|
||||
std::string text_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETDPCHECOMREQUEST_H_
|
||||
@@ -14,36 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_DELETELIVEAPPRECORDCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DELETELIVEAPPRECORDCONFIGRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETDPCHECOMRESULT_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETDPCHECOMRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DeleteLiveAppRecordConfigResult : public ServiceResult
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetDpChEcomResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteLiveAppRecordConfigResult();
|
||||
explicit DeleteLiveAppRecordConfigResult(const std::string &payload);
|
||||
~DeleteLiveAppRecordConfigResult();
|
||||
GetDpChEcomResult();
|
||||
explicit GetDpChEcomResult(const std::string &payload);
|
||||
~GetDpChEcomResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DELETELIVEAPPRECORDCONFIGRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETDPCHECOMRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETECCHGENERALREQUEST_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETECCHGENERALREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetEcChGeneralRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetEcChGeneralRequest();
|
||||
~GetEcChGeneralRequest();
|
||||
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
std::string getText()const;
|
||||
void setText(const std::string& text);
|
||||
|
||||
private:
|
||||
std::string serviceCode_;
|
||||
std::string text_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETECCHGENERALREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETECCHGENERALRESULT_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETECCHGENERALRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetEcChGeneralResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetEcChGeneralResult();
|
||||
explicit GetEcChGeneralResult(const std::string &payload);
|
||||
~GetEcChGeneralResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETECCHGENERALRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETNERCHMEDICALREQUEST_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETNERCHMEDICALREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetNerChMedicalRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetNerChMedicalRequest();
|
||||
~GetNerChMedicalRequest();
|
||||
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
std::string getText()const;
|
||||
void setText(const std::string& text);
|
||||
|
||||
private:
|
||||
std::string serviceCode_;
|
||||
std::string text_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETNERCHMEDICALREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETNERCHMEDICALRESULT_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETNERCHMEDICALRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetNerChMedicalResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetNerChMedicalResult();
|
||||
explicit GetNerChMedicalResult(const std::string &payload);
|
||||
~GetNerChMedicalResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETNERCHMEDICALRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETNERCUSTOMIZEDCHECOMREQUEST_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETNERCUSTOMIZEDCHECOMREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetNerCustomizedChEcomRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetNerCustomizedChEcomRequest();
|
||||
~GetNerCustomizedChEcomRequest();
|
||||
|
||||
std::string getLexerId()const;
|
||||
void setLexerId(const std::string& lexerId);
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
std::string getText()const;
|
||||
void setText(const std::string& text);
|
||||
|
||||
private:
|
||||
std::string lexerId_;
|
||||
std::string serviceCode_;
|
||||
std::string text_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETNERCUSTOMIZEDCHECOMREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETNERCUSTOMIZEDCHECOMRESULT_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETNERCUSTOMIZEDCHECOMRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetNerCustomizedChEcomResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetNerCustomizedChEcomResult();
|
||||
explicit GetNerCustomizedChEcomResult(const std::string &payload);
|
||||
~GetNerCustomizedChEcomResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETNERCUSTOMIZEDCHECOMRESULT_H_
|
||||
@@ -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_ALINLP_MODEL_GETPOSCHECOMREQUEST_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETPOSCHECOMREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetPosChEcomRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetPosChEcomRequest();
|
||||
~GetPosChEcomRequest();
|
||||
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
std::string getTokenizerId()const;
|
||||
void setTokenizerId(const std::string& tokenizerId);
|
||||
std::string getText()const;
|
||||
void setText(const std::string& text);
|
||||
std::string getOutType()const;
|
||||
void setOutType(const std::string& outType);
|
||||
|
||||
private:
|
||||
std::string serviceCode_;
|
||||
std::string tokenizerId_;
|
||||
std::string text_;
|
||||
std::string outType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETPOSCHECOMREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETPOSCHECOMRESULT_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETPOSCHECOMRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetPosChEcomResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetPosChEcomResult();
|
||||
explicit GetPosChEcomResult(const std::string &payload);
|
||||
~GetPosChEcomResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETPOSCHECOMRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETSUMMARYCHECOMREQUEST_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETSUMMARYCHECOMREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetSummaryChEcomRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetSummaryChEcomRequest();
|
||||
~GetSummaryChEcomRequest();
|
||||
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
std::string getText()const;
|
||||
void setText(const std::string& text);
|
||||
|
||||
private:
|
||||
std::string serviceCode_;
|
||||
std::string text_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETSUMMARYCHECOMREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETSUMMARYCHECOMRESULT_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETSUMMARYCHECOMRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetSummaryChEcomResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetSummaryChEcomResult();
|
||||
explicit GetSummaryChEcomResult(const std::string &payload);
|
||||
~GetSummaryChEcomResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETSUMMARYCHECOMRESULT_H_
|
||||
@@ -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_ALINLP_MODEL_GETTSCHECOMREQUEST_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETTSCHECOMREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetTsChEcomRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTsChEcomRequest();
|
||||
~GetTsChEcomRequest();
|
||||
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
std::string getOriginT()const;
|
||||
void setOriginT(const std::string& originT);
|
||||
std::string getOriginQ()const;
|
||||
void setOriginQ(const std::string& originQ);
|
||||
|
||||
private:
|
||||
std::string type_;
|
||||
std::string serviceCode_;
|
||||
std::string originT_;
|
||||
std::string originQ_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETTSCHECOMREQUEST_H_
|
||||
51
alinlp/include/alibabacloud/alinlp/model/GetTsChEcomResult.h
Normal file
51
alinlp/include/alibabacloud/alinlp/model/GetTsChEcomResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETTSCHECOMRESULT_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETTSCHECOMRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetTsChEcomResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetTsChEcomResult();
|
||||
explicit GetTsChEcomResult(const std::string &payload);
|
||||
~GetTsChEcomResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETTSCHECOMRESULT_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETWECHECOMREQUEST_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETWECHECOMREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetWeChEcomRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetWeChEcomRequest();
|
||||
~GetWeChEcomRequest();
|
||||
|
||||
std::string getWordVectorDelimiter()const;
|
||||
void setWordVectorDelimiter(const std::string& wordVectorDelimiter);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getUuid()const;
|
||||
void setUuid(const std::string& uuid);
|
||||
std::string getDelimiter()const;
|
||||
void setDelimiter(const std::string& delimiter);
|
||||
std::string getText()const;
|
||||
void setText(const std::string& text);
|
||||
std::string getToken()const;
|
||||
void setToken(const std::string& token);
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
std::string getSize()const;
|
||||
void setSize(const std::string& size);
|
||||
std::string getWordDelimiter()const;
|
||||
void setWordDelimiter(const std::string& wordDelimiter);
|
||||
std::string getOperation()const;
|
||||
void setOperation(const std::string& operation);
|
||||
|
||||
private:
|
||||
std::string wordVectorDelimiter_;
|
||||
std::string type_;
|
||||
std::string uuid_;
|
||||
std::string delimiter_;
|
||||
std::string text_;
|
||||
std::string token_;
|
||||
std::string serviceCode_;
|
||||
std::string size_;
|
||||
std::string wordDelimiter_;
|
||||
std::string operation_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETWECHECOMREQUEST_H_
|
||||
51
alinlp/include/alibabacloud/alinlp/model/GetWeChEcomResult.h
Normal file
51
alinlp/include/alibabacloud/alinlp/model/GetWeChEcomResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETWECHECOMRESULT_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETWECHECOMRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetWeChEcomResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetWeChEcomResult();
|
||||
explicit GetWeChEcomResult(const std::string &payload);
|
||||
~GetWeChEcomResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETWECHECOMRESULT_H_
|
||||
@@ -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_ALINLP_MODEL_GETWSCUSTOMIZEDCHGENERALREQUEST_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDCHGENERALREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetWsCustomizedChGeneralRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetWsCustomizedChGeneralRequest();
|
||||
~GetWsCustomizedChGeneralRequest();
|
||||
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
std::string getTokenizerId()const;
|
||||
void setTokenizerId(const std::string& tokenizerId);
|
||||
std::string getText()const;
|
||||
void setText(const std::string& text);
|
||||
std::string getOutType()const;
|
||||
void setOutType(const std::string& outType);
|
||||
|
||||
private:
|
||||
std::string serviceCode_;
|
||||
std::string tokenizerId_;
|
||||
std::string text_;
|
||||
std::string outType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDCHGENERALREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDCHGENERALRESULT_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDCHGENERALRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetWsCustomizedChGeneralResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetWsCustomizedChGeneralResult();
|
||||
explicit GetWsCustomizedChGeneralResult(const std::string &payload);
|
||||
~GetWsCustomizedChGeneralResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDCHGENERALRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDSEAGENERALREQUEST_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDSEAGENERALREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetWsCustomizedSeaGeneralRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetWsCustomizedSeaGeneralRequest();
|
||||
~GetWsCustomizedSeaGeneralRequest();
|
||||
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
std::string getText()const;
|
||||
void setText(const std::string& text);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string serviceCode_;
|
||||
std::string text_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDSEAGENERALREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDSEAGENERALRESULT_H_
|
||||
#define ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDSEAGENERALRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alinlp/AlinlpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alinlp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALINLP_EXPORT GetWsCustomizedSeaGeneralResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetWsCustomizedSeaGeneralResult();
|
||||
explicit GetWsCustomizedSeaGeneralResult(const std::string &payload);
|
||||
~GetWsCustomizedSeaGeneralResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDSEAGENERALRESULT_H_
|
||||
413
alinlp/src/AlinlpClient.cc
Normal file
413
alinlp/src/AlinlpClient.cc
Normal file
@@ -0,0 +1,413 @@
|
||||
/*
|
||||
* 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/alinlp/AlinlpClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Alinlp;
|
||||
using namespace AlibabaCloud::Alinlp::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "alinlp";
|
||||
}
|
||||
|
||||
AlinlpClient::AlinlpClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alinlp");
|
||||
}
|
||||
|
||||
AlinlpClient::AlinlpClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alinlp");
|
||||
}
|
||||
|
||||
AlinlpClient::AlinlpClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alinlp");
|
||||
}
|
||||
|
||||
AlinlpClient::~AlinlpClient()
|
||||
{}
|
||||
|
||||
AlinlpClient::GetDpChEcomOutcome AlinlpClient::getDpChEcom(const GetDpChEcomRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDpChEcomOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDpChEcomOutcome(GetDpChEcomResult(outcome.result()));
|
||||
else
|
||||
return GetDpChEcomOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlinlpClient::getDpChEcomAsync(const GetDpChEcomRequest& request, const GetDpChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDpChEcom(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlinlpClient::GetDpChEcomOutcomeCallable AlinlpClient::getDpChEcomCallable(const GetDpChEcomRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDpChEcomOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDpChEcom(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlinlpClient::GetEcChGeneralOutcome AlinlpClient::getEcChGeneral(const GetEcChGeneralRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetEcChGeneralOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetEcChGeneralOutcome(GetEcChGeneralResult(outcome.result()));
|
||||
else
|
||||
return GetEcChGeneralOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlinlpClient::getEcChGeneralAsync(const GetEcChGeneralRequest& request, const GetEcChGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getEcChGeneral(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlinlpClient::GetEcChGeneralOutcomeCallable AlinlpClient::getEcChGeneralCallable(const GetEcChGeneralRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetEcChGeneralOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getEcChGeneral(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlinlpClient::GetNerChMedicalOutcome AlinlpClient::getNerChMedical(const GetNerChMedicalRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetNerChMedicalOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetNerChMedicalOutcome(GetNerChMedicalResult(outcome.result()));
|
||||
else
|
||||
return GetNerChMedicalOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlinlpClient::getNerChMedicalAsync(const GetNerChMedicalRequest& request, const GetNerChMedicalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getNerChMedical(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlinlpClient::GetNerChMedicalOutcomeCallable AlinlpClient::getNerChMedicalCallable(const GetNerChMedicalRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetNerChMedicalOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getNerChMedical(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlinlpClient::GetNerCustomizedChEcomOutcome AlinlpClient::getNerCustomizedChEcom(const GetNerCustomizedChEcomRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetNerCustomizedChEcomOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetNerCustomizedChEcomOutcome(GetNerCustomizedChEcomResult(outcome.result()));
|
||||
else
|
||||
return GetNerCustomizedChEcomOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlinlpClient::getNerCustomizedChEcomAsync(const GetNerCustomizedChEcomRequest& request, const GetNerCustomizedChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getNerCustomizedChEcom(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlinlpClient::GetNerCustomizedChEcomOutcomeCallable AlinlpClient::getNerCustomizedChEcomCallable(const GetNerCustomizedChEcomRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetNerCustomizedChEcomOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getNerCustomizedChEcom(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlinlpClient::GetPosChEcomOutcome AlinlpClient::getPosChEcom(const GetPosChEcomRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetPosChEcomOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetPosChEcomOutcome(GetPosChEcomResult(outcome.result()));
|
||||
else
|
||||
return GetPosChEcomOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlinlpClient::getPosChEcomAsync(const GetPosChEcomRequest& request, const GetPosChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getPosChEcom(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlinlpClient::GetPosChEcomOutcomeCallable AlinlpClient::getPosChEcomCallable(const GetPosChEcomRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetPosChEcomOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getPosChEcom(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlinlpClient::GetSummaryChEcomOutcome AlinlpClient::getSummaryChEcom(const GetSummaryChEcomRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetSummaryChEcomOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetSummaryChEcomOutcome(GetSummaryChEcomResult(outcome.result()));
|
||||
else
|
||||
return GetSummaryChEcomOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlinlpClient::getSummaryChEcomAsync(const GetSummaryChEcomRequest& request, const GetSummaryChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getSummaryChEcom(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlinlpClient::GetSummaryChEcomOutcomeCallable AlinlpClient::getSummaryChEcomCallable(const GetSummaryChEcomRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetSummaryChEcomOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getSummaryChEcom(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlinlpClient::GetTsChEcomOutcome AlinlpClient::getTsChEcom(const GetTsChEcomRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTsChEcomOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTsChEcomOutcome(GetTsChEcomResult(outcome.result()));
|
||||
else
|
||||
return GetTsChEcomOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlinlpClient::getTsChEcomAsync(const GetTsChEcomRequest& request, const GetTsChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTsChEcom(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlinlpClient::GetTsChEcomOutcomeCallable AlinlpClient::getTsChEcomCallable(const GetTsChEcomRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTsChEcomOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTsChEcom(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlinlpClient::GetWeChEcomOutcome AlinlpClient::getWeChEcom(const GetWeChEcomRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetWeChEcomOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetWeChEcomOutcome(GetWeChEcomResult(outcome.result()));
|
||||
else
|
||||
return GetWeChEcomOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlinlpClient::getWeChEcomAsync(const GetWeChEcomRequest& request, const GetWeChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getWeChEcom(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlinlpClient::GetWeChEcomOutcomeCallable AlinlpClient::getWeChEcomCallable(const GetWeChEcomRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetWeChEcomOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getWeChEcom(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlinlpClient::GetWsCustomizedChGeneralOutcome AlinlpClient::getWsCustomizedChGeneral(const GetWsCustomizedChGeneralRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetWsCustomizedChGeneralOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetWsCustomizedChGeneralOutcome(GetWsCustomizedChGeneralResult(outcome.result()));
|
||||
else
|
||||
return GetWsCustomizedChGeneralOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlinlpClient::getWsCustomizedChGeneralAsync(const GetWsCustomizedChGeneralRequest& request, const GetWsCustomizedChGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getWsCustomizedChGeneral(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlinlpClient::GetWsCustomizedChGeneralOutcomeCallable AlinlpClient::getWsCustomizedChGeneralCallable(const GetWsCustomizedChGeneralRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetWsCustomizedChGeneralOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getWsCustomizedChGeneral(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlinlpClient::GetWsCustomizedSeaGeneralOutcome AlinlpClient::getWsCustomizedSeaGeneral(const GetWsCustomizedSeaGeneralRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetWsCustomizedSeaGeneralOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetWsCustomizedSeaGeneralOutcome(GetWsCustomizedSeaGeneralResult(outcome.result()));
|
||||
else
|
||||
return GetWsCustomizedSeaGeneralOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlinlpClient::getWsCustomizedSeaGeneralAsync(const GetWsCustomizedSeaGeneralRequest& request, const GetWsCustomizedSeaGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getWsCustomizedSeaGeneral(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlinlpClient::GetWsCustomizedSeaGeneralOutcomeCallable AlinlpClient::getWsCustomizedSeaGeneralCallable(const GetWsCustomizedSeaGeneralRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetWsCustomizedSeaGeneralOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getWsCustomizedSeaGeneral(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
51
alinlp/src/model/GetDpChEcomRequest.cc
Normal file
51
alinlp/src/model/GetDpChEcomRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alinlp/model/GetDpChEcomRequest.h>
|
||||
|
||||
using AlibabaCloud::Alinlp::Model::GetDpChEcomRequest;
|
||||
|
||||
GetDpChEcomRequest::GetDpChEcomRequest() :
|
||||
RpcServiceRequest("alinlp", "2020-06-29", "GetDpChEcom")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDpChEcomRequest::~GetDpChEcomRequest()
|
||||
{}
|
||||
|
||||
std::string GetDpChEcomRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void GetDpChEcomRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setBodyParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string GetDpChEcomRequest::getText()const
|
||||
{
|
||||
return text_;
|
||||
}
|
||||
|
||||
void GetDpChEcomRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setBodyParameter("Text", text);
|
||||
}
|
||||
|
||||
51
alinlp/src/model/GetDpChEcomResult.cc
Normal file
51
alinlp/src/model/GetDpChEcomResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alinlp/model/GetDpChEcomResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alinlp;
|
||||
using namespace AlibabaCloud::Alinlp::Model;
|
||||
|
||||
GetDpChEcomResult::GetDpChEcomResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDpChEcomResult::GetDpChEcomResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDpChEcomResult::~GetDpChEcomResult()
|
||||
{}
|
||||
|
||||
void GetDpChEcomResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetDpChEcomResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
51
alinlp/src/model/GetEcChGeneralRequest.cc
Normal file
51
alinlp/src/model/GetEcChGeneralRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alinlp/model/GetEcChGeneralRequest.h>
|
||||
|
||||
using AlibabaCloud::Alinlp::Model::GetEcChGeneralRequest;
|
||||
|
||||
GetEcChGeneralRequest::GetEcChGeneralRequest() :
|
||||
RpcServiceRequest("alinlp", "2020-06-29", "GetEcChGeneral")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetEcChGeneralRequest::~GetEcChGeneralRequest()
|
||||
{}
|
||||
|
||||
std::string GetEcChGeneralRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void GetEcChGeneralRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setBodyParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string GetEcChGeneralRequest::getText()const
|
||||
{
|
||||
return text_;
|
||||
}
|
||||
|
||||
void GetEcChGeneralRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setBodyParameter("Text", text);
|
||||
}
|
||||
|
||||
51
alinlp/src/model/GetEcChGeneralResult.cc
Normal file
51
alinlp/src/model/GetEcChGeneralResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alinlp/model/GetEcChGeneralResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alinlp;
|
||||
using namespace AlibabaCloud::Alinlp::Model;
|
||||
|
||||
GetEcChGeneralResult::GetEcChGeneralResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetEcChGeneralResult::GetEcChGeneralResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetEcChGeneralResult::~GetEcChGeneralResult()
|
||||
{}
|
||||
|
||||
void GetEcChGeneralResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetEcChGeneralResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
51
alinlp/src/model/GetNerChMedicalRequest.cc
Normal file
51
alinlp/src/model/GetNerChMedicalRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alinlp/model/GetNerChMedicalRequest.h>
|
||||
|
||||
using AlibabaCloud::Alinlp::Model::GetNerChMedicalRequest;
|
||||
|
||||
GetNerChMedicalRequest::GetNerChMedicalRequest() :
|
||||
RpcServiceRequest("alinlp", "2020-06-29", "GetNerChMedical")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetNerChMedicalRequest::~GetNerChMedicalRequest()
|
||||
{}
|
||||
|
||||
std::string GetNerChMedicalRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void GetNerChMedicalRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setBodyParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string GetNerChMedicalRequest::getText()const
|
||||
{
|
||||
return text_;
|
||||
}
|
||||
|
||||
void GetNerChMedicalRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setBodyParameter("Text", text);
|
||||
}
|
||||
|
||||
51
alinlp/src/model/GetNerChMedicalResult.cc
Normal file
51
alinlp/src/model/GetNerChMedicalResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alinlp/model/GetNerChMedicalResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alinlp;
|
||||
using namespace AlibabaCloud::Alinlp::Model;
|
||||
|
||||
GetNerChMedicalResult::GetNerChMedicalResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetNerChMedicalResult::GetNerChMedicalResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetNerChMedicalResult::~GetNerChMedicalResult()
|
||||
{}
|
||||
|
||||
void GetNerChMedicalResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetNerChMedicalResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
62
alinlp/src/model/GetNerCustomizedChEcomRequest.cc
Normal file
62
alinlp/src/model/GetNerCustomizedChEcomRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alinlp/model/GetNerCustomizedChEcomRequest.h>
|
||||
|
||||
using AlibabaCloud::Alinlp::Model::GetNerCustomizedChEcomRequest;
|
||||
|
||||
GetNerCustomizedChEcomRequest::GetNerCustomizedChEcomRequest() :
|
||||
RpcServiceRequest("alinlp", "2020-06-29", "GetNerCustomizedChEcom")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetNerCustomizedChEcomRequest::~GetNerCustomizedChEcomRequest()
|
||||
{}
|
||||
|
||||
std::string GetNerCustomizedChEcomRequest::getLexerId()const
|
||||
{
|
||||
return lexerId_;
|
||||
}
|
||||
|
||||
void GetNerCustomizedChEcomRequest::setLexerId(const std::string& lexerId)
|
||||
{
|
||||
lexerId_ = lexerId;
|
||||
setBodyParameter("LexerId", lexerId);
|
||||
}
|
||||
|
||||
std::string GetNerCustomizedChEcomRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void GetNerCustomizedChEcomRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setBodyParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string GetNerCustomizedChEcomRequest::getText()const
|
||||
{
|
||||
return text_;
|
||||
}
|
||||
|
||||
void GetNerCustomizedChEcomRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setBodyParameter("Text", text);
|
||||
}
|
||||
|
||||
51
alinlp/src/model/GetNerCustomizedChEcomResult.cc
Normal file
51
alinlp/src/model/GetNerCustomizedChEcomResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alinlp/model/GetNerCustomizedChEcomResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alinlp;
|
||||
using namespace AlibabaCloud::Alinlp::Model;
|
||||
|
||||
GetNerCustomizedChEcomResult::GetNerCustomizedChEcomResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetNerCustomizedChEcomResult::GetNerCustomizedChEcomResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetNerCustomizedChEcomResult::~GetNerCustomizedChEcomResult()
|
||||
{}
|
||||
|
||||
void GetNerCustomizedChEcomResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetNerCustomizedChEcomResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
73
alinlp/src/model/GetPosChEcomRequest.cc
Normal file
73
alinlp/src/model/GetPosChEcomRequest.cc
Normal 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/alinlp/model/GetPosChEcomRequest.h>
|
||||
|
||||
using AlibabaCloud::Alinlp::Model::GetPosChEcomRequest;
|
||||
|
||||
GetPosChEcomRequest::GetPosChEcomRequest() :
|
||||
RpcServiceRequest("alinlp", "2020-06-29", "GetPosChEcom")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPosChEcomRequest::~GetPosChEcomRequest()
|
||||
{}
|
||||
|
||||
std::string GetPosChEcomRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void GetPosChEcomRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setBodyParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string GetPosChEcomRequest::getTokenizerId()const
|
||||
{
|
||||
return tokenizerId_;
|
||||
}
|
||||
|
||||
void GetPosChEcomRequest::setTokenizerId(const std::string& tokenizerId)
|
||||
{
|
||||
tokenizerId_ = tokenizerId;
|
||||
setBodyParameter("TokenizerId", tokenizerId);
|
||||
}
|
||||
|
||||
std::string GetPosChEcomRequest::getText()const
|
||||
{
|
||||
return text_;
|
||||
}
|
||||
|
||||
void GetPosChEcomRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setBodyParameter("Text", text);
|
||||
}
|
||||
|
||||
std::string GetPosChEcomRequest::getOutType()const
|
||||
{
|
||||
return outType_;
|
||||
}
|
||||
|
||||
void GetPosChEcomRequest::setOutType(const std::string& outType)
|
||||
{
|
||||
outType_ = outType;
|
||||
setBodyParameter("OutType", outType);
|
||||
}
|
||||
|
||||
51
alinlp/src/model/GetPosChEcomResult.cc
Normal file
51
alinlp/src/model/GetPosChEcomResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alinlp/model/GetPosChEcomResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alinlp;
|
||||
using namespace AlibabaCloud::Alinlp::Model;
|
||||
|
||||
GetPosChEcomResult::GetPosChEcomResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPosChEcomResult::GetPosChEcomResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPosChEcomResult::~GetPosChEcomResult()
|
||||
{}
|
||||
|
||||
void GetPosChEcomResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetPosChEcomResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
51
alinlp/src/model/GetSummaryChEcomRequest.cc
Normal file
51
alinlp/src/model/GetSummaryChEcomRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alinlp/model/GetSummaryChEcomRequest.h>
|
||||
|
||||
using AlibabaCloud::Alinlp::Model::GetSummaryChEcomRequest;
|
||||
|
||||
GetSummaryChEcomRequest::GetSummaryChEcomRequest() :
|
||||
RpcServiceRequest("alinlp", "2020-06-29", "GetSummaryChEcom")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetSummaryChEcomRequest::~GetSummaryChEcomRequest()
|
||||
{}
|
||||
|
||||
std::string GetSummaryChEcomRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void GetSummaryChEcomRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setBodyParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string GetSummaryChEcomRequest::getText()const
|
||||
{
|
||||
return text_;
|
||||
}
|
||||
|
||||
void GetSummaryChEcomRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setBodyParameter("Text", text);
|
||||
}
|
||||
|
||||
51
alinlp/src/model/GetSummaryChEcomResult.cc
Normal file
51
alinlp/src/model/GetSummaryChEcomResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alinlp/model/GetSummaryChEcomResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alinlp;
|
||||
using namespace AlibabaCloud::Alinlp::Model;
|
||||
|
||||
GetSummaryChEcomResult::GetSummaryChEcomResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetSummaryChEcomResult::GetSummaryChEcomResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetSummaryChEcomResult::~GetSummaryChEcomResult()
|
||||
{}
|
||||
|
||||
void GetSummaryChEcomResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetSummaryChEcomResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
73
alinlp/src/model/GetTsChEcomRequest.cc
Normal file
73
alinlp/src/model/GetTsChEcomRequest.cc
Normal 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/alinlp/model/GetTsChEcomRequest.h>
|
||||
|
||||
using AlibabaCloud::Alinlp::Model::GetTsChEcomRequest;
|
||||
|
||||
GetTsChEcomRequest::GetTsChEcomRequest() :
|
||||
RpcServiceRequest("alinlp", "2020-06-29", "GetTsChEcom")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTsChEcomRequest::~GetTsChEcomRequest()
|
||||
{}
|
||||
|
||||
std::string GetTsChEcomRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void GetTsChEcomRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string GetTsChEcomRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void GetTsChEcomRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setBodyParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string GetTsChEcomRequest::getOriginT()const
|
||||
{
|
||||
return originT_;
|
||||
}
|
||||
|
||||
void GetTsChEcomRequest::setOriginT(const std::string& originT)
|
||||
{
|
||||
originT_ = originT;
|
||||
setBodyParameter("OriginT", originT);
|
||||
}
|
||||
|
||||
std::string GetTsChEcomRequest::getOriginQ()const
|
||||
{
|
||||
return originQ_;
|
||||
}
|
||||
|
||||
void GetTsChEcomRequest::setOriginQ(const std::string& originQ)
|
||||
{
|
||||
originQ_ = originQ;
|
||||
setBodyParameter("OriginQ", originQ);
|
||||
}
|
||||
|
||||
51
alinlp/src/model/GetTsChEcomResult.cc
Normal file
51
alinlp/src/model/GetTsChEcomResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alinlp/model/GetTsChEcomResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alinlp;
|
||||
using namespace AlibabaCloud::Alinlp::Model;
|
||||
|
||||
GetTsChEcomResult::GetTsChEcomResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTsChEcomResult::GetTsChEcomResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTsChEcomResult::~GetTsChEcomResult()
|
||||
{}
|
||||
|
||||
void GetTsChEcomResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTsChEcomResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
139
alinlp/src/model/GetWeChEcomRequest.cc
Normal file
139
alinlp/src/model/GetWeChEcomRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alinlp/model/GetWeChEcomRequest.h>
|
||||
|
||||
using AlibabaCloud::Alinlp::Model::GetWeChEcomRequest;
|
||||
|
||||
GetWeChEcomRequest::GetWeChEcomRequest() :
|
||||
RpcServiceRequest("alinlp", "2020-06-29", "GetWeChEcom")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetWeChEcomRequest::~GetWeChEcomRequest()
|
||||
{}
|
||||
|
||||
std::string GetWeChEcomRequest::getWordVectorDelimiter()const
|
||||
{
|
||||
return wordVectorDelimiter_;
|
||||
}
|
||||
|
||||
void GetWeChEcomRequest::setWordVectorDelimiter(const std::string& wordVectorDelimiter)
|
||||
{
|
||||
wordVectorDelimiter_ = wordVectorDelimiter;
|
||||
setBodyParameter("WordVectorDelimiter", wordVectorDelimiter);
|
||||
}
|
||||
|
||||
std::string GetWeChEcomRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void GetWeChEcomRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string GetWeChEcomRequest::getUuid()const
|
||||
{
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
void GetWeChEcomRequest::setUuid(const std::string& uuid)
|
||||
{
|
||||
uuid_ = uuid;
|
||||
setBodyParameter("Uuid", uuid);
|
||||
}
|
||||
|
||||
std::string GetWeChEcomRequest::getDelimiter()const
|
||||
{
|
||||
return delimiter_;
|
||||
}
|
||||
|
||||
void GetWeChEcomRequest::setDelimiter(const std::string& delimiter)
|
||||
{
|
||||
delimiter_ = delimiter;
|
||||
setBodyParameter("Delimiter", delimiter);
|
||||
}
|
||||
|
||||
std::string GetWeChEcomRequest::getText()const
|
||||
{
|
||||
return text_;
|
||||
}
|
||||
|
||||
void GetWeChEcomRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setBodyParameter("Text", text);
|
||||
}
|
||||
|
||||
std::string GetWeChEcomRequest::getToken()const
|
||||
{
|
||||
return token_;
|
||||
}
|
||||
|
||||
void GetWeChEcomRequest::setToken(const std::string& token)
|
||||
{
|
||||
token_ = token;
|
||||
setBodyParameter("Token", token);
|
||||
}
|
||||
|
||||
std::string GetWeChEcomRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void GetWeChEcomRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setBodyParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string GetWeChEcomRequest::getSize()const
|
||||
{
|
||||
return size_;
|
||||
}
|
||||
|
||||
void GetWeChEcomRequest::setSize(const std::string& size)
|
||||
{
|
||||
size_ = size;
|
||||
setBodyParameter("Size", size);
|
||||
}
|
||||
|
||||
std::string GetWeChEcomRequest::getWordDelimiter()const
|
||||
{
|
||||
return wordDelimiter_;
|
||||
}
|
||||
|
||||
void GetWeChEcomRequest::setWordDelimiter(const std::string& wordDelimiter)
|
||||
{
|
||||
wordDelimiter_ = wordDelimiter;
|
||||
setBodyParameter("WordDelimiter", wordDelimiter);
|
||||
}
|
||||
|
||||
std::string GetWeChEcomRequest::getOperation()const
|
||||
{
|
||||
return operation_;
|
||||
}
|
||||
|
||||
void GetWeChEcomRequest::setOperation(const std::string& operation)
|
||||
{
|
||||
operation_ = operation;
|
||||
setBodyParameter("Operation", operation);
|
||||
}
|
||||
|
||||
51
alinlp/src/model/GetWeChEcomResult.cc
Normal file
51
alinlp/src/model/GetWeChEcomResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alinlp/model/GetWeChEcomResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alinlp;
|
||||
using namespace AlibabaCloud::Alinlp::Model;
|
||||
|
||||
GetWeChEcomResult::GetWeChEcomResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetWeChEcomResult::GetWeChEcomResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetWeChEcomResult::~GetWeChEcomResult()
|
||||
{}
|
||||
|
||||
void GetWeChEcomResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetWeChEcomResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user