Compare commits
512 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b852794f3 | ||
|
|
16d6566bf7 | ||
|
|
2758ad51c0 | ||
|
|
51939b77c4 | ||
|
|
3f0e3c3e9a | ||
|
|
c13c576175 | ||
|
|
ef4cdc8756 | ||
|
|
61a4b220eb | ||
|
|
183190fd14 | ||
|
|
a7841818f4 | ||
|
|
9c795d127b | ||
|
|
52c309ecd7 | ||
|
|
d00f8d0fb2 | ||
|
|
4393e6e44f | ||
|
|
e676e2e38f | ||
|
|
429d57cff4 | ||
|
|
179314c9fe | ||
|
|
f0133be6a9 | ||
|
|
bb7cab374e | ||
|
|
66cb681daa | ||
|
|
e2d298dba8 | ||
|
|
ce74411ad3 | ||
|
|
bb1c3193e8 | ||
|
|
ed4f7ee25b | ||
|
|
351c9e254f | ||
|
|
cfd6b2d640 | ||
|
|
ba5ab1093f | ||
|
|
4b90751575 | ||
|
|
a6e6fc3981 | ||
|
|
ac4e846136 | ||
|
|
b88765a938 | ||
|
|
776d68f0aa | ||
|
|
1f76e81f67 | ||
|
|
1c261b822a | ||
|
|
23eaeedb69 | ||
|
|
87f3f72876 | ||
|
|
44c9ab5768 | ||
|
|
ff4508956b | ||
|
|
0329dcee47 | ||
|
|
8f4a119a7e | ||
|
|
63bf0ee442 | ||
|
|
47cb3f0fcb | ||
|
|
776a55cf64 | ||
|
|
5fcbeb4782 | ||
|
|
ea1c1ae17e | ||
|
|
b91b263fdd | ||
|
|
e532f5fe74 | ||
|
|
c1c37ba49a | ||
|
|
7d74c183f6 | ||
|
|
1b9c5d6a42 | ||
|
|
e762c1d057 | ||
|
|
16843433e4 | ||
|
|
f80621c4a4 | ||
|
|
4985a32853 | ||
|
|
7f6b7dbfba | ||
|
|
18b7bafcd0 | ||
|
|
4b9242545b | ||
|
|
b3758c1857 | ||
|
|
40e28f2005 | ||
|
|
2e0f1478c6 | ||
|
|
8c7efaba0f | ||
|
|
fd5e85ebf9 | ||
|
|
ef538b5d54 | ||
|
|
4e92d5b648 | ||
|
|
befcff9add | ||
|
|
78426b2c35 | ||
|
|
1c37d47f07 | ||
|
|
afc1ac57c3 | ||
|
|
7ad42a297f | ||
|
|
b2cade322d | ||
|
|
5d8d514785 | ||
|
|
d4d30d5bb7 | ||
|
|
8c606d0357 | ||
|
|
4a7816979a | ||
|
|
ca3378ac03 | ||
|
|
0859b911b2 | ||
|
|
29b4bc0ce3 | ||
|
|
d37523f568 | ||
|
|
928fc975b9 | ||
|
|
6365b9f02d | ||
|
|
fbc3817ea1 | ||
|
|
db6a17b08c | ||
|
|
d80ca0d7e2 | ||
|
|
83f9047345 | ||
|
|
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 | ||
|
|
79bd8c7bd3 | ||
|
|
82107640c0 | ||
|
|
a70be0a97a | ||
|
|
cfc2224de7 | ||
|
|
e25300b86c | ||
|
|
d839907367 | ||
|
|
1524e72744 | ||
|
|
c360e49648 | ||
|
|
1f76b3052a | ||
|
|
112575d30a | ||
|
|
3147a6c839 | ||
|
|
50bb4d85aa | ||
|
|
76afd2bcdc | ||
|
|
cd34c91d00 | ||
|
|
4fdd237980 | ||
|
|
d116ee704e | ||
|
|
dc51303f2d | ||
|
|
fbae89fed4 | ||
|
|
c994b2d439 | ||
|
|
4b160fe6b9 | ||
|
|
80ac7ed0e9 | ||
|
|
ebfee1c7e2 | ||
|
|
a174c41ddf | ||
|
|
a3f04022fb | ||
|
|
c5e8e9a8a8 | ||
|
|
12a2e32e06 | ||
|
|
2d217f2e0a | ||
|
|
f566854e2d | ||
|
|
7a7f0e03f4 | ||
|
|
f0a60662c9 | ||
|
|
bce94a0fa4 | ||
|
|
a09f60b542 | ||
|
|
ffcef0ce25 | ||
|
|
2e1100f951 | ||
|
|
eb44ad4062 | ||
|
|
66de4e8991 | ||
|
|
5d7ae98e8e | ||
|
|
f8eda875a8 | ||
|
|
e30bdd65ae | ||
|
|
e660f66f68 | ||
|
|
1dddf4ace0 | ||
|
|
66256a0ae2 | ||
|
|
627569cd6f | ||
|
|
0dc755cf75 | ||
|
|
4f190c1040 | ||
|
|
5ba3ade3e4 | ||
|
|
9c0b9836df | ||
|
|
b36d89300a | ||
|
|
7a982f08e6 | ||
|
|
08ad4ba807 | ||
|
|
38c284599d | ||
|
|
d54cb68653 | ||
|
|
00e697671e | ||
|
|
140a213eec | ||
|
|
8e6985b46b | ||
|
|
bfc89d1cc7 | ||
|
|
72203af302 | ||
|
|
34fb460e40 | ||
|
|
0efc4956ec | ||
|
|
ba9b236957 | ||
|
|
d17a79e8b6 | ||
|
|
450eed667b | ||
|
|
daf3dcd2b0 | ||
|
|
c8936fb4cf | ||
|
|
410b5a1a3e | ||
|
|
1754f90722 | ||
|
|
17088253be | ||
|
|
2dcd1b2f62 | ||
|
|
678893901f | ||
|
|
1bf5fe98af | ||
|
|
2173eb9110 | ||
|
|
045dcc9fa9 | ||
|
|
2fa7d5dc9f | ||
|
|
0a04d9d475 | ||
|
|
1193bcf394 | ||
|
|
c2ce4a0048 | ||
|
|
a63623d1a9 | ||
|
|
3edb319f4c | ||
|
|
61af8db794 | ||
|
|
1fda527d88 | ||
|
|
da6add49af | ||
|
|
9454f4754b | ||
|
|
861a684089 | ||
|
|
1ce36b8afa | ||
|
|
93808b764c | ||
|
|
22e4b5fbf4 | ||
|
|
90670a1866 | ||
|
|
cebe31f0f4 | ||
|
|
ebd79f50ff | ||
|
|
3495b8e165 | ||
|
|
5204a37d2a | ||
|
|
3efd03d181 | ||
|
|
86ad2c73a3 | ||
|
|
27c46edf5d | ||
|
|
67493d8653 | ||
|
|
52bbf53aed | ||
|
|
ba2b797842 | ||
|
|
1e276056a2 | ||
|
|
f699392896 | ||
|
|
f7db57cc1b | ||
|
|
79c435e079 | ||
|
|
733d355d78 | ||
|
|
5e93a9b21f | ||
|
|
79815391f7 | ||
|
|
ece2943ddb | ||
|
|
43d1c945b8 | ||
|
|
812992b8d2 | ||
|
|
b5aa2495c8 | ||
|
|
83e7ccef1a | ||
|
|
2c3af87947 | ||
|
|
44572042b1 | ||
|
|
4fd76a9156 | ||
|
|
74ea14dac4 | ||
|
|
9439fe21fc | ||
|
|
1950f0a785 | ||
|
|
70f1379a6b | ||
|
|
b6fdfa2e99 | ||
|
|
e7391bcf60 | ||
|
|
34607b9120 | ||
|
|
9f40d7b20e | ||
|
|
0ed45d0a71 | ||
|
|
4038c65c3d | ||
|
|
a6ee7a24dc | ||
|
|
33322a0330 | ||
|
|
c0b65c2479 | ||
|
|
3267f3d649 | ||
|
|
a79257acaa | ||
|
|
724ad3f5ef | ||
|
|
208ca6ba33 | ||
|
|
7f67c014d7 | ||
|
|
e5892aafb1 | ||
|
|
4553624eb3 | ||
|
|
ecee6ebdcf | ||
|
|
e38743541f | ||
|
|
62675547a0 | ||
|
|
0b83aafb63 | ||
|
|
2ce5479bb3 | ||
|
|
0e8bc4d53b | ||
|
|
1e896e337a | ||
|
|
51b2160a35 | ||
|
|
a2538884e5 | ||
|
|
38687878d7 | ||
|
|
50542d3a96 | ||
|
|
31d841f554 | ||
|
|
38f1feda73 | ||
|
|
5e1ff681ee | ||
|
|
5888c43598 | ||
|
|
197143a57e | ||
|
|
cd65c6d063 | ||
|
|
af64ff1838 | ||
|
|
e1213b9125 | ||
|
|
00eafdf174 | ||
|
|
ebee82abfa | ||
|
|
5d8069b2ae | ||
|
|
7a56454f4a | ||
|
|
0c97547a63 | ||
|
|
6161fb7cdf | ||
|
|
25cf7939ec | ||
|
|
a91b82458d | ||
|
|
031448bbad | ||
|
|
31092444cc | ||
|
|
8a89fa30ff | ||
|
|
705a4d512f | ||
|
|
4ec6eb47bf | ||
|
|
188d8467c7 | ||
|
|
1b1720464f | ||
|
|
76b653f2fe | ||
|
|
aab920ef80 | ||
|
|
3260faf247 | ||
|
|
1cef04d1ee | ||
|
|
18531457b1 | ||
|
|
a704f2315b | ||
|
|
f608c575ec | ||
|
|
12839600df | ||
|
|
580d4c3b54 | ||
|
|
3dad76444f | ||
|
|
9ad24b2908 | ||
|
|
043fd0fcb4 | ||
|
|
3ed26d9565 | ||
|
|
93f7addccc | ||
|
|
8bc204572b | ||
|
|
80d1d26c38 | ||
|
|
d5a028a4c5 | ||
|
|
fa17bc470e | ||
|
|
cf67836e22 | ||
|
|
4b1dc6a6c3 | ||
|
|
6e851fd163 | ||
|
|
e9912734b2 | ||
|
|
946b319c79 | ||
|
|
93a074e698 | ||
|
|
fd111fd0e2 | ||
|
|
e5c93bd03a | ||
|
|
9d1b5377f0 | ||
|
|
61d3b1e147 | ||
|
|
cc4191005a | ||
|
|
12ce668e31 | ||
|
|
5ca855fea0 | ||
|
|
8e896759ac | ||
|
|
a95ef9f1ce | ||
|
|
1600c745a1 | ||
|
|
297be84e79 | ||
|
|
ec08c61a17 | ||
|
|
2b7e50c691 | ||
|
|
3d20963438 | ||
|
|
8eda6c1cc6 | ||
|
|
8cfb9f0b4d | ||
|
|
ff586b38ea | ||
|
|
28e4f58d7c | ||
|
|
0137ae2b16 | ||
|
|
917b2cbb5c | ||
|
|
97f1441d6e | ||
|
|
f8a80b38cd | ||
|
|
a15c3f4c89 | ||
|
|
fba9a5d827 | ||
|
|
d4daecde16 | ||
|
|
593ca5f90e | ||
|
|
077d8093c7 | ||
|
|
bfe14f3d0f | ||
|
|
9bf268a2db | ||
|
|
08dd92a830 | ||
|
|
dbaa86de9e | ||
|
|
b42b84f531 | ||
|
|
030376a748 | ||
|
|
030365b477 | ||
|
|
389f829a6a | ||
|
|
ca9d05cc67 | ||
|
|
a22a0c32f6 | ||
|
|
7a240d684e | ||
|
|
45ae211126 |
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
|
||||
|
||||
102
accountlabel/CMakeLists.txt
Normal file
102
accountlabel/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(accountlabel_public_header
|
||||
include/alibabacloud/accountlabel/AccountLabelClient.h
|
||||
include/alibabacloud/accountlabel/AccountLabelExport.h )
|
||||
|
||||
set(accountlabel_public_header_model
|
||||
include/alibabacloud/accountlabel/model/AddCustomerLabelRequest.h
|
||||
include/alibabacloud/accountlabel/model/AddCustomerLabelResult.h
|
||||
include/alibabacloud/accountlabel/model/BatchFetchAccountLabelRequest.h
|
||||
include/alibabacloud/accountlabel/model/BatchFetchAccountLabelResult.h
|
||||
include/alibabacloud/accountlabel/model/DeleteCustomerLabelRequest.h
|
||||
include/alibabacloud/accountlabel/model/DeleteCustomerLabelResult.h
|
||||
include/alibabacloud/accountlabel/model/QueryCustomerLabelRequest.h
|
||||
include/alibabacloud/accountlabel/model/QueryCustomerLabelResult.h
|
||||
include/alibabacloud/accountlabel/model/QueryCustomerLabelByConfigGroupRequest.h
|
||||
include/alibabacloud/accountlabel/model/QueryCustomerLabelByConfigGroupResult.h )
|
||||
|
||||
set(accountlabel_src
|
||||
src/AccountLabelClient.cc
|
||||
src/model/AddCustomerLabelRequest.cc
|
||||
src/model/AddCustomerLabelResult.cc
|
||||
src/model/BatchFetchAccountLabelRequest.cc
|
||||
src/model/BatchFetchAccountLabelResult.cc
|
||||
src/model/DeleteCustomerLabelRequest.cc
|
||||
src/model/DeleteCustomerLabelResult.cc
|
||||
src/model/QueryCustomerLabelRequest.cc
|
||||
src/model/QueryCustomerLabelResult.cc
|
||||
src/model/QueryCustomerLabelByConfigGroupRequest.cc
|
||||
src/model/QueryCustomerLabelByConfigGroupResult.cc )
|
||||
|
||||
add_library(accountlabel ${LIB_TYPE}
|
||||
${accountlabel_public_header}
|
||||
${accountlabel_public_header_model}
|
||||
${accountlabel_src})
|
||||
|
||||
set_target_properties(accountlabel
|
||||
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}accountlabel
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(accountlabel
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ACCOUNTLABEL_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(accountlabel
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(accountlabel
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(accountlabel
|
||||
jsoncpp)
|
||||
target_include_directories(accountlabel
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(accountlabel
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(accountlabel
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(accountlabel
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(accountlabel
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${accountlabel_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/accountlabel)
|
||||
install(FILES ${accountlabel_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/accountlabel/model)
|
||||
install(TARGETS accountlabel
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
@@ -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_ACCOUNTLABEL_ACCOUNTLABELCLIENT_H_
|
||||
#define ALIBABACLOUD_ACCOUNTLABEL_ACCOUNTLABELCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "AccountLabelExport.h"
|
||||
#include "model/AddCustomerLabelRequest.h"
|
||||
#include "model/AddCustomerLabelResult.h"
|
||||
#include "model/BatchFetchAccountLabelRequest.h"
|
||||
#include "model/BatchFetchAccountLabelResult.h"
|
||||
#include "model/DeleteCustomerLabelRequest.h"
|
||||
#include "model/DeleteCustomerLabelResult.h"
|
||||
#include "model/QueryCustomerLabelRequest.h"
|
||||
#include "model/QueryCustomerLabelResult.h"
|
||||
#include "model/QueryCustomerLabelByConfigGroupRequest.h"
|
||||
#include "model/QueryCustomerLabelByConfigGroupResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AccountLabel
|
||||
{
|
||||
class ALIBABACLOUD_ACCOUNTLABEL_EXPORT AccountLabelClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AddCustomerLabelResult> AddCustomerLabelOutcome;
|
||||
typedef std::future<AddCustomerLabelOutcome> AddCustomerLabelOutcomeCallable;
|
||||
typedef std::function<void(const AccountLabelClient*, const Model::AddCustomerLabelRequest&, const AddCustomerLabelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddCustomerLabelAsyncHandler;
|
||||
typedef Outcome<Error, Model::BatchFetchAccountLabelResult> BatchFetchAccountLabelOutcome;
|
||||
typedef std::future<BatchFetchAccountLabelOutcome> BatchFetchAccountLabelOutcomeCallable;
|
||||
typedef std::function<void(const AccountLabelClient*, const Model::BatchFetchAccountLabelRequest&, const BatchFetchAccountLabelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchFetchAccountLabelAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteCustomerLabelResult> DeleteCustomerLabelOutcome;
|
||||
typedef std::future<DeleteCustomerLabelOutcome> DeleteCustomerLabelOutcomeCallable;
|
||||
typedef std::function<void(const AccountLabelClient*, const Model::DeleteCustomerLabelRequest&, const DeleteCustomerLabelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCustomerLabelAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryCustomerLabelResult> QueryCustomerLabelOutcome;
|
||||
typedef std::future<QueryCustomerLabelOutcome> QueryCustomerLabelOutcomeCallable;
|
||||
typedef std::function<void(const AccountLabelClient*, const Model::QueryCustomerLabelRequest&, const QueryCustomerLabelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCustomerLabelAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryCustomerLabelByConfigGroupResult> QueryCustomerLabelByConfigGroupOutcome;
|
||||
typedef std::future<QueryCustomerLabelByConfigGroupOutcome> QueryCustomerLabelByConfigGroupOutcomeCallable;
|
||||
typedef std::function<void(const AccountLabelClient*, const Model::QueryCustomerLabelByConfigGroupRequest&, const QueryCustomerLabelByConfigGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCustomerLabelByConfigGroupAsyncHandler;
|
||||
|
||||
AccountLabelClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
AccountLabelClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
AccountLabelClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~AccountLabelClient();
|
||||
AddCustomerLabelOutcome addCustomerLabel(const Model::AddCustomerLabelRequest &request)const;
|
||||
void addCustomerLabelAsync(const Model::AddCustomerLabelRequest& request, const AddCustomerLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddCustomerLabelOutcomeCallable addCustomerLabelCallable(const Model::AddCustomerLabelRequest& request) const;
|
||||
BatchFetchAccountLabelOutcome batchFetchAccountLabel(const Model::BatchFetchAccountLabelRequest &request)const;
|
||||
void batchFetchAccountLabelAsync(const Model::BatchFetchAccountLabelRequest& request, const BatchFetchAccountLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BatchFetchAccountLabelOutcomeCallable batchFetchAccountLabelCallable(const Model::BatchFetchAccountLabelRequest& request) const;
|
||||
DeleteCustomerLabelOutcome deleteCustomerLabel(const Model::DeleteCustomerLabelRequest &request)const;
|
||||
void deleteCustomerLabelAsync(const Model::DeleteCustomerLabelRequest& request, const DeleteCustomerLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteCustomerLabelOutcomeCallable deleteCustomerLabelCallable(const Model::DeleteCustomerLabelRequest& request) const;
|
||||
QueryCustomerLabelOutcome queryCustomerLabel(const Model::QueryCustomerLabelRequest &request)const;
|
||||
void queryCustomerLabelAsync(const Model::QueryCustomerLabelRequest& request, const QueryCustomerLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryCustomerLabelOutcomeCallable queryCustomerLabelCallable(const Model::QueryCustomerLabelRequest& request) const;
|
||||
QueryCustomerLabelByConfigGroupOutcome queryCustomerLabelByConfigGroup(const Model::QueryCustomerLabelByConfigGroupRequest &request)const;
|
||||
void queryCustomerLabelByConfigGroupAsync(const Model::QueryCustomerLabelByConfigGroupRequest& request, const QueryCustomerLabelByConfigGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryCustomerLabelByConfigGroupOutcomeCallable queryCustomerLabelByConfigGroupCallable(const Model::QueryCustomerLabelByConfigGroupRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ACCOUNTLABEL_ACCOUNTLABELCLIENT_H_
|
||||
@@ -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_ACCOUNTLABEL_ACCOUNTLABELEXPORT_H_
|
||||
#define ALIBABACLOUD_ACCOUNTLABEL_ACCOUNTLABELEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ACCOUNTLABEL_LIBRARY)
|
||||
# define ALIBABACLOUD_ACCOUNTLABEL_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ACCOUNTLABEL_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ACCOUNTLABEL_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ACCOUNTLABEL_ACCOUNTLABELEXPORT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACCOUNTLABEL_MODEL_ADDCUSTOMERLABELREQUEST_H_
|
||||
#define ALIBABACLOUD_ACCOUNTLABEL_MODEL_ADDCUSTOMERLABELREQUEST_H_
|
||||
|
||||
#include <alibabacloud/accountlabel/AccountLabelExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AccountLabel {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACCOUNTLABEL_EXPORT AddCustomerLabelRequest : public RpcServiceRequest {
|
||||
public:
|
||||
AddCustomerLabelRequest();
|
||||
~AddCustomerLabelRequest();
|
||||
std::string getLabelSeries() const;
|
||||
void setLabelSeries(const std::string &labelSeries);
|
||||
std::string getOrganization() const;
|
||||
void setOrganization(const std::string &organization);
|
||||
std::string getEndtime() const;
|
||||
void setEndtime(const std::string &endtime);
|
||||
long getPK() const;
|
||||
void setPK(long pK);
|
||||
std::string getStartTime() const;
|
||||
void setStartTime(const std::string &startTime);
|
||||
std::vector<std::string> getLabelTypes() const;
|
||||
void setLabelTypes(const std::vector<std::string> &labelTypes);
|
||||
std::string getUserName() const;
|
||||
void setUserName(const std::string &userName);
|
||||
std::string getToken() const;
|
||||
void setToken(const std::string &token);
|
||||
|
||||
private:
|
||||
std::string labelSeries_;
|
||||
std::string organization_;
|
||||
std::string endtime_;
|
||||
long pK_;
|
||||
std::string startTime_;
|
||||
std::vector<std::string> labelTypes_;
|
||||
std::string userName_;
|
||||
std::string token_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AccountLabel
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACCOUNTLABEL_MODEL_ADDCUSTOMERLABELREQUEST_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_ACCOUNTLABEL_MODEL_ADDCUSTOMERLABELRESULT_H_
|
||||
#define ALIBABACLOUD_ACCOUNTLABEL_MODEL_ADDCUSTOMERLABELRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/accountlabel/AccountLabelExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AccountLabel
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACCOUNTLABEL_EXPORT AddCustomerLabelResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddCustomerLabelResult();
|
||||
explicit AddCustomerLabelResult(const std::string &payload);
|
||||
~AddCustomerLabelResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACCOUNTLABEL_MODEL_ADDCUSTOMERLABELRESULT_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_ACCOUNTLABEL_MODEL_BATCHFETCHACCOUNTLABELREQUEST_H_
|
||||
#define ALIBABACLOUD_ACCOUNTLABEL_MODEL_BATCHFETCHACCOUNTLABELREQUEST_H_
|
||||
|
||||
#include <alibabacloud/accountlabel/AccountLabelExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AccountLabel {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACCOUNTLABEL_EXPORT BatchFetchAccountLabelRequest : public RpcServiceRequest {
|
||||
public:
|
||||
BatchFetchAccountLabelRequest();
|
||||
~BatchFetchAccountLabelRequest();
|
||||
std::string getOrganization() const;
|
||||
void setOrganization(const std::string &organization);
|
||||
long getPk() const;
|
||||
void setPk(long pk);
|
||||
std::string getUserName() const;
|
||||
void setUserName(const std::string &userName);
|
||||
bool getInstant() const;
|
||||
void setInstant(bool instant);
|
||||
std::string getToken() const;
|
||||
void setToken(const std::string &token);
|
||||
std::vector<std::string> getLabelSeriesList() const;
|
||||
void setLabelSeriesList(const std::vector<std::string> &labelSeriesList);
|
||||
|
||||
private:
|
||||
std::string organization_;
|
||||
long pk_;
|
||||
std::string userName_;
|
||||
bool instant_;
|
||||
std::string token_;
|
||||
std::vector<std::string> labelSeriesList_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AccountLabel
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACCOUNTLABEL_MODEL_BATCHFETCHACCOUNTLABELREQUEST_H_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACCOUNTLABEL_MODEL_BATCHFETCHACCOUNTLABELRESULT_H_
|
||||
#define ALIBABACLOUD_ACCOUNTLABEL_MODEL_BATCHFETCHACCOUNTLABELRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/accountlabel/AccountLabelExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AccountLabel
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACCOUNTLABEL_EXPORT BatchFetchAccountLabelResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AccountLabelInfoDto
|
||||
{
|
||||
std::string labelSeries;
|
||||
long endTime;
|
||||
long kp;
|
||||
long gmtModified;
|
||||
std::string label;
|
||||
long startTime;
|
||||
std::string creator;
|
||||
long gmtCreated;
|
||||
};
|
||||
|
||||
|
||||
BatchFetchAccountLabelResult();
|
||||
explicit BatchFetchAccountLabelResult(const std::string &payload);
|
||||
~BatchFetchAccountLabelResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<AccountLabelInfoDto> getData()const;
|
||||
long getCount()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<AccountLabelInfoDto> data_;
|
||||
long count_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACCOUNTLABEL_MODEL_BATCHFETCHACCOUNTLABELRESULT_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_ACCOUNTLABEL_MODEL_DELETECUSTOMERLABELREQUEST_H_
|
||||
#define ALIBABACLOUD_ACCOUNTLABEL_MODEL_DELETECUSTOMERLABELREQUEST_H_
|
||||
|
||||
#include <alibabacloud/accountlabel/AccountLabelExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AccountLabel {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACCOUNTLABEL_EXPORT DeleteCustomerLabelRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteCustomerLabelRequest();
|
||||
~DeleteCustomerLabelRequest();
|
||||
std::string getLabelSeries() const;
|
||||
void setLabelSeries(const std::string &labelSeries);
|
||||
std::string getOrganization() const;
|
||||
void setOrganization(const std::string &organization);
|
||||
long getPK() const;
|
||||
void setPK(long pK);
|
||||
std::vector<std::string> getLabelTypes() const;
|
||||
void setLabelTypes(const std::vector<std::string> &labelTypes);
|
||||
std::string getUserName() const;
|
||||
void setUserName(const std::string &userName);
|
||||
std::string getToken() const;
|
||||
void setToken(const std::string &token);
|
||||
|
||||
private:
|
||||
std::string labelSeries_;
|
||||
std::string organization_;
|
||||
long pK_;
|
||||
std::vector<std::string> labelTypes_;
|
||||
std::string userName_;
|
||||
std::string token_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AccountLabel
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACCOUNTLABEL_MODEL_DELETECUSTOMERLABELREQUEST_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_ACCOUNTLABEL_MODEL_DELETECUSTOMERLABELRESULT_H_
|
||||
#define ALIBABACLOUD_ACCOUNTLABEL_MODEL_DELETECUSTOMERLABELRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/accountlabel/AccountLabelExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AccountLabel
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACCOUNTLABEL_EXPORT DeleteCustomerLabelResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteCustomerLabelResult();
|
||||
explicit DeleteCustomerLabelResult(const std::string &payload);
|
||||
~DeleteCustomerLabelResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACCOUNTLABEL_MODEL_DELETECUSTOMERLABELRESULT_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_ACCOUNTLABEL_MODEL_QUERYCUSTOMERLABELBYCONFIGGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_ACCOUNTLABEL_MODEL_QUERYCUSTOMERLABELBYCONFIGGROUPREQUEST_H_
|
||||
|
||||
#include <alibabacloud/accountlabel/AccountLabelExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AccountLabel {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACCOUNTLABEL_EXPORT QueryCustomerLabelByConfigGroupRequest : public RpcServiceRequest {
|
||||
public:
|
||||
QueryCustomerLabelByConfigGroupRequest();
|
||||
~QueryCustomerLabelByConfigGroupRequest();
|
||||
std::string getGroupType() const;
|
||||
void setGroupType(const std::string &groupType);
|
||||
long getPK() const;
|
||||
void setPK(long pK);
|
||||
std::string getToken() const;
|
||||
void setToken(const std::string &token);
|
||||
|
||||
private:
|
||||
std::string groupType_;
|
||||
long pK_;
|
||||
std::string token_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AccountLabel
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACCOUNTLABEL_MODEL_QUERYCUSTOMERLABELBYCONFIGGROUPREQUEST_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_ACCOUNTLABEL_MODEL_QUERYCUSTOMERLABELBYCONFIGGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_ACCOUNTLABEL_MODEL_QUERYCUSTOMERLABELBYCONFIGGROUPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/accountlabel/AccountLabelExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AccountLabel
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACCOUNTLABEL_EXPORT QueryCustomerLabelByConfigGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct CustomerLabel
|
||||
{
|
||||
std::string labelSeries;
|
||||
std::string label;
|
||||
};
|
||||
|
||||
|
||||
QueryCustomerLabelByConfigGroupResult();
|
||||
explicit QueryCustomerLabelByConfigGroupResult(const std::string &payload);
|
||||
~QueryCustomerLabelByConfigGroupResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<CustomerLabel> getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<CustomerLabel> data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACCOUNTLABEL_MODEL_QUERYCUSTOMERLABELBYCONFIGGROUPRESULT_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_ACCOUNTLABEL_MODEL_QUERYCUSTOMERLABELREQUEST_H_
|
||||
#define ALIBABACLOUD_ACCOUNTLABEL_MODEL_QUERYCUSTOMERLABELREQUEST_H_
|
||||
|
||||
#include <alibabacloud/accountlabel/AccountLabelExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace AccountLabel {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ACCOUNTLABEL_EXPORT QueryCustomerLabelRequest : public RpcServiceRequest {
|
||||
public:
|
||||
QueryCustomerLabelRequest();
|
||||
~QueryCustomerLabelRequest();
|
||||
std::string getLabelSeries() const;
|
||||
void setLabelSeries(const std::string &labelSeries);
|
||||
long getPK() const;
|
||||
void setPK(long pK);
|
||||
std::string getToken() const;
|
||||
void setToken(const std::string &token);
|
||||
bool getInstant() const;
|
||||
void setInstant(bool instant);
|
||||
|
||||
private:
|
||||
std::string labelSeries_;
|
||||
long pK_;
|
||||
std::string token_;
|
||||
bool instant_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace AccountLabel
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ACCOUNTLABEL_MODEL_QUERYCUSTOMERLABELREQUEST_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_ACCOUNTLABEL_MODEL_QUERYCUSTOMERLABELRESULT_H_
|
||||
#define ALIBABACLOUD_ACCOUNTLABEL_MODEL_QUERYCUSTOMERLABELRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/accountlabel/AccountLabelExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace AccountLabel
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACCOUNTLABEL_EXPORT QueryCustomerLabelResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct CustomerLabel
|
||||
{
|
||||
std::string labelSeries;
|
||||
std::string label;
|
||||
};
|
||||
|
||||
|
||||
QueryCustomerLabelResult();
|
||||
explicit QueryCustomerLabelResult(const std::string &payload);
|
||||
~QueryCustomerLabelResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<CustomerLabel> getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<CustomerLabel> data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACCOUNTLABEL_MODEL_QUERYCUSTOMERLABELRESULT_H_
|
||||
233
accountlabel/src/AccountLabelClient.cc
Normal file
233
accountlabel/src/AccountLabelClient.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/accountlabel/AccountLabelClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::AccountLabel;
|
||||
using namespace AlibabaCloud::AccountLabel::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "AccountLabel";
|
||||
}
|
||||
|
||||
AccountLabelClient::AccountLabelClient(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, "");
|
||||
}
|
||||
|
||||
AccountLabelClient::AccountLabelClient(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, "");
|
||||
}
|
||||
|
||||
AccountLabelClient::AccountLabelClient(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, "");
|
||||
}
|
||||
|
||||
AccountLabelClient::~AccountLabelClient()
|
||||
{}
|
||||
|
||||
AccountLabelClient::AddCustomerLabelOutcome AccountLabelClient::addCustomerLabel(const AddCustomerLabelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddCustomerLabelOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddCustomerLabelOutcome(AddCustomerLabelResult(outcome.result()));
|
||||
else
|
||||
return AddCustomerLabelOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AccountLabelClient::addCustomerLabelAsync(const AddCustomerLabelRequest& request, const AddCustomerLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addCustomerLabel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AccountLabelClient::AddCustomerLabelOutcomeCallable AccountLabelClient::addCustomerLabelCallable(const AddCustomerLabelRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddCustomerLabelOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addCustomerLabel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AccountLabelClient::BatchFetchAccountLabelOutcome AccountLabelClient::batchFetchAccountLabel(const BatchFetchAccountLabelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BatchFetchAccountLabelOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BatchFetchAccountLabelOutcome(BatchFetchAccountLabelResult(outcome.result()));
|
||||
else
|
||||
return BatchFetchAccountLabelOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AccountLabelClient::batchFetchAccountLabelAsync(const BatchFetchAccountLabelRequest& request, const BatchFetchAccountLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, batchFetchAccountLabel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AccountLabelClient::BatchFetchAccountLabelOutcomeCallable AccountLabelClient::batchFetchAccountLabelCallable(const BatchFetchAccountLabelRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BatchFetchAccountLabelOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->batchFetchAccountLabel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AccountLabelClient::DeleteCustomerLabelOutcome AccountLabelClient::deleteCustomerLabel(const DeleteCustomerLabelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteCustomerLabelOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteCustomerLabelOutcome(DeleteCustomerLabelResult(outcome.result()));
|
||||
else
|
||||
return DeleteCustomerLabelOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AccountLabelClient::deleteCustomerLabelAsync(const DeleteCustomerLabelRequest& request, const DeleteCustomerLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteCustomerLabel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AccountLabelClient::DeleteCustomerLabelOutcomeCallable AccountLabelClient::deleteCustomerLabelCallable(const DeleteCustomerLabelRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteCustomerLabelOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteCustomerLabel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AccountLabelClient::QueryCustomerLabelOutcome AccountLabelClient::queryCustomerLabel(const QueryCustomerLabelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryCustomerLabelOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryCustomerLabelOutcome(QueryCustomerLabelResult(outcome.result()));
|
||||
else
|
||||
return QueryCustomerLabelOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AccountLabelClient::queryCustomerLabelAsync(const QueryCustomerLabelRequest& request, const QueryCustomerLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryCustomerLabel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AccountLabelClient::QueryCustomerLabelOutcomeCallable AccountLabelClient::queryCustomerLabelCallable(const QueryCustomerLabelRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryCustomerLabelOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryCustomerLabel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AccountLabelClient::QueryCustomerLabelByConfigGroupOutcome AccountLabelClient::queryCustomerLabelByConfigGroup(const QueryCustomerLabelByConfigGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryCustomerLabelByConfigGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryCustomerLabelByConfigGroupOutcome(QueryCustomerLabelByConfigGroupResult(outcome.result()));
|
||||
else
|
||||
return QueryCustomerLabelByConfigGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AccountLabelClient::queryCustomerLabelByConfigGroupAsync(const QueryCustomerLabelByConfigGroupRequest& request, const QueryCustomerLabelByConfigGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryCustomerLabelByConfigGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AccountLabelClient::QueryCustomerLabelByConfigGroupOutcomeCallable AccountLabelClient::queryCustomerLabelByConfigGroupCallable(const QueryCustomerLabelByConfigGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryCustomerLabelByConfigGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryCustomerLabelByConfigGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
98
accountlabel/src/model/AddCustomerLabelRequest.cc
Normal file
98
accountlabel/src/model/AddCustomerLabelRequest.cc
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/accountlabel/model/AddCustomerLabelRequest.h>
|
||||
|
||||
using AlibabaCloud::AccountLabel::Model::AddCustomerLabelRequest;
|
||||
|
||||
AddCustomerLabelRequest::AddCustomerLabelRequest()
|
||||
: RpcServiceRequest("accountlabel", "2020-03-15", "AddCustomerLabel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddCustomerLabelRequest::~AddCustomerLabelRequest() {}
|
||||
|
||||
std::string AddCustomerLabelRequest::getLabelSeries() const {
|
||||
return labelSeries_;
|
||||
}
|
||||
|
||||
void AddCustomerLabelRequest::setLabelSeries(const std::string &labelSeries) {
|
||||
labelSeries_ = labelSeries;
|
||||
setParameter(std::string("LabelSeries"), labelSeries);
|
||||
}
|
||||
|
||||
std::string AddCustomerLabelRequest::getOrganization() const {
|
||||
return organization_;
|
||||
}
|
||||
|
||||
void AddCustomerLabelRequest::setOrganization(const std::string &organization) {
|
||||
organization_ = organization;
|
||||
setParameter(std::string("Organization"), organization);
|
||||
}
|
||||
|
||||
std::string AddCustomerLabelRequest::getEndtime() const {
|
||||
return endtime_;
|
||||
}
|
||||
|
||||
void AddCustomerLabelRequest::setEndtime(const std::string &endtime) {
|
||||
endtime_ = endtime;
|
||||
setParameter(std::string("Endtime"), endtime);
|
||||
}
|
||||
|
||||
long AddCustomerLabelRequest::getPK() const {
|
||||
return pK_;
|
||||
}
|
||||
|
||||
void AddCustomerLabelRequest::setPK(long pK) {
|
||||
pK_ = pK;
|
||||
setParameter(std::string("PK"), std::to_string(pK));
|
||||
}
|
||||
|
||||
std::string AddCustomerLabelRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void AddCustomerLabelRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
std::vector<std::string> AddCustomerLabelRequest::getLabelTypes() const {
|
||||
return labelTypes_;
|
||||
}
|
||||
|
||||
void AddCustomerLabelRequest::setLabelTypes(const std::vector<std::string> &labelTypes) {
|
||||
labelTypes_ = labelTypes;
|
||||
}
|
||||
|
||||
std::string AddCustomerLabelRequest::getUserName() const {
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void AddCustomerLabelRequest::setUserName(const std::string &userName) {
|
||||
userName_ = userName;
|
||||
setParameter(std::string("UserName"), userName);
|
||||
}
|
||||
|
||||
std::string AddCustomerLabelRequest::getToken() const {
|
||||
return token_;
|
||||
}
|
||||
|
||||
void AddCustomerLabelRequest::setToken(const std::string &token) {
|
||||
token_ = token;
|
||||
setParameter(std::string("Token"), token);
|
||||
}
|
||||
|
||||
65
accountlabel/src/model/AddCustomerLabelResult.cc
Normal file
65
accountlabel/src/model/AddCustomerLabelResult.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/accountlabel/model/AddCustomerLabelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AccountLabel;
|
||||
using namespace AlibabaCloud::AccountLabel::Model;
|
||||
|
||||
AddCustomerLabelResult::AddCustomerLabelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddCustomerLabelResult::AddCustomerLabelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddCustomerLabelResult::~AddCustomerLabelResult()
|
||||
{}
|
||||
|
||||
void AddCustomerLabelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string AddCustomerLabelResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AddCustomerLabelResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddCustomerLabelResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
83
accountlabel/src/model/BatchFetchAccountLabelRequest.cc
Normal file
83
accountlabel/src/model/BatchFetchAccountLabelRequest.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/accountlabel/model/BatchFetchAccountLabelRequest.h>
|
||||
|
||||
using AlibabaCloud::AccountLabel::Model::BatchFetchAccountLabelRequest;
|
||||
|
||||
BatchFetchAccountLabelRequest::BatchFetchAccountLabelRequest()
|
||||
: RpcServiceRequest("accountlabel", "2020-03-15", "BatchFetchAccountLabel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchFetchAccountLabelRequest::~BatchFetchAccountLabelRequest() {}
|
||||
|
||||
std::string BatchFetchAccountLabelRequest::getOrganization() const {
|
||||
return organization_;
|
||||
}
|
||||
|
||||
void BatchFetchAccountLabelRequest::setOrganization(const std::string &organization) {
|
||||
organization_ = organization;
|
||||
setParameter(std::string("Organization"), organization);
|
||||
}
|
||||
|
||||
long BatchFetchAccountLabelRequest::getPk() const {
|
||||
return pk_;
|
||||
}
|
||||
|
||||
void BatchFetchAccountLabelRequest::setPk(long pk) {
|
||||
pk_ = pk;
|
||||
setParameter(std::string("Pk"), std::to_string(pk));
|
||||
}
|
||||
|
||||
std::string BatchFetchAccountLabelRequest::getUserName() const {
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void BatchFetchAccountLabelRequest::setUserName(const std::string &userName) {
|
||||
userName_ = userName;
|
||||
setParameter(std::string("UserName"), userName);
|
||||
}
|
||||
|
||||
bool BatchFetchAccountLabelRequest::getInstant() const {
|
||||
return instant_;
|
||||
}
|
||||
|
||||
void BatchFetchAccountLabelRequest::setInstant(bool instant) {
|
||||
instant_ = instant;
|
||||
setParameter(std::string("Instant"), instant ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string BatchFetchAccountLabelRequest::getToken() const {
|
||||
return token_;
|
||||
}
|
||||
|
||||
void BatchFetchAccountLabelRequest::setToken(const std::string &token) {
|
||||
token_ = token;
|
||||
setParameter(std::string("Token"), token);
|
||||
}
|
||||
|
||||
std::vector<BatchFetchAccountLabelRequest::std::string> BatchFetchAccountLabelRequest::getLabelSeriesList() const {
|
||||
return labelSeriesList_;
|
||||
}
|
||||
|
||||
void BatchFetchAccountLabelRequest::setLabelSeriesList(const std::vector<BatchFetchAccountLabelRequest::std::string> &labelSeriesList) {
|
||||
labelSeriesList_ = labelSeriesList;
|
||||
for(int dep1 = 0; dep1 != labelSeriesList.size(); dep1++) {
|
||||
setParameter(std::string("LabelSeriesList") + "." + std::to_string(dep1 + 1), labelSeriesList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
99
accountlabel/src/model/BatchFetchAccountLabelResult.cc
Normal file
99
accountlabel/src/model/BatchFetchAccountLabelResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/accountlabel/model/BatchFetchAccountLabelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AccountLabel;
|
||||
using namespace AlibabaCloud::AccountLabel::Model;
|
||||
|
||||
BatchFetchAccountLabelResult::BatchFetchAccountLabelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchFetchAccountLabelResult::BatchFetchAccountLabelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchFetchAccountLabelResult::~BatchFetchAccountLabelResult()
|
||||
{}
|
||||
|
||||
void BatchFetchAccountLabelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["AccountLabelInfoDto"];
|
||||
for (auto valueDataAccountLabelInfoDto : allDataNode)
|
||||
{
|
||||
AccountLabelInfoDto dataObject;
|
||||
if(!valueDataAccountLabelInfoDto["Creator"].isNull())
|
||||
dataObject.creator = valueDataAccountLabelInfoDto["Creator"].asString();
|
||||
if(!valueDataAccountLabelInfoDto["EndTime"].isNull())
|
||||
dataObject.endTime = std::stol(valueDataAccountLabelInfoDto["EndTime"].asString());
|
||||
if(!valueDataAccountLabelInfoDto["GmtCreated"].isNull())
|
||||
dataObject.gmtCreated = std::stol(valueDataAccountLabelInfoDto["GmtCreated"].asString());
|
||||
if(!valueDataAccountLabelInfoDto["GmtModified"].isNull())
|
||||
dataObject.gmtModified = std::stol(valueDataAccountLabelInfoDto["GmtModified"].asString());
|
||||
if(!valueDataAccountLabelInfoDto["Kp"].isNull())
|
||||
dataObject.kp = std::stol(valueDataAccountLabelInfoDto["Kp"].asString());
|
||||
if(!valueDataAccountLabelInfoDto["Label"].isNull())
|
||||
dataObject.label = valueDataAccountLabelInfoDto["Label"].asString();
|
||||
if(!valueDataAccountLabelInfoDto["LabelSeries"].isNull())
|
||||
dataObject.labelSeries = valueDataAccountLabelInfoDto["LabelSeries"].asString();
|
||||
if(!valueDataAccountLabelInfoDto["StartTime"].isNull())
|
||||
dataObject.startTime = std::stol(valueDataAccountLabelInfoDto["StartTime"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stol(value["Count"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string BatchFetchAccountLabelResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<BatchFetchAccountLabelResult::AccountLabelInfoDto> BatchFetchAccountLabelResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
long BatchFetchAccountLabelResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::string BatchFetchAccountLabelResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchFetchAccountLabelResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
80
accountlabel/src/model/DeleteCustomerLabelRequest.cc
Normal file
80
accountlabel/src/model/DeleteCustomerLabelRequest.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/accountlabel/model/DeleteCustomerLabelRequest.h>
|
||||
|
||||
using AlibabaCloud::AccountLabel::Model::DeleteCustomerLabelRequest;
|
||||
|
||||
DeleteCustomerLabelRequest::DeleteCustomerLabelRequest()
|
||||
: RpcServiceRequest("accountlabel", "2020-03-15", "DeleteCustomerLabel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteCustomerLabelRequest::~DeleteCustomerLabelRequest() {}
|
||||
|
||||
std::string DeleteCustomerLabelRequest::getLabelSeries() const {
|
||||
return labelSeries_;
|
||||
}
|
||||
|
||||
void DeleteCustomerLabelRequest::setLabelSeries(const std::string &labelSeries) {
|
||||
labelSeries_ = labelSeries;
|
||||
setParameter(std::string("LabelSeries"), labelSeries);
|
||||
}
|
||||
|
||||
std::string DeleteCustomerLabelRequest::getOrganization() const {
|
||||
return organization_;
|
||||
}
|
||||
|
||||
void DeleteCustomerLabelRequest::setOrganization(const std::string &organization) {
|
||||
organization_ = organization;
|
||||
setParameter(std::string("Organization"), organization);
|
||||
}
|
||||
|
||||
long DeleteCustomerLabelRequest::getPK() const {
|
||||
return pK_;
|
||||
}
|
||||
|
||||
void DeleteCustomerLabelRequest::setPK(long pK) {
|
||||
pK_ = pK;
|
||||
setParameter(std::string("PK"), std::to_string(pK));
|
||||
}
|
||||
|
||||
std::vector<std::string> DeleteCustomerLabelRequest::getLabelTypes() const {
|
||||
return labelTypes_;
|
||||
}
|
||||
|
||||
void DeleteCustomerLabelRequest::setLabelTypes(const std::vector<std::string> &labelTypes) {
|
||||
labelTypes_ = labelTypes;
|
||||
}
|
||||
|
||||
std::string DeleteCustomerLabelRequest::getUserName() const {
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void DeleteCustomerLabelRequest::setUserName(const std::string &userName) {
|
||||
userName_ = userName;
|
||||
setParameter(std::string("UserName"), userName);
|
||||
}
|
||||
|
||||
std::string DeleteCustomerLabelRequest::getToken() const {
|
||||
return token_;
|
||||
}
|
||||
|
||||
void DeleteCustomerLabelRequest::setToken(const std::string &token) {
|
||||
token_ = token;
|
||||
setParameter(std::string("Token"), token);
|
||||
}
|
||||
|
||||
65
accountlabel/src/model/DeleteCustomerLabelResult.cc
Normal file
65
accountlabel/src/model/DeleteCustomerLabelResult.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/accountlabel/model/DeleteCustomerLabelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AccountLabel;
|
||||
using namespace AlibabaCloud::AccountLabel::Model;
|
||||
|
||||
DeleteCustomerLabelResult::DeleteCustomerLabelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteCustomerLabelResult::DeleteCustomerLabelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteCustomerLabelResult::~DeleteCustomerLabelResult()
|
||||
{}
|
||||
|
||||
void DeleteCustomerLabelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteCustomerLabelResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteCustomerLabelResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteCustomerLabelResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -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/accountlabel/model/QueryCustomerLabelByConfigGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::AccountLabel::Model::QueryCustomerLabelByConfigGroupRequest;
|
||||
|
||||
QueryCustomerLabelByConfigGroupRequest::QueryCustomerLabelByConfigGroupRequest()
|
||||
: RpcServiceRequest("accountlabel", "2020-03-15", "QueryCustomerLabelByConfigGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryCustomerLabelByConfigGroupRequest::~QueryCustomerLabelByConfigGroupRequest() {}
|
||||
|
||||
std::string QueryCustomerLabelByConfigGroupRequest::getGroupType() const {
|
||||
return groupType_;
|
||||
}
|
||||
|
||||
void QueryCustomerLabelByConfigGroupRequest::setGroupType(const std::string &groupType) {
|
||||
groupType_ = groupType;
|
||||
setParameter(std::string("GroupType"), groupType);
|
||||
}
|
||||
|
||||
long QueryCustomerLabelByConfigGroupRequest::getPK() const {
|
||||
return pK_;
|
||||
}
|
||||
|
||||
void QueryCustomerLabelByConfigGroupRequest::setPK(long pK) {
|
||||
pK_ = pK;
|
||||
setParameter(std::string("PK"), std::to_string(pK));
|
||||
}
|
||||
|
||||
std::string QueryCustomerLabelByConfigGroupRequest::getToken() const {
|
||||
return token_;
|
||||
}
|
||||
|
||||
void QueryCustomerLabelByConfigGroupRequest::setToken(const std::string &token) {
|
||||
token_ = token;
|
||||
setParameter(std::string("Token"), token);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/accountlabel/model/QueryCustomerLabelByConfigGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AccountLabel;
|
||||
using namespace AlibabaCloud::AccountLabel::Model;
|
||||
|
||||
QueryCustomerLabelByConfigGroupResult::QueryCustomerLabelByConfigGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryCustomerLabelByConfigGroupResult::QueryCustomerLabelByConfigGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryCustomerLabelByConfigGroupResult::~QueryCustomerLabelByConfigGroupResult()
|
||||
{}
|
||||
|
||||
void QueryCustomerLabelByConfigGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["CustomerLabel"];
|
||||
for (auto valueDataCustomerLabel : allDataNode)
|
||||
{
|
||||
CustomerLabel dataObject;
|
||||
if(!valueDataCustomerLabel["Label"].isNull())
|
||||
dataObject.label = valueDataCustomerLabel["Label"].asString();
|
||||
if(!valueDataCustomerLabel["LabelSeries"].isNull())
|
||||
dataObject.labelSeries = valueDataCustomerLabel["LabelSeries"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string QueryCustomerLabelByConfigGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<QueryCustomerLabelByConfigGroupResult::CustomerLabel> QueryCustomerLabelByConfigGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryCustomerLabelByConfigGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryCustomerLabelByConfigGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
accountlabel/src/model/QueryCustomerLabelRequest.cc
Normal file
63
accountlabel/src/model/QueryCustomerLabelRequest.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/accountlabel/model/QueryCustomerLabelRequest.h>
|
||||
|
||||
using AlibabaCloud::AccountLabel::Model::QueryCustomerLabelRequest;
|
||||
|
||||
QueryCustomerLabelRequest::QueryCustomerLabelRequest()
|
||||
: RpcServiceRequest("accountlabel", "2020-03-15", "QueryCustomerLabel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryCustomerLabelRequest::~QueryCustomerLabelRequest() {}
|
||||
|
||||
std::string QueryCustomerLabelRequest::getLabelSeries() const {
|
||||
return labelSeries_;
|
||||
}
|
||||
|
||||
void QueryCustomerLabelRequest::setLabelSeries(const std::string &labelSeries) {
|
||||
labelSeries_ = labelSeries;
|
||||
setParameter(std::string("LabelSeries"), labelSeries);
|
||||
}
|
||||
|
||||
long QueryCustomerLabelRequest::getPK() const {
|
||||
return pK_;
|
||||
}
|
||||
|
||||
void QueryCustomerLabelRequest::setPK(long pK) {
|
||||
pK_ = pK;
|
||||
setParameter(std::string("PK"), std::to_string(pK));
|
||||
}
|
||||
|
||||
std::string QueryCustomerLabelRequest::getToken() const {
|
||||
return token_;
|
||||
}
|
||||
|
||||
void QueryCustomerLabelRequest::setToken(const std::string &token) {
|
||||
token_ = token;
|
||||
setParameter(std::string("Token"), token);
|
||||
}
|
||||
|
||||
bool QueryCustomerLabelRequest::getInstant() const {
|
||||
return instant_;
|
||||
}
|
||||
|
||||
void QueryCustomerLabelRequest::setInstant(bool instant) {
|
||||
instant_ = instant;
|
||||
setParameter(std::string("Instant"), instant ? "true" : "false");
|
||||
}
|
||||
|
||||
80
accountlabel/src/model/QueryCustomerLabelResult.cc
Normal file
80
accountlabel/src/model/QueryCustomerLabelResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/accountlabel/model/QueryCustomerLabelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::AccountLabel;
|
||||
using namespace AlibabaCloud::AccountLabel::Model;
|
||||
|
||||
QueryCustomerLabelResult::QueryCustomerLabelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryCustomerLabelResult::QueryCustomerLabelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryCustomerLabelResult::~QueryCustomerLabelResult()
|
||||
{}
|
||||
|
||||
void QueryCustomerLabelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["CustomerLabel"];
|
||||
for (auto valueDataCustomerLabel : allDataNode)
|
||||
{
|
||||
CustomerLabel dataObject;
|
||||
if(!valueDataCustomerLabel["Label"].isNull())
|
||||
dataObject.label = valueDataCustomerLabel["Label"].asString();
|
||||
if(!valueDataCustomerLabel["LabelSeries"].isNull())
|
||||
dataObject.labelSeries = valueDataCustomerLabel["LabelSeries"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string QueryCustomerLabelResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<QueryCustomerLabelResult::CustomerLabel> QueryCustomerLabelResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryCustomerLabelResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryCustomerLabelResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -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,6 +161,8 @@ 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
|
||||
@@ -177,6 +177,8 @@ set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/KillProcessResult.h
|
||||
include/alibabacloud/adb/model/ListTagResourcesRequest.h
|
||||
include/alibabacloud/adb/model/ListTagResourcesResult.h
|
||||
include/alibabacloud/adb/model/MigrateDBClusterRequest.h
|
||||
include/alibabacloud/adb/model/MigrateDBClusterResult.h
|
||||
include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h
|
||||
include/alibabacloud/adb/model/ModifyAccountDescriptionResult.h
|
||||
include/alibabacloud/adb/model/ModifyAuditLogConfigRequest.h
|
||||
@@ -340,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
|
||||
@@ -368,6 +368,8 @@ 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
|
||||
@@ -382,6 +384,8 @@ set(adb_src
|
||||
src/model/KillProcessResult.cc
|
||||
src/model/ListTagResourcesRequest.cc
|
||||
src/model/ListTagResourcesResult.cc
|
||||
src/model/MigrateDBClusterRequest.cc
|
||||
src/model/MigrateDBClusterResult.cc
|
||||
src/model/ModifyAccountDescriptionRequest.cc
|
||||
src/model/ModifyAccountDescriptionResult.cc
|
||||
src/model/ModifyAuditLogConfigRequest.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,6 +162,8 @@
|
||||
#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"
|
||||
@@ -178,6 +178,8 @@
|
||||
#include "model/KillProcessResult.h"
|
||||
#include "model/ListTagResourcesRequest.h"
|
||||
#include "model/ListTagResourcesResult.h"
|
||||
#include "model/MigrateDBClusterRequest.h"
|
||||
#include "model/MigrateDBClusterResult.h"
|
||||
#include "model/ModifyAccountDescriptionRequest.h"
|
||||
#include "model/ModifyAccountDescriptionResult.h"
|
||||
#include "model/ModifyAuditLogConfigRequest.h"
|
||||
@@ -404,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;
|
||||
@@ -446,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;
|
||||
@@ -467,6 +469,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
|
||||
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::MigrateDBClusterResult> MigrateDBClusterOutcome;
|
||||
typedef std::future<MigrateDBClusterOutcome> MigrateDBClusterOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::MigrateDBClusterRequest&, const MigrateDBClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MigrateDBClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyAccountDescriptionResult> ModifyAccountDescriptionOutcome;
|
||||
typedef std::future<ModifyAccountDescriptionOutcome> ModifyAccountDescriptionOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyAccountDescriptionRequest&, const ModifyAccountDescriptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAccountDescriptionAsyncHandler;
|
||||
@@ -712,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;
|
||||
@@ -754,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;
|
||||
@@ -775,6 +780,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
MigrateDBClusterOutcome migrateDBCluster(const Model::MigrateDBClusterRequest &request)const;
|
||||
void migrateDBClusterAsync(const Model::MigrateDBClusterRequest& request, const MigrateDBClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MigrateDBClusterOutcomeCallable migrateDBClusterCallable(const Model::MigrateDBClusterRequest& request) const;
|
||||
ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const;
|
||||
void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyAccountDescriptionOutcomeCallable modifyAccountDescriptionCallable(const Model::ModifyAccountDescriptionRequest& request) const;
|
||||
|
||||
@@ -28,6 +28,10 @@ namespace Adb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADB_EXPORT CreateDBClusterRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Tag {
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
CreateDBClusterRequest();
|
||||
~CreateDBClusterRequest();
|
||||
long getResourceOwnerId() const;
|
||||
@@ -40,6 +44,8 @@ public:
|
||||
void setMode(const std::string &mode);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::vector<Tag> getTag() const;
|
||||
void setTag(const std::vector<Tag> &tag);
|
||||
std::string getPeriod() const;
|
||||
void setPeriod(const std::string &period);
|
||||
std::string getBackupSetID() const;
|
||||
@@ -99,6 +105,7 @@ private:
|
||||
std::string storageType_;
|
||||
std::string mode_;
|
||||
std::string resourceGroupId_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string period_;
|
||||
std::string backupSetID_;
|
||||
long ownerId_;
|
||||
|
||||
@@ -38,6 +38,8 @@ public:
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getDBClusterId() const;
|
||||
void setDBClusterId(const std::string &dBClusterId);
|
||||
std::string getOwnerAccount() const;
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
std::string getDBClusterVersion() const;
|
||||
@@ -46,16 +48,20 @@ public:
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getZoneId() const;
|
||||
void setZoneId(const std::string &zoneId);
|
||||
bool getMigrate() const;
|
||||
void setMigrate(bool migrate);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
std::string dBClusterVersion_;
|
||||
long ownerId_;
|
||||
std::string zoneId_;
|
||||
bool migrate_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adb
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
@@ -56,6 +58,7 @@ public:
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
|
||||
@@ -40,6 +40,8 @@ public:
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getState() const;
|
||||
@@ -65,6 +67,7 @@ private:
|
||||
std::string startTime_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::string state_;
|
||||
std::string order_;
|
||||
|
||||
@@ -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_
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getSchemaName() const;
|
||||
void setSchemaName(const std::string &schemaName);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
@@ -48,6 +50,7 @@ public:
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string schemaName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getTaskId() const;
|
||||
void setTaskId(int taskId);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
@@ -48,6 +50,7 @@ public:
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
int taskId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
|
||||
@@ -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_
|
||||
57
adb/include/alibabacloud/adb/model/MigrateDBClusterRequest.h
Normal file
57
adb/include/alibabacloud/adb/model/MigrateDBClusterRequest.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_MIGRATEDBCLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_MIGRATEDBCLUSTERREQUEST_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 MigrateDBClusterRequest : public RpcServiceRequest {
|
||||
public:
|
||||
MigrateDBClusterRequest();
|
||||
~MigrateDBClusterRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getDBClusterId() const;
|
||||
void setDBClusterId(const std::string &dBClusterId);
|
||||
std::string getOwnerAccount() const;
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_MIGRATEDBCLUSTERREQUEST_H_
|
||||
49
adb/include/alibabacloud/adb/model/MigrateDBClusterResult.h
Normal file
49
adb/include/alibabacloud/adb/model/MigrateDBClusterResult.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_MIGRATEDBCLUSTERRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_MIGRATEDBCLUSTERRESULT_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 MigrateDBClusterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
MigrateDBClusterResult();
|
||||
explicit MigrateDBClusterResult(const std::string &payload);
|
||||
~MigrateDBClusterResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_MIGRATEDBCLUSTERRESULT_H_
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getEnableBackupLog() const;
|
||||
void setEnableBackupLog(const std::string &enableBackupLog);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
@@ -50,6 +52,7 @@ public:
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string enableBackupLog_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getSwitchTime() const;
|
||||
@@ -50,6 +52,7 @@ public:
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
std::string switchTime_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -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();
|
||||
@@ -2859,6 +2859,42 @@ AdbClient::ListTagResourcesOutcomeCallable AdbClient::listTagResourcesCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::MigrateDBClusterOutcome AdbClient::migrateDBCluster(const MigrateDBClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MigrateDBClusterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MigrateDBClusterOutcome(MigrateDBClusterResult(outcome.result()));
|
||||
else
|
||||
return MigrateDBClusterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::migrateDBClusterAsync(const MigrateDBClusterRequest& request, const MigrateDBClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, migrateDBCluster(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::MigrateDBClusterOutcomeCallable AdbClient::migrateDBClusterCallable(const MigrateDBClusterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MigrateDBClusterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->migrateDBCluster(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::ModifyAccountDescriptionOutcome AdbClient::modifyAccountDescription(const ModifyAccountDescriptionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -70,6 +70,20 @@ void CreateDBClusterRequest::setResourceGroupId(const std::string &resourceGroup
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::vector<CreateDBClusterRequest::Tag> CreateDBClusterRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setTag(const std::vector<CreateDBClusterRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
@@ -61,6 +61,15 @@ void DescribeComputeResourceRequest::setResourceOwnerAccount(const std::string &
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeComputeResourceRequest::getDBClusterId() const {
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeComputeResourceRequest::setDBClusterId(const std::string &dBClusterId) {
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter(std::string("DBClusterId"), dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeComputeResourceRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
@@ -97,3 +106,12 @@ void DescribeComputeResourceRequest::setZoneId(const std::string &zoneId) {
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
bool DescribeComputeResourceRequest::getMigrate() const {
|
||||
return migrate_;
|
||||
}
|
||||
|
||||
void DescribeComputeResourceRequest::setMigrate(bool migrate) {
|
||||
migrate_ = migrate;
|
||||
setParameter(std::string("Migrate"), migrate ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -43,6 +43,15 @@ void DescribeEIURangeRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeEIURangeRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeEIURangeRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeEIURangeRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -70,6 +70,15 @@ void DescribeLoadTasksRecordsRequest::setAccessKeyId(const std::string &accessKe
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeLoadTasksRecordsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeLoadTasksRecordsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeLoadTasksRecordsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void DescribeTablesRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeTablesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeTablesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeTablesRequest::getSchemaName() const {
|
||||
return schemaName_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void DescribeTaskInfoRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeTaskInfoRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeTaskInfoRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int DescribeTaskInfoRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
81
adb/src/model/MigrateDBClusterRequest.cc
Normal file
81
adb/src/model/MigrateDBClusterRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/MigrateDBClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::MigrateDBClusterRequest;
|
||||
|
||||
MigrateDBClusterRequest::MigrateDBClusterRequest()
|
||||
: RpcServiceRequest("adb", "2019-03-15", "MigrateDBCluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
MigrateDBClusterRequest::~MigrateDBClusterRequest() {}
|
||||
|
||||
long MigrateDBClusterRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void MigrateDBClusterRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string MigrateDBClusterRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void MigrateDBClusterRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string MigrateDBClusterRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void MigrateDBClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string MigrateDBClusterRequest::getDBClusterId() const {
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void MigrateDBClusterRequest::setDBClusterId(const std::string &dBClusterId) {
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter(std::string("DBClusterId"), dBClusterId);
|
||||
}
|
||||
|
||||
std::string MigrateDBClusterRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void MigrateDBClusterRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long MigrateDBClusterRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void MigrateDBClusterRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
adb/src/model/MigrateDBClusterResult.cc
Normal file
44
adb/src/model/MigrateDBClusterResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/MigrateDBClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
MigrateDBClusterResult::MigrateDBClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
MigrateDBClusterResult::MigrateDBClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
MigrateDBClusterResult::~MigrateDBClusterResult()
|
||||
{}
|
||||
|
||||
void MigrateDBClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void ModifyLogBackupPolicyRequest::setAccessKeyId(const std::string &accessKeyId
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyLogBackupPolicyRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void ModifyLogBackupPolicyRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string ModifyLogBackupPolicyRequest::getEnableBackupLog() const {
|
||||
return enableBackupLog_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void ModifyMaintenanceActionRequest::setAccessKeyId(const std::string &accessKey
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyMaintenanceActionRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void ModifyMaintenanceActionRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string ModifyMaintenanceActionRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
174
adcp/CMakeLists.txt
Normal file
174
adcp/CMakeLists.txt
Normal file
@@ -0,0 +1,174 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT 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(adcp_public_header
|
||||
include/alibabacloud/adcp/AdcpClient.h
|
||||
include/alibabacloud/adcp/AdcpExport.h )
|
||||
|
||||
set(adcp_public_header_model
|
||||
include/alibabacloud/adcp/model/AttachClusterToHubRequest.h
|
||||
include/alibabacloud/adcp/model/AttachClusterToHubResult.h
|
||||
include/alibabacloud/adcp/model/CreateHubClusterRequest.h
|
||||
include/alibabacloud/adcp/model/CreateHubClusterResult.h
|
||||
include/alibabacloud/adcp/model/DeleteHubClusterRequest.h
|
||||
include/alibabacloud/adcp/model/DeleteHubClusterResult.h
|
||||
include/alibabacloud/adcp/model/DeletePolicyInstanceRequest.h
|
||||
include/alibabacloud/adcp/model/DeletePolicyInstanceResult.h
|
||||
include/alibabacloud/adcp/model/DeleteUserPermissionRequest.h
|
||||
include/alibabacloud/adcp/model/DeleteUserPermissionResult.h
|
||||
include/alibabacloud/adcp/model/DeployPolicyInstanceRequest.h
|
||||
include/alibabacloud/adcp/model/DeployPolicyInstanceResult.h
|
||||
include/alibabacloud/adcp/model/DescribeHubClusterDetailsRequest.h
|
||||
include/alibabacloud/adcp/model/DescribeHubClusterDetailsResult.h
|
||||
include/alibabacloud/adcp/model/DescribeHubClusterKubeconfigRequest.h
|
||||
include/alibabacloud/adcp/model/DescribeHubClusterKubeconfigResult.h
|
||||
include/alibabacloud/adcp/model/DescribeHubClusterLogsRequest.h
|
||||
include/alibabacloud/adcp/model/DescribeHubClusterLogsResult.h
|
||||
include/alibabacloud/adcp/model/DescribeHubClustersRequest.h
|
||||
include/alibabacloud/adcp/model/DescribeHubClustersResult.h
|
||||
include/alibabacloud/adcp/model/DescribeManagedClustersRequest.h
|
||||
include/alibabacloud/adcp/model/DescribeManagedClustersResult.h
|
||||
include/alibabacloud/adcp/model/DescribePoliciesRequest.h
|
||||
include/alibabacloud/adcp/model/DescribePoliciesResult.h
|
||||
include/alibabacloud/adcp/model/DescribePolicyDetailsRequest.h
|
||||
include/alibabacloud/adcp/model/DescribePolicyDetailsResult.h
|
||||
include/alibabacloud/adcp/model/DescribePolicyGovernanceInClusterRequest.h
|
||||
include/alibabacloud/adcp/model/DescribePolicyGovernanceInClusterResult.h
|
||||
include/alibabacloud/adcp/model/DescribePolicyInstancesRequest.h
|
||||
include/alibabacloud/adcp/model/DescribePolicyInstancesResult.h
|
||||
include/alibabacloud/adcp/model/DescribePolicyInstancesStatusRequest.h
|
||||
include/alibabacloud/adcp/model/DescribePolicyInstancesStatusResult.h
|
||||
include/alibabacloud/adcp/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/adcp/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/adcp/model/DescribeUserPermissionsRequest.h
|
||||
include/alibabacloud/adcp/model/DescribeUserPermissionsResult.h
|
||||
include/alibabacloud/adcp/model/DetachClusterFromHubRequest.h
|
||||
include/alibabacloud/adcp/model/DetachClusterFromHubResult.h
|
||||
include/alibabacloud/adcp/model/GrantUserPermissionRequest.h
|
||||
include/alibabacloud/adcp/model/GrantUserPermissionResult.h
|
||||
include/alibabacloud/adcp/model/GrantUserPermissionsRequest.h
|
||||
include/alibabacloud/adcp/model/GrantUserPermissionsResult.h
|
||||
include/alibabacloud/adcp/model/UpdateHubClusterFeatureRequest.h
|
||||
include/alibabacloud/adcp/model/UpdateHubClusterFeatureResult.h
|
||||
include/alibabacloud/adcp/model/UpdateUserPermissionRequest.h
|
||||
include/alibabacloud/adcp/model/UpdateUserPermissionResult.h )
|
||||
|
||||
set(adcp_src
|
||||
src/AdcpClient.cc
|
||||
src/model/AttachClusterToHubRequest.cc
|
||||
src/model/AttachClusterToHubResult.cc
|
||||
src/model/CreateHubClusterRequest.cc
|
||||
src/model/CreateHubClusterResult.cc
|
||||
src/model/DeleteHubClusterRequest.cc
|
||||
src/model/DeleteHubClusterResult.cc
|
||||
src/model/DeletePolicyInstanceRequest.cc
|
||||
src/model/DeletePolicyInstanceResult.cc
|
||||
src/model/DeleteUserPermissionRequest.cc
|
||||
src/model/DeleteUserPermissionResult.cc
|
||||
src/model/DeployPolicyInstanceRequest.cc
|
||||
src/model/DeployPolicyInstanceResult.cc
|
||||
src/model/DescribeHubClusterDetailsRequest.cc
|
||||
src/model/DescribeHubClusterDetailsResult.cc
|
||||
src/model/DescribeHubClusterKubeconfigRequest.cc
|
||||
src/model/DescribeHubClusterKubeconfigResult.cc
|
||||
src/model/DescribeHubClusterLogsRequest.cc
|
||||
src/model/DescribeHubClusterLogsResult.cc
|
||||
src/model/DescribeHubClustersRequest.cc
|
||||
src/model/DescribeHubClustersResult.cc
|
||||
src/model/DescribeManagedClustersRequest.cc
|
||||
src/model/DescribeManagedClustersResult.cc
|
||||
src/model/DescribePoliciesRequest.cc
|
||||
src/model/DescribePoliciesResult.cc
|
||||
src/model/DescribePolicyDetailsRequest.cc
|
||||
src/model/DescribePolicyDetailsResult.cc
|
||||
src/model/DescribePolicyGovernanceInClusterRequest.cc
|
||||
src/model/DescribePolicyGovernanceInClusterResult.cc
|
||||
src/model/DescribePolicyInstancesRequest.cc
|
||||
src/model/DescribePolicyInstancesResult.cc
|
||||
src/model/DescribePolicyInstancesStatusRequest.cc
|
||||
src/model/DescribePolicyInstancesStatusResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DescribeUserPermissionsRequest.cc
|
||||
src/model/DescribeUserPermissionsResult.cc
|
||||
src/model/DetachClusterFromHubRequest.cc
|
||||
src/model/DetachClusterFromHubResult.cc
|
||||
src/model/GrantUserPermissionRequest.cc
|
||||
src/model/GrantUserPermissionResult.cc
|
||||
src/model/GrantUserPermissionsRequest.cc
|
||||
src/model/GrantUserPermissionsResult.cc
|
||||
src/model/UpdateHubClusterFeatureRequest.cc
|
||||
src/model/UpdateHubClusterFeatureResult.cc
|
||||
src/model/UpdateUserPermissionRequest.cc
|
||||
src/model/UpdateUserPermissionResult.cc )
|
||||
|
||||
add_library(adcp ${LIB_TYPE}
|
||||
${adcp_public_header}
|
||||
${adcp_public_header_model}
|
||||
${adcp_src})
|
||||
|
||||
set_target_properties(adcp
|
||||
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}adcp
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(adcp
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ADCP_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(adcp
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(adcp
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(adcp
|
||||
jsoncpp)
|
||||
target_include_directories(adcp
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(adcp
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(adcp
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(adcp
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(adcp
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${adcp_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/adcp)
|
||||
install(FILES ${adcp_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/adcp/model)
|
||||
install(TARGETS adcp
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
230
adcp/include/alibabacloud/adcp/AdcpClient.h
Normal file
230
adcp/include/alibabacloud/adcp/AdcpClient.h
Normal file
@@ -0,0 +1,230 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ADCP_ADCPCLIENT_H_
|
||||
#define ALIBABACLOUD_ADCP_ADCPCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "AdcpExport.h"
|
||||
#include "model/AttachClusterToHubRequest.h"
|
||||
#include "model/AttachClusterToHubResult.h"
|
||||
#include "model/CreateHubClusterRequest.h"
|
||||
#include "model/CreateHubClusterResult.h"
|
||||
#include "model/DeleteHubClusterRequest.h"
|
||||
#include "model/DeleteHubClusterResult.h"
|
||||
#include "model/DeletePolicyInstanceRequest.h"
|
||||
#include "model/DeletePolicyInstanceResult.h"
|
||||
#include "model/DeleteUserPermissionRequest.h"
|
||||
#include "model/DeleteUserPermissionResult.h"
|
||||
#include "model/DeployPolicyInstanceRequest.h"
|
||||
#include "model/DeployPolicyInstanceResult.h"
|
||||
#include "model/DescribeHubClusterDetailsRequest.h"
|
||||
#include "model/DescribeHubClusterDetailsResult.h"
|
||||
#include "model/DescribeHubClusterKubeconfigRequest.h"
|
||||
#include "model/DescribeHubClusterKubeconfigResult.h"
|
||||
#include "model/DescribeHubClusterLogsRequest.h"
|
||||
#include "model/DescribeHubClusterLogsResult.h"
|
||||
#include "model/DescribeHubClustersRequest.h"
|
||||
#include "model/DescribeHubClustersResult.h"
|
||||
#include "model/DescribeManagedClustersRequest.h"
|
||||
#include "model/DescribeManagedClustersResult.h"
|
||||
#include "model/DescribePoliciesRequest.h"
|
||||
#include "model/DescribePoliciesResult.h"
|
||||
#include "model/DescribePolicyDetailsRequest.h"
|
||||
#include "model/DescribePolicyDetailsResult.h"
|
||||
#include "model/DescribePolicyGovernanceInClusterRequest.h"
|
||||
#include "model/DescribePolicyGovernanceInClusterResult.h"
|
||||
#include "model/DescribePolicyInstancesRequest.h"
|
||||
#include "model/DescribePolicyInstancesResult.h"
|
||||
#include "model/DescribePolicyInstancesStatusRequest.h"
|
||||
#include "model/DescribePolicyInstancesStatusResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeUserPermissionsRequest.h"
|
||||
#include "model/DescribeUserPermissionsResult.h"
|
||||
#include "model/DetachClusterFromHubRequest.h"
|
||||
#include "model/DetachClusterFromHubResult.h"
|
||||
#include "model/GrantUserPermissionRequest.h"
|
||||
#include "model/GrantUserPermissionResult.h"
|
||||
#include "model/GrantUserPermissionsRequest.h"
|
||||
#include "model/GrantUserPermissionsResult.h"
|
||||
#include "model/UpdateHubClusterFeatureRequest.h"
|
||||
#include "model/UpdateHubClusterFeatureResult.h"
|
||||
#include "model/UpdateUserPermissionRequest.h"
|
||||
#include "model/UpdateUserPermissionResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT AdcpClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AttachClusterToHubResult> AttachClusterToHubOutcome;
|
||||
typedef std::future<AttachClusterToHubOutcome> AttachClusterToHubOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::AttachClusterToHubRequest&, const AttachClusterToHubOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachClusterToHubAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateHubClusterResult> CreateHubClusterOutcome;
|
||||
typedef std::future<CreateHubClusterOutcome> CreateHubClusterOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::CreateHubClusterRequest&, const CreateHubClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateHubClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteHubClusterResult> DeleteHubClusterOutcome;
|
||||
typedef std::future<DeleteHubClusterOutcome> DeleteHubClusterOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DeleteHubClusterRequest&, const DeleteHubClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteHubClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeletePolicyInstanceResult> DeletePolicyInstanceOutcome;
|
||||
typedef std::future<DeletePolicyInstanceOutcome> DeletePolicyInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DeletePolicyInstanceRequest&, const DeletePolicyInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePolicyInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteUserPermissionResult> DeleteUserPermissionOutcome;
|
||||
typedef std::future<DeleteUserPermissionOutcome> DeleteUserPermissionOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DeleteUserPermissionRequest&, const DeleteUserPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUserPermissionAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeployPolicyInstanceResult> DeployPolicyInstanceOutcome;
|
||||
typedef std::future<DeployPolicyInstanceOutcome> DeployPolicyInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DeployPolicyInstanceRequest&, const DeployPolicyInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeployPolicyInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeHubClusterDetailsResult> DescribeHubClusterDetailsOutcome;
|
||||
typedef std::future<DescribeHubClusterDetailsOutcome> DescribeHubClusterDetailsOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DescribeHubClusterDetailsRequest&, const DescribeHubClusterDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeHubClusterDetailsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeHubClusterKubeconfigResult> DescribeHubClusterKubeconfigOutcome;
|
||||
typedef std::future<DescribeHubClusterKubeconfigOutcome> DescribeHubClusterKubeconfigOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DescribeHubClusterKubeconfigRequest&, const DescribeHubClusterKubeconfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeHubClusterKubeconfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeHubClusterLogsResult> DescribeHubClusterLogsOutcome;
|
||||
typedef std::future<DescribeHubClusterLogsOutcome> DescribeHubClusterLogsOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DescribeHubClusterLogsRequest&, const DescribeHubClusterLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeHubClusterLogsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeHubClustersResult> DescribeHubClustersOutcome;
|
||||
typedef std::future<DescribeHubClustersOutcome> DescribeHubClustersOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DescribeHubClustersRequest&, const DescribeHubClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeHubClustersAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeManagedClustersResult> DescribeManagedClustersOutcome;
|
||||
typedef std::future<DescribeManagedClustersOutcome> DescribeManagedClustersOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DescribeManagedClustersRequest&, const DescribeManagedClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeManagedClustersAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePoliciesResult> DescribePoliciesOutcome;
|
||||
typedef std::future<DescribePoliciesOutcome> DescribePoliciesOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DescribePoliciesRequest&, const DescribePoliciesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePoliciesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePolicyDetailsResult> DescribePolicyDetailsOutcome;
|
||||
typedef std::future<DescribePolicyDetailsOutcome> DescribePolicyDetailsOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DescribePolicyDetailsRequest&, const DescribePolicyDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePolicyDetailsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePolicyGovernanceInClusterResult> DescribePolicyGovernanceInClusterOutcome;
|
||||
typedef std::future<DescribePolicyGovernanceInClusterOutcome> DescribePolicyGovernanceInClusterOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DescribePolicyGovernanceInClusterRequest&, const DescribePolicyGovernanceInClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePolicyGovernanceInClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePolicyInstancesResult> DescribePolicyInstancesOutcome;
|
||||
typedef std::future<DescribePolicyInstancesOutcome> DescribePolicyInstancesOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DescribePolicyInstancesRequest&, const DescribePolicyInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePolicyInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePolicyInstancesStatusResult> DescribePolicyInstancesStatusOutcome;
|
||||
typedef std::future<DescribePolicyInstancesStatusOutcome> DescribePolicyInstancesStatusOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DescribePolicyInstancesStatusRequest&, const DescribePolicyInstancesStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePolicyInstancesStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeUserPermissionsResult> DescribeUserPermissionsOutcome;
|
||||
typedef std::future<DescribeUserPermissionsOutcome> DescribeUserPermissionsOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DescribeUserPermissionsRequest&, const DescribeUserPermissionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserPermissionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetachClusterFromHubResult> DetachClusterFromHubOutcome;
|
||||
typedef std::future<DetachClusterFromHubOutcome> DetachClusterFromHubOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::DetachClusterFromHubRequest&, const DetachClusterFromHubOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachClusterFromHubAsyncHandler;
|
||||
typedef Outcome<Error, Model::GrantUserPermissionResult> GrantUserPermissionOutcome;
|
||||
typedef std::future<GrantUserPermissionOutcome> GrantUserPermissionOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::GrantUserPermissionRequest&, const GrantUserPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GrantUserPermissionAsyncHandler;
|
||||
typedef Outcome<Error, Model::GrantUserPermissionsResult> GrantUserPermissionsOutcome;
|
||||
typedef std::future<GrantUserPermissionsOutcome> GrantUserPermissionsOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::GrantUserPermissionsRequest&, const GrantUserPermissionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GrantUserPermissionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateHubClusterFeatureResult> UpdateHubClusterFeatureOutcome;
|
||||
typedef std::future<UpdateHubClusterFeatureOutcome> UpdateHubClusterFeatureOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::UpdateHubClusterFeatureRequest&, const UpdateHubClusterFeatureOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateHubClusterFeatureAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateUserPermissionResult> UpdateUserPermissionOutcome;
|
||||
typedef std::future<UpdateUserPermissionOutcome> UpdateUserPermissionOutcomeCallable;
|
||||
typedef std::function<void(const AdcpClient*, const Model::UpdateUserPermissionRequest&, const UpdateUserPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateUserPermissionAsyncHandler;
|
||||
|
||||
AdcpClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
AdcpClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
AdcpClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~AdcpClient();
|
||||
AttachClusterToHubOutcome attachClusterToHub(const Model::AttachClusterToHubRequest &request)const;
|
||||
void attachClusterToHubAsync(const Model::AttachClusterToHubRequest& request, const AttachClusterToHubAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AttachClusterToHubOutcomeCallable attachClusterToHubCallable(const Model::AttachClusterToHubRequest& request) const;
|
||||
CreateHubClusterOutcome createHubCluster(const Model::CreateHubClusterRequest &request)const;
|
||||
void createHubClusterAsync(const Model::CreateHubClusterRequest& request, const CreateHubClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateHubClusterOutcomeCallable createHubClusterCallable(const Model::CreateHubClusterRequest& request) const;
|
||||
DeleteHubClusterOutcome deleteHubCluster(const Model::DeleteHubClusterRequest &request)const;
|
||||
void deleteHubClusterAsync(const Model::DeleteHubClusterRequest& request, const DeleteHubClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteHubClusterOutcomeCallable deleteHubClusterCallable(const Model::DeleteHubClusterRequest& request) const;
|
||||
DeletePolicyInstanceOutcome deletePolicyInstance(const Model::DeletePolicyInstanceRequest &request)const;
|
||||
void deletePolicyInstanceAsync(const Model::DeletePolicyInstanceRequest& request, const DeletePolicyInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeletePolicyInstanceOutcomeCallable deletePolicyInstanceCallable(const Model::DeletePolicyInstanceRequest& request) const;
|
||||
DeleteUserPermissionOutcome deleteUserPermission(const Model::DeleteUserPermissionRequest &request)const;
|
||||
void deleteUserPermissionAsync(const Model::DeleteUserPermissionRequest& request, const DeleteUserPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteUserPermissionOutcomeCallable deleteUserPermissionCallable(const Model::DeleteUserPermissionRequest& request) const;
|
||||
DeployPolicyInstanceOutcome deployPolicyInstance(const Model::DeployPolicyInstanceRequest &request)const;
|
||||
void deployPolicyInstanceAsync(const Model::DeployPolicyInstanceRequest& request, const DeployPolicyInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeployPolicyInstanceOutcomeCallable deployPolicyInstanceCallable(const Model::DeployPolicyInstanceRequest& request) const;
|
||||
DescribeHubClusterDetailsOutcome describeHubClusterDetails(const Model::DescribeHubClusterDetailsRequest &request)const;
|
||||
void describeHubClusterDetailsAsync(const Model::DescribeHubClusterDetailsRequest& request, const DescribeHubClusterDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeHubClusterDetailsOutcomeCallable describeHubClusterDetailsCallable(const Model::DescribeHubClusterDetailsRequest& request) const;
|
||||
DescribeHubClusterKubeconfigOutcome describeHubClusterKubeconfig(const Model::DescribeHubClusterKubeconfigRequest &request)const;
|
||||
void describeHubClusterKubeconfigAsync(const Model::DescribeHubClusterKubeconfigRequest& request, const DescribeHubClusterKubeconfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeHubClusterKubeconfigOutcomeCallable describeHubClusterKubeconfigCallable(const Model::DescribeHubClusterKubeconfigRequest& request) const;
|
||||
DescribeHubClusterLogsOutcome describeHubClusterLogs(const Model::DescribeHubClusterLogsRequest &request)const;
|
||||
void describeHubClusterLogsAsync(const Model::DescribeHubClusterLogsRequest& request, const DescribeHubClusterLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeHubClusterLogsOutcomeCallable describeHubClusterLogsCallable(const Model::DescribeHubClusterLogsRequest& request) const;
|
||||
DescribeHubClustersOutcome describeHubClusters(const Model::DescribeHubClustersRequest &request)const;
|
||||
void describeHubClustersAsync(const Model::DescribeHubClustersRequest& request, const DescribeHubClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeHubClustersOutcomeCallable describeHubClustersCallable(const Model::DescribeHubClustersRequest& request) const;
|
||||
DescribeManagedClustersOutcome describeManagedClusters(const Model::DescribeManagedClustersRequest &request)const;
|
||||
void describeManagedClustersAsync(const Model::DescribeManagedClustersRequest& request, const DescribeManagedClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeManagedClustersOutcomeCallable describeManagedClustersCallable(const Model::DescribeManagedClustersRequest& request) const;
|
||||
DescribePoliciesOutcome describePolicies(const Model::DescribePoliciesRequest &request)const;
|
||||
void describePoliciesAsync(const Model::DescribePoliciesRequest& request, const DescribePoliciesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePoliciesOutcomeCallable describePoliciesCallable(const Model::DescribePoliciesRequest& request) const;
|
||||
DescribePolicyDetailsOutcome describePolicyDetails(const Model::DescribePolicyDetailsRequest &request)const;
|
||||
void describePolicyDetailsAsync(const Model::DescribePolicyDetailsRequest& request, const DescribePolicyDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePolicyDetailsOutcomeCallable describePolicyDetailsCallable(const Model::DescribePolicyDetailsRequest& request) const;
|
||||
DescribePolicyGovernanceInClusterOutcome describePolicyGovernanceInCluster(const Model::DescribePolicyGovernanceInClusterRequest &request)const;
|
||||
void describePolicyGovernanceInClusterAsync(const Model::DescribePolicyGovernanceInClusterRequest& request, const DescribePolicyGovernanceInClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePolicyGovernanceInClusterOutcomeCallable describePolicyGovernanceInClusterCallable(const Model::DescribePolicyGovernanceInClusterRequest& request) const;
|
||||
DescribePolicyInstancesOutcome describePolicyInstances(const Model::DescribePolicyInstancesRequest &request)const;
|
||||
void describePolicyInstancesAsync(const Model::DescribePolicyInstancesRequest& request, const DescribePolicyInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePolicyInstancesOutcomeCallable describePolicyInstancesCallable(const Model::DescribePolicyInstancesRequest& request) const;
|
||||
DescribePolicyInstancesStatusOutcome describePolicyInstancesStatus(const Model::DescribePolicyInstancesStatusRequest &request)const;
|
||||
void describePolicyInstancesStatusAsync(const Model::DescribePolicyInstancesStatusRequest& request, const DescribePolicyInstancesStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePolicyInstancesStatusOutcomeCallable describePolicyInstancesStatusCallable(const Model::DescribePolicyInstancesStatusRequest& request) const;
|
||||
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;
|
||||
DescribeUserPermissionsOutcome describeUserPermissions(const Model::DescribeUserPermissionsRequest &request)const;
|
||||
void describeUserPermissionsAsync(const Model::DescribeUserPermissionsRequest& request, const DescribeUserPermissionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeUserPermissionsOutcomeCallable describeUserPermissionsCallable(const Model::DescribeUserPermissionsRequest& request) const;
|
||||
DetachClusterFromHubOutcome detachClusterFromHub(const Model::DetachClusterFromHubRequest &request)const;
|
||||
void detachClusterFromHubAsync(const Model::DetachClusterFromHubRequest& request, const DetachClusterFromHubAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetachClusterFromHubOutcomeCallable detachClusterFromHubCallable(const Model::DetachClusterFromHubRequest& request) const;
|
||||
GrantUserPermissionOutcome grantUserPermission(const Model::GrantUserPermissionRequest &request)const;
|
||||
void grantUserPermissionAsync(const Model::GrantUserPermissionRequest& request, const GrantUserPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GrantUserPermissionOutcomeCallable grantUserPermissionCallable(const Model::GrantUserPermissionRequest& request) const;
|
||||
GrantUserPermissionsOutcome grantUserPermissions(const Model::GrantUserPermissionsRequest &request)const;
|
||||
void grantUserPermissionsAsync(const Model::GrantUserPermissionsRequest& request, const GrantUserPermissionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GrantUserPermissionsOutcomeCallable grantUserPermissionsCallable(const Model::GrantUserPermissionsRequest& request) const;
|
||||
UpdateHubClusterFeatureOutcome updateHubClusterFeature(const Model::UpdateHubClusterFeatureRequest &request)const;
|
||||
void updateHubClusterFeatureAsync(const Model::UpdateHubClusterFeatureRequest& request, const UpdateHubClusterFeatureAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateHubClusterFeatureOutcomeCallable updateHubClusterFeatureCallable(const Model::UpdateHubClusterFeatureRequest& request) const;
|
||||
UpdateUserPermissionOutcome updateUserPermission(const Model::UpdateUserPermissionRequest &request)const;
|
||||
void updateUserPermissionAsync(const Model::UpdateUserPermissionRequest& request, const UpdateUserPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateUserPermissionOutcomeCallable updateUserPermissionCallable(const Model::UpdateUserPermissionRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ADCP_ADCPCLIENT_H_
|
||||
32
adcp/include/alibabacloud/adcp/AdcpExport.h
Normal file
32
adcp/include/alibabacloud/adcp/AdcpExport.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_ADCP_ADCPEXPORT_H_
|
||||
#define ALIBABACLOUD_ADCP_ADCPEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ADCP_LIBRARY)
|
||||
# define ALIBABACLOUD_ADCP_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ADCP_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ADCP_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ADCP_ADCPEXPORT_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_ADCP_MODEL_ATTACHCLUSTERTOHUBREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_ATTACHCLUSTERTOHUBREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT AttachClusterToHubRequest : public RpcServiceRequest {
|
||||
public:
|
||||
AttachClusterToHubRequest();
|
||||
~AttachClusterToHubRequest();
|
||||
std::string getClusterId() const;
|
||||
void setClusterId(const std::string &clusterId);
|
||||
std::string getClusterIds() const;
|
||||
void setClusterIds(const std::string &clusterIds);
|
||||
bool getAttachToMesh() const;
|
||||
void setAttachToMesh(bool attachToMesh);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string clusterIds_;
|
||||
bool attachToMesh_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_ATTACHCLUSTERTOHUBREQUEST_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_ADCP_MODEL_ATTACHCLUSTERTOHUBRESULT_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_ATTACHCLUSTERTOHUBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT AttachClusterToHubResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AttachClusterToHubResult();
|
||||
explicit AttachClusterToHubResult(const std::string &payload);
|
||||
~AttachClusterToHubResult();
|
||||
std::string getTaskId()const;
|
||||
std::string getClusterId()const;
|
||||
std::vector<std::string> getManagedClusterIds()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
std::string clusterId_;
|
||||
std::vector<std::string> managedClusterIds_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_ATTACHCLUSTERTOHUBRESULT_H_
|
||||
121
adcp/include/alibabacloud/adcp/model/CreateHubClusterRequest.h
Normal file
121
adcp/include/alibabacloud/adcp/model/CreateHubClusterRequest.h
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ADCP_MODEL_CREATEHUBCLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_CREATEHUBCLUSTERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT CreateHubClusterRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct WorkflowUnits {
|
||||
std::string regionId;
|
||||
std::string vpcId;
|
||||
struct VSwitchesItem {
|
||||
std::string vswitchId;
|
||||
std::string zoneId;
|
||||
};
|
||||
VSwitchesItem vSwitchesItem;
|
||||
std::vector<VSwitchesItem> vSwitches;
|
||||
};
|
||||
CreateHubClusterRequest();
|
||||
~CreateHubClusterRequest();
|
||||
std::string getAuditLogProject() const;
|
||||
void setAuditLogProject(const std::string &auditLogProject);
|
||||
std::string getLoadBalancerSpec() const;
|
||||
void setLoadBalancerSpec(const std::string &loadBalancerSpec);
|
||||
std::string getKubernetesVersion() const;
|
||||
void setKubernetesVersion(const std::string &kubernetesVersion);
|
||||
std::string getProfile() const;
|
||||
void setProfile(const std::string &profile);
|
||||
std::string getVSwitches() const;
|
||||
void setVSwitches(const std::string &vSwitches);
|
||||
std::string getControlPlaneLogProject() const;
|
||||
void setControlPlaneLogProject(const std::string &controlPlaneLogProject);
|
||||
std::string getLoadBalancerId() const;
|
||||
void setLoadBalancerId(const std::string &loadBalancerId);
|
||||
std::string getClusterSpec() const;
|
||||
void setClusterSpec(const std::string &clusterSpec);
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
std::string getClusterDomain() const;
|
||||
void setClusterDomain(const std::string &clusterDomain);
|
||||
std::string getControlPlaneLogTTL() const;
|
||||
void setControlPlaneLogTTL(const std::string &controlPlaneLogTTL);
|
||||
std::vector<WorkflowUnits> getWorkflowUnits() const;
|
||||
void setWorkflowUnits(const std::vector<WorkflowUnits> &workflowUnits);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getAuditLogStoreTTL() const;
|
||||
void setAuditLogStoreTTL(const std::string &auditLogStoreTTL);
|
||||
std::string getIPStack() const;
|
||||
void setIPStack(const std::string &iPStack);
|
||||
bool getControlPlaneLogEnabled() const;
|
||||
void setControlPlaneLogEnabled(bool controlPlaneLogEnabled);
|
||||
bool getArgoServerEnabled() const;
|
||||
void setArgoServerEnabled(bool argoServerEnabled);
|
||||
std::string getWorkflowScheduleMode() const;
|
||||
void setWorkflowScheduleMode(const std::string &workflowScheduleMode);
|
||||
bool getApiServerPublicEip() const;
|
||||
void setApiServerPublicEip(bool apiServerPublicEip);
|
||||
bool getAuditLogEnabled() const;
|
||||
void setAuditLogEnabled(bool auditLogEnabled);
|
||||
std::string getSecurityGroupIDs() const;
|
||||
void setSecurityGroupIDs(const std::string &securityGroupIDs);
|
||||
std::string getPriceLimit() const;
|
||||
void setPriceLimit(const std::string &priceLimit);
|
||||
bool getIsEnterpriseSecurityGroup() const;
|
||||
void setIsEnterpriseSecurityGroup(bool isEnterpriseSecurityGroup);
|
||||
std::string getVpcId() const;
|
||||
void setVpcId(const std::string &vpcId);
|
||||
|
||||
private:
|
||||
std::string auditLogProject_;
|
||||
std::string loadBalancerSpec_;
|
||||
std::string kubernetesVersion_;
|
||||
std::string profile_;
|
||||
std::string vSwitches_;
|
||||
std::string controlPlaneLogProject_;
|
||||
std::string loadBalancerId_;
|
||||
std::string clusterSpec_;
|
||||
std::string name_;
|
||||
std::string clusterDomain_;
|
||||
std::string controlPlaneLogTTL_;
|
||||
std::vector<WorkflowUnits> workflowUnits_;
|
||||
std::string regionId_;
|
||||
std::string auditLogStoreTTL_;
|
||||
std::string iPStack_;
|
||||
bool controlPlaneLogEnabled_;
|
||||
bool argoServerEnabled_;
|
||||
std::string workflowScheduleMode_;
|
||||
bool apiServerPublicEip_;
|
||||
bool auditLogEnabled_;
|
||||
std::string securityGroupIDs_;
|
||||
std::string priceLimit_;
|
||||
bool isEnterpriseSecurityGroup_;
|
||||
std::string vpcId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_CREATEHUBCLUSTERREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADCP_MODEL_CREATEHUBCLUSTERRESULT_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_CREATEHUBCLUSTERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT CreateHubClusterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateHubClusterResult();
|
||||
explicit CreateHubClusterResult(const std::string &payload);
|
||||
~CreateHubClusterResult();
|
||||
std::string getTaskId()const;
|
||||
std::string getClusterId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_CREATEHUBCLUSTERRESULT_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_ADCP_MODEL_DELETEHUBCLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DELETEHUBCLUSTERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT DeleteHubClusterRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteHubClusterRequest();
|
||||
~DeleteHubClusterRequest();
|
||||
std::vector<std::string> getRetainResources() const;
|
||||
void setRetainResources(const std::vector<std::string> &retainResources);
|
||||
std::string getClusterId() const;
|
||||
void setClusterId(const std::string &clusterId);
|
||||
bool getForce() const;
|
||||
void setForce(bool force);
|
||||
|
||||
private:
|
||||
std::vector<std::string> retainResources_;
|
||||
std::string clusterId_;
|
||||
bool force_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DELETEHUBCLUSTERREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADCP_MODEL_DELETEHUBCLUSTERRESULT_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DELETEHUBCLUSTERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT DeleteHubClusterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteHubClusterResult();
|
||||
explicit DeleteHubClusterResult(const std::string &payload);
|
||||
~DeleteHubClusterResult();
|
||||
std::string getTaskId()const;
|
||||
std::string getClusterId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DELETEHUBCLUSTERRESULT_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_ADCP_MODEL_DELETEPOLICYINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DELETEPOLICYINSTANCEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT DeletePolicyInstanceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeletePolicyInstanceRequest();
|
||||
~DeletePolicyInstanceRequest();
|
||||
std::string getClusterId() const;
|
||||
void setClusterId(const std::string &clusterId);
|
||||
std::vector<std::string> getClusterIds() const;
|
||||
void setClusterIds(const std::vector<std::string> &clusterIds);
|
||||
std::string getPolicyName() const;
|
||||
void setPolicyName(const std::string &policyName);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::vector<std::string> clusterIds_;
|
||||
std::string policyName_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DELETEPOLICYINSTANCEREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ADCP_MODEL_DELETEPOLICYINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DELETEPOLICYINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT DeletePolicyInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeletePolicyInstanceResult();
|
||||
explicit DeletePolicyInstanceResult(const std::string &payload);
|
||||
~DeletePolicyInstanceResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DELETEPOLICYINSTANCERESULT_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_ADCP_MODEL_DELETEUSERPERMISSIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DELETEUSERPERMISSIONREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT DeleteUserPermissionRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteUserPermissionRequest();
|
||||
~DeleteUserPermissionRequest();
|
||||
std::string getUserId() const;
|
||||
void setUserId(const std::string &userId);
|
||||
std::string getClusterId() const;
|
||||
void setClusterId(const std::string &clusterId);
|
||||
|
||||
private:
|
||||
std::string userId_;
|
||||
std::string clusterId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DELETEUSERPERMISSIONREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ADCP_MODEL_DELETEUSERPERMISSIONRESULT_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DELETEUSERPERMISSIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT DeleteUserPermissionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteUserPermissionResult();
|
||||
explicit DeleteUserPermissionResult(const std::string &payload);
|
||||
~DeleteUserPermissionResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DELETEUSERPERMISSIONRESULT_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_ADCP_MODEL_DEPLOYPOLICYINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DEPLOYPOLICYINSTANCEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT DeployPolicyInstanceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeployPolicyInstanceRequest();
|
||||
~DeployPolicyInstanceRequest();
|
||||
std::string getClusterId() const;
|
||||
void setClusterId(const std::string &clusterId);
|
||||
std::string getPolicyAction() const;
|
||||
void setPolicyAction(const std::string &policyAction);
|
||||
std::vector<std::string> getClusterIds() const;
|
||||
void setClusterIds(const std::vector<std::string> &clusterIds);
|
||||
std::string getPolicyName() const;
|
||||
void setPolicyName(const std::string &policyName);
|
||||
std::vector<std::string> getNamespaces() const;
|
||||
void setNamespaces(const std::vector<std::string> &namespaces);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string policyAction_;
|
||||
std::vector<std::string> clusterIds_;
|
||||
std::string policyName_;
|
||||
std::vector<std::string> namespaces_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DEPLOYPOLICYINSTANCEREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ADCP_MODEL_DEPLOYPOLICYINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DEPLOYPOLICYINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT DeployPolicyInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeployPolicyInstanceResult();
|
||||
explicit DeployPolicyInstanceResult(const std::string &payload);
|
||||
~DeployPolicyInstanceResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DEPLOYPOLICYINSTANCERESULT_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_ADCP_MODEL_DESCRIBEHUBCLUSTERDETAILSREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEHUBCLUSTERDETAILSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribeHubClusterDetailsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeHubClusterDetailsRequest();
|
||||
~DescribeHubClusterDetailsRequest();
|
||||
std::string getClusterId() const;
|
||||
void setClusterId(const std::string &clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEHUBCLUSTERDETAILSREQUEST_H_
|
||||
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ADCP_MODEL_DESCRIBEHUBCLUSTERDETAILSRESULT_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEHUBCLUSTERDETAILSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribeHubClusterDetailsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Cluster
|
||||
{
|
||||
struct Endpoints
|
||||
{
|
||||
std::string intranetApiServerEndpoint;
|
||||
std::string publicApiServerEndpoint;
|
||||
};
|
||||
struct ClusterInfo
|
||||
{
|
||||
std::string version;
|
||||
std::string clusterId;
|
||||
std::string state;
|
||||
std::string creationTime;
|
||||
std::string updateTime;
|
||||
std::string regionId;
|
||||
std::string clusterSpec;
|
||||
std::string errorMessage;
|
||||
std::string profile;
|
||||
std::string name;
|
||||
};
|
||||
struct Network
|
||||
{
|
||||
std::string iPStack;
|
||||
std::string vpcId;
|
||||
std::string clusterDomain;
|
||||
std::vector<std::string> vSwitches;
|
||||
std::vector<std::string> securityGroupIDs;
|
||||
};
|
||||
struct ApiServer
|
||||
{
|
||||
std::string apiServerEipId;
|
||||
bool enabledPublic;
|
||||
std::string loadBalancerId;
|
||||
};
|
||||
struct MeshConfig
|
||||
{
|
||||
std::string meshId;
|
||||
bool enableMesh;
|
||||
};
|
||||
struct LogConfig
|
||||
{
|
||||
std::string logStoreTTL;
|
||||
bool enableLog;
|
||||
std::string logProject;
|
||||
};
|
||||
struct WorkflowConfig
|
||||
{
|
||||
struct WorkflowUnit
|
||||
{
|
||||
struct VSwitch
|
||||
{
|
||||
std::string zoneId;
|
||||
std::string vswitchId;
|
||||
};
|
||||
std::string vpcId;
|
||||
std::vector<WorkflowUnit::VSwitch> vSwitches1;
|
||||
std::string regionId;
|
||||
};
|
||||
std::vector<WorkflowUnit> workflowUnits;
|
||||
std::string priceLimit;
|
||||
bool argoServerEnabled;
|
||||
std::string workflowScheduleMode;
|
||||
};
|
||||
struct Condition
|
||||
{
|
||||
std::string status;
|
||||
std::string type;
|
||||
std::string message;
|
||||
std::string reason;
|
||||
};
|
||||
Endpoints endpoints;
|
||||
WorkflowConfig workflowConfig;
|
||||
ClusterInfo clusterInfo;
|
||||
ApiServer apiServer;
|
||||
MeshConfig meshConfig;
|
||||
Network network;
|
||||
std::vector<Condition> conditions;
|
||||
LogConfig logConfig;
|
||||
};
|
||||
|
||||
|
||||
DescribeHubClusterDetailsResult();
|
||||
explicit DescribeHubClusterDetailsResult(const std::string &payload);
|
||||
~DescribeHubClusterDetailsResult();
|
||||
Cluster getCluster()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Cluster cluster_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEHUBCLUSTERDETAILSRESULT_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_ADCP_MODEL_DESCRIBEHUBCLUSTERKUBECONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEHUBCLUSTERKUBECONFIGREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribeHubClusterKubeconfigRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeHubClusterKubeconfigRequest();
|
||||
~DescribeHubClusterKubeconfigRequest();
|
||||
std::string getClusterId() const;
|
||||
void setClusterId(const std::string &clusterId);
|
||||
bool getPrivateIpAddress() const;
|
||||
void setPrivateIpAddress(bool privateIpAddress);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
bool privateIpAddress_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEHUBCLUSTERKUBECONFIGREQUEST_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_ADCP_MODEL_DESCRIBEHUBCLUSTERKUBECONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEHUBCLUSTERKUBECONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribeHubClusterKubeconfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeHubClusterKubeconfigResult();
|
||||
explicit DescribeHubClusterKubeconfigResult(const std::string &payload);
|
||||
~DescribeHubClusterKubeconfigResult();
|
||||
std::string getKubeconfig()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string kubeconfig_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEHUBCLUSTERKUBECONFIGRESULT_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_ADCP_MODEL_DESCRIBEHUBCLUSTERLOGSREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEHUBCLUSTERLOGSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribeHubClusterLogsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeHubClusterLogsRequest();
|
||||
~DescribeHubClusterLogsRequest();
|
||||
std::string getClusterId() const;
|
||||
void setClusterId(const std::string &clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEHUBCLUSTERLOGSREQUEST_H_
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ADCP_MODEL_DESCRIBEHUBCLUSTERLOGSRESULT_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEHUBCLUSTERLOGSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribeHubClusterLogsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Log
|
||||
{
|
||||
std::string clusterId;
|
||||
std::string creationTime;
|
||||
std::string clusterLog;
|
||||
std::string logLevel;
|
||||
};
|
||||
|
||||
|
||||
DescribeHubClusterLogsResult();
|
||||
explicit DescribeHubClusterLogsResult(const std::string &payload);
|
||||
~DescribeHubClusterLogsResult();
|
||||
std::vector<Log> getLogs()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Log> logs_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEHUBCLUSTERLOGSRESULT_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_ADCP_MODEL_DESCRIBEHUBCLUSTERSREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEHUBCLUSTERSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribeHubClustersRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeHubClustersRequest();
|
||||
~DescribeHubClustersRequest();
|
||||
std::string getProfile() const;
|
||||
void setProfile(const std::string &profile);
|
||||
|
||||
private:
|
||||
std::string profile_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEHUBCLUSTERSREQUEST_H_
|
||||
110
adcp/include/alibabacloud/adcp/model/DescribeHubClustersResult.h
Normal file
110
adcp/include/alibabacloud/adcp/model/DescribeHubClustersResult.h
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ADCP_MODEL_DESCRIBEHUBCLUSTERSRESULT_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEHUBCLUSTERSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribeHubClustersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Cluster
|
||||
{
|
||||
struct Endpoints
|
||||
{
|
||||
std::string intranetApiServerEndpoint;
|
||||
std::string publicApiServerEndpoint;
|
||||
};
|
||||
struct ClusterInfo
|
||||
{
|
||||
std::string version;
|
||||
std::string clusterId;
|
||||
std::string state;
|
||||
std::string creationTime;
|
||||
std::string updateTime;
|
||||
std::string regionId;
|
||||
std::string clusterSpec;
|
||||
std::string errorMessage;
|
||||
std::string profile;
|
||||
std::string name;
|
||||
};
|
||||
struct Network
|
||||
{
|
||||
std::string vpcId;
|
||||
std::string clusterDomain;
|
||||
std::vector<std::string> vSwitches;
|
||||
std::vector<std::string> securityGroupIDs;
|
||||
};
|
||||
struct ApiServer
|
||||
{
|
||||
std::string apiServerEipId;
|
||||
bool enabledPublic;
|
||||
std::string loadBalancerId;
|
||||
};
|
||||
struct MeshConfig
|
||||
{
|
||||
std::string meshId;
|
||||
bool enableMesh;
|
||||
};
|
||||
struct LogConfig
|
||||
{
|
||||
std::string logStoreTTL;
|
||||
bool enableLog;
|
||||
std::string logProject;
|
||||
};
|
||||
struct Condition
|
||||
{
|
||||
std::string status;
|
||||
std::string type;
|
||||
std::string message;
|
||||
std::string reason;
|
||||
};
|
||||
Endpoints endpoints;
|
||||
ClusterInfo clusterInfo;
|
||||
ApiServer apiServer;
|
||||
MeshConfig meshConfig;
|
||||
Network network;
|
||||
std::vector<Cluster::Condition> conditions;
|
||||
LogConfig logConfig;
|
||||
};
|
||||
|
||||
|
||||
DescribeHubClustersResult();
|
||||
explicit DescribeHubClustersResult(const std::string &payload);
|
||||
~DescribeHubClustersResult();
|
||||
std::vector<Cluster> getClusters()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Cluster> clusters_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEHUBCLUSTERSRESULT_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_ADCP_MODEL_DESCRIBEMANAGEDCLUSTERSREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEMANAGEDCLUSTERSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribeManagedClustersRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeManagedClustersRequest();
|
||||
~DescribeManagedClustersRequest();
|
||||
std::string getClusterId() const;
|
||||
void setClusterId(const std::string &clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEMANAGEDCLUSTERSREQUEST_H_
|
||||
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ADCP_MODEL_DESCRIBEMANAGEDCLUSTERSRESULT_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEMANAGEDCLUSTERSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribeManagedClustersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Cluster
|
||||
{
|
||||
struct Cluster1
|
||||
{
|
||||
std::string updated;
|
||||
std::string resourceGroupId;
|
||||
std::string clusterID;
|
||||
std::string initVersion;
|
||||
std::string currentVersion;
|
||||
std::string vSwitchID;
|
||||
std::string clusterType;
|
||||
std::string clusterSpec;
|
||||
std::string profile;
|
||||
std::string name;
|
||||
std::string created;
|
||||
std::string vpcID;
|
||||
std::string state;
|
||||
std::string region;
|
||||
};
|
||||
struct Status
|
||||
{
|
||||
std::string message;
|
||||
std::string state;
|
||||
};
|
||||
struct MeshStatus
|
||||
{
|
||||
bool inMesh;
|
||||
};
|
||||
Status status;
|
||||
Cluster1 cluster1;
|
||||
MeshStatus meshStatus;
|
||||
};
|
||||
|
||||
|
||||
DescribeManagedClustersResult();
|
||||
explicit DescribeManagedClustersResult(const std::string &payload);
|
||||
~DescribeManagedClustersResult();
|
||||
std::vector<Cluster> getClusters()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Cluster> clusters_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEMANAGEDCLUSTERSRESULT_H_
|
||||
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ADCP_MODEL_DESCRIBEPOLICIESREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICIESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribePoliciesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribePoliciesRequest();
|
||||
~DescribePoliciesRequest();
|
||||
|
||||
private:
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICIESREQUEST_H_
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ADCP_MODEL_DESCRIBEPOLICIESRESULT_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICIESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribePoliciesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Policy
|
||||
{
|
||||
std::vector<std::string> names;
|
||||
std::string category;
|
||||
};
|
||||
|
||||
|
||||
DescribePoliciesResult();
|
||||
explicit DescribePoliciesResult(const std::string &payload);
|
||||
~DescribePoliciesResult();
|
||||
std::vector<Policy> getPolicies()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Policy> policies_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICIESRESULT_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_ADCP_MODEL_DESCRIBEPOLICYDETAILSREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYDETAILSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribePolicyDetailsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribePolicyDetailsRequest();
|
||||
~DescribePolicyDetailsRequest();
|
||||
std::string getPolicyName() const;
|
||||
void setPolicyName(const std::string &policyName);
|
||||
|
||||
private:
|
||||
std::string policyName_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYDETAILSREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYDETAILSRESULT_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYDETAILSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribePolicyDetailsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Policy
|
||||
{
|
||||
int noConfig;
|
||||
std::string action;
|
||||
std::string category;
|
||||
std::string description;
|
||||
std::string _template;
|
||||
std::string updated;
|
||||
std::string severity;
|
||||
std::string name;
|
||||
std::string created;
|
||||
};
|
||||
|
||||
|
||||
DescribePolicyDetailsResult();
|
||||
explicit DescribePolicyDetailsResult(const std::string &payload);
|
||||
~DescribePolicyDetailsResult();
|
||||
Policy getPolicy()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Policy policy_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYDETAILSRESULT_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_ADCP_MODEL_DESCRIBEPOLICYGOVERNANCEINCLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYGOVERNANCEINCLUSTERREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribePolicyGovernanceInClusterRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribePolicyGovernanceInClusterRequest();
|
||||
~DescribePolicyGovernanceInClusterRequest();
|
||||
std::string getClusterId() const;
|
||||
void setClusterId(const std::string &clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYGOVERNANCEINCLUSTERREQUEST_H_
|
||||
@@ -0,0 +1,125 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ADCP_MODEL_DESCRIBEPOLICYGOVERNANCEINCLUSTERRESULT_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYGOVERNANCEINCLUSTERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribePolicyGovernanceInClusterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PolicyGovernance
|
||||
{
|
||||
struct Cluster
|
||||
{
|
||||
std::string clusterId;
|
||||
std::string state;
|
||||
std::string regionId;
|
||||
std::string clusterType;
|
||||
std::string clusterSpec;
|
||||
std::string profile;
|
||||
std::string name;
|
||||
};
|
||||
struct PolicyGovernance1
|
||||
{
|
||||
struct AdmitLog
|
||||
{
|
||||
std::string progress;
|
||||
std::string logStore;
|
||||
std::string count;
|
||||
std::vector<std::string> logs;
|
||||
std::string logProject;
|
||||
};
|
||||
struct Violation
|
||||
{
|
||||
struct TotalViolations
|
||||
{
|
||||
struct DenySeverity
|
||||
{
|
||||
long violations;
|
||||
std::string severity;
|
||||
};
|
||||
struct WarnSeverity
|
||||
{
|
||||
std::string violations;
|
||||
std::string severity;
|
||||
};
|
||||
std::vector<DenySeverity> deny;
|
||||
std::vector<WarnSeverity> warn;
|
||||
};
|
||||
struct Violations
|
||||
{
|
||||
struct DenyViolations
|
||||
{
|
||||
std::string policyDescription;
|
||||
long violations;
|
||||
std::string policyName;
|
||||
std::string severity;
|
||||
};
|
||||
struct WarnViolations
|
||||
{
|
||||
std::string policyDescription;
|
||||
long violations;
|
||||
std::string policyName;
|
||||
std::string severity;
|
||||
};
|
||||
std::vector<WarnViolations> warn3;
|
||||
std::vector<DenyViolations> deny2;
|
||||
};
|
||||
Violations violations;
|
||||
TotalViolations totalViolations;
|
||||
};
|
||||
struct State
|
||||
{
|
||||
long totalCount;
|
||||
long enabledCount;
|
||||
std::string severity;
|
||||
};
|
||||
Violation violation;
|
||||
AdmitLog admitLog;
|
||||
std::vector<State> onState;
|
||||
};
|
||||
PolicyGovernance1 policyGovernance1;
|
||||
Cluster cluster;
|
||||
};
|
||||
|
||||
|
||||
DescribePolicyGovernanceInClusterResult();
|
||||
explicit DescribePolicyGovernanceInClusterResult(const std::string &payload);
|
||||
~DescribePolicyGovernanceInClusterResult();
|
||||
std::vector<PolicyGovernance> getPolicyGovernances()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<PolicyGovernance> policyGovernances_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYGOVERNANCEINCLUSTERRESULT_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_ADCP_MODEL_DESCRIBEPOLICYINSTANCESREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYINSTANCESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribePolicyInstancesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribePolicyInstancesRequest();
|
||||
~DescribePolicyInstancesRequest();
|
||||
std::string getClusterId() const;
|
||||
void setClusterId(const std::string &clusterId);
|
||||
std::string getPolicyName() const;
|
||||
void setPolicyName(const std::string &policyName);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string policyName_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYINSTANCESREQUEST_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_ADCP_MODEL_DESCRIBEPOLICYINSTANCESRESULT_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYINSTANCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribePolicyInstancesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Policy
|
||||
{
|
||||
std::string instanceName;
|
||||
std::string policyParameters;
|
||||
std::string policyDescription;
|
||||
std::string clusterId;
|
||||
std::string policyName;
|
||||
std::string policyCategory;
|
||||
std::string policySeverity;
|
||||
long totalViolations;
|
||||
std::string policyAction;
|
||||
std::string policyScope;
|
||||
};
|
||||
|
||||
|
||||
DescribePolicyInstancesResult();
|
||||
explicit DescribePolicyInstancesResult(const std::string &payload);
|
||||
~DescribePolicyInstancesResult();
|
||||
std::vector<Policy> getPolicies()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Policy> policies_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYINSTANCESRESULT_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_ADCP_MODEL_DESCRIBEPOLICYINSTANCESSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYINSTANCESSTATUSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribePolicyInstancesStatusRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribePolicyInstancesStatusRequest();
|
||||
~DescribePolicyInstancesStatusRequest();
|
||||
std::string getClusterId() const;
|
||||
void setClusterId(const std::string &clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYINSTANCESSTATUSREQUEST_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYINSTANCESSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYINSTANCESSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adcp
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribePolicyInstancesStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Policies
|
||||
{
|
||||
struct PolicyInstance
|
||||
{
|
||||
struct PolicyCluster
|
||||
{
|
||||
std::string status;
|
||||
std::string clusterId;
|
||||
};
|
||||
std::string policyDescription;
|
||||
std::vector<PolicyInstance::PolicyCluster> policyClusters;
|
||||
std::string policyName;
|
||||
std::string policyCategory;
|
||||
long policyInstancesCount;
|
||||
std::string policySeverity;
|
||||
};
|
||||
struct SeverityInfoItem
|
||||
{
|
||||
std::string severityType;
|
||||
std::string severityCount;
|
||||
};
|
||||
std::vector<SeverityInfoItem> severityInfo;
|
||||
std::vector<PolicyInstance> policyInstances;
|
||||
};
|
||||
|
||||
|
||||
DescribePolicyInstancesStatusResult();
|
||||
explicit DescribePolicyInstancesStatusResult(const std::string &payload);
|
||||
~DescribePolicyInstancesStatusResult();
|
||||
Policies getPolicies()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Policies policies_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEPOLICYINSTANCESSTATUSRESULT_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_ADCP_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_ADCP_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/adcp/AdcpExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Adcp {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ADCP_EXPORT DescribeRegionsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeRegionsRequest();
|
||||
~DescribeRegionsRequest();
|
||||
std::string getLanguage() const;
|
||||
void setLanguage(const std::string &language);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Adcp
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ADCP_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user