Compare commits
404 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26788350a5 | ||
|
|
37e0116875 | ||
|
|
6a5e45a550 | ||
|
|
fd6a6949fb | ||
|
|
4cda4f477d | ||
|
|
7959141d87 | ||
|
|
53ce2f6947 | ||
|
|
161e51556b | ||
|
|
fc24f8e624 | ||
|
|
b5602fc4a4 | ||
|
|
4332019dac | ||
|
|
7107481ad3 | ||
|
|
13c3b8b414 | ||
|
|
1a401aa70a | ||
|
|
8d0bff56a9 | ||
|
|
4b39c98f5a | ||
|
|
7fecdadace | ||
|
|
8ab4232b59 | ||
|
|
882187b0e9 | ||
|
|
f0ef60d4fa | ||
|
|
f29a3fe06e | ||
|
|
9c7cbba02f | ||
|
|
65a601c5ba | ||
|
|
3ee66cb2b2 | ||
|
|
a57f6ec422 | ||
|
|
e065d50def | ||
|
|
97918475fb | ||
|
|
5a451d16d4 | ||
|
|
8bed6eecc7 | ||
|
|
db4bd7ae11 | ||
|
|
7e4fbe6210 | ||
|
|
de0798d2dd | ||
|
|
2650ca7420 | ||
|
|
59d9eaf390 | ||
|
|
1ae8883f81 | ||
|
|
30469764de | ||
|
|
aeea3c2fea | ||
|
|
743309716b | ||
|
|
c9ae7d0b7e | ||
|
|
def35a6602 | ||
|
|
da7aefe5aa | ||
|
|
243879b17f | ||
|
|
942248dfb0 | ||
|
|
8f92463d90 | ||
|
|
dbe8804b96 | ||
|
|
6e880496ba | ||
|
|
fbf5bf0457 | ||
|
|
e32ce45b9d | ||
|
|
053c0dc1a1 | ||
|
|
2070ee03ba | ||
|
|
e611ec2db4 | ||
|
|
57416bd581 | ||
|
|
2df6079b2d | ||
|
|
39221a5319 | ||
|
|
6bba61cebe | ||
|
|
a869068f77 | ||
|
|
cf9eca9516 | ||
|
|
9ae74a6524 | ||
|
|
1855010705 | ||
|
|
654af055e6 | ||
|
|
07b50e30ef | ||
|
|
767dcb5bee | ||
|
|
42b4be9e1f | ||
|
|
c811dc5d85 | ||
|
|
84659b3f3e | ||
|
|
e3faa7d285 | ||
|
|
99feb0fdea | ||
|
|
d58606d853 | ||
|
|
db4fde36ee | ||
|
|
b7d0012a43 | ||
|
|
9c23d3e24b | ||
|
|
11bf538b08 | ||
|
|
266bdb38c6 | ||
|
|
d4576ea2f3 | ||
|
|
e051f5848b | ||
|
|
bfe6e5b081 | ||
|
|
03a2cd3731 | ||
|
|
83df0154da | ||
|
|
ec5269015c | ||
|
|
95a93b89f1 | ||
|
|
bd0d4f669a | ||
|
|
c6be4b4083 | ||
|
|
dad64fbdea | ||
|
|
ff1e74581f | ||
|
|
304717df66 | ||
|
|
d4d401ed4e | ||
|
|
670f1bb324 | ||
|
|
07721caa35 | ||
|
|
9315d79274 | ||
|
|
3d5b584e84 | ||
|
|
37abc8eec5 | ||
|
|
d55b09e788 | ||
|
|
f6e57b5ea2 | ||
|
|
68d7262f25 | ||
|
|
ea41bc1249 | ||
|
|
4b3913d6cd | ||
|
|
9c95c03a45 | ||
|
|
c0ffe42087 | ||
|
|
2cc7e5ae64 | ||
|
|
1a056a97c6 | ||
|
|
46862eb08d | ||
|
|
bb4a9050b4 | ||
|
|
1cba907b97 | ||
|
|
efc5b31e28 | ||
|
|
23a40fc487 | ||
|
|
03fb512456 | ||
|
|
56c516a238 | ||
|
|
2fd4ebc0a8 | ||
|
|
735c64063a | ||
|
|
bb7f64aeb3 | ||
|
|
396541400e | ||
|
|
e312177cd9 | ||
|
|
f60556764e | ||
|
|
6c1dbc8b06 | ||
|
|
ab7e92063b | ||
|
|
92d767384b | ||
|
|
32e4dafba9 | ||
|
|
9f2fb5a595 | ||
|
|
590e1bdfaf | ||
|
|
bde21ef594 | ||
|
|
7a8130ffb0 | ||
|
|
4bb1852f8a | ||
|
|
b1e2187ca5 | ||
|
|
92be79728f | ||
|
|
e1097547c2 | ||
|
|
87957e1677 | ||
|
|
8ef38637d2 | ||
|
|
7041b32dc4 | ||
|
|
d3ae1f02a3 | ||
|
|
87fc3376cb | ||
|
|
f6ec6326cb | ||
|
|
bd43e54271 | ||
|
|
f16150baca | ||
|
|
a51834c8d0 | ||
|
|
23bea0505a | ||
|
|
8c15acf5c8 | ||
|
|
00cb41817f | ||
|
|
f90eac2a6c | ||
|
|
f69779be3f | ||
|
|
feab9dcc06 | ||
|
|
d1c3599e3d | ||
|
|
f1483f8582 | ||
|
|
d005611f56 | ||
|
|
7e80260525 | ||
|
|
4aa00d49d1 | ||
|
|
a1dd7e1dbd | ||
|
|
e6cff897c5 | ||
|
|
4d493b157c | ||
|
|
8a1c79417e | ||
|
|
ad02a00036 | ||
|
|
3dd38f70c2 | ||
|
|
cc6cea96e4 | ||
|
|
f819d8866c | ||
|
|
d53a27c55f | ||
|
|
112b1d25da | ||
|
|
f51d79f1b9 | ||
|
|
e53482d9c6 | ||
|
|
b004f4b9fa | ||
|
|
c9cf723562 | ||
|
|
b1020d412c | ||
|
|
c4d6cb06f1 | ||
|
|
eeaeed4023 | ||
|
|
d7e14e0c1b | ||
|
|
18dc3cd7d9 | ||
|
|
2dbb76d303 | ||
|
|
ae65dcf4c3 | ||
|
|
1c5ad6a48c | ||
|
|
1a13b03f29 | ||
|
|
c1e07be47e | ||
|
|
8fdb5cc851 | ||
|
|
20774ebe3a | ||
|
|
485d712ddd | ||
|
|
abfdc41f3b | ||
|
|
093332279d | ||
|
|
85daa7c446 | ||
|
|
2e465b8b77 | ||
|
|
c58d7b0968 | ||
|
|
528c5282a8 | ||
|
|
ec000a3be6 | ||
|
|
636e24a33f | ||
|
|
cc1b078ff1 | ||
|
|
30fd9f48a0 | ||
|
|
c911315170 | ||
|
|
26e49b09e1 | ||
|
|
677473908b | ||
|
|
99a35f493e | ||
|
|
2efc5c0610 | ||
|
|
773c9d68dd | ||
|
|
dab595d041 | ||
|
|
361993f224 | ||
|
|
31f2c5d410 | ||
|
|
f0c2600a26 | ||
|
|
cba94f2119 | ||
|
|
b0e4c8f705 | ||
|
|
9e1e045351 | ||
|
|
9b0cec3ab7 | ||
|
|
fe66f8ca3b | ||
|
|
0913a08114 | ||
|
|
96f48bb607 | ||
|
|
94441decf0 | ||
|
|
ee987049b6 | ||
|
|
f0971eaa34 | ||
|
|
fce43d94b7 | ||
|
|
510f0daad9 | ||
|
|
11638e1197 | ||
|
|
8cc0896ed4 | ||
|
|
b5434b7d6d | ||
|
|
24f68932a7 | ||
|
|
54883f36c2 | ||
|
|
232aaddd7b | ||
|
|
fd11db8bf9 | ||
|
|
61c44f91cc | ||
|
|
dacb2ef983 | ||
|
|
f41733beaa | ||
|
|
c419c6e933 | ||
|
|
a3026e6a85 | ||
|
|
320af597ca | ||
|
|
0f47a4c427 | ||
|
|
51fa053ec1 | ||
|
|
ec33c109fe | ||
|
|
773cabb9d7 | ||
|
|
5de44fa4bd | ||
|
|
eaa895f02e | ||
|
|
be58d3d198 | ||
|
|
f8ce42a726 | ||
|
|
68261f0c8d | ||
|
|
45a3be8c65 | ||
|
|
66519a1f90 | ||
|
|
ef02e7707e | ||
|
|
82ce70d07f | ||
|
|
2c8cadba25 | ||
|
|
f90c2115c9 | ||
|
|
14fa5fe61a | ||
|
|
ca9bc6363b | ||
|
|
140879338b | ||
|
|
3f0bc9064e | ||
|
|
14ede93088 | ||
|
|
20fc16db11 | ||
|
|
cca2dd1b12 | ||
|
|
86d673dc39 | ||
|
|
03ae6a55f9 | ||
|
|
beee861ebb | ||
|
|
bdc2381f4b | ||
|
|
2dccf2d4e8 | ||
|
|
0f5b8d4fb0 | ||
|
|
b357bacce1 | ||
|
|
727beff44e | ||
|
|
259f151f36 | ||
|
|
1f51485d2b | ||
|
|
2933c888a5 | ||
|
|
9263bd3fcd | ||
|
|
b2ee54bbfa | ||
|
|
e2dc1dc7ef | ||
|
|
cddc0134ef | ||
|
|
5580ca1264 | ||
|
|
35934d6031 | ||
|
|
320ba9010b | ||
|
|
1db308e50d | ||
|
|
9bbe7b6d90 | ||
|
|
86b9de13f0 | ||
|
|
25daed5a5c | ||
|
|
bcb18c06d0 | ||
|
|
d958267165 | ||
|
|
e5e7f3ec79 | ||
|
|
eb6d726b62 | ||
|
|
7d5c99cc44 | ||
|
|
9487c4f8fc | ||
|
|
7453673df9 | ||
|
|
d3da09eb38 | ||
|
|
3b52186538 | ||
|
|
9499006f5d | ||
|
|
dd6bc60245 | ||
|
|
9e40693b46 | ||
|
|
9a1d8f666c | ||
|
|
fc583688b3 | ||
|
|
9df24cf9eb | ||
|
|
3e7b519b35 | ||
|
|
31b25aab35 | ||
|
|
09607080ce | ||
|
|
b353656f13 | ||
|
|
fe25215982 | ||
|
|
08a90e1cca | ||
|
|
b14fa4b715 | ||
|
|
4c2ebf13d5 | ||
|
|
b4e95dcd5a | ||
|
|
38dab66f9d | ||
|
|
b452038de4 | ||
|
|
f23788b801 | ||
|
|
21a0dc8c6a | ||
|
|
a918ae0cf9 | ||
|
|
69cc6a27d1 | ||
|
|
6994be7a5e | ||
|
|
dba2a5a7c7 | ||
|
|
7b50b232ab | ||
|
|
c4b8a5b9de | ||
|
|
48c29d703a | ||
|
|
6f7fd0dfcd | ||
|
|
f52a4ff319 | ||
|
|
a13b3e83ce | ||
|
|
0c68cf4369 | ||
|
|
f7d44bb2ef | ||
|
|
0781ea0be4 | ||
|
|
07fbfc619a | ||
|
|
d9f10d6933 | ||
|
|
34e1a5148b | ||
|
|
e471f55ca6 | ||
|
|
a8e2a1e669 | ||
|
|
76dd650cd7 | ||
|
|
1e36d3c54a | ||
|
|
7e1ad53873 | ||
|
|
2a9964c2e6 | ||
|
|
ead60705b2 | ||
|
|
8d71c5ae93 | ||
|
|
511ff425d7 | ||
|
|
679b7805c4 | ||
|
|
f5e0e639e1 | ||
|
|
06a2eda1da | ||
|
|
6462c32f5f | ||
|
|
3550cece5c | ||
|
|
755c0bdc5d | ||
|
|
175996b239 | ||
|
|
895d40a767 | ||
|
|
3a1833173e | ||
|
|
e8d24adda6 | ||
|
|
9bad4d5db8 | ||
|
|
c94e372ec7 | ||
|
|
90f78851fa | ||
|
|
e73100b250 | ||
|
|
3e1cf87389 | ||
|
|
f76987f991 | ||
|
|
5bdc3d7027 | ||
|
|
099e528d4d | ||
|
|
3da02ee896 | ||
|
|
f16c54ae8c | ||
|
|
5c2cfdcad8 | ||
|
|
5400fc5e09 | ||
|
|
059ea89535 | ||
|
|
55ccde8b7c | ||
|
|
a25fc9202a | ||
|
|
d499a02ffc | ||
|
|
d1a9328f7e | ||
|
|
54d2d73410 | ||
|
|
80e1de8211 | ||
|
|
08230d3328 | ||
|
|
517de0ab21 | ||
|
|
c1cb2b567a | ||
|
|
76073f9272 | ||
|
|
fd462547f3 | ||
|
|
5c65a87e3a | ||
|
|
acd143c294 | ||
|
|
ec00b5d969 | ||
|
|
18e5c75e02 | ||
|
|
0db2a87588 | ||
|
|
973d0d3250 | ||
|
|
8936a9504e | ||
|
|
22a5112af0 | ||
|
|
99ae87ba10 | ||
|
|
b0c5f8414d | ||
|
|
b3e689b905 | ||
|
|
2e832b9098 | ||
|
|
9cc8d6643d | ||
|
|
47fda11426 | ||
|
|
85c4ce8295 | ||
|
|
7a898c20fc | ||
|
|
dae639ec05 | ||
|
|
4819dbb983 | ||
|
|
7e643e8a5d | ||
|
|
5d643e91c9 | ||
|
|
27cd07c728 | ||
|
|
a9de1411e4 | ||
|
|
022c13a360 | ||
|
|
ceba891a32 | ||
|
|
f59d8a8426 | ||
|
|
33986d6ed1 | ||
|
|
cb3390b9f5 | ||
|
|
686a7259ce | ||
|
|
273bf64803 | ||
|
|
a1a8ca58a8 | ||
|
|
0d843e2d71 | ||
|
|
58ae8a9ac1 | ||
|
|
c175a0587d | ||
|
|
c5ef4b1c88 | ||
|
|
5a9569e804 | ||
|
|
f0779e31fe | ||
|
|
0831be3ba4 | ||
|
|
0c750a10f5 | ||
|
|
2f32d7f5fd | ||
|
|
2cf121437d | ||
|
|
dd14b71d04 | ||
|
|
85d11c3bba | ||
|
|
bba9532ea7 | ||
|
|
c9f3f1182e | ||
|
|
63f8b47b8d | ||
|
|
e3c9867b49 | ||
|
|
cef7d9d526 | ||
|
|
501fec720e | ||
|
|
031a93374f | ||
|
|
8fe6dfd981 | ||
|
|
0dc8a66e75 | ||
|
|
dcd246f4ed | ||
|
|
82ba7e55bb | ||
|
|
009add7f30 | ||
|
|
032fbad258 | ||
|
|
e5ca2d25d5 |
137
.clang-format
Normal file
137
.clang-format
Normal file
@@ -0,0 +1,137 @@
|
||||
---
|
||||
Language: Cpp
|
||||
# BasedOnStyle: LLVM
|
||||
AccessModifierOffset: -2
|
||||
AlignAfterOpenBracket: Align
|
||||
AlignConsecutiveMacros: false
|
||||
AlignConsecutiveAssignments: false
|
||||
AlignConsecutiveDeclarations: false
|
||||
AlignEscapedNewlines: Right
|
||||
AlignOperands: true
|
||||
AlignTrailingComments: true
|
||||
AllowAllArgumentsOnNextLine: true
|
||||
AllowAllConstructorInitializersOnNextLine: true
|
||||
AllowAllParametersOfDeclarationOnNextLine: true
|
||||
AllowShortBlocksOnASingleLine: Never
|
||||
AllowShortCaseLabelsOnASingleLine: false
|
||||
AllowShortFunctionsOnASingleLine: All
|
||||
AllowShortLambdasOnASingleLine: All
|
||||
AllowShortIfStatementsOnASingleLine: Never
|
||||
AllowShortLoopsOnASingleLine: false
|
||||
AlwaysBreakAfterDefinitionReturnType: None
|
||||
AlwaysBreakAfterReturnType: None
|
||||
AlwaysBreakBeforeMultilineStrings: false
|
||||
AlwaysBreakTemplateDeclarations: MultiLine
|
||||
BinPackArguments: true
|
||||
BinPackParameters: true
|
||||
BraceWrapping:
|
||||
AfterCaseLabel: false
|
||||
AfterClass: false
|
||||
AfterControlStatement: false
|
||||
AfterEnum: false
|
||||
AfterFunction: false
|
||||
AfterNamespace: false
|
||||
AfterObjCDeclaration: false
|
||||
AfterStruct: false
|
||||
AfterUnion: false
|
||||
AfterExternBlock: false
|
||||
BeforeCatch: false
|
||||
BeforeElse: false
|
||||
IndentBraces: false
|
||||
SplitEmptyFunction: true
|
||||
SplitEmptyRecord: true
|
||||
SplitEmptyNamespace: true
|
||||
BreakBeforeBinaryOperators: None
|
||||
BreakBeforeBraces: Attach
|
||||
BreakBeforeInheritanceComma: false
|
||||
BreakInheritanceList: BeforeColon
|
||||
BreakBeforeTernaryOperators: true
|
||||
BreakConstructorInitializersBeforeComma: false
|
||||
BreakConstructorInitializers: BeforeColon
|
||||
BreakAfterJavaFieldAnnotations: false
|
||||
BreakStringLiterals: true
|
||||
ColumnLimit: 80
|
||||
CommentPragmas: '^ IWYU pragma:'
|
||||
CompactNamespaces: false
|
||||
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
||||
ConstructorInitializerIndentWidth: 4
|
||||
ContinuationIndentWidth: 4
|
||||
Cpp11BracedListStyle: true
|
||||
DeriveLineEnding: true
|
||||
DerivePointerAlignment: false
|
||||
DisableFormat: false
|
||||
ExperimentalAutoDetectBinPacking: false
|
||||
FixNamespaceComments: true
|
||||
ForEachMacros:
|
||||
- foreach
|
||||
- Q_FOREACH
|
||||
- BOOST_FOREACH
|
||||
IncludeBlocks: Preserve
|
||||
IncludeCategories:
|
||||
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
|
||||
Priority: 2
|
||||
SortPriority: 0
|
||||
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
|
||||
Priority: 3
|
||||
SortPriority: 0
|
||||
- Regex: '.*'
|
||||
Priority: 1
|
||||
SortPriority: 0
|
||||
IncludeIsMainRegex: '(Test)?$'
|
||||
IncludeIsMainSourceRegex: ''
|
||||
IndentCaseLabels: false
|
||||
IndentGotoLabels: true
|
||||
IndentPPDirectives: None
|
||||
IndentWidth: 2
|
||||
IndentWrappedFunctionNames: false
|
||||
JavaScriptQuotes: Leave
|
||||
JavaScriptWrapImports: true
|
||||
KeepEmptyLinesAtTheStartOfBlocks: true
|
||||
MacroBlockBegin: ''
|
||||
MacroBlockEnd: ''
|
||||
MaxEmptyLinesToKeep: 1
|
||||
NamespaceIndentation: None
|
||||
ObjCBinPackProtocolList: Auto
|
||||
ObjCBlockIndentWidth: 2
|
||||
ObjCSpaceAfterProperty: false
|
||||
ObjCSpaceBeforeProtocolList: true
|
||||
PenaltyBreakAssignment: 2
|
||||
PenaltyBreakBeforeFirstCallParameter: 19
|
||||
PenaltyBreakComment: 300
|
||||
PenaltyBreakFirstLessLess: 120
|
||||
PenaltyBreakString: 1000
|
||||
PenaltyBreakTemplateDeclaration: 10
|
||||
PenaltyExcessCharacter: 1000000
|
||||
PenaltyReturnTypeOnItsOwnLine: 60
|
||||
PointerAlignment: Right
|
||||
ReflowComments: true
|
||||
SortIncludes: true
|
||||
SortUsingDeclarations: true
|
||||
SpaceAfterCStyleCast: false
|
||||
SpaceAfterLogicalNot: false
|
||||
SpaceAfterTemplateKeyword: true
|
||||
SpaceBeforeAssignmentOperators: true
|
||||
SpaceBeforeCpp11BracedList: false
|
||||
SpaceBeforeCtorInitializerColon: true
|
||||
SpaceBeforeInheritanceColon: true
|
||||
SpaceBeforeParens: ControlStatements
|
||||
SpaceBeforeRangeBasedForLoopColon: true
|
||||
SpaceInEmptyBlock: false
|
||||
SpaceInEmptyParentheses: false
|
||||
SpacesBeforeTrailingComments: 1
|
||||
SpacesInAngles: false
|
||||
SpacesInConditionalStatement: false
|
||||
SpacesInContainerLiterals: true
|
||||
SpacesInCStyleCastParentheses: false
|
||||
SpacesInParentheses: false
|
||||
SpacesInSquareBrackets: false
|
||||
SpaceBeforeSquareBrackets: false
|
||||
Standard: Latest
|
||||
StatementMacros:
|
||||
- Q_UNUSED
|
||||
- QT_REQUIRE_VERSION
|
||||
TabWidth: 8
|
||||
UseCRLF: false
|
||||
UseTab: Never
|
||||
...
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -12,3 +12,5 @@ test/httpserver/node_modules
|
||||
test/httpserver/package-lock.json
|
||||
test/httpserver/nohup.out
|
||||
.idea
|
||||
build/
|
||||
cmake-build-debug/
|
||||
|
||||
103
CMakeLists.txt
103
CMakeLists.txt
@@ -9,11 +9,14 @@ project(alibabacloud-sdk VERSION ${version})
|
||||
message(STATUS "Project version: ${PROJECT_VERSION}")
|
||||
|
||||
set(TARGET_OUTPUT_NAME_PREFIX "alibabacloud-sdk-" CACHE STRING "The target's output name prefix")
|
||||
set(BUILD_PRODUCT "" CACHE STRING "Build by lower name of product")
|
||||
|
||||
option(BUILD_SHARED_LIBS "Enable shared library" ON)
|
||||
option(BUILD_UNIT_TESTS "Enable unit tests" OFF)
|
||||
option(BUILD_FUNCTION_TESTS "Enable function test" OFF)
|
||||
|
||||
set(LIB_TYPE STATIC)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(LIB_TYPE SHARED)
|
||||
add_definitions(-DALIBABACLOUD_SHARED)
|
||||
@@ -29,15 +32,23 @@ include(ExternalProject)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
add_subdirectory(3rdparty)
|
||||
add_subdirectory(core)
|
||||
|
||||
if(BUILD_UNIT_TESTS)
|
||||
enable_testing()
|
||||
add_subdirectory(test/core)
|
||||
enable_testing()
|
||||
add_subdirectory(core)
|
||||
add_subdirectory(test/core)
|
||||
endif()
|
||||
|
||||
if(BUILD_FUNCTION_TESTS)
|
||||
enable_testing()
|
||||
add_subdirectory(core)
|
||||
add_subdirectory(cdn)
|
||||
add_subdirectory(cs)
|
||||
add_subdirectory(ecs)
|
||||
add_subdirectory(nlp)
|
||||
add_subdirectory(rds)
|
||||
add_subdirectory(slb)
|
||||
add_subdirectory(vpc)
|
||||
add_subdirectory(test/function_test/cdn)
|
||||
add_subdirectory(test/function_test/core)
|
||||
add_subdirectory(test/function_test/cs)
|
||||
@@ -48,80 +59,12 @@ if(BUILD_FUNCTION_TESTS)
|
||||
add_subdirectory(test/function_test/vpc)
|
||||
endif()
|
||||
|
||||
add_subdirectory(ecs)
|
||||
add_subdirectory(slb)
|
||||
add_subdirectory(vpc)
|
||||
add_subdirectory(cdn)
|
||||
add_subdirectory(rds)
|
||||
add_subdirectory(cloudphoto)
|
||||
add_subdirectory(tesladam)
|
||||
add_subdirectory(cms)
|
||||
add_subdirectory(afs)
|
||||
add_subdirectory(aegis)
|
||||
add_subdirectory(ehpc)
|
||||
add_subdirectory(cs)
|
||||
add_subdirectory(ccc)
|
||||
add_subdirectory(teslamaxcompute)
|
||||
add_subdirectory(push)
|
||||
add_subdirectory(csb)
|
||||
add_subdirectory(domain)
|
||||
add_subdirectory(green)
|
||||
add_subdirectory(hsm)
|
||||
add_subdirectory(dcdn)
|
||||
add_subdirectory(pvtz)
|
||||
add_subdirectory(cloudauth)
|
||||
add_subdirectory(dyvmsapi)
|
||||
add_subdirectory(drds)
|
||||
add_subdirectory(jarvis)
|
||||
add_subdirectory(scdn)
|
||||
add_subdirectory(live)
|
||||
add_subdirectory(rtc)
|
||||
add_subdirectory(chatbot)
|
||||
add_subdirectory(teslastream)
|
||||
add_subdirectory(mopen)
|
||||
add_subdirectory(iot)
|
||||
add_subdirectory(linkface)
|
||||
add_subdirectory(ots)
|
||||
add_subdirectory(smartag)
|
||||
add_subdirectory(vod)
|
||||
add_subdirectory(ccs)
|
||||
add_subdirectory(saf)
|
||||
add_subdirectory(arms)
|
||||
add_subdirectory(lubancloud)
|
||||
add_subdirectory(alimt)
|
||||
add_subdirectory(xspace)
|
||||
add_subdirectory(cbn)
|
||||
add_subdirectory(ram)
|
||||
add_subdirectory(sts)
|
||||
add_subdirectory(gpdb)
|
||||
add_subdirectory(cr)
|
||||
add_subdirectory(openanalytics)
|
||||
add_subdirectory(snsuapi)
|
||||
add_subdirectory(ubsms)
|
||||
add_subdirectory(yundun)
|
||||
add_subdirectory(arms4finance)
|
||||
add_subdirectory(imagesearch)
|
||||
add_subdirectory(cas)
|
||||
add_subdirectory(cloudwf)
|
||||
add_subdirectory(alidns)
|
||||
add_subdirectory(httpdns)
|
||||
|
||||
add_subdirectory(crm)
|
||||
add_subdirectory(kms)
|
||||
add_subdirectory(sas-api)
|
||||
add_subdirectory(jarvis-public)
|
||||
add_subdirectory(mts)
|
||||
add_subdirectory(dysmsapi)
|
||||
add_subdirectory(ons)
|
||||
add_subdirectory(ivision)
|
||||
add_subdirectory(imm)
|
||||
add_subdirectory(bssopenapi)
|
||||
|
||||
add_subdirectory(sas)
|
||||
|
||||
add_subdirectory(dbs)
|
||||
add_subdirectory(r-kvstore)
|
||||
add_subdirectory(dds)
|
||||
add_subdirectory(yundun-ds)
|
||||
add_subdirectory(trademark)
|
||||
add_subdirectory(sddp)
|
||||
if(BUILD_PRODUCT STREQUAL "")
|
||||
message(WARNING "Please set the value of 'BUILD_PRODUCT'")
|
||||
elseif(BUILD_PRODUCT STREQUAL "core")
|
||||
add_subdirectory(core)
|
||||
else()
|
||||
add_subdirectory(core)
|
||||
add_subdirectory(${BUILD_PRODUCT})
|
||||
message(STATUS "'BUILD_PRODUCT'=${BUILD_PRODUCT}")
|
||||
endif()
|
||||
|
||||
141
README-CN.md
141
README-CN.md
@@ -1,6 +1,5 @@
|
||||
[English](./README.md) | 简体中文
|
||||
|
||||
|
||||
<p align="center">
|
||||
<a href="https://www.alibabacloud.com"><img src="https://aliyunsdk-pages.alicdn.com/icons/Aliyun.svg"></a>
|
||||
</p>
|
||||
@@ -12,12 +11,10 @@
|
||||
<a href="https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk"><img src="https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk/branch/master/graph/badge.svg" alt="codecov"></a>
|
||||
</p>
|
||||
|
||||
|
||||
Alibaba Cloud SDK for C++ 让您不用复杂编程即可访问云服务器、负载均衡、云监控等阿里云服务。这里向您介绍如何获取 Alibaba Cloud SDK for C++ 并开始调用。
|
||||
|
||||
如果您在使用的过程中遇到任何问题,欢迎前往[阿里云SDK问答社区](https://yq.aliyun.com/tags/type_ask-tagid_23350)提问,提问前请阅读[提问引导](https://help.aliyun.com/document_detail/93957.html)。亦可在当前 GitHub [提交 Issues](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new)。
|
||||
|
||||
|
||||
## 环境要求
|
||||
|
||||
在使用 Alibaba Cloud SDK for C++ 前,确保您已经:
|
||||
@@ -29,93 +26,98 @@ Alibaba Cloud SDK for C++ 让您不用复杂编程即可访问云服务器、负
|
||||
* 开通了云产品服务。有些云产品如对象存储(OSS)需要先在[阿里云控制台](https://home.console.aliyun.com)开通服务。
|
||||
|
||||
* 安装支持 C++ 11 或更高版本的编译器:
|
||||
* Windows: Visual Studio 2015 或以上版本
|
||||
* Linux: GCC 4.9 或以上版本
|
||||
* Windows: Visual Studio 2015 或以上版本
|
||||
* Linux: GCC 4.9 或以上版本
|
||||
|
||||
* 安装 CMake 3.0 或以上版本
|
||||
* 建议 4G 或以上内存
|
||||
|
||||
## 安装 (从源代码构建)
|
||||
|
||||
1. 从 GitHub 下载或 Git 克隆 [aliyun-openapi-cpp-sdk](https://github.com/aliyun/aliyun-openapi-cpp-sdk)
|
||||
|
||||
* 直接下载 https://github.com/aliyun/aliyun-openapi-cpp-sdk/archive/master.zip
|
||||
* 使用 Git 命令获取
|
||||
|
||||
```
|
||||
git clone https://github.com/aliyun/aliyun-openapi-cpp-sdk.git
|
||||
```
|
||||
|
||||
2. 创建生成必要的构建文件
|
||||
|
||||
```bash
|
||||
cd <path/to/aliyun-openapi-cpp-sdk>
|
||||
mkdir sdk_build
|
||||
cd sdk_build
|
||||
cmake ..
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
要在 Linux 平台进行编译, 您必须安装依赖的外部库文件 libcurl、libopenssl、libuuid、libjsoncpp, 通常情况下,系统的包管理器中的会有提供。
|
||||
1. 要在 Linux 平台进行编译, 您必须安装依赖的外部库文件 libcurl、libopenssl、libuuid、libjsoncpp, 通常情况下,系统的包管理器中的会有提供。
|
||||
|
||||
例如:在基于 Redhat / Fedora 的系统上安装这些软件包
|
||||
* 例如:在基于 Redhat / Fedora 的系统上安装这些软件包
|
||||
|
||||
```bash
|
||||
# use yum
|
||||
yum install jsoncpp-devel openssl-devel uuid-devel libcurl-devel
|
||||
|
||||
# use dnf
|
||||
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel
|
||||
```
|
||||
|
||||
在基于 Debian/Ubuntu 的系统
|
||||
* 在基于 Debian/Ubuntu 的系统
|
||||
|
||||
```bash
|
||||
sudo apt-get install libcurl4-openssl-dev libssl-dev uuid-dev libjsoncpp-dev
|
||||
```
|
||||
|
||||
在安装依赖库后执行以下命令编译并安装:
|
||||
|
||||
手动编译安装
|
||||
```bash
|
||||
cd aliyun-openapi-cpp-sdk
|
||||
mkdir sdk_build
|
||||
cd sdk_build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
|
||||
make
|
||||
sudo make install
|
||||
```
|
||||
|
||||
或者通过 `easyinstall.sh`一键式安装
|
||||
2. 执行以下命令,从 Github 克隆源码
|
||||
|
||||
```bash
|
||||
cd aliyun-openapi-cpp-sdk
|
||||
sudo sh easyinstall.sh
|
||||
git clone https://github.com/aliyun/aliyun-openapi-cpp-sdk.git
|
||||
```
|
||||
|
||||
**Alibaba Cloud SDK for C++ 将被安装在 `/usr`.**
|
||||
3. 编译安装
|
||||
|
||||
* 手动编译安装
|
||||
|
||||
```bash
|
||||
cd aliyun-openapi-cpp-sdk
|
||||
mkdir sdk_build
|
||||
cd sdk_build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
|
||||
make
|
||||
sudo make install
|
||||
```
|
||||
|
||||
* 或者通过 `easyinstall.sh`一键式安装
|
||||
|
||||
```bash
|
||||
cd aliyun-openapi-cpp-sdk
|
||||
sudo sh easyinstall.sh <lower name of product (like 'ecs')>
|
||||
|
||||
# example
|
||||
sudo sh easyinstall.sh core
|
||||
sudo sh easyinstall.sh ecs
|
||||
```
|
||||
|
||||
**Alibaba Cloud SDK for C++ 将被安装在 `/usr` .**
|
||||
|
||||
### Windows
|
||||
|
||||
通过 cmake 生成 Visual Studio 解决方案:
|
||||
1. 安装 [perl](https://www.perl.org/get.html#win32)
|
||||
|
||||
在 aliyun-openapi-cpp-sdk 下创建 sdk_build 目录
|
||||
2. 使用 git-bash 执行以下命令,从 Github 克隆源码
|
||||
|
||||
打开 cmake-ui 选择源代码目录和构建目录,点击 `配置(configure)` 和 `生成(generate)` 构建 VS 解决方案。
|
||||
```bash
|
||||
git clone https://github.com/aliyun/aliyun-openapi-cpp-sdk.git
|
||||
```
|
||||
|
||||
进入 sdk_build 目录使用 Visual Studio 打开 alibabacloud-sdk.sln 解决方案。
|
||||
3. 使用 Visual Studio 进行编译:
|
||||
|
||||
选择构建 `Release` 输出,并打开配置管理器勾选 `INSTALL`。
|
||||
* 在 aliyun-openapi-cpp-sdk 下创建 `sdk_build` 目录
|
||||
* 打开 cmake-gui , 然后进行以下操作
|
||||
* 选择 `Browse Source` 为 `源代码目录(aliyun-openapi-cpp-sdk)`
|
||||
* 选择 `Browse build` 为 `构建目录(sdk_build)`
|
||||
* 点击 `configure`
|
||||
* 使用小写的产品名称,设置 `BUILD_PRODUCT` 参数的值
|
||||
* 点击 `generate`, 构建 VS 解决方案。
|
||||
|
||||
构建 -> 生成解决方案。
|
||||
4. 编译安装 C++ SDK
|
||||
|
||||
或者您也可以使用 VS 的开发人员命令提示符,执行以下命令编译并安装:
|
||||
|
||||
```
|
||||
msbuild ALL_BUILD.vcxproj
|
||||
msbuild INSTALL.vcxproj
|
||||
```
|
||||
* 进入 sdk_build 目录,使用 Visual Studio 打开 alibabacloud-sdk.sln 解决方案
|
||||
* 选择构建 `Release` 输出
|
||||
* 并打开配置管理器勾选 `INSTALL`
|
||||
* 构建 -> 生成解决方案
|
||||
|
||||
**Alibaba Cloud SDK for C++ 将安装在 `C:\Program File (x86)\alibabacloud-sdk` 目录**
|
||||
|
||||
**注意:请以管理员身份运行 Visual Studio,否则无法安装 SDK**
|
||||
**注意:请以管理员身份运行 Visual Studio 和 cmake-gui,否则无法安装 SDK**
|
||||
|
||||
---
|
||||
|
||||
## 快速使用
|
||||
|
||||
@@ -125,7 +127,7 @@ msbuild INSTALL.vcxproj
|
||||
|
||||
> **说明:** 您需要替换示例中的 your-region-id、your-access-key-id 和 your-access-key-secret 的值。
|
||||
|
||||
```
|
||||
```cpp
|
||||
#include <iostream>
|
||||
#include <alibabacloud/core/AlibabaCloud.h>
|
||||
#include <alibabacloud/ecs/EcsClient.h>
|
||||
@@ -176,23 +178,19 @@ Linux 下
|
||||
|
||||
CPP SDK 使用 libcurl 作为底层 HTTP 传输库。
|
||||
|
||||
- 下面两个参数用来传递超时参数到 libcurl。
|
||||
* 下面两个参数用来传递超时参数到 libcurl。
|
||||
* `connectTimeout`: 连接超时设置。 [参考](https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT_MS.html).
|
||||
* `readTimeout`: 传输超时设置。[参考](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT_MS.html)
|
||||
|
||||
- `connectTimeout`: 连接超时设置。 [参考](https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT_MS.html).
|
||||
* 默认值
|
||||
* connectTimeout: 5000ms
|
||||
* readTimeout: 10000ms
|
||||
|
||||
- `readTimeout`: 传输超时设置。[参考](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT_MS.html)
|
||||
* 可以在创建 Client 或者发 Requst 设置超时参数。
|
||||
|
||||
- 默认值
|
||||
* Requst 设置优先级高于 Client 设置。
|
||||
|
||||
- connectTimeout: 5000ms
|
||||
|
||||
- readTimeout: 10000ms
|
||||
|
||||
- 可以在创建 Client 或者发 Requst 设置超时参数。
|
||||
|
||||
- Requst 设置优先级高于 Client 设置。
|
||||
|
||||
- 输入 0 或者 -1 到 `setConnectTimeout` 和 `setReadTimeout` 可以禁用此功能。
|
||||
* 输入 0 或者 -1 到 `setConnectTimeout` 和 `setReadTimeout` 可以禁用此功能。
|
||||
|
||||
下面代码是设置超时参数的例子,由于 Request 优先级高于 Client,所以最终 `ConnectTimeout` 为 `1000ms`, `readTimeout` 为 `6000ms`。
|
||||
|
||||
@@ -240,19 +238,24 @@ int main(int argc, char** argv) {
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
**更多 [例程](https://github.com/aliyun/aliyun-openapi-cpp-sdk/tree/master/examples)**
|
||||
|
||||
## 问题
|
||||
|
||||
[提交 Issue](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new/choose), 不符合指南的问题可能会立即关闭。
|
||||
|
||||
## 发行说明
|
||||
|
||||
每个版本的详细更改记录在[发行说明](CHANGELOG)中。
|
||||
|
||||
## 贡献
|
||||
|
||||
提交 Pull Request 之前请阅读[贡献指南](CONTRIBUTING.md)。
|
||||
|
||||
## 许可证
|
||||
|
||||
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||
|
||||
版权所有 1999-2019 阿里巴巴集团
|
||||
|
||||
83
README.md
83
README.md
@@ -1,6 +1,5 @@
|
||||
English | [简体中文](./README-CN.md)
|
||||
|
||||
|
||||
<p align="center">
|
||||
<a href="https://www.alibabacloud.com"><img src="https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg"></a>
|
||||
</p>
|
||||
@@ -12,7 +11,6 @@ English | [简体中文](./README-CN.md)
|
||||
<a href="https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk"><img src="https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk/branch/master/graph/badge.svg" alt="codecov"></a>
|
||||
</p>
|
||||
|
||||
|
||||
Alibaba Cloud SDK for C++ allows you to access Alibaba Cloud services such as Elastic Compute Service (ECS), Server Load Balancer (SLB), and CloudMonitor. You can access Alibaba Cloud services without the need to handle API related tasks, such as signing and constructing your requests.
|
||||
|
||||
This document introduces how to obtain and call this SDK.
|
||||
@@ -23,9 +21,9 @@ If you have any problem while using Alibaba Cloud SDK for C++, please submit an
|
||||
|
||||
- To use this SDK, you must have an Alibaba Cloud account and an AccessKey.
|
||||
|
||||
The AccessKey is required when initializing the client. You can create an AccessKey in the Alibaba Cloud console. For more information, see [Create an AccessKey](https://usercenter.console.aliyun.com/?spm=5176.doc52740.2.3.QKZk8w#/manage/ak).
|
||||
The AccessKey is required when initializing the client. You can create an AccessKey in the Alibaba Cloud console. For more information, see [Create an AccessKey](https://usercenter.console.aliyun.com/?spm=5176.doc52740.2.3.QKZk8w#/manage/ak).
|
||||
|
||||
>**Note:** To increase the security of your account, we recommend that you use the AccessKey of the RAM user to access Alibaba Cloud services.
|
||||
>**Note:** To increase the security of your account, we recommend that you use the AccessKey of the RAM user to access Alibaba Cloud services.
|
||||
|
||||
- To use this SDK to access the APIs of a product, you must first activate the product on the [Alibaba Cloud console](https://home.console.aliyun.com/?spm=5176.doc52740.2.4.QKZk8w) if required.
|
||||
|
||||
@@ -41,39 +39,51 @@ If you have any problem while using Alibaba Cloud SDK for C++, please submit an
|
||||
|
||||
1. Install third-party libraries on the Linux platform, including `libcurl`, `libopenssl`, `libuuid`, and `libjsoncpp`.
|
||||
|
||||
- Run the following commands on the `Redhat/Fedora` system
|
||||
```
|
||||
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel
|
||||
```
|
||||
- Run the following commands on the `Debian/Ubuntu` system
|
||||
```
|
||||
sudo apt-get install libcurl4-openssl-dev libssl-dev uuid-dev libjsoncpp-dev
|
||||
```
|
||||
- Run the following commands on the `Redhat/Fedora` system
|
||||
|
||||
```bash
|
||||
# use yum
|
||||
yum install jsoncpp-devel openssl-devel uuid-devel libcurl-devel
|
||||
|
||||
# use dnf
|
||||
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel
|
||||
```
|
||||
|
||||
- Run the following commands on the `Debian/Ubuntu` system
|
||||
|
||||
```bash
|
||||
sudo apt-get install libcurl4-openssl-dev libssl-dev uuid-dev libjsoncpp-dev
|
||||
```
|
||||
|
||||
2. Run the following commands to clone source codes from GitHub.
|
||||
|
||||
```bash
|
||||
git clone https://github.com/aliyun/aliyun-openapi-cpp-sdk.git
|
||||
```
|
||||
```bash
|
||||
git clone https://github.com/aliyun/aliyun-openapi-cpp-sdk.git
|
||||
```
|
||||
|
||||
3. Build and install SDK
|
||||
|
||||
- Manually build and install
|
||||
- Manually build and install
|
||||
|
||||
```bash
|
||||
cd aliyun-openapi-cpp-sdk
|
||||
mkdir sdk_build
|
||||
cd sdk_build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
|
||||
make
|
||||
sudo make install
|
||||
```
|
||||
```bash
|
||||
cd aliyun-openapi-cpp-sdk
|
||||
mkdir sdk_build
|
||||
cd sdk_build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
|
||||
make
|
||||
sudo make install
|
||||
```
|
||||
|
||||
- Or you may do this with `easyinstall.sh` in the source directory
|
||||
- Or you may do this with `easyinstall.sh` in the source directory
|
||||
|
||||
```shell
|
||||
cd aliyun-openapi-cpp-sdk
|
||||
sudo sh easyinstall.sh
|
||||
```
|
||||
```bash
|
||||
cd aliyun-openapi-cpp-sdk
|
||||
sudo sh easyinstall.sh <lower name of product (like 'ecs')>
|
||||
|
||||
# example
|
||||
sudo sh easyinstall.sh core
|
||||
sudo sh easyinstall.sh ecs
|
||||
```
|
||||
|
||||
**The Alibaba Cloud SDK for C++ will be installed to `/usr`.**
|
||||
|
||||
@@ -83,11 +93,11 @@ If you have any problem while using Alibaba Cloud SDK for C++, please submit an
|
||||
|
||||
2. Run the following command to clone code from Github via git-bash:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/aliyun/aliyun-openapi-cpp-sdk.git
|
||||
```
|
||||
```bash
|
||||
git clone https://github.com/aliyun/aliyun-openapi-cpp-sdk.git
|
||||
```
|
||||
|
||||
2. Build Visual Studio solution
|
||||
3. Build Visual Studio solution
|
||||
|
||||
- Change directory to source code and make directory sdk_build
|
||||
|
||||
@@ -95,13 +105,15 @@ If you have any problem while using Alibaba Cloud SDK for C++, please submit an
|
||||
|
||||
- `Browse Source` to open source code directory.
|
||||
|
||||
- `Browse build` to open the created sdk_build directory
|
||||
- `Browse build` to open the created `sdk_build` directory
|
||||
|
||||
- `Configure`
|
||||
|
||||
- use the lower name of product to set the value of `BUILD_PRODUCT`
|
||||
|
||||
- `Generate`
|
||||
|
||||
3. Build and Install C++ SDK
|
||||
4. Build and Install C++ SDK
|
||||
|
||||
- Open `aliyun-openapi-cpp-sdk\\sdk_build\\alibabacloud-sdk.sln` with Visual Studio
|
||||
|
||||
@@ -113,6 +125,7 @@ If you have any problem while using Alibaba Cloud SDK for C++, please submit an
|
||||
|
||||
**Alibaba Cloud SDK for C++ will be installed to `C:\Program File (x86)\alibabacloud-sdk`**
|
||||
|
||||
---
|
||||
|
||||
## Quick Examples
|
||||
|
||||
|
||||
118
acm/CMakeLists.txt
Normal file
118
acm/CMakeLists.txt
Normal file
@@ -0,0 +1,118 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT 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(acm_public_header
|
||||
include/alibabacloud/acm/AcmClient.h
|
||||
include/alibabacloud/acm/AcmExport.h )
|
||||
|
||||
set(acm_public_header_model
|
||||
include/alibabacloud/acm/model/CreateConfigurationRequest.h
|
||||
include/alibabacloud/acm/model/CreateConfigurationResult.h
|
||||
include/alibabacloud/acm/model/CreateNamespaceRequest.h
|
||||
include/alibabacloud/acm/model/CreateNamespaceResult.h
|
||||
include/alibabacloud/acm/model/DeleteConfigurationRequest.h
|
||||
include/alibabacloud/acm/model/DeleteConfigurationResult.h
|
||||
include/alibabacloud/acm/model/DeleteNamespaceRequest.h
|
||||
include/alibabacloud/acm/model/DeleteNamespaceResult.h
|
||||
include/alibabacloud/acm/model/DeployConfigurationRequest.h
|
||||
include/alibabacloud/acm/model/DeployConfigurationResult.h
|
||||
include/alibabacloud/acm/model/DescribeConfigurationRequest.h
|
||||
include/alibabacloud/acm/model/DescribeConfigurationResult.h
|
||||
include/alibabacloud/acm/model/DescribeNamespaceRequest.h
|
||||
include/alibabacloud/acm/model/DescribeNamespaceResult.h
|
||||
include/alibabacloud/acm/model/DescribeNamespacesRequest.h
|
||||
include/alibabacloud/acm/model/DescribeNamespacesResult.h
|
||||
include/alibabacloud/acm/model/UpdateNamespaceRequest.h
|
||||
include/alibabacloud/acm/model/UpdateNamespaceResult.h )
|
||||
|
||||
set(acm_src
|
||||
src/AcmClient.cc
|
||||
src/model/CreateConfigurationRequest.cc
|
||||
src/model/CreateConfigurationResult.cc
|
||||
src/model/CreateNamespaceRequest.cc
|
||||
src/model/CreateNamespaceResult.cc
|
||||
src/model/DeleteConfigurationRequest.cc
|
||||
src/model/DeleteConfigurationResult.cc
|
||||
src/model/DeleteNamespaceRequest.cc
|
||||
src/model/DeleteNamespaceResult.cc
|
||||
src/model/DeployConfigurationRequest.cc
|
||||
src/model/DeployConfigurationResult.cc
|
||||
src/model/DescribeConfigurationRequest.cc
|
||||
src/model/DescribeConfigurationResult.cc
|
||||
src/model/DescribeNamespaceRequest.cc
|
||||
src/model/DescribeNamespaceResult.cc
|
||||
src/model/DescribeNamespacesRequest.cc
|
||||
src/model/DescribeNamespacesResult.cc
|
||||
src/model/UpdateNamespaceRequest.cc
|
||||
src/model/UpdateNamespaceResult.cc )
|
||||
|
||||
add_library(acm ${LIB_TYPE}
|
||||
${acm_public_header}
|
||||
${acm_public_header_model}
|
||||
${acm_src})
|
||||
|
||||
set_target_properties(acm
|
||||
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}acm
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(acm
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ACM_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(acm
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(acm
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(acm
|
||||
jsoncpp)
|
||||
target_include_directories(acm
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(acm
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(acm
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(acm
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(acm
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${acm_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/acm)
|
||||
install(FILES ${acm_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/acm/model)
|
||||
install(TARGETS acm
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
118
acm/include/alibabacloud/acm/AcmClient.h
Normal file
118
acm/include/alibabacloud/acm/AcmClient.h
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ACM_ACMCLIENT_H_
|
||||
#define ALIBABACLOUD_ACM_ACMCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RoaServiceClient.h>
|
||||
#include "AcmExport.h"
|
||||
#include "model/CreateConfigurationRequest.h"
|
||||
#include "model/CreateConfigurationResult.h"
|
||||
#include "model/CreateNamespaceRequest.h"
|
||||
#include "model/CreateNamespaceResult.h"
|
||||
#include "model/DeleteConfigurationRequest.h"
|
||||
#include "model/DeleteConfigurationResult.h"
|
||||
#include "model/DeleteNamespaceRequest.h"
|
||||
#include "model/DeleteNamespaceResult.h"
|
||||
#include "model/DeployConfigurationRequest.h"
|
||||
#include "model/DeployConfigurationResult.h"
|
||||
#include "model/DescribeConfigurationRequest.h"
|
||||
#include "model/DescribeConfigurationResult.h"
|
||||
#include "model/DescribeNamespaceRequest.h"
|
||||
#include "model/DescribeNamespaceResult.h"
|
||||
#include "model/DescribeNamespacesRequest.h"
|
||||
#include "model/DescribeNamespacesResult.h"
|
||||
#include "model/UpdateNamespaceRequest.h"
|
||||
#include "model/UpdateNamespaceResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT AcmClient : public RoaServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CreateConfigurationResult> CreateConfigurationOutcome;
|
||||
typedef std::future<CreateConfigurationOutcome> CreateConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::CreateConfigurationRequest&, const CreateConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateNamespaceResult> CreateNamespaceOutcome;
|
||||
typedef std::future<CreateNamespaceOutcome> CreateNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::CreateNamespaceRequest&, const CreateNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateNamespaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteConfigurationResult> DeleteConfigurationOutcome;
|
||||
typedef std::future<DeleteConfigurationOutcome> DeleteConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::DeleteConfigurationRequest&, const DeleteConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteNamespaceResult> DeleteNamespaceOutcome;
|
||||
typedef std::future<DeleteNamespaceOutcome> DeleteNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::DeleteNamespaceRequest&, const DeleteNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteNamespaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeployConfigurationResult> DeployConfigurationOutcome;
|
||||
typedef std::future<DeployConfigurationOutcome> DeployConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::DeployConfigurationRequest&, const DeployConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeployConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeConfigurationResult> DescribeConfigurationOutcome;
|
||||
typedef std::future<DescribeConfigurationOutcome> DescribeConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::DescribeConfigurationRequest&, const DescribeConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeNamespaceResult> DescribeNamespaceOutcome;
|
||||
typedef std::future<DescribeNamespaceOutcome> DescribeNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::DescribeNamespaceRequest&, const DescribeNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNamespaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeNamespacesResult> DescribeNamespacesOutcome;
|
||||
typedef std::future<DescribeNamespacesOutcome> DescribeNamespacesOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::DescribeNamespacesRequest&, const DescribeNamespacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNamespacesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateNamespaceResult> UpdateNamespaceOutcome;
|
||||
typedef std::future<UpdateNamespaceOutcome> UpdateNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::UpdateNamespaceRequest&, const UpdateNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateNamespaceAsyncHandler;
|
||||
|
||||
AcmClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
AcmClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
AcmClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~AcmClient();
|
||||
CreateConfigurationOutcome createConfiguration(const Model::CreateConfigurationRequest &request)const;
|
||||
void createConfigurationAsync(const Model::CreateConfigurationRequest& request, const CreateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateConfigurationOutcomeCallable createConfigurationCallable(const Model::CreateConfigurationRequest& request) const;
|
||||
CreateNamespaceOutcome createNamespace(const Model::CreateNamespaceRequest &request)const;
|
||||
void createNamespaceAsync(const Model::CreateNamespaceRequest& request, const CreateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateNamespaceOutcomeCallable createNamespaceCallable(const Model::CreateNamespaceRequest& request) const;
|
||||
DeleteConfigurationOutcome deleteConfiguration(const Model::DeleteConfigurationRequest &request)const;
|
||||
void deleteConfigurationAsync(const Model::DeleteConfigurationRequest& request, const DeleteConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteConfigurationOutcomeCallable deleteConfigurationCallable(const Model::DeleteConfigurationRequest& request) const;
|
||||
DeleteNamespaceOutcome deleteNamespace(const Model::DeleteNamespaceRequest &request)const;
|
||||
void deleteNamespaceAsync(const Model::DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteNamespaceOutcomeCallable deleteNamespaceCallable(const Model::DeleteNamespaceRequest& request) const;
|
||||
DeployConfigurationOutcome deployConfiguration(const Model::DeployConfigurationRequest &request)const;
|
||||
void deployConfigurationAsync(const Model::DeployConfigurationRequest& request, const DeployConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeployConfigurationOutcomeCallable deployConfigurationCallable(const Model::DeployConfigurationRequest& request) const;
|
||||
DescribeConfigurationOutcome describeConfiguration(const Model::DescribeConfigurationRequest &request)const;
|
||||
void describeConfigurationAsync(const Model::DescribeConfigurationRequest& request, const DescribeConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeConfigurationOutcomeCallable describeConfigurationCallable(const Model::DescribeConfigurationRequest& request) const;
|
||||
DescribeNamespaceOutcome describeNamespace(const Model::DescribeNamespaceRequest &request)const;
|
||||
void describeNamespaceAsync(const Model::DescribeNamespaceRequest& request, const DescribeNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeNamespaceOutcomeCallable describeNamespaceCallable(const Model::DescribeNamespaceRequest& request) const;
|
||||
DescribeNamespacesOutcome describeNamespaces(const Model::DescribeNamespacesRequest &request)const;
|
||||
void describeNamespacesAsync(const Model::DescribeNamespacesRequest& request, const DescribeNamespacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeNamespacesOutcomeCallable describeNamespacesCallable(const Model::DescribeNamespacesRequest& request) const;
|
||||
UpdateNamespaceOutcome updateNamespace(const Model::UpdateNamespaceRequest &request)const;
|
||||
void updateNamespaceAsync(const Model::UpdateNamespaceRequest& request, const UpdateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateNamespaceOutcomeCallable updateNamespaceCallable(const Model::UpdateNamespaceRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ACM_ACMCLIENT_H_
|
||||
32
acm/include/alibabacloud/acm/AcmExport.h
Normal file
32
acm/include/alibabacloud/acm/AcmExport.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_ACM_ACMEXPORT_H_
|
||||
#define ALIBABACLOUD_ACM_ACMEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ACM_LIBRARY)
|
||||
# define ALIBABACLOUD_ACM_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ACM_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ACM_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ACM_ACMEXPORT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_CREATECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_CREATECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT CreateConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateConfigurationRequest();
|
||||
~CreateConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
std::string getDesc()const;
|
||||
void setDesc(const std::string& desc);
|
||||
std::string getTags()const;
|
||||
void setTags(const std::string& tags);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string appName_;
|
||||
std::string namespaceId_;
|
||||
std::string type_;
|
||||
std::string content_;
|
||||
std::string group_;
|
||||
std::string desc_;
|
||||
std::string tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_CREATECONFIGURATIONREQUEST_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_ACM_MODEL_CREATECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_CREATECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT CreateConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateConfigurationResult();
|
||||
explicit CreateConfigurationResult(const std::string &payload);
|
||||
~CreateConfigurationResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_CREATECONFIGURATIONRESULT_H_
|
||||
48
acm/include/alibabacloud/acm/model/CreateNamespaceRequest.h
Normal file
48
acm/include/alibabacloud/acm/model/CreateNamespaceRequest.h
Normal file
@@ -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_ACM_MODEL_CREATENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_CREATENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT CreateNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateNamespaceRequest();
|
||||
~CreateNamespaceRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_CREATENAMESPACEREQUEST_H_
|
||||
55
acm/include/alibabacloud/acm/model/CreateNamespaceResult.h
Normal file
55
acm/include/alibabacloud/acm/model/CreateNamespaceResult.h
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_CREATENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_CREATENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT CreateNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateNamespaceResult();
|
||||
explicit CreateNamespaceResult(const std::string &payload);
|
||||
~CreateNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getNamespaceId()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string namespaceId_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_CREATENAMESPACERESULT_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_ACM_MODEL_DELETECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DELETECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DeleteConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteConfigurationRequest();
|
||||
~DeleteConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string namespaceId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DELETECONFIGURATIONREQUEST_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_ACM_MODEL_DELETECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DELETECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DeleteConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteConfigurationResult();
|
||||
explicit DeleteConfigurationResult(const std::string &payload);
|
||||
~DeleteConfigurationResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DELETECONFIGURATIONRESULT_H_
|
||||
48
acm/include/alibabacloud/acm/model/DeleteNamespaceRequest.h
Normal file
48
acm/include/alibabacloud/acm/model/DeleteNamespaceRequest.h
Normal file
@@ -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_ACM_MODEL_DELETENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DELETENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DeleteNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteNamespaceRequest();
|
||||
~DeleteNamespaceRequest();
|
||||
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
|
||||
private:
|
||||
std::string namespaceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DELETENAMESPACEREQUEST_H_
|
||||
53
acm/include/alibabacloud/acm/model/DeleteNamespaceResult.h
Normal file
53
acm/include/alibabacloud/acm/model/DeleteNamespaceResult.h
Normal file
@@ -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_ACM_MODEL_DELETENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DELETENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DeleteNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteNamespaceResult();
|
||||
explicit DeleteNamespaceResult(const std::string &payload);
|
||||
~DeleteNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DELETENAMESPACERESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_DEPLOYCONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DEPLOYCONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DeployConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeployConfigurationRequest();
|
||||
~DeployConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
std::string getDesc()const;
|
||||
void setDesc(const std::string& desc);
|
||||
std::string getTags()const;
|
||||
void setTags(const std::string& tags);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string appName_;
|
||||
std::string namespaceId_;
|
||||
std::string type_;
|
||||
std::string content_;
|
||||
std::string group_;
|
||||
std::string desc_;
|
||||
std::string tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DEPLOYCONFIGURATIONREQUEST_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_ACM_MODEL_DEPLOYCONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DEPLOYCONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DeployConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeployConfigurationResult();
|
||||
explicit DeployConfigurationResult(const std::string &payload);
|
||||
~DeployConfigurationResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DEPLOYCONFIGURATIONRESULT_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_ACM_MODEL_DESCRIBECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DESCRIBECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DescribeConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeConfigurationRequest();
|
||||
~DescribeConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string namespaceId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DESCRIBECONFIGURATIONREQUEST_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_DESCRIBECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DESCRIBECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DescribeConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Configuration
|
||||
{
|
||||
std::string desc;
|
||||
std::string group;
|
||||
std::string type;
|
||||
std::string dataId;
|
||||
std::string content;
|
||||
std::string tags;
|
||||
std::string appName;
|
||||
std::string md5;
|
||||
};
|
||||
|
||||
|
||||
DescribeConfigurationResult();
|
||||
explicit DescribeConfigurationResult(const std::string &payload);
|
||||
~DescribeConfigurationResult();
|
||||
Configuration getConfiguration()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Configuration configuration_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DESCRIBECONFIGURATIONRESULT_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_ACM_MODEL_DESCRIBENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DescribeNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeNamespaceRequest();
|
||||
~DescribeNamespaceRequest();
|
||||
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
|
||||
private:
|
||||
std::string namespaceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACEREQUEST_H_
|
||||
63
acm/include/alibabacloud/acm/model/DescribeNamespaceResult.h
Normal file
63
acm/include/alibabacloud/acm/model/DescribeNamespaceResult.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DescribeNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct _Namespace
|
||||
{
|
||||
std::string secretKey;
|
||||
std::string endpoint;
|
||||
std::string accessKey;
|
||||
std::string regionId;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
DescribeNamespaceResult();
|
||||
explicit DescribeNamespaceResult(const std::string &payload);
|
||||
~DescribeNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
_Namespace get_Namespace()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
_Namespace _namespace_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACERESULT_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_ACM_MODEL_DESCRIBENAMESPACESREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DescribeNamespacesRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeNamespacesRequest();
|
||||
~DescribeNamespacesRequest();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACESREQUEST_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_ACM_MODEL_DESCRIBENAMESPACESRESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DescribeNamespacesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct _Namespace
|
||||
{
|
||||
std::string namespaceName;
|
||||
int type;
|
||||
int quota;
|
||||
int configCount;
|
||||
std::string namespaceId;
|
||||
};
|
||||
|
||||
|
||||
DescribeNamespacesResult();
|
||||
explicit DescribeNamespacesResult(const std::string &payload);
|
||||
~DescribeNamespacesResult();
|
||||
std::vector<_Namespace> getNamespaces()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<_Namespace> namespaces_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACESRESULT_H_
|
||||
51
acm/include/alibabacloud/acm/model/UpdateNamespaceRequest.h
Normal file
51
acm/include/alibabacloud/acm/model/UpdateNamespaceRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACM_MODEL_UPDATENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_UPDATENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT UpdateNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateNamespaceRequest();
|
||||
~UpdateNamespaceRequest();
|
||||
|
||||
std::string getNamespaceName()const;
|
||||
void setNamespaceName(const std::string& namespaceName);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
|
||||
private:
|
||||
std::string namespaceName_;
|
||||
std::string namespaceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_UPDATENAMESPACEREQUEST_H_
|
||||
53
acm/include/alibabacloud/acm/model/UpdateNamespaceResult.h
Normal file
53
acm/include/alibabacloud/acm/model/UpdateNamespaceResult.h
Normal file
@@ -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_ACM_MODEL_UPDATENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_UPDATENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT UpdateNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateNamespaceResult();
|
||||
explicit UpdateNamespaceResult(const std::string &payload);
|
||||
~UpdateNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_UPDATENAMESPACERESULT_H_
|
||||
377
acm/src/AcmClient.cc
Normal file
377
acm/src/AcmClient.cc
Normal file
@@ -0,0 +1,377 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/AcmClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "acm";
|
||||
}
|
||||
|
||||
AcmClient::AcmClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RoaServiceClient(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, "acms");
|
||||
}
|
||||
|
||||
AcmClient::AcmClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "acms");
|
||||
}
|
||||
|
||||
AcmClient::AcmClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RoaServiceClient(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, "acms");
|
||||
}
|
||||
|
||||
AcmClient::~AcmClient()
|
||||
{}
|
||||
|
||||
AcmClient::CreateConfigurationOutcome AcmClient::createConfiguration(const CreateConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateConfigurationOutcome(CreateConfigurationResult(outcome.result()));
|
||||
else
|
||||
return CreateConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::createConfigurationAsync(const CreateConfigurationRequest& request, const CreateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::CreateConfigurationOutcomeCallable AcmClient::createConfigurationCallable(const CreateConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::CreateNamespaceOutcome AcmClient::createNamespace(const CreateNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateNamespaceOutcome(CreateNamespaceResult(outcome.result()));
|
||||
else
|
||||
return CreateNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::createNamespaceAsync(const CreateNamespaceRequest& request, const CreateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::CreateNamespaceOutcomeCallable AcmClient::createNamespaceCallable(const CreateNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::DeleteConfigurationOutcome AcmClient::deleteConfiguration(const DeleteConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteConfigurationOutcome(DeleteConfigurationResult(outcome.result()));
|
||||
else
|
||||
return DeleteConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::deleteConfigurationAsync(const DeleteConfigurationRequest& request, const DeleteConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::DeleteConfigurationOutcomeCallable AcmClient::deleteConfigurationCallable(const DeleteConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::DeleteNamespaceOutcome AcmClient::deleteNamespace(const DeleteNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteNamespaceOutcome(DeleteNamespaceResult(outcome.result()));
|
||||
else
|
||||
return DeleteNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::deleteNamespaceAsync(const DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::DeleteNamespaceOutcomeCallable AcmClient::deleteNamespaceCallable(const DeleteNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::DeployConfigurationOutcome AcmClient::deployConfiguration(const DeployConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeployConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeployConfigurationOutcome(DeployConfigurationResult(outcome.result()));
|
||||
else
|
||||
return DeployConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::deployConfigurationAsync(const DeployConfigurationRequest& request, const DeployConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deployConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::DeployConfigurationOutcomeCallable AcmClient::deployConfigurationCallable(const DeployConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeployConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deployConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::DescribeConfigurationOutcome AcmClient::describeConfiguration(const DescribeConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeConfigurationOutcome(DescribeConfigurationResult(outcome.result()));
|
||||
else
|
||||
return DescribeConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::describeConfigurationAsync(const DescribeConfigurationRequest& request, const DescribeConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::DescribeConfigurationOutcomeCallable AcmClient::describeConfigurationCallable(const DescribeConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::DescribeNamespaceOutcome AcmClient::describeNamespace(const DescribeNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeNamespaceOutcome(DescribeNamespaceResult(outcome.result()));
|
||||
else
|
||||
return DescribeNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::describeNamespaceAsync(const DescribeNamespaceRequest& request, const DescribeNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::DescribeNamespaceOutcomeCallable AcmClient::describeNamespaceCallable(const DescribeNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::DescribeNamespacesOutcome AcmClient::describeNamespaces(const DescribeNamespacesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeNamespacesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeNamespacesOutcome(DescribeNamespacesResult(outcome.result()));
|
||||
else
|
||||
return DescribeNamespacesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::describeNamespacesAsync(const DescribeNamespacesRequest& request, const DescribeNamespacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeNamespaces(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::DescribeNamespacesOutcomeCallable AcmClient::describeNamespacesCallable(const DescribeNamespacesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeNamespacesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeNamespaces(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::UpdateNamespaceOutcome AcmClient::updateNamespace(const UpdateNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateNamespaceOutcome(UpdateNamespaceResult(outcome.result()));
|
||||
else
|
||||
return UpdateNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::updateNamespaceAsync(const UpdateNamespaceRequest& request, const UpdateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::UpdateNamespaceOutcomeCallable AcmClient::updateNamespaceCallable(const UpdateNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
118
acm/src/model/CreateConfigurationRequest.cc
Normal file
118
acm/src/model/CreateConfigurationRequest.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/CreateConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::CreateConfigurationRequest;
|
||||
|
||||
CreateConfigurationRequest::CreateConfigurationRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateConfigurationRequest::~CreateConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string CreateConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setBodyParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setBodyParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setBodyParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getDesc()const
|
||||
{
|
||||
return desc_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setDesc(const std::string& desc)
|
||||
{
|
||||
desc_ = desc;
|
||||
setBodyParameter("Desc", desc);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setBodyParameter("Tags", tags);
|
||||
}
|
||||
|
||||
58
acm/src/model/CreateConfigurationResult.cc
Normal file
58
acm/src/model/CreateConfigurationResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acm/model/CreateConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
CreateConfigurationResult::CreateConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateConfigurationResult::CreateConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateConfigurationResult::~CreateConfigurationResult()
|
||||
{}
|
||||
|
||||
void CreateConfigurationResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
acm/src/model/CreateNamespaceRequest.cc
Normal file
41
acm/src/model/CreateNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/CreateNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::CreateNamespaceRequest;
|
||||
|
||||
CreateNamespaceRequest::CreateNamespaceRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNamespaceRequest::~CreateNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateNamespaceRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateNamespaceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
65
acm/src/model/CreateNamespaceResult.cc
Normal file
65
acm/src/model/CreateNamespaceResult.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/acm/model/CreateNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
CreateNamespaceResult::CreateNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNamespaceResult::CreateNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNamespaceResult::~CreateNamespaceResult()
|
||||
{}
|
||||
|
||||
void CreateNamespaceResult::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["NamespaceId"].isNull())
|
||||
namespaceId_ = value["NamespaceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
acm/src/model/DeleteConfigurationRequest.cc
Normal file
63
acm/src/model/DeleteConfigurationRequest.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/acm/model/DeleteConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::DeleteConfigurationRequest;
|
||||
|
||||
DeleteConfigurationRequest::DeleteConfigurationRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteConfigurationRequest::~DeleteConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DeleteConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeleteConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setParameter("Group", group);
|
||||
}
|
||||
|
||||
58
acm/src/model/DeleteConfigurationResult.cc
Normal file
58
acm/src/model/DeleteConfigurationResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acm/model/DeleteConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
DeleteConfigurationResult::DeleteConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteConfigurationResult::DeleteConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteConfigurationResult::~DeleteConfigurationResult()
|
||||
{}
|
||||
|
||||
void DeleteConfigurationResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
acm/src/model/DeleteNamespaceRequest.cc
Normal file
41
acm/src/model/DeleteNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/DeleteNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::DeleteNamespaceRequest;
|
||||
|
||||
DeleteNamespaceRequest::DeleteNamespaceRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteNamespaceRequest::~DeleteNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
58
acm/src/model/DeleteNamespaceResult.cc
Normal file
58
acm/src/model/DeleteNamespaceResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acm/model/DeleteNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
DeleteNamespaceResult::DeleteNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNamespaceResult::DeleteNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNamespaceResult::~DeleteNamespaceResult()
|
||||
{}
|
||||
|
||||
void DeleteNamespaceResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
118
acm/src/model/DeployConfigurationRequest.cc
Normal file
118
acm/src/model/DeployConfigurationRequest.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/DeployConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::DeployConfigurationRequest;
|
||||
|
||||
DeployConfigurationRequest::DeployConfigurationRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
DeployConfigurationRequest::~DeployConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string DeployConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setBodyParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setBodyParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setBodyParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getDesc()const
|
||||
{
|
||||
return desc_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setDesc(const std::string& desc)
|
||||
{
|
||||
desc_ = desc;
|
||||
setBodyParameter("Desc", desc);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setBodyParameter("Tags", tags);
|
||||
}
|
||||
|
||||
58
acm/src/model/DeployConfigurationResult.cc
Normal file
58
acm/src/model/DeployConfigurationResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acm/model/DeployConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
DeployConfigurationResult::DeployConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeployConfigurationResult::DeployConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeployConfigurationResult::~DeployConfigurationResult()
|
||||
{}
|
||||
|
||||
void DeployConfigurationResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string DeployConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeployConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
acm/src/model/DescribeConfigurationRequest.cc
Normal file
63
acm/src/model/DescribeConfigurationRequest.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/acm/model/DescribeConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::DescribeConfigurationRequest;
|
||||
|
||||
DescribeConfigurationRequest::DescribeConfigurationRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeConfigurationRequest::~DescribeConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setParameter("Group", group);
|
||||
}
|
||||
|
||||
80
acm/src/model/DescribeConfigurationResult.cc
Normal file
80
acm/src/model/DescribeConfigurationResult.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/acm/model/DescribeConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
DescribeConfigurationResult::DescribeConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeConfigurationResult::DescribeConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeConfigurationResult::~DescribeConfigurationResult()
|
||||
{}
|
||||
|
||||
void DescribeConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto configurationNode = value["Configuration"];
|
||||
if(!configurationNode["AppName"].isNull())
|
||||
configuration_.appName = configurationNode["AppName"].asString();
|
||||
if(!configurationNode["Content"].isNull())
|
||||
configuration_.content = configurationNode["Content"].asString();
|
||||
if(!configurationNode["DataId"].isNull())
|
||||
configuration_.dataId = configurationNode["DataId"].asString();
|
||||
if(!configurationNode["Desc"].isNull())
|
||||
configuration_.desc = configurationNode["Desc"].asString();
|
||||
if(!configurationNode["Group"].isNull())
|
||||
configuration_.group = configurationNode["Group"].asString();
|
||||
if(!configurationNode["Md5"].isNull())
|
||||
configuration_.md5 = configurationNode["Md5"].asString();
|
||||
if(!configurationNode["Tags"].isNull())
|
||||
configuration_.tags = configurationNode["Tags"].asString();
|
||||
if(!configurationNode["Type"].isNull())
|
||||
configuration_.type = configurationNode["Type"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeConfigurationResult::Configuration DescribeConfigurationResult::getConfiguration()const
|
||||
{
|
||||
return configuration_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
acm/src/model/DescribeNamespaceRequest.cc
Normal file
41
acm/src/model/DescribeNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/DescribeNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::DescribeNamespaceRequest;
|
||||
|
||||
DescribeNamespaceRequest::DescribeNamespaceRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeNamespaceRequest::~DescribeNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DescribeNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
74
acm/src/model/DescribeNamespaceResult.cc
Normal file
74
acm/src/model/DescribeNamespaceResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acm/model/DescribeNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
DescribeNamespaceResult::DescribeNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNamespaceResult::DescribeNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNamespaceResult::~DescribeNamespaceResult()
|
||||
{}
|
||||
|
||||
void DescribeNamespaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _namespaceNode = value["Namespace"];
|
||||
if(!_namespaceNode["AccessKey"].isNull())
|
||||
_namespace_.accessKey = _namespaceNode["AccessKey"].asString();
|
||||
if(!_namespaceNode["Endpoint"].isNull())
|
||||
_namespace_.endpoint = _namespaceNode["Endpoint"].asString();
|
||||
if(!_namespaceNode["Name"].isNull())
|
||||
_namespace_.name = _namespaceNode["Name"].asString();
|
||||
if(!_namespaceNode["RegionId"].isNull())
|
||||
_namespace_.regionId = _namespaceNode["RegionId"].asString();
|
||||
if(!_namespaceNode["SecretKey"].isNull())
|
||||
_namespace_.secretKey = _namespaceNode["SecretKey"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DescribeNamespaceResult::_Namespace DescribeNamespaceResult::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
30
acm/src/model/DescribeNamespacesRequest.cc
Normal file
30
acm/src/model/DescribeNamespacesRequest.cc
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/DescribeNamespacesRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::DescribeNamespacesRequest;
|
||||
|
||||
DescribeNamespacesRequest::DescribeNamespacesRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace/list");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeNamespacesRequest::~DescribeNamespacesRequest()
|
||||
{}
|
||||
|
||||
79
acm/src/model/DescribeNamespacesResult.cc
Normal file
79
acm/src/model/DescribeNamespacesResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acm/model/DescribeNamespacesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
DescribeNamespacesResult::DescribeNamespacesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNamespacesResult::DescribeNamespacesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNamespacesResult::~DescribeNamespacesResult()
|
||||
{}
|
||||
|
||||
void DescribeNamespacesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNamespacesNode = value["Namespaces"]["Namespace"];
|
||||
for (auto valueNamespacesNamespace : allNamespacesNode)
|
||||
{
|
||||
_Namespace namespacesObject;
|
||||
if(!valueNamespacesNamespace["ConfigCount"].isNull())
|
||||
namespacesObject.configCount = std::stoi(valueNamespacesNamespace["ConfigCount"].asString());
|
||||
if(!valueNamespacesNamespace["NamespaceId"].isNull())
|
||||
namespacesObject.namespaceId = valueNamespacesNamespace["NamespaceId"].asString();
|
||||
if(!valueNamespacesNamespace["NamespaceName"].isNull())
|
||||
namespacesObject.namespaceName = valueNamespacesNamespace["NamespaceName"].asString();
|
||||
if(!valueNamespacesNamespace["Quota"].isNull())
|
||||
namespacesObject.quota = std::stoi(valueNamespacesNamespace["Quota"].asString());
|
||||
if(!valueNamespacesNamespace["Type"].isNull())
|
||||
namespacesObject.type = std::stoi(valueNamespacesNamespace["Type"].asString());
|
||||
namespaces_.push_back(namespacesObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeNamespacesResult::_Namespace> DescribeNamespacesResult::getNamespaces()const
|
||||
{
|
||||
return namespaces_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespacesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespacesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
acm/src/model/UpdateNamespaceRequest.cc
Normal file
52
acm/src/model/UpdateNamespaceRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acm/model/UpdateNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::UpdateNamespaceRequest;
|
||||
|
||||
UpdateNamespaceRequest::UpdateNamespaceRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateNamespaceRequest::~UpdateNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateNamespaceRequest::getNamespaceName()const
|
||||
{
|
||||
return namespaceName_;
|
||||
}
|
||||
|
||||
void UpdateNamespaceRequest::setNamespaceName(const std::string& namespaceName)
|
||||
{
|
||||
namespaceName_ = namespaceName;
|
||||
setBodyParameter("NamespaceName", namespaceName);
|
||||
}
|
||||
|
||||
std::string UpdateNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void UpdateNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setBodyParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
58
acm/src/model/UpdateNamespaceResult.cc
Normal file
58
acm/src/model/UpdateNamespaceResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acm/model/UpdateNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
UpdateNamespaceResult::UpdateNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateNamespaceResult::UpdateNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateNamespaceResult::~UpdateNamespaceResult()
|
||||
{}
|
||||
|
||||
void UpdateNamespaceResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UpdateNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
114
acms-open/CMakeLists.txt
Normal file
114
acms-open/CMakeLists.txt
Normal file
@@ -0,0 +1,114 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT 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(acms-open_public_header
|
||||
include/alibabacloud/acms-open/Acms_openClient.h
|
||||
include/alibabacloud/acms-open/Acms_openExport.h )
|
||||
|
||||
set(acms-open_public_header_model
|
||||
include/alibabacloud/acms-open/model/CreateConfigurationRequest.h
|
||||
include/alibabacloud/acms-open/model/CreateConfigurationResult.h
|
||||
include/alibabacloud/acms-open/model/CreateNamespaceRequest.h
|
||||
include/alibabacloud/acms-open/model/CreateNamespaceResult.h
|
||||
include/alibabacloud/acms-open/model/DeleteConfigurationRequest.h
|
||||
include/alibabacloud/acms-open/model/DeleteConfigurationResult.h
|
||||
include/alibabacloud/acms-open/model/DeleteNamespaceRequest.h
|
||||
include/alibabacloud/acms-open/model/DeleteNamespaceResult.h
|
||||
include/alibabacloud/acms-open/model/DeployConfigurationRequest.h
|
||||
include/alibabacloud/acms-open/model/DeployConfigurationResult.h
|
||||
include/alibabacloud/acms-open/model/DescribeConfigurationRequest.h
|
||||
include/alibabacloud/acms-open/model/DescribeConfigurationResult.h
|
||||
include/alibabacloud/acms-open/model/DescribeNamespaceRequest.h
|
||||
include/alibabacloud/acms-open/model/DescribeNamespaceResult.h
|
||||
include/alibabacloud/acms-open/model/UpdateNamespaceRequest.h
|
||||
include/alibabacloud/acms-open/model/UpdateNamespaceResult.h )
|
||||
|
||||
set(acms-open_src
|
||||
src/Acms-openClient.cc
|
||||
src/model/CreateConfigurationRequest.cc
|
||||
src/model/CreateConfigurationResult.cc
|
||||
src/model/CreateNamespaceRequest.cc
|
||||
src/model/CreateNamespaceResult.cc
|
||||
src/model/DeleteConfigurationRequest.cc
|
||||
src/model/DeleteConfigurationResult.cc
|
||||
src/model/DeleteNamespaceRequest.cc
|
||||
src/model/DeleteNamespaceResult.cc
|
||||
src/model/DeployConfigurationRequest.cc
|
||||
src/model/DeployConfigurationResult.cc
|
||||
src/model/DescribeConfigurationRequest.cc
|
||||
src/model/DescribeConfigurationResult.cc
|
||||
src/model/DescribeNamespaceRequest.cc
|
||||
src/model/DescribeNamespaceResult.cc
|
||||
src/model/UpdateNamespaceRequest.cc
|
||||
src/model/UpdateNamespaceResult.cc )
|
||||
|
||||
add_library(acms-open ${LIB_TYPE}
|
||||
${acms-open_public_header}
|
||||
${acms-open_public_header_model}
|
||||
${acms-open_src})
|
||||
|
||||
set_target_properties(acms-open
|
||||
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}acms-open
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(acms-open
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ACMS_OPEN_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(acms-open
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(acms-open
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(acms-open
|
||||
jsoncpp)
|
||||
target_include_directories(acms-open
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(acms-open
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(acms-open
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(acms-open
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(acms-open
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${acms-open_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/acms-open)
|
||||
install(FILES ${acms-open_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/acms-open/model)
|
||||
install(TARGETS acms-open
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
110
acms-open/include/alibabacloud/acms-open/Acms_openClient.h
Normal file
110
acms-open/include/alibabacloud/acms-open/Acms_openClient.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_ACMS_OPEN_ACMS_OPENCLIENT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_ACMS_OPENCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RoaServiceClient.h>
|
||||
#include "Acms_openExport.h"
|
||||
#include "model/CreateConfigurationRequest.h"
|
||||
#include "model/CreateConfigurationResult.h"
|
||||
#include "model/CreateNamespaceRequest.h"
|
||||
#include "model/CreateNamespaceResult.h"
|
||||
#include "model/DeleteConfigurationRequest.h"
|
||||
#include "model/DeleteConfigurationResult.h"
|
||||
#include "model/DeleteNamespaceRequest.h"
|
||||
#include "model/DeleteNamespaceResult.h"
|
||||
#include "model/DeployConfigurationRequest.h"
|
||||
#include "model/DeployConfigurationResult.h"
|
||||
#include "model/DescribeConfigurationRequest.h"
|
||||
#include "model/DescribeConfigurationResult.h"
|
||||
#include "model/DescribeNamespaceRequest.h"
|
||||
#include "model/DescribeNamespaceResult.h"
|
||||
#include "model/UpdateNamespaceRequest.h"
|
||||
#include "model/UpdateNamespaceResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT Acms_openClient : public RoaServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CreateConfigurationResult> CreateConfigurationOutcome;
|
||||
typedef std::future<CreateConfigurationOutcome> CreateConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::CreateConfigurationRequest&, const CreateConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateNamespaceResult> CreateNamespaceOutcome;
|
||||
typedef std::future<CreateNamespaceOutcome> CreateNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::CreateNamespaceRequest&, const CreateNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateNamespaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteConfigurationResult> DeleteConfigurationOutcome;
|
||||
typedef std::future<DeleteConfigurationOutcome> DeleteConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::DeleteConfigurationRequest&, const DeleteConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteNamespaceResult> DeleteNamespaceOutcome;
|
||||
typedef std::future<DeleteNamespaceOutcome> DeleteNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::DeleteNamespaceRequest&, const DeleteNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteNamespaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeployConfigurationResult> DeployConfigurationOutcome;
|
||||
typedef std::future<DeployConfigurationOutcome> DeployConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::DeployConfigurationRequest&, const DeployConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeployConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeConfigurationResult> DescribeConfigurationOutcome;
|
||||
typedef std::future<DescribeConfigurationOutcome> DescribeConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::DescribeConfigurationRequest&, const DescribeConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeNamespaceResult> DescribeNamespaceOutcome;
|
||||
typedef std::future<DescribeNamespaceOutcome> DescribeNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::DescribeNamespaceRequest&, const DescribeNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNamespaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateNamespaceResult> UpdateNamespaceOutcome;
|
||||
typedef std::future<UpdateNamespaceOutcome> UpdateNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::UpdateNamespaceRequest&, const UpdateNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateNamespaceAsyncHandler;
|
||||
|
||||
Acms_openClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Acms_openClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
Acms_openClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~Acms_openClient();
|
||||
CreateConfigurationOutcome createConfiguration(const Model::CreateConfigurationRequest &request)const;
|
||||
void createConfigurationAsync(const Model::CreateConfigurationRequest& request, const CreateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateConfigurationOutcomeCallable createConfigurationCallable(const Model::CreateConfigurationRequest& request) const;
|
||||
CreateNamespaceOutcome createNamespace(const Model::CreateNamespaceRequest &request)const;
|
||||
void createNamespaceAsync(const Model::CreateNamespaceRequest& request, const CreateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateNamespaceOutcomeCallable createNamespaceCallable(const Model::CreateNamespaceRequest& request) const;
|
||||
DeleteConfigurationOutcome deleteConfiguration(const Model::DeleteConfigurationRequest &request)const;
|
||||
void deleteConfigurationAsync(const Model::DeleteConfigurationRequest& request, const DeleteConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteConfigurationOutcomeCallable deleteConfigurationCallable(const Model::DeleteConfigurationRequest& request) const;
|
||||
DeleteNamespaceOutcome deleteNamespace(const Model::DeleteNamespaceRequest &request)const;
|
||||
void deleteNamespaceAsync(const Model::DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteNamespaceOutcomeCallable deleteNamespaceCallable(const Model::DeleteNamespaceRequest& request) const;
|
||||
DeployConfigurationOutcome deployConfiguration(const Model::DeployConfigurationRequest &request)const;
|
||||
void deployConfigurationAsync(const Model::DeployConfigurationRequest& request, const DeployConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeployConfigurationOutcomeCallable deployConfigurationCallable(const Model::DeployConfigurationRequest& request) const;
|
||||
DescribeConfigurationOutcome describeConfiguration(const Model::DescribeConfigurationRequest &request)const;
|
||||
void describeConfigurationAsync(const Model::DescribeConfigurationRequest& request, const DescribeConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeConfigurationOutcomeCallable describeConfigurationCallable(const Model::DescribeConfigurationRequest& request) const;
|
||||
DescribeNamespaceOutcome describeNamespace(const Model::DescribeNamespaceRequest &request)const;
|
||||
void describeNamespaceAsync(const Model::DescribeNamespaceRequest& request, const DescribeNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeNamespaceOutcomeCallable describeNamespaceCallable(const Model::DescribeNamespaceRequest& request) const;
|
||||
UpdateNamespaceOutcome updateNamespace(const Model::UpdateNamespaceRequest &request)const;
|
||||
void updateNamespaceAsync(const Model::UpdateNamespaceRequest& request, const UpdateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateNamespaceOutcomeCallable updateNamespaceCallable(const Model::UpdateNamespaceRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_ACMS_OPENCLIENT_H_
|
||||
32
acms-open/include/alibabacloud/acms-open/Acms_openExport.h
Normal file
32
acms-open/include/alibabacloud/acms-open/Acms_openExport.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_ACMS_OPEN_ACMS_OPENEXPORT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_ACMS_OPENEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ACMS_OPEN_LIBRARY)
|
||||
# define ALIBABACLOUD_ACMS_OPEN_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ACMS_OPEN_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ACMS_OPEN_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_ACMS_OPENEXPORT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT CreateConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateConfigurationRequest();
|
||||
~CreateConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
std::string getDesc()const;
|
||||
void setDesc(const std::string& desc);
|
||||
std::string getTags()const;
|
||||
void setTags(const std::string& tags);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string appName_;
|
||||
std::string namespaceId_;
|
||||
std::string type_;
|
||||
std::string content_;
|
||||
std::string group_;
|
||||
std::string desc_;
|
||||
std::string tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONREQUEST_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_ACMS_OPEN_MODEL_CREATECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT CreateConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateConfigurationResult();
|
||||
explicit CreateConfigurationResult(const std::string &payload);
|
||||
~CreateConfigurationResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONRESULT_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_ACMS_OPEN_MODEL_CREATENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT CreateNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateNamespaceRequest();
|
||||
~CreateNamespaceRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACEREQUEST_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_ACMS_OPEN_MODEL_CREATENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT CreateNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateNamespaceResult();
|
||||
explicit CreateNamespaceResult(const std::string &payload);
|
||||
~CreateNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getNamespaceId()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string namespaceId_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACERESULT_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_ACMS_OPEN_MODEL_DELETECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeleteConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteConfigurationRequest();
|
||||
~DeleteConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string namespaceId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONREQUEST_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_ACMS_OPEN_MODEL_DELETECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeleteConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteConfigurationResult();
|
||||
explicit DeleteConfigurationResult(const std::string &payload);
|
||||
~DeleteConfigurationResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONRESULT_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_ACMS_OPEN_MODEL_DELETENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeleteNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteNamespaceRequest();
|
||||
~DeleteNamespaceRequest();
|
||||
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
|
||||
private:
|
||||
std::string namespaceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACEREQUEST_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_ACMS_OPEN_MODEL_DELETENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeleteNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteNamespaceResult();
|
||||
explicit DeleteNamespaceResult(const std::string &payload);
|
||||
~DeleteNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACERESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeployConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeployConfigurationRequest();
|
||||
~DeployConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
std::string getDesc()const;
|
||||
void setDesc(const std::string& desc);
|
||||
std::string getTags()const;
|
||||
void setTags(const std::string& tags);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string appName_;
|
||||
std::string namespaceId_;
|
||||
std::string type_;
|
||||
std::string content_;
|
||||
std::string group_;
|
||||
std::string desc_;
|
||||
std::string tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONREQUEST_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_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeployConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeployConfigurationResult();
|
||||
explicit DeployConfigurationResult(const std::string &payload);
|
||||
~DeployConfigurationResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONRESULT_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_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DescribeConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeConfigurationRequest();
|
||||
~DescribeConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string namespaceId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DescribeConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Configuration
|
||||
{
|
||||
std::string group;
|
||||
std::string desc;
|
||||
std::string dataId;
|
||||
std::string content;
|
||||
std::string tags;
|
||||
std::string md5;
|
||||
std::string appName;
|
||||
};
|
||||
|
||||
|
||||
DescribeConfigurationResult();
|
||||
explicit DescribeConfigurationResult(const std::string &payload);
|
||||
~DescribeConfigurationResult();
|
||||
Configuration getConfiguration()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Configuration configuration_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONRESULT_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_ACMS_OPEN_MODEL_DESCRIBENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DescribeNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeNamespaceRequest();
|
||||
~DescribeNamespaceRequest();
|
||||
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
|
||||
private:
|
||||
std::string namespaceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACEREQUEST_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_ACMS_OPEN_MODEL_DESCRIBENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DescribeNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct _Namespace
|
||||
{
|
||||
std::string secretKey;
|
||||
std::string endpoint;
|
||||
std::string regionId;
|
||||
std::string accessKey;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
DescribeNamespaceResult();
|
||||
explicit DescribeNamespaceResult(const std::string &payload);
|
||||
~DescribeNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
_Namespace get_Namespace()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
_Namespace _namespace_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACERESULT_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_ACMS_OPEN_MODEL_UPDATENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT UpdateNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateNamespaceRequest();
|
||||
~UpdateNamespaceRequest();
|
||||
|
||||
std::string getNamespaceName()const;
|
||||
void setNamespaceName(const std::string& namespaceName);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
|
||||
private:
|
||||
std::string namespaceName_;
|
||||
std::string namespaceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACEREQUEST_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_ACMS_OPEN_MODEL_UPDATENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT UpdateNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateNamespaceResult();
|
||||
explicit UpdateNamespaceResult(const std::string &payload);
|
||||
~UpdateNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACERESULT_H_
|
||||
341
acms-open/src/Acms-openClient.cc
Normal file
341
acms-open/src/Acms-openClient.cc
Normal file
@@ -0,0 +1,341 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/Acms_openClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "acms-open";
|
||||
}
|
||||
|
||||
Acms_openClient::Acms_openClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RoaServiceClient(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, "acms");
|
||||
}
|
||||
|
||||
Acms_openClient::Acms_openClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "acms");
|
||||
}
|
||||
|
||||
Acms_openClient::Acms_openClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RoaServiceClient(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, "acms");
|
||||
}
|
||||
|
||||
Acms_openClient::~Acms_openClient()
|
||||
{}
|
||||
|
||||
Acms_openClient::CreateConfigurationOutcome Acms_openClient::createConfiguration(const CreateConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateConfigurationOutcome(CreateConfigurationResult(outcome.result()));
|
||||
else
|
||||
return CreateConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::createConfigurationAsync(const CreateConfigurationRequest& request, const CreateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::CreateConfigurationOutcomeCallable Acms_openClient::createConfigurationCallable(const CreateConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::CreateNamespaceOutcome Acms_openClient::createNamespace(const CreateNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateNamespaceOutcome(CreateNamespaceResult(outcome.result()));
|
||||
else
|
||||
return CreateNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::createNamespaceAsync(const CreateNamespaceRequest& request, const CreateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::CreateNamespaceOutcomeCallable Acms_openClient::createNamespaceCallable(const CreateNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::DeleteConfigurationOutcome Acms_openClient::deleteConfiguration(const DeleteConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteConfigurationOutcome(DeleteConfigurationResult(outcome.result()));
|
||||
else
|
||||
return DeleteConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::deleteConfigurationAsync(const DeleteConfigurationRequest& request, const DeleteConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::DeleteConfigurationOutcomeCallable Acms_openClient::deleteConfigurationCallable(const DeleteConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::DeleteNamespaceOutcome Acms_openClient::deleteNamespace(const DeleteNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteNamespaceOutcome(DeleteNamespaceResult(outcome.result()));
|
||||
else
|
||||
return DeleteNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::deleteNamespaceAsync(const DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::DeleteNamespaceOutcomeCallable Acms_openClient::deleteNamespaceCallable(const DeleteNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::DeployConfigurationOutcome Acms_openClient::deployConfiguration(const DeployConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeployConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeployConfigurationOutcome(DeployConfigurationResult(outcome.result()));
|
||||
else
|
||||
return DeployConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::deployConfigurationAsync(const DeployConfigurationRequest& request, const DeployConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deployConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::DeployConfigurationOutcomeCallable Acms_openClient::deployConfigurationCallable(const DeployConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeployConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deployConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::DescribeConfigurationOutcome Acms_openClient::describeConfiguration(const DescribeConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeConfigurationOutcome(DescribeConfigurationResult(outcome.result()));
|
||||
else
|
||||
return DescribeConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::describeConfigurationAsync(const DescribeConfigurationRequest& request, const DescribeConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::DescribeConfigurationOutcomeCallable Acms_openClient::describeConfigurationCallable(const DescribeConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::DescribeNamespaceOutcome Acms_openClient::describeNamespace(const DescribeNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeNamespaceOutcome(DescribeNamespaceResult(outcome.result()));
|
||||
else
|
||||
return DescribeNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::describeNamespaceAsync(const DescribeNamespaceRequest& request, const DescribeNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::DescribeNamespaceOutcomeCallable Acms_openClient::describeNamespaceCallable(const DescribeNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::UpdateNamespaceOutcome Acms_openClient::updateNamespace(const UpdateNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateNamespaceOutcome(UpdateNamespaceResult(outcome.result()));
|
||||
else
|
||||
return UpdateNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::updateNamespaceAsync(const UpdateNamespaceRequest& request, const UpdateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::UpdateNamespaceOutcomeCallable Acms_openClient::updateNamespaceCallable(const UpdateNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
118
acms-open/src/model/CreateConfigurationRequest.cc
Normal file
118
acms-open/src/model/CreateConfigurationRequest.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/CreateConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::CreateConfigurationRequest;
|
||||
|
||||
CreateConfigurationRequest::CreateConfigurationRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateConfigurationRequest::~CreateConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string CreateConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setBodyParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setBodyParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setBodyParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getDesc()const
|
||||
{
|
||||
return desc_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setDesc(const std::string& desc)
|
||||
{
|
||||
desc_ = desc;
|
||||
setBodyParameter("Desc", desc);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setBodyParameter("Tags", tags);
|
||||
}
|
||||
|
||||
58
acms-open/src/model/CreateConfigurationResult.cc
Normal file
58
acms-open/src/model/CreateConfigurationResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/CreateConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
CreateConfigurationResult::CreateConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateConfigurationResult::CreateConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateConfigurationResult::~CreateConfigurationResult()
|
||||
{}
|
||||
|
||||
void CreateConfigurationResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
acms-open/src/model/CreateNamespaceRequest.cc
Normal file
41
acms-open/src/model/CreateNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/CreateNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::CreateNamespaceRequest;
|
||||
|
||||
CreateNamespaceRequest::CreateNamespaceRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNamespaceRequest::~CreateNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateNamespaceRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateNamespaceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
65
acms-open/src/model/CreateNamespaceResult.cc
Normal file
65
acms-open/src/model/CreateNamespaceResult.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/acms-open/model/CreateNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
CreateNamespaceResult::CreateNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNamespaceResult::CreateNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNamespaceResult::~CreateNamespaceResult()
|
||||
{}
|
||||
|
||||
void CreateNamespaceResult::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["NamespaceId"].isNull())
|
||||
namespaceId_ = value["NamespaceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
acms-open/src/model/DeleteConfigurationRequest.cc
Normal file
63
acms-open/src/model/DeleteConfigurationRequest.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/acms-open/model/DeleteConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::DeleteConfigurationRequest;
|
||||
|
||||
DeleteConfigurationRequest::DeleteConfigurationRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteConfigurationRequest::~DeleteConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DeleteConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeleteConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setParameter("Group", group);
|
||||
}
|
||||
|
||||
58
acms-open/src/model/DeleteConfigurationResult.cc
Normal file
58
acms-open/src/model/DeleteConfigurationResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/DeleteConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
DeleteConfigurationResult::DeleteConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteConfigurationResult::DeleteConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteConfigurationResult::~DeleteConfigurationResult()
|
||||
{}
|
||||
|
||||
void DeleteConfigurationResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
acms-open/src/model/DeleteNamespaceRequest.cc
Normal file
41
acms-open/src/model/DeleteNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/DeleteNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::DeleteNamespaceRequest;
|
||||
|
||||
DeleteNamespaceRequest::DeleteNamespaceRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteNamespaceRequest::~DeleteNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
58
acms-open/src/model/DeleteNamespaceResult.cc
Normal file
58
acms-open/src/model/DeleteNamespaceResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/DeleteNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
DeleteNamespaceResult::DeleteNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNamespaceResult::DeleteNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNamespaceResult::~DeleteNamespaceResult()
|
||||
{}
|
||||
|
||||
void DeleteNamespaceResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
118
acms-open/src/model/DeployConfigurationRequest.cc
Normal file
118
acms-open/src/model/DeployConfigurationRequest.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/DeployConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::DeployConfigurationRequest;
|
||||
|
||||
DeployConfigurationRequest::DeployConfigurationRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
DeployConfigurationRequest::~DeployConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string DeployConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setBodyParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setBodyParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setBodyParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getDesc()const
|
||||
{
|
||||
return desc_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setDesc(const std::string& desc)
|
||||
{
|
||||
desc_ = desc;
|
||||
setBodyParameter("Desc", desc);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setBodyParameter("Tags", tags);
|
||||
}
|
||||
|
||||
58
acms-open/src/model/DeployConfigurationResult.cc
Normal file
58
acms-open/src/model/DeployConfigurationResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/DeployConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
DeployConfigurationResult::DeployConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeployConfigurationResult::DeployConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeployConfigurationResult::~DeployConfigurationResult()
|
||||
{}
|
||||
|
||||
void DeployConfigurationResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string DeployConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeployConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
acms-open/src/model/DescribeConfigurationRequest.cc
Normal file
63
acms-open/src/model/DescribeConfigurationRequest.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/acms-open/model/DescribeConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::DescribeConfigurationRequest;
|
||||
|
||||
DescribeConfigurationRequest::DescribeConfigurationRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeConfigurationRequest::~DescribeConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setParameter("Group", group);
|
||||
}
|
||||
|
||||
78
acms-open/src/model/DescribeConfigurationResult.cc
Normal file
78
acms-open/src/model/DescribeConfigurationResult.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/acms-open/model/DescribeConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
DescribeConfigurationResult::DescribeConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeConfigurationResult::DescribeConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeConfigurationResult::~DescribeConfigurationResult()
|
||||
{}
|
||||
|
||||
void DescribeConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto configurationNode = value["Configuration"];
|
||||
if(!configurationNode["DataId"].isNull())
|
||||
configuration_.dataId = configurationNode["DataId"].asString();
|
||||
if(!configurationNode["Group"].isNull())
|
||||
configuration_.group = configurationNode["Group"].asString();
|
||||
if(!configurationNode["Content"].isNull())
|
||||
configuration_.content = configurationNode["Content"].asString();
|
||||
if(!configurationNode["Md5"].isNull())
|
||||
configuration_.md5 = configurationNode["Md5"].asString();
|
||||
if(!configurationNode["AppName"].isNull())
|
||||
configuration_.appName = configurationNode["AppName"].asString();
|
||||
if(!configurationNode["Desc"].isNull())
|
||||
configuration_.desc = configurationNode["Desc"].asString();
|
||||
if(!configurationNode["Tags"].isNull())
|
||||
configuration_.tags = configurationNode["Tags"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeConfigurationResult::Configuration DescribeConfigurationResult::getConfiguration()const
|
||||
{
|
||||
return configuration_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
acms-open/src/model/DescribeNamespaceRequest.cc
Normal file
41
acms-open/src/model/DescribeNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/DescribeNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::DescribeNamespaceRequest;
|
||||
|
||||
DescribeNamespaceRequest::DescribeNamespaceRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeNamespaceRequest::~DescribeNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DescribeNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
74
acms-open/src/model/DescribeNamespaceResult.cc
Normal file
74
acms-open/src/model/DescribeNamespaceResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/DescribeNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
DescribeNamespaceResult::DescribeNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNamespaceResult::DescribeNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNamespaceResult::~DescribeNamespaceResult()
|
||||
{}
|
||||
|
||||
void DescribeNamespaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _namespaceNode = value["Namespace"];
|
||||
if(!_namespaceNode["RegionId"].isNull())
|
||||
_namespace_.regionId = _namespaceNode["RegionId"].asString();
|
||||
if(!_namespaceNode["Endpoint"].isNull())
|
||||
_namespace_.endpoint = _namespaceNode["Endpoint"].asString();
|
||||
if(!_namespaceNode["AccessKey"].isNull())
|
||||
_namespace_.accessKey = _namespaceNode["AccessKey"].asString();
|
||||
if(!_namespaceNode["SecretKey"].isNull())
|
||||
_namespace_.secretKey = _namespaceNode["SecretKey"].asString();
|
||||
if(!_namespaceNode["Name"].isNull())
|
||||
_namespace_.name = _namespaceNode["Name"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DescribeNamespaceResult::_Namespace DescribeNamespaceResult::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
acms-open/src/model/UpdateNamespaceRequest.cc
Normal file
52
acms-open/src/model/UpdateNamespaceRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/UpdateNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::UpdateNamespaceRequest;
|
||||
|
||||
UpdateNamespaceRequest::UpdateNamespaceRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateNamespaceRequest::~UpdateNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateNamespaceRequest::getNamespaceName()const
|
||||
{
|
||||
return namespaceName_;
|
||||
}
|
||||
|
||||
void UpdateNamespaceRequest::setNamespaceName(const std::string& namespaceName)
|
||||
{
|
||||
namespaceName_ = namespaceName;
|
||||
setBodyParameter("NamespaceName", namespaceName);
|
||||
}
|
||||
|
||||
std::string UpdateNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void UpdateNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setBodyParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
58
acms-open/src/model/UpdateNamespaceResult.cc
Normal file
58
acms-open/src/model/UpdateNamespaceResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/UpdateNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
UpdateNamespaceResult::UpdateNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateNamespaceResult::UpdateNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateNamespaceResult::~UpdateNamespaceResult()
|
||||
{}
|
||||
|
||||
void UpdateNamespaceResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UpdateNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
266
adb/CMakeLists.txt
Normal file
266
adb/CMakeLists.txt
Normal file
@@ -0,0 +1,266 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT 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(adb_public_header
|
||||
include/alibabacloud/adb/AdbClient.h
|
||||
include/alibabacloud/adb/AdbExport.h )
|
||||
|
||||
set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/AllocateClusterPublicConnectionRequest.h
|
||||
include/alibabacloud/adb/model/AllocateClusterPublicConnectionResult.h
|
||||
include/alibabacloud/adb/model/CreateAccountRequest.h
|
||||
include/alibabacloud/adb/model/CreateAccountResult.h
|
||||
include/alibabacloud/adb/model/CreateDBClusterRequest.h
|
||||
include/alibabacloud/adb/model/CreateDBClusterResult.h
|
||||
include/alibabacloud/adb/model/DeleteAccountRequest.h
|
||||
include/alibabacloud/adb/model/DeleteAccountResult.h
|
||||
include/alibabacloud/adb/model/DeleteDBClusterRequest.h
|
||||
include/alibabacloud/adb/model/DeleteDBClusterResult.h
|
||||
include/alibabacloud/adb/model/DescribeAccountsRequest.h
|
||||
include/alibabacloud/adb/model/DescribeAccountsResult.h
|
||||
include/alibabacloud/adb/model/DescribeAllDataSourceRequest.h
|
||||
include/alibabacloud/adb/model/DescribeAllDataSourceResult.h
|
||||
include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h
|
||||
include/alibabacloud/adb/model/DescribeAutoRenewAttributeResult.h
|
||||
include/alibabacloud/adb/model/DescribeAvailableResourceRequest.h
|
||||
include/alibabacloud/adb/model/DescribeAvailableResourceResult.h
|
||||
include/alibabacloud/adb/model/DescribeBackupPolicyRequest.h
|
||||
include/alibabacloud/adb/model/DescribeBackupPolicyResult.h
|
||||
include/alibabacloud/adb/model/DescribeBackupsRequest.h
|
||||
include/alibabacloud/adb/model/DescribeBackupsResult.h
|
||||
include/alibabacloud/adb/model/DescribeColumnsRequest.h
|
||||
include/alibabacloud/adb/model/DescribeColumnsResult.h
|
||||
include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListRequest.h
|
||||
include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListResult.h
|
||||
include/alibabacloud/adb/model/DescribeDBClusterAttributeRequest.h
|
||||
include/alibabacloud/adb/model/DescribeDBClusterAttributeResult.h
|
||||
include/alibabacloud/adb/model/DescribeDBClusterNetInfoRequest.h
|
||||
include/alibabacloud/adb/model/DescribeDBClusterNetInfoResult.h
|
||||
include/alibabacloud/adb/model/DescribeDBClusterPerformanceRequest.h
|
||||
include/alibabacloud/adb/model/DescribeDBClusterPerformanceResult.h
|
||||
include/alibabacloud/adb/model/DescribeDBClustersRequest.h
|
||||
include/alibabacloud/adb/model/DescribeDBClustersResult.h
|
||||
include/alibabacloud/adb/model/DescribeInclinedTablesRequest.h
|
||||
include/alibabacloud/adb/model/DescribeInclinedTablesResult.h
|
||||
include/alibabacloud/adb/model/DescribeLogStoreKeysRequest.h
|
||||
include/alibabacloud/adb/model/DescribeLogStoreKeysResult.h
|
||||
include/alibabacloud/adb/model/DescribeLoghubDetailRequest.h
|
||||
include/alibabacloud/adb/model/DescribeLoghubDetailResult.h
|
||||
include/alibabacloud/adb/model/DescribeOperatorPermissionRequest.h
|
||||
include/alibabacloud/adb/model/DescribeOperatorPermissionResult.h
|
||||
include/alibabacloud/adb/model/DescribeProcessListRequest.h
|
||||
include/alibabacloud/adb/model/DescribeProcessListResult.h
|
||||
include/alibabacloud/adb/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/adb/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/adb/model/DescribeSchemasRequest.h
|
||||
include/alibabacloud/adb/model/DescribeSchemasResult.h
|
||||
include/alibabacloud/adb/model/DescribeSlowLogRecordsRequest.h
|
||||
include/alibabacloud/adb/model/DescribeSlowLogRecordsResult.h
|
||||
include/alibabacloud/adb/model/DescribeSlowLogTrendRequest.h
|
||||
include/alibabacloud/adb/model/DescribeSlowLogTrendResult.h
|
||||
include/alibabacloud/adb/model/DescribeTableDetailRequest.h
|
||||
include/alibabacloud/adb/model/DescribeTableDetailResult.h
|
||||
include/alibabacloud/adb/model/DescribeTablesRequest.h
|
||||
include/alibabacloud/adb/model/DescribeTablesResult.h
|
||||
include/alibabacloud/adb/model/DescribeTaskInfoRequest.h
|
||||
include/alibabacloud/adb/model/DescribeTaskInfoResult.h
|
||||
include/alibabacloud/adb/model/GrantOperatorPermissionRequest.h
|
||||
include/alibabacloud/adb/model/GrantOperatorPermissionResult.h
|
||||
include/alibabacloud/adb/model/KillProcessRequest.h
|
||||
include/alibabacloud/adb/model/KillProcessResult.h
|
||||
include/alibabacloud/adb/model/ListTagResourcesRequest.h
|
||||
include/alibabacloud/adb/model/ListTagResourcesResult.h
|
||||
include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h
|
||||
include/alibabacloud/adb/model/ModifyAccountDescriptionResult.h
|
||||
include/alibabacloud/adb/model/ModifyAutoRenewAttributeRequest.h
|
||||
include/alibabacloud/adb/model/ModifyAutoRenewAttributeResult.h
|
||||
include/alibabacloud/adb/model/ModifyBackupPolicyRequest.h
|
||||
include/alibabacloud/adb/model/ModifyBackupPolicyResult.h
|
||||
include/alibabacloud/adb/model/ModifyClusterConnectionStringRequest.h
|
||||
include/alibabacloud/adb/model/ModifyClusterConnectionStringResult.h
|
||||
include/alibabacloud/adb/model/ModifyDBClusterRequest.h
|
||||
include/alibabacloud/adb/model/ModifyDBClusterResult.h
|
||||
include/alibabacloud/adb/model/ModifyDBClusterAccessWhiteListRequest.h
|
||||
include/alibabacloud/adb/model/ModifyDBClusterAccessWhiteListResult.h
|
||||
include/alibabacloud/adb/model/ModifyDBClusterDescriptionRequest.h
|
||||
include/alibabacloud/adb/model/ModifyDBClusterDescriptionResult.h
|
||||
include/alibabacloud/adb/model/ModifyDBClusterMaintainTimeRequest.h
|
||||
include/alibabacloud/adb/model/ModifyDBClusterMaintainTimeResult.h
|
||||
include/alibabacloud/adb/model/ModifyLogBackupPolicyRequest.h
|
||||
include/alibabacloud/adb/model/ModifyLogBackupPolicyResult.h
|
||||
include/alibabacloud/adb/model/ReleaseClusterPublicConnectionRequest.h
|
||||
include/alibabacloud/adb/model/ReleaseClusterPublicConnectionResult.h
|
||||
include/alibabacloud/adb/model/ResetAccountPasswordRequest.h
|
||||
include/alibabacloud/adb/model/ResetAccountPasswordResult.h
|
||||
include/alibabacloud/adb/model/RevokeOperatorPermissionRequest.h
|
||||
include/alibabacloud/adb/model/RevokeOperatorPermissionResult.h
|
||||
include/alibabacloud/adb/model/TagResourcesRequest.h
|
||||
include/alibabacloud/adb/model/TagResourcesResult.h
|
||||
include/alibabacloud/adb/model/UntagResourcesRequest.h
|
||||
include/alibabacloud/adb/model/UntagResourcesResult.h )
|
||||
|
||||
set(adb_src
|
||||
src/AdbClient.cc
|
||||
src/model/AllocateClusterPublicConnectionRequest.cc
|
||||
src/model/AllocateClusterPublicConnectionResult.cc
|
||||
src/model/CreateAccountRequest.cc
|
||||
src/model/CreateAccountResult.cc
|
||||
src/model/CreateDBClusterRequest.cc
|
||||
src/model/CreateDBClusterResult.cc
|
||||
src/model/DeleteAccountRequest.cc
|
||||
src/model/DeleteAccountResult.cc
|
||||
src/model/DeleteDBClusterRequest.cc
|
||||
src/model/DeleteDBClusterResult.cc
|
||||
src/model/DescribeAccountsRequest.cc
|
||||
src/model/DescribeAccountsResult.cc
|
||||
src/model/DescribeAllDataSourceRequest.cc
|
||||
src/model/DescribeAllDataSourceResult.cc
|
||||
src/model/DescribeAutoRenewAttributeRequest.cc
|
||||
src/model/DescribeAutoRenewAttributeResult.cc
|
||||
src/model/DescribeAvailableResourceRequest.cc
|
||||
src/model/DescribeAvailableResourceResult.cc
|
||||
src/model/DescribeBackupPolicyRequest.cc
|
||||
src/model/DescribeBackupPolicyResult.cc
|
||||
src/model/DescribeBackupsRequest.cc
|
||||
src/model/DescribeBackupsResult.cc
|
||||
src/model/DescribeColumnsRequest.cc
|
||||
src/model/DescribeColumnsResult.cc
|
||||
src/model/DescribeDBClusterAccessWhiteListRequest.cc
|
||||
src/model/DescribeDBClusterAccessWhiteListResult.cc
|
||||
src/model/DescribeDBClusterAttributeRequest.cc
|
||||
src/model/DescribeDBClusterAttributeResult.cc
|
||||
src/model/DescribeDBClusterNetInfoRequest.cc
|
||||
src/model/DescribeDBClusterNetInfoResult.cc
|
||||
src/model/DescribeDBClusterPerformanceRequest.cc
|
||||
src/model/DescribeDBClusterPerformanceResult.cc
|
||||
src/model/DescribeDBClustersRequest.cc
|
||||
src/model/DescribeDBClustersResult.cc
|
||||
src/model/DescribeInclinedTablesRequest.cc
|
||||
src/model/DescribeInclinedTablesResult.cc
|
||||
src/model/DescribeLogStoreKeysRequest.cc
|
||||
src/model/DescribeLogStoreKeysResult.cc
|
||||
src/model/DescribeLoghubDetailRequest.cc
|
||||
src/model/DescribeLoghubDetailResult.cc
|
||||
src/model/DescribeOperatorPermissionRequest.cc
|
||||
src/model/DescribeOperatorPermissionResult.cc
|
||||
src/model/DescribeProcessListRequest.cc
|
||||
src/model/DescribeProcessListResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DescribeSchemasRequest.cc
|
||||
src/model/DescribeSchemasResult.cc
|
||||
src/model/DescribeSlowLogRecordsRequest.cc
|
||||
src/model/DescribeSlowLogRecordsResult.cc
|
||||
src/model/DescribeSlowLogTrendRequest.cc
|
||||
src/model/DescribeSlowLogTrendResult.cc
|
||||
src/model/DescribeTableDetailRequest.cc
|
||||
src/model/DescribeTableDetailResult.cc
|
||||
src/model/DescribeTablesRequest.cc
|
||||
src/model/DescribeTablesResult.cc
|
||||
src/model/DescribeTaskInfoRequest.cc
|
||||
src/model/DescribeTaskInfoResult.cc
|
||||
src/model/GrantOperatorPermissionRequest.cc
|
||||
src/model/GrantOperatorPermissionResult.cc
|
||||
src/model/KillProcessRequest.cc
|
||||
src/model/KillProcessResult.cc
|
||||
src/model/ListTagResourcesRequest.cc
|
||||
src/model/ListTagResourcesResult.cc
|
||||
src/model/ModifyAccountDescriptionRequest.cc
|
||||
src/model/ModifyAccountDescriptionResult.cc
|
||||
src/model/ModifyAutoRenewAttributeRequest.cc
|
||||
src/model/ModifyAutoRenewAttributeResult.cc
|
||||
src/model/ModifyBackupPolicyRequest.cc
|
||||
src/model/ModifyBackupPolicyResult.cc
|
||||
src/model/ModifyClusterConnectionStringRequest.cc
|
||||
src/model/ModifyClusterConnectionStringResult.cc
|
||||
src/model/ModifyDBClusterRequest.cc
|
||||
src/model/ModifyDBClusterResult.cc
|
||||
src/model/ModifyDBClusterAccessWhiteListRequest.cc
|
||||
src/model/ModifyDBClusterAccessWhiteListResult.cc
|
||||
src/model/ModifyDBClusterDescriptionRequest.cc
|
||||
src/model/ModifyDBClusterDescriptionResult.cc
|
||||
src/model/ModifyDBClusterMaintainTimeRequest.cc
|
||||
src/model/ModifyDBClusterMaintainTimeResult.cc
|
||||
src/model/ModifyLogBackupPolicyRequest.cc
|
||||
src/model/ModifyLogBackupPolicyResult.cc
|
||||
src/model/ReleaseClusterPublicConnectionRequest.cc
|
||||
src/model/ReleaseClusterPublicConnectionResult.cc
|
||||
src/model/ResetAccountPasswordRequest.cc
|
||||
src/model/ResetAccountPasswordResult.cc
|
||||
src/model/RevokeOperatorPermissionRequest.cc
|
||||
src/model/RevokeOperatorPermissionResult.cc
|
||||
src/model/TagResourcesRequest.cc
|
||||
src/model/TagResourcesResult.cc
|
||||
src/model/UntagResourcesRequest.cc
|
||||
src/model/UntagResourcesResult.cc )
|
||||
|
||||
add_library(adb ${LIB_TYPE}
|
||||
${adb_public_header}
|
||||
${adb_public_header_model}
|
||||
${adb_src})
|
||||
|
||||
set_target_properties(adb
|
||||
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}adb
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(adb
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ADB_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(adb
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(adb
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(adb
|
||||
jsoncpp)
|
||||
target_include_directories(adb
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(adb
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(adb
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(adb
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(adb
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${adb_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/adb)
|
||||
install(FILES ${adb_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/adb/model)
|
||||
install(TARGETS adb
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
414
adb/include/alibabacloud/adb/AdbClient.h
Normal file
414
adb/include/alibabacloud/adb/AdbClient.h
Normal file
@@ -0,0 +1,414 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ADBCLIENT_H_
|
||||
#define ALIBABACLOUD_ADB_ADBCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "AdbExport.h"
|
||||
#include "model/AllocateClusterPublicConnectionRequest.h"
|
||||
#include "model/AllocateClusterPublicConnectionResult.h"
|
||||
#include "model/CreateAccountRequest.h"
|
||||
#include "model/CreateAccountResult.h"
|
||||
#include "model/CreateDBClusterRequest.h"
|
||||
#include "model/CreateDBClusterResult.h"
|
||||
#include "model/DeleteAccountRequest.h"
|
||||
#include "model/DeleteAccountResult.h"
|
||||
#include "model/DeleteDBClusterRequest.h"
|
||||
#include "model/DeleteDBClusterResult.h"
|
||||
#include "model/DescribeAccountsRequest.h"
|
||||
#include "model/DescribeAccountsResult.h"
|
||||
#include "model/DescribeAllDataSourceRequest.h"
|
||||
#include "model/DescribeAllDataSourceResult.h"
|
||||
#include "model/DescribeAutoRenewAttributeRequest.h"
|
||||
#include "model/DescribeAutoRenewAttributeResult.h"
|
||||
#include "model/DescribeAvailableResourceRequest.h"
|
||||
#include "model/DescribeAvailableResourceResult.h"
|
||||
#include "model/DescribeBackupPolicyRequest.h"
|
||||
#include "model/DescribeBackupPolicyResult.h"
|
||||
#include "model/DescribeBackupsRequest.h"
|
||||
#include "model/DescribeBackupsResult.h"
|
||||
#include "model/DescribeColumnsRequest.h"
|
||||
#include "model/DescribeColumnsResult.h"
|
||||
#include "model/DescribeDBClusterAccessWhiteListRequest.h"
|
||||
#include "model/DescribeDBClusterAccessWhiteListResult.h"
|
||||
#include "model/DescribeDBClusterAttributeRequest.h"
|
||||
#include "model/DescribeDBClusterAttributeResult.h"
|
||||
#include "model/DescribeDBClusterNetInfoRequest.h"
|
||||
#include "model/DescribeDBClusterNetInfoResult.h"
|
||||
#include "model/DescribeDBClusterPerformanceRequest.h"
|
||||
#include "model/DescribeDBClusterPerformanceResult.h"
|
||||
#include "model/DescribeDBClustersRequest.h"
|
||||
#include "model/DescribeDBClustersResult.h"
|
||||
#include "model/DescribeInclinedTablesRequest.h"
|
||||
#include "model/DescribeInclinedTablesResult.h"
|
||||
#include "model/DescribeLogStoreKeysRequest.h"
|
||||
#include "model/DescribeLogStoreKeysResult.h"
|
||||
#include "model/DescribeLoghubDetailRequest.h"
|
||||
#include "model/DescribeLoghubDetailResult.h"
|
||||
#include "model/DescribeOperatorPermissionRequest.h"
|
||||
#include "model/DescribeOperatorPermissionResult.h"
|
||||
#include "model/DescribeProcessListRequest.h"
|
||||
#include "model/DescribeProcessListResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeSchemasRequest.h"
|
||||
#include "model/DescribeSchemasResult.h"
|
||||
#include "model/DescribeSlowLogRecordsRequest.h"
|
||||
#include "model/DescribeSlowLogRecordsResult.h"
|
||||
#include "model/DescribeSlowLogTrendRequest.h"
|
||||
#include "model/DescribeSlowLogTrendResult.h"
|
||||
#include "model/DescribeTableDetailRequest.h"
|
||||
#include "model/DescribeTableDetailResult.h"
|
||||
#include "model/DescribeTablesRequest.h"
|
||||
#include "model/DescribeTablesResult.h"
|
||||
#include "model/DescribeTaskInfoRequest.h"
|
||||
#include "model/DescribeTaskInfoResult.h"
|
||||
#include "model/GrantOperatorPermissionRequest.h"
|
||||
#include "model/GrantOperatorPermissionResult.h"
|
||||
#include "model/KillProcessRequest.h"
|
||||
#include "model/KillProcessResult.h"
|
||||
#include "model/ListTagResourcesRequest.h"
|
||||
#include "model/ListTagResourcesResult.h"
|
||||
#include "model/ModifyAccountDescriptionRequest.h"
|
||||
#include "model/ModifyAccountDescriptionResult.h"
|
||||
#include "model/ModifyAutoRenewAttributeRequest.h"
|
||||
#include "model/ModifyAutoRenewAttributeResult.h"
|
||||
#include "model/ModifyBackupPolicyRequest.h"
|
||||
#include "model/ModifyBackupPolicyResult.h"
|
||||
#include "model/ModifyClusterConnectionStringRequest.h"
|
||||
#include "model/ModifyClusterConnectionStringResult.h"
|
||||
#include "model/ModifyDBClusterRequest.h"
|
||||
#include "model/ModifyDBClusterResult.h"
|
||||
#include "model/ModifyDBClusterAccessWhiteListRequest.h"
|
||||
#include "model/ModifyDBClusterAccessWhiteListResult.h"
|
||||
#include "model/ModifyDBClusterDescriptionRequest.h"
|
||||
#include "model/ModifyDBClusterDescriptionResult.h"
|
||||
#include "model/ModifyDBClusterMaintainTimeRequest.h"
|
||||
#include "model/ModifyDBClusterMaintainTimeResult.h"
|
||||
#include "model/ModifyLogBackupPolicyRequest.h"
|
||||
#include "model/ModifyLogBackupPolicyResult.h"
|
||||
#include "model/ReleaseClusterPublicConnectionRequest.h"
|
||||
#include "model/ReleaseClusterPublicConnectionResult.h"
|
||||
#include "model/ResetAccountPasswordRequest.h"
|
||||
#include "model/ResetAccountPasswordResult.h"
|
||||
#include "model/RevokeOperatorPermissionRequest.h"
|
||||
#include "model/RevokeOperatorPermissionResult.h"
|
||||
#include "model/TagResourcesRequest.h"
|
||||
#include "model/TagResourcesResult.h"
|
||||
#include "model/UntagResourcesRequest.h"
|
||||
#include "model/UntagResourcesResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT AdbClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AllocateClusterPublicConnectionResult> AllocateClusterPublicConnectionOutcome;
|
||||
typedef std::future<AllocateClusterPublicConnectionOutcome> AllocateClusterPublicConnectionOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::AllocateClusterPublicConnectionRequest&, const AllocateClusterPublicConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AllocateClusterPublicConnectionAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAccountResult> CreateAccountOutcome;
|
||||
typedef std::future<CreateAccountOutcome> CreateAccountOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::CreateAccountRequest&, const CreateAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDBClusterResult> CreateDBClusterOutcome;
|
||||
typedef std::future<CreateDBClusterOutcome> CreateDBClusterOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::CreateDBClusterRequest&, const CreateDBClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDBClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteAccountResult> DeleteAccountOutcome;
|
||||
typedef std::future<DeleteAccountOutcome> DeleteAccountOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DeleteAccountRequest&, const DeleteAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDBClusterResult> DeleteDBClusterOutcome;
|
||||
typedef std::future<DeleteDBClusterOutcome> DeleteDBClusterOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DeleteDBClusterRequest&, const DeleteDBClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDBClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAccountsResult> DescribeAccountsOutcome;
|
||||
typedef std::future<DescribeAccountsOutcome> DescribeAccountsOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeAccountsRequest&, const DescribeAccountsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAccountsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAllDataSourceResult> DescribeAllDataSourceOutcome;
|
||||
typedef std::future<DescribeAllDataSourceOutcome> DescribeAllDataSourceOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeAllDataSourceRequest&, const DescribeAllDataSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAllDataSourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAutoRenewAttributeResult> DescribeAutoRenewAttributeOutcome;
|
||||
typedef std::future<DescribeAutoRenewAttributeOutcome> DescribeAutoRenewAttributeOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeAutoRenewAttributeRequest&, const DescribeAutoRenewAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAutoRenewAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAvailableResourceResult> DescribeAvailableResourceOutcome;
|
||||
typedef std::future<DescribeAvailableResourceOutcome> DescribeAvailableResourceOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeAvailableResourceRequest&, const DescribeAvailableResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAvailableResourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBackupPolicyResult> DescribeBackupPolicyOutcome;
|
||||
typedef std::future<DescribeBackupPolicyOutcome> DescribeBackupPolicyOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeBackupPolicyRequest&, const DescribeBackupPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBackupsResult> DescribeBackupsOutcome;
|
||||
typedef std::future<DescribeBackupsOutcome> DescribeBackupsOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeBackupsRequest&, const DescribeBackupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeColumnsResult> DescribeColumnsOutcome;
|
||||
typedef std::future<DescribeColumnsOutcome> DescribeColumnsOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeColumnsRequest&, const DescribeColumnsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeColumnsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDBClusterAccessWhiteListResult> DescribeDBClusterAccessWhiteListOutcome;
|
||||
typedef std::future<DescribeDBClusterAccessWhiteListOutcome> DescribeDBClusterAccessWhiteListOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeDBClusterAccessWhiteListRequest&, const DescribeDBClusterAccessWhiteListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClusterAccessWhiteListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDBClusterAttributeResult> DescribeDBClusterAttributeOutcome;
|
||||
typedef std::future<DescribeDBClusterAttributeOutcome> DescribeDBClusterAttributeOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeDBClusterAttributeRequest&, const DescribeDBClusterAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClusterAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDBClusterNetInfoResult> DescribeDBClusterNetInfoOutcome;
|
||||
typedef std::future<DescribeDBClusterNetInfoOutcome> DescribeDBClusterNetInfoOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeDBClusterNetInfoRequest&, const DescribeDBClusterNetInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClusterNetInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDBClusterPerformanceResult> DescribeDBClusterPerformanceOutcome;
|
||||
typedef std::future<DescribeDBClusterPerformanceOutcome> DescribeDBClusterPerformanceOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeDBClusterPerformanceRequest&, const DescribeDBClusterPerformanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClusterPerformanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDBClustersResult> DescribeDBClustersOutcome;
|
||||
typedef std::future<DescribeDBClustersOutcome> DescribeDBClustersOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeDBClustersRequest&, const DescribeDBClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClustersAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeInclinedTablesResult> DescribeInclinedTablesOutcome;
|
||||
typedef std::future<DescribeInclinedTablesOutcome> DescribeInclinedTablesOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeInclinedTablesRequest&, const DescribeInclinedTablesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInclinedTablesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLogStoreKeysResult> DescribeLogStoreKeysOutcome;
|
||||
typedef std::future<DescribeLogStoreKeysOutcome> DescribeLogStoreKeysOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeLogStoreKeysRequest&, const DescribeLogStoreKeysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLogStoreKeysAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLoghubDetailResult> DescribeLoghubDetailOutcome;
|
||||
typedef std::future<DescribeLoghubDetailOutcome> DescribeLoghubDetailOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeLoghubDetailRequest&, const DescribeLoghubDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLoghubDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeOperatorPermissionResult> DescribeOperatorPermissionOutcome;
|
||||
typedef std::future<DescribeOperatorPermissionOutcome> DescribeOperatorPermissionOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeOperatorPermissionRequest&, const DescribeOperatorPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeOperatorPermissionAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeProcessListResult> DescribeProcessListOutcome;
|
||||
typedef std::future<DescribeProcessListOutcome> DescribeProcessListOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeProcessListRequest&, const DescribeProcessListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeProcessListAsyncHandler;
|
||||
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::DescribeSchemasResult> DescribeSchemasOutcome;
|
||||
typedef std::future<DescribeSchemasOutcome> DescribeSchemasOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeSchemasRequest&, const DescribeSchemasOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSchemasAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSlowLogRecordsResult> DescribeSlowLogRecordsOutcome;
|
||||
typedef std::future<DescribeSlowLogRecordsOutcome> DescribeSlowLogRecordsOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeSlowLogRecordsRequest&, const DescribeSlowLogRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSlowLogRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSlowLogTrendResult> DescribeSlowLogTrendOutcome;
|
||||
typedef std::future<DescribeSlowLogTrendOutcome> DescribeSlowLogTrendOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeSlowLogTrendRequest&, const DescribeSlowLogTrendOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSlowLogTrendAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTableDetailResult> DescribeTableDetailOutcome;
|
||||
typedef std::future<DescribeTableDetailOutcome> DescribeTableDetailOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeTableDetailRequest&, const DescribeTableDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTableDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTablesResult> DescribeTablesOutcome;
|
||||
typedef std::future<DescribeTablesOutcome> DescribeTablesOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeTablesRequest&, const DescribeTablesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTablesAsyncHandler;
|
||||
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::GrantOperatorPermissionResult> GrantOperatorPermissionOutcome;
|
||||
typedef std::future<GrantOperatorPermissionOutcome> GrantOperatorPermissionOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::GrantOperatorPermissionRequest&, const GrantOperatorPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GrantOperatorPermissionAsyncHandler;
|
||||
typedef Outcome<Error, Model::KillProcessResult> KillProcessOutcome;
|
||||
typedef std::future<KillProcessOutcome> KillProcessOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::KillProcessRequest&, const KillProcessOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> KillProcessAsyncHandler;
|
||||
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::ModifyAccountDescriptionResult> ModifyAccountDescriptionOutcome;
|
||||
typedef std::future<ModifyAccountDescriptionOutcome> ModifyAccountDescriptionOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyAccountDescriptionRequest&, const ModifyAccountDescriptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAccountDescriptionAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyAutoRenewAttributeResult> ModifyAutoRenewAttributeOutcome;
|
||||
typedef std::future<ModifyAutoRenewAttributeOutcome> ModifyAutoRenewAttributeOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyAutoRenewAttributeRequest&, const ModifyAutoRenewAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAutoRenewAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyBackupPolicyResult> ModifyBackupPolicyOutcome;
|
||||
typedef std::future<ModifyBackupPolicyOutcome> ModifyBackupPolicyOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyBackupPolicyRequest&, const ModifyBackupPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyBackupPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyClusterConnectionStringResult> ModifyClusterConnectionStringOutcome;
|
||||
typedef std::future<ModifyClusterConnectionStringOutcome> ModifyClusterConnectionStringOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyClusterConnectionStringRequest&, const ModifyClusterConnectionStringOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyClusterConnectionStringAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDBClusterResult> ModifyDBClusterOutcome;
|
||||
typedef std::future<ModifyDBClusterOutcome> ModifyDBClusterOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyDBClusterRequest&, const ModifyDBClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDBClusterAccessWhiteListResult> ModifyDBClusterAccessWhiteListOutcome;
|
||||
typedef std::future<ModifyDBClusterAccessWhiteListOutcome> ModifyDBClusterAccessWhiteListOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyDBClusterAccessWhiteListRequest&, const ModifyDBClusterAccessWhiteListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterAccessWhiteListAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDBClusterDescriptionResult> ModifyDBClusterDescriptionOutcome;
|
||||
typedef std::future<ModifyDBClusterDescriptionOutcome> ModifyDBClusterDescriptionOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyDBClusterDescriptionRequest&, const ModifyDBClusterDescriptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterDescriptionAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDBClusterMaintainTimeResult> ModifyDBClusterMaintainTimeOutcome;
|
||||
typedef std::future<ModifyDBClusterMaintainTimeOutcome> ModifyDBClusterMaintainTimeOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyDBClusterMaintainTimeRequest&, const ModifyDBClusterMaintainTimeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterMaintainTimeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyLogBackupPolicyResult> ModifyLogBackupPolicyOutcome;
|
||||
typedef std::future<ModifyLogBackupPolicyOutcome> ModifyLogBackupPolicyOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyLogBackupPolicyRequest&, const ModifyLogBackupPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyLogBackupPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ReleaseClusterPublicConnectionResult> ReleaseClusterPublicConnectionOutcome;
|
||||
typedef std::future<ReleaseClusterPublicConnectionOutcome> ReleaseClusterPublicConnectionOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ReleaseClusterPublicConnectionRequest&, const ReleaseClusterPublicConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleaseClusterPublicConnectionAsyncHandler;
|
||||
typedef Outcome<Error, Model::ResetAccountPasswordResult> ResetAccountPasswordOutcome;
|
||||
typedef std::future<ResetAccountPasswordOutcome> ResetAccountPasswordOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ResetAccountPasswordRequest&, const ResetAccountPasswordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetAccountPasswordAsyncHandler;
|
||||
typedef Outcome<Error, Model::RevokeOperatorPermissionResult> RevokeOperatorPermissionOutcome;
|
||||
typedef std::future<RevokeOperatorPermissionOutcome> RevokeOperatorPermissionOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::RevokeOperatorPermissionRequest&, const RevokeOperatorPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RevokeOperatorPermissionAsyncHandler;
|
||||
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
|
||||
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
|
||||
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
|
||||
|
||||
AdbClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
AdbClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
AdbClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~AdbClient();
|
||||
AllocateClusterPublicConnectionOutcome allocateClusterPublicConnection(const Model::AllocateClusterPublicConnectionRequest &request)const;
|
||||
void allocateClusterPublicConnectionAsync(const Model::AllocateClusterPublicConnectionRequest& request, const AllocateClusterPublicConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AllocateClusterPublicConnectionOutcomeCallable allocateClusterPublicConnectionCallable(const Model::AllocateClusterPublicConnectionRequest& request) const;
|
||||
CreateAccountOutcome createAccount(const Model::CreateAccountRequest &request)const;
|
||||
void createAccountAsync(const Model::CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAccountOutcomeCallable createAccountCallable(const Model::CreateAccountRequest& request) const;
|
||||
CreateDBClusterOutcome createDBCluster(const Model::CreateDBClusterRequest &request)const;
|
||||
void createDBClusterAsync(const Model::CreateDBClusterRequest& request, const CreateDBClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDBClusterOutcomeCallable createDBClusterCallable(const Model::CreateDBClusterRequest& request) const;
|
||||
DeleteAccountOutcome deleteAccount(const Model::DeleteAccountRequest &request)const;
|
||||
void deleteAccountAsync(const Model::DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteAccountOutcomeCallable deleteAccountCallable(const Model::DeleteAccountRequest& request) const;
|
||||
DeleteDBClusterOutcome deleteDBCluster(const Model::DeleteDBClusterRequest &request)const;
|
||||
void deleteDBClusterAsync(const Model::DeleteDBClusterRequest& request, const DeleteDBClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDBClusterOutcomeCallable deleteDBClusterCallable(const Model::DeleteDBClusterRequest& request) const;
|
||||
DescribeAccountsOutcome describeAccounts(const Model::DescribeAccountsRequest &request)const;
|
||||
void describeAccountsAsync(const Model::DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAccountsOutcomeCallable describeAccountsCallable(const Model::DescribeAccountsRequest& request) const;
|
||||
DescribeAllDataSourceOutcome describeAllDataSource(const Model::DescribeAllDataSourceRequest &request)const;
|
||||
void describeAllDataSourceAsync(const Model::DescribeAllDataSourceRequest& request, const DescribeAllDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAllDataSourceOutcomeCallable describeAllDataSourceCallable(const Model::DescribeAllDataSourceRequest& request) const;
|
||||
DescribeAutoRenewAttributeOutcome describeAutoRenewAttribute(const Model::DescribeAutoRenewAttributeRequest &request)const;
|
||||
void describeAutoRenewAttributeAsync(const Model::DescribeAutoRenewAttributeRequest& request, const DescribeAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAutoRenewAttributeOutcomeCallable describeAutoRenewAttributeCallable(const Model::DescribeAutoRenewAttributeRequest& request) const;
|
||||
DescribeAvailableResourceOutcome describeAvailableResource(const Model::DescribeAvailableResourceRequest &request)const;
|
||||
void describeAvailableResourceAsync(const Model::DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAvailableResourceOutcomeCallable describeAvailableResourceCallable(const Model::DescribeAvailableResourceRequest& request) const;
|
||||
DescribeBackupPolicyOutcome describeBackupPolicy(const Model::DescribeBackupPolicyRequest &request)const;
|
||||
void describeBackupPolicyAsync(const Model::DescribeBackupPolicyRequest& request, const DescribeBackupPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBackupPolicyOutcomeCallable describeBackupPolicyCallable(const Model::DescribeBackupPolicyRequest& request) const;
|
||||
DescribeBackupsOutcome describeBackups(const Model::DescribeBackupsRequest &request)const;
|
||||
void describeBackupsAsync(const Model::DescribeBackupsRequest& request, const DescribeBackupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBackupsOutcomeCallable describeBackupsCallable(const Model::DescribeBackupsRequest& request) const;
|
||||
DescribeColumnsOutcome describeColumns(const Model::DescribeColumnsRequest &request)const;
|
||||
void describeColumnsAsync(const Model::DescribeColumnsRequest& request, const DescribeColumnsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeColumnsOutcomeCallable describeColumnsCallable(const Model::DescribeColumnsRequest& request) const;
|
||||
DescribeDBClusterAccessWhiteListOutcome describeDBClusterAccessWhiteList(const Model::DescribeDBClusterAccessWhiteListRequest &request)const;
|
||||
void describeDBClusterAccessWhiteListAsync(const Model::DescribeDBClusterAccessWhiteListRequest& request, const DescribeDBClusterAccessWhiteListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClusterAccessWhiteListOutcomeCallable describeDBClusterAccessWhiteListCallable(const Model::DescribeDBClusterAccessWhiteListRequest& request) const;
|
||||
DescribeDBClusterAttributeOutcome describeDBClusterAttribute(const Model::DescribeDBClusterAttributeRequest &request)const;
|
||||
void describeDBClusterAttributeAsync(const Model::DescribeDBClusterAttributeRequest& request, const DescribeDBClusterAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClusterAttributeOutcomeCallable describeDBClusterAttributeCallable(const Model::DescribeDBClusterAttributeRequest& request) const;
|
||||
DescribeDBClusterNetInfoOutcome describeDBClusterNetInfo(const Model::DescribeDBClusterNetInfoRequest &request)const;
|
||||
void describeDBClusterNetInfoAsync(const Model::DescribeDBClusterNetInfoRequest& request, const DescribeDBClusterNetInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClusterNetInfoOutcomeCallable describeDBClusterNetInfoCallable(const Model::DescribeDBClusterNetInfoRequest& request) const;
|
||||
DescribeDBClusterPerformanceOutcome describeDBClusterPerformance(const Model::DescribeDBClusterPerformanceRequest &request)const;
|
||||
void describeDBClusterPerformanceAsync(const Model::DescribeDBClusterPerformanceRequest& request, const DescribeDBClusterPerformanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClusterPerformanceOutcomeCallable describeDBClusterPerformanceCallable(const Model::DescribeDBClusterPerformanceRequest& request) const;
|
||||
DescribeDBClustersOutcome describeDBClusters(const Model::DescribeDBClustersRequest &request)const;
|
||||
void describeDBClustersAsync(const Model::DescribeDBClustersRequest& request, const DescribeDBClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClustersOutcomeCallable describeDBClustersCallable(const Model::DescribeDBClustersRequest& request) const;
|
||||
DescribeInclinedTablesOutcome describeInclinedTables(const Model::DescribeInclinedTablesRequest &request)const;
|
||||
void describeInclinedTablesAsync(const Model::DescribeInclinedTablesRequest& request, const DescribeInclinedTablesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInclinedTablesOutcomeCallable describeInclinedTablesCallable(const Model::DescribeInclinedTablesRequest& request) const;
|
||||
DescribeLogStoreKeysOutcome describeLogStoreKeys(const Model::DescribeLogStoreKeysRequest &request)const;
|
||||
void describeLogStoreKeysAsync(const Model::DescribeLogStoreKeysRequest& request, const DescribeLogStoreKeysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLogStoreKeysOutcomeCallable describeLogStoreKeysCallable(const Model::DescribeLogStoreKeysRequest& request) const;
|
||||
DescribeLoghubDetailOutcome describeLoghubDetail(const Model::DescribeLoghubDetailRequest &request)const;
|
||||
void describeLoghubDetailAsync(const Model::DescribeLoghubDetailRequest& request, const DescribeLoghubDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLoghubDetailOutcomeCallable describeLoghubDetailCallable(const Model::DescribeLoghubDetailRequest& request) const;
|
||||
DescribeOperatorPermissionOutcome describeOperatorPermission(const Model::DescribeOperatorPermissionRequest &request)const;
|
||||
void describeOperatorPermissionAsync(const Model::DescribeOperatorPermissionRequest& request, const DescribeOperatorPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeOperatorPermissionOutcomeCallable describeOperatorPermissionCallable(const Model::DescribeOperatorPermissionRequest& request) const;
|
||||
DescribeProcessListOutcome describeProcessList(const Model::DescribeProcessListRequest &request)const;
|
||||
void describeProcessListAsync(const Model::DescribeProcessListRequest& request, const DescribeProcessListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeProcessListOutcomeCallable describeProcessListCallable(const Model::DescribeProcessListRequest& 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;
|
||||
DescribeSchemasOutcome describeSchemas(const Model::DescribeSchemasRequest &request)const;
|
||||
void describeSchemasAsync(const Model::DescribeSchemasRequest& request, const DescribeSchemasAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSchemasOutcomeCallable describeSchemasCallable(const Model::DescribeSchemasRequest& request) const;
|
||||
DescribeSlowLogRecordsOutcome describeSlowLogRecords(const Model::DescribeSlowLogRecordsRequest &request)const;
|
||||
void describeSlowLogRecordsAsync(const Model::DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSlowLogRecordsOutcomeCallable describeSlowLogRecordsCallable(const Model::DescribeSlowLogRecordsRequest& request) const;
|
||||
DescribeSlowLogTrendOutcome describeSlowLogTrend(const Model::DescribeSlowLogTrendRequest &request)const;
|
||||
void describeSlowLogTrendAsync(const Model::DescribeSlowLogTrendRequest& request, const DescribeSlowLogTrendAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSlowLogTrendOutcomeCallable describeSlowLogTrendCallable(const Model::DescribeSlowLogTrendRequest& request) const;
|
||||
DescribeTableDetailOutcome describeTableDetail(const Model::DescribeTableDetailRequest &request)const;
|
||||
void describeTableDetailAsync(const Model::DescribeTableDetailRequest& request, const DescribeTableDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTableDetailOutcomeCallable describeTableDetailCallable(const Model::DescribeTableDetailRequest& request) const;
|
||||
DescribeTablesOutcome describeTables(const Model::DescribeTablesRequest &request)const;
|
||||
void describeTablesAsync(const Model::DescribeTablesRequest& request, const DescribeTablesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTablesOutcomeCallable describeTablesCallable(const Model::DescribeTablesRequest& request) const;
|
||||
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;
|
||||
GrantOperatorPermissionOutcome grantOperatorPermission(const Model::GrantOperatorPermissionRequest &request)const;
|
||||
void grantOperatorPermissionAsync(const Model::GrantOperatorPermissionRequest& request, const GrantOperatorPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GrantOperatorPermissionOutcomeCallable grantOperatorPermissionCallable(const Model::GrantOperatorPermissionRequest& request) const;
|
||||
KillProcessOutcome killProcess(const Model::KillProcessRequest &request)const;
|
||||
void killProcessAsync(const Model::KillProcessRequest& request, const KillProcessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
KillProcessOutcomeCallable killProcessCallable(const Model::KillProcessRequest& request) const;
|
||||
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
|
||||
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
|
||||
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;
|
||||
ModifyAutoRenewAttributeOutcome modifyAutoRenewAttribute(const Model::ModifyAutoRenewAttributeRequest &request)const;
|
||||
void modifyAutoRenewAttributeAsync(const Model::ModifyAutoRenewAttributeRequest& request, const ModifyAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyAutoRenewAttributeOutcomeCallable modifyAutoRenewAttributeCallable(const Model::ModifyAutoRenewAttributeRequest& request) const;
|
||||
ModifyBackupPolicyOutcome modifyBackupPolicy(const Model::ModifyBackupPolicyRequest &request)const;
|
||||
void modifyBackupPolicyAsync(const Model::ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyBackupPolicyOutcomeCallable modifyBackupPolicyCallable(const Model::ModifyBackupPolicyRequest& request) const;
|
||||
ModifyClusterConnectionStringOutcome modifyClusterConnectionString(const Model::ModifyClusterConnectionStringRequest &request)const;
|
||||
void modifyClusterConnectionStringAsync(const Model::ModifyClusterConnectionStringRequest& request, const ModifyClusterConnectionStringAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyClusterConnectionStringOutcomeCallable modifyClusterConnectionStringCallable(const Model::ModifyClusterConnectionStringRequest& request) const;
|
||||
ModifyDBClusterOutcome modifyDBCluster(const Model::ModifyDBClusterRequest &request)const;
|
||||
void modifyDBClusterAsync(const Model::ModifyDBClusterRequest& request, const ModifyDBClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterOutcomeCallable modifyDBClusterCallable(const Model::ModifyDBClusterRequest& request) const;
|
||||
ModifyDBClusterAccessWhiteListOutcome modifyDBClusterAccessWhiteList(const Model::ModifyDBClusterAccessWhiteListRequest &request)const;
|
||||
void modifyDBClusterAccessWhiteListAsync(const Model::ModifyDBClusterAccessWhiteListRequest& request, const ModifyDBClusterAccessWhiteListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterAccessWhiteListOutcomeCallable modifyDBClusterAccessWhiteListCallable(const Model::ModifyDBClusterAccessWhiteListRequest& request) const;
|
||||
ModifyDBClusterDescriptionOutcome modifyDBClusterDescription(const Model::ModifyDBClusterDescriptionRequest &request)const;
|
||||
void modifyDBClusterDescriptionAsync(const Model::ModifyDBClusterDescriptionRequest& request, const ModifyDBClusterDescriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterDescriptionOutcomeCallable modifyDBClusterDescriptionCallable(const Model::ModifyDBClusterDescriptionRequest& request) const;
|
||||
ModifyDBClusterMaintainTimeOutcome modifyDBClusterMaintainTime(const Model::ModifyDBClusterMaintainTimeRequest &request)const;
|
||||
void modifyDBClusterMaintainTimeAsync(const Model::ModifyDBClusterMaintainTimeRequest& request, const ModifyDBClusterMaintainTimeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterMaintainTimeOutcomeCallable modifyDBClusterMaintainTimeCallable(const Model::ModifyDBClusterMaintainTimeRequest& request) const;
|
||||
ModifyLogBackupPolicyOutcome modifyLogBackupPolicy(const Model::ModifyLogBackupPolicyRequest &request)const;
|
||||
void modifyLogBackupPolicyAsync(const Model::ModifyLogBackupPolicyRequest& request, const ModifyLogBackupPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyLogBackupPolicyOutcomeCallable modifyLogBackupPolicyCallable(const Model::ModifyLogBackupPolicyRequest& request) const;
|
||||
ReleaseClusterPublicConnectionOutcome releaseClusterPublicConnection(const Model::ReleaseClusterPublicConnectionRequest &request)const;
|
||||
void releaseClusterPublicConnectionAsync(const Model::ReleaseClusterPublicConnectionRequest& request, const ReleaseClusterPublicConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReleaseClusterPublicConnectionOutcomeCallable releaseClusterPublicConnectionCallable(const Model::ReleaseClusterPublicConnectionRequest& request) const;
|
||||
ResetAccountPasswordOutcome resetAccountPassword(const Model::ResetAccountPasswordRequest &request)const;
|
||||
void resetAccountPasswordAsync(const Model::ResetAccountPasswordRequest& request, const ResetAccountPasswordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ResetAccountPasswordOutcomeCallable resetAccountPasswordCallable(const Model::ResetAccountPasswordRequest& request) const;
|
||||
RevokeOperatorPermissionOutcome revokeOperatorPermission(const Model::RevokeOperatorPermissionRequest &request)const;
|
||||
void revokeOperatorPermissionAsync(const Model::RevokeOperatorPermissionRequest& request, const RevokeOperatorPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RevokeOperatorPermissionOutcomeCallable revokeOperatorPermissionCallable(const Model::RevokeOperatorPermissionRequest& request) const;
|
||||
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
|
||||
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;
|
||||
UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const;
|
||||
void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ADB_ADBCLIENT_H_
|
||||
32
adb/include/alibabacloud/adb/AdbExport.h
Normal file
32
adb/include/alibabacloud/adb/AdbExport.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_ADB_ADBEXPORT_H_
|
||||
#define ALIBABACLOUD_ADB_ADBEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ADB_LIBRARY)
|
||||
# define ALIBABACLOUD_ADB_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ADB_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ADB_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ADB_ADBEXPORT_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT AllocateClusterPublicConnectionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AllocateClusterPublicConnectionRequest();
|
||||
~AllocateClusterPublicConnectionRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getConnectionStringPrefix()const;
|
||||
void setConnectionStringPrefix(const std::string& connectionStringPrefix);
|
||||
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 connectionStringPrefix_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONREQUEST_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_ADB_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONRESULT_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 AllocateClusterPublicConnectionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AllocateClusterPublicConnectionResult();
|
||||
explicit AllocateClusterPublicConnectionResult(const std::string &payload);
|
||||
~AllocateClusterPublicConnectionResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONRESULT_H_
|
||||
75
adb/include/alibabacloud/adb/model/CreateAccountRequest.h
Normal file
75
adb/include/alibabacloud/adb/model/CreateAccountRequest.h
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_CREATEACCOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_CREATEACCOUNTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT CreateAccountRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateAccountRequest();
|
||||
~CreateAccountRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccountType()const;
|
||||
void setAccountType(const std::string& accountType);
|
||||
std::string getAccountDescription()const;
|
||||
void setAccountDescription(const std::string& accountDescription);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getAccountName()const;
|
||||
void setAccountName(const std::string& accountName);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
void setDBClusterId(const std::string& dBClusterId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccountPassword()const;
|
||||
void setAccountPassword(const std::string& accountPassword);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accountType_;
|
||||
std::string accountDescription_;
|
||||
std::string accessKeyId_;
|
||||
std::string accountName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string accountPassword_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_CREATEACCOUNTREQUEST_H_
|
||||
53
adb/include/alibabacloud/adb/model/CreateAccountResult.h
Normal file
53
adb/include/alibabacloud/adb/model/CreateAccountResult.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_CREATEACCOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_CREATEACCOUNTRESULT_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 CreateAccountResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateAccountResult();
|
||||
explicit CreateAccountResult(const std::string &payload);
|
||||
~CreateAccountResult();
|
||||
int getTaskId()const;
|
||||
std::string getDBClusterId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int taskId_;
|
||||
std::string dBClusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_CREATEACCOUNTRESULT_H_
|
||||
105
adb/include/alibabacloud/adb/model/CreateDBClusterRequest.h
Normal file
105
adb/include/alibabacloud/adb/model/CreateDBClusterRequest.h
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_CREATEDBCLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_CREATEDBCLUSTERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT CreateDBClusterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDBClusterRequest();
|
||||
~CreateDBClusterRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getDBClusterDescription()const;
|
||||
void setDBClusterDescription(const std::string& dBClusterDescription);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDBClusterCategory()const;
|
||||
void setDBClusterCategory(const std::string& dBClusterCategory);
|
||||
std::string getDBClusterNetworkType()const;
|
||||
void setDBClusterNetworkType(const std::string& dBClusterNetworkType);
|
||||
std::string getPeriod()const;
|
||||
void setPeriod(const std::string& period);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getDBClusterVersion()const;
|
||||
void setDBClusterVersion(const std::string& dBClusterVersion);
|
||||
std::string getDBClusterClass()const;
|
||||
void setDBClusterClass(const std::string& dBClusterClass);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getDBNodeGroupCount()const;
|
||||
void setDBNodeGroupCount(const std::string& dBNodeGroupCount);
|
||||
std::string getUsedTime()const;
|
||||
void setUsedTime(const std::string& usedTime);
|
||||
std::string getVSwitchId()const;
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::string getDBNodeStorage()const;
|
||||
void setDBNodeStorage(const std::string& dBNodeStorage);
|
||||
std::string getVPCId()const;
|
||||
void setVPCId(const std::string& vPCId);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getPayType()const;
|
||||
void setPayType(const std::string& payType);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string dBClusterDescription_;
|
||||
std::string clientToken_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string dBClusterCategory_;
|
||||
std::string dBClusterNetworkType_;
|
||||
std::string period_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string dBClusterVersion_;
|
||||
std::string dBClusterClass_;
|
||||
long ownerId_;
|
||||
std::string dBNodeGroupCount_;
|
||||
std::string usedTime_;
|
||||
std::string vSwitchId_;
|
||||
std::string dBNodeStorage_;
|
||||
std::string vPCId_;
|
||||
std::string zoneId_;
|
||||
std::string payType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_CREATEDBCLUSTERREQUEST_H_
|
||||
53
adb/include/alibabacloud/adb/model/CreateDBClusterResult.h
Normal file
53
adb/include/alibabacloud/adb/model/CreateDBClusterResult.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_CREATEDBCLUSTERRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_CREATEDBCLUSTERRESULT_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 CreateDBClusterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDBClusterResult();
|
||||
explicit CreateDBClusterResult(const std::string &payload);
|
||||
~CreateDBClusterResult();
|
||||
std::string getDBClusterId()const;
|
||||
std::string getOrderId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string dBClusterId_;
|
||||
std::string orderId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_CREATEDBCLUSTERRESULT_H_
|
||||
69
adb/include/alibabacloud/adb/model/DeleteAccountRequest.h
Normal file
69
adb/include/alibabacloud/adb/model/DeleteAccountRequest.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_DELETEACCOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DELETEACCOUNTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DeleteAccountRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteAccountRequest();
|
||||
~DeleteAccountRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccountType()const;
|
||||
void setAccountType(const std::string& accountType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getAccountName()const;
|
||||
void setAccountName(const std::string& accountName);
|
||||
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 accountType_;
|
||||
std::string accessKeyId_;
|
||||
std::string accountName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DELETEACCOUNTREQUEST_H_
|
||||
49
adb/include/alibabacloud/adb/model/DeleteAccountResult.h
Normal file
49
adb/include/alibabacloud/adb/model/DeleteAccountResult.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_DELETEACCOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DELETEACCOUNTRESULT_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 DeleteAccountResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteAccountResult();
|
||||
explicit DeleteAccountResult(const std::string &payload);
|
||||
~DeleteAccountResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DELETEACCOUNTRESULT_H_
|
||||
63
adb/include/alibabacloud/adb/model/DeleteDBClusterRequest.h
Normal file
63
adb/include/alibabacloud/adb/model/DeleteDBClusterRequest.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DELETEDBCLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DELETEDBCLUSTERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DeleteDBClusterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteDBClusterRequest();
|
||||
~DeleteDBClusterRequest();
|
||||
|
||||
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_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DELETEDBCLUSTERREQUEST_H_
|
||||
49
adb/include/alibabacloud/adb/model/DeleteDBClusterResult.h
Normal file
49
adb/include/alibabacloud/adb/model/DeleteDBClusterResult.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_DELETEDBCLUSTERRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DELETEDBCLUSTERRESULT_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 DeleteDBClusterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteDBClusterResult();
|
||||
explicit DeleteDBClusterResult(const std::string &payload);
|
||||
~DeleteDBClusterResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DELETEDBCLUSTERRESULT_H_
|
||||
69
adb/include/alibabacloud/adb/model/DescribeAccountsRequest.h
Normal file
69
adb/include/alibabacloud/adb/model/DescribeAccountsRequest.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_DESCRIBEACCOUNTSREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEACCOUNTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeAccountsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeAccountsRequest();
|
||||
~DescribeAccountsRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccountType()const;
|
||||
void setAccountType(const std::string& accountType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getAccountName()const;
|
||||
void setAccountName(const std::string& accountName);
|
||||
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 accountType_;
|
||||
std::string accessKeyId_;
|
||||
std::string accountName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEACCOUNTSREQUEST_H_
|
||||
58
adb/include/alibabacloud/adb/model/DescribeAccountsResult.h
Normal file
58
adb/include/alibabacloud/adb/model/DescribeAccountsResult.h
Normal file
@@ -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_ADB_MODEL_DESCRIBEACCOUNTSRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEACCOUNTSRESULT_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 DescribeAccountsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DBAccount
|
||||
{
|
||||
std::string accountDescription;
|
||||
std::string accountStatus;
|
||||
std::string accountType;
|
||||
std::string accountName;
|
||||
};
|
||||
|
||||
|
||||
DescribeAccountsResult();
|
||||
explicit DescribeAccountsResult(const std::string &payload);
|
||||
~DescribeAccountsResult();
|
||||
std::vector<DBAccount> getAccountList()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DBAccount> accountList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEACCOUNTSRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEALLDATASOURCEREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEALLDATASOURCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeAllDataSourceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeAllDataSourceRequest();
|
||||
~DescribeAllDataSourceRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getTableName()const;
|
||||
void setTableName(const std::string& tableName);
|
||||
std::string getSchemaName()const;
|
||||
void setSchemaName(const std::string& schemaName);
|
||||
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 tableName_;
|
||||
std::string schemaName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEALLDATASOURCEREQUEST_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_DESCRIBEALLDATASOURCERESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEALLDATASOURCERESULT_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 DescribeAllDataSourceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Schema
|
||||
{
|
||||
std::string dBClusterId;
|
||||
std::string schemaName;
|
||||
};
|
||||
struct Table
|
||||
{
|
||||
std::string tableName;
|
||||
std::string dBClusterId;
|
||||
std::string schemaName;
|
||||
};
|
||||
struct Column
|
||||
{
|
||||
std::string tableName;
|
||||
std::string columnName;
|
||||
std::string type;
|
||||
bool autoIncrementColumn;
|
||||
std::string dBClusterId;
|
||||
bool primaryKey;
|
||||
std::string schemaName;
|
||||
};
|
||||
|
||||
|
||||
DescribeAllDataSourceResult();
|
||||
explicit DescribeAllDataSourceResult(const std::string &payload);
|
||||
~DescribeAllDataSourceResult();
|
||||
std::vector<Table> getTables()const;
|
||||
std::vector<Column> getColumns()const;
|
||||
std::vector<Schema> getSchemas()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Table> tables_;
|
||||
std::vector<Column> columns_;
|
||||
std::vector<Schema> schemas_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEALLDATASOURCERESULT_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user