Compare commits
341 Commits
test-ci
...
aliyuncvc-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98c36e9bab | ||
|
|
b84d1c59fa | ||
|
|
c2dc12f92b | ||
|
|
efb0804bf2 | ||
|
|
0e778cd17c | ||
|
|
78d79a3d5b | ||
|
|
5a1415f6e3 | ||
|
|
7f24d410fd | ||
|
|
de9c7e0bd2 | ||
|
|
9d2395215f | ||
|
|
757d3d8922 | ||
|
|
a0af363375 | ||
|
|
a76d21c518 | ||
|
|
b04b7f6033 | ||
|
|
a3f2125666 | ||
|
|
2a0fc860e2 | ||
|
|
4dea5b58b8 | ||
|
|
d6ea0cf35d | ||
|
|
f66ec181b6 | ||
|
|
db4cdcbeb0 | ||
|
|
80fbf35ea7 | ||
|
|
5c14e9a77f | ||
|
|
528d90a5e0 | ||
|
|
fb8137a8d3 | ||
|
|
e54c1961cb | ||
|
|
e7b81546c4 | ||
|
|
7f711be94a | ||
|
|
b5e667c1d7 | ||
|
|
2d9dc66719 | ||
|
|
97fa00faef | ||
|
|
630656ce24 | ||
|
|
f3b00eade0 | ||
|
|
02122aa7ea | ||
|
|
67d6a5f9d4 | ||
|
|
a15a171b2d | ||
|
|
9d980b6731 | ||
|
|
d6aeb545bc | ||
|
|
6217773578 | ||
|
|
cb2d0e9b5d | ||
|
|
2ee11b248a | ||
|
|
28e491ccfd | ||
|
|
5fa60dfc8c | ||
|
|
653f3e596c | ||
|
|
9e171f2b3a | ||
|
|
9dfe90ab37 | ||
|
|
5f619b53a5 | ||
|
|
32c8bd10fc | ||
|
|
7855593ebb | ||
|
|
87515e7ea9 | ||
|
|
a3d771af9b | ||
|
|
445d5ca242 | ||
|
|
bb42c9c351 | ||
|
|
5f2a993b52 | ||
|
|
7fd0c7bf01 | ||
|
|
f76139580d | ||
|
|
444bea3a37 | ||
|
|
6a7977923c | ||
|
|
b4903d0fd0 | ||
|
|
838459913d | ||
|
|
d689d06eb7 | ||
|
|
dcb1633973 | ||
|
|
a180b00ed8 | ||
|
|
0ccab36f2f | ||
|
|
cc8cf316cd | ||
|
|
1908e64fa6 | ||
|
|
8f6d6d4d1d | ||
|
|
e5ea19cdfb | ||
|
|
55c7cdde91 | ||
|
|
836913a2a9 | ||
|
|
b34cb31a9a | ||
|
|
8ef1e983c1 | ||
|
|
3845e06de3 | ||
|
|
a349057ec2 | ||
|
|
0cf373bc60 | ||
|
|
1309d87fdb | ||
|
|
a46f82a069 | ||
|
|
b7d2e0b4a6 | ||
|
|
6eacc742a1 | ||
|
|
3c4d33ab51 | ||
|
|
cf6cbae712 | ||
|
|
6dc38f165b | ||
|
|
6393d2204b | ||
|
|
f4138c76d6 | ||
|
|
d7a89ac3dc | ||
|
|
b98f01cab4 | ||
|
|
675ab8f60f | ||
|
|
9fd70bc2bf | ||
|
|
ee91c28732 | ||
|
|
ec9ecb41d2 | ||
|
|
272e447860 | ||
|
|
3af83f0124 | ||
|
|
2f31a44faf | ||
|
|
512b1bb5c5 | ||
|
|
564c05144a | ||
|
|
8aa1d22f90 | ||
|
|
14ebba9911 | ||
|
|
38438abdfb | ||
|
|
e72934f959 | ||
|
|
076ff65f85 | ||
|
|
1fb31c98d9 | ||
|
|
d704ed0f33 | ||
|
|
b0fe238f34 | ||
|
|
17022a6777 | ||
|
|
62a9619911 | ||
|
|
4da74afbab | ||
|
|
5c2b2e4afc | ||
|
|
72d59ded68 | ||
|
|
b5c0b83b02 | ||
|
|
1abc39e9d1 | ||
|
|
65262923e4 | ||
|
|
4830e8821e | ||
|
|
1a9c4d4d9c | ||
|
|
c707baa95b | ||
|
|
5d7d320deb | ||
|
|
96b3defcc9 | ||
|
|
134828d83c | ||
|
|
2f33b44e80 | ||
|
|
90802f9197 | ||
|
|
f5fe7fb428 | ||
|
|
f5057db511 | ||
|
|
897ff18471 | ||
|
|
a15ee90c20 | ||
|
|
11024b7871 | ||
|
|
37fea59cb0 | ||
|
|
05785cf5fd | ||
|
|
15b4e73175 | ||
|
|
e1f296f89d | ||
|
|
8615dbe002 | ||
|
|
8fd81bf1dd | ||
|
|
88f0753937 | ||
|
|
c93100c1b5 | ||
|
|
c5dd7f096e | ||
|
|
e3b1009a94 | ||
|
|
37c044aa31 | ||
|
|
5aead39d0e | ||
|
|
b9a7e15af4 | ||
|
|
60799e2b22 | ||
|
|
d4c20caaed | ||
|
|
f2caf37a92 | ||
|
|
b31d71fa81 | ||
|
|
7ee07b8331 | ||
|
|
cfb09d135f | ||
|
|
c1b1b41108 | ||
|
|
08b2ac884b | ||
|
|
84a2c24970 | ||
|
|
d088239972 | ||
|
|
f014392806 | ||
|
|
9290117d12 | ||
|
|
99236bb124 | ||
|
|
4595bf16e1 | ||
|
|
152b44dbed | ||
|
|
9535455a22 | ||
|
|
2de19aea44 | ||
|
|
23cb861a2f | ||
|
|
2123976cc2 | ||
|
|
7097cf0d88 | ||
|
|
dd1d0e5359 | ||
|
|
3823d5045a | ||
|
|
80e095a3fc | ||
|
|
c12d0267d7 | ||
|
|
d69766bdfd | ||
|
|
7ac1c23a9f | ||
|
|
088c3010cd | ||
|
|
5c7994cbcb | ||
|
|
3fc73ce0c4 | ||
|
|
aa99d784f0 | ||
|
|
f82391b140 | ||
|
|
c920c94335 | ||
|
|
d7f985a33b | ||
|
|
7db054750e | ||
|
|
73412a8d8d | ||
|
|
51f047d6f3 | ||
|
|
2d5bf1dbd8 | ||
|
|
a60cd6a5ae | ||
|
|
59dbc66bfe | ||
|
|
d6292fe40b | ||
|
|
061f62c362 | ||
|
|
a3ccdb3f65 | ||
|
|
565bfada36 | ||
|
|
716769a300 | ||
|
|
c4348c87cb | ||
|
|
d3ce4be157 | ||
|
|
05e5980ef3 | ||
|
|
7cf2b932e7 | ||
|
|
c056e54eae | ||
|
|
04cce0ba30 | ||
|
|
c5b68d7ead | ||
|
|
52e7b30f54 | ||
|
|
98ef8c88e8 | ||
|
|
8f2290c159 | ||
|
|
a264cee31b | ||
|
|
ebdf18def1 | ||
|
|
5a6bd32d63 | ||
|
|
86f01c44a8 | ||
|
|
a69c540c10 | ||
|
|
60ea8efd1a | ||
|
|
20e471c41f | ||
|
|
dbb5d5f56d | ||
|
|
68f2493757 | ||
|
|
ff645a988c | ||
|
|
151822de9a | ||
|
|
793abf30f9 | ||
|
|
c0045d1c32 | ||
|
|
43f0c30248 | ||
|
|
dff2b43722 | ||
|
|
090d6da253 | ||
|
|
bd85a14b02 | ||
|
|
30c9817822 | ||
|
|
8f847b0f5d | ||
|
|
1dcf6cb7f3 | ||
|
|
b5790be0db | ||
|
|
371081045a | ||
|
|
480c9b3700 | ||
|
|
72ca50ab65 | ||
|
|
34747e61fe | ||
|
|
b6697980bc | ||
|
|
e3e5a0ff42 | ||
|
|
3c1c245147 | ||
|
|
8c27cbdc14 | ||
|
|
8ac065c14f | ||
|
|
e68269b045 | ||
|
|
53ac431b11 | ||
|
|
5255330d62 | ||
|
|
b9a879f696 | ||
|
|
7ac2669922 | ||
|
|
9693807164 | ||
|
|
e20435dd22 | ||
|
|
06eedce285 | ||
|
|
2e76d1dcac | ||
|
|
e1718ed478 | ||
|
|
56138ffe5e | ||
|
|
e4502cf36b | ||
|
|
8d4cff577b | ||
|
|
7267430dde | ||
|
|
7163e3a7d5 | ||
|
|
78ca57fe3d | ||
|
|
cff8cc2fce | ||
|
|
f5698956a8 | ||
|
|
0acc11e160 | ||
|
|
b3f8f634b5 | ||
|
|
1185622959 | ||
|
|
4836dfddfc | ||
|
|
08e11e9bb0 | ||
|
|
8c4cc55d22 | ||
|
|
2191c80b02 | ||
|
|
22d322118a | ||
|
|
1358a6ec39 | ||
|
|
41ea6f3a12 | ||
|
|
83f2c53623 | ||
|
|
314c523174 | ||
|
|
0d054dfb79 | ||
|
|
8af4775c5e | ||
|
|
2f6b7ad555 | ||
|
|
faf9b3fb11 | ||
|
|
6642aa94e5 | ||
|
|
0aa44135e7 | ||
|
|
839effe699 | ||
|
|
4e6956c3f2 | ||
|
|
1b2fe667ba | ||
|
|
91c8eee22c | ||
|
|
fd4bd1e797 | ||
|
|
bd27e98c03 | ||
|
|
3a88e60d04 | ||
|
|
83bb5be02b | ||
|
|
beacaac234 | ||
|
|
52ee14ba5d | ||
|
|
b257cba9c3 | ||
|
|
55baab421e | ||
|
|
67f50165c9 | ||
|
|
1cce84c75f | ||
|
|
90e4ddb22a | ||
|
|
d412a52735 | ||
|
|
2960652dcb | ||
|
|
48a3320ae9 | ||
|
|
60539f067e | ||
|
|
d486d13814 | ||
|
|
2de462bea7 | ||
|
|
5d7cb923d0 | ||
|
|
8520626698 | ||
|
|
9d57625a58 | ||
|
|
b60a834a97 | ||
|
|
49e97628f4 | ||
|
|
5b5f0128c9 | ||
|
|
b5ed975753 | ||
|
|
f0c20f05b7 | ||
|
|
d769c974ab | ||
|
|
4d0d947bf1 | ||
|
|
2738249b7d | ||
|
|
6f1c636c7e | ||
|
|
70047f9bc7 | ||
|
|
6088526cd8 | ||
|
|
0e02d3bc63 | ||
|
|
f289e0290b | ||
|
|
3e25f8bde6 | ||
|
|
84d7d5b467 | ||
|
|
e57fc8314f | ||
|
|
60b042fbe6 | ||
|
|
70d2fb850d | ||
|
|
0cb799a37d | ||
|
|
812a50b07f | ||
|
|
a4f9a98de3 | ||
|
|
6f44f27802 | ||
|
|
b64262402e | ||
|
|
4d79d51820 | ||
|
|
44130b741e | ||
|
|
1ac661d847 | ||
|
|
401f5f7e4c | ||
|
|
eee5186ffd | ||
|
|
ac957846a2 | ||
|
|
bf6b90c665 | ||
|
|
499b696774 | ||
|
|
8bcded107d | ||
|
|
26788350a5 | ||
|
|
37e0116875 | ||
|
|
6a5e45a550 | ||
|
|
fd6a6949fb | ||
|
|
4cda4f477d | ||
|
|
7959141d87 | ||
|
|
53ce2f6947 | ||
|
|
161e51556b | ||
|
|
fc24f8e624 | ||
|
|
b5602fc4a4 | ||
|
|
4332019dac | ||
|
|
7107481ad3 | ||
|
|
13c3b8b414 | ||
|
|
1a401aa70a | ||
|
|
8d0bff56a9 | ||
|
|
4b39c98f5a | ||
|
|
7fecdadace | ||
|
|
8ab4232b59 | ||
|
|
882187b0e9 | ||
|
|
f0ef60d4fa | ||
|
|
f29a3fe06e | ||
|
|
9c7cbba02f | ||
|
|
65a601c5ba | ||
|
|
3ee66cb2b2 | ||
|
|
a57f6ec422 | ||
|
|
e065d50def | ||
|
|
97918475fb | ||
|
|
5a451d16d4 | ||
|
|
8bed6eecc7 |
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
|
||||
...
|
||||
|
||||
@@ -61,6 +61,8 @@ endif()
|
||||
|
||||
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})
|
||||
|
||||
@@ -15,6 +15,9 @@ 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)。
|
||||
|
||||
## 使用诊断
|
||||
[Troubleshoot](https://troubleshoot.api.aliyun.com/?source=github_sdk) 提供 OpenAPI 使用诊断服务,通过 `RequestID` 或 `报错信息` ,帮助开发者快速定位,为开发者提供解决方案。
|
||||
|
||||
## 环境要求
|
||||
|
||||
在使用 Alibaba Cloud SDK for C++ 前,确保您已经:
|
||||
|
||||
@@ -17,6 +17,9 @@ This document introduces how to obtain and call this SDK.
|
||||
|
||||
If you have any problem while using Alibaba Cloud SDK for C++, please submit an [issue](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new).
|
||||
|
||||
## Troubleshoot
|
||||
[Troubleshoot](https://troubleshoot.api.aliyun.com/?source=github_sdk) Provide OpenAPI diagnosis service to help developers locate quickly and provide solutions for developers through `RequestID` or `error message`.
|
||||
|
||||
## Requirements
|
||||
|
||||
- To use this SDK, you must have an Alibaba Cloud account and an AccessKey.
|
||||
|
||||
118
actiontrail/CMakeLists.txt
Normal file
118
actiontrail/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(actiontrail_public_header
|
||||
include/alibabacloud/actiontrail/ActiontrailClient.h
|
||||
include/alibabacloud/actiontrail/ActiontrailExport.h )
|
||||
|
||||
set(actiontrail_public_header_model
|
||||
include/alibabacloud/actiontrail/model/CreateTrailRequest.h
|
||||
include/alibabacloud/actiontrail/model/CreateTrailResult.h
|
||||
include/alibabacloud/actiontrail/model/DeleteTrailRequest.h
|
||||
include/alibabacloud/actiontrail/model/DeleteTrailResult.h
|
||||
include/alibabacloud/actiontrail/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/actiontrail/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/actiontrail/model/DescribeTrailsRequest.h
|
||||
include/alibabacloud/actiontrail/model/DescribeTrailsResult.h
|
||||
include/alibabacloud/actiontrail/model/GetTrailStatusRequest.h
|
||||
include/alibabacloud/actiontrail/model/GetTrailStatusResult.h
|
||||
include/alibabacloud/actiontrail/model/LookupEventsRequest.h
|
||||
include/alibabacloud/actiontrail/model/LookupEventsResult.h
|
||||
include/alibabacloud/actiontrail/model/StartLoggingRequest.h
|
||||
include/alibabacloud/actiontrail/model/StartLoggingResult.h
|
||||
include/alibabacloud/actiontrail/model/StopLoggingRequest.h
|
||||
include/alibabacloud/actiontrail/model/StopLoggingResult.h
|
||||
include/alibabacloud/actiontrail/model/UpdateTrailRequest.h
|
||||
include/alibabacloud/actiontrail/model/UpdateTrailResult.h )
|
||||
|
||||
set(actiontrail_src
|
||||
src/ActiontrailClient.cc
|
||||
src/model/CreateTrailRequest.cc
|
||||
src/model/CreateTrailResult.cc
|
||||
src/model/DeleteTrailRequest.cc
|
||||
src/model/DeleteTrailResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DescribeTrailsRequest.cc
|
||||
src/model/DescribeTrailsResult.cc
|
||||
src/model/GetTrailStatusRequest.cc
|
||||
src/model/GetTrailStatusResult.cc
|
||||
src/model/LookupEventsRequest.cc
|
||||
src/model/LookupEventsResult.cc
|
||||
src/model/StartLoggingRequest.cc
|
||||
src/model/StartLoggingResult.cc
|
||||
src/model/StopLoggingRequest.cc
|
||||
src/model/StopLoggingResult.cc
|
||||
src/model/UpdateTrailRequest.cc
|
||||
src/model/UpdateTrailResult.cc )
|
||||
|
||||
add_library(actiontrail ${LIB_TYPE}
|
||||
${actiontrail_public_header}
|
||||
${actiontrail_public_header_model}
|
||||
${actiontrail_src})
|
||||
|
||||
set_target_properties(actiontrail
|
||||
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}actiontrail
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(actiontrail
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ACTIONTRAIL_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(actiontrail
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(actiontrail
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(actiontrail
|
||||
jsoncpp)
|
||||
target_include_directories(actiontrail
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(actiontrail
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(actiontrail
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(actiontrail
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(actiontrail
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${actiontrail_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/actiontrail)
|
||||
install(FILES ${actiontrail_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/actiontrail/model)
|
||||
install(TARGETS actiontrail
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
118
actiontrail/include/alibabacloud/actiontrail/ActiontrailClient.h
Normal file
118
actiontrail/include/alibabacloud/actiontrail/ActiontrailClient.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_ACTIONTRAIL_ACTIONTRAILCLIENT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_ACTIONTRAILCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "ActiontrailExport.h"
|
||||
#include "model/CreateTrailRequest.h"
|
||||
#include "model/CreateTrailResult.h"
|
||||
#include "model/DeleteTrailRequest.h"
|
||||
#include "model/DeleteTrailResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeTrailsRequest.h"
|
||||
#include "model/DescribeTrailsResult.h"
|
||||
#include "model/GetTrailStatusRequest.h"
|
||||
#include "model/GetTrailStatusResult.h"
|
||||
#include "model/LookupEventsRequest.h"
|
||||
#include "model/LookupEventsResult.h"
|
||||
#include "model/StartLoggingRequest.h"
|
||||
#include "model/StartLoggingResult.h"
|
||||
#include "model/StopLoggingRequest.h"
|
||||
#include "model/StopLoggingResult.h"
|
||||
#include "model/UpdateTrailRequest.h"
|
||||
#include "model/UpdateTrailResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT ActiontrailClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CreateTrailResult> CreateTrailOutcome;
|
||||
typedef std::future<CreateTrailOutcome> CreateTrailOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::CreateTrailRequest&, const CreateTrailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTrailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTrailResult> DeleteTrailOutcome;
|
||||
typedef std::future<DeleteTrailOutcome> DeleteTrailOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::DeleteTrailRequest&, const DeleteTrailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTrailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTrailsResult> DescribeTrailsOutcome;
|
||||
typedef std::future<DescribeTrailsOutcome> DescribeTrailsOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::DescribeTrailsRequest&, const DescribeTrailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTrailsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTrailStatusResult> GetTrailStatusOutcome;
|
||||
typedef std::future<GetTrailStatusOutcome> GetTrailStatusOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::GetTrailStatusRequest&, const GetTrailStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTrailStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::LookupEventsResult> LookupEventsOutcome;
|
||||
typedef std::future<LookupEventsOutcome> LookupEventsOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::LookupEventsRequest&, const LookupEventsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LookupEventsAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartLoggingResult> StartLoggingOutcome;
|
||||
typedef std::future<StartLoggingOutcome> StartLoggingOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::StartLoggingRequest&, const StartLoggingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartLoggingAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopLoggingResult> StopLoggingOutcome;
|
||||
typedef std::future<StopLoggingOutcome> StopLoggingOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::StopLoggingRequest&, const StopLoggingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopLoggingAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateTrailResult> UpdateTrailOutcome;
|
||||
typedef std::future<UpdateTrailOutcome> UpdateTrailOutcomeCallable;
|
||||
typedef std::function<void(const ActiontrailClient*, const Model::UpdateTrailRequest&, const UpdateTrailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateTrailAsyncHandler;
|
||||
|
||||
ActiontrailClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ActiontrailClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
ActiontrailClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~ActiontrailClient();
|
||||
CreateTrailOutcome createTrail(const Model::CreateTrailRequest &request)const;
|
||||
void createTrailAsync(const Model::CreateTrailRequest& request, const CreateTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTrailOutcomeCallable createTrailCallable(const Model::CreateTrailRequest& request) const;
|
||||
DeleteTrailOutcome deleteTrail(const Model::DeleteTrailRequest &request)const;
|
||||
void deleteTrailAsync(const Model::DeleteTrailRequest& request, const DeleteTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTrailOutcomeCallable deleteTrailCallable(const Model::DeleteTrailRequest& 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;
|
||||
DescribeTrailsOutcome describeTrails(const Model::DescribeTrailsRequest &request)const;
|
||||
void describeTrailsAsync(const Model::DescribeTrailsRequest& request, const DescribeTrailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTrailsOutcomeCallable describeTrailsCallable(const Model::DescribeTrailsRequest& request) const;
|
||||
GetTrailStatusOutcome getTrailStatus(const Model::GetTrailStatusRequest &request)const;
|
||||
void getTrailStatusAsync(const Model::GetTrailStatusRequest& request, const GetTrailStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTrailStatusOutcomeCallable getTrailStatusCallable(const Model::GetTrailStatusRequest& request) const;
|
||||
LookupEventsOutcome lookupEvents(const Model::LookupEventsRequest &request)const;
|
||||
void lookupEventsAsync(const Model::LookupEventsRequest& request, const LookupEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
LookupEventsOutcomeCallable lookupEventsCallable(const Model::LookupEventsRequest& request) const;
|
||||
StartLoggingOutcome startLogging(const Model::StartLoggingRequest &request)const;
|
||||
void startLoggingAsync(const Model::StartLoggingRequest& request, const StartLoggingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartLoggingOutcomeCallable startLoggingCallable(const Model::StartLoggingRequest& request) const;
|
||||
StopLoggingOutcome stopLogging(const Model::StopLoggingRequest &request)const;
|
||||
void stopLoggingAsync(const Model::StopLoggingRequest& request, const StopLoggingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopLoggingOutcomeCallable stopLoggingCallable(const Model::StopLoggingRequest& request) const;
|
||||
UpdateTrailOutcome updateTrail(const Model::UpdateTrailRequest &request)const;
|
||||
void updateTrailAsync(const Model::UpdateTrailRequest& request, const UpdateTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateTrailOutcomeCallable updateTrailCallable(const Model::UpdateTrailRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_ACTIONTRAILCLIENT_H_
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_ACTIONTRAILEXPORT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_ACTIONTRAILEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ACTIONTRAIL_LIBRARY)
|
||||
# define ALIBABACLOUD_ACTIONTRAIL_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ACTIONTRAIL_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ACTIONTRAIL_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_ACTIONTRAILEXPORT_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT CreateTrailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateTrailRequest();
|
||||
~CreateTrailRequest();
|
||||
|
||||
std::string getSlsProjectArn()const;
|
||||
void setSlsProjectArn(const std::string& slsProjectArn);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSlsWriteRoleArn()const;
|
||||
void setSlsWriteRoleArn(const std::string& slsWriteRoleArn);
|
||||
bool getIsOrganizationTrail()const;
|
||||
void setIsOrganizationTrail(bool isOrganizationTrail);
|
||||
std::string getOssKeyPrefix()const;
|
||||
void setOssKeyPrefix(const std::string& ossKeyPrefix);
|
||||
std::string getMnsTopicArn()const;
|
||||
void setMnsTopicArn(const std::string& mnsTopicArn);
|
||||
std::string getRoleName()const;
|
||||
void setRoleName(const std::string& roleName);
|
||||
std::string getEventRW()const;
|
||||
void setEventRW(const std::string& eventRW);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getOssBucketName()const;
|
||||
void setOssBucketName(const std::string& ossBucketName);
|
||||
std::string getTrailRegion()const;
|
||||
void setTrailRegion(const std::string& trailRegion);
|
||||
|
||||
private:
|
||||
std::string slsProjectArn_;
|
||||
std::string accessKeyId_;
|
||||
std::string slsWriteRoleArn_;
|
||||
bool isOrganizationTrail_;
|
||||
std::string ossKeyPrefix_;
|
||||
std::string mnsTopicArn_;
|
||||
std::string roleName_;
|
||||
std::string eventRW_;
|
||||
std::string name_;
|
||||
std::string ossBucketName_;
|
||||
std::string trailRegion_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILREQUEST_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_ACTIONTRAIL_MODEL_CREATETRAILRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT CreateTrailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateTrailResult();
|
||||
explicit CreateTrailResult(const std::string &payload);
|
||||
~CreateTrailResult();
|
||||
std::string getSlsProjectArn()const;
|
||||
std::string getMnsTopicArn()const;
|
||||
std::string getRoleName()const;
|
||||
std::string getEventRW()const;
|
||||
std::string getHomeRegion()const;
|
||||
std::string getOssKeyPrefix()const;
|
||||
std::string getOssBucketName()const;
|
||||
std::string getSlsWriteRoleArn()const;
|
||||
std::string getTrailRegion()const;
|
||||
std::string getName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string slsProjectArn_;
|
||||
std::string mnsTopicArn_;
|
||||
std::string roleName_;
|
||||
std::string eventRW_;
|
||||
std::string homeRegion_;
|
||||
std::string ossKeyPrefix_;
|
||||
std::string ossBucketName_;
|
||||
std::string slsWriteRoleArn_;
|
||||
std::string trailRegion_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATETRAILRESULT_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_ACTIONTRAIL_MODEL_DELETETRAILREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DeleteTrailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteTrailRequest();
|
||||
~DeleteTrailRequest();
|
||||
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string accessKeyId_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILREQUEST_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_ACTIONTRAIL_MODEL_DELETETRAILRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DeleteTrailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteTrailResult();
|
||||
explicit DeleteTrailResult(const std::string &payload);
|
||||
~DeleteTrailResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETETRAILRESULT_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_ACTIONTRAIL_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DescribeRegionsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRegionsRequest();
|
||||
~DescribeRegionsRequest();
|
||||
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DescribeRegionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Regions
|
||||
{
|
||||
struct RegionItem
|
||||
{
|
||||
std::string regionId;
|
||||
};
|
||||
std::vector<RegionItem> region;
|
||||
};
|
||||
|
||||
|
||||
DescribeRegionsResult();
|
||||
explicit DescribeRegionsResult(const std::string &payload);
|
||||
~DescribeRegionsResult();
|
||||
Regions getRegions()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Regions regions_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBEREGIONSRESULT_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_ACTIONTRAIL_MODEL_DESCRIBETRAILSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DescribeTrailsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeTrailsRequest();
|
||||
~DescribeTrailsRequest();
|
||||
|
||||
bool getIncludeShadowTrails()const;
|
||||
void setIncludeShadowTrails(bool includeShadowTrails);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getNameList()const;
|
||||
void setNameList(const std::string& nameList);
|
||||
|
||||
private:
|
||||
bool includeShadowTrails_;
|
||||
std::string accessKeyId_;
|
||||
std::string nameList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSREQUEST_H_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DescribeTrailsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TrailListItem
|
||||
{
|
||||
std::string status;
|
||||
std::string mnsTopicArn;
|
||||
std::string homeRegion;
|
||||
std::string createTime;
|
||||
std::string startLoggingTime;
|
||||
std::string stopLoggingTime;
|
||||
std::string slsWriteRoleArn;
|
||||
std::string trailRegion;
|
||||
std::string name;
|
||||
bool isOrganizationTrail;
|
||||
std::string slsProjectArn;
|
||||
std::string roleName;
|
||||
std::string eventRW;
|
||||
std::string ossKeyPrefix;
|
||||
std::string updateTime;
|
||||
std::string ossBucketName;
|
||||
};
|
||||
|
||||
|
||||
DescribeTrailsResult();
|
||||
explicit DescribeTrailsResult(const std::string &payload);
|
||||
~DescribeTrailsResult();
|
||||
std::vector<TrailListItem> getTrailList()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<TrailListItem> trailList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DESCRIBETRAILSRESULT_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_ACTIONTRAIL_MODEL_GETTRAILSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetTrailStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTrailStatusRequest();
|
||||
~GetTrailStatusRequest();
|
||||
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
bool getIsOrganizationTrail()const;
|
||||
void setIsOrganizationTrail(bool isOrganizationTrail);
|
||||
|
||||
private:
|
||||
std::string accessKeyId_;
|
||||
std::string name_;
|
||||
bool isOrganizationTrail_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT GetTrailStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetTrailStatusResult();
|
||||
explicit GetTrailStatusResult(const std::string &payload);
|
||||
~GetTrailStatusResult();
|
||||
std::string getStartLoggingTime()const;
|
||||
std::string getLatestDeliveryError()const;
|
||||
std::string getStopLoggingTime()const;
|
||||
bool getIsLogging()const;
|
||||
std::string getLatestDeliveryTime()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string startLoggingTime_;
|
||||
std::string latestDeliveryError_;
|
||||
std::string stopLoggingTime_;
|
||||
bool isLogging_;
|
||||
std::string latestDeliveryTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_GETTRAILSTATUSRESULT_H_
|
||||
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT LookupEventsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
LookupEventsRequest();
|
||||
~LookupEventsRequest();
|
||||
|
||||
std::string getRequest()const;
|
||||
void setRequest(const std::string& request);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getEventName()const;
|
||||
void setEventName(const std::string& eventName);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
std::string getEvent()const;
|
||||
void setEvent(const std::string& event);
|
||||
std::string getEventAccessKeyId()const;
|
||||
void setEventAccessKeyId(const std::string& eventAccessKeyId);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getEventRW()const;
|
||||
void setEventRW(const std::string& eventRW);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
std::string getMaxResults()const;
|
||||
void setMaxResults(const std::string& maxResults);
|
||||
std::string getEventType()const;
|
||||
void setEventType(const std::string& eventType);
|
||||
std::string getResourceName()const;
|
||||
void setResourceName(const std::string& resourceName);
|
||||
std::string getUser()const;
|
||||
void setUser(const std::string& user);
|
||||
|
||||
private:
|
||||
std::string request_;
|
||||
std::string startTime_;
|
||||
std::string eventName_;
|
||||
std::string accessKeyId_;
|
||||
std::string nextToken_;
|
||||
std::string serviceName_;
|
||||
std::string event_;
|
||||
std::string eventAccessKeyId_;
|
||||
std::string endTime_;
|
||||
std::string eventRW_;
|
||||
std::string resourceType_;
|
||||
std::string maxResults_;
|
||||
std::string eventType_;
|
||||
std::string resourceName_;
|
||||
std::string user_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT LookupEventsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
LookupEventsResult();
|
||||
explicit LookupEventsResult(const std::string &payload);
|
||||
~LookupEventsResult();
|
||||
std::string getNextToken()const;
|
||||
std::string getEndTime()const;
|
||||
std::vector<std::string> getEvents()const;
|
||||
std::string getStartTime()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextToken_;
|
||||
std::string endTime_;
|
||||
std::vector<std::string> events_;
|
||||
std::string startTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_LOOKUPEVENTSRESULT_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_ACTIONTRAIL_MODEL_STARTLOGGINGREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT StartLoggingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StartLoggingRequest();
|
||||
~StartLoggingRequest();
|
||||
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string accessKeyId_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGREQUEST_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_ACTIONTRAIL_MODEL_STARTLOGGINGRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT StartLoggingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
StartLoggingResult();
|
||||
explicit StartLoggingResult(const std::string &payload);
|
||||
~StartLoggingResult();
|
||||
std::string getParam()const;
|
||||
std::string getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string param_;
|
||||
std::string result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_STARTLOGGINGRESULT_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_ACTIONTRAIL_MODEL_STOPLOGGINGREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT StopLoggingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StopLoggingRequest();
|
||||
~StopLoggingRequest();
|
||||
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string accessKeyId_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGREQUEST_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_ACTIONTRAIL_MODEL_STOPLOGGINGRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT StopLoggingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
StopLoggingResult();
|
||||
explicit StopLoggingResult(const std::string &payload);
|
||||
~StopLoggingResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_STOPLOGGINGRESULT_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILREQUEST_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT UpdateTrailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateTrailRequest();
|
||||
~UpdateTrailRequest();
|
||||
|
||||
std::string getSlsProjectArn()const;
|
||||
void setSlsProjectArn(const std::string& slsProjectArn);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSlsWriteRoleArn()const;
|
||||
void setSlsWriteRoleArn(const std::string& slsWriteRoleArn);
|
||||
std::string getOssKeyPrefix()const;
|
||||
void setOssKeyPrefix(const std::string& ossKeyPrefix);
|
||||
std::string getMnsTopicArn()const;
|
||||
void setMnsTopicArn(const std::string& mnsTopicArn);
|
||||
std::string getRoleName()const;
|
||||
void setRoleName(const std::string& roleName);
|
||||
std::string getEventRW()const;
|
||||
void setEventRW(const std::string& eventRW);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getOssBucketName()const;
|
||||
void setOssBucketName(const std::string& ossBucketName);
|
||||
std::string getTrailRegion()const;
|
||||
void setTrailRegion(const std::string& trailRegion);
|
||||
|
||||
private:
|
||||
std::string slsProjectArn_;
|
||||
std::string accessKeyId_;
|
||||
std::string slsWriteRoleArn_;
|
||||
std::string ossKeyPrefix_;
|
||||
std::string mnsTopicArn_;
|
||||
std::string roleName_;
|
||||
std::string eventRW_;
|
||||
std::string name_;
|
||||
std::string ossBucketName_;
|
||||
std::string trailRegion_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILREQUEST_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_ACTIONTRAIL_MODEL_UPDATETRAILRESULT_H_
|
||||
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/actiontrail/ActiontrailExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Actiontrail
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACTIONTRAIL_EXPORT UpdateTrailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateTrailResult();
|
||||
explicit UpdateTrailResult(const std::string &payload);
|
||||
~UpdateTrailResult();
|
||||
std::string getSlsProjectArn()const;
|
||||
std::string getMnsTopicArn()const;
|
||||
std::string getRoleName()const;
|
||||
std::string getEventRW()const;
|
||||
std::string getHomeRegion()const;
|
||||
std::string getOssKeyPrefix()const;
|
||||
std::string getOssBucketName()const;
|
||||
std::string getSlsWriteRoleArn()const;
|
||||
std::string getTrailRegion()const;
|
||||
std::string getName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string slsProjectArn_;
|
||||
std::string mnsTopicArn_;
|
||||
std::string roleName_;
|
||||
std::string eventRW_;
|
||||
std::string homeRegion_;
|
||||
std::string ossKeyPrefix_;
|
||||
std::string ossBucketName_;
|
||||
std::string slsWriteRoleArn_;
|
||||
std::string trailRegion_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_UPDATETRAILRESULT_H_
|
||||
377
actiontrail/src/ActiontrailClient.cc
Normal file
377
actiontrail/src/ActiontrailClient.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/actiontrail/ActiontrailClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "Actiontrail";
|
||||
}
|
||||
|
||||
ActiontrailClient::ActiontrailClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "actiontrail");
|
||||
}
|
||||
|
||||
ActiontrailClient::ActiontrailClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "actiontrail");
|
||||
}
|
||||
|
||||
ActiontrailClient::ActiontrailClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "actiontrail");
|
||||
}
|
||||
|
||||
ActiontrailClient::~ActiontrailClient()
|
||||
{}
|
||||
|
||||
ActiontrailClient::CreateTrailOutcome ActiontrailClient::createTrail(const CreateTrailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateTrailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateTrailOutcome(CreateTrailResult(outcome.result()));
|
||||
else
|
||||
return CreateTrailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::createTrailAsync(const CreateTrailRequest& request, const CreateTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createTrail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::CreateTrailOutcomeCallable ActiontrailClient::createTrailCallable(const CreateTrailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateTrailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createTrail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::DeleteTrailOutcome ActiontrailClient::deleteTrail(const DeleteTrailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteTrailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteTrailOutcome(DeleteTrailResult(outcome.result()));
|
||||
else
|
||||
return DeleteTrailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::deleteTrailAsync(const DeleteTrailRequest& request, const DeleteTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteTrail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::DeleteTrailOutcomeCallable ActiontrailClient::deleteTrailCallable(const DeleteTrailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteTrailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteTrail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::DescribeRegionsOutcome ActiontrailClient::describeRegions(const DescribeRegionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRegionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result()));
|
||||
else
|
||||
return DescribeRegionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRegions(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::DescribeRegionsOutcomeCallable ActiontrailClient::describeRegionsCallable(const DescribeRegionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRegionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRegions(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::DescribeTrailsOutcome ActiontrailClient::describeTrails(const DescribeTrailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeTrailsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeTrailsOutcome(DescribeTrailsResult(outcome.result()));
|
||||
else
|
||||
return DescribeTrailsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::describeTrailsAsync(const DescribeTrailsRequest& request, const DescribeTrailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeTrails(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::DescribeTrailsOutcomeCallable ActiontrailClient::describeTrailsCallable(const DescribeTrailsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeTrailsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeTrails(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::GetTrailStatusOutcome ActiontrailClient::getTrailStatus(const GetTrailStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTrailStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTrailStatusOutcome(GetTrailStatusResult(outcome.result()));
|
||||
else
|
||||
return GetTrailStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::getTrailStatusAsync(const GetTrailStatusRequest& request, const GetTrailStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTrailStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::GetTrailStatusOutcomeCallable ActiontrailClient::getTrailStatusCallable(const GetTrailStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTrailStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTrailStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::LookupEventsOutcome ActiontrailClient::lookupEvents(const LookupEventsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return LookupEventsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return LookupEventsOutcome(LookupEventsResult(outcome.result()));
|
||||
else
|
||||
return LookupEventsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::lookupEventsAsync(const LookupEventsRequest& request, const LookupEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, lookupEvents(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::LookupEventsOutcomeCallable ActiontrailClient::lookupEventsCallable(const LookupEventsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<LookupEventsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->lookupEvents(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::StartLoggingOutcome ActiontrailClient::startLogging(const StartLoggingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartLoggingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartLoggingOutcome(StartLoggingResult(outcome.result()));
|
||||
else
|
||||
return StartLoggingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::startLoggingAsync(const StartLoggingRequest& request, const StartLoggingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startLogging(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::StartLoggingOutcomeCallable ActiontrailClient::startLoggingCallable(const StartLoggingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartLoggingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startLogging(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::StopLoggingOutcome ActiontrailClient::stopLogging(const StopLoggingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopLoggingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopLoggingOutcome(StopLoggingResult(outcome.result()));
|
||||
else
|
||||
return StopLoggingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::stopLoggingAsync(const StopLoggingRequest& request, const StopLoggingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopLogging(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::StopLoggingOutcomeCallable ActiontrailClient::stopLoggingCallable(const StopLoggingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopLoggingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopLogging(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ActiontrailClient::UpdateTrailOutcome ActiontrailClient::updateTrail(const UpdateTrailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateTrailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateTrailOutcome(UpdateTrailResult(outcome.result()));
|
||||
else
|
||||
return UpdateTrailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ActiontrailClient::updateTrailAsync(const UpdateTrailRequest& request, const UpdateTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateTrail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ActiontrailClient::UpdateTrailOutcomeCallable ActiontrailClient::updateTrailCallable(const UpdateTrailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateTrailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateTrail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
150
actiontrail/src/model/CreateTrailRequest.cc
Normal file
150
actiontrail/src/model/CreateTrailRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/CreateTrailRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::CreateTrailRequest;
|
||||
|
||||
CreateTrailRequest::CreateTrailRequest() :
|
||||
RpcServiceRequest("actiontrail", "2017-12-04", "CreateTrail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTrailRequest::~CreateTrailRequest()
|
||||
{}
|
||||
|
||||
std::string CreateTrailRequest::getSlsProjectArn()const
|
||||
{
|
||||
return slsProjectArn_;
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setSlsProjectArn(const std::string& slsProjectArn)
|
||||
{
|
||||
slsProjectArn_ = slsProjectArn;
|
||||
setParameter("SlsProjectArn", slsProjectArn);
|
||||
}
|
||||
|
||||
std::string CreateTrailRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateTrailRequest::getSlsWriteRoleArn()const
|
||||
{
|
||||
return slsWriteRoleArn_;
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setSlsWriteRoleArn(const std::string& slsWriteRoleArn)
|
||||
{
|
||||
slsWriteRoleArn_ = slsWriteRoleArn;
|
||||
setParameter("SlsWriteRoleArn", slsWriteRoleArn);
|
||||
}
|
||||
|
||||
bool CreateTrailRequest::getIsOrganizationTrail()const
|
||||
{
|
||||
return isOrganizationTrail_;
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setIsOrganizationTrail(bool isOrganizationTrail)
|
||||
{
|
||||
isOrganizationTrail_ = isOrganizationTrail;
|
||||
setParameter("IsOrganizationTrail", isOrganizationTrail ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTrailRequest::getOssKeyPrefix()const
|
||||
{
|
||||
return ossKeyPrefix_;
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setOssKeyPrefix(const std::string& ossKeyPrefix)
|
||||
{
|
||||
ossKeyPrefix_ = ossKeyPrefix;
|
||||
setParameter("OssKeyPrefix", ossKeyPrefix);
|
||||
}
|
||||
|
||||
std::string CreateTrailRequest::getMnsTopicArn()const
|
||||
{
|
||||
return mnsTopicArn_;
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setMnsTopicArn(const std::string& mnsTopicArn)
|
||||
{
|
||||
mnsTopicArn_ = mnsTopicArn;
|
||||
setParameter("MnsTopicArn", mnsTopicArn);
|
||||
}
|
||||
|
||||
std::string CreateTrailRequest::getRoleName()const
|
||||
{
|
||||
return roleName_;
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setRoleName(const std::string& roleName)
|
||||
{
|
||||
roleName_ = roleName;
|
||||
setParameter("RoleName", roleName);
|
||||
}
|
||||
|
||||
std::string CreateTrailRequest::getEventRW()const
|
||||
{
|
||||
return eventRW_;
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setEventRW(const std::string& eventRW)
|
||||
{
|
||||
eventRW_ = eventRW;
|
||||
setParameter("EventRW", eventRW);
|
||||
}
|
||||
|
||||
std::string CreateTrailRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateTrailRequest::getOssBucketName()const
|
||||
{
|
||||
return ossBucketName_;
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setOssBucketName(const std::string& ossBucketName)
|
||||
{
|
||||
ossBucketName_ = ossBucketName;
|
||||
setParameter("OssBucketName", ossBucketName);
|
||||
}
|
||||
|
||||
std::string CreateTrailRequest::getTrailRegion()const
|
||||
{
|
||||
return trailRegion_;
|
||||
}
|
||||
|
||||
void CreateTrailRequest::setTrailRegion(const std::string& trailRegion)
|
||||
{
|
||||
trailRegion_ = trailRegion;
|
||||
setParameter("TrailRegion", trailRegion);
|
||||
}
|
||||
|
||||
114
actiontrail/src/model/CreateTrailResult.cc
Normal file
114
actiontrail/src/model/CreateTrailResult.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/CreateTrailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
CreateTrailResult::CreateTrailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTrailResult::CreateTrailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTrailResult::~CreateTrailResult()
|
||||
{}
|
||||
|
||||
void CreateTrailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["HomeRegion"].isNull())
|
||||
homeRegion_ = value["HomeRegion"].asString();
|
||||
if(!value["OssBucketName"].isNull())
|
||||
ossBucketName_ = value["OssBucketName"].asString();
|
||||
if(!value["OssKeyPrefix"].isNull())
|
||||
ossKeyPrefix_ = value["OssKeyPrefix"].asString();
|
||||
if(!value["RoleName"].isNull())
|
||||
roleName_ = value["RoleName"].asString();
|
||||
if(!value["SlsProjectArn"].isNull())
|
||||
slsProjectArn_ = value["SlsProjectArn"].asString();
|
||||
if(!value["SlsWriteRoleArn"].isNull())
|
||||
slsWriteRoleArn_ = value["SlsWriteRoleArn"].asString();
|
||||
if(!value["EventRW"].isNull())
|
||||
eventRW_ = value["EventRW"].asString();
|
||||
if(!value["TrailRegion"].isNull())
|
||||
trailRegion_ = value["TrailRegion"].asString();
|
||||
if(!value["MnsTopicArn"].isNull())
|
||||
mnsTopicArn_ = value["MnsTopicArn"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateTrailResult::getSlsProjectArn()const
|
||||
{
|
||||
return slsProjectArn_;
|
||||
}
|
||||
|
||||
std::string CreateTrailResult::getMnsTopicArn()const
|
||||
{
|
||||
return mnsTopicArn_;
|
||||
}
|
||||
|
||||
std::string CreateTrailResult::getRoleName()const
|
||||
{
|
||||
return roleName_;
|
||||
}
|
||||
|
||||
std::string CreateTrailResult::getEventRW()const
|
||||
{
|
||||
return eventRW_;
|
||||
}
|
||||
|
||||
std::string CreateTrailResult::getHomeRegion()const
|
||||
{
|
||||
return homeRegion_;
|
||||
}
|
||||
|
||||
std::string CreateTrailResult::getOssKeyPrefix()const
|
||||
{
|
||||
return ossKeyPrefix_;
|
||||
}
|
||||
|
||||
std::string CreateTrailResult::getOssBucketName()const
|
||||
{
|
||||
return ossBucketName_;
|
||||
}
|
||||
|
||||
std::string CreateTrailResult::getSlsWriteRoleArn()const
|
||||
{
|
||||
return slsWriteRoleArn_;
|
||||
}
|
||||
|
||||
std::string CreateTrailResult::getTrailRegion()const
|
||||
{
|
||||
return trailRegion_;
|
||||
}
|
||||
|
||||
std::string CreateTrailResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
51
actiontrail/src/model/DeleteTrailRequest.cc
Normal file
51
actiontrail/src/model/DeleteTrailRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/DeleteTrailRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::DeleteTrailRequest;
|
||||
|
||||
DeleteTrailRequest::DeleteTrailRequest() :
|
||||
RpcServiceRequest("actiontrail", "2017-12-04", "DeleteTrail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTrailRequest::~DeleteTrailRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteTrailRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteTrailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteTrailRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteTrailRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
44
actiontrail/src/model/DeleteTrailResult.cc
Normal file
44
actiontrail/src/model/DeleteTrailResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/DeleteTrailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
DeleteTrailResult::DeleteTrailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTrailResult::DeleteTrailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTrailResult::~DeleteTrailResult()
|
||||
{}
|
||||
|
||||
void DeleteTrailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
actiontrail/src/model/DescribeRegionsRequest.cc
Normal file
40
actiontrail/src/model/DescribeRegionsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/actiontrail/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest() :
|
||||
RpcServiceRequest("actiontrail", "2017-12-04", "DescribeRegions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRegionsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
58
actiontrail/src/model/DescribeRegionsResult.cc
Normal file
58
actiontrail/src/model/DescribeRegionsResult.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/actiontrail/model/DescribeRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRegionsResult::~DescribeRegionsResult()
|
||||
{}
|
||||
|
||||
void DescribeRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto regionsNode = value["Regions"];
|
||||
auto allRegionNode = regionsNode["Region"]["RegionItem"];
|
||||
for (auto regionsNodeRegionRegionItem : allRegionNode)
|
||||
{
|
||||
Regions::RegionItem regionItemObject;
|
||||
if(!regionsNodeRegionRegionItem["RegionId"].isNull())
|
||||
regionItemObject.regionId = regionsNodeRegionRegionItem["RegionId"].asString();
|
||||
regions_.region.push_back(regionItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeRegionsResult::Regions DescribeRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
62
actiontrail/src/model/DescribeTrailsRequest.cc
Normal file
62
actiontrail/src/model/DescribeTrailsRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/DescribeTrailsRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::DescribeTrailsRequest;
|
||||
|
||||
DescribeTrailsRequest::DescribeTrailsRequest() :
|
||||
RpcServiceRequest("actiontrail", "2017-12-04", "DescribeTrails")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTrailsRequest::~DescribeTrailsRequest()
|
||||
{}
|
||||
|
||||
bool DescribeTrailsRequest::getIncludeShadowTrails()const
|
||||
{
|
||||
return includeShadowTrails_;
|
||||
}
|
||||
|
||||
void DescribeTrailsRequest::setIncludeShadowTrails(bool includeShadowTrails)
|
||||
{
|
||||
includeShadowTrails_ = includeShadowTrails;
|
||||
setParameter("IncludeShadowTrails", includeShadowTrails ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeTrailsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeTrailsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeTrailsRequest::getNameList()const
|
||||
{
|
||||
return nameList_;
|
||||
}
|
||||
|
||||
void DescribeTrailsRequest::setNameList(const std::string& nameList)
|
||||
{
|
||||
nameList_ = nameList;
|
||||
setParameter("NameList", nameList);
|
||||
}
|
||||
|
||||
87
actiontrail/src/model/DescribeTrailsResult.cc
Normal file
87
actiontrail/src/model/DescribeTrailsResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/actiontrail/model/DescribeTrailsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
DescribeTrailsResult::DescribeTrailsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTrailsResult::DescribeTrailsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTrailsResult::~DescribeTrailsResult()
|
||||
{}
|
||||
|
||||
void DescribeTrailsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTrailListNode = value["TrailList"]["TrailListItem"];
|
||||
for (auto valueTrailListTrailListItem : allTrailListNode)
|
||||
{
|
||||
TrailListItem trailListObject;
|
||||
if(!valueTrailListTrailListItem["Name"].isNull())
|
||||
trailListObject.name = valueTrailListTrailListItem["Name"].asString();
|
||||
if(!valueTrailListTrailListItem["HomeRegion"].isNull())
|
||||
trailListObject.homeRegion = valueTrailListTrailListItem["HomeRegion"].asString();
|
||||
if(!valueTrailListTrailListItem["RoleName"].isNull())
|
||||
trailListObject.roleName = valueTrailListTrailListItem["RoleName"].asString();
|
||||
if(!valueTrailListTrailListItem["OssBucketName"].isNull())
|
||||
trailListObject.ossBucketName = valueTrailListTrailListItem["OssBucketName"].asString();
|
||||
if(!valueTrailListTrailListItem["OssKeyPrefix"].isNull())
|
||||
trailListObject.ossKeyPrefix = valueTrailListTrailListItem["OssKeyPrefix"].asString();
|
||||
if(!valueTrailListTrailListItem["EventRW"].isNull())
|
||||
trailListObject.eventRW = valueTrailListTrailListItem["EventRW"].asString();
|
||||
if(!valueTrailListTrailListItem["SlsWriteRoleArn"].isNull())
|
||||
trailListObject.slsWriteRoleArn = valueTrailListTrailListItem["SlsWriteRoleArn"].asString();
|
||||
if(!valueTrailListTrailListItem["SlsProjectArn"].isNull())
|
||||
trailListObject.slsProjectArn = valueTrailListTrailListItem["SlsProjectArn"].asString();
|
||||
if(!valueTrailListTrailListItem["Status"].isNull())
|
||||
trailListObject.status = valueTrailListTrailListItem["Status"].asString();
|
||||
if(!valueTrailListTrailListItem["TrailRegion"].isNull())
|
||||
trailListObject.trailRegion = valueTrailListTrailListItem["TrailRegion"].asString();
|
||||
if(!valueTrailListTrailListItem["CreateTime"].isNull())
|
||||
trailListObject.createTime = valueTrailListTrailListItem["CreateTime"].asString();
|
||||
if(!valueTrailListTrailListItem["UpdateTime"].isNull())
|
||||
trailListObject.updateTime = valueTrailListTrailListItem["UpdateTime"].asString();
|
||||
if(!valueTrailListTrailListItem["StartLoggingTime"].isNull())
|
||||
trailListObject.startLoggingTime = valueTrailListTrailListItem["StartLoggingTime"].asString();
|
||||
if(!valueTrailListTrailListItem["StopLoggingTime"].isNull())
|
||||
trailListObject.stopLoggingTime = valueTrailListTrailListItem["StopLoggingTime"].asString();
|
||||
if(!valueTrailListTrailListItem["MnsTopicArn"].isNull())
|
||||
trailListObject.mnsTopicArn = valueTrailListTrailListItem["MnsTopicArn"].asString();
|
||||
if(!valueTrailListTrailListItem["IsOrganizationTrail"].isNull())
|
||||
trailListObject.isOrganizationTrail = valueTrailListTrailListItem["IsOrganizationTrail"].asString() == "true";
|
||||
trailList_.push_back(trailListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeTrailsResult::TrailListItem> DescribeTrailsResult::getTrailList()const
|
||||
{
|
||||
return trailList_;
|
||||
}
|
||||
|
||||
62
actiontrail/src/model/GetTrailStatusRequest.cc
Normal file
62
actiontrail/src/model/GetTrailStatusRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/GetTrailStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::GetTrailStatusRequest;
|
||||
|
||||
GetTrailStatusRequest::GetTrailStatusRequest() :
|
||||
RpcServiceRequest("actiontrail", "2017-12-04", "GetTrailStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTrailStatusRequest::~GetTrailStatusRequest()
|
||||
{}
|
||||
|
||||
std::string GetTrailStatusRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetTrailStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetTrailStatusRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void GetTrailStatusRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
bool GetTrailStatusRequest::getIsOrganizationTrail()const
|
||||
{
|
||||
return isOrganizationTrail_;
|
||||
}
|
||||
|
||||
void GetTrailStatusRequest::setIsOrganizationTrail(bool isOrganizationTrail)
|
||||
{
|
||||
isOrganizationTrail_ = isOrganizationTrail;
|
||||
setParameter("IsOrganizationTrail", isOrganizationTrail ? "true" : "false");
|
||||
}
|
||||
|
||||
79
actiontrail/src/model/GetTrailStatusResult.cc
Normal file
79
actiontrail/src/model/GetTrailStatusResult.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/actiontrail/model/GetTrailStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
GetTrailStatusResult::GetTrailStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTrailStatusResult::GetTrailStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTrailStatusResult::~GetTrailStatusResult()
|
||||
{}
|
||||
|
||||
void GetTrailStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsLogging"].isNull())
|
||||
isLogging_ = value["IsLogging"].asString() == "true";
|
||||
if(!value["LatestDeliveryError"].isNull())
|
||||
latestDeliveryError_ = value["LatestDeliveryError"].asString();
|
||||
if(!value["LatestDeliveryTime"].isNull())
|
||||
latestDeliveryTime_ = value["LatestDeliveryTime"].asString();
|
||||
if(!value["StartLoggingTime"].isNull())
|
||||
startLoggingTime_ = value["StartLoggingTime"].asString();
|
||||
if(!value["StopLoggingTime"].isNull())
|
||||
stopLoggingTime_ = value["StopLoggingTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTrailStatusResult::getStartLoggingTime()const
|
||||
{
|
||||
return startLoggingTime_;
|
||||
}
|
||||
|
||||
std::string GetTrailStatusResult::getLatestDeliveryError()const
|
||||
{
|
||||
return latestDeliveryError_;
|
||||
}
|
||||
|
||||
std::string GetTrailStatusResult::getStopLoggingTime()const
|
||||
{
|
||||
return stopLoggingTime_;
|
||||
}
|
||||
|
||||
bool GetTrailStatusResult::getIsLogging()const
|
||||
{
|
||||
return isLogging_;
|
||||
}
|
||||
|
||||
std::string GetTrailStatusResult::getLatestDeliveryTime()const
|
||||
{
|
||||
return latestDeliveryTime_;
|
||||
}
|
||||
|
||||
194
actiontrail/src/model/LookupEventsRequest.cc
Normal file
194
actiontrail/src/model/LookupEventsRequest.cc
Normal file
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/actiontrail/model/LookupEventsRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::LookupEventsRequest;
|
||||
|
||||
LookupEventsRequest::LookupEventsRequest() :
|
||||
RpcServiceRequest("actiontrail", "2017-12-04", "LookupEvents")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
LookupEventsRequest::~LookupEventsRequest()
|
||||
{}
|
||||
|
||||
std::string LookupEventsRequest::getRequest()const
|
||||
{
|
||||
return request_;
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setRequest(const std::string& request)
|
||||
{
|
||||
request_ = request;
|
||||
setParameter("Request", request);
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getEventName()const
|
||||
{
|
||||
return eventName_;
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setEventName(const std::string& eventName)
|
||||
{
|
||||
eventName_ = eventName;
|
||||
setParameter("EventName", eventName);
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getEvent()const
|
||||
{
|
||||
return event_;
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setEvent(const std::string& event)
|
||||
{
|
||||
event_ = event;
|
||||
setParameter("Event", event);
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getEventAccessKeyId()const
|
||||
{
|
||||
return eventAccessKeyId_;
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setEventAccessKeyId(const std::string& eventAccessKeyId)
|
||||
{
|
||||
eventAccessKeyId_ = eventAccessKeyId;
|
||||
setParameter("EventAccessKeyId", eventAccessKeyId);
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getEventRW()const
|
||||
{
|
||||
return eventRW_;
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setEventRW(const std::string& eventRW)
|
||||
{
|
||||
eventRW_ = eventRW;
|
||||
setParameter("EventRW", eventRW);
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setMaxResults(const std::string& maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", maxResults);
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getEventType()const
|
||||
{
|
||||
return eventType_;
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setEventType(const std::string& eventType)
|
||||
{
|
||||
eventType_ = eventType;
|
||||
setParameter("EventType", eventType);
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getResourceName()const
|
||||
{
|
||||
return resourceName_;
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setResourceName(const std::string& resourceName)
|
||||
{
|
||||
resourceName_ = resourceName;
|
||||
setParameter("ResourceName", resourceName);
|
||||
}
|
||||
|
||||
std::string LookupEventsRequest::getUser()const
|
||||
{
|
||||
return user_;
|
||||
}
|
||||
|
||||
void LookupEventsRequest::setUser(const std::string& user)
|
||||
{
|
||||
user_ = user;
|
||||
setParameter("User", user);
|
||||
}
|
||||
|
||||
73
actiontrail/src/model/LookupEventsResult.cc
Normal file
73
actiontrail/src/model/LookupEventsResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/LookupEventsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
LookupEventsResult::LookupEventsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
LookupEventsResult::LookupEventsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
LookupEventsResult::~LookupEventsResult()
|
||||
{}
|
||||
|
||||
void LookupEventsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEvents = value["Events"]["Events"];
|
||||
for (const auto &item : allEvents)
|
||||
events_.push_back(item.asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string LookupEventsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string LookupEventsResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::vector<std::string> LookupEventsResult::getEvents()const
|
||||
{
|
||||
return events_;
|
||||
}
|
||||
|
||||
std::string LookupEventsResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
51
actiontrail/src/model/StartLoggingRequest.cc
Normal file
51
actiontrail/src/model/StartLoggingRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/StartLoggingRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::StartLoggingRequest;
|
||||
|
||||
StartLoggingRequest::StartLoggingRequest() :
|
||||
RpcServiceRequest("actiontrail", "2017-12-04", "StartLogging")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
StartLoggingRequest::~StartLoggingRequest()
|
||||
{}
|
||||
|
||||
std::string StartLoggingRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void StartLoggingRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string StartLoggingRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void StartLoggingRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
58
actiontrail/src/model/StartLoggingResult.cc
Normal file
58
actiontrail/src/model/StartLoggingResult.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/actiontrail/model/StartLoggingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
StartLoggingResult::StartLoggingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartLoggingResult::StartLoggingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartLoggingResult::~StartLoggingResult()
|
||||
{}
|
||||
|
||||
void StartLoggingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Param"].isNull())
|
||||
param_ = value["Param"].asString();
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StartLoggingResult::getParam()const
|
||||
{
|
||||
return param_;
|
||||
}
|
||||
|
||||
std::string StartLoggingResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
51
actiontrail/src/model/StopLoggingRequest.cc
Normal file
51
actiontrail/src/model/StopLoggingRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/StopLoggingRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::StopLoggingRequest;
|
||||
|
||||
StopLoggingRequest::StopLoggingRequest() :
|
||||
RpcServiceRequest("actiontrail", "2017-12-04", "StopLogging")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
StopLoggingRequest::~StopLoggingRequest()
|
||||
{}
|
||||
|
||||
std::string StopLoggingRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void StopLoggingRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string StopLoggingRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void StopLoggingRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
44
actiontrail/src/model/StopLoggingResult.cc
Normal file
44
actiontrail/src/model/StopLoggingResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/StopLoggingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
StopLoggingResult::StopLoggingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopLoggingResult::StopLoggingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopLoggingResult::~StopLoggingResult()
|
||||
{}
|
||||
|
||||
void StopLoggingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
139
actiontrail/src/model/UpdateTrailRequest.cc
Normal file
139
actiontrail/src/model/UpdateTrailRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/UpdateTrailRequest.h>
|
||||
|
||||
using AlibabaCloud::Actiontrail::Model::UpdateTrailRequest;
|
||||
|
||||
UpdateTrailRequest::UpdateTrailRequest() :
|
||||
RpcServiceRequest("actiontrail", "2017-12-04", "UpdateTrail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateTrailRequest::~UpdateTrailRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateTrailRequest::getSlsProjectArn()const
|
||||
{
|
||||
return slsProjectArn_;
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setSlsProjectArn(const std::string& slsProjectArn)
|
||||
{
|
||||
slsProjectArn_ = slsProjectArn;
|
||||
setParameter("SlsProjectArn", slsProjectArn);
|
||||
}
|
||||
|
||||
std::string UpdateTrailRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string UpdateTrailRequest::getSlsWriteRoleArn()const
|
||||
{
|
||||
return slsWriteRoleArn_;
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setSlsWriteRoleArn(const std::string& slsWriteRoleArn)
|
||||
{
|
||||
slsWriteRoleArn_ = slsWriteRoleArn;
|
||||
setParameter("SlsWriteRoleArn", slsWriteRoleArn);
|
||||
}
|
||||
|
||||
std::string UpdateTrailRequest::getOssKeyPrefix()const
|
||||
{
|
||||
return ossKeyPrefix_;
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setOssKeyPrefix(const std::string& ossKeyPrefix)
|
||||
{
|
||||
ossKeyPrefix_ = ossKeyPrefix;
|
||||
setParameter("OssKeyPrefix", ossKeyPrefix);
|
||||
}
|
||||
|
||||
std::string UpdateTrailRequest::getMnsTopicArn()const
|
||||
{
|
||||
return mnsTopicArn_;
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setMnsTopicArn(const std::string& mnsTopicArn)
|
||||
{
|
||||
mnsTopicArn_ = mnsTopicArn;
|
||||
setParameter("MnsTopicArn", mnsTopicArn);
|
||||
}
|
||||
|
||||
std::string UpdateTrailRequest::getRoleName()const
|
||||
{
|
||||
return roleName_;
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setRoleName(const std::string& roleName)
|
||||
{
|
||||
roleName_ = roleName;
|
||||
setParameter("RoleName", roleName);
|
||||
}
|
||||
|
||||
std::string UpdateTrailRequest::getEventRW()const
|
||||
{
|
||||
return eventRW_;
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setEventRW(const std::string& eventRW)
|
||||
{
|
||||
eventRW_ = eventRW;
|
||||
setParameter("EventRW", eventRW);
|
||||
}
|
||||
|
||||
std::string UpdateTrailRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string UpdateTrailRequest::getOssBucketName()const
|
||||
{
|
||||
return ossBucketName_;
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setOssBucketName(const std::string& ossBucketName)
|
||||
{
|
||||
ossBucketName_ = ossBucketName;
|
||||
setParameter("OssBucketName", ossBucketName);
|
||||
}
|
||||
|
||||
std::string UpdateTrailRequest::getTrailRegion()const
|
||||
{
|
||||
return trailRegion_;
|
||||
}
|
||||
|
||||
void UpdateTrailRequest::setTrailRegion(const std::string& trailRegion)
|
||||
{
|
||||
trailRegion_ = trailRegion;
|
||||
setParameter("TrailRegion", trailRegion);
|
||||
}
|
||||
|
||||
114
actiontrail/src/model/UpdateTrailResult.cc
Normal file
114
actiontrail/src/model/UpdateTrailResult.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/actiontrail/model/UpdateTrailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Actiontrail;
|
||||
using namespace AlibabaCloud::Actiontrail::Model;
|
||||
|
||||
UpdateTrailResult::UpdateTrailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateTrailResult::UpdateTrailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateTrailResult::~UpdateTrailResult()
|
||||
{}
|
||||
|
||||
void UpdateTrailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["HomeRegion"].isNull())
|
||||
homeRegion_ = value["HomeRegion"].asString();
|
||||
if(!value["OssBucketName"].isNull())
|
||||
ossBucketName_ = value["OssBucketName"].asString();
|
||||
if(!value["OssKeyPrefix"].isNull())
|
||||
ossKeyPrefix_ = value["OssKeyPrefix"].asString();
|
||||
if(!value["RoleName"].isNull())
|
||||
roleName_ = value["RoleName"].asString();
|
||||
if(!value["SlsProjectArn"].isNull())
|
||||
slsProjectArn_ = value["SlsProjectArn"].asString();
|
||||
if(!value["SlsWriteRoleArn"].isNull())
|
||||
slsWriteRoleArn_ = value["SlsWriteRoleArn"].asString();
|
||||
if(!value["EventRW"].isNull())
|
||||
eventRW_ = value["EventRW"].asString();
|
||||
if(!value["TrailRegion"].isNull())
|
||||
trailRegion_ = value["TrailRegion"].asString();
|
||||
if(!value["MnsTopicArn"].isNull())
|
||||
mnsTopicArn_ = value["MnsTopicArn"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateTrailResult::getSlsProjectArn()const
|
||||
{
|
||||
return slsProjectArn_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailResult::getMnsTopicArn()const
|
||||
{
|
||||
return mnsTopicArn_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailResult::getRoleName()const
|
||||
{
|
||||
return roleName_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailResult::getEventRW()const
|
||||
{
|
||||
return eventRW_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailResult::getHomeRegion()const
|
||||
{
|
||||
return homeRegion_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailResult::getOssKeyPrefix()const
|
||||
{
|
||||
return ossKeyPrefix_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailResult::getOssBucketName()const
|
||||
{
|
||||
return ossBucketName_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailResult::getSlsWriteRoleArn()const
|
||||
{
|
||||
return slsWriteRoleArn_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailResult::getTrailRegion()const
|
||||
{
|
||||
return trailRegion_;
|
||||
}
|
||||
|
||||
std::string UpdateTrailResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
@@ -35,6 +35,10 @@ set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/DescribeAccountsResult.h
|
||||
include/alibabacloud/adb/model/DescribeAllDataSourceRequest.h
|
||||
include/alibabacloud/adb/model/DescribeAllDataSourceResult.h
|
||||
include/alibabacloud/adb/model/DescribeAuditLogConfigRequest.h
|
||||
include/alibabacloud/adb/model/DescribeAuditLogConfigResult.h
|
||||
include/alibabacloud/adb/model/DescribeAuditLogRecordsRequest.h
|
||||
include/alibabacloud/adb/model/DescribeAuditLogRecordsResult.h
|
||||
include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h
|
||||
include/alibabacloud/adb/model/DescribeAutoRenewAttributeResult.h
|
||||
include/alibabacloud/adb/model/DescribeAvailableResourceRequest.h
|
||||
@@ -57,10 +61,6 @@ set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/DescribeDBClustersResult.h
|
||||
include/alibabacloud/adb/model/DescribeInclinedTablesRequest.h
|
||||
include/alibabacloud/adb/model/DescribeInclinedTablesResult.h
|
||||
include/alibabacloud/adb/model/DescribeLogStoreKeysRequest.h
|
||||
include/alibabacloud/adb/model/DescribeLogStoreKeysResult.h
|
||||
include/alibabacloud/adb/model/DescribeLoghubDetailRequest.h
|
||||
include/alibabacloud/adb/model/DescribeLoghubDetailResult.h
|
||||
include/alibabacloud/adb/model/DescribeOperatorPermissionRequest.h
|
||||
include/alibabacloud/adb/model/DescribeOperatorPermissionResult.h
|
||||
include/alibabacloud/adb/model/DescribeProcessListRequest.h
|
||||
@@ -75,6 +75,8 @@ set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/DescribeSlowLogTrendResult.h
|
||||
include/alibabacloud/adb/model/DescribeTableDetailRequest.h
|
||||
include/alibabacloud/adb/model/DescribeTableDetailResult.h
|
||||
include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseRequest.h
|
||||
include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseResult.h
|
||||
include/alibabacloud/adb/model/DescribeTablesRequest.h
|
||||
include/alibabacloud/adb/model/DescribeTablesResult.h
|
||||
include/alibabacloud/adb/model/DescribeTaskInfoRequest.h
|
||||
@@ -87,6 +89,8 @@ set(adb_public_header_model
|
||||
include/alibabacloud/adb/model/ListTagResourcesResult.h
|
||||
include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h
|
||||
include/alibabacloud/adb/model/ModifyAccountDescriptionResult.h
|
||||
include/alibabacloud/adb/model/ModifyAuditLogConfigRequest.h
|
||||
include/alibabacloud/adb/model/ModifyAuditLogConfigResult.h
|
||||
include/alibabacloud/adb/model/ModifyAutoRenewAttributeRequest.h
|
||||
include/alibabacloud/adb/model/ModifyAutoRenewAttributeResult.h
|
||||
include/alibabacloud/adb/model/ModifyBackupPolicyRequest.h
|
||||
@@ -130,6 +134,10 @@ set(adb_src
|
||||
src/model/DescribeAccountsResult.cc
|
||||
src/model/DescribeAllDataSourceRequest.cc
|
||||
src/model/DescribeAllDataSourceResult.cc
|
||||
src/model/DescribeAuditLogConfigRequest.cc
|
||||
src/model/DescribeAuditLogConfigResult.cc
|
||||
src/model/DescribeAuditLogRecordsRequest.cc
|
||||
src/model/DescribeAuditLogRecordsResult.cc
|
||||
src/model/DescribeAutoRenewAttributeRequest.cc
|
||||
src/model/DescribeAutoRenewAttributeResult.cc
|
||||
src/model/DescribeAvailableResourceRequest.cc
|
||||
@@ -152,10 +160,6 @@ set(adb_src
|
||||
src/model/DescribeDBClustersResult.cc
|
||||
src/model/DescribeInclinedTablesRequest.cc
|
||||
src/model/DescribeInclinedTablesResult.cc
|
||||
src/model/DescribeLogStoreKeysRequest.cc
|
||||
src/model/DescribeLogStoreKeysResult.cc
|
||||
src/model/DescribeLoghubDetailRequest.cc
|
||||
src/model/DescribeLoghubDetailResult.cc
|
||||
src/model/DescribeOperatorPermissionRequest.cc
|
||||
src/model/DescribeOperatorPermissionResult.cc
|
||||
src/model/DescribeProcessListRequest.cc
|
||||
@@ -170,6 +174,8 @@ set(adb_src
|
||||
src/model/DescribeSlowLogTrendResult.cc
|
||||
src/model/DescribeTableDetailRequest.cc
|
||||
src/model/DescribeTableDetailResult.cc
|
||||
src/model/DescribeTablePartitionDiagnoseRequest.cc
|
||||
src/model/DescribeTablePartitionDiagnoseResult.cc
|
||||
src/model/DescribeTablesRequest.cc
|
||||
src/model/DescribeTablesResult.cc
|
||||
src/model/DescribeTaskInfoRequest.cc
|
||||
@@ -182,6 +188,8 @@ set(adb_src
|
||||
src/model/ListTagResourcesResult.cc
|
||||
src/model/ModifyAccountDescriptionRequest.cc
|
||||
src/model/ModifyAccountDescriptionResult.cc
|
||||
src/model/ModifyAuditLogConfigRequest.cc
|
||||
src/model/ModifyAuditLogConfigResult.cc
|
||||
src/model/ModifyAutoRenewAttributeRequest.cc
|
||||
src/model/ModifyAutoRenewAttributeResult.cc
|
||||
src/model/ModifyBackupPolicyRequest.cc
|
||||
|
||||
@@ -36,6 +36,10 @@
|
||||
#include "model/DescribeAccountsResult.h"
|
||||
#include "model/DescribeAllDataSourceRequest.h"
|
||||
#include "model/DescribeAllDataSourceResult.h"
|
||||
#include "model/DescribeAuditLogConfigRequest.h"
|
||||
#include "model/DescribeAuditLogConfigResult.h"
|
||||
#include "model/DescribeAuditLogRecordsRequest.h"
|
||||
#include "model/DescribeAuditLogRecordsResult.h"
|
||||
#include "model/DescribeAutoRenewAttributeRequest.h"
|
||||
#include "model/DescribeAutoRenewAttributeResult.h"
|
||||
#include "model/DescribeAvailableResourceRequest.h"
|
||||
@@ -58,10 +62,6 @@
|
||||
#include "model/DescribeDBClustersResult.h"
|
||||
#include "model/DescribeInclinedTablesRequest.h"
|
||||
#include "model/DescribeInclinedTablesResult.h"
|
||||
#include "model/DescribeLogStoreKeysRequest.h"
|
||||
#include "model/DescribeLogStoreKeysResult.h"
|
||||
#include "model/DescribeLoghubDetailRequest.h"
|
||||
#include "model/DescribeLoghubDetailResult.h"
|
||||
#include "model/DescribeOperatorPermissionRequest.h"
|
||||
#include "model/DescribeOperatorPermissionResult.h"
|
||||
#include "model/DescribeProcessListRequest.h"
|
||||
@@ -76,6 +76,8 @@
|
||||
#include "model/DescribeSlowLogTrendResult.h"
|
||||
#include "model/DescribeTableDetailRequest.h"
|
||||
#include "model/DescribeTableDetailResult.h"
|
||||
#include "model/DescribeTablePartitionDiagnoseRequest.h"
|
||||
#include "model/DescribeTablePartitionDiagnoseResult.h"
|
||||
#include "model/DescribeTablesRequest.h"
|
||||
#include "model/DescribeTablesResult.h"
|
||||
#include "model/DescribeTaskInfoRequest.h"
|
||||
@@ -88,6 +90,8 @@
|
||||
#include "model/ListTagResourcesResult.h"
|
||||
#include "model/ModifyAccountDescriptionRequest.h"
|
||||
#include "model/ModifyAccountDescriptionResult.h"
|
||||
#include "model/ModifyAuditLogConfigRequest.h"
|
||||
#include "model/ModifyAuditLogConfigResult.h"
|
||||
#include "model/ModifyAutoRenewAttributeRequest.h"
|
||||
#include "model/ModifyAutoRenewAttributeResult.h"
|
||||
#include "model/ModifyBackupPolicyRequest.h"
|
||||
@@ -144,6 +148,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeAllDataSourceResult> DescribeAllDataSourceOutcome;
|
||||
typedef std::future<DescribeAllDataSourceOutcome> DescribeAllDataSourceOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeAllDataSourceRequest&, const DescribeAllDataSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAllDataSourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAuditLogConfigResult> DescribeAuditLogConfigOutcome;
|
||||
typedef std::future<DescribeAuditLogConfigOutcome> DescribeAuditLogConfigOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeAuditLogConfigRequest&, const DescribeAuditLogConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAuditLogConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAuditLogRecordsResult> DescribeAuditLogRecordsOutcome;
|
||||
typedef std::future<DescribeAuditLogRecordsOutcome> DescribeAuditLogRecordsOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeAuditLogRecordsRequest&, const DescribeAuditLogRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAuditLogRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAutoRenewAttributeResult> DescribeAutoRenewAttributeOutcome;
|
||||
typedef std::future<DescribeAutoRenewAttributeOutcome> DescribeAutoRenewAttributeOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeAutoRenewAttributeRequest&, const DescribeAutoRenewAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAutoRenewAttributeAsyncHandler;
|
||||
@@ -177,12 +187,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeInclinedTablesResult> DescribeInclinedTablesOutcome;
|
||||
typedef std::future<DescribeInclinedTablesOutcome> DescribeInclinedTablesOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeInclinedTablesRequest&, const DescribeInclinedTablesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInclinedTablesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLogStoreKeysResult> DescribeLogStoreKeysOutcome;
|
||||
typedef std::future<DescribeLogStoreKeysOutcome> DescribeLogStoreKeysOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeLogStoreKeysRequest&, const DescribeLogStoreKeysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLogStoreKeysAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLoghubDetailResult> DescribeLoghubDetailOutcome;
|
||||
typedef std::future<DescribeLoghubDetailOutcome> DescribeLoghubDetailOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeLoghubDetailRequest&, const DescribeLoghubDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLoghubDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeOperatorPermissionResult> DescribeOperatorPermissionOutcome;
|
||||
typedef std::future<DescribeOperatorPermissionOutcome> DescribeOperatorPermissionOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeOperatorPermissionRequest&, const DescribeOperatorPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeOperatorPermissionAsyncHandler;
|
||||
@@ -204,6 +208,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeTableDetailResult> DescribeTableDetailOutcome;
|
||||
typedef std::future<DescribeTableDetailOutcome> DescribeTableDetailOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeTableDetailRequest&, const DescribeTableDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTableDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTablePartitionDiagnoseResult> DescribeTablePartitionDiagnoseOutcome;
|
||||
typedef std::future<DescribeTablePartitionDiagnoseOutcome> DescribeTablePartitionDiagnoseOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeTablePartitionDiagnoseRequest&, const DescribeTablePartitionDiagnoseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTablePartitionDiagnoseAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTablesResult> DescribeTablesOutcome;
|
||||
typedef std::future<DescribeTablesOutcome> DescribeTablesOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::DescribeTablesRequest&, const DescribeTablesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTablesAsyncHandler;
|
||||
@@ -222,6 +229,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyAccountDescriptionResult> ModifyAccountDescriptionOutcome;
|
||||
typedef std::future<ModifyAccountDescriptionOutcome> ModifyAccountDescriptionOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyAccountDescriptionRequest&, const ModifyAccountDescriptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAccountDescriptionAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyAuditLogConfigResult> ModifyAuditLogConfigOutcome;
|
||||
typedef std::future<ModifyAuditLogConfigOutcome> ModifyAuditLogConfigOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyAuditLogConfigRequest&, const ModifyAuditLogConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAuditLogConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyAutoRenewAttributeResult> ModifyAutoRenewAttributeOutcome;
|
||||
typedef std::future<ModifyAutoRenewAttributeOutcome> ModifyAutoRenewAttributeOutcomeCallable;
|
||||
typedef std::function<void(const AdbClient*, const Model::ModifyAutoRenewAttributeRequest&, const ModifyAutoRenewAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAutoRenewAttributeAsyncHandler;
|
||||
@@ -287,6 +297,12 @@ namespace AlibabaCloud
|
||||
DescribeAllDataSourceOutcome describeAllDataSource(const Model::DescribeAllDataSourceRequest &request)const;
|
||||
void describeAllDataSourceAsync(const Model::DescribeAllDataSourceRequest& request, const DescribeAllDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAllDataSourceOutcomeCallable describeAllDataSourceCallable(const Model::DescribeAllDataSourceRequest& request) const;
|
||||
DescribeAuditLogConfigOutcome describeAuditLogConfig(const Model::DescribeAuditLogConfigRequest &request)const;
|
||||
void describeAuditLogConfigAsync(const Model::DescribeAuditLogConfigRequest& request, const DescribeAuditLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAuditLogConfigOutcomeCallable describeAuditLogConfigCallable(const Model::DescribeAuditLogConfigRequest& request) const;
|
||||
DescribeAuditLogRecordsOutcome describeAuditLogRecords(const Model::DescribeAuditLogRecordsRequest &request)const;
|
||||
void describeAuditLogRecordsAsync(const Model::DescribeAuditLogRecordsRequest& request, const DescribeAuditLogRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAuditLogRecordsOutcomeCallable describeAuditLogRecordsCallable(const Model::DescribeAuditLogRecordsRequest& request) const;
|
||||
DescribeAutoRenewAttributeOutcome describeAutoRenewAttribute(const Model::DescribeAutoRenewAttributeRequest &request)const;
|
||||
void describeAutoRenewAttributeAsync(const Model::DescribeAutoRenewAttributeRequest& request, const DescribeAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAutoRenewAttributeOutcomeCallable describeAutoRenewAttributeCallable(const Model::DescribeAutoRenewAttributeRequest& request) const;
|
||||
@@ -320,12 +336,6 @@ namespace AlibabaCloud
|
||||
DescribeInclinedTablesOutcome describeInclinedTables(const Model::DescribeInclinedTablesRequest &request)const;
|
||||
void describeInclinedTablesAsync(const Model::DescribeInclinedTablesRequest& request, const DescribeInclinedTablesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInclinedTablesOutcomeCallable describeInclinedTablesCallable(const Model::DescribeInclinedTablesRequest& request) const;
|
||||
DescribeLogStoreKeysOutcome describeLogStoreKeys(const Model::DescribeLogStoreKeysRequest &request)const;
|
||||
void describeLogStoreKeysAsync(const Model::DescribeLogStoreKeysRequest& request, const DescribeLogStoreKeysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLogStoreKeysOutcomeCallable describeLogStoreKeysCallable(const Model::DescribeLogStoreKeysRequest& request) const;
|
||||
DescribeLoghubDetailOutcome describeLoghubDetail(const Model::DescribeLoghubDetailRequest &request)const;
|
||||
void describeLoghubDetailAsync(const Model::DescribeLoghubDetailRequest& request, const DescribeLoghubDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLoghubDetailOutcomeCallable describeLoghubDetailCallable(const Model::DescribeLoghubDetailRequest& request) const;
|
||||
DescribeOperatorPermissionOutcome describeOperatorPermission(const Model::DescribeOperatorPermissionRequest &request)const;
|
||||
void describeOperatorPermissionAsync(const Model::DescribeOperatorPermissionRequest& request, const DescribeOperatorPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeOperatorPermissionOutcomeCallable describeOperatorPermissionCallable(const Model::DescribeOperatorPermissionRequest& request) const;
|
||||
@@ -347,6 +357,9 @@ namespace AlibabaCloud
|
||||
DescribeTableDetailOutcome describeTableDetail(const Model::DescribeTableDetailRequest &request)const;
|
||||
void describeTableDetailAsync(const Model::DescribeTableDetailRequest& request, const DescribeTableDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTableDetailOutcomeCallable describeTableDetailCallable(const Model::DescribeTableDetailRequest& request) const;
|
||||
DescribeTablePartitionDiagnoseOutcome describeTablePartitionDiagnose(const Model::DescribeTablePartitionDiagnoseRequest &request)const;
|
||||
void describeTablePartitionDiagnoseAsync(const Model::DescribeTablePartitionDiagnoseRequest& request, const DescribeTablePartitionDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTablePartitionDiagnoseOutcomeCallable describeTablePartitionDiagnoseCallable(const Model::DescribeTablePartitionDiagnoseRequest& request) const;
|
||||
DescribeTablesOutcome describeTables(const Model::DescribeTablesRequest &request)const;
|
||||
void describeTablesAsync(const Model::DescribeTablesRequest& request, const DescribeTablesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTablesOutcomeCallable describeTablesCallable(const Model::DescribeTablesRequest& request) const;
|
||||
@@ -365,6 +378,9 @@ namespace AlibabaCloud
|
||||
ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const;
|
||||
void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyAccountDescriptionOutcomeCallable modifyAccountDescriptionCallable(const Model::ModifyAccountDescriptionRequest& request) const;
|
||||
ModifyAuditLogConfigOutcome modifyAuditLogConfig(const Model::ModifyAuditLogConfigRequest &request)const;
|
||||
void modifyAuditLogConfigAsync(const Model::ModifyAuditLogConfigRequest& request, const ModifyAuditLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyAuditLogConfigOutcomeCallable modifyAuditLogConfigCallable(const Model::ModifyAuditLogConfigRequest& request) const;
|
||||
ModifyAutoRenewAttributeOutcome modifyAutoRenewAttribute(const Model::ModifyAutoRenewAttributeRequest &request)const;
|
||||
void modifyAutoRenewAttributeAsync(const Model::ModifyAutoRenewAttributeRequest& request, const ModifyAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyAutoRenewAttributeOutcomeCallable modifyAutoRenewAttributeCallable(const Model::ModifyAutoRenewAttributeRequest& request) const;
|
||||
|
||||
@@ -41,8 +41,16 @@ namespace AlibabaCloud
|
||||
void setDBClusterDescription(const std::string& dBClusterDescription);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getStorageType()const;
|
||||
void setStorageType(const std::string& storageType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getMode()const;
|
||||
void setMode(const std::string& mode);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getStorageResource()const;
|
||||
void setStorageResource(const std::string& storageResource);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDBClusterCategory()const;
|
||||
@@ -69,10 +77,14 @@ namespace AlibabaCloud
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::string getDBNodeStorage()const;
|
||||
void setDBNodeStorage(const std::string& dBNodeStorage);
|
||||
std::string getExecutorCount()const;
|
||||
void setExecutorCount(const std::string& executorCount);
|
||||
std::string getVPCId()const;
|
||||
void setVPCId(const std::string& vPCId);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getComputeResource()const;
|
||||
void setComputeResource(const std::string& computeResource);
|
||||
std::string getPayType()const;
|
||||
void setPayType(const std::string& payType);
|
||||
|
||||
@@ -80,7 +92,11 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
std::string dBClusterDescription_;
|
||||
std::string clientToken_;
|
||||
std::string storageType_;
|
||||
std::string accessKeyId_;
|
||||
std::string mode_;
|
||||
std::string resourceGroupId_;
|
||||
std::string storageResource_;
|
||||
std::string regionId_;
|
||||
std::string dBClusterCategory_;
|
||||
std::string dBClusterNetworkType_;
|
||||
@@ -94,8 +110,10 @@ namespace AlibabaCloud
|
||||
std::string usedTime_;
|
||||
std::string vSwitchId_;
|
||||
std::string dBNodeStorage_;
|
||||
std::string executorCount_;
|
||||
std::string vPCId_;
|
||||
std::string zoneId_;
|
||||
std::string computeResource_;
|
||||
std::string payType_;
|
||||
|
||||
};
|
||||
|
||||
@@ -37,12 +37,14 @@ namespace AlibabaCloud
|
||||
CreateDBClusterResult();
|
||||
explicit CreateDBClusterResult(const std::string &payload);
|
||||
~CreateDBClusterResult();
|
||||
std::string getResourceGroupId()const;
|
||||
std::string getDBClusterId()const;
|
||||
std::string getOrderId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resourceGroupId_;
|
||||
std::string dBClusterId_;
|
||||
std::string orderId_;
|
||||
|
||||
|
||||
@@ -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_DESCRIBEAUDITLOGCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_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 DescribeAuditLogConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeAuditLogConfigRequest();
|
||||
~DescribeAuditLogConfigRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
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 regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeAuditLogConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeAuditLogConfigResult();
|
||||
explicit DescribeAuditLogConfigResult(const std::string &payload);
|
||||
~DescribeAuditLogConfigResult();
|
||||
std::string getAuditLogStatus()const;
|
||||
std::string getDBClusterId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string auditLogStatus_;
|
||||
std::string dBClusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGRESULT_H_
|
||||
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeAuditLogRecordsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeAuditLogRecordsRequest();
|
||||
~DescribeAuditLogRecordsRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getHostAddress()const;
|
||||
void setHostAddress(const std::string& hostAddress);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getSqlType()const;
|
||||
void setSqlType(const std::string& sqlType);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
void setDBClusterId(const std::string& dBClusterId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getQueryKeyword()const;
|
||||
void setQueryKeyword(const std::string& queryKeyword);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getDBName()const;
|
||||
void setDBName(const std::string& dBName);
|
||||
std::string getSucceed()const;
|
||||
void setSucceed(const std::string& succeed);
|
||||
std::string getUser()const;
|
||||
void setUser(const std::string& user);
|
||||
std::string getOrderType()const;
|
||||
void setOrderType(const std::string& orderType);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string startTime_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string hostAddress_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::string sqlType_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
std::string queryKeyword_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
std::string dBName_;
|
||||
std::string succeed_;
|
||||
std::string user_;
|
||||
std::string orderType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSREQUEST_H_
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeAuditLogRecordsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct SlowLogRecord
|
||||
{
|
||||
std::string connId;
|
||||
std::string executeTime;
|
||||
std::string totalTime;
|
||||
std::string dBName;
|
||||
std::string processID;
|
||||
std::string hostAddress;
|
||||
std::string sQLType;
|
||||
std::string sQLText;
|
||||
std::string succeed;
|
||||
};
|
||||
|
||||
|
||||
DescribeAuditLogRecordsResult();
|
||||
explicit DescribeAuditLogRecordsResult(const std::string &payload);
|
||||
~DescribeAuditLogRecordsResult();
|
||||
std::string getTotalCount()const;
|
||||
std::string getPageSize()const;
|
||||
std::string getPageNumber()const;
|
||||
std::string getDBClusterId()const;
|
||||
std::vector<SlowLogRecord> getItems()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string totalCount_;
|
||||
std::string pageSize_;
|
||||
std::string pageNumber_;
|
||||
std::string dBClusterId_;
|
||||
std::vector<SlowLogRecord> items_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSRESULT_H_
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
@@ -58,6 +60,7 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -34,30 +34,53 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct AvailableZone
|
||||
{
|
||||
struct SupportedSerial
|
||||
struct SupportedModeItem
|
||||
{
|
||||
struct SupportedInstanceClass
|
||||
struct SupportedSerialListItem
|
||||
{
|
||||
struct SupportedNodeCount
|
||||
struct SupportedFlexibleResourceItem
|
||||
{
|
||||
struct NodeCount
|
||||
{
|
||||
std::string maxCount;
|
||||
std::string step;
|
||||
std::string minCount;
|
||||
};
|
||||
NodeCount nodeCount;
|
||||
std::vector<std::string> storageSize;
|
||||
std::string storageType;
|
||||
std::vector<std::string> supportedStorageResource;
|
||||
std::vector<std::string> supportedComputeResource;
|
||||
};
|
||||
std::string instanceClass;
|
||||
std::vector<SupportedInstanceClass::SupportedNodeCount> supportedNodeCountList;
|
||||
std::string tips;
|
||||
struct SupportedInstanceClass
|
||||
{
|
||||
struct SupportedNodeCount
|
||||
{
|
||||
struct NodeCount
|
||||
{
|
||||
std::string maxCount;
|
||||
std::string step;
|
||||
std::string minCount;
|
||||
};
|
||||
NodeCount nodeCount;
|
||||
std::vector<std::string> storageSize;
|
||||
};
|
||||
struct SupportedExecutor
|
||||
{
|
||||
struct NodeCount1
|
||||
{
|
||||
std::string maxCount;
|
||||
std::string step;
|
||||
std::string minCount;
|
||||
};
|
||||
NodeCount1 nodeCount1;
|
||||
};
|
||||
std::vector<SupportedInstanceClass::SupportedExecutor> supportedExecutorList;
|
||||
std::string instanceClass;
|
||||
std::vector<SupportedInstanceClass::SupportedNodeCount> supportedNodeCountList;
|
||||
std::string tips;
|
||||
};
|
||||
std::string serial;
|
||||
std::vector<SupportedSerialListItem::SupportedFlexibleResourceItem> supportedFlexibleResource;
|
||||
std::vector<SupportedSerialListItem::SupportedInstanceClass> supportedInstanceClassList;
|
||||
};
|
||||
std::string serial;
|
||||
std::vector<SupportedSerial::SupportedInstanceClass> supportedInstanceClassList;
|
||||
std::string mode;
|
||||
std::vector<SupportedModeItem::SupportedSerialListItem> supportedSerialList;
|
||||
};
|
||||
std::string zoneId;
|
||||
std::vector<AvailableZone::SupportedSerial> supportedSerialList;
|
||||
std::vector<AvailableZone::SupportedModeItem> supportedMode;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -39,15 +39,19 @@ namespace AlibabaCloud
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string storageResource;
|
||||
std::string category;
|
||||
std::string resourceGroupId;
|
||||
int port;
|
||||
std::string dBClusterId;
|
||||
std::string dBClusterNetworkType;
|
||||
std::string dBClusterType;
|
||||
std::string diskType;
|
||||
std::string dBVersion;
|
||||
std::string dtsJobId;
|
||||
long dBNodeCount;
|
||||
std::string commodityCode;
|
||||
std::string executorCount;
|
||||
std::string lockReason;
|
||||
std::string maintainTime;
|
||||
std::vector<DBCluster::Tag> tags;
|
||||
@@ -57,7 +61,9 @@ namespace AlibabaCloud
|
||||
std::string vPCId;
|
||||
std::string dBClusterStatus;
|
||||
std::string vSwitchId;
|
||||
std::string mode;
|
||||
std::string dBClusterDescription;
|
||||
std::string computeResource;
|
||||
std::string expired;
|
||||
std::string lockMode;
|
||||
std::string payType;
|
||||
|
||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
@@ -72,6 +74,7 @@ namespace AlibabaCloud
|
||||
std::string dBClusterStatus_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::vector<Tag> tag_;
|
||||
|
||||
@@ -39,25 +39,39 @@ namespace AlibabaCloud
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
long dBNodeStorage;
|
||||
std::string storageResource;
|
||||
std::string category;
|
||||
std::string dBClusterStatus;
|
||||
std::string createTime;
|
||||
std::string resourceGroupId;
|
||||
std::string port;
|
||||
std::string dBClusterId;
|
||||
std::string dBClusterDescription;
|
||||
std::string expired;
|
||||
std::string payType;
|
||||
std::string lockMode;
|
||||
std::string dBNodeClass;
|
||||
std::string dBClusterNetworkType;
|
||||
std::string dBClusterType;
|
||||
std::string diskType;
|
||||
std::string dBVersion;
|
||||
std::string dtsJobId;
|
||||
long dBNodeCount;
|
||||
std::string commodityCode;
|
||||
std::string regionId;
|
||||
std::string expireTime;
|
||||
std::string executorCount;
|
||||
std::string lockReason;
|
||||
std::vector<DBCluster::Tag> tags;
|
||||
std::string engine;
|
||||
long dBNodeStorage;
|
||||
std::string zoneId;
|
||||
std::string vPCId;
|
||||
std::string dBClusterStatus;
|
||||
std::string createTime;
|
||||
std::string vSwitchId;
|
||||
std::string mode;
|
||||
std::string dBClusterDescription;
|
||||
std::string computeResource;
|
||||
std::string expired;
|
||||
std::string payType;
|
||||
std::string lockMode;
|
||||
std::string dBNodeClass;
|
||||
std::string vPCCloudInstanceId;
|
||||
std::string regionId;
|
||||
std::string expireTime;
|
||||
std::string connectionString;
|
||||
std::string rdsInstanceId;
|
||||
};
|
||||
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSREQUEST_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 DescribeLogStoreKeysRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeLogStoreKeysRequest();
|
||||
~DescribeLogStoreKeysRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getProjectName()const;
|
||||
void setProjectName(const std::string& projectName);
|
||||
std::string getLogStoreName()const;
|
||||
void setLogStoreName(const std::string& logStoreName);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string projectName_;
|
||||
std::string logStoreName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSREQUEST_H_
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSRESULT_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 DescribeLogStoreKeysResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeLogStoreKeysResult();
|
||||
explicit DescribeLogStoreKeysResult(const std::string &payload);
|
||||
~DescribeLogStoreKeysResult();
|
||||
std::vector<std::string> getLogStoreKeys()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> logStoreKeys_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSRESULT_H_
|
||||
@@ -1,69 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILREQUEST_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 DescribeLoghubDetailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeLoghubDetailRequest();
|
||||
~DescribeLoghubDetailRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getProjectName()const;
|
||||
void setProjectName(const std::string& projectName);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getExportName()const;
|
||||
void setExportName(const std::string& exportName);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string projectName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string exportName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILREQUEST_H_
|
||||
@@ -1,78 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeLoghubDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct LoghubInfo
|
||||
{
|
||||
struct LogHubStore
|
||||
{
|
||||
std::string type;
|
||||
std::string logKey;
|
||||
std::string fieldKey;
|
||||
};
|
||||
std::string description;
|
||||
std::string userName;
|
||||
std::string zoneId;
|
||||
std::string projectName;
|
||||
std::string deliverName;
|
||||
std::string deliverTime;
|
||||
std::string dBClusterId;
|
||||
std::string dBType;
|
||||
std::string tableName;
|
||||
bool filterDirtyData;
|
||||
std::string accessSecret;
|
||||
std::string logStoreName;
|
||||
std::string domainUrl;
|
||||
std::vector<LogHubStore> logHubStores;
|
||||
std::string regionId;
|
||||
std::string accessKey;
|
||||
std::string schemaName;
|
||||
std::string password;
|
||||
};
|
||||
|
||||
|
||||
DescribeLoghubDetailResult();
|
||||
explicit DescribeLoghubDetailResult(const std::string &payload);
|
||||
~DescribeLoghubDetailResult();
|
||||
LoghubInfo getLoghubInfo()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
LoghubInfo loghubInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILRESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSEREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeTablePartitionDiagnoseRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeTablePartitionDiagnoseRequest();
|
||||
~DescribeTablePartitionDiagnoseRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
void setDBClusterId(const std::string& dBClusterId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSEREQUEST_H_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSERESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/adb/AdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Adb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADB_EXPORT DescribeTablePartitionDiagnoseResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TablePartitionDiagnose
|
||||
{
|
||||
std::string tableName;
|
||||
int partitionNumber;
|
||||
std::string partitionDetail;
|
||||
std::string schemaName;
|
||||
};
|
||||
|
||||
|
||||
DescribeTablePartitionDiagnoseResult();
|
||||
explicit DescribeTablePartitionDiagnoseResult(const std::string &payload);
|
||||
~DescribeTablePartitionDiagnoseResult();
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
int getDBClusterId()const;
|
||||
long getSuggestMaxRecordsPerPartition()const;
|
||||
std::vector<TablePartitionDiagnose> getItems()const;
|
||||
long getSuggestMinRecordsPerPartition()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
int dBClusterId_;
|
||||
long suggestMaxRecordsPerPartition_;
|
||||
std::vector<TablePartitionDiagnose> items_;
|
||||
long suggestMinRecordsPerPartition_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSERESULT_H_
|
||||
@@ -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_MODIFYAUDITLOGCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_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 ModifyAuditLogConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyAuditLogConfigRequest();
|
||||
~ModifyAuditLogConfigRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
void setDBClusterId(const std::string& dBClusterId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAuditLogStatus()const;
|
||||
void setAuditLogStatus(const std::string& auditLogStatus);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string auditLogStatus_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_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_MODIFYAUDITLOGCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGRESULT_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 ModifyAuditLogConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyAuditLogConfigResult();
|
||||
explicit ModifyAuditLogConfigResult(const std::string &payload);
|
||||
~ModifyAuditLogConfigResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGRESULT_H_
|
||||
@@ -39,8 +39,12 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getStorageResource()const;
|
||||
void setStorageResource(const std::string& storageResource);
|
||||
std::string getDBNodeClass()const;
|
||||
void setDBNodeClass(const std::string& dBNodeClass);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
@@ -53,20 +57,28 @@ namespace AlibabaCloud
|
||||
void setDBNodeGroupCount(const std::string& dBNodeGroupCount);
|
||||
std::string getDBNodeStorage()const;
|
||||
void setDBNodeStorage(const std::string& dBNodeStorage);
|
||||
std::string getExecutorCount()const;
|
||||
void setExecutorCount(const std::string& executorCount);
|
||||
std::string getModifyType()const;
|
||||
void setModifyType(const std::string& modifyType);
|
||||
std::string getComputeResource()const;
|
||||
void setComputeResource(const std::string& computeResource);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string storageResource_;
|
||||
std::string dBNodeClass_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string dBNodeGroupCount_;
|
||||
std::string dBNodeStorage_;
|
||||
std::string executorCount_;
|
||||
std::string modifyType_;
|
||||
std::string computeResource_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -303,6 +303,78 @@ AdbClient::DescribeAllDataSourceOutcomeCallable AdbClient::describeAllDataSource
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeAuditLogConfigOutcome AdbClient::describeAuditLogConfig(const DescribeAuditLogConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAuditLogConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAuditLogConfigOutcome(DescribeAuditLogConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeAuditLogConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeAuditLogConfigAsync(const DescribeAuditLogConfigRequest& request, const DescribeAuditLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAuditLogConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeAuditLogConfigOutcomeCallable AdbClient::describeAuditLogConfigCallable(const DescribeAuditLogConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAuditLogConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAuditLogConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeAuditLogRecordsOutcome AdbClient::describeAuditLogRecords(const DescribeAuditLogRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAuditLogRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAuditLogRecordsOutcome(DescribeAuditLogRecordsResult(outcome.result()));
|
||||
else
|
||||
return DescribeAuditLogRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeAuditLogRecordsAsync(const DescribeAuditLogRecordsRequest& request, const DescribeAuditLogRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAuditLogRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeAuditLogRecordsOutcomeCallable AdbClient::describeAuditLogRecordsCallable(const DescribeAuditLogRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAuditLogRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAuditLogRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeAutoRenewAttributeOutcome AdbClient::describeAutoRenewAttribute(const DescribeAutoRenewAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,78 +771,6 @@ AdbClient::DescribeInclinedTablesOutcomeCallable AdbClient::describeInclinedTabl
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeLogStoreKeysOutcome AdbClient::describeLogStoreKeys(const DescribeLogStoreKeysRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLogStoreKeysOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLogStoreKeysOutcome(DescribeLogStoreKeysResult(outcome.result()));
|
||||
else
|
||||
return DescribeLogStoreKeysOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeLogStoreKeysAsync(const DescribeLogStoreKeysRequest& request, const DescribeLogStoreKeysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLogStoreKeys(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeLogStoreKeysOutcomeCallable AdbClient::describeLogStoreKeysCallable(const DescribeLogStoreKeysRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLogStoreKeysOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLogStoreKeys(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeLoghubDetailOutcome AdbClient::describeLoghubDetail(const DescribeLoghubDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLoghubDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLoghubDetailOutcome(DescribeLoghubDetailResult(outcome.result()));
|
||||
else
|
||||
return DescribeLoghubDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeLoghubDetailAsync(const DescribeLoghubDetailRequest& request, const DescribeLoghubDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLoghubDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeLoghubDetailOutcomeCallable AdbClient::describeLoghubDetailCallable(const DescribeLoghubDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLoghubDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLoghubDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeOperatorPermissionOutcome AdbClient::describeOperatorPermission(const DescribeOperatorPermissionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1023,6 +1023,42 @@ AdbClient::DescribeTableDetailOutcomeCallable AdbClient::describeTableDetailCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeTablePartitionDiagnoseOutcome AdbClient::describeTablePartitionDiagnose(const DescribeTablePartitionDiagnoseRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeTablePartitionDiagnoseOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeTablePartitionDiagnoseOutcome(DescribeTablePartitionDiagnoseResult(outcome.result()));
|
||||
else
|
||||
return DescribeTablePartitionDiagnoseOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeTablePartitionDiagnoseAsync(const DescribeTablePartitionDiagnoseRequest& request, const DescribeTablePartitionDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeTablePartitionDiagnose(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeTablePartitionDiagnoseOutcomeCallable AdbClient::describeTablePartitionDiagnoseCallable(const DescribeTablePartitionDiagnoseRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeTablePartitionDiagnoseOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeTablePartitionDiagnose(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeTablesOutcome AdbClient::describeTables(const DescribeTablesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1239,6 +1275,42 @@ AdbClient::ModifyAccountDescriptionOutcomeCallable AdbClient::modifyAccountDescr
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::ModifyAuditLogConfigOutcome AdbClient::modifyAuditLogConfig(const ModifyAuditLogConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyAuditLogConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyAuditLogConfigOutcome(ModifyAuditLogConfigResult(outcome.result()));
|
||||
else
|
||||
return ModifyAuditLogConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::modifyAuditLogConfigAsync(const ModifyAuditLogConfigRequest& request, const ModifyAuditLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyAuditLogConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::ModifyAuditLogConfigOutcomeCallable AdbClient::modifyAuditLogConfigCallable(const ModifyAuditLogConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyAuditLogConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyAuditLogConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::ModifyAutoRenewAttributeOutcome AdbClient::modifyAutoRenewAttribute(const ModifyAutoRenewAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -60,6 +60,17 @@ void CreateDBClusterRequest::setClientToken(const std::string& clientToken)
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getStorageType()const
|
||||
{
|
||||
return storageType_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setStorageType(const std::string& storageType)
|
||||
{
|
||||
storageType_ = storageType;
|
||||
setParameter("StorageType", storageType);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -71,6 +82,39 @@ void CreateDBClusterRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getStorageResource()const
|
||||
{
|
||||
return storageResource_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setStorageResource(const std::string& storageResource)
|
||||
{
|
||||
storageResource_ = storageResource;
|
||||
setParameter("StorageResource", storageResource);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -214,6 +258,17 @@ void CreateDBClusterRequest::setDBNodeStorage(const std::string& dBNodeStorage)
|
||||
setParameter("DBNodeStorage", dBNodeStorage);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getExecutorCount()const
|
||||
{
|
||||
return executorCount_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setExecutorCount(const std::string& executorCount)
|
||||
{
|
||||
executorCount_ = executorCount;
|
||||
setParameter("ExecutorCount", executorCount);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getVPCId()const
|
||||
{
|
||||
return vPCId_;
|
||||
@@ -236,6 +291,17 @@ void CreateDBClusterRequest::setZoneId(const std::string& zoneId)
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getComputeResource()const
|
||||
{
|
||||
return computeResource_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setComputeResource(const std::string& computeResource)
|
||||
{
|
||||
computeResource_ = computeResource;
|
||||
setParameter("ComputeResource", computeResource);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
|
||||
@@ -43,9 +43,16 @@ void CreateDBClusterResult::parse(const std::string &payload)
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDBClusterResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string CreateDBClusterResult::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
|
||||
106
adb/src/model/DescribeAuditLogConfigRequest.cc
Normal file
106
adb/src/model/DescribeAuditLogConfigRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeAuditLogConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeAuditLogConfigRequest;
|
||||
|
||||
DescribeAuditLogConfigRequest::DescribeAuditLogConfigRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeAuditLogConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAuditLogConfigRequest::~DescribeAuditLogConfigRequest()
|
||||
{}
|
||||
|
||||
long DescribeAuditLogConfigRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeAuditLogConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
58
adb/src/model/DescribeAuditLogConfigResult.cc
Normal file
58
adb/src/model/DescribeAuditLogConfigResult.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/adb/model/DescribeAuditLogConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeAuditLogConfigResult::DescribeAuditLogConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAuditLogConfigResult::DescribeAuditLogConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAuditLogConfigResult::~DescribeAuditLogConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeAuditLogConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AuditLogStatus"].isNull())
|
||||
auditLogStatus_ = value["AuditLogStatus"].asString();
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigResult::getAuditLogStatus()const
|
||||
{
|
||||
return auditLogStatus_;
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigResult::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
227
adb/src/model/DescribeAuditLogRecordsRequest.cc
Normal file
227
adb/src/model/DescribeAuditLogRecordsRequest.cc
Normal file
@@ -0,0 +1,227 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeAuditLogRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeAuditLogRecordsRequest;
|
||||
|
||||
DescribeAuditLogRecordsRequest::DescribeAuditLogRecordsRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeAuditLogRecords")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAuditLogRecordsRequest::~DescribeAuditLogRecordsRequest()
|
||||
{}
|
||||
|
||||
long DescribeAuditLogRecordsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
int DescribeAuditLogRecordsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getHostAddress()const
|
||||
{
|
||||
return hostAddress_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setHostAddress(const std::string& hostAddress)
|
||||
{
|
||||
hostAddress_ = hostAddress;
|
||||
setParameter("HostAddress", hostAddress);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeAuditLogRecordsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getSqlType()const
|
||||
{
|
||||
return sqlType_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setSqlType(const std::string& sqlType)
|
||||
{
|
||||
sqlType_ = sqlType;
|
||||
setParameter("SqlType", sqlType);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getQueryKeyword()const
|
||||
{
|
||||
return queryKeyword_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setQueryKeyword(const std::string& queryKeyword)
|
||||
{
|
||||
queryKeyword_ = queryKeyword;
|
||||
setParameter("QueryKeyword", queryKeyword);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeAuditLogRecordsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getDBName()const
|
||||
{
|
||||
return dBName_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setDBName(const std::string& dBName)
|
||||
{
|
||||
dBName_ = dBName;
|
||||
setParameter("DBName", dBName);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getSucceed()const
|
||||
{
|
||||
return succeed_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setSucceed(const std::string& succeed)
|
||||
{
|
||||
succeed_ = succeed;
|
||||
setParameter("Succeed", succeed);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getUser()const
|
||||
{
|
||||
return user_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setUser(const std::string& user)
|
||||
{
|
||||
user_ = user;
|
||||
setParameter("User", user);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsRequest::getOrderType()const
|
||||
{
|
||||
return orderType_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogRecordsRequest::setOrderType(const std::string& orderType)
|
||||
{
|
||||
orderType_ = orderType;
|
||||
setParameter("OrderType", orderType);
|
||||
}
|
||||
|
||||
101
adb/src/model/DescribeAuditLogRecordsResult.cc
Normal file
101
adb/src/model/DescribeAuditLogRecordsResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeAuditLogRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeAuditLogRecordsResult::DescribeAuditLogRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAuditLogRecordsResult::DescribeAuditLogRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAuditLogRecordsResult::~DescribeAuditLogRecordsResult()
|
||||
{}
|
||||
|
||||
void DescribeAuditLogRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["SlowLogRecord"];
|
||||
for (auto valueItemsSlowLogRecord : allItemsNode)
|
||||
{
|
||||
SlowLogRecord itemsObject;
|
||||
if(!valueItemsSlowLogRecord["HostAddress"].isNull())
|
||||
itemsObject.hostAddress = valueItemsSlowLogRecord["HostAddress"].asString();
|
||||
if(!valueItemsSlowLogRecord["DBName"].isNull())
|
||||
itemsObject.dBName = valueItemsSlowLogRecord["DBName"].asString();
|
||||
if(!valueItemsSlowLogRecord["SQLText"].isNull())
|
||||
itemsObject.sQLText = valueItemsSlowLogRecord["SQLText"].asString();
|
||||
if(!valueItemsSlowLogRecord["SQLType"].isNull())
|
||||
itemsObject.sQLType = valueItemsSlowLogRecord["SQLType"].asString();
|
||||
if(!valueItemsSlowLogRecord["ConnId"].isNull())
|
||||
itemsObject.connId = valueItemsSlowLogRecord["ConnId"].asString();
|
||||
if(!valueItemsSlowLogRecord["ExecuteTime"].isNull())
|
||||
itemsObject.executeTime = valueItemsSlowLogRecord["ExecuteTime"].asString();
|
||||
if(!valueItemsSlowLogRecord["Succeed"].isNull())
|
||||
itemsObject.succeed = valueItemsSlowLogRecord["Succeed"].asString();
|
||||
if(!valueItemsSlowLogRecord["TotalTime"].isNull())
|
||||
itemsObject.totalTime = valueItemsSlowLogRecord["TotalTime"].asString();
|
||||
if(!valueItemsSlowLogRecord["ProcessID"].isNull())
|
||||
itemsObject.processID = valueItemsSlowLogRecord["ProcessID"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = value["PageSize"].asString();
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogRecordsResult::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAuditLogRecordsResult::SlowLogRecord> DescribeAuditLogRecordsResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
@@ -60,6 +60,17 @@ void DescribeAutoRenewAttributeRequest::setAccessKeyId(const std::string& access
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeAutoRenewAttributeRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeAutoRenewAttributeRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeAutoRenewAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
@@ -45,39 +45,74 @@ void DescribeAvailableResourceResult::parse(const std::string &payload)
|
||||
AvailableZone availableZoneListObject;
|
||||
if(!valueAvailableZoneListAvailableZone["ZoneId"].isNull())
|
||||
availableZoneListObject.zoneId = valueAvailableZoneListAvailableZone["ZoneId"].asString();
|
||||
auto allSupportedSerialListNode = allAvailableZoneListNode["SupportedSerialList"]["SupportedSerial"];
|
||||
for (auto allAvailableZoneListNodeSupportedSerialListSupportedSerial : allSupportedSerialListNode)
|
||||
auto allSupportedModeNode = allAvailableZoneListNode["SupportedMode"]["SupportedModeItem"];
|
||||
for (auto allAvailableZoneListNodeSupportedModeSupportedModeItem : allSupportedModeNode)
|
||||
{
|
||||
AvailableZone::SupportedSerial supportedSerialListObject;
|
||||
if(!allAvailableZoneListNodeSupportedSerialListSupportedSerial["Serial"].isNull())
|
||||
supportedSerialListObject.serial = allAvailableZoneListNodeSupportedSerialListSupportedSerial["Serial"].asString();
|
||||
auto allSupportedInstanceClassListNode = allSupportedSerialListNode["SupportedInstanceClassList"]["SupportedInstanceClass"];
|
||||
for (auto allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass : allSupportedInstanceClassListNode)
|
||||
AvailableZone::SupportedModeItem supportedModeObject;
|
||||
if(!allAvailableZoneListNodeSupportedModeSupportedModeItem["Mode"].isNull())
|
||||
supportedModeObject.mode = allAvailableZoneListNodeSupportedModeSupportedModeItem["Mode"].asString();
|
||||
auto allSupportedSerialListNode = allSupportedModeNode["SupportedSerialList"]["SupportedSerialListItem"];
|
||||
for (auto allSupportedModeNodeSupportedSerialListSupportedSerialListItem : allSupportedSerialListNode)
|
||||
{
|
||||
AvailableZone::SupportedSerial::SupportedInstanceClass supportedInstanceClassListObject;
|
||||
if(!allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].isNull())
|
||||
supportedInstanceClassListObject.instanceClass = allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].asString();
|
||||
if(!allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["Tips"].isNull())
|
||||
supportedInstanceClassListObject.tips = allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["Tips"].asString();
|
||||
auto allSupportedNodeCountListNode = allSupportedInstanceClassListNode["SupportedNodeCountList"]["SupportedNodeCount"];
|
||||
for (auto allSupportedInstanceClassListNodeSupportedNodeCountListSupportedNodeCount : allSupportedNodeCountListNode)
|
||||
AvailableZone::SupportedModeItem::SupportedSerialListItem supportedSerialListObject;
|
||||
if(!allSupportedModeNodeSupportedSerialListSupportedSerialListItem["Serial"].isNull())
|
||||
supportedSerialListObject.serial = allSupportedModeNodeSupportedSerialListSupportedSerialListItem["Serial"].asString();
|
||||
auto allSupportedFlexibleResourceNode = allSupportedSerialListNode["SupportedFlexibleResource"]["SupportedFlexibleResourceItem"];
|
||||
for (auto allSupportedSerialListNodeSupportedFlexibleResourceSupportedFlexibleResourceItem : allSupportedFlexibleResourceNode)
|
||||
{
|
||||
AvailableZone::SupportedSerial::SupportedInstanceClass::SupportedNodeCount supportedNodeCountListObject;
|
||||
auto nodeCountNode = value["NodeCount"];
|
||||
if(!nodeCountNode["MinCount"].isNull())
|
||||
supportedNodeCountListObject.nodeCount.minCount = nodeCountNode["MinCount"].asString();
|
||||
if(!nodeCountNode["MaxCount"].isNull())
|
||||
supportedNodeCountListObject.nodeCount.maxCount = nodeCountNode["MaxCount"].asString();
|
||||
if(!nodeCountNode["Step"].isNull())
|
||||
supportedNodeCountListObject.nodeCount.step = nodeCountNode["Step"].asString();
|
||||
auto allStorageSize = value["StorageSize"]["StorageSize"];
|
||||
for (auto value : allStorageSize)
|
||||
supportedNodeCountListObject.storageSize.push_back(value.asString());
|
||||
supportedInstanceClassListObject.supportedNodeCountList.push_back(supportedNodeCountListObject);
|
||||
AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedFlexibleResourceItem supportedFlexibleResourceObject;
|
||||
if(!allSupportedSerialListNodeSupportedFlexibleResourceSupportedFlexibleResourceItem["StorageType"].isNull())
|
||||
supportedFlexibleResourceObject.storageType = allSupportedSerialListNodeSupportedFlexibleResourceSupportedFlexibleResourceItem["StorageType"].asString();
|
||||
auto allSupportedStorageResource = value["SupportedStorageResource"]["SupportedStorageResource"];
|
||||
for (auto value : allSupportedStorageResource)
|
||||
supportedFlexibleResourceObject.supportedStorageResource.push_back(value.asString());
|
||||
auto allSupportedComputeResource = value["SupportedComputeResource"]["SupportedComputeResource"];
|
||||
for (auto value : allSupportedComputeResource)
|
||||
supportedFlexibleResourceObject.supportedComputeResource.push_back(value.asString());
|
||||
supportedSerialListObject.supportedFlexibleResource.push_back(supportedFlexibleResourceObject);
|
||||
}
|
||||
supportedSerialListObject.supportedInstanceClassList.push_back(supportedInstanceClassListObject);
|
||||
auto allSupportedInstanceClassListNode = allSupportedSerialListNode["SupportedInstanceClassList"]["SupportedInstanceClass"];
|
||||
for (auto allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass : allSupportedInstanceClassListNode)
|
||||
{
|
||||
AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedInstanceClass supportedInstanceClassListObject;
|
||||
if(!allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].isNull())
|
||||
supportedInstanceClassListObject.instanceClass = allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].asString();
|
||||
if(!allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["Tips"].isNull())
|
||||
supportedInstanceClassListObject.tips = allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["Tips"].asString();
|
||||
auto allSupportedNodeCountListNode = allSupportedInstanceClassListNode["SupportedNodeCountList"]["SupportedNodeCount"];
|
||||
for (auto allSupportedInstanceClassListNodeSupportedNodeCountListSupportedNodeCount : allSupportedNodeCountListNode)
|
||||
{
|
||||
AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedInstanceClass::SupportedNodeCount supportedNodeCountListObject;
|
||||
auto nodeCountNode = value["NodeCount"];
|
||||
if(!nodeCountNode["MinCount"].isNull())
|
||||
supportedNodeCountListObject.nodeCount.minCount = nodeCountNode["MinCount"].asString();
|
||||
if(!nodeCountNode["MaxCount"].isNull())
|
||||
supportedNodeCountListObject.nodeCount.maxCount = nodeCountNode["MaxCount"].asString();
|
||||
if(!nodeCountNode["Step"].isNull())
|
||||
supportedNodeCountListObject.nodeCount.step = nodeCountNode["Step"].asString();
|
||||
auto allStorageSize = value["StorageSize"]["StorageSize"];
|
||||
for (auto value : allStorageSize)
|
||||
supportedNodeCountListObject.storageSize.push_back(value.asString());
|
||||
supportedInstanceClassListObject.supportedNodeCountList.push_back(supportedNodeCountListObject);
|
||||
}
|
||||
auto allSupportedExecutorListNode = allSupportedInstanceClassListNode["SupportedExecutorList"]["SupportedExecutor"];
|
||||
for (auto allSupportedInstanceClassListNodeSupportedExecutorListSupportedExecutor : allSupportedExecutorListNode)
|
||||
{
|
||||
AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedInstanceClass::SupportedExecutor supportedExecutorListObject;
|
||||
auto nodeCount1Node = value["NodeCount"];
|
||||
if(!nodeCount1Node["MinCount"].isNull())
|
||||
supportedExecutorListObject.nodeCount1.minCount = nodeCount1Node["MinCount"].asString();
|
||||
if(!nodeCount1Node["MaxCount"].isNull())
|
||||
supportedExecutorListObject.nodeCount1.maxCount = nodeCount1Node["MaxCount"].asString();
|
||||
if(!nodeCount1Node["Step"].isNull())
|
||||
supportedExecutorListObject.nodeCount1.step = nodeCount1Node["Step"].asString();
|
||||
supportedInstanceClassListObject.supportedExecutorList.push_back(supportedExecutorListObject);
|
||||
}
|
||||
supportedSerialListObject.supportedInstanceClassList.push_back(supportedInstanceClassListObject);
|
||||
}
|
||||
supportedModeObject.supportedSerialList.push_back(supportedSerialListObject);
|
||||
}
|
||||
availableZoneListObject.supportedSerialList.push_back(supportedSerialListObject);
|
||||
availableZoneListObject.supportedMode.push_back(supportedModeObject);
|
||||
}
|
||||
availableZoneList_.push_back(availableZoneListObject);
|
||||
}
|
||||
|
||||
@@ -99,6 +99,18 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload)
|
||||
itemsObject.rdsInstanceId = valueItemsDBCluster["RdsInstanceId"].asString();
|
||||
if(!valueItemsDBCluster["DtsJobId"].isNull())
|
||||
itemsObject.dtsJobId = valueItemsDBCluster["DtsJobId"].asString();
|
||||
if(!valueItemsDBCluster["ExecutorCount"].isNull())
|
||||
itemsObject.executorCount = valueItemsDBCluster["ExecutorCount"].asString();
|
||||
if(!valueItemsDBCluster["DiskType"].isNull())
|
||||
itemsObject.diskType = valueItemsDBCluster["DiskType"].asString();
|
||||
if(!valueItemsDBCluster["ComputeResource"].isNull())
|
||||
itemsObject.computeResource = valueItemsDBCluster["ComputeResource"].asString();
|
||||
if(!valueItemsDBCluster["StorageResource"].isNull())
|
||||
itemsObject.storageResource = valueItemsDBCluster["StorageResource"].asString();
|
||||
if(!valueItemsDBCluster["Mode"].isNull())
|
||||
itemsObject.mode = valueItemsDBCluster["Mode"].asString();
|
||||
if(!valueItemsDBCluster["ResourceGroupId"].isNull())
|
||||
itemsObject.resourceGroupId = valueItemsDBCluster["ResourceGroupId"].asString();
|
||||
auto allTagsNode = allItemsNode["Tags"]["Tag"];
|
||||
for (auto allItemsNodeTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -82,6 +82,17 @@ void DescribeDBClustersRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClustersRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeDBClustersRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClustersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
@@ -81,6 +81,34 @@ void DescribeDBClustersResult::parse(const std::string &payload)
|
||||
itemsObject.rdsInstanceId = valueItemsDBCluster["RdsInstanceId"].asString();
|
||||
if(!valueItemsDBCluster["DtsJobId"].isNull())
|
||||
itemsObject.dtsJobId = valueItemsDBCluster["DtsJobId"].asString();
|
||||
if(!valueItemsDBCluster["ExecutorCount"].isNull())
|
||||
itemsObject.executorCount = valueItemsDBCluster["ExecutorCount"].asString();
|
||||
if(!valueItemsDBCluster["DiskType"].isNull())
|
||||
itemsObject.diskType = valueItemsDBCluster["DiskType"].asString();
|
||||
if(!valueItemsDBCluster["VPCCloudInstanceId"].isNull())
|
||||
itemsObject.vPCCloudInstanceId = valueItemsDBCluster["VPCCloudInstanceId"].asString();
|
||||
if(!valueItemsDBCluster["Engine"].isNull())
|
||||
itemsObject.engine = valueItemsDBCluster["Engine"].asString();
|
||||
if(!valueItemsDBCluster["DBClusterNetworkType"].isNull())
|
||||
itemsObject.dBClusterNetworkType = valueItemsDBCluster["DBClusterNetworkType"].asString();
|
||||
if(!valueItemsDBCluster["VPCId"].isNull())
|
||||
itemsObject.vPCId = valueItemsDBCluster["VPCId"].asString();
|
||||
if(!valueItemsDBCluster["VSwitchId"].isNull())
|
||||
itemsObject.vSwitchId = valueItemsDBCluster["VSwitchId"].asString();
|
||||
if(!valueItemsDBCluster["ZoneId"].isNull())
|
||||
itemsObject.zoneId = valueItemsDBCluster["ZoneId"].asString();
|
||||
if(!valueItemsDBCluster["ConnectionString"].isNull())
|
||||
itemsObject.connectionString = valueItemsDBCluster["ConnectionString"].asString();
|
||||
if(!valueItemsDBCluster["Port"].isNull())
|
||||
itemsObject.port = valueItemsDBCluster["Port"].asString();
|
||||
if(!valueItemsDBCluster["ComputeResource"].isNull())
|
||||
itemsObject.computeResource = valueItemsDBCluster["ComputeResource"].asString();
|
||||
if(!valueItemsDBCluster["StorageResource"].isNull())
|
||||
itemsObject.storageResource = valueItemsDBCluster["StorageResource"].asString();
|
||||
if(!valueItemsDBCluster["Mode"].isNull())
|
||||
itemsObject.mode = valueItemsDBCluster["Mode"].asString();
|
||||
if(!valueItemsDBCluster["ResourceGroupId"].isNull())
|
||||
itemsObject.resourceGroupId = valueItemsDBCluster["ResourceGroupId"].asString();
|
||||
auto allTagsNode = allItemsNode["Tags"]["Tag"];
|
||||
for (auto allItemsNodeTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeLogStoreKeysRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeLogStoreKeysRequest;
|
||||
|
||||
DescribeLogStoreKeysRequest::DescribeLogStoreKeysRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeLogStoreKeys")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLogStoreKeysRequest::~DescribeLogStoreKeysRequest()
|
||||
{}
|
||||
|
||||
long DescribeLogStoreKeysRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreKeysRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeLogStoreKeysRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreKeysRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeLogStoreKeysRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreKeysRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeLogStoreKeysRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreKeysRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string DescribeLogStoreKeysRequest::getLogStoreName()const
|
||||
{
|
||||
return logStoreName_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreKeysRequest::setLogStoreName(const std::string& logStoreName)
|
||||
{
|
||||
logStoreName_ = logStoreName;
|
||||
setParameter("LogStoreName", logStoreName);
|
||||
}
|
||||
|
||||
std::string DescribeLogStoreKeysRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreKeysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeLogStoreKeysRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreKeysRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeLogStoreKeysRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLogStoreKeysRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeLogStoreKeysResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeLogStoreKeysResult::DescribeLogStoreKeysResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLogStoreKeysResult::DescribeLogStoreKeysResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLogStoreKeysResult::~DescribeLogStoreKeysResult()
|
||||
{}
|
||||
|
||||
void DescribeLogStoreKeysResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLogStoreKeys = value["LogStoreKeys"]["LogStoreKey"];
|
||||
for (const auto &item : allLogStoreKeys)
|
||||
logStoreKeys_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeLogStoreKeysResult::getLogStoreKeys()const
|
||||
{
|
||||
return logStoreKeys_;
|
||||
}
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeLoghubDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeLoghubDetailRequest;
|
||||
|
||||
DescribeLoghubDetailRequest::DescribeLoghubDetailRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeLoghubDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLoghubDetailRequest::~DescribeLoghubDetailRequest()
|
||||
{}
|
||||
|
||||
long DescribeLoghubDetailRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeLoghubDetailRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeLoghubDetailRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeLoghubDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeLoghubDetailRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeLoghubDetailRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeLoghubDetailRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void DescribeLoghubDetailRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string DescribeLoghubDetailRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeLoghubDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeLoghubDetailRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeLoghubDetailRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeLoghubDetailRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLoghubDetailRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeLoghubDetailRequest::getExportName()const
|
||||
{
|
||||
return exportName_;
|
||||
}
|
||||
|
||||
void DescribeLoghubDetailRequest::setExportName(const std::string& exportName)
|
||||
{
|
||||
exportName_ = exportName;
|
||||
setParameter("ExportName", exportName);
|
||||
}
|
||||
|
||||
@@ -1,96 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeLoghubDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeLoghubDetailResult::DescribeLoghubDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLoghubDetailResult::DescribeLoghubDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLoghubDetailResult::~DescribeLoghubDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeLoghubDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto loghubInfoNode = value["LoghubInfo"];
|
||||
if(!loghubInfoNode["ProjectName"].isNull())
|
||||
loghubInfo_.projectName = loghubInfoNode["ProjectName"].asString();
|
||||
if(!loghubInfoNode["LogStoreName"].isNull())
|
||||
loghubInfo_.logStoreName = loghubInfoNode["LogStoreName"].asString();
|
||||
if(!loghubInfoNode["DeliverName"].isNull())
|
||||
loghubInfo_.deliverName = loghubInfoNode["DeliverName"].asString();
|
||||
if(!loghubInfoNode["DeliverTime"].isNull())
|
||||
loghubInfo_.deliverTime = loghubInfoNode["DeliverTime"].asString();
|
||||
if(!loghubInfoNode["DomainUrl"].isNull())
|
||||
loghubInfo_.domainUrl = loghubInfoNode["DomainUrl"].asString();
|
||||
if(!loghubInfoNode["Description"].isNull())
|
||||
loghubInfo_.description = loghubInfoNode["Description"].asString();
|
||||
if(!loghubInfoNode["SchemaName"].isNull())
|
||||
loghubInfo_.schemaName = loghubInfoNode["SchemaName"].asString();
|
||||
if(!loghubInfoNode["TableName"].isNull())
|
||||
loghubInfo_.tableName = loghubInfoNode["TableName"].asString();
|
||||
if(!loghubInfoNode["RegionId"].isNull())
|
||||
loghubInfo_.regionId = loghubInfoNode["RegionId"].asString();
|
||||
if(!loghubInfoNode["ZoneId"].isNull())
|
||||
loghubInfo_.zoneId = loghubInfoNode["ZoneId"].asString();
|
||||
if(!loghubInfoNode["UserName"].isNull())
|
||||
loghubInfo_.userName = loghubInfoNode["UserName"].asString();
|
||||
if(!loghubInfoNode["Password"].isNull())
|
||||
loghubInfo_.password = loghubInfoNode["Password"].asString();
|
||||
if(!loghubInfoNode["FilterDirtyData"].isNull())
|
||||
loghubInfo_.filterDirtyData = loghubInfoNode["FilterDirtyData"].asString() == "true";
|
||||
if(!loghubInfoNode["AccessKey"].isNull())
|
||||
loghubInfo_.accessKey = loghubInfoNode["AccessKey"].asString();
|
||||
if(!loghubInfoNode["AccessSecret"].isNull())
|
||||
loghubInfo_.accessSecret = loghubInfoNode["AccessSecret"].asString();
|
||||
if(!loghubInfoNode["DBType"].isNull())
|
||||
loghubInfo_.dBType = loghubInfoNode["DBType"].asString();
|
||||
if(!loghubInfoNode["DBClusterId"].isNull())
|
||||
loghubInfo_.dBClusterId = loghubInfoNode["DBClusterId"].asString();
|
||||
auto allLogHubStoresNode = loghubInfoNode["LogHubStores"]["LogHubStore"];
|
||||
for (auto loghubInfoNodeLogHubStoresLogHubStore : allLogHubStoresNode)
|
||||
{
|
||||
LoghubInfo::LogHubStore logHubStoreObject;
|
||||
if(!loghubInfoNodeLogHubStoresLogHubStore["LogKey"].isNull())
|
||||
logHubStoreObject.logKey = loghubInfoNodeLogHubStoresLogHubStore["LogKey"].asString();
|
||||
if(!loghubInfoNodeLogHubStoresLogHubStore["FieldKey"].isNull())
|
||||
logHubStoreObject.fieldKey = loghubInfoNodeLogHubStoresLogHubStore["FieldKey"].asString();
|
||||
if(!loghubInfoNodeLogHubStoresLogHubStore["Type"].isNull())
|
||||
logHubStoreObject.type = loghubInfoNodeLogHubStoresLogHubStore["Type"].asString();
|
||||
loghubInfo_.logHubStores.push_back(logHubStoreObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeLoghubDetailResult::LoghubInfo DescribeLoghubDetailResult::getLoghubInfo()const
|
||||
{
|
||||
return loghubInfo_;
|
||||
}
|
||||
|
||||
128
adb/src/model/DescribeTablePartitionDiagnoseRequest.cc
Normal file
128
adb/src/model/DescribeTablePartitionDiagnoseRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeTablePartitionDiagnoseRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeTablePartitionDiagnoseRequest;
|
||||
|
||||
DescribeTablePartitionDiagnoseRequest::DescribeTablePartitionDiagnoseRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeTablePartitionDiagnose")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTablePartitionDiagnoseRequest::~DescribeTablePartitionDiagnoseRequest()
|
||||
{}
|
||||
|
||||
long DescribeTablePartitionDiagnoseRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeTablePartitionDiagnoseRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeTablePartitionDiagnoseRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeTablePartitionDiagnoseRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeTablePartitionDiagnoseRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeTablePartitionDiagnoseRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeTablePartitionDiagnoseRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeTablePartitionDiagnoseRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeTablePartitionDiagnoseRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeTablePartitionDiagnoseRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
105
adb/src/model/DescribeTablePartitionDiagnoseResult.cc
Normal file
105
adb/src/model/DescribeTablePartitionDiagnoseResult.cc
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeTablePartitionDiagnoseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeTablePartitionDiagnoseResult::DescribeTablePartitionDiagnoseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTablePartitionDiagnoseResult::DescribeTablePartitionDiagnoseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTablePartitionDiagnoseResult::~DescribeTablePartitionDiagnoseResult()
|
||||
{}
|
||||
|
||||
void DescribeTablePartitionDiagnoseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["TablePartitionDiagnose"];
|
||||
for (auto valueItemsTablePartitionDiagnose : allItemsNode)
|
||||
{
|
||||
TablePartitionDiagnose itemsObject;
|
||||
if(!valueItemsTablePartitionDiagnose["SchemaName"].isNull())
|
||||
itemsObject.schemaName = valueItemsTablePartitionDiagnose["SchemaName"].asString();
|
||||
if(!valueItemsTablePartitionDiagnose["TableName"].isNull())
|
||||
itemsObject.tableName = valueItemsTablePartitionDiagnose["TableName"].asString();
|
||||
if(!valueItemsTablePartitionDiagnose["PartitionNumber"].isNull())
|
||||
itemsObject.partitionNumber = std::stoi(valueItemsTablePartitionDiagnose["PartitionNumber"].asString());
|
||||
if(!valueItemsTablePartitionDiagnose["PartitionDetail"].isNull())
|
||||
itemsObject.partitionDetail = valueItemsTablePartitionDiagnose["PartitionDetail"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = std::stoi(value["DBClusterId"].asString());
|
||||
if(!value["SuggestMinRecordsPerPartition"].isNull())
|
||||
suggestMinRecordsPerPartition_ = std::stol(value["SuggestMinRecordsPerPartition"].asString());
|
||||
if(!value["SuggestMaxRecordsPerPartition"].isNull())
|
||||
suggestMaxRecordsPerPartition_ = std::stol(value["SuggestMaxRecordsPerPartition"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeTablePartitionDiagnoseResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeTablePartitionDiagnoseResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeTablePartitionDiagnoseResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeTablePartitionDiagnoseResult::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
long DescribeTablePartitionDiagnoseResult::getSuggestMaxRecordsPerPartition()const
|
||||
{
|
||||
return suggestMaxRecordsPerPartition_;
|
||||
}
|
||||
|
||||
std::vector<DescribeTablePartitionDiagnoseResult::TablePartitionDiagnose> DescribeTablePartitionDiagnoseResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
long DescribeTablePartitionDiagnoseResult::getSuggestMinRecordsPerPartition()const
|
||||
{
|
||||
return suggestMinRecordsPerPartition_;
|
||||
}
|
||||
|
||||
117
adb/src/model/ModifyAuditLogConfigRequest.cc
Normal file
117
adb/src/model/ModifyAuditLogConfigRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/ModifyAuditLogConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::ModifyAuditLogConfigRequest;
|
||||
|
||||
ModifyAuditLogConfigRequest::ModifyAuditLogConfigRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "ModifyAuditLogConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyAuditLogConfigRequest::~ModifyAuditLogConfigRequest()
|
||||
{}
|
||||
|
||||
long ModifyAuditLogConfigRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyAuditLogConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyAuditLogConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyAuditLogConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyAuditLogConfigRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyAuditLogConfigRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyAuditLogConfigRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyAuditLogConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyAuditLogConfigRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void ModifyAuditLogConfigRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string ModifyAuditLogConfigRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyAuditLogConfigRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyAuditLogConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyAuditLogConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyAuditLogConfigRequest::getAuditLogStatus()const
|
||||
{
|
||||
return auditLogStatus_;
|
||||
}
|
||||
|
||||
void ModifyAuditLogConfigRequest::setAuditLogStatus(const std::string& auditLogStatus)
|
||||
{
|
||||
auditLogStatus_ = auditLogStatus;
|
||||
setParameter("AuditLogStatus", auditLogStatus);
|
||||
}
|
||||
|
||||
@@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/ModifyAuditLogConfigResult.h>
|
||||
#include <alibabacloud/adb/model/ModifyAuditLogConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::R_kvstore;
|
||||
using namespace AlibabaCloud::R_kvstore::Model;
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
ModifyAuditLogConfigResult::ModifyAuditLogConfigResult() :
|
||||
ServiceResult()
|
||||
@@ -49,6 +49,17 @@ void ModifyDBClusterRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getStorageResource()const
|
||||
{
|
||||
return storageResource_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setStorageResource(const std::string& storageResource)
|
||||
{
|
||||
storageResource_ = storageResource;
|
||||
setParameter("StorageResource", storageResource);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getDBNodeClass()const
|
||||
{
|
||||
return dBNodeClass_;
|
||||
@@ -60,6 +71,17 @@ void ModifyDBClusterRequest::setDBNodeClass(const std::string& dBNodeClass)
|
||||
setParameter("DBNodeClass", dBNodeClass);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
@@ -126,6 +148,17 @@ void ModifyDBClusterRequest::setDBNodeStorage(const std::string& dBNodeStorage)
|
||||
setParameter("DBNodeStorage", dBNodeStorage);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getExecutorCount()const
|
||||
{
|
||||
return executorCount_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setExecutorCount(const std::string& executorCount)
|
||||
{
|
||||
executorCount_ = executorCount;
|
||||
setParameter("ExecutorCount", executorCount);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getModifyType()const
|
||||
{
|
||||
return modifyType_;
|
||||
@@ -137,3 +170,14 @@ void ModifyDBClusterRequest::setModifyType(const std::string& modifyType)
|
||||
setParameter("ModifyType", modifyType);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getComputeResource()const
|
||||
{
|
||||
return computeResource_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setComputeResource(const std::string& computeResource)
|
||||
{
|
||||
computeResource_ = computeResource;
|
||||
setParameter("ComputeResource", computeResource);
|
||||
}
|
||||
|
||||
|
||||
342
airec/CMakeLists.txt
Normal file
342
airec/CMakeLists.txt
Normal file
@@ -0,0 +1,342 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT 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(airec_public_header
|
||||
include/alibabacloud/airec/AirecClient.h
|
||||
include/alibabacloud/airec/AirecExport.h )
|
||||
|
||||
set(airec_public_header_model
|
||||
include/alibabacloud/airec/model/AttachDatasetRequest.h
|
||||
include/alibabacloud/airec/model/AttachDatasetResult.h
|
||||
include/alibabacloud/airec/model/CreateDiversifyRequest.h
|
||||
include/alibabacloud/airec/model/CreateDiversifyResult.h
|
||||
include/alibabacloud/airec/model/CreateInstanceRequest.h
|
||||
include/alibabacloud/airec/model/CreateInstanceResult.h
|
||||
include/alibabacloud/airec/model/CreateMixRequest.h
|
||||
include/alibabacloud/airec/model/CreateMixResult.h
|
||||
include/alibabacloud/airec/model/CreateRuleRequest.h
|
||||
include/alibabacloud/airec/model/CreateRuleResult.h
|
||||
include/alibabacloud/airec/model/CreateSceneRequest.h
|
||||
include/alibabacloud/airec/model/CreateSceneResult.h
|
||||
include/alibabacloud/airec/model/DeleteDataSetRequest.h
|
||||
include/alibabacloud/airec/model/DeleteDataSetResult.h
|
||||
include/alibabacloud/airec/model/DeleteDiversifyRequest.h
|
||||
include/alibabacloud/airec/model/DeleteDiversifyResult.h
|
||||
include/alibabacloud/airec/model/DeleteMixRequest.h
|
||||
include/alibabacloud/airec/model/DeleteMixResult.h
|
||||
include/alibabacloud/airec/model/DeleteSceneRequest.h
|
||||
include/alibabacloud/airec/model/DeleteSceneResult.h
|
||||
include/alibabacloud/airec/model/DescribeDataSetMessageRequest.h
|
||||
include/alibabacloud/airec/model/DescribeDataSetMessageResult.h
|
||||
include/alibabacloud/airec/model/DescribeDataSetReportRequest.h
|
||||
include/alibabacloud/airec/model/DescribeDataSetReportResult.h
|
||||
include/alibabacloud/airec/model/DescribeDiversifyRequest.h
|
||||
include/alibabacloud/airec/model/DescribeDiversifyResult.h
|
||||
include/alibabacloud/airec/model/DescribeExposureSettingsRequest.h
|
||||
include/alibabacloud/airec/model/DescribeExposureSettingsResult.h
|
||||
include/alibabacloud/airec/model/DescribeInstanceRequest.h
|
||||
include/alibabacloud/airec/model/DescribeInstanceResult.h
|
||||
include/alibabacloud/airec/model/DescribeMixRequest.h
|
||||
include/alibabacloud/airec/model/DescribeMixResult.h
|
||||
include/alibabacloud/airec/model/DescribeQuotaRequest.h
|
||||
include/alibabacloud/airec/model/DescribeQuotaResult.h
|
||||
include/alibabacloud/airec/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/airec/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/airec/model/DescribeRuleRequest.h
|
||||
include/alibabacloud/airec/model/DescribeRuleResult.h
|
||||
include/alibabacloud/airec/model/DescribeSceneRequest.h
|
||||
include/alibabacloud/airec/model/DescribeSceneResult.h
|
||||
include/alibabacloud/airec/model/DescribeSceneThroughputRequest.h
|
||||
include/alibabacloud/airec/model/DescribeSceneThroughputResult.h
|
||||
include/alibabacloud/airec/model/DescribeSyncReportDetailRequest.h
|
||||
include/alibabacloud/airec/model/DescribeSyncReportDetailResult.h
|
||||
include/alibabacloud/airec/model/DescribeSyncReportOutliersRequest.h
|
||||
include/alibabacloud/airec/model/DescribeSyncReportOutliersResult.h
|
||||
include/alibabacloud/airec/model/DescribeUserMetricsRequest.h
|
||||
include/alibabacloud/airec/model/DescribeUserMetricsResult.h
|
||||
include/alibabacloud/airec/model/DowngradeInstanceRequest.h
|
||||
include/alibabacloud/airec/model/DowngradeInstanceResult.h
|
||||
include/alibabacloud/airec/model/ListDashboardRequest.h
|
||||
include/alibabacloud/airec/model/ListDashboardResult.h
|
||||
include/alibabacloud/airec/model/ListDashboardDetailsRequest.h
|
||||
include/alibabacloud/airec/model/ListDashboardDetailsResult.h
|
||||
include/alibabacloud/airec/model/ListDashboardDetailsFlowsRequest.h
|
||||
include/alibabacloud/airec/model/ListDashboardDetailsFlowsResult.h
|
||||
include/alibabacloud/airec/model/ListDashboardMetricsRequest.h
|
||||
include/alibabacloud/airec/model/ListDashboardMetricsResult.h
|
||||
include/alibabacloud/airec/model/ListDashboardMetricsFlowsRequest.h
|
||||
include/alibabacloud/airec/model/ListDashboardMetricsFlowsResult.h
|
||||
include/alibabacloud/airec/model/ListDashboardParametersRequest.h
|
||||
include/alibabacloud/airec/model/ListDashboardParametersResult.h
|
||||
include/alibabacloud/airec/model/ListDashboardUidRequest.h
|
||||
include/alibabacloud/airec/model/ListDashboardUidResult.h
|
||||
include/alibabacloud/airec/model/ListDataSetRequest.h
|
||||
include/alibabacloud/airec/model/ListDataSetResult.h
|
||||
include/alibabacloud/airec/model/ListDataSourceRequest.h
|
||||
include/alibabacloud/airec/model/ListDataSourceResult.h
|
||||
include/alibabacloud/airec/model/ListDiversifyRequest.h
|
||||
include/alibabacloud/airec/model/ListDiversifyResult.h
|
||||
include/alibabacloud/airec/model/ListInstanceRequest.h
|
||||
include/alibabacloud/airec/model/ListInstanceResult.h
|
||||
include/alibabacloud/airec/model/ListInstanceTaskRequest.h
|
||||
include/alibabacloud/airec/model/ListInstanceTaskResult.h
|
||||
include/alibabacloud/airec/model/ListMixRequest.h
|
||||
include/alibabacloud/airec/model/ListMixResult.h
|
||||
include/alibabacloud/airec/model/ListRuleConditionsRequest.h
|
||||
include/alibabacloud/airec/model/ListRuleConditionsResult.h
|
||||
include/alibabacloud/airec/model/ListRuleTasksRequest.h
|
||||
include/alibabacloud/airec/model/ListRuleTasksResult.h
|
||||
include/alibabacloud/airec/model/ListRulesRequest.h
|
||||
include/alibabacloud/airec/model/ListRulesResult.h
|
||||
include/alibabacloud/airec/model/ListSceneItemsRequest.h
|
||||
include/alibabacloud/airec/model/ListSceneItemsResult.h
|
||||
include/alibabacloud/airec/model/ListScenesRequest.h
|
||||
include/alibabacloud/airec/model/ListScenesResult.h
|
||||
include/alibabacloud/airec/model/ListUmengAppkeysRequest.h
|
||||
include/alibabacloud/airec/model/ListUmengAppkeysResult.h
|
||||
include/alibabacloud/airec/model/ModifyDataSourceRequest.h
|
||||
include/alibabacloud/airec/model/ModifyDataSourceResult.h
|
||||
include/alibabacloud/airec/model/ModifyDiversifyRequest.h
|
||||
include/alibabacloud/airec/model/ModifyDiversifyResult.h
|
||||
include/alibabacloud/airec/model/ModifyExposureSettingsRequest.h
|
||||
include/alibabacloud/airec/model/ModifyExposureSettingsResult.h
|
||||
include/alibabacloud/airec/model/ModifyInstanceRequest.h
|
||||
include/alibabacloud/airec/model/ModifyInstanceResult.h
|
||||
include/alibabacloud/airec/model/ModifyMixRequest.h
|
||||
include/alibabacloud/airec/model/ModifyMixResult.h
|
||||
include/alibabacloud/airec/model/ModifyRuleRequest.h
|
||||
include/alibabacloud/airec/model/ModifyRuleResult.h
|
||||
include/alibabacloud/airec/model/ModifySceneRequest.h
|
||||
include/alibabacloud/airec/model/ModifySceneResult.h
|
||||
include/alibabacloud/airec/model/PublishRuleRequest.h
|
||||
include/alibabacloud/airec/model/PublishRuleResult.h
|
||||
include/alibabacloud/airec/model/PushDocumentRequest.h
|
||||
include/alibabacloud/airec/model/PushDocumentResult.h
|
||||
include/alibabacloud/airec/model/PushInterventionRequest.h
|
||||
include/alibabacloud/airec/model/PushInterventionResult.h
|
||||
include/alibabacloud/airec/model/QueryDataMessageRequest.h
|
||||
include/alibabacloud/airec/model/QueryDataMessageResult.h
|
||||
include/alibabacloud/airec/model/QueryExceptionHistoryRequest.h
|
||||
include/alibabacloud/airec/model/QueryExceptionHistoryResult.h
|
||||
include/alibabacloud/airec/model/QueryRawDataRequest.h
|
||||
include/alibabacloud/airec/model/QueryRawDataResult.h
|
||||
include/alibabacloud/airec/model/QuerySingleAggregationReportRequest.h
|
||||
include/alibabacloud/airec/model/QuerySingleAggregationReportResult.h
|
||||
include/alibabacloud/airec/model/QuerySingleReportRequest.h
|
||||
include/alibabacloud/airec/model/QuerySingleReportResult.h
|
||||
include/alibabacloud/airec/model/QuerySyncReportAggregationRequest.h
|
||||
include/alibabacloud/airec/model/QuerySyncReportAggregationResult.h
|
||||
include/alibabacloud/airec/model/RecommendRequest.h
|
||||
include/alibabacloud/airec/model/RecommendResult.h
|
||||
include/alibabacloud/airec/model/RunInstanceRequest.h
|
||||
include/alibabacloud/airec/model/RunInstanceResult.h
|
||||
include/alibabacloud/airec/model/StopDataSetRequest.h
|
||||
include/alibabacloud/airec/model/StopDataSetResult.h
|
||||
include/alibabacloud/airec/model/UpgradeInstanceRequest.h
|
||||
include/alibabacloud/airec/model/UpgradeInstanceResult.h
|
||||
include/alibabacloud/airec/model/ValidateInstanceRequest.h
|
||||
include/alibabacloud/airec/model/ValidateInstanceResult.h )
|
||||
|
||||
set(airec_src
|
||||
src/AirecClient.cc
|
||||
src/model/AttachDatasetRequest.cc
|
||||
src/model/AttachDatasetResult.cc
|
||||
src/model/CreateDiversifyRequest.cc
|
||||
src/model/CreateDiversifyResult.cc
|
||||
src/model/CreateInstanceRequest.cc
|
||||
src/model/CreateInstanceResult.cc
|
||||
src/model/CreateMixRequest.cc
|
||||
src/model/CreateMixResult.cc
|
||||
src/model/CreateRuleRequest.cc
|
||||
src/model/CreateRuleResult.cc
|
||||
src/model/CreateSceneRequest.cc
|
||||
src/model/CreateSceneResult.cc
|
||||
src/model/DeleteDataSetRequest.cc
|
||||
src/model/DeleteDataSetResult.cc
|
||||
src/model/DeleteDiversifyRequest.cc
|
||||
src/model/DeleteDiversifyResult.cc
|
||||
src/model/DeleteMixRequest.cc
|
||||
src/model/DeleteMixResult.cc
|
||||
src/model/DeleteSceneRequest.cc
|
||||
src/model/DeleteSceneResult.cc
|
||||
src/model/DescribeDataSetMessageRequest.cc
|
||||
src/model/DescribeDataSetMessageResult.cc
|
||||
src/model/DescribeDataSetReportRequest.cc
|
||||
src/model/DescribeDataSetReportResult.cc
|
||||
src/model/DescribeDiversifyRequest.cc
|
||||
src/model/DescribeDiversifyResult.cc
|
||||
src/model/DescribeExposureSettingsRequest.cc
|
||||
src/model/DescribeExposureSettingsResult.cc
|
||||
src/model/DescribeInstanceRequest.cc
|
||||
src/model/DescribeInstanceResult.cc
|
||||
src/model/DescribeMixRequest.cc
|
||||
src/model/DescribeMixResult.cc
|
||||
src/model/DescribeQuotaRequest.cc
|
||||
src/model/DescribeQuotaResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DescribeRuleRequest.cc
|
||||
src/model/DescribeRuleResult.cc
|
||||
src/model/DescribeSceneRequest.cc
|
||||
src/model/DescribeSceneResult.cc
|
||||
src/model/DescribeSceneThroughputRequest.cc
|
||||
src/model/DescribeSceneThroughputResult.cc
|
||||
src/model/DescribeSyncReportDetailRequest.cc
|
||||
src/model/DescribeSyncReportDetailResult.cc
|
||||
src/model/DescribeSyncReportOutliersRequest.cc
|
||||
src/model/DescribeSyncReportOutliersResult.cc
|
||||
src/model/DescribeUserMetricsRequest.cc
|
||||
src/model/DescribeUserMetricsResult.cc
|
||||
src/model/DowngradeInstanceRequest.cc
|
||||
src/model/DowngradeInstanceResult.cc
|
||||
src/model/ListDashboardRequest.cc
|
||||
src/model/ListDashboardResult.cc
|
||||
src/model/ListDashboardDetailsRequest.cc
|
||||
src/model/ListDashboardDetailsResult.cc
|
||||
src/model/ListDashboardDetailsFlowsRequest.cc
|
||||
src/model/ListDashboardDetailsFlowsResult.cc
|
||||
src/model/ListDashboardMetricsRequest.cc
|
||||
src/model/ListDashboardMetricsResult.cc
|
||||
src/model/ListDashboardMetricsFlowsRequest.cc
|
||||
src/model/ListDashboardMetricsFlowsResult.cc
|
||||
src/model/ListDashboardParametersRequest.cc
|
||||
src/model/ListDashboardParametersResult.cc
|
||||
src/model/ListDashboardUidRequest.cc
|
||||
src/model/ListDashboardUidResult.cc
|
||||
src/model/ListDataSetRequest.cc
|
||||
src/model/ListDataSetResult.cc
|
||||
src/model/ListDataSourceRequest.cc
|
||||
src/model/ListDataSourceResult.cc
|
||||
src/model/ListDiversifyRequest.cc
|
||||
src/model/ListDiversifyResult.cc
|
||||
src/model/ListInstanceRequest.cc
|
||||
src/model/ListInstanceResult.cc
|
||||
src/model/ListInstanceTaskRequest.cc
|
||||
src/model/ListInstanceTaskResult.cc
|
||||
src/model/ListMixRequest.cc
|
||||
src/model/ListMixResult.cc
|
||||
src/model/ListRuleConditionsRequest.cc
|
||||
src/model/ListRuleConditionsResult.cc
|
||||
src/model/ListRuleTasksRequest.cc
|
||||
src/model/ListRuleTasksResult.cc
|
||||
src/model/ListRulesRequest.cc
|
||||
src/model/ListRulesResult.cc
|
||||
src/model/ListSceneItemsRequest.cc
|
||||
src/model/ListSceneItemsResult.cc
|
||||
src/model/ListScenesRequest.cc
|
||||
src/model/ListScenesResult.cc
|
||||
src/model/ListUmengAppkeysRequest.cc
|
||||
src/model/ListUmengAppkeysResult.cc
|
||||
src/model/ModifyDataSourceRequest.cc
|
||||
src/model/ModifyDataSourceResult.cc
|
||||
src/model/ModifyDiversifyRequest.cc
|
||||
src/model/ModifyDiversifyResult.cc
|
||||
src/model/ModifyExposureSettingsRequest.cc
|
||||
src/model/ModifyExposureSettingsResult.cc
|
||||
src/model/ModifyInstanceRequest.cc
|
||||
src/model/ModifyInstanceResult.cc
|
||||
src/model/ModifyMixRequest.cc
|
||||
src/model/ModifyMixResult.cc
|
||||
src/model/ModifyRuleRequest.cc
|
||||
src/model/ModifyRuleResult.cc
|
||||
src/model/ModifySceneRequest.cc
|
||||
src/model/ModifySceneResult.cc
|
||||
src/model/PublishRuleRequest.cc
|
||||
src/model/PublishRuleResult.cc
|
||||
src/model/PushDocumentRequest.cc
|
||||
src/model/PushDocumentResult.cc
|
||||
src/model/PushInterventionRequest.cc
|
||||
src/model/PushInterventionResult.cc
|
||||
src/model/QueryDataMessageRequest.cc
|
||||
src/model/QueryDataMessageResult.cc
|
||||
src/model/QueryExceptionHistoryRequest.cc
|
||||
src/model/QueryExceptionHistoryResult.cc
|
||||
src/model/QueryRawDataRequest.cc
|
||||
src/model/QueryRawDataResult.cc
|
||||
src/model/QuerySingleAggregationReportRequest.cc
|
||||
src/model/QuerySingleAggregationReportResult.cc
|
||||
src/model/QuerySingleReportRequest.cc
|
||||
src/model/QuerySingleReportResult.cc
|
||||
src/model/QuerySyncReportAggregationRequest.cc
|
||||
src/model/QuerySyncReportAggregationResult.cc
|
||||
src/model/RecommendRequest.cc
|
||||
src/model/RecommendResult.cc
|
||||
src/model/RunInstanceRequest.cc
|
||||
src/model/RunInstanceResult.cc
|
||||
src/model/StopDataSetRequest.cc
|
||||
src/model/StopDataSetResult.cc
|
||||
src/model/UpgradeInstanceRequest.cc
|
||||
src/model/UpgradeInstanceResult.cc
|
||||
src/model/ValidateInstanceRequest.cc
|
||||
src/model/ValidateInstanceResult.cc )
|
||||
|
||||
add_library(airec ${LIB_TYPE}
|
||||
${airec_public_header}
|
||||
${airec_public_header_model}
|
||||
${airec_src})
|
||||
|
||||
set_target_properties(airec
|
||||
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}airec
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(airec
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_AIREC_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(airec
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(airec
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(airec
|
||||
jsoncpp)
|
||||
target_include_directories(airec
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(airec
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(airec
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(airec
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(airec
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${airec_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/airec)
|
||||
install(FILES ${airec_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/airec/model)
|
||||
install(TARGETS airec
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
566
airec/include/alibabacloud/airec/AirecClient.h
Normal file
566
airec/include/alibabacloud/airec/AirecClient.h
Normal file
@@ -0,0 +1,566 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_AIREC_AIRECCLIENT_H_
|
||||
#define ALIBABACLOUD_AIREC_AIRECCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RoaServiceClient.h>
|
||||
#include "AirecExport.h"
|
||||
#include "model/AttachDatasetRequest.h"
|
||||
#include "model/AttachDatasetResult.h"
|
||||
#include "model/CreateDiversifyRequest.h"
|
||||
#include "model/CreateDiversifyResult.h"
|
||||
#include "model/CreateInstanceRequest.h"
|
||||
#include "model/CreateInstanceResult.h"
|
||||
#include "model/CreateMixRequest.h"
|
||||
#include "model/CreateMixResult.h"
|
||||
#include "model/CreateRuleRequest.h"
|
||||
#include "model/CreateRuleResult.h"
|
||||
#include "model/CreateSceneRequest.h"
|
||||
#include "model/CreateSceneResult.h"
|
||||
#include "model/DeleteDataSetRequest.h"
|
||||
#include "model/DeleteDataSetResult.h"
|
||||
#include "model/DeleteDiversifyRequest.h"
|
||||
#include "model/DeleteDiversifyResult.h"
|
||||
#include "model/DeleteMixRequest.h"
|
||||
#include "model/DeleteMixResult.h"
|
||||
#include "model/DeleteSceneRequest.h"
|
||||
#include "model/DeleteSceneResult.h"
|
||||
#include "model/DescribeDataSetMessageRequest.h"
|
||||
#include "model/DescribeDataSetMessageResult.h"
|
||||
#include "model/DescribeDataSetReportRequest.h"
|
||||
#include "model/DescribeDataSetReportResult.h"
|
||||
#include "model/DescribeDiversifyRequest.h"
|
||||
#include "model/DescribeDiversifyResult.h"
|
||||
#include "model/DescribeExposureSettingsRequest.h"
|
||||
#include "model/DescribeExposureSettingsResult.h"
|
||||
#include "model/DescribeInstanceRequest.h"
|
||||
#include "model/DescribeInstanceResult.h"
|
||||
#include "model/DescribeMixRequest.h"
|
||||
#include "model/DescribeMixResult.h"
|
||||
#include "model/DescribeQuotaRequest.h"
|
||||
#include "model/DescribeQuotaResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeRuleRequest.h"
|
||||
#include "model/DescribeRuleResult.h"
|
||||
#include "model/DescribeSceneRequest.h"
|
||||
#include "model/DescribeSceneResult.h"
|
||||
#include "model/DescribeSceneThroughputRequest.h"
|
||||
#include "model/DescribeSceneThroughputResult.h"
|
||||
#include "model/DescribeSyncReportDetailRequest.h"
|
||||
#include "model/DescribeSyncReportDetailResult.h"
|
||||
#include "model/DescribeSyncReportOutliersRequest.h"
|
||||
#include "model/DescribeSyncReportOutliersResult.h"
|
||||
#include "model/DescribeUserMetricsRequest.h"
|
||||
#include "model/DescribeUserMetricsResult.h"
|
||||
#include "model/DowngradeInstanceRequest.h"
|
||||
#include "model/DowngradeInstanceResult.h"
|
||||
#include "model/ListDashboardRequest.h"
|
||||
#include "model/ListDashboardResult.h"
|
||||
#include "model/ListDashboardDetailsRequest.h"
|
||||
#include "model/ListDashboardDetailsResult.h"
|
||||
#include "model/ListDashboardDetailsFlowsRequest.h"
|
||||
#include "model/ListDashboardDetailsFlowsResult.h"
|
||||
#include "model/ListDashboardMetricsRequest.h"
|
||||
#include "model/ListDashboardMetricsResult.h"
|
||||
#include "model/ListDashboardMetricsFlowsRequest.h"
|
||||
#include "model/ListDashboardMetricsFlowsResult.h"
|
||||
#include "model/ListDashboardParametersRequest.h"
|
||||
#include "model/ListDashboardParametersResult.h"
|
||||
#include "model/ListDashboardUidRequest.h"
|
||||
#include "model/ListDashboardUidResult.h"
|
||||
#include "model/ListDataSetRequest.h"
|
||||
#include "model/ListDataSetResult.h"
|
||||
#include "model/ListDataSourceRequest.h"
|
||||
#include "model/ListDataSourceResult.h"
|
||||
#include "model/ListDiversifyRequest.h"
|
||||
#include "model/ListDiversifyResult.h"
|
||||
#include "model/ListInstanceRequest.h"
|
||||
#include "model/ListInstanceResult.h"
|
||||
#include "model/ListInstanceTaskRequest.h"
|
||||
#include "model/ListInstanceTaskResult.h"
|
||||
#include "model/ListMixRequest.h"
|
||||
#include "model/ListMixResult.h"
|
||||
#include "model/ListRuleConditionsRequest.h"
|
||||
#include "model/ListRuleConditionsResult.h"
|
||||
#include "model/ListRuleTasksRequest.h"
|
||||
#include "model/ListRuleTasksResult.h"
|
||||
#include "model/ListRulesRequest.h"
|
||||
#include "model/ListRulesResult.h"
|
||||
#include "model/ListSceneItemsRequest.h"
|
||||
#include "model/ListSceneItemsResult.h"
|
||||
#include "model/ListScenesRequest.h"
|
||||
#include "model/ListScenesResult.h"
|
||||
#include "model/ListUmengAppkeysRequest.h"
|
||||
#include "model/ListUmengAppkeysResult.h"
|
||||
#include "model/ModifyDataSourceRequest.h"
|
||||
#include "model/ModifyDataSourceResult.h"
|
||||
#include "model/ModifyDiversifyRequest.h"
|
||||
#include "model/ModifyDiversifyResult.h"
|
||||
#include "model/ModifyExposureSettingsRequest.h"
|
||||
#include "model/ModifyExposureSettingsResult.h"
|
||||
#include "model/ModifyInstanceRequest.h"
|
||||
#include "model/ModifyInstanceResult.h"
|
||||
#include "model/ModifyMixRequest.h"
|
||||
#include "model/ModifyMixResult.h"
|
||||
#include "model/ModifyRuleRequest.h"
|
||||
#include "model/ModifyRuleResult.h"
|
||||
#include "model/ModifySceneRequest.h"
|
||||
#include "model/ModifySceneResult.h"
|
||||
#include "model/PublishRuleRequest.h"
|
||||
#include "model/PublishRuleResult.h"
|
||||
#include "model/PushDocumentRequest.h"
|
||||
#include "model/PushDocumentResult.h"
|
||||
#include "model/PushInterventionRequest.h"
|
||||
#include "model/PushInterventionResult.h"
|
||||
#include "model/QueryDataMessageRequest.h"
|
||||
#include "model/QueryDataMessageResult.h"
|
||||
#include "model/QueryExceptionHistoryRequest.h"
|
||||
#include "model/QueryExceptionHistoryResult.h"
|
||||
#include "model/QueryRawDataRequest.h"
|
||||
#include "model/QueryRawDataResult.h"
|
||||
#include "model/QuerySingleAggregationReportRequest.h"
|
||||
#include "model/QuerySingleAggregationReportResult.h"
|
||||
#include "model/QuerySingleReportRequest.h"
|
||||
#include "model/QuerySingleReportResult.h"
|
||||
#include "model/QuerySyncReportAggregationRequest.h"
|
||||
#include "model/QuerySyncReportAggregationResult.h"
|
||||
#include "model/RecommendRequest.h"
|
||||
#include "model/RecommendResult.h"
|
||||
#include "model/RunInstanceRequest.h"
|
||||
#include "model/RunInstanceResult.h"
|
||||
#include "model/StopDataSetRequest.h"
|
||||
#include "model/StopDataSetResult.h"
|
||||
#include "model/UpgradeInstanceRequest.h"
|
||||
#include "model/UpgradeInstanceResult.h"
|
||||
#include "model/ValidateInstanceRequest.h"
|
||||
#include "model/ValidateInstanceResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Airec
|
||||
{
|
||||
class ALIBABACLOUD_AIREC_EXPORT AirecClient : public RoaServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AttachDatasetResult> AttachDatasetOutcome;
|
||||
typedef std::future<AttachDatasetOutcome> AttachDatasetOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::AttachDatasetRequest&, const AttachDatasetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachDatasetAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDiversifyResult> CreateDiversifyOutcome;
|
||||
typedef std::future<CreateDiversifyOutcome> CreateDiversifyOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::CreateDiversifyRequest&, const CreateDiversifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDiversifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateInstanceResult> CreateInstanceOutcome;
|
||||
typedef std::future<CreateInstanceOutcome> CreateInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::CreateInstanceRequest&, const CreateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateMixResult> CreateMixOutcome;
|
||||
typedef std::future<CreateMixOutcome> CreateMixOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::CreateMixRequest&, const CreateMixOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMixAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateRuleResult> CreateRuleOutcome;
|
||||
typedef std::future<CreateRuleOutcome> CreateRuleOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::CreateRuleRequest&, const CreateRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateSceneResult> CreateSceneOutcome;
|
||||
typedef std::future<CreateSceneOutcome> CreateSceneOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::CreateSceneRequest&, const CreateSceneOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSceneAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDataSetResult> DeleteDataSetOutcome;
|
||||
typedef std::future<DeleteDataSetOutcome> DeleteDataSetOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DeleteDataSetRequest&, const DeleteDataSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDataSetAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDiversifyResult> DeleteDiversifyOutcome;
|
||||
typedef std::future<DeleteDiversifyOutcome> DeleteDiversifyOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DeleteDiversifyRequest&, const DeleteDiversifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDiversifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteMixResult> DeleteMixOutcome;
|
||||
typedef std::future<DeleteMixOutcome> DeleteMixOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DeleteMixRequest&, const DeleteMixOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMixAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteSceneResult> DeleteSceneOutcome;
|
||||
typedef std::future<DeleteSceneOutcome> DeleteSceneOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DeleteSceneRequest&, const DeleteSceneOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSceneAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDataSetMessageResult> DescribeDataSetMessageOutcome;
|
||||
typedef std::future<DescribeDataSetMessageOutcome> DescribeDataSetMessageOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DescribeDataSetMessageRequest&, const DescribeDataSetMessageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDataSetMessageAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDataSetReportResult> DescribeDataSetReportOutcome;
|
||||
typedef std::future<DescribeDataSetReportOutcome> DescribeDataSetReportOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DescribeDataSetReportRequest&, const DescribeDataSetReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDataSetReportAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDiversifyResult> DescribeDiversifyOutcome;
|
||||
typedef std::future<DescribeDiversifyOutcome> DescribeDiversifyOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DescribeDiversifyRequest&, const DescribeDiversifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDiversifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeExposureSettingsResult> DescribeExposureSettingsOutcome;
|
||||
typedef std::future<DescribeExposureSettingsOutcome> DescribeExposureSettingsOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DescribeExposureSettingsRequest&, const DescribeExposureSettingsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeExposureSettingsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeInstanceResult> DescribeInstanceOutcome;
|
||||
typedef std::future<DescribeInstanceOutcome> DescribeInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DescribeInstanceRequest&, const DescribeInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeMixResult> DescribeMixOutcome;
|
||||
typedef std::future<DescribeMixOutcome> DescribeMixOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DescribeMixRequest&, const DescribeMixOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMixAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeQuotaResult> DescribeQuotaOutcome;
|
||||
typedef std::future<DescribeQuotaOutcome> DescribeQuotaOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DescribeQuotaRequest&, const DescribeQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeQuotaAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRuleResult> DescribeRuleOutcome;
|
||||
typedef std::future<DescribeRuleOutcome> DescribeRuleOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DescribeRuleRequest&, const DescribeRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSceneResult> DescribeSceneOutcome;
|
||||
typedef std::future<DescribeSceneOutcome> DescribeSceneOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DescribeSceneRequest&, const DescribeSceneOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSceneAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSceneThroughputResult> DescribeSceneThroughputOutcome;
|
||||
typedef std::future<DescribeSceneThroughputOutcome> DescribeSceneThroughputOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DescribeSceneThroughputRequest&, const DescribeSceneThroughputOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSceneThroughputAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSyncReportDetailResult> DescribeSyncReportDetailOutcome;
|
||||
typedef std::future<DescribeSyncReportDetailOutcome> DescribeSyncReportDetailOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DescribeSyncReportDetailRequest&, const DescribeSyncReportDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSyncReportDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSyncReportOutliersResult> DescribeSyncReportOutliersOutcome;
|
||||
typedef std::future<DescribeSyncReportOutliersOutcome> DescribeSyncReportOutliersOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DescribeSyncReportOutliersRequest&, const DescribeSyncReportOutliersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSyncReportOutliersAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeUserMetricsResult> DescribeUserMetricsOutcome;
|
||||
typedef std::future<DescribeUserMetricsOutcome> DescribeUserMetricsOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DescribeUserMetricsRequest&, const DescribeUserMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserMetricsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DowngradeInstanceResult> DowngradeInstanceOutcome;
|
||||
typedef std::future<DowngradeInstanceOutcome> DowngradeInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::DowngradeInstanceRequest&, const DowngradeInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DowngradeInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDashboardResult> ListDashboardOutcome;
|
||||
typedef std::future<ListDashboardOutcome> ListDashboardOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListDashboardRequest&, const ListDashboardOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDashboardAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDashboardDetailsResult> ListDashboardDetailsOutcome;
|
||||
typedef std::future<ListDashboardDetailsOutcome> ListDashboardDetailsOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListDashboardDetailsRequest&, const ListDashboardDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDashboardDetailsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDashboardDetailsFlowsResult> ListDashboardDetailsFlowsOutcome;
|
||||
typedef std::future<ListDashboardDetailsFlowsOutcome> ListDashboardDetailsFlowsOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListDashboardDetailsFlowsRequest&, const ListDashboardDetailsFlowsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDashboardDetailsFlowsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDashboardMetricsResult> ListDashboardMetricsOutcome;
|
||||
typedef std::future<ListDashboardMetricsOutcome> ListDashboardMetricsOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListDashboardMetricsRequest&, const ListDashboardMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDashboardMetricsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDashboardMetricsFlowsResult> ListDashboardMetricsFlowsOutcome;
|
||||
typedef std::future<ListDashboardMetricsFlowsOutcome> ListDashboardMetricsFlowsOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListDashboardMetricsFlowsRequest&, const ListDashboardMetricsFlowsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDashboardMetricsFlowsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDashboardParametersResult> ListDashboardParametersOutcome;
|
||||
typedef std::future<ListDashboardParametersOutcome> ListDashboardParametersOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListDashboardParametersRequest&, const ListDashboardParametersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDashboardParametersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDashboardUidResult> ListDashboardUidOutcome;
|
||||
typedef std::future<ListDashboardUidOutcome> ListDashboardUidOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListDashboardUidRequest&, const ListDashboardUidOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDashboardUidAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDataSetResult> ListDataSetOutcome;
|
||||
typedef std::future<ListDataSetOutcome> ListDataSetOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListDataSetRequest&, const ListDataSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDataSetAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDataSourceResult> ListDataSourceOutcome;
|
||||
typedef std::future<ListDataSourceOutcome> ListDataSourceOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListDataSourceRequest&, const ListDataSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDataSourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDiversifyResult> ListDiversifyOutcome;
|
||||
typedef std::future<ListDiversifyOutcome> ListDiversifyOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListDiversifyRequest&, const ListDiversifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDiversifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListInstanceResult> ListInstanceOutcome;
|
||||
typedef std::future<ListInstanceOutcome> ListInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListInstanceRequest&, const ListInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListInstanceTaskResult> ListInstanceTaskOutcome;
|
||||
typedef std::future<ListInstanceTaskOutcome> ListInstanceTaskOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListInstanceTaskRequest&, const ListInstanceTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstanceTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListMixResult> ListMixOutcome;
|
||||
typedef std::future<ListMixOutcome> ListMixOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListMixRequest&, const ListMixOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMixAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRuleConditionsResult> ListRuleConditionsOutcome;
|
||||
typedef std::future<ListRuleConditionsOutcome> ListRuleConditionsOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListRuleConditionsRequest&, const ListRuleConditionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRuleConditionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRuleTasksResult> ListRuleTasksOutcome;
|
||||
typedef std::future<ListRuleTasksOutcome> ListRuleTasksOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListRuleTasksRequest&, const ListRuleTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRuleTasksAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRulesResult> ListRulesOutcome;
|
||||
typedef std::future<ListRulesOutcome> ListRulesOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListRulesRequest&, const ListRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListSceneItemsResult> ListSceneItemsOutcome;
|
||||
typedef std::future<ListSceneItemsOutcome> ListSceneItemsOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListSceneItemsRequest&, const ListSceneItemsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSceneItemsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListScenesResult> ListScenesOutcome;
|
||||
typedef std::future<ListScenesOutcome> ListScenesOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListScenesRequest&, const ListScenesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListScenesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListUmengAppkeysResult> ListUmengAppkeysOutcome;
|
||||
typedef std::future<ListUmengAppkeysOutcome> ListUmengAppkeysOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ListUmengAppkeysRequest&, const ListUmengAppkeysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUmengAppkeysAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDataSourceResult> ModifyDataSourceOutcome;
|
||||
typedef std::future<ModifyDataSourceOutcome> ModifyDataSourceOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ModifyDataSourceRequest&, const ModifyDataSourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDataSourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDiversifyResult> ModifyDiversifyOutcome;
|
||||
typedef std::future<ModifyDiversifyOutcome> ModifyDiversifyOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ModifyDiversifyRequest&, const ModifyDiversifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDiversifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyExposureSettingsResult> ModifyExposureSettingsOutcome;
|
||||
typedef std::future<ModifyExposureSettingsOutcome> ModifyExposureSettingsOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ModifyExposureSettingsRequest&, const ModifyExposureSettingsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyExposureSettingsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyInstanceResult> ModifyInstanceOutcome;
|
||||
typedef std::future<ModifyInstanceOutcome> ModifyInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ModifyInstanceRequest&, const ModifyInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyMixResult> ModifyMixOutcome;
|
||||
typedef std::future<ModifyMixOutcome> ModifyMixOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ModifyMixRequest&, const ModifyMixOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyMixAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyRuleResult> ModifyRuleOutcome;
|
||||
typedef std::future<ModifyRuleOutcome> ModifyRuleOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ModifyRuleRequest&, const ModifyRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifySceneResult> ModifySceneOutcome;
|
||||
typedef std::future<ModifySceneOutcome> ModifySceneOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ModifySceneRequest&, const ModifySceneOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySceneAsyncHandler;
|
||||
typedef Outcome<Error, Model::PublishRuleResult> PublishRuleOutcome;
|
||||
typedef std::future<PublishRuleOutcome> PublishRuleOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::PublishRuleRequest&, const PublishRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PublishRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::PushDocumentResult> PushDocumentOutcome;
|
||||
typedef std::future<PushDocumentOutcome> PushDocumentOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::PushDocumentRequest&, const PushDocumentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PushDocumentAsyncHandler;
|
||||
typedef Outcome<Error, Model::PushInterventionResult> PushInterventionOutcome;
|
||||
typedef std::future<PushInterventionOutcome> PushInterventionOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::PushInterventionRequest&, const PushInterventionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PushInterventionAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryDataMessageResult> QueryDataMessageOutcome;
|
||||
typedef std::future<QueryDataMessageOutcome> QueryDataMessageOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::QueryDataMessageRequest&, const QueryDataMessageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDataMessageAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryExceptionHistoryResult> QueryExceptionHistoryOutcome;
|
||||
typedef std::future<QueryExceptionHistoryOutcome> QueryExceptionHistoryOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::QueryExceptionHistoryRequest&, const QueryExceptionHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryExceptionHistoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryRawDataResult> QueryRawDataOutcome;
|
||||
typedef std::future<QueryRawDataOutcome> QueryRawDataOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::QueryRawDataRequest&, const QueryRawDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryRawDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::QuerySingleAggregationReportResult> QuerySingleAggregationReportOutcome;
|
||||
typedef std::future<QuerySingleAggregationReportOutcome> QuerySingleAggregationReportOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::QuerySingleAggregationReportRequest&, const QuerySingleAggregationReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySingleAggregationReportAsyncHandler;
|
||||
typedef Outcome<Error, Model::QuerySingleReportResult> QuerySingleReportOutcome;
|
||||
typedef std::future<QuerySingleReportOutcome> QuerySingleReportOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::QuerySingleReportRequest&, const QuerySingleReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySingleReportAsyncHandler;
|
||||
typedef Outcome<Error, Model::QuerySyncReportAggregationResult> QuerySyncReportAggregationOutcome;
|
||||
typedef std::future<QuerySyncReportAggregationOutcome> QuerySyncReportAggregationOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::QuerySyncReportAggregationRequest&, const QuerySyncReportAggregationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySyncReportAggregationAsyncHandler;
|
||||
typedef Outcome<Error, Model::RecommendResult> RecommendOutcome;
|
||||
typedef std::future<RecommendOutcome> RecommendOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::RecommendRequest&, const RecommendOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecommendAsyncHandler;
|
||||
typedef Outcome<Error, Model::RunInstanceResult> RunInstanceOutcome;
|
||||
typedef std::future<RunInstanceOutcome> RunInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::RunInstanceRequest&, const RunInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RunInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopDataSetResult> StopDataSetOutcome;
|
||||
typedef std::future<StopDataSetOutcome> StopDataSetOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::StopDataSetRequest&, const StopDataSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopDataSetAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpgradeInstanceResult> UpgradeInstanceOutcome;
|
||||
typedef std::future<UpgradeInstanceOutcome> UpgradeInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::UpgradeInstanceRequest&, const UpgradeInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ValidateInstanceResult> ValidateInstanceOutcome;
|
||||
typedef std::future<ValidateInstanceOutcome> ValidateInstanceOutcomeCallable;
|
||||
typedef std::function<void(const AirecClient*, const Model::ValidateInstanceRequest&, const ValidateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ValidateInstanceAsyncHandler;
|
||||
|
||||
AirecClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
AirecClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
AirecClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~AirecClient();
|
||||
AttachDatasetOutcome attachDataset(const Model::AttachDatasetRequest &request)const;
|
||||
void attachDatasetAsync(const Model::AttachDatasetRequest& request, const AttachDatasetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AttachDatasetOutcomeCallable attachDatasetCallable(const Model::AttachDatasetRequest& request) const;
|
||||
CreateDiversifyOutcome createDiversify(const Model::CreateDiversifyRequest &request)const;
|
||||
void createDiversifyAsync(const Model::CreateDiversifyRequest& request, const CreateDiversifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDiversifyOutcomeCallable createDiversifyCallable(const Model::CreateDiversifyRequest& request) const;
|
||||
CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const;
|
||||
void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const;
|
||||
CreateMixOutcome createMix(const Model::CreateMixRequest &request)const;
|
||||
void createMixAsync(const Model::CreateMixRequest& request, const CreateMixAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMixOutcomeCallable createMixCallable(const Model::CreateMixRequest& request) const;
|
||||
CreateRuleOutcome createRule(const Model::CreateRuleRequest &request)const;
|
||||
void createRuleAsync(const Model::CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateRuleOutcomeCallable createRuleCallable(const Model::CreateRuleRequest& request) const;
|
||||
CreateSceneOutcome createScene(const Model::CreateSceneRequest &request)const;
|
||||
void createSceneAsync(const Model::CreateSceneRequest& request, const CreateSceneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateSceneOutcomeCallable createSceneCallable(const Model::CreateSceneRequest& request) const;
|
||||
DeleteDataSetOutcome deleteDataSet(const Model::DeleteDataSetRequest &request)const;
|
||||
void deleteDataSetAsync(const Model::DeleteDataSetRequest& request, const DeleteDataSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDataSetOutcomeCallable deleteDataSetCallable(const Model::DeleteDataSetRequest& request) const;
|
||||
DeleteDiversifyOutcome deleteDiversify(const Model::DeleteDiversifyRequest &request)const;
|
||||
void deleteDiversifyAsync(const Model::DeleteDiversifyRequest& request, const DeleteDiversifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDiversifyOutcomeCallable deleteDiversifyCallable(const Model::DeleteDiversifyRequest& request) const;
|
||||
DeleteMixOutcome deleteMix(const Model::DeleteMixRequest &request)const;
|
||||
void deleteMixAsync(const Model::DeleteMixRequest& request, const DeleteMixAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteMixOutcomeCallable deleteMixCallable(const Model::DeleteMixRequest& request) const;
|
||||
DeleteSceneOutcome deleteScene(const Model::DeleteSceneRequest &request)const;
|
||||
void deleteSceneAsync(const Model::DeleteSceneRequest& request, const DeleteSceneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteSceneOutcomeCallable deleteSceneCallable(const Model::DeleteSceneRequest& request) const;
|
||||
DescribeDataSetMessageOutcome describeDataSetMessage(const Model::DescribeDataSetMessageRequest &request)const;
|
||||
void describeDataSetMessageAsync(const Model::DescribeDataSetMessageRequest& request, const DescribeDataSetMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDataSetMessageOutcomeCallable describeDataSetMessageCallable(const Model::DescribeDataSetMessageRequest& request) const;
|
||||
DescribeDataSetReportOutcome describeDataSetReport(const Model::DescribeDataSetReportRequest &request)const;
|
||||
void describeDataSetReportAsync(const Model::DescribeDataSetReportRequest& request, const DescribeDataSetReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDataSetReportOutcomeCallable describeDataSetReportCallable(const Model::DescribeDataSetReportRequest& request) const;
|
||||
DescribeDiversifyOutcome describeDiversify(const Model::DescribeDiversifyRequest &request)const;
|
||||
void describeDiversifyAsync(const Model::DescribeDiversifyRequest& request, const DescribeDiversifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDiversifyOutcomeCallable describeDiversifyCallable(const Model::DescribeDiversifyRequest& request) const;
|
||||
DescribeExposureSettingsOutcome describeExposureSettings(const Model::DescribeExposureSettingsRequest &request)const;
|
||||
void describeExposureSettingsAsync(const Model::DescribeExposureSettingsRequest& request, const DescribeExposureSettingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeExposureSettingsOutcomeCallable describeExposureSettingsCallable(const Model::DescribeExposureSettingsRequest& request) const;
|
||||
DescribeInstanceOutcome describeInstance(const Model::DescribeInstanceRequest &request)const;
|
||||
void describeInstanceAsync(const Model::DescribeInstanceRequest& request, const DescribeInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInstanceOutcomeCallable describeInstanceCallable(const Model::DescribeInstanceRequest& request) const;
|
||||
DescribeMixOutcome describeMix(const Model::DescribeMixRequest &request)const;
|
||||
void describeMixAsync(const Model::DescribeMixRequest& request, const DescribeMixAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeMixOutcomeCallable describeMixCallable(const Model::DescribeMixRequest& request) const;
|
||||
DescribeQuotaOutcome describeQuota(const Model::DescribeQuotaRequest &request)const;
|
||||
void describeQuotaAsync(const Model::DescribeQuotaRequest& request, const DescribeQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeQuotaOutcomeCallable describeQuotaCallable(const Model::DescribeQuotaRequest& 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;
|
||||
DescribeRuleOutcome describeRule(const Model::DescribeRuleRequest &request)const;
|
||||
void describeRuleAsync(const Model::DescribeRuleRequest& request, const DescribeRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRuleOutcomeCallable describeRuleCallable(const Model::DescribeRuleRequest& request) const;
|
||||
DescribeSceneOutcome describeScene(const Model::DescribeSceneRequest &request)const;
|
||||
void describeSceneAsync(const Model::DescribeSceneRequest& request, const DescribeSceneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSceneOutcomeCallable describeSceneCallable(const Model::DescribeSceneRequest& request) const;
|
||||
DescribeSceneThroughputOutcome describeSceneThroughput(const Model::DescribeSceneThroughputRequest &request)const;
|
||||
void describeSceneThroughputAsync(const Model::DescribeSceneThroughputRequest& request, const DescribeSceneThroughputAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSceneThroughputOutcomeCallable describeSceneThroughputCallable(const Model::DescribeSceneThroughputRequest& request) const;
|
||||
DescribeSyncReportDetailOutcome describeSyncReportDetail(const Model::DescribeSyncReportDetailRequest &request)const;
|
||||
void describeSyncReportDetailAsync(const Model::DescribeSyncReportDetailRequest& request, const DescribeSyncReportDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSyncReportDetailOutcomeCallable describeSyncReportDetailCallable(const Model::DescribeSyncReportDetailRequest& request) const;
|
||||
DescribeSyncReportOutliersOutcome describeSyncReportOutliers(const Model::DescribeSyncReportOutliersRequest &request)const;
|
||||
void describeSyncReportOutliersAsync(const Model::DescribeSyncReportOutliersRequest& request, const DescribeSyncReportOutliersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSyncReportOutliersOutcomeCallable describeSyncReportOutliersCallable(const Model::DescribeSyncReportOutliersRequest& request) const;
|
||||
DescribeUserMetricsOutcome describeUserMetrics(const Model::DescribeUserMetricsRequest &request)const;
|
||||
void describeUserMetricsAsync(const Model::DescribeUserMetricsRequest& request, const DescribeUserMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeUserMetricsOutcomeCallable describeUserMetricsCallable(const Model::DescribeUserMetricsRequest& request) const;
|
||||
DowngradeInstanceOutcome downgradeInstance(const Model::DowngradeInstanceRequest &request)const;
|
||||
void downgradeInstanceAsync(const Model::DowngradeInstanceRequest& request, const DowngradeInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DowngradeInstanceOutcomeCallable downgradeInstanceCallable(const Model::DowngradeInstanceRequest& request) const;
|
||||
ListDashboardOutcome listDashboard(const Model::ListDashboardRequest &request)const;
|
||||
void listDashboardAsync(const Model::ListDashboardRequest& request, const ListDashboardAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDashboardOutcomeCallable listDashboardCallable(const Model::ListDashboardRequest& request) const;
|
||||
ListDashboardDetailsOutcome listDashboardDetails(const Model::ListDashboardDetailsRequest &request)const;
|
||||
void listDashboardDetailsAsync(const Model::ListDashboardDetailsRequest& request, const ListDashboardDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDashboardDetailsOutcomeCallable listDashboardDetailsCallable(const Model::ListDashboardDetailsRequest& request) const;
|
||||
ListDashboardDetailsFlowsOutcome listDashboardDetailsFlows(const Model::ListDashboardDetailsFlowsRequest &request)const;
|
||||
void listDashboardDetailsFlowsAsync(const Model::ListDashboardDetailsFlowsRequest& request, const ListDashboardDetailsFlowsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDashboardDetailsFlowsOutcomeCallable listDashboardDetailsFlowsCallable(const Model::ListDashboardDetailsFlowsRequest& request) const;
|
||||
ListDashboardMetricsOutcome listDashboardMetrics(const Model::ListDashboardMetricsRequest &request)const;
|
||||
void listDashboardMetricsAsync(const Model::ListDashboardMetricsRequest& request, const ListDashboardMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDashboardMetricsOutcomeCallable listDashboardMetricsCallable(const Model::ListDashboardMetricsRequest& request) const;
|
||||
ListDashboardMetricsFlowsOutcome listDashboardMetricsFlows(const Model::ListDashboardMetricsFlowsRequest &request)const;
|
||||
void listDashboardMetricsFlowsAsync(const Model::ListDashboardMetricsFlowsRequest& request, const ListDashboardMetricsFlowsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDashboardMetricsFlowsOutcomeCallable listDashboardMetricsFlowsCallable(const Model::ListDashboardMetricsFlowsRequest& request) const;
|
||||
ListDashboardParametersOutcome listDashboardParameters(const Model::ListDashboardParametersRequest &request)const;
|
||||
void listDashboardParametersAsync(const Model::ListDashboardParametersRequest& request, const ListDashboardParametersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDashboardParametersOutcomeCallable listDashboardParametersCallable(const Model::ListDashboardParametersRequest& request) const;
|
||||
ListDashboardUidOutcome listDashboardUid(const Model::ListDashboardUidRequest &request)const;
|
||||
void listDashboardUidAsync(const Model::ListDashboardUidRequest& request, const ListDashboardUidAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDashboardUidOutcomeCallable listDashboardUidCallable(const Model::ListDashboardUidRequest& request) const;
|
||||
ListDataSetOutcome listDataSet(const Model::ListDataSetRequest &request)const;
|
||||
void listDataSetAsync(const Model::ListDataSetRequest& request, const ListDataSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDataSetOutcomeCallable listDataSetCallable(const Model::ListDataSetRequest& request) const;
|
||||
ListDataSourceOutcome listDataSource(const Model::ListDataSourceRequest &request)const;
|
||||
void listDataSourceAsync(const Model::ListDataSourceRequest& request, const ListDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDataSourceOutcomeCallable listDataSourceCallable(const Model::ListDataSourceRequest& request) const;
|
||||
ListDiversifyOutcome listDiversify(const Model::ListDiversifyRequest &request)const;
|
||||
void listDiversifyAsync(const Model::ListDiversifyRequest& request, const ListDiversifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDiversifyOutcomeCallable listDiversifyCallable(const Model::ListDiversifyRequest& request) const;
|
||||
ListInstanceOutcome listInstance(const Model::ListInstanceRequest &request)const;
|
||||
void listInstanceAsync(const Model::ListInstanceRequest& request, const ListInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListInstanceOutcomeCallable listInstanceCallable(const Model::ListInstanceRequest& request) const;
|
||||
ListInstanceTaskOutcome listInstanceTask(const Model::ListInstanceTaskRequest &request)const;
|
||||
void listInstanceTaskAsync(const Model::ListInstanceTaskRequest& request, const ListInstanceTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListInstanceTaskOutcomeCallable listInstanceTaskCallable(const Model::ListInstanceTaskRequest& request) const;
|
||||
ListMixOutcome listMix(const Model::ListMixRequest &request)const;
|
||||
void listMixAsync(const Model::ListMixRequest& request, const ListMixAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListMixOutcomeCallable listMixCallable(const Model::ListMixRequest& request) const;
|
||||
ListRuleConditionsOutcome listRuleConditions(const Model::ListRuleConditionsRequest &request)const;
|
||||
void listRuleConditionsAsync(const Model::ListRuleConditionsRequest& request, const ListRuleConditionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRuleConditionsOutcomeCallable listRuleConditionsCallable(const Model::ListRuleConditionsRequest& request) const;
|
||||
ListRuleTasksOutcome listRuleTasks(const Model::ListRuleTasksRequest &request)const;
|
||||
void listRuleTasksAsync(const Model::ListRuleTasksRequest& request, const ListRuleTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRuleTasksOutcomeCallable listRuleTasksCallable(const Model::ListRuleTasksRequest& request) const;
|
||||
ListRulesOutcome listRules(const Model::ListRulesRequest &request)const;
|
||||
void listRulesAsync(const Model::ListRulesRequest& request, const ListRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRulesOutcomeCallable listRulesCallable(const Model::ListRulesRequest& request) const;
|
||||
ListSceneItemsOutcome listSceneItems(const Model::ListSceneItemsRequest &request)const;
|
||||
void listSceneItemsAsync(const Model::ListSceneItemsRequest& request, const ListSceneItemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSceneItemsOutcomeCallable listSceneItemsCallable(const Model::ListSceneItemsRequest& request) const;
|
||||
ListScenesOutcome listScenes(const Model::ListScenesRequest &request)const;
|
||||
void listScenesAsync(const Model::ListScenesRequest& request, const ListScenesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListScenesOutcomeCallable listScenesCallable(const Model::ListScenesRequest& request) const;
|
||||
ListUmengAppkeysOutcome listUmengAppkeys(const Model::ListUmengAppkeysRequest &request)const;
|
||||
void listUmengAppkeysAsync(const Model::ListUmengAppkeysRequest& request, const ListUmengAppkeysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUmengAppkeysOutcomeCallable listUmengAppkeysCallable(const Model::ListUmengAppkeysRequest& request) const;
|
||||
ModifyDataSourceOutcome modifyDataSource(const Model::ModifyDataSourceRequest &request)const;
|
||||
void modifyDataSourceAsync(const Model::ModifyDataSourceRequest& request, const ModifyDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDataSourceOutcomeCallable modifyDataSourceCallable(const Model::ModifyDataSourceRequest& request) const;
|
||||
ModifyDiversifyOutcome modifyDiversify(const Model::ModifyDiversifyRequest &request)const;
|
||||
void modifyDiversifyAsync(const Model::ModifyDiversifyRequest& request, const ModifyDiversifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDiversifyOutcomeCallable modifyDiversifyCallable(const Model::ModifyDiversifyRequest& request) const;
|
||||
ModifyExposureSettingsOutcome modifyExposureSettings(const Model::ModifyExposureSettingsRequest &request)const;
|
||||
void modifyExposureSettingsAsync(const Model::ModifyExposureSettingsRequest& request, const ModifyExposureSettingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyExposureSettingsOutcomeCallable modifyExposureSettingsCallable(const Model::ModifyExposureSettingsRequest& request) const;
|
||||
ModifyInstanceOutcome modifyInstance(const Model::ModifyInstanceRequest &request)const;
|
||||
void modifyInstanceAsync(const Model::ModifyInstanceRequest& request, const ModifyInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyInstanceOutcomeCallable modifyInstanceCallable(const Model::ModifyInstanceRequest& request) const;
|
||||
ModifyMixOutcome modifyMix(const Model::ModifyMixRequest &request)const;
|
||||
void modifyMixAsync(const Model::ModifyMixRequest& request, const ModifyMixAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyMixOutcomeCallable modifyMixCallable(const Model::ModifyMixRequest& request) const;
|
||||
ModifyRuleOutcome modifyRule(const Model::ModifyRuleRequest &request)const;
|
||||
void modifyRuleAsync(const Model::ModifyRuleRequest& request, const ModifyRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyRuleOutcomeCallable modifyRuleCallable(const Model::ModifyRuleRequest& request) const;
|
||||
ModifySceneOutcome modifyScene(const Model::ModifySceneRequest &request)const;
|
||||
void modifySceneAsync(const Model::ModifySceneRequest& request, const ModifySceneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifySceneOutcomeCallable modifySceneCallable(const Model::ModifySceneRequest& request) const;
|
||||
PublishRuleOutcome publishRule(const Model::PublishRuleRequest &request)const;
|
||||
void publishRuleAsync(const Model::PublishRuleRequest& request, const PublishRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PublishRuleOutcomeCallable publishRuleCallable(const Model::PublishRuleRequest& request) const;
|
||||
PushDocumentOutcome pushDocument(const Model::PushDocumentRequest &request)const;
|
||||
void pushDocumentAsync(const Model::PushDocumentRequest& request, const PushDocumentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PushDocumentOutcomeCallable pushDocumentCallable(const Model::PushDocumentRequest& request) const;
|
||||
PushInterventionOutcome pushIntervention(const Model::PushInterventionRequest &request)const;
|
||||
void pushInterventionAsync(const Model::PushInterventionRequest& request, const PushInterventionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PushInterventionOutcomeCallable pushInterventionCallable(const Model::PushInterventionRequest& request) const;
|
||||
QueryDataMessageOutcome queryDataMessage(const Model::QueryDataMessageRequest &request)const;
|
||||
void queryDataMessageAsync(const Model::QueryDataMessageRequest& request, const QueryDataMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryDataMessageOutcomeCallable queryDataMessageCallable(const Model::QueryDataMessageRequest& request) const;
|
||||
QueryExceptionHistoryOutcome queryExceptionHistory(const Model::QueryExceptionHistoryRequest &request)const;
|
||||
void queryExceptionHistoryAsync(const Model::QueryExceptionHistoryRequest& request, const QueryExceptionHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryExceptionHistoryOutcomeCallable queryExceptionHistoryCallable(const Model::QueryExceptionHistoryRequest& request) const;
|
||||
QueryRawDataOutcome queryRawData(const Model::QueryRawDataRequest &request)const;
|
||||
void queryRawDataAsync(const Model::QueryRawDataRequest& request, const QueryRawDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryRawDataOutcomeCallable queryRawDataCallable(const Model::QueryRawDataRequest& request) const;
|
||||
QuerySingleAggregationReportOutcome querySingleAggregationReport(const Model::QuerySingleAggregationReportRequest &request)const;
|
||||
void querySingleAggregationReportAsync(const Model::QuerySingleAggregationReportRequest& request, const QuerySingleAggregationReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QuerySingleAggregationReportOutcomeCallable querySingleAggregationReportCallable(const Model::QuerySingleAggregationReportRequest& request) const;
|
||||
QuerySingleReportOutcome querySingleReport(const Model::QuerySingleReportRequest &request)const;
|
||||
void querySingleReportAsync(const Model::QuerySingleReportRequest& request, const QuerySingleReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QuerySingleReportOutcomeCallable querySingleReportCallable(const Model::QuerySingleReportRequest& request) const;
|
||||
QuerySyncReportAggregationOutcome querySyncReportAggregation(const Model::QuerySyncReportAggregationRequest &request)const;
|
||||
void querySyncReportAggregationAsync(const Model::QuerySyncReportAggregationRequest& request, const QuerySyncReportAggregationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QuerySyncReportAggregationOutcomeCallable querySyncReportAggregationCallable(const Model::QuerySyncReportAggregationRequest& request) const;
|
||||
RecommendOutcome recommend(const Model::RecommendRequest &request)const;
|
||||
void recommendAsync(const Model::RecommendRequest& request, const RecommendAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RecommendOutcomeCallable recommendCallable(const Model::RecommendRequest& request) const;
|
||||
RunInstanceOutcome runInstance(const Model::RunInstanceRequest &request)const;
|
||||
void runInstanceAsync(const Model::RunInstanceRequest& request, const RunInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RunInstanceOutcomeCallable runInstanceCallable(const Model::RunInstanceRequest& request) const;
|
||||
StopDataSetOutcome stopDataSet(const Model::StopDataSetRequest &request)const;
|
||||
void stopDataSetAsync(const Model::StopDataSetRequest& request, const StopDataSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopDataSetOutcomeCallable stopDataSetCallable(const Model::StopDataSetRequest& request) const;
|
||||
UpgradeInstanceOutcome upgradeInstance(const Model::UpgradeInstanceRequest &request)const;
|
||||
void upgradeInstanceAsync(const Model::UpgradeInstanceRequest& request, const UpgradeInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpgradeInstanceOutcomeCallable upgradeInstanceCallable(const Model::UpgradeInstanceRequest& request) const;
|
||||
ValidateInstanceOutcome validateInstance(const Model::ValidateInstanceRequest &request)const;
|
||||
void validateInstanceAsync(const Model::ValidateInstanceRequest& request, const ValidateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ValidateInstanceOutcomeCallable validateInstanceCallable(const Model::ValidateInstanceRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_AIREC_AIRECCLIENT_H_
|
||||
32
airec/include/alibabacloud/airec/AirecExport.h
Normal file
32
airec/include/alibabacloud/airec/AirecExport.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_AIREC_AIRECEXPORT_H_
|
||||
#define ALIBABACLOUD_AIREC_AIRECEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_AIREC_LIBRARY)
|
||||
# define ALIBABACLOUD_AIREC_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_AIREC_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_AIREC_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_AIREC_AIRECEXPORT_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_AIREC_MODEL_ATTACHDATASETREQUEST_H_
|
||||
#define ALIBABACLOUD_AIREC_MODEL_ATTACHDATASETREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/airec/AirecExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Airec
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIREC_EXPORT AttachDatasetRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AttachDatasetRequest();
|
||||
~AttachDatasetRequest();
|
||||
|
||||
std::string getVersionId()const;
|
||||
void setVersionId(const std::string& versionId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string versionId_;
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIREC_MODEL_ATTACHDATASETREQUEST_H_
|
||||
63
airec/include/alibabacloud/airec/model/AttachDatasetResult.h
Normal file
63
airec/include/alibabacloud/airec/model/AttachDatasetResult.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_AIREC_MODEL_ATTACHDATASETRESULT_H_
|
||||
#define ALIBABACLOUD_AIREC_MODEL_ATTACHDATASETRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/airec/AirecExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Airec
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIREC_EXPORT AttachDatasetResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string versionId;
|
||||
long gmtCreate;
|
||||
std::string instanceId;
|
||||
std::string state;
|
||||
long gmtModified;
|
||||
};
|
||||
|
||||
|
||||
AttachDatasetResult();
|
||||
explicit AttachDatasetResult(const std::string &payload);
|
||||
~AttachDatasetResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIREC_MODEL_ATTACHDATASETRESULT_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_AIREC_MODEL_CREATEDIVERSIFYREQUEST_H_
|
||||
#define ALIBABACLOUD_AIREC_MODEL_CREATEDIVERSIFYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/airec/AirecExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Airec
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIREC_EXPORT CreateDiversifyRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDiversifyRequest();
|
||||
~CreateDiversifyRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIREC_MODEL_CREATEDIVERSIFYREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_AIREC_MODEL_CREATEDIVERSIFYRESULT_H_
|
||||
#define ALIBABACLOUD_AIREC_MODEL_CREATEDIVERSIFYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/airec/AirecExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Airec
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIREC_EXPORT CreateDiversifyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct _Parameter
|
||||
{
|
||||
int window;
|
||||
int categoryIndex;
|
||||
};
|
||||
std::string gmtCreate;
|
||||
std::string gmtModified;
|
||||
_Parameter _parameter;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
CreateDiversifyResult();
|
||||
explicit CreateDiversifyResult(const std::string &payload);
|
||||
~CreateDiversifyResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIREC_MODEL_CREATEDIVERSIFYRESULT_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_AIREC_MODEL_CREATEINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_AIREC_MODEL_CREATEINSTANCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/airec/AirecExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Airec
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIREC_EXPORT CreateInstanceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateInstanceRequest();
|
||||
~CreateInstanceRequest();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIREC_MODEL_CREATEINSTANCEREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AIREC_MODEL_CREATEINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_AIREC_MODEL_CREATEINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/airec/AirecExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Airec
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIREC_EXPORT CreateInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string instanceId;
|
||||
};
|
||||
|
||||
|
||||
CreateInstanceResult();
|
||||
explicit CreateInstanceResult(const std::string &payload);
|
||||
~CreateInstanceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIREC_MODEL_CREATEINSTANCERESULT_H_
|
||||
48
airec/include/alibabacloud/airec/model/CreateMixRequest.h
Normal file
48
airec/include/alibabacloud/airec/model/CreateMixRequest.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_AIREC_MODEL_CREATEMIXREQUEST_H_
|
||||
#define ALIBABACLOUD_AIREC_MODEL_CREATEMIXREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/airec/AirecExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Airec
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIREC_EXPORT CreateMixRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateMixRequest();
|
||||
~CreateMixRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIREC_MODEL_CREATEMIXREQUEST_H_
|
||||
71
airec/include/alibabacloud/airec/model/CreateMixResult.h
Normal file
71
airec/include/alibabacloud/airec/model/CreateMixResult.h
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AIREC_MODEL_CREATEMIXRESULT_H_
|
||||
#define ALIBABACLOUD_AIREC_MODEL_CREATEMIXRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/airec/AirecExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Airec
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AIREC_EXPORT CreateMixResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
struct _Parameter
|
||||
{
|
||||
struct SettingsItem
|
||||
{
|
||||
int value;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<SettingsItem> settings;
|
||||
};
|
||||
std::string gmtCreate;
|
||||
std::string gmtModified;
|
||||
_Parameter _parameter;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
CreateMixResult();
|
||||
explicit CreateMixResult(const std::string &payload);
|
||||
~CreateMixResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AIREC_MODEL_CREATEMIXRESULT_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user