Compare commits
199 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
458e22b006 | ||
|
|
a375fa9d99 | ||
|
|
c8d90808f0 | ||
|
|
886cef155f | ||
|
|
051077c805 | ||
|
|
589d7c0177 | ||
|
|
22313c7d61 | ||
|
|
192ded93b1 | ||
|
|
dde68d8a28 | ||
|
|
b299d10992 | ||
|
|
5c871c6dcd | ||
|
|
3312e299ac | ||
|
|
60bb031e74 | ||
|
|
d74432d350 | ||
|
|
7ddae594ab | ||
|
|
3a727a7cb8 | ||
|
|
c0327a8b18 | ||
|
|
283dc6d360 | ||
|
|
212db1e32d | ||
|
|
d733a6db40 | ||
|
|
3177214fec | ||
|
|
805659acd5 | ||
|
|
0b54cf98a5 | ||
|
|
cbe97f842a | ||
|
|
ac7c0da065 | ||
|
|
b7792b239d | ||
|
|
e6bf769f7c | ||
|
|
a869263856 | ||
|
|
863030766c | ||
|
|
7a6b431ace | ||
|
|
c70caca128 | ||
|
|
09d6015e09 | ||
|
|
39478f1c33 | ||
|
|
e95083301e | ||
|
|
e98b3a0c80 | ||
|
|
6950861a84 | ||
|
|
92ffb966bd | ||
|
|
179726e2c2 | ||
|
|
0683d0188a | ||
|
|
2034a7ce61 | ||
|
|
46f59d340b | ||
|
|
fc0ca83c5e | ||
|
|
046fa0c8a7 | ||
|
|
6e394508b1 | ||
|
|
2cf2c1a693 | ||
|
|
2655b67ecf | ||
|
|
811dc06c78 | ||
|
|
062ac6c53a | ||
|
|
c5710477dc | ||
|
|
4970164a9f | ||
|
|
ae139aef77 | ||
|
|
06af2542bd | ||
|
|
150f012d41 | ||
|
|
b618f90905 | ||
|
|
005a84c9f4 | ||
|
|
5df7719b65 | ||
|
|
419d2ef5e8 | ||
|
|
04d98c2083 | ||
|
|
b3b1f59165 | ||
|
|
1308f2904e | ||
|
|
1c75989037 | ||
|
|
2d2d1e86d9 | ||
|
|
43b055ce70 | ||
|
|
6eb45b0747 | ||
|
|
1ff4eb0f4c | ||
|
|
0fa981b589 | ||
|
|
31b4d82c33 | ||
|
|
a6e305285a | ||
|
|
82e7652c01 | ||
|
|
c2475a651e | ||
|
|
a137d01a2d | ||
|
|
8c76154f4f | ||
|
|
1380c5890f | ||
|
|
ed952131e7 | ||
|
|
220fbacfa2 | ||
|
|
26ec339ba4 | ||
|
|
977bef47bf | ||
|
|
1f167df35d | ||
|
|
4b4f526887 | ||
|
|
784a67c71a | ||
|
|
1333c0ead7 | ||
|
|
4ec4f4488c | ||
|
|
34dd2572f1 | ||
|
|
6f8776cbe1 | ||
|
|
4ec1c844d0 | ||
|
|
ee2f3a43cf | ||
|
|
0d265770f7 | ||
|
|
e9cb30aad0 | ||
|
|
1db5817d99 | ||
|
|
c5a4e342b2 | ||
|
|
d3f6835294 | ||
|
|
26eb8b61f6 | ||
|
|
ecae0a8927 | ||
|
|
61a7ba5e1b | ||
|
|
377504fe8a | ||
|
|
1884db41cf | ||
|
|
2345df949e | ||
|
|
a635c9380f | ||
|
|
41d6a4f6e3 | ||
|
|
3eaac1a328 | ||
|
|
fe741d3fe9 | ||
|
|
6e83ebf540 | ||
|
|
175bcdf71a | ||
|
|
625c854f5d | ||
|
|
0755e147eb | ||
|
|
9b0be63347 | ||
|
|
e9e64ef7f1 | ||
|
|
0c9e78e25d | ||
|
|
144aaf2401 | ||
|
|
f9603e792e | ||
|
|
b8b197b741 | ||
|
|
2344a2c7cc | ||
|
|
217a9b18ed | ||
|
|
78f4dae59d | ||
|
|
55bf08e936 | ||
|
|
996847f7aa | ||
|
|
d24791dc62 | ||
|
|
1fa00fa025 | ||
|
|
d0b781c4c5 | ||
|
|
e922990dbc | ||
|
|
07d1480059 | ||
|
|
a0e90cc606 | ||
|
|
d93b632d3b | ||
|
|
6cbb9bf950 | ||
|
|
752399d8fa | ||
|
|
15f0e363ca | ||
|
|
1637cf567e | ||
|
|
28732a4b06 | ||
|
|
c94a2b34a1 | ||
|
|
436e293e96 | ||
|
|
518c2f8c75 | ||
|
|
d486290c14 | ||
|
|
2b84cadd9d | ||
|
|
879e8b9359 | ||
|
|
005ea30e5d | ||
|
|
fa259f93ff | ||
|
|
0f77f88873 | ||
|
|
cf3bbdf2ba | ||
|
|
708bcbb678 | ||
|
|
70dddee991 | ||
|
|
096bedd0df | ||
|
|
b6d2db14fe | ||
|
|
8fc9b8125b | ||
|
|
a16636b8bd | ||
|
|
2c0d297a8d | ||
|
|
f0d0ef6cd0 | ||
|
|
11136905db | ||
|
|
5c4cdd976d | ||
|
|
760426f29b | ||
|
|
99697bde91 | ||
|
|
1b19d44bc2 | ||
|
|
84ae3ef04e | ||
|
|
bb8790e63c | ||
|
|
d75a986e9f | ||
|
|
ef568baa30 | ||
|
|
2eae2fe5c9 | ||
|
|
a4995661a5 | ||
|
|
7eb4574903 | ||
|
|
5021fa7e0a | ||
|
|
71e4c1576e | ||
|
|
5550c66a4c | ||
|
|
9c47520d45 | ||
|
|
9b6827d238 | ||
|
|
2d60eb1a66 | ||
|
|
a3c08aa6f7 | ||
|
|
df9aacc5a5 | ||
|
|
d209714cb0 | ||
|
|
3cee194b0f | ||
|
|
c52c445fa1 | ||
|
|
4f8cf9d05f | ||
|
|
8d13c48cce | ||
|
|
be6c27326e | ||
|
|
197159f97b | ||
|
|
e788fcb800 | ||
|
|
33537c905e | ||
|
|
c49607aeca | ||
|
|
3dfdfd0845 | ||
|
|
3aefd86108 | ||
|
|
2b9789d179 | ||
|
|
b43e953ab1 | ||
|
|
830b92f2f9 | ||
|
|
8d45c4275f | ||
|
|
22a89cfe51 | ||
|
|
e33d34a3fc | ||
|
|
677e71ae09 | ||
|
|
83453dcf69 | ||
|
|
c9b390c0c1 | ||
|
|
40f61e3ce6 | ||
|
|
3fba042126 | ||
|
|
e862bd03c8 | ||
|
|
32fd2c4a6b | ||
|
|
328f3a0eca | ||
|
|
06ad26c36a | ||
|
|
1243cb5656 | ||
|
|
edb09dc947 | ||
|
|
64af716b19 | ||
|
|
3fbe4829ca | ||
|
|
e65f74a248 | ||
|
|
7041743c93 |
21
.github/workflows/test.yaml
vendored
Normal file
21
.github/workflows/test.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
name: CPP
|
||||
env:
|
||||
CPLUS_INCLUDE_PATH: "/usr/local/include/:/usr/include/jsoncpp/:/usr/local/opt/openssl/include/:/usr/lib/"
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: sudo apt-get install lcov libcurl4-openssl-dev libssl-dev uuid-dev libjson-c-dev libjsoncpp-dev nodejs npm
|
||||
- run: bash ./unit_test.sh
|
||||
- run: bash ./generate_code_cov.sh
|
||||
- run: bash ./function_test.sh
|
||||
- run: bash <(curl -s https://codecov.io/bash)
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -14,3 +14,4 @@ test/httpserver/nohup.out
|
||||
.idea
|
||||
build/
|
||||
cmake-build-debug/
|
||||
.DS_Store
|
||||
@@ -46,7 +46,7 @@ Alibaba Cloud SDK for C++ 让您不用复杂编程即可访问云服务器、负
|
||||
|
||||
```bash
|
||||
# use yum
|
||||
yum install jsoncpp-devel openssl-devel uuid-devel libcurl-devel
|
||||
yum install jsoncpp-devel openssl-devel libuuid-devel libcurl-devel
|
||||
|
||||
# use dnf
|
||||
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel
|
||||
|
||||
@@ -47,7 +47,7 @@ If you have any problem while using Alibaba Cloud SDK for C++, please submit an
|
||||
|
||||
```bash
|
||||
# use yum
|
||||
yum install jsoncpp-devel openssl-devel uuid-devel libcurl-devel
|
||||
yum install jsoncpp-devel openssl-devel libuuid-devel libcurl-devel
|
||||
|
||||
# use dnf
|
||||
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel
|
||||
|
||||
@@ -135,8 +135,6 @@ set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/DescribeProcessListResult.h
|
||||
include/alibabacloud/adb/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/adb/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/adb/model/DescribeSQLPatternAttributeRequest.h
|
||||
include/alibabacloud/adb/model/DescribeSQLPatternAttributeResult.h
|
||||
include/alibabacloud/adb/model/DescribeSQLPatternsRequest.h
|
||||
include/alibabacloud/adb/model/DescribeSQLPatternsResult.h
|
||||
include/alibabacloud/adb/model/DescribeSQLPlanRequest.h
|
||||
@@ -163,14 +161,14 @@ set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/DescribeTablesResult.h
|
||||
include/alibabacloud/adb/model/DescribeTaskInfoRequest.h
|
||||
include/alibabacloud/adb/model/DescribeTaskInfoResult.h
|
||||
include/alibabacloud/adb/model/DescribeVSwitchesRequest.h
|
||||
include/alibabacloud/adb/model/DescribeVSwitchesResult.h
|
||||
include/alibabacloud/adb/model/DetachUserENIRequest.h
|
||||
include/alibabacloud/adb/model/DetachUserENIResult.h
|
||||
include/alibabacloud/adb/model/DisableAdviceServiceRequest.h
|
||||
include/alibabacloud/adb/model/DisableAdviceServiceResult.h
|
||||
include/alibabacloud/adb/model/DownloadDiagnosisRecordsRequest.h
|
||||
include/alibabacloud/adb/model/DownloadDiagnosisRecordsResult.h
|
||||
include/alibabacloud/adb/model/DryRunClusterRequest.h
|
||||
include/alibabacloud/adb/model/DryRunClusterResult.h
|
||||
include/alibabacloud/adb/model/EnableAdviceServiceRequest.h
|
||||
include/alibabacloud/adb/model/EnableAdviceServiceResult.h
|
||||
include/alibabacloud/adb/model/GrantOperatorPermissionRequest.h
|
||||
@@ -344,8 +342,6 @@ set(adb_src
|
||||
src/model/DescribeProcessListResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DescribeSQLPatternAttributeRequest.cc
|
||||
src/model/DescribeSQLPatternAttributeResult.cc
|
||||
src/model/DescribeSQLPatternsRequest.cc
|
||||
src/model/DescribeSQLPatternsResult.cc
|
||||
src/model/DescribeSQLPlanRequest.cc
|
||||
@@ -372,14 +368,14 @@ set(adb_src
|
||||
src/model/DescribeTablesResult.cc
|
||||
src/model/DescribeTaskInfoRequest.cc
|
||||
src/model/DescribeTaskInfoResult.cc
|
||||
src/model/DescribeVSwitchesRequest.cc
|
||||
src/model/DescribeVSwitchesResult.cc
|
||||
src/model/DetachUserENIRequest.cc
|
||||
src/model/DetachUserENIResult.cc
|
||||
src/model/DisableAdviceServiceRequest.cc
|
||||
src/model/DisableAdviceServiceResult.cc
|
||||
src/model/DownloadDiagnosisRecordsRequest.cc
|
||||
src/model/DownloadDiagnosisRecordsResult.cc
|
||||
src/model/DryRunClusterRequest.cc
|
||||
src/model/DryRunClusterResult.cc
|
||||
src/model/EnableAdviceServiceRequest.cc
|
||||
src/model/EnableAdviceServiceResult.cc
|
||||
src/model/GrantOperatorPermissionRequest.cc
|
||||
|
||||
@@ -136,8 +136,6 @@
|
||||
#include "model/DescribeProcessListResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeSQLPatternAttributeRequest.h"
|
||||
#include "model/DescribeSQLPatternAttributeResult.h"
|
||||
#include "model/DescribeSQLPatternsRequest.h"
|
||||
#include "model/DescribeSQLPatternsResult.h"
|
||||
#include "model/DescribeSQLPlanRequest.h"
|
||||
@@ -164,14 +162,14 @@
|
||||
#include "model/DescribeTablesResult.h"
|
||||
#include "model/DescribeTaskInfoRequest.h"
|
||||
#include "model/DescribeTaskInfoResult.h"
|
||||
#include "model/DescribeVSwitchesRequest.h"
|
||||
#include "model/DescribeVSwitchesResult.h"
|
||||
#include "model/DetachUserENIRequest.h"
|
||||
#include "model/DetachUserENIResult.h"
|
||||
#include "model/DisableAdviceServiceRequest.h"
|
||||
#include "model/DisableAdviceServiceResult.h"
|
||||
#include "model/DownloadDiagnosisRecordsRequest.h"
|
||||
#include "model/DownloadDiagnosisRecordsResult.h"
|
||||
#include "model/DryRunClusterRequest.h"
|
||||
#include "model/DryRunClusterResult.h"
|
||||
#include "model/EnableAdviceServiceRequest.h"
|
||||
#include "model/EnableAdviceServiceResult.h"
|
||||
#include "model/GrantOperatorPermissionRequest.h"
|
||||
@@ -408,9 +406,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSQLPatternAttributeResult> DescribeSQLPatternAttributeOutcome;
|
||||
typedef std::future<DescribeSQLPatternAttributeOutcome> DescribeSQLPatternAttributeOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeSQLPatternAttributeRequest&, const DescribeSQLPatternAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLPatternAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSQLPatternsResult> DescribeSQLPatternsOutcome;
|
||||
typedef std::future<DescribeSQLPatternsOutcome> DescribeSQLPatternsOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeSQLPatternsRequest&, const DescribeSQLPatternsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLPatternsAsyncHandler;
|
||||
@@ -450,6 +445,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeTaskInfoResult> DescribeTaskInfoOutcome;
|
||||
typedef std::future<DescribeTaskInfoOutcome> DescribeTaskInfoOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeTaskInfoRequest&, const DescribeTaskInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTaskInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVSwitchesResult> DescribeVSwitchesOutcome;
|
||||
typedef std::future<DescribeVSwitchesOutcome> DescribeVSwitchesOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeVSwitchesRequest&, const DescribeVSwitchesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVSwitchesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetachUserENIResult> DetachUserENIOutcome;
|
||||
typedef std::future<DetachUserENIOutcome> DetachUserENIOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DetachUserENIRequest&, const DetachUserENIOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachUserENIAsyncHandler;
|
||||
@@ -459,9 +457,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DownloadDiagnosisRecordsResult> DownloadDiagnosisRecordsOutcome;
|
||||
typedef std::future<DownloadDiagnosisRecordsOutcome> DownloadDiagnosisRecordsOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DownloadDiagnosisRecordsRequest&, const DownloadDiagnosisRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadDiagnosisRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DryRunClusterResult> DryRunClusterOutcome;
|
||||
typedef std::future<DryRunClusterOutcome> DryRunClusterOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DryRunClusterRequest&, const DryRunClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DryRunClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableAdviceServiceResult> EnableAdviceServiceOutcome;
|
||||
typedef std::future<EnableAdviceServiceOutcome> EnableAdviceServiceOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::EnableAdviceServiceRequest&, const EnableAdviceServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableAdviceServiceAsyncHandler;
|
||||
@@ -722,9 +717,6 @@ namespace AlibabaCloud
|
||||
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
|
||||
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
|
||||
DescribeSQLPatternAttributeOutcome describeSQLPatternAttribute(const Model::DescribeSQLPatternAttributeRequest &request)const;
|
||||
void describeSQLPatternAttributeAsync(const Model::DescribeSQLPatternAttributeRequest& request, const DescribeSQLPatternAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSQLPatternAttributeOutcomeCallable describeSQLPatternAttributeCallable(const Model::DescribeSQLPatternAttributeRequest& request) const;
|
||||
DescribeSQLPatternsOutcome describeSQLPatterns(const Model::DescribeSQLPatternsRequest &request)const;
|
||||
void describeSQLPatternsAsync(const Model::DescribeSQLPatternsRequest& request, const DescribeSQLPatternsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSQLPatternsOutcomeCallable describeSQLPatternsCallable(const Model::DescribeSQLPatternsRequest& request) const;
|
||||
@@ -764,6 +756,9 @@ namespace AlibabaCloud
|
||||
DescribeTaskInfoOutcome describeTaskInfo(const Model::DescribeTaskInfoRequest &request)const;
|
||||
void describeTaskInfoAsync(const Model::DescribeTaskInfoRequest& request, const DescribeTaskInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTaskInfoOutcomeCallable describeTaskInfoCallable(const Model::DescribeTaskInfoRequest& request) const;
|
||||
DescribeVSwitchesOutcome describeVSwitches(const Model::DescribeVSwitchesRequest &request)const;
|
||||
void describeVSwitchesAsync(const Model::DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVSwitchesOutcomeCallable describeVSwitchesCallable(const Model::DescribeVSwitchesRequest& request) const;
|
||||
DetachUserENIOutcome detachUserENI(const Model::DetachUserENIRequest &request)const;
|
||||
void detachUserENIAsync(const Model::DetachUserENIRequest& request, const DetachUserENIAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetachUserENIOutcomeCallable detachUserENICallable(const Model::DetachUserENIRequest& request) const;
|
||||
@@ -773,9 +768,6 @@ namespace AlibabaCloud
|
||||
DownloadDiagnosisRecordsOutcome downloadDiagnosisRecords(const Model::DownloadDiagnosisRecordsRequest &request)const;
|
||||
void downloadDiagnosisRecordsAsync(const Model::DownloadDiagnosisRecordsRequest& request, const DownloadDiagnosisRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DownloadDiagnosisRecordsOutcomeCallable downloadDiagnosisRecordsCallable(const Model::DownloadDiagnosisRecordsRequest& request) const;
|
||||
DryRunClusterOutcome dryRunCluster(const Model::DryRunClusterRequest &request)const;
|
||||
void dryRunClusterAsync(const Model::DryRunClusterRequest& request, const DryRunClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DryRunClusterOutcomeCallable dryRunClusterCallable(const Model::DryRunClusterRequest& request) const;
|
||||
EnableAdviceServiceOutcome enableAdviceService(const Model::EnableAdviceServiceRequest &request)const;
|
||||
void enableAdviceServiceAsync(const Model::EnableAdviceServiceRequest& request, const EnableAdviceServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableAdviceServiceOutcomeCallable enableAdviceServiceCallable(const Model::EnableAdviceServiceRequest& request) const;
|
||||
|
||||
@@ -32,12 +32,6 @@ public:
|
||||
~DescribeDBClusterPerformanceRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getStartTime() const;
|
||||
void setStartTime(const std::string &startTime);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getKey() const;
|
||||
void setKey(const std::string &key);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getDBClusterId() const;
|
||||
@@ -46,19 +40,31 @@ public:
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
std::string getEndTime() const;
|
||||
void setEndTime(const std::string &endTime);
|
||||
std::string getStartTime() const;
|
||||
void setStartTime(const std::string &startTime);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getResourcePools() const;
|
||||
void setResourcePools(const std::string &resourcePools);
|
||||
std::string getKey() const;
|
||||
void setKey(const std::string &key);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string startTime_;
|
||||
std::string accessKeyId_;
|
||||
std::string key_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string resourcePools_;
|
||||
std::string key_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adb
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
||||
struct SeriesItem
|
||||
{
|
||||
std::vector<std::string> values;
|
||||
std::string tags;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<PerformanceItem::SeriesItem> series;
|
||||
|
||||
@@ -1,57 +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_DESCRIBESQLPATTERNATTRIBUTEREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeSQLPatternAttributeRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeSQLPatternAttributeRequest();
|
||||
~DescribeSQLPatternAttributeRequest();
|
||||
std::string getDBClusterId() const;
|
||||
void setDBClusterId(const std::string &dBClusterId);
|
||||
long getPatternId() const;
|
||||
void setPatternId(long patternId);
|
||||
std::string getEndTime() const;
|
||||
void setEndTime(const std::string &endTime);
|
||||
std::string getStartTime() const;
|
||||
void setStartTime(const std::string &startTime);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getLang() const;
|
||||
void setLang(const std::string &lang);
|
||||
|
||||
private:
|
||||
std::string dBClusterId_;
|
||||
long patternId_;
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
std::string regionId_;
|
||||
std::string lang_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTEREQUEST_H_
|
||||
@@ -1,59 +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_DESCRIBESQLPATTERNATTRIBUTERESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTERESULT_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 DescribeSQLPatternAttributeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PatternDetail
|
||||
{
|
||||
std::string sQLPattern;
|
||||
std::string totalQueryTime;
|
||||
std::string averageMemory;
|
||||
long queryCount;
|
||||
std::string averageQueryTime;
|
||||
};
|
||||
|
||||
|
||||
DescribeSQLPatternAttributeResult();
|
||||
explicit DescribeSQLPatternAttributeResult(const std::string &payload);
|
||||
~DescribeSQLPatternAttributeResult();
|
||||
PatternDetail getPatternDetail()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PatternDetail patternDetail_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTERESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeVSwitchesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeVSwitchesRequest();
|
||||
~DescribeVSwitchesRequest();
|
||||
std::string getVswId() const;
|
||||
void setVswId(const std::string &vswId);
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getSecurityToken() const;
|
||||
void setSecurityToken(const std::string &securityToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getVpcId() const;
|
||||
void setVpcId(const std::string &vpcId);
|
||||
std::string getZoneId() const;
|
||||
void setZoneId(const std::string &zoneId);
|
||||
|
||||
private:
|
||||
std::string vswId_;
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string vpcId_;
|
||||
std::string zoneId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESREQUEST_H_
|
||||
69
adb/include/alibabacloud/adb/model/DescribeVSwitchesResult.h
Normal file
69
adb/include/alibabacloud/adb/model/DescribeVSwitchesResult.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESRESULT_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 DescribeVSwitchesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct VSwitches
|
||||
{
|
||||
struct VSwitchItem
|
||||
{
|
||||
std::string status;
|
||||
bool isDefault;
|
||||
std::string regionNo;
|
||||
std::string izNo;
|
||||
std::string gmtCreate;
|
||||
std::string vSwitchId;
|
||||
std::string gmtModified;
|
||||
std::string cidrBlock;
|
||||
std::string vSwitchName;
|
||||
std::string bid;
|
||||
std::string aliUid;
|
||||
};
|
||||
std::vector<VSwitchItem> vSwitch;
|
||||
};
|
||||
|
||||
|
||||
DescribeVSwitchesResult();
|
||||
explicit DescribeVSwitchesResult(const std::string &payload);
|
||||
~DescribeVSwitchesResult();
|
||||
VSwitches getVSwitches()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
VSwitches vSwitches_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEVSWITCHESRESULT_H_
|
||||
@@ -1,87 +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_DRYRUNCLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADB_EXPORT DryRunClusterRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DryRunClusterRequest();
|
||||
~DryRunClusterRequest();
|
||||
std::string getDBClusterDescription() const;
|
||||
void setDBClusterDescription(const std::string &dBClusterDescription);
|
||||
bool getEnableDefaultResourcePool() const;
|
||||
void setEnableDefaultResourcePool(bool enableDefaultResourcePool);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getStorageResource() const;
|
||||
void setStorageResource(const std::string &storageResource);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getDBClusterNetworkType() const;
|
||||
void setDBClusterNetworkType(const std::string &dBClusterNetworkType);
|
||||
std::string getPeriod() const;
|
||||
void setPeriod(const std::string &period);
|
||||
std::string getDBClusterId() const;
|
||||
void setDBClusterId(const std::string &dBClusterId);
|
||||
std::string getDBClusterVersion() const;
|
||||
void setDBClusterVersion(const std::string &dBClusterVersion);
|
||||
std::string getUsedTime() const;
|
||||
void setUsedTime(const std::string &usedTime);
|
||||
std::string getVSwitchId() const;
|
||||
void setVSwitchId(const std::string &vSwitchId);
|
||||
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);
|
||||
std::string getOperation() const;
|
||||
void setOperation(const std::string &operation);
|
||||
|
||||
private:
|
||||
std::string dBClusterDescription_;
|
||||
bool enableDefaultResourcePool_;
|
||||
std::string accessKeyId_;
|
||||
std::string storageResource_;
|
||||
std::string regionId_;
|
||||
std::string dBClusterNetworkType_;
|
||||
std::string period_;
|
||||
std::string dBClusterId_;
|
||||
std::string dBClusterVersion_;
|
||||
std::string usedTime_;
|
||||
std::string vSwitchId_;
|
||||
std::string vPCId_;
|
||||
std::string zoneId_;
|
||||
std::string computeResource_;
|
||||
std::string payType_;
|
||||
std::string operation_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERREQUEST_H_
|
||||
@@ -1,51 +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_DRYRUNCLUSTERRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERRESULT_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 DryRunClusterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DryRunClusterResult();
|
||||
explicit DryRunClusterResult(const std::string &payload);
|
||||
~DryRunClusterResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DRYRUNCLUSTERRESULT_H_
|
||||
@@ -2103,42 +2103,6 @@ AdbClient::DescribeRegionsOutcomeCallable AdbClient::describeRegionsCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeSQLPatternAttributeOutcome AdbClient::describeSQLPatternAttribute(const DescribeSQLPatternAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSQLPatternAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSQLPatternAttributeOutcome(DescribeSQLPatternAttributeResult(outcome.result()));
|
||||
else
|
||||
return DescribeSQLPatternAttributeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeSQLPatternAttributeAsync(const DescribeSQLPatternAttributeRequest& request, const DescribeSQLPatternAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSQLPatternAttribute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeSQLPatternAttributeOutcomeCallable AdbClient::describeSQLPatternAttributeCallable(const DescribeSQLPatternAttributeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSQLPatternAttributeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSQLPatternAttribute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeSQLPatternsOutcome AdbClient::describeSQLPatterns(const DescribeSQLPatternsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2607,6 +2571,42 @@ AdbClient::DescribeTaskInfoOutcomeCallable AdbClient::describeTaskInfoCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeVSwitchesOutcome AdbClient::describeVSwitches(const DescribeVSwitchesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVSwitchesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVSwitchesOutcome(DescribeVSwitchesResult(outcome.result()));
|
||||
else
|
||||
return DescribeVSwitchesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeVSwitchesAsync(const DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVSwitches(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeVSwitchesOutcomeCallable AdbClient::describeVSwitchesCallable(const DescribeVSwitchesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVSwitchesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVSwitches(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DetachUserENIOutcome AdbClient::detachUserENI(const DetachUserENIRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2715,42 +2715,6 @@ AdbClient::DownloadDiagnosisRecordsOutcomeCallable AdbClient::downloadDiagnosisR
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DryRunClusterOutcome AdbClient::dryRunCluster(const DryRunClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DryRunClusterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DryRunClusterOutcome(DryRunClusterResult(outcome.result()));
|
||||
else
|
||||
return DryRunClusterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::dryRunClusterAsync(const DryRunClusterRequest& request, const DryRunClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, dryRunCluster(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DryRunClusterOutcomeCallable AdbClient::dryRunClusterCallable(const DryRunClusterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DryRunClusterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->dryRunCluster(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::EnableAdviceServiceOutcome AdbClient::enableAdviceService(const EnableAdviceServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -34,33 +34,6 @@ void DescribeDBClusterPerformanceRequest::setResourceOwnerId(long resourceOwnerI
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterPerformanceRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterPerformanceRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterPerformanceRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
@@ -97,6 +70,15 @@ void DescribeDBClusterPerformanceRequest::setEndTime(const std::string &endTime)
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterPerformanceRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
long DescribeDBClusterPerformanceRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
@@ -106,3 +88,39 @@ void DescribeDBClusterPerformanceRequest::setOwnerId(long ownerId) {
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterPerformanceRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterPerformanceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getResourcePools() const {
|
||||
return resourcePools_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterPerformanceRequest::setResourcePools(const std::string &resourcePools) {
|
||||
resourcePools_ = resourcePools;
|
||||
setParameter(std::string("ResourcePools"), resourcePools);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterPerformanceRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterPerformanceRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
|
||||
@@ -53,6 +53,8 @@ void DescribeDBClusterPerformanceResult::parse(const std::string &payload)
|
||||
PerformanceItem::SeriesItem seriesObject;
|
||||
if(!valuePerformancesPerformanceItemSeriesSeriesItem["Name"].isNull())
|
||||
seriesObject.name = valuePerformancesPerformanceItemSeriesSeriesItem["Name"].asString();
|
||||
if(!valuePerformancesPerformanceItemSeriesSeriesItem["Tags"].isNull())
|
||||
seriesObject.tags = valuePerformancesPerformanceItemSeriesSeriesItem["Tags"].asString();
|
||||
auto allValues = value["Values"]["Values"];
|
||||
for (auto value : allValues)
|
||||
seriesObject.values.push_back(value.asString());
|
||||
|
||||
@@ -1,81 +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/DescribeSQLPatternAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeSQLPatternAttributeRequest;
|
||||
|
||||
DescribeSQLPatternAttributeRequest::DescribeSQLPatternAttributeRequest()
|
||||
: RpcServiceRequest("adb", "2019-03-15", "DescribeSQLPatternAttribute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSQLPatternAttributeRequest::~DescribeSQLPatternAttributeRequest() {}
|
||||
|
||||
std::string DescribeSQLPatternAttributeRequest::getDBClusterId() const {
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPatternAttributeRequest::setDBClusterId(const std::string &dBClusterId) {
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter(std::string("DBClusterId"), dBClusterId);
|
||||
}
|
||||
|
||||
long DescribeSQLPatternAttributeRequest::getPatternId() const {
|
||||
return patternId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPatternAttributeRequest::setPatternId(long patternId) {
|
||||
patternId_ = patternId;
|
||||
setParameter(std::string("PatternId"), std::to_string(patternId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLPatternAttributeRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeSQLPatternAttributeRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
std::string DescribeSQLPatternAttributeRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeSQLPatternAttributeRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
std::string DescribeSQLPatternAttributeRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPatternAttributeRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLPatternAttributeRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeSQLPatternAttributeRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
@@ -1,60 +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/DescribeSQLPatternAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeSQLPatternAttributeResult::DescribeSQLPatternAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLPatternAttributeResult::DescribeSQLPatternAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLPatternAttributeResult::~DescribeSQLPatternAttributeResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLPatternAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto patternDetailNode = value["PatternDetail"];
|
||||
if(!patternDetailNode["SQLPattern"].isNull())
|
||||
patternDetail_.sQLPattern = patternDetailNode["SQLPattern"].asString();
|
||||
if(!patternDetailNode["QueryCount"].isNull())
|
||||
patternDetail_.queryCount = std::stol(patternDetailNode["QueryCount"].asString());
|
||||
if(!patternDetailNode["TotalQueryTime"].isNull())
|
||||
patternDetail_.totalQueryTime = patternDetailNode["TotalQueryTime"].asString();
|
||||
if(!patternDetailNode["AverageQueryTime"].isNull())
|
||||
patternDetail_.averageQueryTime = patternDetailNode["AverageQueryTime"].asString();
|
||||
if(!patternDetailNode["AverageMemory"].isNull())
|
||||
patternDetail_.averageMemory = patternDetailNode["AverageMemory"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeSQLPatternAttributeResult::PatternDetail DescribeSQLPatternAttributeResult::getPatternDetail()const
|
||||
{
|
||||
return patternDetail_;
|
||||
}
|
||||
|
||||
117
adb/src/model/DescribeVSwitchesRequest.cc
Normal file
117
adb/src/model/DescribeVSwitchesRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeVSwitchesRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeVSwitchesRequest;
|
||||
|
||||
DescribeVSwitchesRequest::DescribeVSwitchesRequest()
|
||||
: RpcServiceRequest("adb", "2019-03-15", "DescribeVSwitches") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVSwitchesRequest::~DescribeVSwitchesRequest() {}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getVswId() const {
|
||||
return vswId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setVswId(const std::string &vswId) {
|
||||
vswId_ = vswId;
|
||||
setParameter(std::string("VswId"), vswId);
|
||||
}
|
||||
|
||||
long DescribeVSwitchesRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getSecurityToken() const {
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setSecurityToken(const std::string &securityToken) {
|
||||
securityToken_ = securityToken;
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeVSwitchesRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
std::string DescribeVSwitchesRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeVSwitchesRequest::setZoneId(const std::string &zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
78
adb/src/model/DescribeVSwitchesResult.cc
Normal file
78
adb/src/model/DescribeVSwitchesResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeVSwitchesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeVSwitchesResult::DescribeVSwitchesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVSwitchesResult::DescribeVSwitchesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVSwitchesResult::~DescribeVSwitchesResult()
|
||||
{}
|
||||
|
||||
void DescribeVSwitchesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto vSwitchesNode = value["VSwitches"];
|
||||
auto allVSwitchNode = vSwitchesNode["VSwitch"]["VSwitchItem"];
|
||||
for (auto vSwitchesNodeVSwitchVSwitchItem : allVSwitchNode)
|
||||
{
|
||||
VSwitches::VSwitchItem vSwitchItemObject;
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["Status"].isNull())
|
||||
vSwitchItemObject.status = vSwitchesNodeVSwitchVSwitchItem["Status"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["IsDefault"].isNull())
|
||||
vSwitchItemObject.isDefault = vSwitchesNodeVSwitchVSwitchItem["IsDefault"].asString() == "true";
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["VSwitchId"].isNull())
|
||||
vSwitchItemObject.vSwitchId = vSwitchesNodeVSwitchVSwitchItem["VSwitchId"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["CidrBlock"].isNull())
|
||||
vSwitchItemObject.cidrBlock = vSwitchesNodeVSwitchVSwitchItem["CidrBlock"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["RegionNo"].isNull())
|
||||
vSwitchItemObject.regionNo = vSwitchesNodeVSwitchVSwitchItem["RegionNo"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["GmtCreate"].isNull())
|
||||
vSwitchItemObject.gmtCreate = vSwitchesNodeVSwitchVSwitchItem["GmtCreate"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["AliUid"].isNull())
|
||||
vSwitchItemObject.aliUid = vSwitchesNodeVSwitchVSwitchItem["AliUid"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["GmtModified"].isNull())
|
||||
vSwitchItemObject.gmtModified = vSwitchesNodeVSwitchVSwitchItem["GmtModified"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["Bid"].isNull())
|
||||
vSwitchItemObject.bid = vSwitchesNodeVSwitchVSwitchItem["Bid"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["IzNo"].isNull())
|
||||
vSwitchItemObject.izNo = vSwitchesNodeVSwitchVSwitchItem["IzNo"].asString();
|
||||
if(!vSwitchesNodeVSwitchVSwitchItem["VSwitchName"].isNull())
|
||||
vSwitchItemObject.vSwitchName = vSwitchesNodeVSwitchVSwitchItem["VSwitchName"].asString();
|
||||
vSwitches_.vSwitch.push_back(vSwitchItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeVSwitchesResult::VSwitches DescribeVSwitchesResult::getVSwitches()const
|
||||
{
|
||||
return vSwitches_;
|
||||
}
|
||||
|
||||
@@ -1,171 +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/DryRunClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DryRunClusterRequest;
|
||||
|
||||
DryRunClusterRequest::DryRunClusterRequest()
|
||||
: RpcServiceRequest("adb", "2019-03-15", "DryRunCluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DryRunClusterRequest::~DryRunClusterRequest() {}
|
||||
|
||||
std::string DryRunClusterRequest::getDBClusterDescription() const {
|
||||
return dBClusterDescription_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setDBClusterDescription(const std::string &dBClusterDescription) {
|
||||
dBClusterDescription_ = dBClusterDescription;
|
||||
setParameter(std::string("DBClusterDescription"), dBClusterDescription);
|
||||
}
|
||||
|
||||
bool DryRunClusterRequest::getEnableDefaultResourcePool() const {
|
||||
return enableDefaultResourcePool_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setEnableDefaultResourcePool(bool enableDefaultResourcePool) {
|
||||
enableDefaultResourcePool_ = enableDefaultResourcePool;
|
||||
setParameter(std::string("EnableDefaultResourcePool"), enableDefaultResourcePool ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getStorageResource() const {
|
||||
return storageResource_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setStorageResource(const std::string &storageResource) {
|
||||
storageResource_ = storageResource;
|
||||
setParameter(std::string("StorageResource"), storageResource);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getDBClusterNetworkType() const {
|
||||
return dBClusterNetworkType_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setDBClusterNetworkType(const std::string &dBClusterNetworkType) {
|
||||
dBClusterNetworkType_ = dBClusterNetworkType;
|
||||
setParameter(std::string("DBClusterNetworkType"), dBClusterNetworkType);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setPeriod(const std::string &period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), period);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getDBClusterId() const {
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setDBClusterId(const std::string &dBClusterId) {
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter(std::string("DBClusterId"), dBClusterId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getDBClusterVersion() const {
|
||||
return dBClusterVersion_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setDBClusterVersion(const std::string &dBClusterVersion) {
|
||||
dBClusterVersion_ = dBClusterVersion;
|
||||
setParameter(std::string("DBClusterVersion"), dBClusterVersion);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getUsedTime() const {
|
||||
return usedTime_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setUsedTime(const std::string &usedTime) {
|
||||
usedTime_ = usedTime;
|
||||
setParameter(std::string("UsedTime"), usedTime);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getVPCId() const {
|
||||
return vPCId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setVPCId(const std::string &vPCId) {
|
||||
vPCId_ = vPCId;
|
||||
setParameter(std::string("VPCId"), vPCId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setZoneId(const std::string &zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getComputeResource() const {
|
||||
return computeResource_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setComputeResource(const std::string &computeResource) {
|
||||
computeResource_ = computeResource;
|
||||
setParameter(std::string("ComputeResource"), computeResource);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getPayType() const {
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setPayType(const std::string &payType) {
|
||||
payType_ = payType;
|
||||
setParameter(std::string("PayType"), payType);
|
||||
}
|
||||
|
||||
std::string DryRunClusterRequest::getOperation() const {
|
||||
return operation_;
|
||||
}
|
||||
|
||||
void DryRunClusterRequest::setOperation(const std::string &operation) {
|
||||
operation_ = operation;
|
||||
setParameter(std::string("Operation"), operation);
|
||||
}
|
||||
|
||||
@@ -1,51 +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/DryRunClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DryRunClusterResult::DryRunClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DryRunClusterResult::DryRunClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DryRunClusterResult::~DryRunClusterResult()
|
||||
{}
|
||||
|
||||
void DryRunClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DryRunClusterResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
102
aigen/CMakeLists.txt
Normal file
102
aigen/CMakeLists.txt
Normal file
@@ -0,0 +1,102 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(aigen_public_header
|
||||
include/alibabacloud/aigen/AigenClient.h
|
||||
include/alibabacloud/aigen/AigenExport.h )
|
||||
|
||||
set(aigen_public_header_model
|
||||
include/alibabacloud/aigen/model/GenerateCosplayImageRequest.h
|
||||
include/alibabacloud/aigen/model/GenerateCosplayImageResult.h
|
||||
include/alibabacloud/aigen/model/GenerateTextDeformationRequest.h
|
||||
include/alibabacloud/aigen/model/GenerateTextDeformationResult.h
|
||||
include/alibabacloud/aigen/model/GenerateTextTextureRequest.h
|
||||
include/alibabacloud/aigen/model/GenerateTextTextureResult.h
|
||||
include/alibabacloud/aigen/model/InteractiveFullSegmentationRequest.h
|
||||
include/alibabacloud/aigen/model/InteractiveFullSegmentationResult.h
|
||||
include/alibabacloud/aigen/model/InteractiveScribbleSegmentationRequest.h
|
||||
include/alibabacloud/aigen/model/InteractiveScribbleSegmentationResult.h )
|
||||
|
||||
set(aigen_src
|
||||
src/AigenClient.cc
|
||||
src/model/GenerateCosplayImageRequest.cc
|
||||
src/model/GenerateCosplayImageResult.cc
|
||||
src/model/GenerateTextDeformationRequest.cc
|
||||
src/model/GenerateTextDeformationResult.cc
|
||||
src/model/GenerateTextTextureRequest.cc
|
||||
src/model/GenerateTextTextureResult.cc
|
||||
src/model/InteractiveFullSegmentationRequest.cc
|
||||
src/model/InteractiveFullSegmentationResult.cc
|
||||
src/model/InteractiveScribbleSegmentationRequest.cc
|
||||
src/model/InteractiveScribbleSegmentationResult.cc )
|
||||
|
||||
add_library(aigen ${LIB_TYPE}
|
||||
${aigen_public_header}
|
||||
${aigen_public_header_model}
|
||||
${aigen_src})
|
||||
|
||||
set_target_properties(aigen
|
||||
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}aigen
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(aigen
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_AIGEN_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(aigen
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(aigen
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(aigen
|
||||
jsoncpp)
|
||||
target_include_directories(aigen
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(aigen
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(aigen
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(aigen
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(aigen
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${aigen_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aigen)
|
||||
install(FILES ${aigen_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aigen/model)
|
||||
install(TARGETS aigen
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
86
aigen/include/alibabacloud/aigen/AigenClient.h
Normal file
86
aigen/include/alibabacloud/aigen/AigenClient.h
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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_AIGEN_AIGENCLIENT_H_
|
||||
#define ALIBABACLOUD_AIGEN_AIGENCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "AigenExport.h"
|
||||
#include "model/GenerateCosplayImageRequest.h"
|
||||
#include "model/GenerateCosplayImageResult.h"
|
||||
#include "model/GenerateTextDeformationRequest.h"
|
||||
#include "model/GenerateTextDeformationResult.h"
|
||||
#include "model/GenerateTextTextureRequest.h"
|
||||
#include "model/GenerateTextTextureResult.h"
|
||||
#include "model/InteractiveFullSegmentationRequest.h"
|
||||
#include "model/InteractiveFullSegmentationResult.h"
|
||||
#include "model/InteractiveScribbleSegmentationRequest.h"
|
||||
#include "model/InteractiveScribbleSegmentationResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aigen
|
||||
{
|
||||
class ALIBABACLOUD_AIGEN_EXPORT AigenClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::GenerateCosplayImageResult> GenerateCosplayImageOutcome;
|
||||
typedef std::future<GenerateCosplayImageOutcome> GenerateCosplayImageOutcomeCallable;
|
||||
typedef std::function<void(const AigenClient*, const Model::GenerateCosplayImageRequest&, const GenerateCosplayImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateCosplayImageAsyncHandler;
|
||||
typedef Outcome<Error, Model::GenerateTextDeformationResult> GenerateTextDeformationOutcome;
|
||||
typedef std::future<GenerateTextDeformationOutcome> GenerateTextDeformationOutcomeCallable;
|
||||
typedef std::function<void(const AigenClient*, const Model::GenerateTextDeformationRequest&, const GenerateTextDeformationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateTextDeformationAsyncHandler;
|
||||
typedef Outcome<Error, Model::GenerateTextTextureResult> GenerateTextTextureOutcome;
|
||||
typedef std::future<GenerateTextTextureOutcome> GenerateTextTextureOutcomeCallable;
|
||||
typedef std::function<void(const AigenClient*, const Model::GenerateTextTextureRequest&, const GenerateTextTextureOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateTextTextureAsyncHandler;
|
||||
typedef Outcome<Error, Model::InteractiveFullSegmentationResult> InteractiveFullSegmentationOutcome;
|
||||
typedef std::future<InteractiveFullSegmentationOutcome> InteractiveFullSegmentationOutcomeCallable;
|
||||
typedef std::function<void(const AigenClient*, const Model::InteractiveFullSegmentationRequest&, const InteractiveFullSegmentationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InteractiveFullSegmentationAsyncHandler;
|
||||
typedef Outcome<Error, Model::InteractiveScribbleSegmentationResult> InteractiveScribbleSegmentationOutcome;
|
||||
typedef std::future<InteractiveScribbleSegmentationOutcome> InteractiveScribbleSegmentationOutcomeCallable;
|
||||
typedef std::function<void(const AigenClient*, const Model::InteractiveScribbleSegmentationRequest&, const InteractiveScribbleSegmentationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InteractiveScribbleSegmentationAsyncHandler;
|
||||
|
||||
AigenClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
AigenClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
AigenClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~AigenClient();
|
||||
GenerateCosplayImageOutcome generateCosplayImage(const Model::GenerateCosplayImageRequest &request)const;
|
||||
void generateCosplayImageAsync(const Model::GenerateCosplayImageRequest& request, const GenerateCosplayImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenerateCosplayImageOutcomeCallable generateCosplayImageCallable(const Model::GenerateCosplayImageRequest& request) const;
|
||||
GenerateTextDeformationOutcome generateTextDeformation(const Model::GenerateTextDeformationRequest &request)const;
|
||||
void generateTextDeformationAsync(const Model::GenerateTextDeformationRequest& request, const GenerateTextDeformationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenerateTextDeformationOutcomeCallable generateTextDeformationCallable(const Model::GenerateTextDeformationRequest& request) const;
|
||||
GenerateTextTextureOutcome generateTextTexture(const Model::GenerateTextTextureRequest &request)const;
|
||||
void generateTextTextureAsync(const Model::GenerateTextTextureRequest& request, const GenerateTextTextureAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenerateTextTextureOutcomeCallable generateTextTextureCallable(const Model::GenerateTextTextureRequest& request) const;
|
||||
InteractiveFullSegmentationOutcome interactiveFullSegmentation(const Model::InteractiveFullSegmentationRequest &request)const;
|
||||
void interactiveFullSegmentationAsync(const Model::InteractiveFullSegmentationRequest& request, const InteractiveFullSegmentationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InteractiveFullSegmentationOutcomeCallable interactiveFullSegmentationCallable(const Model::InteractiveFullSegmentationRequest& request) const;
|
||||
InteractiveScribbleSegmentationOutcome interactiveScribbleSegmentation(const Model::InteractiveScribbleSegmentationRequest &request)const;
|
||||
void interactiveScribbleSegmentationAsync(const Model::InteractiveScribbleSegmentationRequest& request, const InteractiveScribbleSegmentationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InteractiveScribbleSegmentationOutcomeCallable interactiveScribbleSegmentationCallable(const Model::InteractiveScribbleSegmentationRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_AIGEN_AIGENCLIENT_H_
|
||||
32
aigen/include/alibabacloud/aigen/AigenExport.h
Normal file
32
aigen/include/alibabacloud/aigen/AigenExport.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_AIGEN_AIGENEXPORT_H_
|
||||
#define ALIBABACLOUD_AIGEN_AIGENEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_AIGEN_LIBRARY)
|
||||
# define ALIBABACLOUD_AIGEN_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_AIGEN_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_AIGEN_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_AIGEN_AIGENEXPORT_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_AIGEN_MODEL_GENERATECOSPLAYIMAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_AIGEN_MODEL_GENERATECOSPLAYIMAGEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aigen/AigenExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Aigen {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AIGEN_EXPORT GenerateCosplayImageRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GenerateCosplayImageRequest();
|
||||
~GenerateCosplayImageRequest();
|
||||
std::string getTemplateImageUrl() const;
|
||||
void setTemplateImageUrl(const std::string &templateImageUrl);
|
||||
std::string getFaceImageUrl() const;
|
||||
void setFaceImageUrl(const std::string &faceImageUrl);
|
||||
bool getAsync() const;
|
||||
void setAsync(bool async);
|
||||
long getStyle() const;
|
||||
void setStyle(long style);
|
||||
|
||||
private:
|
||||
std::string templateImageUrl_;
|
||||
std::string faceImageUrl_;
|
||||
bool async_;
|
||||
long style_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Aigen
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AIGEN_MODEL_GENERATECOSPLAYIMAGEREQUEST_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_AIGEN_MODEL_GENERATECOSPLAYIMAGERESULT_H_
|
||||
#define ALIBABACLOUD_AIGEN_MODEL_GENERATECOSPLAYIMAGERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aigen/AigenExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aigen
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIGEN_EXPORT GenerateCosplayImageResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string resultUrl;
|
||||
};
|
||||
|
||||
|
||||
GenerateCosplayImageResult();
|
||||
explicit GenerateCosplayImageResult(const std::string &payload);
|
||||
~GenerateCosplayImageResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIGEN_MODEL_GENERATECOSPLAYIMAGERESULT_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_AIGEN_MODEL_GENERATETEXTDEFORMATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_AIGEN_MODEL_GENERATETEXTDEFORMATIONREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aigen/AigenExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Aigen {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AIGEN_EXPORT GenerateTextDeformationRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GenerateTextDeformationRequest();
|
||||
~GenerateTextDeformationRequest();
|
||||
std::string getTextContent() const;
|
||||
void setTextContent(const std::string &textContent);
|
||||
std::string getFontName() const;
|
||||
void setFontName(const std::string &fontName);
|
||||
std::string getTtfUrl() const;
|
||||
void setTtfUrl(const std::string &ttfUrl);
|
||||
long getN() const;
|
||||
void setN(long n);
|
||||
bool getAsync() const;
|
||||
void setAsync(bool async);
|
||||
std::string getPrompt() const;
|
||||
void setPrompt(const std::string &prompt);
|
||||
std::string getOutputImageRatio() const;
|
||||
void setOutputImageRatio(const std::string &outputImageRatio);
|
||||
|
||||
private:
|
||||
std::string textContent_;
|
||||
std::string fontName_;
|
||||
std::string ttfUrl_;
|
||||
long n_;
|
||||
bool async_;
|
||||
std::string prompt_;
|
||||
std::string outputImageRatio_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Aigen
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AIGEN_MODEL_GENERATETEXTDEFORMATIONREQUEST_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_AIGEN_MODEL_GENERATETEXTDEFORMATIONRESULT_H_
|
||||
#define ALIBABACLOUD_AIGEN_MODEL_GENERATETEXTDEFORMATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aigen/AigenExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aigen
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIGEN_EXPORT GenerateTextDeformationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string resultUrl;
|
||||
};
|
||||
|
||||
|
||||
GenerateTextDeformationResult();
|
||||
explicit GenerateTextDeformationResult(const std::string &payload);
|
||||
~GenerateTextDeformationResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIGEN_MODEL_GENERATETEXTDEFORMATIONRESULT_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_AIGEN_MODEL_GENERATETEXTTEXTUREREQUEST_H_
|
||||
#define ALIBABACLOUD_AIGEN_MODEL_GENERATETEXTTEXTUREREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aigen/AigenExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Aigen {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AIGEN_EXPORT GenerateTextTextureRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GenerateTextTextureRequest();
|
||||
~GenerateTextTextureRequest();
|
||||
std::string getTextContent() const;
|
||||
void setTextContent(const std::string &textContent);
|
||||
std::string getTextureStyle() const;
|
||||
void setTextureStyle(const std::string &textureStyle);
|
||||
std::string getFontName() const;
|
||||
void setFontName(const std::string &fontName);
|
||||
std::string getTtfUrl() const;
|
||||
void setTtfUrl(const std::string &ttfUrl);
|
||||
long getN() const;
|
||||
void setN(long n);
|
||||
bool getAsync() const;
|
||||
void setAsync(bool async);
|
||||
bool getAlphaChannel() const;
|
||||
void setAlphaChannel(bool alphaChannel);
|
||||
std::string getImageUrl() const;
|
||||
void setImageUrl(const std::string &imageUrl);
|
||||
long getImageShortSize() const;
|
||||
void setImageShortSize(long imageShortSize);
|
||||
std::string getPrompt() const;
|
||||
void setPrompt(const std::string &prompt);
|
||||
std::string getOutputImageRatio() const;
|
||||
void setOutputImageRatio(const std::string &outputImageRatio);
|
||||
|
||||
private:
|
||||
std::string textContent_;
|
||||
std::string textureStyle_;
|
||||
std::string fontName_;
|
||||
std::string ttfUrl_;
|
||||
long n_;
|
||||
bool async_;
|
||||
bool alphaChannel_;
|
||||
std::string imageUrl_;
|
||||
long imageShortSize_;
|
||||
std::string prompt_;
|
||||
std::string outputImageRatio_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Aigen
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AIGEN_MODEL_GENERATETEXTTEXTUREREQUEST_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_AIGEN_MODEL_GENERATETEXTTEXTURERESULT_H_
|
||||
#define ALIBABACLOUD_AIGEN_MODEL_GENERATETEXTTEXTURERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aigen/AigenExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aigen
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIGEN_EXPORT GenerateTextTextureResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string resultUrl;
|
||||
};
|
||||
|
||||
|
||||
GenerateTextTextureResult();
|
||||
explicit GenerateTextTextureResult(const std::string &payload);
|
||||
~GenerateTextTextureResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIGEN_MODEL_GENERATETEXTTEXTURERESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_AIGEN_MODEL_INTERACTIVEFULLSEGMENTATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_AIGEN_MODEL_INTERACTIVEFULLSEGMENTATIONREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aigen/AigenExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Aigen {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AIGEN_EXPORT InteractiveFullSegmentationRequest : public RpcServiceRequest {
|
||||
public:
|
||||
InteractiveFullSegmentationRequest();
|
||||
~InteractiveFullSegmentationRequest();
|
||||
std::string getReturnFormat() const;
|
||||
void setReturnFormat(const std::string &returnFormat);
|
||||
bool getAsync() const;
|
||||
void setAsync(bool async);
|
||||
std::string getImageUrl() const;
|
||||
void setImageUrl(const std::string &imageUrl);
|
||||
|
||||
private:
|
||||
std::string returnFormat_;
|
||||
bool async_;
|
||||
std::string imageUrl_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Aigen
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AIGEN_MODEL_INTERACTIVEFULLSEGMENTATIONREQUEST_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_AIGEN_MODEL_INTERACTIVEFULLSEGMENTATIONRESULT_H_
|
||||
#define ALIBABACLOUD_AIGEN_MODEL_INTERACTIVEFULLSEGMENTATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aigen/AigenExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aigen
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIGEN_EXPORT InteractiveFullSegmentationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string resultUrl;
|
||||
};
|
||||
|
||||
|
||||
InteractiveFullSegmentationResult();
|
||||
explicit InteractiveFullSegmentationResult(const std::string &payload);
|
||||
~InteractiveFullSegmentationResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIGEN_MODEL_INTERACTIVEFULLSEGMENTATIONRESULT_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_AIGEN_MODEL_INTERACTIVESCRIBBLESEGMENTATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_AIGEN_MODEL_INTERACTIVESCRIBBLESEGMENTATIONREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aigen/AigenExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Aigen {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AIGEN_EXPORT InteractiveScribbleSegmentationRequest : public RpcServiceRequest {
|
||||
public:
|
||||
InteractiveScribbleSegmentationRequest();
|
||||
~InteractiveScribbleSegmentationRequest();
|
||||
std::string getPosScribbleImageUrl() const;
|
||||
void setPosScribbleImageUrl(const std::string &posScribbleImageUrl);
|
||||
std::string getIntegratedMaskUrl() const;
|
||||
void setIntegratedMaskUrl(const std::string &integratedMaskUrl);
|
||||
std::string getMaskImageUrl() const;
|
||||
void setMaskImageUrl(const std::string &maskImageUrl);
|
||||
std::string getReturnForm() const;
|
||||
void setReturnForm(const std::string &returnForm);
|
||||
std::string getNegScribbleImageUrl() const;
|
||||
void setNegScribbleImageUrl(const std::string &negScribbleImageUrl);
|
||||
std::string getReturnFormat() const;
|
||||
void setReturnFormat(const std::string &returnFormat);
|
||||
std::string getEdgeFeathering() const;
|
||||
void setEdgeFeathering(const std::string &edgeFeathering);
|
||||
std::string getImageUrl() const;
|
||||
void setImageUrl(const std::string &imageUrl);
|
||||
std::string getPostprocessOption() const;
|
||||
void setPostprocessOption(const std::string &postprocessOption);
|
||||
|
||||
private:
|
||||
std::string posScribbleImageUrl_;
|
||||
std::string integratedMaskUrl_;
|
||||
std::string maskImageUrl_;
|
||||
std::string returnForm_;
|
||||
std::string negScribbleImageUrl_;
|
||||
std::string returnFormat_;
|
||||
std::string edgeFeathering_;
|
||||
std::string imageUrl_;
|
||||
std::string postprocessOption_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Aigen
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AIGEN_MODEL_INTERACTIVESCRIBBLESEGMENTATIONREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AIGEN_MODEL_INTERACTIVESCRIBBLESEGMENTATIONRESULT_H_
|
||||
#define ALIBABACLOUD_AIGEN_MODEL_INTERACTIVESCRIBBLESEGMENTATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aigen/AigenExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aigen
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIGEN_EXPORT InteractiveScribbleSegmentationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string resultUrl;
|
||||
};
|
||||
|
||||
|
||||
InteractiveScribbleSegmentationResult();
|
||||
explicit InteractiveScribbleSegmentationResult(const std::string &payload);
|
||||
~InteractiveScribbleSegmentationResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIGEN_MODEL_INTERACTIVESCRIBBLESEGMENTATIONRESULT_H_
|
||||
233
aigen/src/AigenClient.cc
Normal file
233
aigen/src/AigenClient.cc
Normal file
@@ -0,0 +1,233 @@
|
||||
/*
|
||||
* 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/aigen/AigenClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Aigen;
|
||||
using namespace AlibabaCloud::Aigen::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "aigen";
|
||||
}
|
||||
|
||||
AigenClient::AigenClient(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, "");
|
||||
}
|
||||
|
||||
AigenClient::AigenClient(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, "");
|
||||
}
|
||||
|
||||
AigenClient::AigenClient(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, "");
|
||||
}
|
||||
|
||||
AigenClient::~AigenClient()
|
||||
{}
|
||||
|
||||
AigenClient::GenerateCosplayImageOutcome AigenClient::generateCosplayImage(const GenerateCosplayImageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GenerateCosplayImageOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GenerateCosplayImageOutcome(GenerateCosplayImageResult(outcome.result()));
|
||||
else
|
||||
return GenerateCosplayImageOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AigenClient::generateCosplayImageAsync(const GenerateCosplayImageRequest& request, const GenerateCosplayImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, generateCosplayImage(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AigenClient::GenerateCosplayImageOutcomeCallable AigenClient::generateCosplayImageCallable(const GenerateCosplayImageRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GenerateCosplayImageOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->generateCosplayImage(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AigenClient::GenerateTextDeformationOutcome AigenClient::generateTextDeformation(const GenerateTextDeformationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GenerateTextDeformationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GenerateTextDeformationOutcome(GenerateTextDeformationResult(outcome.result()));
|
||||
else
|
||||
return GenerateTextDeformationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AigenClient::generateTextDeformationAsync(const GenerateTextDeformationRequest& request, const GenerateTextDeformationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, generateTextDeformation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AigenClient::GenerateTextDeformationOutcomeCallable AigenClient::generateTextDeformationCallable(const GenerateTextDeformationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GenerateTextDeformationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->generateTextDeformation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AigenClient::GenerateTextTextureOutcome AigenClient::generateTextTexture(const GenerateTextTextureRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GenerateTextTextureOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GenerateTextTextureOutcome(GenerateTextTextureResult(outcome.result()));
|
||||
else
|
||||
return GenerateTextTextureOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AigenClient::generateTextTextureAsync(const GenerateTextTextureRequest& request, const GenerateTextTextureAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, generateTextTexture(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AigenClient::GenerateTextTextureOutcomeCallable AigenClient::generateTextTextureCallable(const GenerateTextTextureRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GenerateTextTextureOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->generateTextTexture(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AigenClient::InteractiveFullSegmentationOutcome AigenClient::interactiveFullSegmentation(const InteractiveFullSegmentationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return InteractiveFullSegmentationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return InteractiveFullSegmentationOutcome(InteractiveFullSegmentationResult(outcome.result()));
|
||||
else
|
||||
return InteractiveFullSegmentationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AigenClient::interactiveFullSegmentationAsync(const InteractiveFullSegmentationRequest& request, const InteractiveFullSegmentationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, interactiveFullSegmentation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AigenClient::InteractiveFullSegmentationOutcomeCallable AigenClient::interactiveFullSegmentationCallable(const InteractiveFullSegmentationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<InteractiveFullSegmentationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->interactiveFullSegmentation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AigenClient::InteractiveScribbleSegmentationOutcome AigenClient::interactiveScribbleSegmentation(const InteractiveScribbleSegmentationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return InteractiveScribbleSegmentationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return InteractiveScribbleSegmentationOutcome(InteractiveScribbleSegmentationResult(outcome.result()));
|
||||
else
|
||||
return InteractiveScribbleSegmentationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AigenClient::interactiveScribbleSegmentationAsync(const InteractiveScribbleSegmentationRequest& request, const InteractiveScribbleSegmentationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, interactiveScribbleSegmentation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AigenClient::InteractiveScribbleSegmentationOutcomeCallable AigenClient::interactiveScribbleSegmentationCallable(const InteractiveScribbleSegmentationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<InteractiveScribbleSegmentationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->interactiveScribbleSegmentation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
63
aigen/src/model/GenerateCosplayImageRequest.cc
Normal file
63
aigen/src/model/GenerateCosplayImageRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aigen/model/GenerateCosplayImageRequest.h>
|
||||
|
||||
using AlibabaCloud::Aigen::Model::GenerateCosplayImageRequest;
|
||||
|
||||
GenerateCosplayImageRequest::GenerateCosplayImageRequest()
|
||||
: RpcServiceRequest("aigen", "2024-01-11", "GenerateCosplayImage") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenerateCosplayImageRequest::~GenerateCosplayImageRequest() {}
|
||||
|
||||
std::string GenerateCosplayImageRequest::getTemplateImageUrl() const {
|
||||
return templateImageUrl_;
|
||||
}
|
||||
|
||||
void GenerateCosplayImageRequest::setTemplateImageUrl(const std::string &templateImageUrl) {
|
||||
templateImageUrl_ = templateImageUrl;
|
||||
setBodyParameter(std::string("TemplateImageUrl"), templateImageUrl);
|
||||
}
|
||||
|
||||
std::string GenerateCosplayImageRequest::getFaceImageUrl() const {
|
||||
return faceImageUrl_;
|
||||
}
|
||||
|
||||
void GenerateCosplayImageRequest::setFaceImageUrl(const std::string &faceImageUrl) {
|
||||
faceImageUrl_ = faceImageUrl;
|
||||
setBodyParameter(std::string("FaceImageUrl"), faceImageUrl);
|
||||
}
|
||||
|
||||
bool GenerateCosplayImageRequest::getAsync() const {
|
||||
return async_;
|
||||
}
|
||||
|
||||
void GenerateCosplayImageRequest::setAsync(bool async) {
|
||||
async_ = async;
|
||||
setBodyParameter(std::string("Async"), async ? "true" : "false");
|
||||
}
|
||||
|
||||
long GenerateCosplayImageRequest::getStyle() const {
|
||||
return style_;
|
||||
}
|
||||
|
||||
void GenerateCosplayImageRequest::setStyle(long style) {
|
||||
style_ = style;
|
||||
setBodyParameter(std::string("Style"), std::to_string(style));
|
||||
}
|
||||
|
||||
66
aigen/src/model/GenerateCosplayImageResult.cc
Normal file
66
aigen/src/model/GenerateCosplayImageResult.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/aigen/model/GenerateCosplayImageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aigen;
|
||||
using namespace AlibabaCloud::Aigen::Model;
|
||||
|
||||
GenerateCosplayImageResult::GenerateCosplayImageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenerateCosplayImageResult::GenerateCosplayImageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenerateCosplayImageResult::~GenerateCosplayImageResult()
|
||||
{}
|
||||
|
||||
void GenerateCosplayImageResult::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["ResultUrl"].isNull())
|
||||
data_.resultUrl = dataNode["ResultUrl"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GenerateCosplayImageResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GenerateCosplayImageResult::Data GenerateCosplayImageResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GenerateCosplayImageResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
90
aigen/src/model/GenerateTextDeformationRequest.cc
Normal file
90
aigen/src/model/GenerateTextDeformationRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/aigen/model/GenerateTextDeformationRequest.h>
|
||||
|
||||
using AlibabaCloud::Aigen::Model::GenerateTextDeformationRequest;
|
||||
|
||||
GenerateTextDeformationRequest::GenerateTextDeformationRequest()
|
||||
: RpcServiceRequest("aigen", "2024-01-11", "GenerateTextDeformation") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenerateTextDeformationRequest::~GenerateTextDeformationRequest() {}
|
||||
|
||||
std::string GenerateTextDeformationRequest::getTextContent() const {
|
||||
return textContent_;
|
||||
}
|
||||
|
||||
void GenerateTextDeformationRequest::setTextContent(const std::string &textContent) {
|
||||
textContent_ = textContent;
|
||||
setBodyParameter(std::string("TextContent"), textContent);
|
||||
}
|
||||
|
||||
std::string GenerateTextDeformationRequest::getFontName() const {
|
||||
return fontName_;
|
||||
}
|
||||
|
||||
void GenerateTextDeformationRequest::setFontName(const std::string &fontName) {
|
||||
fontName_ = fontName;
|
||||
setBodyParameter(std::string("FontName"), fontName);
|
||||
}
|
||||
|
||||
std::string GenerateTextDeformationRequest::getTtfUrl() const {
|
||||
return ttfUrl_;
|
||||
}
|
||||
|
||||
void GenerateTextDeformationRequest::setTtfUrl(const std::string &ttfUrl) {
|
||||
ttfUrl_ = ttfUrl;
|
||||
setBodyParameter(std::string("TtfUrl"), ttfUrl);
|
||||
}
|
||||
|
||||
long GenerateTextDeformationRequest::getN() const {
|
||||
return n_;
|
||||
}
|
||||
|
||||
void GenerateTextDeformationRequest::setN(long n) {
|
||||
n_ = n;
|
||||
setBodyParameter(std::string("N"), std::to_string(n));
|
||||
}
|
||||
|
||||
bool GenerateTextDeformationRequest::getAsync() const {
|
||||
return async_;
|
||||
}
|
||||
|
||||
void GenerateTextDeformationRequest::setAsync(bool async) {
|
||||
async_ = async;
|
||||
setBodyParameter(std::string("Async"), async ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GenerateTextDeformationRequest::getPrompt() const {
|
||||
return prompt_;
|
||||
}
|
||||
|
||||
void GenerateTextDeformationRequest::setPrompt(const std::string &prompt) {
|
||||
prompt_ = prompt;
|
||||
setBodyParameter(std::string("Prompt"), prompt);
|
||||
}
|
||||
|
||||
std::string GenerateTextDeformationRequest::getOutputImageRatio() const {
|
||||
return outputImageRatio_;
|
||||
}
|
||||
|
||||
void GenerateTextDeformationRequest::setOutputImageRatio(const std::string &outputImageRatio) {
|
||||
outputImageRatio_ = outputImageRatio;
|
||||
setBodyParameter(std::string("OutputImageRatio"), outputImageRatio);
|
||||
}
|
||||
|
||||
59
aigen/src/model/GenerateTextDeformationResult.cc
Normal file
59
aigen/src/model/GenerateTextDeformationResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aigen/model/GenerateTextDeformationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aigen;
|
||||
using namespace AlibabaCloud::Aigen::Model;
|
||||
|
||||
GenerateTextDeformationResult::GenerateTextDeformationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenerateTextDeformationResult::GenerateTextDeformationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenerateTextDeformationResult::~GenerateTextDeformationResult()
|
||||
{}
|
||||
|
||||
void GenerateTextDeformationResult::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["ResultUrl"].isNull())
|
||||
data_.resultUrl = dataNode["ResultUrl"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GenerateTextDeformationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GenerateTextDeformationResult::Data GenerateTextDeformationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
126
aigen/src/model/GenerateTextTextureRequest.cc
Normal file
126
aigen/src/model/GenerateTextTextureRequest.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aigen/model/GenerateTextTextureRequest.h>
|
||||
|
||||
using AlibabaCloud::Aigen::Model::GenerateTextTextureRequest;
|
||||
|
||||
GenerateTextTextureRequest::GenerateTextTextureRequest()
|
||||
: RpcServiceRequest("aigen", "2024-01-11", "GenerateTextTexture") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenerateTextTextureRequest::~GenerateTextTextureRequest() {}
|
||||
|
||||
std::string GenerateTextTextureRequest::getTextContent() const {
|
||||
return textContent_;
|
||||
}
|
||||
|
||||
void GenerateTextTextureRequest::setTextContent(const std::string &textContent) {
|
||||
textContent_ = textContent;
|
||||
setBodyParameter(std::string("TextContent"), textContent);
|
||||
}
|
||||
|
||||
std::string GenerateTextTextureRequest::getTextureStyle() const {
|
||||
return textureStyle_;
|
||||
}
|
||||
|
||||
void GenerateTextTextureRequest::setTextureStyle(const std::string &textureStyle) {
|
||||
textureStyle_ = textureStyle;
|
||||
setParameter(std::string("TextureStyle"), textureStyle);
|
||||
}
|
||||
|
||||
std::string GenerateTextTextureRequest::getFontName() const {
|
||||
return fontName_;
|
||||
}
|
||||
|
||||
void GenerateTextTextureRequest::setFontName(const std::string &fontName) {
|
||||
fontName_ = fontName;
|
||||
setBodyParameter(std::string("FontName"), fontName);
|
||||
}
|
||||
|
||||
std::string GenerateTextTextureRequest::getTtfUrl() const {
|
||||
return ttfUrl_;
|
||||
}
|
||||
|
||||
void GenerateTextTextureRequest::setTtfUrl(const std::string &ttfUrl) {
|
||||
ttfUrl_ = ttfUrl;
|
||||
setBodyParameter(std::string("TtfUrl"), ttfUrl);
|
||||
}
|
||||
|
||||
long GenerateTextTextureRequest::getN() const {
|
||||
return n_;
|
||||
}
|
||||
|
||||
void GenerateTextTextureRequest::setN(long n) {
|
||||
n_ = n;
|
||||
setBodyParameter(std::string("N"), std::to_string(n));
|
||||
}
|
||||
|
||||
bool GenerateTextTextureRequest::getAsync() const {
|
||||
return async_;
|
||||
}
|
||||
|
||||
void GenerateTextTextureRequest::setAsync(bool async) {
|
||||
async_ = async;
|
||||
setBodyParameter(std::string("Async"), async ? "true" : "false");
|
||||
}
|
||||
|
||||
bool GenerateTextTextureRequest::getAlphaChannel() const {
|
||||
return alphaChannel_;
|
||||
}
|
||||
|
||||
void GenerateTextTextureRequest::setAlphaChannel(bool alphaChannel) {
|
||||
alphaChannel_ = alphaChannel;
|
||||
setBodyParameter(std::string("AlphaChannel"), alphaChannel ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GenerateTextTextureRequest::getImageUrl() const {
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void GenerateTextTextureRequest::setImageUrl(const std::string &imageUrl) {
|
||||
imageUrl_ = imageUrl;
|
||||
setBodyParameter(std::string("ImageUrl"), imageUrl);
|
||||
}
|
||||
|
||||
long GenerateTextTextureRequest::getImageShortSize() const {
|
||||
return imageShortSize_;
|
||||
}
|
||||
|
||||
void GenerateTextTextureRequest::setImageShortSize(long imageShortSize) {
|
||||
imageShortSize_ = imageShortSize;
|
||||
setBodyParameter(std::string("ImageShortSize"), std::to_string(imageShortSize));
|
||||
}
|
||||
|
||||
std::string GenerateTextTextureRequest::getPrompt() const {
|
||||
return prompt_;
|
||||
}
|
||||
|
||||
void GenerateTextTextureRequest::setPrompt(const std::string &prompt) {
|
||||
prompt_ = prompt;
|
||||
setBodyParameter(std::string("Prompt"), prompt);
|
||||
}
|
||||
|
||||
std::string GenerateTextTextureRequest::getOutputImageRatio() const {
|
||||
return outputImageRatio_;
|
||||
}
|
||||
|
||||
void GenerateTextTextureRequest::setOutputImageRatio(const std::string &outputImageRatio) {
|
||||
outputImageRatio_ = outputImageRatio;
|
||||
setBodyParameter(std::string("OutputImageRatio"), outputImageRatio);
|
||||
}
|
||||
|
||||
59
aigen/src/model/GenerateTextTextureResult.cc
Normal file
59
aigen/src/model/GenerateTextTextureResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aigen/model/GenerateTextTextureResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aigen;
|
||||
using namespace AlibabaCloud::Aigen::Model;
|
||||
|
||||
GenerateTextTextureResult::GenerateTextTextureResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenerateTextTextureResult::GenerateTextTextureResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenerateTextTextureResult::~GenerateTextTextureResult()
|
||||
{}
|
||||
|
||||
void GenerateTextTextureResult::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["ResultUrl"].isNull())
|
||||
data_.resultUrl = dataNode["ResultUrl"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GenerateTextTextureResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GenerateTextTextureResult::Data GenerateTextTextureResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
54
aigen/src/model/InteractiveFullSegmentationRequest.cc
Normal file
54
aigen/src/model/InteractiveFullSegmentationRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aigen/model/InteractiveFullSegmentationRequest.h>
|
||||
|
||||
using AlibabaCloud::Aigen::Model::InteractiveFullSegmentationRequest;
|
||||
|
||||
InteractiveFullSegmentationRequest::InteractiveFullSegmentationRequest()
|
||||
: RpcServiceRequest("aigen", "2024-01-11", "InteractiveFullSegmentation") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InteractiveFullSegmentationRequest::~InteractiveFullSegmentationRequest() {}
|
||||
|
||||
std::string InteractiveFullSegmentationRequest::getReturnFormat() const {
|
||||
return returnFormat_;
|
||||
}
|
||||
|
||||
void InteractiveFullSegmentationRequest::setReturnFormat(const std::string &returnFormat) {
|
||||
returnFormat_ = returnFormat;
|
||||
setBodyParameter(std::string("ReturnFormat"), returnFormat);
|
||||
}
|
||||
|
||||
bool InteractiveFullSegmentationRequest::getAsync() const {
|
||||
return async_;
|
||||
}
|
||||
|
||||
void InteractiveFullSegmentationRequest::setAsync(bool async) {
|
||||
async_ = async;
|
||||
setBodyParameter(std::string("Async"), async ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string InteractiveFullSegmentationRequest::getImageUrl() const {
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void InteractiveFullSegmentationRequest::setImageUrl(const std::string &imageUrl) {
|
||||
imageUrl_ = imageUrl;
|
||||
setBodyParameter(std::string("ImageUrl"), imageUrl);
|
||||
}
|
||||
|
||||
66
aigen/src/model/InteractiveFullSegmentationResult.cc
Normal file
66
aigen/src/model/InteractiveFullSegmentationResult.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/aigen/model/InteractiveFullSegmentationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aigen;
|
||||
using namespace AlibabaCloud::Aigen::Model;
|
||||
|
||||
InteractiveFullSegmentationResult::InteractiveFullSegmentationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InteractiveFullSegmentationResult::InteractiveFullSegmentationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InteractiveFullSegmentationResult::~InteractiveFullSegmentationResult()
|
||||
{}
|
||||
|
||||
void InteractiveFullSegmentationResult::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["ResultUrl"].isNull())
|
||||
data_.resultUrl = dataNode["ResultUrl"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string InteractiveFullSegmentationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
InteractiveFullSegmentationResult::Data InteractiveFullSegmentationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string InteractiveFullSegmentationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
108
aigen/src/model/InteractiveScribbleSegmentationRequest.cc
Normal file
108
aigen/src/model/InteractiveScribbleSegmentationRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aigen/model/InteractiveScribbleSegmentationRequest.h>
|
||||
|
||||
using AlibabaCloud::Aigen::Model::InteractiveScribbleSegmentationRequest;
|
||||
|
||||
InteractiveScribbleSegmentationRequest::InteractiveScribbleSegmentationRequest()
|
||||
: RpcServiceRequest("aigen", "2024-01-11", "InteractiveScribbleSegmentation") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InteractiveScribbleSegmentationRequest::~InteractiveScribbleSegmentationRequest() {}
|
||||
|
||||
std::string InteractiveScribbleSegmentationRequest::getPosScribbleImageUrl() const {
|
||||
return posScribbleImageUrl_;
|
||||
}
|
||||
|
||||
void InteractiveScribbleSegmentationRequest::setPosScribbleImageUrl(const std::string &posScribbleImageUrl) {
|
||||
posScribbleImageUrl_ = posScribbleImageUrl;
|
||||
setBodyParameter(std::string("PosScribbleImageUrl"), posScribbleImageUrl);
|
||||
}
|
||||
|
||||
std::string InteractiveScribbleSegmentationRequest::getIntegratedMaskUrl() const {
|
||||
return integratedMaskUrl_;
|
||||
}
|
||||
|
||||
void InteractiveScribbleSegmentationRequest::setIntegratedMaskUrl(const std::string &integratedMaskUrl) {
|
||||
integratedMaskUrl_ = integratedMaskUrl;
|
||||
setBodyParameter(std::string("IntegratedMaskUrl"), integratedMaskUrl);
|
||||
}
|
||||
|
||||
std::string InteractiveScribbleSegmentationRequest::getMaskImageUrl() const {
|
||||
return maskImageUrl_;
|
||||
}
|
||||
|
||||
void InteractiveScribbleSegmentationRequest::setMaskImageUrl(const std::string &maskImageUrl) {
|
||||
maskImageUrl_ = maskImageUrl;
|
||||
setBodyParameter(std::string("MaskImageUrl"), maskImageUrl);
|
||||
}
|
||||
|
||||
std::string InteractiveScribbleSegmentationRequest::getReturnForm() const {
|
||||
return returnForm_;
|
||||
}
|
||||
|
||||
void InteractiveScribbleSegmentationRequest::setReturnForm(const std::string &returnForm) {
|
||||
returnForm_ = returnForm;
|
||||
setBodyParameter(std::string("ReturnForm"), returnForm);
|
||||
}
|
||||
|
||||
std::string InteractiveScribbleSegmentationRequest::getNegScribbleImageUrl() const {
|
||||
return negScribbleImageUrl_;
|
||||
}
|
||||
|
||||
void InteractiveScribbleSegmentationRequest::setNegScribbleImageUrl(const std::string &negScribbleImageUrl) {
|
||||
negScribbleImageUrl_ = negScribbleImageUrl;
|
||||
setBodyParameter(std::string("NegScribbleImageUrl"), negScribbleImageUrl);
|
||||
}
|
||||
|
||||
std::string InteractiveScribbleSegmentationRequest::getReturnFormat() const {
|
||||
return returnFormat_;
|
||||
}
|
||||
|
||||
void InteractiveScribbleSegmentationRequest::setReturnFormat(const std::string &returnFormat) {
|
||||
returnFormat_ = returnFormat;
|
||||
setBodyParameter(std::string("ReturnFormat"), returnFormat);
|
||||
}
|
||||
|
||||
std::string InteractiveScribbleSegmentationRequest::getEdgeFeathering() const {
|
||||
return edgeFeathering_;
|
||||
}
|
||||
|
||||
void InteractiveScribbleSegmentationRequest::setEdgeFeathering(const std::string &edgeFeathering) {
|
||||
edgeFeathering_ = edgeFeathering;
|
||||
setBodyParameter(std::string("EdgeFeathering"), edgeFeathering);
|
||||
}
|
||||
|
||||
std::string InteractiveScribbleSegmentationRequest::getImageUrl() const {
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void InteractiveScribbleSegmentationRequest::setImageUrl(const std::string &imageUrl) {
|
||||
imageUrl_ = imageUrl;
|
||||
setBodyParameter(std::string("ImageUrl"), imageUrl);
|
||||
}
|
||||
|
||||
std::string InteractiveScribbleSegmentationRequest::getPostprocessOption() const {
|
||||
return postprocessOption_;
|
||||
}
|
||||
|
||||
void InteractiveScribbleSegmentationRequest::setPostprocessOption(const std::string &postprocessOption) {
|
||||
postprocessOption_ = postprocessOption;
|
||||
setBodyParameter(std::string("PostprocessOption"), postprocessOption);
|
||||
}
|
||||
|
||||
52
aigen/src/model/InteractiveScribbleSegmentationResult.cc
Normal file
52
aigen/src/model/InteractiveScribbleSegmentationResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/aigen/model/InteractiveScribbleSegmentationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aigen;
|
||||
using namespace AlibabaCloud::Aigen::Model;
|
||||
|
||||
InteractiveScribbleSegmentationResult::InteractiveScribbleSegmentationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InteractiveScribbleSegmentationResult::InteractiveScribbleSegmentationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InteractiveScribbleSegmentationResult::~InteractiveScribbleSegmentationResult()
|
||||
{}
|
||||
|
||||
void InteractiveScribbleSegmentationResult::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["ResultUrl"].isNull())
|
||||
data_.resultUrl = dataNode["ResultUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
InteractiveScribbleSegmentationResult::Data InteractiveScribbleSegmentationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
86
aimiaobi/CMakeLists.txt
Normal file
86
aimiaobi/CMakeLists.txt
Normal file
@@ -0,0 +1,86 @@
|
||||
#
|
||||
# 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(aimiaobi_public_header
|
||||
include/alibabacloud/aimiaobi/AiMiaoBiClient.h
|
||||
include/alibabacloud/aimiaobi/AiMiaoBiExport.h )
|
||||
|
||||
set(aimiaobi_public_header_model
|
||||
include/alibabacloud/aimiaobi/model/CreateTokenRequest.h
|
||||
include/alibabacloud/aimiaobi/model/CreateTokenResult.h )
|
||||
|
||||
set(aimiaobi_src
|
||||
src/AiMiaoBiClient.cc
|
||||
src/model/CreateTokenRequest.cc
|
||||
src/model/CreateTokenResult.cc )
|
||||
|
||||
add_library(aimiaobi ${LIB_TYPE}
|
||||
${aimiaobi_public_header}
|
||||
${aimiaobi_public_header_model}
|
||||
${aimiaobi_src})
|
||||
|
||||
set_target_properties(aimiaobi
|
||||
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}aimiaobi
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(aimiaobi
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_AIMIAOBI_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(aimiaobi
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(aimiaobi
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(aimiaobi
|
||||
jsoncpp)
|
||||
target_include_directories(aimiaobi
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(aimiaobi
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(aimiaobi
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(aimiaobi
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(aimiaobi
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${aimiaobi_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aimiaobi)
|
||||
install(FILES ${aimiaobi_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aimiaobi/model)
|
||||
install(TARGETS aimiaobi
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
54
aimiaobi/include/alibabacloud/aimiaobi/AiMiaoBiClient.h
Normal file
54
aimiaobi/include/alibabacloud/aimiaobi/AiMiaoBiClient.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AIMIAOBI_AIMIAOBICLIENT_H_
|
||||
#define ALIBABACLOUD_AIMIAOBI_AIMIAOBICLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "AiMiaoBiExport.h"
|
||||
#include "model/CreateTokenRequest.h"
|
||||
#include "model/CreateTokenResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AiMiaoBi
|
||||
{
|
||||
class ALIBABACLOUD_AIMIAOBI_EXPORT AiMiaoBiClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CreateTokenResult> CreateTokenOutcome;
|
||||
typedef std::future<CreateTokenOutcome> CreateTokenOutcomeCallable;
|
||||
typedef std::function<void(const AiMiaoBiClient*, const Model::CreateTokenRequest&, const CreateTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTokenAsyncHandler;
|
||||
|
||||
AiMiaoBiClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
AiMiaoBiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
AiMiaoBiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~AiMiaoBiClient();
|
||||
CreateTokenOutcome createToken(const Model::CreateTokenRequest &request)const;
|
||||
void createTokenAsync(const Model::CreateTokenRequest& request, const CreateTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTokenOutcomeCallable createTokenCallable(const Model::CreateTokenRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_AIMIAOBI_AIMIAOBICLIENT_H_
|
||||
32
aimiaobi/include/alibabacloud/aimiaobi/AiMiaoBiExport.h
Normal file
32
aimiaobi/include/alibabacloud/aimiaobi/AiMiaoBiExport.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_AIMIAOBI_AIMIAOBIEXPORT_H_
|
||||
#define ALIBABACLOUD_AIMIAOBI_AIMIAOBIEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_AIMIAOBI_LIBRARY)
|
||||
# define ALIBABACLOUD_AIMIAOBI_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_AIMIAOBI_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_AIMIAOBI_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_AIMIAOBI_AIMIAOBIEXPORT_H_
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* 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_AIMIAOBI_MODEL_CREATETOKENREQUEST_H_
|
||||
#define ALIBABACLOUD_AIMIAOBI_MODEL_CREATETOKENREQUEST_H_
|
||||
|
||||
#include <alibabacloud/aimiaobi/AiMiaoBiExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AiMiaoBi {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_AIMIAOBI_EXPORT CreateTokenRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateTokenRequest();
|
||||
~CreateTokenRequest();
|
||||
std::string getAgentKey() const;
|
||||
void setAgentKey(const std::string &agentKey);
|
||||
|
||||
private:
|
||||
std::string agentKey_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AiMiaoBi
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_AIMIAOBI_MODEL_CREATETOKENREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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_AIMIAOBI_MODEL_CREATETOKENRESULT_H_
|
||||
#define ALIBABACLOUD_AIMIAOBI_MODEL_CREATETOKENRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aimiaobi/AiMiaoBiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AiMiaoBi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIMIAOBI_EXPORT CreateTokenResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
long expiredTime;
|
||||
std::string token;
|
||||
};
|
||||
|
||||
|
||||
CreateTokenResult();
|
||||
explicit CreateTokenResult(const std::string &payload);
|
||||
~CreateTokenResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIMIAOBI_MODEL_CREATETOKENRESULT_H_
|
||||
89
aimiaobi/src/AiMiaoBiClient.cc
Normal file
89
aimiaobi/src/AiMiaoBiClient.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* 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/aimiaobi/AiMiaoBiClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::AiMiaoBi;
|
||||
using namespace AlibabaCloud::AiMiaoBi::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "AiMiaoBi";
|
||||
}
|
||||
|
||||
AiMiaoBiClient::AiMiaoBiClient(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, "");
|
||||
}
|
||||
|
||||
AiMiaoBiClient::AiMiaoBiClient(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, "");
|
||||
}
|
||||
|
||||
AiMiaoBiClient::AiMiaoBiClient(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, "");
|
||||
}
|
||||
|
||||
AiMiaoBiClient::~AiMiaoBiClient()
|
||||
{}
|
||||
|
||||
AiMiaoBiClient::CreateTokenOutcome AiMiaoBiClient::createToken(const CreateTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateTokenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateTokenOutcome(CreateTokenResult(outcome.result()));
|
||||
else
|
||||
return CreateTokenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AiMiaoBiClient::createTokenAsync(const CreateTokenRequest& request, const CreateTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createToken(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AiMiaoBiClient::CreateTokenOutcomeCallable AiMiaoBiClient::createTokenCallable(const CreateTokenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateTokenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createToken(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
36
aimiaobi/src/model/CreateTokenRequest.cc
Normal file
36
aimiaobi/src/model/CreateTokenRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/aimiaobi/model/CreateTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::AiMiaoBi::Model::CreateTokenRequest;
|
||||
|
||||
CreateTokenRequest::CreateTokenRequest()
|
||||
: RpcServiceRequest("aimiaobi", "2023-08-01", "CreateToken") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTokenRequest::~CreateTokenRequest() {}
|
||||
|
||||
std::string CreateTokenRequest::getAgentKey() const {
|
||||
return agentKey_;
|
||||
}
|
||||
|
||||
void CreateTokenRequest::setAgentKey(const std::string &agentKey) {
|
||||
agentKey_ = agentKey;
|
||||
setParameter(std::string("AgentKey"), agentKey);
|
||||
}
|
||||
|
||||
82
aimiaobi/src/model/CreateTokenResult.cc
Normal file
82
aimiaobi/src/model/CreateTokenResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/aimiaobi/model/CreateTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AiMiaoBi;
|
||||
using namespace AlibabaCloud::AiMiaoBi::Model;
|
||||
|
||||
CreateTokenResult::CreateTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTokenResult::CreateTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTokenResult::~CreateTokenResult()
|
||||
{}
|
||||
|
||||
void CreateTokenResult::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["Token"].isNull())
|
||||
data_.token = dataNode["Token"].asString();
|
||||
if(!dataNode["ExpiredTime"].isNull())
|
||||
data_.expiredTime = std::stol(dataNode["ExpiredTime"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateTokenResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateTokenResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
CreateTokenResult::Data CreateTokenResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateTokenResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateTokenResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -51,6 +51,10 @@ set(alikafka_public_header_model
|
||||
include/alibabacloud/alikafka/model/DescribeAclsResult.h
|
||||
include/alibabacloud/alikafka/model/DescribeSaslUsersRequest.h
|
||||
include/alibabacloud/alikafka/model/DescribeSaslUsersResult.h
|
||||
include/alibabacloud/alikafka/model/EnableAutoGroupCreationRequest.h
|
||||
include/alibabacloud/alikafka/model/EnableAutoGroupCreationResult.h
|
||||
include/alibabacloud/alikafka/model/EnableAutoTopicCreationRequest.h
|
||||
include/alibabacloud/alikafka/model/EnableAutoTopicCreationResult.h
|
||||
include/alibabacloud/alikafka/model/GetAllInstanceIdListRequest.h
|
||||
include/alibabacloud/alikafka/model/GetAllInstanceIdListResult.h
|
||||
include/alibabacloud/alikafka/model/GetAllowedIpListRequest.h
|
||||
@@ -67,6 +71,8 @@ set(alikafka_public_header_model
|
||||
include/alibabacloud/alikafka/model/GetTopicListResult.h
|
||||
include/alibabacloud/alikafka/model/GetTopicStatusRequest.h
|
||||
include/alibabacloud/alikafka/model/GetTopicStatusResult.h
|
||||
include/alibabacloud/alikafka/model/GetTopicSubscribeStatusRequest.h
|
||||
include/alibabacloud/alikafka/model/GetTopicSubscribeStatusResult.h
|
||||
include/alibabacloud/alikafka/model/ListTagResourcesRequest.h
|
||||
include/alibabacloud/alikafka/model/ListTagResourcesResult.h
|
||||
include/alibabacloud/alikafka/model/ModifyInstanceNameRequest.h
|
||||
@@ -75,10 +81,16 @@ set(alikafka_public_header_model
|
||||
include/alibabacloud/alikafka/model/ModifyPartitionNumResult.h
|
||||
include/alibabacloud/alikafka/model/ModifyTopicRemarkRequest.h
|
||||
include/alibabacloud/alikafka/model/ModifyTopicRemarkResult.h
|
||||
include/alibabacloud/alikafka/model/QueryMessageRequest.h
|
||||
include/alibabacloud/alikafka/model/QueryMessageResult.h
|
||||
include/alibabacloud/alikafka/model/ReleaseInstanceRequest.h
|
||||
include/alibabacloud/alikafka/model/ReleaseInstanceResult.h
|
||||
include/alibabacloud/alikafka/model/ReopenInstanceRequest.h
|
||||
include/alibabacloud/alikafka/model/ReopenInstanceResult.h
|
||||
include/alibabacloud/alikafka/model/StartInstanceRequest.h
|
||||
include/alibabacloud/alikafka/model/StartInstanceResult.h
|
||||
include/alibabacloud/alikafka/model/StopInstanceRequest.h
|
||||
include/alibabacloud/alikafka/model/StopInstanceResult.h
|
||||
include/alibabacloud/alikafka/model/TagResourcesRequest.h
|
||||
include/alibabacloud/alikafka/model/TagResourcesResult.h
|
||||
include/alibabacloud/alikafka/model/UntagResourcesRequest.h
|
||||
@@ -89,6 +101,8 @@ set(alikafka_public_header_model
|
||||
include/alibabacloud/alikafka/model/UpdateConsumerOffsetResult.h
|
||||
include/alibabacloud/alikafka/model/UpdateInstanceConfigRequest.h
|
||||
include/alibabacloud/alikafka/model/UpdateInstanceConfigResult.h
|
||||
include/alibabacloud/alikafka/model/UpdateTopicConfigRequest.h
|
||||
include/alibabacloud/alikafka/model/UpdateTopicConfigResult.h
|
||||
include/alibabacloud/alikafka/model/UpgradeInstanceVersionRequest.h
|
||||
include/alibabacloud/alikafka/model/UpgradeInstanceVersionResult.h
|
||||
include/alibabacloud/alikafka/model/UpgradePostPayOrderRequest.h
|
||||
@@ -128,6 +142,10 @@ set(alikafka_src
|
||||
src/model/DescribeAclsResult.cc
|
||||
src/model/DescribeSaslUsersRequest.cc
|
||||
src/model/DescribeSaslUsersResult.cc
|
||||
src/model/EnableAutoGroupCreationRequest.cc
|
||||
src/model/EnableAutoGroupCreationResult.cc
|
||||
src/model/EnableAutoTopicCreationRequest.cc
|
||||
src/model/EnableAutoTopicCreationResult.cc
|
||||
src/model/GetAllInstanceIdListRequest.cc
|
||||
src/model/GetAllInstanceIdListResult.cc
|
||||
src/model/GetAllowedIpListRequest.cc
|
||||
@@ -144,6 +162,8 @@ set(alikafka_src
|
||||
src/model/GetTopicListResult.cc
|
||||
src/model/GetTopicStatusRequest.cc
|
||||
src/model/GetTopicStatusResult.cc
|
||||
src/model/GetTopicSubscribeStatusRequest.cc
|
||||
src/model/GetTopicSubscribeStatusResult.cc
|
||||
src/model/ListTagResourcesRequest.cc
|
||||
src/model/ListTagResourcesResult.cc
|
||||
src/model/ModifyInstanceNameRequest.cc
|
||||
@@ -152,10 +172,16 @@ set(alikafka_src
|
||||
src/model/ModifyPartitionNumResult.cc
|
||||
src/model/ModifyTopicRemarkRequest.cc
|
||||
src/model/ModifyTopicRemarkResult.cc
|
||||
src/model/QueryMessageRequest.cc
|
||||
src/model/QueryMessageResult.cc
|
||||
src/model/ReleaseInstanceRequest.cc
|
||||
src/model/ReleaseInstanceResult.cc
|
||||
src/model/ReopenInstanceRequest.cc
|
||||
src/model/ReopenInstanceResult.cc
|
||||
src/model/StartInstanceRequest.cc
|
||||
src/model/StartInstanceResult.cc
|
||||
src/model/StopInstanceRequest.cc
|
||||
src/model/StopInstanceResult.cc
|
||||
src/model/TagResourcesRequest.cc
|
||||
src/model/TagResourcesResult.cc
|
||||
src/model/UntagResourcesRequest.cc
|
||||
@@ -166,6 +192,8 @@ set(alikafka_src
|
||||
src/model/UpdateConsumerOffsetResult.cc
|
||||
src/model/UpdateInstanceConfigRequest.cc
|
||||
src/model/UpdateInstanceConfigResult.cc
|
||||
src/model/UpdateTopicConfigRequest.cc
|
||||
src/model/UpdateTopicConfigResult.cc
|
||||
src/model/UpgradeInstanceVersionRequest.cc
|
||||
src/model/UpgradeInstanceVersionResult.cc
|
||||
src/model/UpgradePostPayOrderRequest.cc
|
||||
|
||||
@@ -52,6 +52,10 @@
|
||||
#include "model/DescribeAclsResult.h"
|
||||
#include "model/DescribeSaslUsersRequest.h"
|
||||
#include "model/DescribeSaslUsersResult.h"
|
||||
#include "model/EnableAutoGroupCreationRequest.h"
|
||||
#include "model/EnableAutoGroupCreationResult.h"
|
||||
#include "model/EnableAutoTopicCreationRequest.h"
|
||||
#include "model/EnableAutoTopicCreationResult.h"
|
||||
#include "model/GetAllInstanceIdListRequest.h"
|
||||
#include "model/GetAllInstanceIdListResult.h"
|
||||
#include "model/GetAllowedIpListRequest.h"
|
||||
@@ -68,6 +72,8 @@
|
||||
#include "model/GetTopicListResult.h"
|
||||
#include "model/GetTopicStatusRequest.h"
|
||||
#include "model/GetTopicStatusResult.h"
|
||||
#include "model/GetTopicSubscribeStatusRequest.h"
|
||||
#include "model/GetTopicSubscribeStatusResult.h"
|
||||
#include "model/ListTagResourcesRequest.h"
|
||||
#include "model/ListTagResourcesResult.h"
|
||||
#include "model/ModifyInstanceNameRequest.h"
|
||||
@@ -76,10 +82,16 @@
|
||||
#include "model/ModifyPartitionNumResult.h"
|
||||
#include "model/ModifyTopicRemarkRequest.h"
|
||||
#include "model/ModifyTopicRemarkResult.h"
|
||||
#include "model/QueryMessageRequest.h"
|
||||
#include "model/QueryMessageResult.h"
|
||||
#include "model/ReleaseInstanceRequest.h"
|
||||
#include "model/ReleaseInstanceResult.h"
|
||||
#include "model/ReopenInstanceRequest.h"
|
||||
#include "model/ReopenInstanceResult.h"
|
||||
#include "model/StartInstanceRequest.h"
|
||||
#include "model/StartInstanceResult.h"
|
||||
#include "model/StopInstanceRequest.h"
|
||||
#include "model/StopInstanceResult.h"
|
||||
#include "model/TagResourcesRequest.h"
|
||||
#include "model/TagResourcesResult.h"
|
||||
#include "model/UntagResourcesRequest.h"
|
||||
@@ -90,6 +102,8 @@
|
||||
#include "model/UpdateConsumerOffsetResult.h"
|
||||
#include "model/UpdateInstanceConfigRequest.h"
|
||||
#include "model/UpdateInstanceConfigResult.h"
|
||||
#include "model/UpdateTopicConfigRequest.h"
|
||||
#include "model/UpdateTopicConfigResult.h"
|
||||
#include "model/UpgradeInstanceVersionRequest.h"
|
||||
#include "model/UpgradeInstanceVersionResult.h"
|
||||
#include "model/UpgradePostPayOrderRequest.h"
|
||||
@@ -150,6 +164,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeSaslUsersResult> DescribeSaslUsersOutcome;
|
||||
typedef std::future<DescribeSaslUsersOutcome> DescribeSaslUsersOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::DescribeSaslUsersRequest&, const DescribeSaslUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSaslUsersAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableAutoGroupCreationResult> EnableAutoGroupCreationOutcome;
|
||||
typedef std::future<EnableAutoGroupCreationOutcome> EnableAutoGroupCreationOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::EnableAutoGroupCreationRequest&, const EnableAutoGroupCreationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableAutoGroupCreationAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableAutoTopicCreationResult> EnableAutoTopicCreationOutcome;
|
||||
typedef std::future<EnableAutoTopicCreationOutcome> EnableAutoTopicCreationOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::EnableAutoTopicCreationRequest&, const EnableAutoTopicCreationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableAutoTopicCreationAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAllInstanceIdListResult> GetAllInstanceIdListOutcome;
|
||||
typedef std::future<GetAllInstanceIdListOutcome> GetAllInstanceIdListOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::GetAllInstanceIdListRequest&, const GetAllInstanceIdListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAllInstanceIdListAsyncHandler;
|
||||
@@ -174,6 +194,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetTopicStatusResult> GetTopicStatusOutcome;
|
||||
typedef std::future<GetTopicStatusOutcome> GetTopicStatusOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::GetTopicStatusRequest&, const GetTopicStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTopicStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTopicSubscribeStatusResult> GetTopicSubscribeStatusOutcome;
|
||||
typedef std::future<GetTopicSubscribeStatusOutcome> GetTopicSubscribeStatusOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::GetTopicSubscribeStatusRequest&, const GetTopicSubscribeStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTopicSubscribeStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
|
||||
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
|
||||
@@ -186,12 +209,21 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyTopicRemarkResult> ModifyTopicRemarkOutcome;
|
||||
typedef std::future<ModifyTopicRemarkOutcome> ModifyTopicRemarkOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::ModifyTopicRemarkRequest&, const ModifyTopicRemarkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyTopicRemarkAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryMessageResult> QueryMessageOutcome;
|
||||
typedef std::future<QueryMessageOutcome> QueryMessageOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::QueryMessageRequest&, const QueryMessageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryMessageAsyncHandler;
|
||||
typedef Outcome<Error, Model::ReleaseInstanceResult> ReleaseInstanceOutcome;
|
||||
typedef std::future<ReleaseInstanceOutcome> ReleaseInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::ReleaseInstanceRequest&, const ReleaseInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleaseInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ReopenInstanceResult> ReopenInstanceOutcome;
|
||||
typedef std::future<ReopenInstanceOutcome> ReopenInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::ReopenInstanceRequest&, const ReopenInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReopenInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartInstanceResult> StartInstanceOutcome;
|
||||
typedef std::future<StartInstanceOutcome> StartInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::StartInstanceRequest&, const StartInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopInstanceResult> StopInstanceOutcome;
|
||||
typedef std::future<StopInstanceOutcome> StopInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::StopInstanceRequest&, const StopInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
|
||||
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
|
||||
@@ -207,6 +239,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateInstanceConfigResult> UpdateInstanceConfigOutcome;
|
||||
typedef std::future<UpdateInstanceConfigOutcome> UpdateInstanceConfigOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::UpdateInstanceConfigRequest&, const UpdateInstanceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateInstanceConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateTopicConfigResult> UpdateTopicConfigOutcome;
|
||||
typedef std::future<UpdateTopicConfigOutcome> UpdateTopicConfigOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::UpdateTopicConfigRequest&, const UpdateTopicConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateTopicConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpgradeInstanceVersionResult> UpgradeInstanceVersionOutcome;
|
||||
typedef std::future<UpgradeInstanceVersionOutcome> UpgradeInstanceVersionOutcomeCallable;
|
||||
typedef std::function<void(const AlikafkaClient*, const Model::UpgradeInstanceVersionRequest&, const UpgradeInstanceVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeInstanceVersionAsyncHandler;
|
||||
@@ -266,6 +301,12 @@ namespace AlibabaCloud
|
||||
DescribeSaslUsersOutcome describeSaslUsers(const Model::DescribeSaslUsersRequest &request)const;
|
||||
void describeSaslUsersAsync(const Model::DescribeSaslUsersRequest& request, const DescribeSaslUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSaslUsersOutcomeCallable describeSaslUsersCallable(const Model::DescribeSaslUsersRequest& request) const;
|
||||
EnableAutoGroupCreationOutcome enableAutoGroupCreation(const Model::EnableAutoGroupCreationRequest &request)const;
|
||||
void enableAutoGroupCreationAsync(const Model::EnableAutoGroupCreationRequest& request, const EnableAutoGroupCreationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableAutoGroupCreationOutcomeCallable enableAutoGroupCreationCallable(const Model::EnableAutoGroupCreationRequest& request) const;
|
||||
EnableAutoTopicCreationOutcome enableAutoTopicCreation(const Model::EnableAutoTopicCreationRequest &request)const;
|
||||
void enableAutoTopicCreationAsync(const Model::EnableAutoTopicCreationRequest& request, const EnableAutoTopicCreationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableAutoTopicCreationOutcomeCallable enableAutoTopicCreationCallable(const Model::EnableAutoTopicCreationRequest& request) const;
|
||||
GetAllInstanceIdListOutcome getAllInstanceIdList(const Model::GetAllInstanceIdListRequest &request)const;
|
||||
void getAllInstanceIdListAsync(const Model::GetAllInstanceIdListRequest& request, const GetAllInstanceIdListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAllInstanceIdListOutcomeCallable getAllInstanceIdListCallable(const Model::GetAllInstanceIdListRequest& request) const;
|
||||
@@ -290,6 +331,9 @@ namespace AlibabaCloud
|
||||
GetTopicStatusOutcome getTopicStatus(const Model::GetTopicStatusRequest &request)const;
|
||||
void getTopicStatusAsync(const Model::GetTopicStatusRequest& request, const GetTopicStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTopicStatusOutcomeCallable getTopicStatusCallable(const Model::GetTopicStatusRequest& request) const;
|
||||
GetTopicSubscribeStatusOutcome getTopicSubscribeStatus(const Model::GetTopicSubscribeStatusRequest &request)const;
|
||||
void getTopicSubscribeStatusAsync(const Model::GetTopicSubscribeStatusRequest& request, const GetTopicSubscribeStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTopicSubscribeStatusOutcomeCallable getTopicSubscribeStatusCallable(const Model::GetTopicSubscribeStatusRequest& request) const;
|
||||
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
|
||||
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
|
||||
@@ -302,12 +346,21 @@ namespace AlibabaCloud
|
||||
ModifyTopicRemarkOutcome modifyTopicRemark(const Model::ModifyTopicRemarkRequest &request)const;
|
||||
void modifyTopicRemarkAsync(const Model::ModifyTopicRemarkRequest& request, const ModifyTopicRemarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyTopicRemarkOutcomeCallable modifyTopicRemarkCallable(const Model::ModifyTopicRemarkRequest& request) const;
|
||||
QueryMessageOutcome queryMessage(const Model::QueryMessageRequest &request)const;
|
||||
void queryMessageAsync(const Model::QueryMessageRequest& request, const QueryMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryMessageOutcomeCallable queryMessageCallable(const Model::QueryMessageRequest& request) const;
|
||||
ReleaseInstanceOutcome releaseInstance(const Model::ReleaseInstanceRequest &request)const;
|
||||
void releaseInstanceAsync(const Model::ReleaseInstanceRequest& request, const ReleaseInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReleaseInstanceOutcomeCallable releaseInstanceCallable(const Model::ReleaseInstanceRequest& request) const;
|
||||
ReopenInstanceOutcome reopenInstance(const Model::ReopenInstanceRequest &request)const;
|
||||
void reopenInstanceAsync(const Model::ReopenInstanceRequest& request, const ReopenInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReopenInstanceOutcomeCallable reopenInstanceCallable(const Model::ReopenInstanceRequest& request) const;
|
||||
StartInstanceOutcome startInstance(const Model::StartInstanceRequest &request)const;
|
||||
void startInstanceAsync(const Model::StartInstanceRequest& request, const StartInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartInstanceOutcomeCallable startInstanceCallable(const Model::StartInstanceRequest& request) const;
|
||||
StopInstanceOutcome stopInstance(const Model::StopInstanceRequest &request)const;
|
||||
void stopInstanceAsync(const Model::StopInstanceRequest& request, const StopInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopInstanceOutcomeCallable stopInstanceCallable(const Model::StopInstanceRequest& request) const;
|
||||
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
|
||||
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;
|
||||
@@ -323,6 +376,9 @@ namespace AlibabaCloud
|
||||
UpdateInstanceConfigOutcome updateInstanceConfig(const Model::UpdateInstanceConfigRequest &request)const;
|
||||
void updateInstanceConfigAsync(const Model::UpdateInstanceConfigRequest& request, const UpdateInstanceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateInstanceConfigOutcomeCallable updateInstanceConfigCallable(const Model::UpdateInstanceConfigRequest& request) const;
|
||||
UpdateTopicConfigOutcome updateTopicConfig(const Model::UpdateTopicConfigRequest &request)const;
|
||||
void updateTopicConfigAsync(const Model::UpdateTopicConfigRequest& request, const UpdateTopicConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateTopicConfigOutcomeCallable updateTopicConfigCallable(const Model::UpdateTopicConfigRequest& request) const;
|
||||
UpgradeInstanceVersionOutcome upgradeInstanceVersion(const Model::UpgradeInstanceVersionRequest &request)const;
|
||||
void upgradeInstanceVersionAsync(const Model::UpgradeInstanceVersionRequest& request, const UpgradeInstanceVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpgradeInstanceVersionOutcomeCallable upgradeInstanceVersionCallable(const Model::UpgradeInstanceVersionRequest& request) const;
|
||||
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
void setAclResourcePatternType(const std::string &aclResourcePatternType);
|
||||
std::string getAclResourceType() const;
|
||||
void setAclResourceType(const std::string &aclResourceType);
|
||||
std::string getAclOperationTypes() const;
|
||||
void setAclOperationTypes(const std::string &aclOperationTypes);
|
||||
std::string getAclOperationType() const;
|
||||
void setAclOperationType(const std::string &aclOperationType);
|
||||
std::string getAclResourceName() const;
|
||||
@@ -42,16 +44,23 @@ public:
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getHost() const;
|
||||
void setHost(const std::string &host);
|
||||
std::string getAclPermissionType() const;
|
||||
void setAclPermissionType(const std::string &aclPermissionType);
|
||||
std::string getUsername() const;
|
||||
void setUsername(const std::string &username);
|
||||
|
||||
private:
|
||||
std::string aclResourcePatternType_;
|
||||
std::string aclResourceType_;
|
||||
std::string aclOperationTypes_;
|
||||
std::string aclOperationType_;
|
||||
std::string aclResourceName_;
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
std::string host_;
|
||||
std::string aclPermissionType_;
|
||||
std::string username_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -28,6 +28,26 @@ namespace Alikafka {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT CreatePrePayOrderRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct ConfluentConfig {
|
||||
int ksqlStorage;
|
||||
int controlCenterStorage;
|
||||
int kafkaRestProxyReplica;
|
||||
int zooKeeperReplica;
|
||||
int connectCU;
|
||||
int kafkaReplica;
|
||||
int schemaRegistryReplica;
|
||||
int kafkaCU;
|
||||
int connectReplica;
|
||||
int controlCenterCU;
|
||||
int ksqlReplica;
|
||||
int controlCenterReplica;
|
||||
int kafkaStorage;
|
||||
int zooKeeperStorage;
|
||||
int ksqlCU;
|
||||
int schemaRegistryCU;
|
||||
int zooKeeperCU;
|
||||
int kafkaRestProxyCU;
|
||||
};
|
||||
struct Tag {
|
||||
std::string value;
|
||||
std::string key;
|
||||
@@ -38,16 +58,22 @@ public:
|
||||
void setIoMax(int ioMax);
|
||||
int getEipMax() const;
|
||||
void setEipMax(int eipMax);
|
||||
int getDuration() const;
|
||||
void setDuration(int duration);
|
||||
std::string getSpecType() const;
|
||||
void setSpecType(const std::string &specType);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
ConfluentConfig getConfluentConfig() const;
|
||||
void setConfluentConfig(const ConfluentConfig &confluentConfig);
|
||||
std::vector<Tag> getTag() const;
|
||||
void setTag(const std::vector<Tag> &tag);
|
||||
int getPartitionNum() const;
|
||||
void setPartitionNum(int partitionNum);
|
||||
int getPaidType() const;
|
||||
void setPaidType(int paidType);
|
||||
int getDiskSize() const;
|
||||
void setDiskSize(int diskSize);
|
||||
std::string getIoMaxSpec() const;
|
||||
@@ -62,11 +88,14 @@ public:
|
||||
private:
|
||||
int ioMax_;
|
||||
int eipMax_;
|
||||
int duration_;
|
||||
std::string specType_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
ConfluentConfig confluentConfig_;
|
||||
std::vector<Tag> tag_;
|
||||
int partitionNum_;
|
||||
int paidType_;
|
||||
int diskSize_;
|
||||
std::string ioMaxSpec_;
|
||||
std::string diskType_;
|
||||
|
||||
@@ -38,6 +38,8 @@ public:
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getMechanism() const;
|
||||
void setMechanism(const std::string &mechanism);
|
||||
std::string getUsername() const;
|
||||
void setUsername(const std::string &username);
|
||||
|
||||
@@ -46,6 +48,7 @@ private:
|
||||
std::string password_;
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
std::string mechanism_;
|
||||
std::string username_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
void setAclResourcePatternType(const std::string &aclResourcePatternType);
|
||||
std::string getAclResourceType() const;
|
||||
void setAclResourceType(const std::string &aclResourceType);
|
||||
std::string getAclOperationTypes() const;
|
||||
void setAclOperationTypes(const std::string &aclOperationTypes);
|
||||
std::string getAclOperationType() const;
|
||||
void setAclOperationType(const std::string &aclOperationType);
|
||||
std::string getAclResourceName() const;
|
||||
@@ -42,16 +44,23 @@ public:
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getHost() const;
|
||||
void setHost(const std::string &host);
|
||||
std::string getAclPermissionType() const;
|
||||
void setAclPermissionType(const std::string &aclPermissionType);
|
||||
std::string getUsername() const;
|
||||
void setUsername(const std::string &username);
|
||||
|
||||
private:
|
||||
std::string aclResourcePatternType_;
|
||||
std::string aclResourceType_;
|
||||
std::string aclOperationTypes_;
|
||||
std::string aclOperationType_;
|
||||
std::string aclResourceName_;
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
std::string host_;
|
||||
std::string aclPermissionType_;
|
||||
std::string username_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -36,6 +36,8 @@ public:
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getMechanism() const;
|
||||
void setMechanism(const std::string &mechanism);
|
||||
std::string getUsername() const;
|
||||
void setUsername(const std::string &username);
|
||||
|
||||
@@ -43,6 +45,7 @@ private:
|
||||
std::string type_;
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
std::string mechanism_;
|
||||
std::string username_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -34,21 +34,30 @@ public:
|
||||
void setAclResourcePatternType(const std::string &aclResourcePatternType);
|
||||
std::string getAclResourceType() const;
|
||||
void setAclResourceType(const std::string &aclResourceType);
|
||||
std::string getAclOperationType() const;
|
||||
void setAclOperationType(const std::string &aclOperationType);
|
||||
std::string getAclResourceName() const;
|
||||
void setAclResourceName(const std::string &aclResourceName);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getHost() const;
|
||||
void setHost(const std::string &host);
|
||||
std::string getAclPermissionType() const;
|
||||
void setAclPermissionType(const std::string &aclPermissionType);
|
||||
std::string getUsername() const;
|
||||
void setUsername(const std::string &username);
|
||||
|
||||
private:
|
||||
std::string aclResourcePatternType_;
|
||||
std::string aclResourceType_;
|
||||
std::string aclOperationType_;
|
||||
std::string aclResourceName_;
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
std::string host_;
|
||||
std::string aclPermissionType_;
|
||||
std::string username_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
std::string username;
|
||||
std::string aclResourceType;
|
||||
std::string aclOperationType;
|
||||
std::string aclPermissionType;
|
||||
std::string host;
|
||||
std::string aclResourcePatternType;
|
||||
};
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string type;
|
||||
std::string username;
|
||||
std::string mechanism;
|
||||
std::string password;
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_ALIKAFKA_MODEL_ENABLEAUTOGROUPCREATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOGROUPCREATIONREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alikafka/AlikafkaExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alikafka {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT EnableAutoGroupCreationRequest : public RpcServiceRequest {
|
||||
public:
|
||||
EnableAutoGroupCreationRequest();
|
||||
~EnableAutoGroupCreationRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
bool getEnable() const;
|
||||
void setEnable(bool enable);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
bool enable_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alikafka
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOGROUPCREATIONREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOGROUPCREATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOGROUPCREATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alikafka/AlikafkaExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alikafka
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT EnableAutoGroupCreationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
EnableAutoGroupCreationResult();
|
||||
explicit EnableAutoGroupCreationResult(const std::string &payload);
|
||||
~EnableAutoGroupCreationResult();
|
||||
std::string getMessage()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOGROUPCREATIONRESULT_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_ALIKAFKA_MODEL_ENABLEAUTOTOPICCREATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOTOPICCREATIONREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alikafka/AlikafkaExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alikafka {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT EnableAutoTopicCreationRequest : public RpcServiceRequest {
|
||||
public:
|
||||
EnableAutoTopicCreationRequest();
|
||||
~EnableAutoTopicCreationRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getOperate() const;
|
||||
void setOperate(const std::string &operate);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
long getPartitionNum() const;
|
||||
void setPartitionNum(long partitionNum);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string operate_;
|
||||
std::string regionId_;
|
||||
long partitionNum_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alikafka
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOTOPICCREATIONREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOTOPICCREATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOTOPICCREATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alikafka/AlikafkaExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alikafka
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT EnableAutoTopicCreationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
EnableAutoTopicCreationResult();
|
||||
explicit EnableAutoTopicCreationResult(const std::string &payload);
|
||||
~EnableAutoTopicCreationResult();
|
||||
std::string getMessage()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_ENABLEAUTOTOPICCREATIONRESULT_H_
|
||||
@@ -52,6 +52,9 @@ namespace AlibabaCloud
|
||||
explicit GetConsumerListResult(const std::string &payload);
|
||||
~GetConsumerListResult();
|
||||
std::string getMessage()const;
|
||||
int getPageSize()const;
|
||||
int getCurrentPage()const;
|
||||
long getTotal()const;
|
||||
std::vector<ConsumerVO> getConsumerList()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
@@ -60,6 +63,9 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int pageSize_;
|
||||
int currentPage_;
|
||||
long total_;
|
||||
std::vector<ConsumerVO> consumerList_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
@@ -48,6 +48,16 @@ namespace AlibabaCloud
|
||||
long totalDiff;
|
||||
std::string topic;
|
||||
};
|
||||
struct RebalanceInfoListItem
|
||||
{
|
||||
bool rebalanceSuccess;
|
||||
long generation;
|
||||
long rebalanceTimeConsuming;
|
||||
long lastRebalanceTimestamp;
|
||||
std::string reason;
|
||||
std::string groupId;
|
||||
};
|
||||
std::vector<RebalanceInfoListItem> rebalanceInfoList;
|
||||
long lastTimestamp;
|
||||
std::vector<TopicListItem> topicList;
|
||||
long totalDiff;
|
||||
|
||||
@@ -38,12 +38,34 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string current2OpenSourceVersion;
|
||||
};
|
||||
struct ConfluentConfig
|
||||
{
|
||||
int ksqlStorage;
|
||||
int kafkaRestProxyCU;
|
||||
int zooKeeperReplica;
|
||||
int kafkaReplica;
|
||||
int connectReplica;
|
||||
int controlCenterStorage;
|
||||
int schemaRegistryCU;
|
||||
int kafkaCU;
|
||||
int connectCU;
|
||||
int ksqlCU;
|
||||
int controlCenterReplica;
|
||||
int ksqlReplica;
|
||||
int schemaRegistryReplica;
|
||||
int zooKeeperCU;
|
||||
int kafkaRestProxyReplica;
|
||||
int zooKeeperStorage;
|
||||
int controlCenterCU;
|
||||
int kafkaStorage;
|
||||
};
|
||||
struct TagVO
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
int deployType;
|
||||
int reservedPublishCapacity;
|
||||
std::string resourceGroupId;
|
||||
std::string specType;
|
||||
int ioMax;
|
||||
@@ -52,9 +74,12 @@ namespace AlibabaCloud
|
||||
UpgradeServiceDetailInfo upgradeServiceDetailInfo;
|
||||
std::string saslDomainEndpoint;
|
||||
std::string name;
|
||||
int viewInstanceStatusCode;
|
||||
ConfluentConfig confluentConfig;
|
||||
int diskType;
|
||||
std::string sslDomainEndpoint;
|
||||
int serviceStatus;
|
||||
int reservedSubscribeCapacity;
|
||||
int msgRetain;
|
||||
long expiredTime;
|
||||
int diskSize;
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_ALIKAFKA_MODEL_GETTOPICSUBSCRIBESTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSUBSCRIBESTATUSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alikafka/AlikafkaExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alikafka {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT GetTopicSubscribeStatusRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetTopicSubscribeStatusRequest();
|
||||
~GetTopicSubscribeStatusRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getTopic() const;
|
||||
void setTopic(const std::string &topic);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
std::string topic_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alikafka
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSUBSCRIBESTATUSREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSUBSCRIBESTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSUBSCRIBESTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alikafka/AlikafkaExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alikafka
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT GetTopicSubscribeStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TopicSubscribeStatus
|
||||
{
|
||||
std::vector<std::string> consumerGroups;
|
||||
std::string topic;
|
||||
};
|
||||
|
||||
|
||||
GetTopicSubscribeStatusResult();
|
||||
explicit GetTopicSubscribeStatusResult(const std::string &payload);
|
||||
~GetTopicSubscribeStatusResult();
|
||||
std::string getMessage()const;
|
||||
TopicSubscribeStatus getTopicSubscribeStatus()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
TopicSubscribeStatus topicSubscribeStatus_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_GETTOPICSUBSCRIBESTATUSRESULT_H_
|
||||
@@ -30,20 +30,20 @@ class ALIBABACLOUD_ALIKAFKA_EXPORT ModifyTopicRemarkRequest : public RpcServiceR
|
||||
public:
|
||||
ModifyTopicRemarkRequest();
|
||||
~ModifyTopicRemarkRequest();
|
||||
std::string getRemark() const;
|
||||
void setRemark(const std::string &remark);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getTopic() const;
|
||||
void setTopic(const std::string &topic);
|
||||
std::string getRemark() const;
|
||||
void setRemark(const std::string &remark);
|
||||
|
||||
private:
|
||||
std::string remark_;
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
std::string topic_;
|
||||
std::string remark_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alikafka
|
||||
|
||||
@@ -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_ALIKAFKA_MODEL_QUERYMESSAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIKAFKA_MODEL_QUERYMESSAGEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alikafka/AlikafkaExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alikafka {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT QueryMessageRequest : public RpcServiceRequest {
|
||||
public:
|
||||
QueryMessageRequest();
|
||||
~QueryMessageRequest();
|
||||
std::string getOffset() const;
|
||||
void setOffset(const std::string &offset);
|
||||
long getBeginTime() const;
|
||||
void setBeginTime(long beginTime);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getPartition() const;
|
||||
void setPartition(const std::string &partition);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getTopic() const;
|
||||
void setTopic(const std::string &topic);
|
||||
std::string getQueryType() const;
|
||||
void setQueryType(const std::string &queryType);
|
||||
|
||||
private:
|
||||
std::string offset_;
|
||||
long beginTime_;
|
||||
std::string instanceId_;
|
||||
std::string partition_;
|
||||
std::string regionId_;
|
||||
std::string topic_;
|
||||
std::string queryType_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alikafka
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_QUERYMESSAGEREQUEST_H_
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_QUERYMESSAGERESULT_H_
|
||||
#define ALIBABACLOUD_ALIKAFKA_MODEL_QUERYMESSAGERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alikafka/AlikafkaExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alikafka
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT QueryMessageResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct MessageVO
|
||||
{
|
||||
long partition;
|
||||
int truncatedValueSize;
|
||||
bool valueTruncated;
|
||||
long timestamp;
|
||||
long offset;
|
||||
int truncatedKeySize;
|
||||
long checksum;
|
||||
int serializedValueSize;
|
||||
std::string value;
|
||||
std::string timestampType;
|
||||
bool keyTruncated;
|
||||
std::string topic;
|
||||
std::string key;
|
||||
int serializedKeySize;
|
||||
};
|
||||
|
||||
|
||||
QueryMessageResult();
|
||||
explicit QueryMessageResult(const std::string &payload);
|
||||
~QueryMessageResult();
|
||||
std::string getMessage()const;
|
||||
int getCode()const;
|
||||
std::vector<MessageVO> getMessageList()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int code_;
|
||||
std::vector<MessageVO> messageList_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_QUERYMESSAGERESULT_H_
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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_ALIKAFKA_MODEL_REOPENINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIKAFKA_MODEL_REOPENINSTANCEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alikafka/AlikafkaExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alikafka {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT ReopenInstanceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ReopenInstanceRequest();
|
||||
~ReopenInstanceRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alikafka
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_REOPENINSTANCEREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_REOPENINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_ALIKAFKA_MODEL_REOPENINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alikafka/AlikafkaExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alikafka
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT ReopenInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ReopenInstanceResult();
|
||||
explicit ReopenInstanceResult(const std::string &payload);
|
||||
~ReopenInstanceResult();
|
||||
std::string getMessage()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_REOPENINSTANCERESULT_H_
|
||||
@@ -30,6 +30,8 @@ class ALIBABACLOUD_ALIKAFKA_EXPORT StartInstanceRequest : public RpcServiceReque
|
||||
public:
|
||||
StartInstanceRequest();
|
||||
~StartInstanceRequest();
|
||||
std::vector<std::string> getVSwitchIds() const;
|
||||
void setVSwitchIds(const std::vector<std::string> &vSwitchIds);
|
||||
std::string getSelectedZones() const;
|
||||
void setSelectedZones(const std::string &selectedZones);
|
||||
bool getIsEipInner() const;
|
||||
@@ -72,6 +74,7 @@ public:
|
||||
void setUsername(const std::string &username);
|
||||
|
||||
private:
|
||||
std::vector<std::string> vSwitchIds_;
|
||||
std::string selectedZones_;
|
||||
bool isEipInner_;
|
||||
std::string securityGroup_;
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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_ALIKAFKA_MODEL_STOPINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIKAFKA_MODEL_STOPINSTANCEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alikafka/AlikafkaExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alikafka {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT StopInstanceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
StopInstanceRequest();
|
||||
~StopInstanceRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alikafka
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_STOPINSTANCEREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIKAFKA_MODEL_STOPINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_ALIKAFKA_MODEL_STOPINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alikafka/AlikafkaExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alikafka
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT StopInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
StopInstanceResult();
|
||||
explicit StopInstanceResult(const std::string &payload);
|
||||
~StopInstanceResult();
|
||||
std::string getMessage()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_STOPINSTANCERESULT_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_ALIKAFKA_MODEL_UPDATETOPICCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIKAFKA_MODEL_UPDATETOPICCONFIGREQUEST_H_
|
||||
|
||||
#include <alibabacloud/alikafka/AlikafkaExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Alikafka {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT UpdateTopicConfigRequest : public RpcServiceRequest {
|
||||
public:
|
||||
UpdateTopicConfigRequest();
|
||||
~UpdateTopicConfigRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getTopic() const;
|
||||
void setTopic(const std::string &topic);
|
||||
std::string getConfig() const;
|
||||
void setConfig(const std::string &config);
|
||||
std::string getValue() const;
|
||||
void setValue(const std::string &value);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
std::string topic_;
|
||||
std::string config_;
|
||||
std::string value_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alikafka
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_UPDATETOPICCONFIGREQUEST_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_ALIKAFKA_MODEL_UPDATETOPICCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_ALIKAFKA_MODEL_UPDATETOPICCONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alikafka/AlikafkaExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alikafka
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT UpdateTopicConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateTopicConfigResult();
|
||||
explicit UpdateTopicConfigResult(const std::string &payload);
|
||||
~UpdateTopicConfigResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
long getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
long code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIKAFKA_MODEL_UPDATETOPICCONFIGRESULT_H_
|
||||
@@ -28,8 +28,14 @@ namespace Alikafka {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT UpgradePostPayOrderRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct ServerlessConfig {
|
||||
long reservedPublishCapacity;
|
||||
long reservedSubscribeCapacity;
|
||||
};
|
||||
UpgradePostPayOrderRequest();
|
||||
~UpgradePostPayOrderRequest();
|
||||
ServerlessConfig getServerlessConfig() const;
|
||||
void setServerlessConfig(const ServerlessConfig &serverlessConfig);
|
||||
int getDiskSize() const;
|
||||
void setDiskSize(int diskSize);
|
||||
int getIoMax() const;
|
||||
@@ -52,6 +58,7 @@ public:
|
||||
void setPartitionNum(int partitionNum);
|
||||
|
||||
private:
|
||||
ServerlessConfig serverlessConfig_;
|
||||
int diskSize_;
|
||||
int ioMax_;
|
||||
bool eipModel_;
|
||||
|
||||
@@ -28,40 +28,66 @@ namespace Alikafka {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ALIKAFKA_EXPORT UpgradePrePayOrderRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct ConfluentConfig {
|
||||
int ksqlStorage;
|
||||
int controlCenterStorage;
|
||||
int kafkaRestProxyReplica;
|
||||
int zooKeeperReplica;
|
||||
int connectCU;
|
||||
int kafkaReplica;
|
||||
int schemaRegistryReplica;
|
||||
int kafkaCU;
|
||||
int connectReplica;
|
||||
int controlCenterCU;
|
||||
int ksqlReplica;
|
||||
int controlCenterReplica;
|
||||
int kafkaStorage;
|
||||
int zooKeeperStorage;
|
||||
int ksqlCU;
|
||||
int schemaRegistryCU;
|
||||
int zooKeeperCU;
|
||||
int kafkaRestProxyCU;
|
||||
};
|
||||
UpgradePrePayOrderRequest();
|
||||
~UpgradePrePayOrderRequest();
|
||||
int getDiskSize() const;
|
||||
void setDiskSize(int diskSize);
|
||||
int getIoMax() const;
|
||||
void setIoMax(int ioMax);
|
||||
bool getEipModel() const;
|
||||
void setEipModel(bool eipModel);
|
||||
std::string getIoMaxSpec() const;
|
||||
void setIoMaxSpec(const std::string &ioMaxSpec);
|
||||
int getTopicQuota() const;
|
||||
void setTopicQuota(int topicQuota);
|
||||
int getEipMax() const;
|
||||
void setEipMax(int eipMax);
|
||||
std::string getSpecType() const;
|
||||
void setSpecType(const std::string &specType);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
ConfluentConfig getConfluentConfig() const;
|
||||
void setConfluentConfig(const ConfluentConfig &confluentConfig);
|
||||
int getPartitionNum() const;
|
||||
void setPartitionNum(int partitionNum);
|
||||
int getPaidType() const;
|
||||
void setPaidType(int paidType);
|
||||
int getDiskSize() const;
|
||||
void setDiskSize(int diskSize);
|
||||
std::string getIoMaxSpec() const;
|
||||
void setIoMaxSpec(const std::string &ioMaxSpec);
|
||||
int getTopicQuota() const;
|
||||
void setTopicQuota(int topicQuota);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
|
||||
private:
|
||||
int diskSize_;
|
||||
int ioMax_;
|
||||
bool eipModel_;
|
||||
std::string ioMaxSpec_;
|
||||
int topicQuota_;
|
||||
int eipMax_;
|
||||
std::string specType_;
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
ConfluentConfig confluentConfig_;
|
||||
int partitionNum_;
|
||||
int paidType_;
|
||||
int diskSize_;
|
||||
std::string ioMaxSpec_;
|
||||
int topicQuota_;
|
||||
std::string instanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Alikafka
|
||||
|
||||
@@ -31,21 +31,21 @@ AlikafkaClient::AlikafkaClient(const Credentials &credentials, const ClientConfi
|
||||
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, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alikafka");
|
||||
}
|
||||
|
||||
AlikafkaClient::AlikafkaClient(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, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alikafka");
|
||||
}
|
||||
|
||||
AlikafkaClient::AlikafkaClient(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, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alikafka");
|
||||
}
|
||||
|
||||
AlikafkaClient::~AlikafkaClient()
|
||||
@@ -591,6 +591,78 @@ AlikafkaClient::DescribeSaslUsersOutcomeCallable AlikafkaClient::describeSaslUse
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlikafkaClient::EnableAutoGroupCreationOutcome AlikafkaClient::enableAutoGroupCreation(const EnableAutoGroupCreationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableAutoGroupCreationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableAutoGroupCreationOutcome(EnableAutoGroupCreationResult(outcome.result()));
|
||||
else
|
||||
return EnableAutoGroupCreationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlikafkaClient::enableAutoGroupCreationAsync(const EnableAutoGroupCreationRequest& request, const EnableAutoGroupCreationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableAutoGroupCreation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlikafkaClient::EnableAutoGroupCreationOutcomeCallable AlikafkaClient::enableAutoGroupCreationCallable(const EnableAutoGroupCreationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableAutoGroupCreationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableAutoGroupCreation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlikafkaClient::EnableAutoTopicCreationOutcome AlikafkaClient::enableAutoTopicCreation(const EnableAutoTopicCreationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableAutoTopicCreationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableAutoTopicCreationOutcome(EnableAutoTopicCreationResult(outcome.result()));
|
||||
else
|
||||
return EnableAutoTopicCreationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlikafkaClient::enableAutoTopicCreationAsync(const EnableAutoTopicCreationRequest& request, const EnableAutoTopicCreationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableAutoTopicCreation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlikafkaClient::EnableAutoTopicCreationOutcomeCallable AlikafkaClient::enableAutoTopicCreationCallable(const EnableAutoTopicCreationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableAutoTopicCreationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableAutoTopicCreation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlikafkaClient::GetAllInstanceIdListOutcome AlikafkaClient::getAllInstanceIdList(const GetAllInstanceIdListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -879,6 +951,42 @@ AlikafkaClient::GetTopicStatusOutcomeCallable AlikafkaClient::getTopicStatusCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlikafkaClient::GetTopicSubscribeStatusOutcome AlikafkaClient::getTopicSubscribeStatus(const GetTopicSubscribeStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTopicSubscribeStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTopicSubscribeStatusOutcome(GetTopicSubscribeStatusResult(outcome.result()));
|
||||
else
|
||||
return GetTopicSubscribeStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlikafkaClient::getTopicSubscribeStatusAsync(const GetTopicSubscribeStatusRequest& request, const GetTopicSubscribeStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTopicSubscribeStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlikafkaClient::GetTopicSubscribeStatusOutcomeCallable AlikafkaClient::getTopicSubscribeStatusCallable(const GetTopicSubscribeStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTopicSubscribeStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTopicSubscribeStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlikafkaClient::ListTagResourcesOutcome AlikafkaClient::listTagResources(const ListTagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1023,6 +1131,42 @@ AlikafkaClient::ModifyTopicRemarkOutcomeCallable AlikafkaClient::modifyTopicRema
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlikafkaClient::QueryMessageOutcome AlikafkaClient::queryMessage(const QueryMessageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryMessageOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryMessageOutcome(QueryMessageResult(outcome.result()));
|
||||
else
|
||||
return QueryMessageOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlikafkaClient::queryMessageAsync(const QueryMessageRequest& request, const QueryMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryMessage(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlikafkaClient::QueryMessageOutcomeCallable AlikafkaClient::queryMessageCallable(const QueryMessageRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryMessageOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryMessage(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlikafkaClient::ReleaseInstanceOutcome AlikafkaClient::releaseInstance(const ReleaseInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,6 +1203,42 @@ AlikafkaClient::ReleaseInstanceOutcomeCallable AlikafkaClient::releaseInstanceCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlikafkaClient::ReopenInstanceOutcome AlikafkaClient::reopenInstance(const ReopenInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ReopenInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ReopenInstanceOutcome(ReopenInstanceResult(outcome.result()));
|
||||
else
|
||||
return ReopenInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlikafkaClient::reopenInstanceAsync(const ReopenInstanceRequest& request, const ReopenInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, reopenInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlikafkaClient::ReopenInstanceOutcomeCallable AlikafkaClient::reopenInstanceCallable(const ReopenInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ReopenInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->reopenInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlikafkaClient::StartInstanceOutcome AlikafkaClient::startInstance(const StartInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1095,6 +1275,42 @@ AlikafkaClient::StartInstanceOutcomeCallable AlikafkaClient::startInstanceCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlikafkaClient::StopInstanceOutcome AlikafkaClient::stopInstance(const StopInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopInstanceOutcome(StopInstanceResult(outcome.result()));
|
||||
else
|
||||
return StopInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlikafkaClient::stopInstanceAsync(const StopInstanceRequest& request, const StopInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlikafkaClient::StopInstanceOutcomeCallable AlikafkaClient::stopInstanceCallable(const StopInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlikafkaClient::TagResourcesOutcome AlikafkaClient::tagResources(const TagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1275,6 +1491,42 @@ AlikafkaClient::UpdateInstanceConfigOutcomeCallable AlikafkaClient::updateInstan
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlikafkaClient::UpdateTopicConfigOutcome AlikafkaClient::updateTopicConfig(const UpdateTopicConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateTopicConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateTopicConfigOutcome(UpdateTopicConfigResult(outcome.result()));
|
||||
else
|
||||
return UpdateTopicConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlikafkaClient::updateTopicConfigAsync(const UpdateTopicConfigRequest& request, const UpdateTopicConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateTopicConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlikafkaClient::UpdateTopicConfigOutcomeCallable AlikafkaClient::updateTopicConfigCallable(const UpdateTopicConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateTopicConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateTopicConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlikafkaClient::UpgradeInstanceVersionOutcome AlikafkaClient::upgradeInstanceVersion(const UpgradeInstanceVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -43,6 +43,15 @@ void CreateAclRequest::setAclResourceType(const std::string &aclResourceType) {
|
||||
setParameter(std::string("AclResourceType"), aclResourceType);
|
||||
}
|
||||
|
||||
std::string CreateAclRequest::getAclOperationTypes() const {
|
||||
return aclOperationTypes_;
|
||||
}
|
||||
|
||||
void CreateAclRequest::setAclOperationTypes(const std::string &aclOperationTypes) {
|
||||
aclOperationTypes_ = aclOperationTypes;
|
||||
setParameter(std::string("AclOperationTypes"), aclOperationTypes);
|
||||
}
|
||||
|
||||
std::string CreateAclRequest::getAclOperationType() const {
|
||||
return aclOperationType_;
|
||||
}
|
||||
@@ -79,6 +88,24 @@ void CreateAclRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateAclRequest::getHost() const {
|
||||
return host_;
|
||||
}
|
||||
|
||||
void CreateAclRequest::setHost(const std::string &host) {
|
||||
host_ = host;
|
||||
setParameter(std::string("Host"), host);
|
||||
}
|
||||
|
||||
std::string CreateAclRequest::getAclPermissionType() const {
|
||||
return aclPermissionType_;
|
||||
}
|
||||
|
||||
void CreateAclRequest::setAclPermissionType(const std::string &aclPermissionType) {
|
||||
aclPermissionType_ = aclPermissionType;
|
||||
setParameter(std::string("AclPermissionType"), aclPermissionType);
|
||||
}
|
||||
|
||||
std::string CreateAclRequest::getUsername() const {
|
||||
return username_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void CreatePrePayOrderRequest::setEipMax(int eipMax) {
|
||||
setParameter(std::string("EipMax"), std::to_string(eipMax));
|
||||
}
|
||||
|
||||
int CreatePrePayOrderRequest::getDuration() const {
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void CreatePrePayOrderRequest::setDuration(int duration) {
|
||||
duration_ = duration;
|
||||
setParameter(std::string("Duration"), std::to_string(duration));
|
||||
}
|
||||
|
||||
std::string CreatePrePayOrderRequest::getSpecType() const {
|
||||
return specType_;
|
||||
}
|
||||
@@ -70,6 +79,32 @@ void CreatePrePayOrderRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
CreatePrePayOrderRequest::ConfluentConfig CreatePrePayOrderRequest::getConfluentConfig() const {
|
||||
return confluentConfig_;
|
||||
}
|
||||
|
||||
void CreatePrePayOrderRequest::setConfluentConfig(const CreatePrePayOrderRequest::ConfluentConfig &confluentConfig) {
|
||||
confluentConfig_ = confluentConfig;
|
||||
setParameter(std::string("ConfluentConfig") + ".KsqlStorage", std::to_string(confluentConfig.ksqlStorage));
|
||||
setParameter(std::string("ConfluentConfig") + ".ControlCenterStorage", std::to_string(confluentConfig.controlCenterStorage));
|
||||
setParameter(std::string("ConfluentConfig") + ".KafkaRestProxyReplica", std::to_string(confluentConfig.kafkaRestProxyReplica));
|
||||
setParameter(std::string("ConfluentConfig") + ".ZooKeeperReplica", std::to_string(confluentConfig.zooKeeperReplica));
|
||||
setParameter(std::string("ConfluentConfig") + ".ConnectCU", std::to_string(confluentConfig.connectCU));
|
||||
setParameter(std::string("ConfluentConfig") + ".KafkaReplica", std::to_string(confluentConfig.kafkaReplica));
|
||||
setParameter(std::string("ConfluentConfig") + ".SchemaRegistryReplica", std::to_string(confluentConfig.schemaRegistryReplica));
|
||||
setParameter(std::string("ConfluentConfig") + ".KafkaCU", std::to_string(confluentConfig.kafkaCU));
|
||||
setParameter(std::string("ConfluentConfig") + ".ConnectReplica", std::to_string(confluentConfig.connectReplica));
|
||||
setParameter(std::string("ConfluentConfig") + ".ControlCenterCU", std::to_string(confluentConfig.controlCenterCU));
|
||||
setParameter(std::string("ConfluentConfig") + ".KsqlReplica", std::to_string(confluentConfig.ksqlReplica));
|
||||
setParameter(std::string("ConfluentConfig") + ".ControlCenterReplica", std::to_string(confluentConfig.controlCenterReplica));
|
||||
setParameter(std::string("ConfluentConfig") + ".KafkaStorage", std::to_string(confluentConfig.kafkaStorage));
|
||||
setParameter(std::string("ConfluentConfig") + ".ZooKeeperStorage", std::to_string(confluentConfig.zooKeeperStorage));
|
||||
setParameter(std::string("ConfluentConfig") + ".KsqlCU", std::to_string(confluentConfig.ksqlCU));
|
||||
setParameter(std::string("ConfluentConfig") + ".SchemaRegistryCU", std::to_string(confluentConfig.schemaRegistryCU));
|
||||
setParameter(std::string("ConfluentConfig") + ".ZooKeeperCU", std::to_string(confluentConfig.zooKeeperCU));
|
||||
setParameter(std::string("ConfluentConfig") + ".KafkaRestProxyCU", std::to_string(confluentConfig.kafkaRestProxyCU));
|
||||
}
|
||||
|
||||
std::vector<CreatePrePayOrderRequest::Tag> CreatePrePayOrderRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
@@ -93,6 +128,15 @@ void CreatePrePayOrderRequest::setPartitionNum(int partitionNum) {
|
||||
setParameter(std::string("PartitionNum"), std::to_string(partitionNum));
|
||||
}
|
||||
|
||||
int CreatePrePayOrderRequest::getPaidType() const {
|
||||
return paidType_;
|
||||
}
|
||||
|
||||
void CreatePrePayOrderRequest::setPaidType(int paidType) {
|
||||
paidType_ = paidType;
|
||||
setParameter(std::string("PaidType"), std::to_string(paidType));
|
||||
}
|
||||
|
||||
int CreatePrePayOrderRequest::getDiskSize() const {
|
||||
return diskSize_;
|
||||
}
|
||||
|
||||
@@ -61,6 +61,15 @@ void CreateSaslUserRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateSaslUserRequest::getMechanism() const {
|
||||
return mechanism_;
|
||||
}
|
||||
|
||||
void CreateSaslUserRequest::setMechanism(const std::string &mechanism) {
|
||||
mechanism_ = mechanism;
|
||||
setParameter(std::string("Mechanism"), mechanism);
|
||||
}
|
||||
|
||||
std::string CreateSaslUserRequest::getUsername() const {
|
||||
return username_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void DeleteAclRequest::setAclResourceType(const std::string &aclResourceType) {
|
||||
setParameter(std::string("AclResourceType"), aclResourceType);
|
||||
}
|
||||
|
||||
std::string DeleteAclRequest::getAclOperationTypes() const {
|
||||
return aclOperationTypes_;
|
||||
}
|
||||
|
||||
void DeleteAclRequest::setAclOperationTypes(const std::string &aclOperationTypes) {
|
||||
aclOperationTypes_ = aclOperationTypes;
|
||||
setParameter(std::string("AclOperationTypes"), aclOperationTypes);
|
||||
}
|
||||
|
||||
std::string DeleteAclRequest::getAclOperationType() const {
|
||||
return aclOperationType_;
|
||||
}
|
||||
@@ -79,6 +88,24 @@ void DeleteAclRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteAclRequest::getHost() const {
|
||||
return host_;
|
||||
}
|
||||
|
||||
void DeleteAclRequest::setHost(const std::string &host) {
|
||||
host_ = host;
|
||||
setParameter(std::string("Host"), host);
|
||||
}
|
||||
|
||||
std::string DeleteAclRequest::getAclPermissionType() const {
|
||||
return aclPermissionType_;
|
||||
}
|
||||
|
||||
void DeleteAclRequest::setAclPermissionType(const std::string &aclPermissionType) {
|
||||
aclPermissionType_ = aclPermissionType;
|
||||
setParameter(std::string("AclPermissionType"), aclPermissionType);
|
||||
}
|
||||
|
||||
std::string DeleteAclRequest::getUsername() const {
|
||||
return username_;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,15 @@ void DeleteSaslUserRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteSaslUserRequest::getMechanism() const {
|
||||
return mechanism_;
|
||||
}
|
||||
|
||||
void DeleteSaslUserRequest::setMechanism(const std::string &mechanism) {
|
||||
mechanism_ = mechanism;
|
||||
setParameter(std::string("Mechanism"), mechanism);
|
||||
}
|
||||
|
||||
std::string DeleteSaslUserRequest::getUsername() const {
|
||||
return username_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void DescribeAclsRequest::setAclResourceType(const std::string &aclResourceType)
|
||||
setParameter(std::string("AclResourceType"), aclResourceType);
|
||||
}
|
||||
|
||||
std::string DescribeAclsRequest::getAclOperationType() const {
|
||||
return aclOperationType_;
|
||||
}
|
||||
|
||||
void DescribeAclsRequest::setAclOperationType(const std::string &aclOperationType) {
|
||||
aclOperationType_ = aclOperationType;
|
||||
setParameter(std::string("AclOperationType"), aclOperationType);
|
||||
}
|
||||
|
||||
std::string DescribeAclsRequest::getAclResourceName() const {
|
||||
return aclResourceName_;
|
||||
}
|
||||
@@ -70,6 +79,24 @@ void DescribeAclsRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeAclsRequest::getHost() const {
|
||||
return host_;
|
||||
}
|
||||
|
||||
void DescribeAclsRequest::setHost(const std::string &host) {
|
||||
host_ = host;
|
||||
setParameter(std::string("Host"), host);
|
||||
}
|
||||
|
||||
std::string DescribeAclsRequest::getAclPermissionType() const {
|
||||
return aclPermissionType_;
|
||||
}
|
||||
|
||||
void DescribeAclsRequest::setAclPermissionType(const std::string &aclPermissionType) {
|
||||
aclPermissionType_ = aclPermissionType;
|
||||
setParameter(std::string("AclPermissionType"), aclPermissionType);
|
||||
}
|
||||
|
||||
std::string DescribeAclsRequest::getUsername() const {
|
||||
return username_;
|
||||
}
|
||||
|
||||
@@ -55,6 +55,8 @@ void DescribeAclsResult::parse(const std::string &payload)
|
||||
kafkaAclListObject.aclResourcePatternType = valueKafkaAclListKafkaAclVO["AclResourcePatternType"].asString();
|
||||
if(!valueKafkaAclListKafkaAclVO["Username"].isNull())
|
||||
kafkaAclListObject.username = valueKafkaAclListKafkaAclVO["Username"].asString();
|
||||
if(!valueKafkaAclListKafkaAclVO["AclPermissionType"].isNull())
|
||||
kafkaAclListObject.aclPermissionType = valueKafkaAclListKafkaAclVO["AclPermissionType"].asString();
|
||||
kafkaAclList_.push_back(kafkaAclListObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -49,6 +49,8 @@ void DescribeSaslUsersResult::parse(const std::string &payload)
|
||||
saslUserListObject.password = valueSaslUserListSaslUserVO["Password"].asString();
|
||||
if(!valueSaslUserListSaslUserVO["Username"].isNull())
|
||||
saslUserListObject.username = valueSaslUserListSaslUserVO["Username"].asString();
|
||||
if(!valueSaslUserListSaslUserVO["Mechanism"].isNull())
|
||||
saslUserListObject.mechanism = valueSaslUserListSaslUserVO["Mechanism"].asString();
|
||||
saslUserList_.push_back(saslUserListObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
54
alikafka/src/model/EnableAutoGroupCreationRequest.cc
Normal file
54
alikafka/src/model/EnableAutoGroupCreationRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alikafka/model/EnableAutoGroupCreationRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::EnableAutoGroupCreationRequest;
|
||||
|
||||
EnableAutoGroupCreationRequest::EnableAutoGroupCreationRequest()
|
||||
: RpcServiceRequest("alikafka", "2019-09-16", "EnableAutoGroupCreation") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableAutoGroupCreationRequest::~EnableAutoGroupCreationRequest() {}
|
||||
|
||||
std::string EnableAutoGroupCreationRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void EnableAutoGroupCreationRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string EnableAutoGroupCreationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void EnableAutoGroupCreationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
bool EnableAutoGroupCreationRequest::getEnable() const {
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void EnableAutoGroupCreationRequest::setEnable(bool enable) {
|
||||
enable_ = enable;
|
||||
setParameter(std::string("Enable"), enable ? "true" : "false");
|
||||
}
|
||||
|
||||
65
alikafka/src/model/EnableAutoGroupCreationResult.cc
Normal file
65
alikafka/src/model/EnableAutoGroupCreationResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alikafka/model/EnableAutoGroupCreationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
EnableAutoGroupCreationResult::EnableAutoGroupCreationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableAutoGroupCreationResult::EnableAutoGroupCreationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableAutoGroupCreationResult::~EnableAutoGroupCreationResult()
|
||||
{}
|
||||
|
||||
void EnableAutoGroupCreationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string EnableAutoGroupCreationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int EnableAutoGroupCreationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool EnableAutoGroupCreationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
alikafka/src/model/EnableAutoTopicCreationRequest.cc
Normal file
63
alikafka/src/model/EnableAutoTopicCreationRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alikafka/model/EnableAutoTopicCreationRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::EnableAutoTopicCreationRequest;
|
||||
|
||||
EnableAutoTopicCreationRequest::EnableAutoTopicCreationRequest()
|
||||
: RpcServiceRequest("alikafka", "2019-09-16", "EnableAutoTopicCreation") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableAutoTopicCreationRequest::~EnableAutoTopicCreationRequest() {}
|
||||
|
||||
std::string EnableAutoTopicCreationRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void EnableAutoTopicCreationRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string EnableAutoTopicCreationRequest::getOperate() const {
|
||||
return operate_;
|
||||
}
|
||||
|
||||
void EnableAutoTopicCreationRequest::setOperate(const std::string &operate) {
|
||||
operate_ = operate;
|
||||
setParameter(std::string("Operate"), operate);
|
||||
}
|
||||
|
||||
std::string EnableAutoTopicCreationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void EnableAutoTopicCreationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
long EnableAutoTopicCreationRequest::getPartitionNum() const {
|
||||
return partitionNum_;
|
||||
}
|
||||
|
||||
void EnableAutoTopicCreationRequest::setPartitionNum(long partitionNum) {
|
||||
partitionNum_ = partitionNum;
|
||||
setParameter(std::string("PartitionNum"), std::to_string(partitionNum));
|
||||
}
|
||||
|
||||
65
alikafka/src/model/EnableAutoTopicCreationResult.cc
Normal file
65
alikafka/src/model/EnableAutoTopicCreationResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alikafka/model/EnableAutoTopicCreationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
EnableAutoTopicCreationResult::EnableAutoTopicCreationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableAutoTopicCreationResult::EnableAutoTopicCreationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableAutoTopicCreationResult::~EnableAutoTopicCreationResult()
|
||||
{}
|
||||
|
||||
void EnableAutoTopicCreationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string EnableAutoTopicCreationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int EnableAutoTopicCreationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool EnableAutoTopicCreationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user